]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/misc_wrap.cpp
Allow wxApp::MacOpenFile, MacPrintFile, MacNewFile, and MacReopenApp
[wxWidgets.git] / wxPython / src / gtk / misc_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
a41e16b6 3 * Version 1.3.22
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
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
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
c9c7117a
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
d14a1e28
RD
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
cc6dd355
RD
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
d14a1e28 82#else
cc6dd355
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
cc6dd355 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
cc6dd355 90# define SWIGRUNTIME(a) static a
d14a1e28
RD
91#endif
92
d14a1e28
RD
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
cc6dd355 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
cc6dd355 104 void *clientdata;
d14a1e28
RD
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
cc6dd355
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
d14a1e28
RD
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
d14a1e28
RD
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
a41e16b6 173
d14a1e28
RD
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
994141e6 186typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 187
cc6dd355
RD
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 196
d14a1e28
RD
197
198/* Contract support */
199
9d1d5697 200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 201
d14a1e28
RD
202#ifdef __cplusplus
203}
204#endif
205
206
d14a1e28
RD
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxLogChain swig_types[0]
210#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211#define SWIGTYPE_p_wxFileHistory swig_types[2]
212#define SWIGTYPE_p_wxLog swig_types[3]
213#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4]
214#define SWIGTYPE_p_wxMenu swig_types[5]
215#define SWIGTYPE_p_wxEvent swig_types[6]
216#define SWIGTYPE_p_wxConfigBase swig_types[7]
4d5c3d91
RD
217#define SWIGTYPE_p_wxFileType swig_types[8]
218#define SWIGTYPE_p_wxLogGui swig_types[9]
219#define SWIGTYPE_p_wxFont swig_types[10]
220#define SWIGTYPE_p_wxDataFormat swig_types[11]
221#define SWIGTYPE_p_wxTimerEvent swig_types[12]
222#define SWIGTYPE_p_wxCaret swig_types[13]
223#define SWIGTYPE_p_int swig_types[14]
224#define SWIGTYPE_p_wxSize swig_types[15]
225#define SWIGTYPE_p_wxClipboard swig_types[16]
226#define SWIGTYPE_p_wxStopWatch swig_types[17]
227#define SWIGTYPE_p_wxDC swig_types[18]
228#define SWIGTYPE_p_wxClipboardLocker swig_types[19]
229#define SWIGTYPE_p_wxIcon swig_types[20]
230#define SWIGTYPE_p_wxLogStderr swig_types[21]
231#define SWIGTYPE_p_wxLogTextCtrl swig_types[22]
232#define SWIGTYPE_p_wxTextCtrl swig_types[23]
233#define SWIGTYPE_p_wxBusyCursor swig_types[24]
234#define SWIGTYPE_p_wxPyTextDataObject swig_types[25]
235#define SWIGTYPE_p_wxBitmapDataObject swig_types[26]
236#define SWIGTYPE_p_wxTextDataObject swig_types[27]
237#define SWIGTYPE_p_wxDataObject swig_types[28]
238#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[29]
239#define SWIGTYPE_p_wxFileDataObject swig_types[30]
240#define SWIGTYPE_p_wxCustomDataObject swig_types[31]
241#define SWIGTYPE_p_wxURLDataObject swig_types[32]
242#define SWIGTYPE_p_wxMetafileDataObject swig_types[33]
243#define SWIGTYPE_p_wxSound swig_types[34]
d14a1e28
RD
244#define SWIGTYPE_p_wxTimerRunner swig_types[35]
245#define SWIGTYPE_p_wxLogWindow swig_types[36]
246#define SWIGTYPE_p_wxTimeSpan swig_types[37]
247#define SWIGTYPE_p_wxArrayString swig_types[38]
248#define SWIGTYPE_p_wxWindowDisabler swig_types[39]
249#define SWIGTYPE_p_wxToolTip swig_types[40]
250#define SWIGTYPE_p_wxDataObjectComposite swig_types[41]
251#define SWIGTYPE_p_wxFileConfig swig_types[42]
252#define SWIGTYPE_p_wxSystemSettings swig_types[43]
253#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[44]
254#define SWIGTYPE_p_wxDataObjectSimple swig_types[45]
255#define SWIGTYPE_p_wxEvtHandler swig_types[46]
256#define SWIGTYPE_p_wxRect swig_types[47]
994141e6
RD
257#define SWIGTYPE_p_char swig_types[48]
258#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[49]
259#define SWIGTYPE_p_wxFileTypeInfo swig_types[50]
260#define SWIGTYPE_p_wxFrame swig_types[51]
261#define SWIGTYPE_p_wxTimer swig_types[52]
262#define SWIGTYPE_p_wxMimeTypesManager swig_types[53]
263#define SWIGTYPE_p_wxPyArtProvider swig_types[54]
264#define SWIGTYPE_p_wxPyTipProvider swig_types[55]
265#define SWIGTYPE_p_wxTipProvider swig_types[56]
266#define SWIGTYPE_p_wxJoystick swig_types[57]
267#define SWIGTYPE_p_wxSystemOptions swig_types[58]
268#define SWIGTYPE_p_wxPoint swig_types[59]
269#define SWIGTYPE_p_wxJoystickEvent swig_types[60]
270#define SWIGTYPE_p_wxCursor swig_types[61]
271#define SWIGTYPE_p_wxObject swig_types[62]
272#define SWIGTYPE_p_wxOutputStream swig_types[63]
273#define SWIGTYPE_p_wxDateTime swig_types[64]
274#define SWIGTYPE_p_wxPyDropSource swig_types[65]
275#define SWIGTYPE_p_wxWindow swig_types[66]
276#define SWIGTYPE_p_wxString swig_types[67]
277#define SWIGTYPE_p_wxPyProcess swig_types[68]
278#define SWIGTYPE_p_wxBitmap swig_types[69]
279#define SWIGTYPE_p_wxConfig swig_types[70]
280#define SWIGTYPE_p_wxChar swig_types[71]
281#define SWIGTYPE_p_wxBusyInfo swig_types[72]
282#define SWIGTYPE_p_wxPyDropTarget swig_types[73]
283#define SWIGTYPE_p_wxPyTextDropTarget swig_types[74]
284#define SWIGTYPE_p_wxPyFileDropTarget swig_types[75]
285#define SWIGTYPE_p_wxProcessEvent swig_types[76]
286#define SWIGTYPE_p_wxPyLog swig_types[77]
287#define SWIGTYPE_p_wxLogNull swig_types[78]
288#define SWIGTYPE_p_wxColour swig_types[79]
4d5c3d91
RD
289#define SWIGTYPE_p_wxByte swig_types[80]
290#define SWIGTYPE_p_wxConfigPathChanger swig_types[81]
291#define SWIGTYPE_p_wxPyTimer swig_types[82]
292#define SWIGTYPE_p_wxDateSpan swig_types[83]
293static swig_type_info *swig_types[85];
d14a1e28
RD
294
295/* -------- TYPES TABLE (END) -------- */
296
297
298/*-----------------------------------------------
299 @(target):= _misc.so
300 ------------------------------------------------*/
301#define SWIG_init init_misc
302
303#define SWIG_name "_misc"
304
15afbcd0 305/* Auxiliar swig macros */
994141e6 306
994141e6 307#ifdef __cplusplus
15afbcd0 308#define SWIGSTATICINLINE(a) static inline a
994141e6 309#define SWIGSTATIC(a) static a
15afbcd0
RD
310#define swig_new_array(type, size) (new type[(size)])
311#define swig_delete_array(cptr) delete[] cptr
312#define swig_const_cast(type,a) const_cast<type>(a)
313#define swig_static_cast(type,a) static_cast<type>(a)
314#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
994141e6 315
994141e6 316#ifdef HAVE_NUMERIC_CAST
15afbcd0 317#define swig_numeric_cast(type,a) numeric_cast<type>(a)
994141e6 318#else
15afbcd0 319#define swig_numeric_cast(type,a) static_cast<type>(a)
994141e6
RD
320#endif
321
15afbcd0
RD
322#else /* C case */
323
324#define SWIGSTATICINLINE(a) static a
325#define SWIGSTATIC(a) static a
326#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
327#define swig_delete_array(cptr) free((char*)cptr)
328#define swig_const_cast(type,a) (type)(a)
329#define swig_static_cast(type,a) (type)(a)
330#define swig_reinterpret_cast(type,a) (type)(a)
331#define swig_numeric_cast(type,a) (type)(a)
332
333#endif /* __cplusplus */
994141e6
RD
334
335
15afbcd0
RD
336#define SWIG_FromSignedChar PyInt_FromLong
337#define SWIG_FromUnsignedChar PyInt_FromLong
338#define SWIG_FromShort PyInt_FromLong
339#define SWIG_FromUnsignedShort PyInt_FromLong
340#define SWIG_FromInt PyInt_FromLong
341#define SWIG_FromLong PyInt_FromLong
342#define SWIG_FromFloat PyFloat_FromDouble
343#define SWIG_FromDouble PyFloat_FromDouble
344#define SWIG_FromFloat PyFloat_FromDouble
345#define SWIG_FromDouble PyFloat_FromDouble
994141e6
RD
346
347
d14a1e28
RD
348#include "wx/wxPython/wxPython.h"
349#include "wx/wxPython/pyclasses.h"
350#include "wx/wxPython/pyistream.h"
351
d14a1e28 352
b2dc1044 353 static const wxString wxPyEmptyString(wxEmptyString);
d14a1e28 354
d14a1e28 355
994141e6 356
15afbcd0
RD
357#include <limits.h>
358
359
360SWIGSTATICINLINE(long)
361SWIG_CheckLongInRange(long value, const char* type,
362 long min_value, long max_value)
363{
364 if (!PyErr_Occurred()) {
365 if (value < min_value) {
366 PyObject *err =
367 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
368 value, type, min_value);
369
370 PyErr_SetObject(PyExc_OverflowError, err);
371 Py_DECREF(err);
372 } else if (value > max_value) {
373 PyObject *err =
374 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
375 value, type, max_value);
376 PyErr_SetObject(PyExc_OverflowError, err);
377 Py_DECREF(err);
378 }
379 }
380 return value;
381}
382
383
384SWIGSTATICINLINE(long)
385SWIG_AsLong(PyObject * obj)
386{
387 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
388}
389
390
391#if INT_MAX != LONG_MAX
392SWIGSTATICINLINE(int)
393SWIG_AsInt(PyObject *obj)
994141e6 394{
15afbcd0
RD
395 return swig_numeric_cast(int,
396 SWIG_CheckLongInRange(SWIG_AsLong(obj),
397 "int", INT_MIN, INT_MAX));
398}
399#else
400#define SWIG_AsInt SWIG_AsLong
401#endif
402
403
404SWIGSTATICINLINE(int)
405SWIG_CheckInt(PyObject* obj)
406{
407 SWIG_AsInt(obj);
408 if (PyErr_Occurred()) {
409 PyErr_Clear();
410 return 0;
411 } else {
412 return 1;
413 }
994141e6
RD
414}
415
b2dc1044
RD
416 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
417 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
418 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
d14a1e28 419
15afbcd0
RD
420SWIGSTATICINLINE(int)
421SWIG_CheckLong(PyObject* obj)
994141e6 422{
15afbcd0
RD
423 SWIG_AsLong(obj);
424 if (PyErr_Occurred()) {
425 PyErr_Clear();
426 return 0;
427 } else {
428 return 1;
429 }
994141e6
RD
430}
431
432
15afbcd0
RD
433SWIGSTATICINLINE(bool)
434SWIG_AsBool(PyObject *obj)
994141e6
RD
435{
436 return PyObject_IsTrue(obj) ? true : false;
437}
438
439
15afbcd0
RD
440SWIGSTATICINLINE(int)
441SWIG_CheckBool(PyObject* obj)
442{
443 SWIG_AsBool(obj);
444 if (PyErr_Occurred()) {
445 PyErr_Clear();
446 return 0;
447 } else {
448 return 1;
449 }
450}
451
452
d14a1e28
RD
453static PyObject* t_output_helper(PyObject* target, PyObject* o) {
454 PyObject* o2;
455 PyObject* o3;
456
457 if (!target) {
458 target = o;
459 } else if (target == Py_None) {
460 Py_DECREF(Py_None);
461 target = o;
462 } else {
463 if (!PyTuple_Check(target)) {
464 o2 = target;
465 target = PyTuple_New(1);
466 PyTuple_SetItem(target, 0, o2);
467 }
468 o3 = PyTuple_New(1);
469 PyTuple_SetItem(o3, 0, o);
470
471 o2 = target;
472 target = PySequence_Concat(o2, o3);
473 Py_DECREF(o2);
474 Py_DECREF(o3);
475 }
476 return target;
477}
478
479
480 long wxGetFreeMemory()
39f61e25
RD
481 { wxPyRaiseNotImplemented(); return 0; }
482
483
15afbcd0
RD
484SWIGSTATICINLINE(unsigned long)
485SWIG_AsUnsignedLong(PyObject * obj)
486{
487 if (PyLong_Check(obj)) {
488 return PyLong_AsUnsignedLong(obj);
489 } else {
490 long i = PyInt_AsLong(obj);
491 if ( !PyErr_Occurred() && (i < 0)) {
492 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
493 }
494 return i;
495 }
496}
497
498
499SWIGSTATICINLINE(int)
500SWIG_CheckUnsignedLong(PyObject* obj)
501{
502 SWIG_AsUnsignedLong(obj);
503 if (PyErr_Occurred()) {
504 PyErr_Clear();
505 return 0;
506 } else {
507 return 1;
508 }
509}
510
511
512SWIGSTATICINLINE(PyObject* )
513SWIG_FromUnsignedLong(unsigned long value)
994141e6 514{
15afbcd0
RD
515 return (value > LONG_MAX) ?
516 PyLong_FromUnsignedLong(value)
517 : PyInt_FromLong(swig_numeric_cast(long,value));
994141e6
RD
518}
519
520
39f61e25
RD
521 bool wxGetKeyState(wxKeyCode key)
522 { wxPyRaiseNotImplemented(); return False; }
d14a1e28
RD
523
524
525 void wxWakeUpMainThread() {}
526
527
528 bool wxThread_IsMain() {
529#ifdef WXP_WITH_THREAD
530 return wxThread::IsMain();
531#else
e811c8ce 532 return True;
d14a1e28
RD
533#endif
534 }
535
536
537 int wxCaret_GetBlinkTime() {
538 return wxCaret::GetBlinkTime();
539 }
540
541 void wxCaret_SetBlinkTime(int milliseconds) {
542 wxCaret::SetBlinkTime(milliseconds);
543 }
544
545
546#include <wx/snglinst.h>
547
548
549#ifdef __WXMSW__
550#include <wx/msw/private.h>
551#include <wx/dynload.h>
552#endif
553
554
555
556void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
557{
558#ifdef __WXMSW__
559
560 switch (method)
561 {
562 case 1:
563 // This one only partially works. Appears to be an undocumented
564 // "standard" convention that not all widgets adhear to. For
565 // example, for some widgets backgrounds or non-client areas may
566 // not be painted.
567 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
568 break;
569
570 case 2:
571 // This one works much better, except for on XP. On Win2k nearly
572 // all widgets and their children are captured correctly[**]. On
573 // XP with Themes activated most native widgets draw only
574 // partially, if at all. Without themes it works just like on
575 // Win2k.
576 //
577 // ** For example the radio buttons in a wxRadioBox are not its
578 // children by default, but you can capture it via the panel
579 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
580 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
581 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
582 PRF_ERASEBKGND | PRF_OWNED );
583 break;
584
585 case 3:
586 // This one is only defined in the latest SDK and is only
587 // available on XP. MSDN says it is similar to sending WM_PRINT
588 // so I expect that it will work similar to the above. Since it
589 // is avaialble only on XP, it can't be compiled like this and
590 // will have to be loaded dynamically.
591 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
592
593 // fall through
594
595 case 4:
596 // Use PrintWindow if available, or fallback to WM_PRINT
597 // otherwise. Unfortunately using PrintWindow is even worse than
598 // WM_PRINT. For most native widgets nothing is drawn to the dc
599 // at all, with or without Themes.
600 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
e811c8ce 601 static bool s_triedToLoad = False;
d14a1e28
RD
602 static PrintWindow_t pfnPrintWindow = NULL;
603 if ( !s_triedToLoad )
604 {
605
e811c8ce 606 s_triedToLoad = True;
d14a1e28
RD
607 wxDynamicLibrary dllUser32(_T("user32.dll"));
608 if ( dllUser32.IsLoaded() )
609 {
610 wxLogNull nolog; // Don't report errors here
611 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
612 }
613 }
614 if (pfnPrintWindow)
615 {
616 printf("Using PrintWindow\n");
617 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
618 }
619 else
620 {
621 printf("Using WM_PRINT\n");
622 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
623 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
624 }
625 }
626#endif
627}
628
629
630
631#include <wx/tipdlg.h>
632
633
634class wxPyTipProvider : public wxTipProvider {
635public:
636 wxPyTipProvider(size_t currentTip)
637 : wxTipProvider(currentTip) {}
638
639 DEC_PYCALLBACK_STRING__pure(GetTip);
640 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
641 PYPRIVATE;
642};
643
644IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
645IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
646
647
648IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
649
994141e6 650
15afbcd0
RD
651SWIGSTATICINLINE(PyObject *)
652SWIG_FromCharPtr(const char* cptr)
653{
654 size_t size = cptr ? strlen(cptr) : 0;
655 if (cptr) {
656 if (size > INT_MAX) {
657 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
658 SWIG_TypeQuery("char *"), 0);
659 } else {
660 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
661 }
662 } else {
663 Py_INCREF(Py_None);
664 return Py_None;
665 }
666}
667
668
669SWIGSTATICINLINE(unsigned long)
670SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
671 unsigned long max_value)
672{
673 if (!PyErr_Occurred()) {
674 if (value > max_value) {
675 PyObject *err =
676 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
677 value, type, max_value);
678 PyErr_SetObject(PyExc_OverflowError, err);
679 Py_DECREF(err);
680 }
681 }
682 return value;
683}
684
685
686#if UINT_MAX != ULONG_MAX
687SWIGSTATICINLINE(unsigned int)
688SWIG_AsUnsignedInt(PyObject *obj)
994141e6 689{
15afbcd0
RD
690 return swig_numeric_cast(unsigned int,
691 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
692 "unsigned int", UINT_MAX));
693}
694#else
695#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
696#endif
697
698
699SWIGSTATICINLINE(int)
700SWIG_CheckUnsignedInt(PyObject* obj)
701{
702 SWIG_AsUnsignedInt(obj);
703 if (PyErr_Occurred()) {
704 PyErr_Clear();
705 return 0;
706 } else {
707 return 1;
708 }
994141e6
RD
709}
710
d14a1e28
RD
711wxString Log_TimeStamp(){
712 wxString msg;
713 wxLog::TimeStamp(&msg);
714 return msg;
715 }
716void wxLog_Destroy(wxLog *self){ delete self; }
717
718// A wxLog class that can be derived from in wxPython
719class wxPyLog : public wxLog {
720public:
721 wxPyLog() : wxLog() {}
722
723 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
724 bool found;
725 wxPyBeginBlockThreads();
726 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
727 PyObject* s = wx2PyString(szString);
728 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
729 Py_DECREF(s);
730 }
731 wxPyEndBlockThreads();
732 if (! found)
733 wxLog::DoLog(level, szString, t);
734 }
735
736 virtual void DoLogString(const wxChar *szString, time_t t) {
737 bool found;
738 wxPyBeginBlockThreads();
739 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
740 PyObject* s = wx2PyString(szString);
741 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
742 Py_DECREF(s);
743 }
744 wxPyEndBlockThreads();
745 if (! found)
746 wxLog::DoLogString(szString, t);
747 }
748
749 PYPRIVATE;
750};
751
752
753
754
755IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
756
757
758#include <wx/joystick.h>
759
760
761#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
762// A C++ stub class for wxJoystick for platforms that don't have it.
763class wxJoystick : public wxObject {
764public:
765 wxJoystick(int joystick = wxJOYSTICK1) {
766 wxPyBeginBlockThreads();
39f61e25
RD
767 PyErr_SetString(PyExc_NotImplementedError,
768 "wxJoystick is not available on this platform.");
d14a1e28
RD
769 wxPyEndBlockThreads();
770 }
771 wxPoint GetPosition() { return wxPoint(-1,-1); }
772 int GetZPosition() { return -1; }
773 int GetButtonState() { return -1; }
774 int GetPOVPosition() { return -1; }
775 int GetPOVCTSPosition() { return -1; }
776 int GetRudderPosition() { return -1; }
777 int GetUPosition() { return -1; }
778 int GetVPosition() { return -1; }
779 int GetMovementThreshold() { return -1; }
780 void SetMovementThreshold(int threshold) {}
781
e811c8ce 782 bool IsOk(void) { return False; }
d14a1e28
RD
783 int GetNumberJoysticks() { return -1; }
784 int GetManufacturerId() { return -1; }
785 int GetProductId() { return -1; }
786 wxString GetProductName() { return ""; }
787 int GetXMin() { return -1; }
788 int GetYMin() { return -1; }
789 int GetZMin() { return -1; }
790 int GetXMax() { return -1; }
791 int GetYMax() { return -1; }
792 int GetZMax() { return -1; }
793 int GetNumberButtons() { return -1; }
794 int GetNumberAxes() { return -1; }
795 int GetMaxButtons() { return -1; }
796 int GetMaxAxes() { return -1; }
797 int GetPollingMin() { return -1; }
798 int GetPollingMax() { return -1; }
799 int GetRudderMin() { return -1; }
800 int GetRudderMax() { return -1; }
801 int GetUMin() { return -1; }
802 int GetUMax() { return -1; }
803 int GetVMin() { return -1; }
804 int GetVMax() { return -1; }
805
e811c8ce
RD
806 bool HasRudder() { return False; }
807 bool HasZ() { return False; }
808 bool HasU() { return False; }
809 bool HasV() { return False; }
810 bool HasPOV() { return False; }
811 bool HasPOV4Dir() { return False; }
812 bool HasPOVCTS() { return False; }
d14a1e28 813
e811c8ce
RD
814 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
815 bool ReleaseCapture() { return False; }
d14a1e28
RD
816};
817#endif
818
819
4d5c3d91 820#include <wx/sound.h>
d14a1e28
RD
821
822
dff1fa9b 823#if !wxUSE_SOUND
d14a1e28 824// A C++ stub class for wxWave for platforms that don't have it.
4d5c3d91 825class wxSound : public wxObject
d14a1e28
RD
826{
827public:
4d5c3d91 828 wxSound() {
d14a1e28 829 wxPyBeginBlockThreads();
39f61e25 830 PyErr_SetString(PyExc_NotImplementedError,
4d5c3d91 831 "wxSound is not available on this platform.");
d14a1e28
RD
832 wxPyEndBlockThreads();
833 }
4d5c3d91 834 wxSound(const wxString&, bool) {
d14a1e28 835 wxPyBeginBlockThreads();
39f61e25 836 PyErr_SetString(PyExc_NotImplementedError,
4d5c3d91 837 "wxSound is not available on this platform.");
d14a1e28
RD
838 wxPyEndBlockThreads();
839 }
4d5c3d91
RD
840 wxSound(int, const wxByte*) {
841 wxPyBeginBlockThreads();
842 PyErr_SetString(PyExc_NotImplementedError,
843 "wxSound is not available on this platform.");
844 wxPyEndBlockThreads();
845 }
846
847 ~wxSound() {};
d14a1e28 848
4d5c3d91
RD
849 bool Create(const wxString&, bool) { return false; }
850 bool Create(int, const wxByte*) { return false; };
851 bool IsOk() { return false; };
852 bool Play(unsigned) const { return false; }
853 static bool Play(const wxString&, unsigned) { return false; }
854 static void Stop() {}
d14a1e28
RD
855};
856
857#endif
858
d14a1e28
RD
859
860#include <wx/mimetype.h>
861
862PyObject *wxFileType_GetMimeType(wxFileType *self){
863 wxString str;
864 if (self->GetMimeType(&str))
865 return wx2PyString(str);
866 else
867 RETURN_NONE();
868 }
869PyObject *wxFileType_GetMimeTypes(wxFileType *self){
870 wxArrayString arr;
871 if (self->GetMimeTypes(arr))
872 return wxArrayString2PyList_helper(arr);
873 else
874 RETURN_NONE();
875 }
876PyObject *wxFileType_GetExtensions(wxFileType *self){
877 wxArrayString arr;
878 if (self->GetExtensions(arr))
879 return wxArrayString2PyList_helper(arr);
880 else
881 RETURN_NONE();
882 }
883wxIcon *wxFileType_GetIcon(wxFileType *self){
884 wxIconLocation loc;
885 if (self->GetIcon(&loc))
886 return new wxIcon(loc);
887 else
888 return NULL;
889 }
890PyObject *wxFileType_GetIconInfo(wxFileType *self){
891 wxIconLocation loc;
892 if (self->GetIcon(&loc)) {
893 wxString iconFile = loc.GetFileName();
894 int iconIndex = -1;
895
896
897
898 // Make a tuple and put the values in it
899 wxPyBeginBlockThreads();
900 PyObject* tuple = PyTuple_New(3);
901 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
e811c8ce 902 wxT("wxIcon"), True));
d14a1e28
RD
903 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
904 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
905 wxPyEndBlockThreads();
906 return tuple;
907 }
908 else
909 RETURN_NONE();
910 }
911PyObject *wxFileType_GetDescription(wxFileType *self){
912 wxString str;
913 if (self->GetDescription(&str))
914 return wx2PyString(str);
915 else
916 RETURN_NONE();
917 }
918PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
919 wxString str;
920 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
921 return wx2PyString(str);
922 else
923 RETURN_NONE();
924 }
925PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
926 wxString str;
927 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
928 return wx2PyString(str);
929 else
930 RETURN_NONE();
931 }
932PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
933 wxArrayString verbs;
934 wxArrayString commands;
935 if (self->GetAllCommands(&verbs, &commands,
936 wxFileType::MessageParameters(filename, mimetype))) {
937 wxPyBeginBlockThreads();
938 PyObject* tuple = PyTuple_New(2);
939 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
940 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
941 wxPyEndBlockThreads();
942 return tuple;
943 }
944 else
945 RETURN_NONE();
946 }
947wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
948 return wxFileType::ExpandCommand(command,
949 wxFileType::MessageParameters(filename, mimetype));
950 }
951PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
952 wxArrayString arr;
953 self->EnumAllFileTypes(arr);
954 return wxArrayString2PyList_helper(arr);
955 }
956
957#include <wx/artprov.h>
958
959 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
960 static const wxString wxPyART_MENU(wxART_MENU);
961 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
962 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
963 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
964 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
965 static const wxString wxPyART_OTHER(wxART_OTHER);
966 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
967 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
968 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
969 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
970 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
971 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
972 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
973 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
974 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
975 static const wxString wxPyART_GO_UP(wxART_GO_UP);
976 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
977 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
978 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
979 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
980 static const wxString wxPyART_PRINT(wxART_PRINT);
981 static const wxString wxPyART_HELP(wxART_HELP);
982 static const wxString wxPyART_TIP(wxART_TIP);
983 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
984 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
985 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
986 static const wxString wxPyART_FOLDER(wxART_FOLDER);
987 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
988 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
989 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
990 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
991 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
992 static const wxString wxPyART_ERROR(wxART_ERROR);
993 static const wxString wxPyART_QUESTION(wxART_QUESTION);
994 static const wxString wxPyART_WARNING(wxART_WARNING);
995 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
996 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
997 // Python aware wxArtProvider
998class wxPyArtProvider : public wxArtProvider {
999public:
1000
1001 virtual wxBitmap CreateBitmap(const wxArtID& id,
1002 const wxArtClient& client,
1003 const wxSize& size) {
1004 wxBitmap rval = wxNullBitmap;
1005 wxPyBeginBlockThreads();
1006 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1007 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1008 PyObject* ro;
1009 wxBitmap* ptr;
1010 PyObject* s1, *s2;
1011 s1 = wx2PyString(id);
1012 s2 = wx2PyString(client);
1013 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1014 Py_DECREF(so);
1015 Py_DECREF(s1);
1016 Py_DECREF(s2);
1017 if (ro) {
1018 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1019 rval = *ptr;
1020 Py_DECREF(ro);
1021 }
1022 }
1023 wxPyEndBlockThreads();
1024 return rval;
1025 }
1026
1027 PYPRIVATE;
1028};
1029
1e0c8722 1030void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
d14a1e28
RD
1031
1032
1033
1034 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1035 PyObject* ret = PyTuple_New(3);
1036 if (ret) {
1037 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1038 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1039 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1040 }
1041 return ret;
1042 }
1043
1044PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1045 bool cont;
1046 long index = 0;
1047 wxString value;
1048
1049 cont = self->GetFirstGroup(value, index);
1050 return __EnumerationHelper(cont, value, index);
1051 }
1052PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1053 bool cont;
1054 wxString value;
1055
1056 cont = self->GetNextGroup(value, index);
1057 return __EnumerationHelper(cont, value, index);
1058 }
1059PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1060 bool cont;
1061 long index = 0;
1062 wxString value;
1063
1064 cont = self->GetFirstEntry(value, index);
1065 return __EnumerationHelper(cont, value, index);
1066 }
1067PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1068 bool cont;
1069 wxString value;
1070
1071 cont = self->GetNextEntry(value, index);
1072 return __EnumerationHelper(cont, value, index);
1073 }
1074long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1075 long rv;
1076 self->Read(key, &rv, defaultVal);
1077 return rv;
1078 }
994141e6 1079
15afbcd0
RD
1080SWIGSTATICINLINE(double)
1081SWIG_AsDouble(PyObject *obj)
994141e6 1082{
15afbcd0 1083 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
994141e6 1084#if HAVE_LONG_LONG
15afbcd0 1085 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
994141e6 1086#else
15afbcd0 1087 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
994141e6
RD
1088#endif
1089 if (PyErr_Occurred()) {
1090 PyErr_Clear();
1091 PyErr_SetString(PyExc_TypeError, "a double is expected");
1092 }
15afbcd0
RD
1093 return val;
1094}
1095
1096
1097SWIGSTATICINLINE(int)
1098SWIG_CheckDouble(PyObject* obj)
1099{
1100 SWIG_AsDouble(obj);
1101 if (PyErr_Occurred()) {
1102 PyErr_Clear();
1103 return 0;
1104 } else {
1105 return 1;
1106 }
994141e6
RD
1107}
1108
d14a1e28
RD
1109double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1110 double rv;
1111 self->Read(key, &rv, defaultVal);
1112 return rv;
1113 }
1114bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1115 bool rv;
1116 self->Read(key, &rv, defaultVal);
1117 return rv;
1118 }
1119
1120#include <wx/datetime.h>
1121
d14a1e28 1122
33b885b9
RD
1123 static const wxString wxPyDateFormatStr(wxT("%c"));
1124 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
d14a1e28
RD
1125
1126#define LOCAL_TZ wxDateTime::Local
1127
994141e6 1128
15afbcd0
RD
1129#if UINT_MAX < LONG_MAX
1130#define SWIG_FromUnsignedInt SWIG_FromLong
1131#else
1132#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1133#endif
994141e6 1134
d14a1e28
RD
1135wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1136wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1137wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1138wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1139wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
22faec7d
RD
1140bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; }
1141bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; }
1142bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; }
1143bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; }
1144bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; }
1145bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
1146int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1147 const wxChar* rv;
1148 const wxChar* _date = date;
1149 rv = self->ParseRfc822Date(_date);
1150 if (rv == NULL) return -1;
1151 return rv - _date;
1152 }
1153int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1154 const wxChar* rv;
1155 const wxChar* _date = date;
1156 rv = self->ParseFormat(_date, format, dateDef);
1157 if (rv == NULL) return -1;
1158 return rv - _date;
1159 }
1160int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1161 const wxChar* rv;
1162 const wxChar* _datetime = datetime;
1163 rv = self->ParseDateTime(_datetime);
1164 if (rv == NULL) return -1;
1165 return rv - _datetime;
1166 }
1167int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1168 const wxChar* rv;
1169 const wxChar* _date = date;
1170 rv = self->ParseDate(_date);
1171 if (rv == NULL) return -1;
1172 return rv - _date;
1173 }
1174int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1175 const wxChar* rv;
1176 const wxChar* _time = time;
1177 rv = self->ParseTime(_time);
1178 if (rv == NULL) return -1;
1179 return rv - _time;
1180 }
1181wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1182wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1183wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1184wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
22faec7d
RD
1185bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1186bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1187bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1188bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1189bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1190bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
1191wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1192wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1193wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1194wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
22faec7d
RD
1195bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1196bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
d14a1e28
RD
1197
1198#include <wx/dataobj.h>
1199
1200 // Create a new class for wxPython to use
1201class wxPyDataObjectSimple : public wxDataObjectSimple {
1202public:
1203 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1204 : wxDataObjectSimple(format) {}
1205
1206 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1207 bool GetDataHere(void *buf) const;
1208 bool SetData(size_t len, const void *buf) const;
1209 PYPRIVATE;
1210};
1211
1212IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1213
1214bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1215 // We need to get the data for this object and write it to buf. I think
1216 // the best way to do this for wxPython is to have the Python method
1217 // return either a string or None and then act appropriately with the
1218 // C++ version.
1219
e811c8ce 1220 bool rval = False;
d14a1e28
RD
1221 wxPyBeginBlockThreads();
1222 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1223 PyObject* ro;
1224 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1225 if (ro) {
1226 rval = (ro != Py_None && PyString_Check(ro));
1227 if (rval)
1228 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1229 Py_DECREF(ro);
1230 }
1231 }
1232 wxPyEndBlockThreads();
1233 return rval;
1234}
1235
1236bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1237 // For this one we simply need to make a string from buf and len
1238 // and send it to the Python method.
e811c8ce 1239 bool rval = False;
d14a1e28
RD
1240 wxPyBeginBlockThreads();
1241 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1242 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1243 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1244 Py_DECREF(data);
1245 }
1246 wxPyEndBlockThreads();
1247 return rval;
1248}
1249
1250 // Create a new class for wxPython to use
1251class wxPyTextDataObject : public wxTextDataObject {
1252public:
1253 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1254 : wxTextDataObject(text) {}
1255
1256 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1257 DEC_PYCALLBACK_STRING__const(GetText);
1258 DEC_PYCALLBACK__STRING(SetText);
1259 PYPRIVATE;
1260};
1261
1262IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1263IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1264IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1265
1266
1267 // Create a new class for wxPython to use
1268class wxPyBitmapDataObject : public wxBitmapDataObject {
1269public:
1270 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1271 : wxBitmapDataObject(bitmap) {}
1272
1273 wxBitmap GetBitmap() const;
1274 void SetBitmap(const wxBitmap& bitmap);
1275 PYPRIVATE;
1276};
1277
1278wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1279 wxBitmap* rval = &wxNullBitmap;
1280 wxPyBeginBlockThreads();
1281 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1282 PyObject* ro;
1283 wxBitmap* ptr;
1284 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1285 if (ro) {
1286 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1287 rval = ptr;
1288 Py_DECREF(ro);
1289 }
1290 }
1291 wxPyEndBlockThreads();
1292 return *rval;
1293}
1294
1295void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1296 wxPyBeginBlockThreads();
1297 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
e811c8ce 1298 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
d14a1e28
RD
1299 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1300 Py_DECREF(bo);
1301 }
1302 wxPyEndBlockThreads();
1303}
1304
1305void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1306 if (PyString_Check(data)) {
1307 // for Python we just call SetData here since we always need it to make a copy.
1308 self->SetData(PyString_Size(data), PyString_AsString(data));
1309 }
1310 else {
1311 // raise a TypeError if not a string
1312 PyErr_SetString(PyExc_TypeError, "String expected.");
1313 }
1314 }
1315bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1316 if (PyString_Check(data)) {
1317 return self->SetData(PyString_Size(data), PyString_AsString(data));
1318 }
1319 else {
1320 // raise a TypeError if not a string
1321 PyErr_SetString(PyExc_TypeError, "String expected.");
e811c8ce 1322 return False;
d14a1e28
RD
1323 }
1324 }
1325PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1326 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1327 }
1328
1329class wxMetafileDataObject : public wxDataObjectSimple
1330{
1331public:
39f61e25 1332 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
d14a1e28
RD
1333};
1334
1335
d14a1e28
RD
1336IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1337
1338
d14a1e28
RD
1339IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1340IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1341IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1342IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1343IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1344
1345
d14a1e28
RD
1346class wxPyTextDropTarget : public wxTextDropTarget {
1347public:
1348 wxPyTextDropTarget() {}
1349
1350 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1351
1352 DEC_PYCALLBACK__(OnLeave);
1353 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1354 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1355 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1356 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1357
1358 PYPRIVATE;
1359};
1360
1361IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1362IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1363IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1364IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1365IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1366IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1367
1368
1369
1370class wxPyFileDropTarget : public wxFileDropTarget {
1371public:
1372 wxPyFileDropTarget() {}
1373
1374 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1375
1376 DEC_PYCALLBACK__(OnLeave);
1377 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1378 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1379 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1380 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1381
1382 PYPRIVATE;
1383};
1384
1385bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1386 const wxArrayString& filenames) {
e811c8ce 1387 bool rval = False;
d14a1e28
RD
1388 wxPyBeginBlockThreads();
1389 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1390 PyObject* list = wxArrayString2PyList_helper(filenames);
1391 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1392 Py_DECREF(list);
1393 }
1394 wxPyEndBlockThreads();
1395 return rval;
1396}
1397
1398
1399
1400IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1401IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1402IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1403IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1404IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1405
1406
1407
1408
1409bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1410#ifdef __cplusplus
1411extern "C" {
1412#endif
1413static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1414 PyObject *resultobj;
1415 int arg1 ;
1416 wxColour result;
994141e6 1417 PyObject * obj0 = 0 ;
d14a1e28
RD
1418 char *kwnames[] = {
1419 (char *) "index", NULL
1420 };
1421
994141e6 1422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
15afbcd0
RD
1423 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1424 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1425 {
1426 PyThreadState* __tstate = wxPyBeginAllowThreads();
1427 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1428
1429 wxPyEndAllowThreads(__tstate);
1430 if (PyErr_Occurred()) SWIG_fail;
1431 }
1432 {
1433 wxColour * resultptr;
1434 resultptr = new wxColour((wxColour &) result);
15afbcd0 1435 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
d14a1e28
RD
1436 }
1437 return resultobj;
1438 fail:
1439 return NULL;
1440}
1441
1442
1443static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject *resultobj;
1445 int arg1 ;
1446 wxFont result;
994141e6 1447 PyObject * obj0 = 0 ;
d14a1e28
RD
1448 char *kwnames[] = {
1449 (char *) "index", NULL
1450 };
1451
994141e6 1452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
15afbcd0
RD
1453 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1454 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1455 {
1456 PyThreadState* __tstate = wxPyBeginAllowThreads();
1457 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1458
1459 wxPyEndAllowThreads(__tstate);
1460 if (PyErr_Occurred()) SWIG_fail;
1461 }
1462 {
1463 wxFont * resultptr;
1464 resultptr = new wxFont((wxFont &) result);
15afbcd0 1465 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
d14a1e28
RD
1466 }
1467 return resultobj;
1468 fail:
1469 return NULL;
1470}
1471
1472
1473static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1474 PyObject *resultobj;
1475 int arg1 ;
1476 int result;
994141e6 1477 PyObject * obj0 = 0 ;
d14a1e28
RD
1478 char *kwnames[] = {
1479 (char *) "index", NULL
1480 };
1481
994141e6 1482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
15afbcd0
RD
1483 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1484 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1485 {
1486 PyThreadState* __tstate = wxPyBeginAllowThreads();
1487 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1488
1489 wxPyEndAllowThreads(__tstate);
1490 if (PyErr_Occurred()) SWIG_fail;
1491 }
15afbcd0 1492 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1493 return resultobj;
1494 fail:
1495 return NULL;
1496}
1497
1498
1499static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 int arg1 ;
1502 bool result;
994141e6 1503 PyObject * obj0 = 0 ;
d14a1e28
RD
1504 char *kwnames[] = {
1505 (char *) "index", NULL
1506 };
1507
994141e6 1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
15afbcd0
RD
1509 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1510 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) SWIG_fail;
1517 }
4d5c3d91 1518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1519 return resultobj;
1520 fail:
1521 return NULL;
1522}
1523
1524
1525static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1526 PyObject *resultobj;
1527 int result;
1528 char *kwnames[] = {
1529 NULL
1530 };
1531
1532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1533 {
1534 PyThreadState* __tstate = wxPyBeginAllowThreads();
1535 result = (int)wxSystemSettings::GetScreenType();
1536
1537 wxPyEndAllowThreads(__tstate);
1538 if (PyErr_Occurred()) SWIG_fail;
1539 }
15afbcd0 1540 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1541 return resultobj;
1542 fail:
1543 return NULL;
1544}
1545
1546
1547static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1548 PyObject *resultobj;
1549 int arg1 ;
994141e6 1550 PyObject * obj0 = 0 ;
d14a1e28
RD
1551 char *kwnames[] = {
1552 (char *) "screen", NULL
1553 };
1554
994141e6 1555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
15afbcd0
RD
1556 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1557 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1558 {
1559 PyThreadState* __tstate = wxPyBeginAllowThreads();
1560 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1561
1562 wxPyEndAllowThreads(__tstate);
1563 if (PyErr_Occurred()) SWIG_fail;
1564 }
1565 Py_INCREF(Py_None); resultobj = Py_None;
1566 return resultobj;
1567 fail:
1568 return NULL;
1569}
1570
1571
1572static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1573 PyObject *obj;
1574 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1575 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1576 Py_INCREF(obj);
1577 return Py_BuildValue((char *)"");
1578}
1579static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1580 PyObject *resultobj;
1581 wxSystemOptions *result;
1582 char *kwnames[] = {
1583 NULL
1584 };
1585
1586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1587 {
1588 PyThreadState* __tstate = wxPyBeginAllowThreads();
1589 result = (wxSystemOptions *)new wxSystemOptions();
1590
1591 wxPyEndAllowThreads(__tstate);
1592 if (PyErr_Occurred()) SWIG_fail;
1593 }
15afbcd0 1594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
d14a1e28
RD
1595 return resultobj;
1596 fail:
1597 return NULL;
1598}
1599
1600
1601static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1602 PyObject *resultobj;
1603 wxString *arg1 = 0 ;
1604 wxString *arg2 = 0 ;
e811c8ce
RD
1605 bool temp1 = False ;
1606 bool temp2 = False ;
d14a1e28
RD
1607 PyObject * obj0 = 0 ;
1608 PyObject * obj1 = 0 ;
1609 char *kwnames[] = {
1610 (char *) "name",(char *) "value", NULL
1611 };
1612
1613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1614 {
1615 arg1 = wxString_in_helper(obj0);
1616 if (arg1 == NULL) SWIG_fail;
e811c8ce 1617 temp1 = True;
d14a1e28
RD
1618 }
1619 {
1620 arg2 = wxString_in_helper(obj1);
1621 if (arg2 == NULL) SWIG_fail;
e811c8ce 1622 temp2 = True;
d14a1e28
RD
1623 }
1624 {
1625 PyThreadState* __tstate = wxPyBeginAllowThreads();
1626 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1627
1628 wxPyEndAllowThreads(__tstate);
1629 if (PyErr_Occurred()) SWIG_fail;
1630 }
1631 Py_INCREF(Py_None); resultobj = Py_None;
1632 {
1633 if (temp1)
1634 delete arg1;
1635 }
1636 {
1637 if (temp2)
1638 delete arg2;
1639 }
1640 return resultobj;
1641 fail:
1642 {
1643 if (temp1)
1644 delete arg1;
1645 }
1646 {
1647 if (temp2)
1648 delete arg2;
1649 }
1650 return NULL;
1651}
1652
1653
1654static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1655 PyObject *resultobj;
1656 wxString *arg1 = 0 ;
1657 int arg2 ;
e811c8ce 1658 bool temp1 = False ;
d14a1e28 1659 PyObject * obj0 = 0 ;
994141e6 1660 PyObject * obj1 = 0 ;
d14a1e28
RD
1661 char *kwnames[] = {
1662 (char *) "name",(char *) "value", NULL
1663 };
1664
994141e6 1665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
1666 {
1667 arg1 = wxString_in_helper(obj0);
1668 if (arg1 == NULL) SWIG_fail;
e811c8ce 1669 temp1 = True;
d14a1e28 1670 }
15afbcd0
RD
1671 arg2 = (int) SWIG_AsInt(obj1);
1672 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1673 {
1674 PyThreadState* __tstate = wxPyBeginAllowThreads();
1675 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1676
1677 wxPyEndAllowThreads(__tstate);
1678 if (PyErr_Occurred()) SWIG_fail;
1679 }
1680 Py_INCREF(Py_None); resultobj = Py_None;
1681 {
1682 if (temp1)
1683 delete arg1;
1684 }
1685 return resultobj;
1686 fail:
1687 {
1688 if (temp1)
1689 delete arg1;
1690 }
1691 return NULL;
1692}
1693
1694
1695static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1696 PyObject *resultobj;
1697 wxString *arg1 = 0 ;
1698 wxString result;
e811c8ce 1699 bool temp1 = False ;
d14a1e28
RD
1700 PyObject * obj0 = 0 ;
1701 char *kwnames[] = {
1702 (char *) "name", NULL
1703 };
1704
1705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1706 {
1707 arg1 = wxString_in_helper(obj0);
1708 if (arg1 == NULL) SWIG_fail;
e811c8ce 1709 temp1 = True;
d14a1e28
RD
1710 }
1711 {
1712 PyThreadState* __tstate = wxPyBeginAllowThreads();
1713 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1714
1715 wxPyEndAllowThreads(__tstate);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 }
1718 {
1719#if wxUSE_UNICODE
1720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1721#else
1722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1723#endif
1724 }
1725 {
1726 if (temp1)
1727 delete arg1;
1728 }
1729 return resultobj;
1730 fail:
1731 {
1732 if (temp1)
1733 delete arg1;
1734 }
1735 return NULL;
1736}
1737
1738
1739static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1740 PyObject *resultobj;
1741 wxString *arg1 = 0 ;
1742 int result;
e811c8ce 1743 bool temp1 = False ;
d14a1e28
RD
1744 PyObject * obj0 = 0 ;
1745 char *kwnames[] = {
1746 (char *) "name", NULL
1747 };
1748
1749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1750 {
1751 arg1 = wxString_in_helper(obj0);
1752 if (arg1 == NULL) SWIG_fail;
e811c8ce 1753 temp1 = True;
d14a1e28
RD
1754 }
1755 {
1756 PyThreadState* __tstate = wxPyBeginAllowThreads();
1757 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1758
1759 wxPyEndAllowThreads(__tstate);
1760 if (PyErr_Occurred()) SWIG_fail;
1761 }
15afbcd0 1762 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
1763 {
1764 if (temp1)
1765 delete arg1;
1766 }
1767 return resultobj;
1768 fail:
1769 {
1770 if (temp1)
1771 delete arg1;
1772 }
1773 return NULL;
1774}
1775
1776
1777static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1778 PyObject *resultobj;
1779 wxString *arg1 = 0 ;
1780 bool result;
e811c8ce 1781 bool temp1 = False ;
d14a1e28
RD
1782 PyObject * obj0 = 0 ;
1783 char *kwnames[] = {
1784 (char *) "name", NULL
1785 };
1786
1787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1788 {
1789 arg1 = wxString_in_helper(obj0);
1790 if (arg1 == NULL) SWIG_fail;
e811c8ce 1791 temp1 = True;
d14a1e28
RD
1792 }
1793 {
1794 PyThreadState* __tstate = wxPyBeginAllowThreads();
1795 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1796
1797 wxPyEndAllowThreads(__tstate);
1798 if (PyErr_Occurred()) SWIG_fail;
1799 }
4d5c3d91 1800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1801 {
1802 if (temp1)
1803 delete arg1;
1804 }
1805 return resultobj;
1806 fail:
1807 {
1808 if (temp1)
1809 delete arg1;
1810 }
1811 return NULL;
1812}
1813
1814
1815static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1816 PyObject *obj;
1817 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1818 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1819 Py_INCREF(obj);
1820 return Py_BuildValue((char *)"");
1821}
b2dc1044
RD
1822static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1823 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1824 return 1;
1825}
1826
1827
1828static PyObject *_wrap_FileSelectorPromptStr_get() {
1829 PyObject *pyobj;
1830
1831 {
1832#if wxUSE_UNICODE
1833 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1834#else
1835 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1836#endif
1837 }
1838 return pyobj;
1839}
1840
1841
1842static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
1843 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1844 return 1;
1845}
1846
1847
1848static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1849 PyObject *pyobj;
1850
1851 {
1852#if wxUSE_UNICODE
1853 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1854#else
1855 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1856#endif
1857 }
1858 return pyobj;
1859}
1860
1861
1862static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
1863 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1864 return 1;
1865}
1866
1867
1868static PyObject *_wrap_DirSelectorPromptStr_get() {
1869 PyObject *pyobj;
1870
1871 {
1872#if wxUSE_UNICODE
1873 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1874#else
1875 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1876#endif
1877 }
1878 return pyobj;
1879}
1880
1881
d14a1e28
RD
1882static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject *resultobj;
1884 long result;
1885 char *kwnames[] = {
1886 NULL
1887 };
1888
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1890 {
1891 PyThreadState* __tstate = wxPyBeginAllowThreads();
1892 result = (long)wxNewId();
1893
1894 wxPyEndAllowThreads(__tstate);
1895 if (PyErr_Occurred()) SWIG_fail;
1896 }
15afbcd0 1897 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
1898 return resultobj;
1899 fail:
1900 return NULL;
1901}
1902
1903
1904static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1905 PyObject *resultobj;
1906 long arg1 ;
994141e6 1907 PyObject * obj0 = 0 ;
d14a1e28
RD
1908 char *kwnames[] = {
1909 (char *) "id", NULL
1910 };
1911
994141e6 1912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
15afbcd0
RD
1913 arg1 = (long) SWIG_AsLong(obj0);
1914 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 wxRegisterId(arg1);
1918
1919 wxPyEndAllowThreads(__tstate);
1920 if (PyErr_Occurred()) SWIG_fail;
1921 }
1922 Py_INCREF(Py_None); resultobj = Py_None;
1923 return resultobj;
1924 fail:
1925 return NULL;
1926}
1927
1928
1929static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject *resultobj;
1931 long result;
1932 char *kwnames[] = {
1933 NULL
1934 };
1935
1936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1937 {
1938 PyThreadState* __tstate = wxPyBeginAllowThreads();
1939 result = (long)wxGetCurrentId();
1940
1941 wxPyEndAllowThreads(__tstate);
1942 if (PyErr_Occurred()) SWIG_fail;
1943 }
15afbcd0 1944 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
1945 return resultobj;
1946 fail:
1947 return NULL;
1948}
1949
1950
1951static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
1952 PyObject *resultobj;
1953 char *kwnames[] = {
1954 NULL
1955 };
1956
1957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1958 {
1959 PyThreadState* __tstate = wxPyBeginAllowThreads();
1960 wxBell();
1961
1962 wxPyEndAllowThreads(__tstate);
1963 if (PyErr_Occurred()) SWIG_fail;
1964 }
1965 Py_INCREF(Py_None); resultobj = Py_None;
1966 return resultobj;
1967 fail:
1968 return NULL;
1969}
1970
1971
1972static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
1973 PyObject *resultobj;
1974 char *kwnames[] = {
1975 NULL
1976 };
1977
1978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
1979 {
1980 PyThreadState* __tstate = wxPyBeginAllowThreads();
1981 wxEndBusyCursor();
1982
1983 wxPyEndAllowThreads(__tstate);
1984 if (PyErr_Occurred()) SWIG_fail;
1985 }
1986 Py_INCREF(Py_None); resultobj = Py_None;
1987 return resultobj;
1988 fail:
1989 return NULL;
1990}
1991
1992
1993static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject *resultobj;
e811c8ce 1995 bool arg1 = (bool) True ;
d14a1e28
RD
1996 long result;
1997 PyObject * obj0 = 0 ;
1998 char *kwnames[] = {
1999 (char *) "resetTimer", NULL
2000 };
2001
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2003 if (obj0) {
15afbcd0
RD
2004 arg1 = (bool) SWIG_AsBool(obj0);
2005 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2006 }
2007 {
2008 PyThreadState* __tstate = wxPyBeginAllowThreads();
2009 result = (long)wxGetElapsedTime(arg1);
2010
2011 wxPyEndAllowThreads(__tstate);
2012 if (PyErr_Occurred()) SWIG_fail;
2013 }
15afbcd0 2014 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
2015 return resultobj;
2016 fail:
2017 return NULL;
2018}
2019
2020
2021static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2022 PyObject *resultobj;
2023 int *arg1 = (int *) 0 ;
2024 int *arg2 = (int *) 0 ;
2025 int temp1 ;
2026 int temp2 ;
2027 char *kwnames[] = {
2028 NULL
2029 };
2030
2031 arg1 = &temp1;
2032 arg2 = &temp2;
2033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2034 {
2035 PyThreadState* __tstate = wxPyBeginAllowThreads();
2036 wxGetMousePosition(arg1,arg2);
2037
2038 wxPyEndAllowThreads(__tstate);
2039 if (PyErr_Occurred()) SWIG_fail;
2040 }
2041 Py_INCREF(Py_None); resultobj = Py_None;
2042 {
2043 PyObject *o = PyInt_FromLong((long) (*arg1));
2044 resultobj = t_output_helper(resultobj,o);
2045 }
2046 {
2047 PyObject *o = PyInt_FromLong((long) (*arg2));
2048 resultobj = t_output_helper(resultobj,o);
2049 }
2050 return resultobj;
2051 fail:
2052 return NULL;
2053}
2054
2055
2056static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2057 PyObject *resultobj;
2058 bool result;
2059 char *kwnames[] = {
2060 NULL
2061 };
2062
2063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2064 {
2065 PyThreadState* __tstate = wxPyBeginAllowThreads();
2066 result = (bool)wxIsBusy();
2067
2068 wxPyEndAllowThreads(__tstate);
2069 if (PyErr_Occurred()) SWIG_fail;
2070 }
4d5c3d91 2071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2072 return resultobj;
2073 fail:
2074 return NULL;
2075}
2076
2077
2078static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2079 PyObject *resultobj;
2080 wxString result;
2081 char *kwnames[] = {
2082 NULL
2083 };
2084
2085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2086 {
2087 PyThreadState* __tstate = wxPyBeginAllowThreads();
2088 result = wxNow();
2089
2090 wxPyEndAllowThreads(__tstate);
2091 if (PyErr_Occurred()) SWIG_fail;
2092 }
2093 {
2094#if wxUSE_UNICODE
2095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2096#else
2097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2098#endif
2099 }
2100 return resultobj;
2101 fail:
2102 return NULL;
2103}
2104
2105
2106static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2107 PyObject *resultobj;
2108 wxString const &arg1_defvalue = wxPyEmptyString ;
2109 wxString *arg1 = (wxString *) &arg1_defvalue ;
2110 bool result;
e811c8ce 2111 bool temp1 = False ;
d14a1e28
RD
2112 PyObject * obj0 = 0 ;
2113 char *kwnames[] = {
2114 (char *) "command", NULL
2115 };
2116
2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2118 if (obj0) {
2119 {
2120 arg1 = wxString_in_helper(obj0);
2121 if (arg1 == NULL) SWIG_fail;
e811c8ce 2122 temp1 = True;
d14a1e28
RD
2123 }
2124 }
2125 {
2126 PyThreadState* __tstate = wxPyBeginAllowThreads();
2127 result = (bool)wxShell((wxString const &)*arg1);
2128
2129 wxPyEndAllowThreads(__tstate);
2130 if (PyErr_Occurred()) SWIG_fail;
2131 }
4d5c3d91 2132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2133 {
2134 if (temp1)
2135 delete arg1;
2136 }
2137 return resultobj;
2138 fail:
2139 {
2140 if (temp1)
2141 delete arg1;
2142 }
2143 return NULL;
2144}
2145
2146
2147static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2148 PyObject *resultobj;
2149 char *kwnames[] = {
2150 NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2154 {
2155 PyThreadState* __tstate = wxPyBeginAllowThreads();
2156 wxStartTimer();
2157
2158 wxPyEndAllowThreads(__tstate);
2159 if (PyErr_Occurred()) SWIG_fail;
2160 }
2161 Py_INCREF(Py_None); resultobj = Py_None;
2162 return resultobj;
2163 fail:
2164 return NULL;
2165}
2166
2167
2168static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2169 PyObject *resultobj;
2170 int *arg1 = (int *) 0 ;
2171 int *arg2 = (int *) 0 ;
2172 int result;
2173 int temp1 ;
2174 int temp2 ;
2175 char *kwnames[] = {
2176 NULL
2177 };
2178
2179 arg1 = &temp1;
2180 arg2 = &temp2;
2181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2182 {
2183 PyThreadState* __tstate = wxPyBeginAllowThreads();
2184 result = (int)wxGetOsVersion(arg1,arg2);
2185
2186 wxPyEndAllowThreads(__tstate);
2187 if (PyErr_Occurred()) SWIG_fail;
2188 }
15afbcd0 2189 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
2190 {
2191 PyObject *o = PyInt_FromLong((long) (*arg1));
2192 resultobj = t_output_helper(resultobj,o);
2193 }
2194 {
2195 PyObject *o = PyInt_FromLong((long) (*arg2));
2196 resultobj = t_output_helper(resultobj,o);
2197 }
2198 return resultobj;
2199 fail:
2200 return NULL;
2201}
2202
2203
2204static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2205 PyObject *resultobj;
2206 wxString result;
2207 char *kwnames[] = {
2208 NULL
2209 };
2210
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2212 {
2213 PyThreadState* __tstate = wxPyBeginAllowThreads();
2214 result = wxGetOsDescription();
2215
2216 wxPyEndAllowThreads(__tstate);
2217 if (PyErr_Occurred()) SWIG_fail;
2218 }
2219 {
2220#if wxUSE_UNICODE
2221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2222#else
2223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2224#endif
2225 }
2226 return resultobj;
2227 fail:
2228 return NULL;
2229}
2230
2231
2232static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2233 PyObject *resultobj;
2234 long result;
2235 char *kwnames[] = {
2236 NULL
2237 };
2238
2239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2240 {
2241 PyThreadState* __tstate = wxPyBeginAllowThreads();
2242 result = (long)wxGetFreeMemory();
2243
2244 wxPyEndAllowThreads(__tstate);
2245 if (PyErr_Occurred()) SWIG_fail;
2246 }
15afbcd0 2247 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
2248 return resultobj;
2249 fail:
2250 return NULL;
2251}
2252
2253
2254static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2255 PyObject *resultobj;
2256 int arg1 ;
2257 bool result;
994141e6 2258 PyObject * obj0 = 0 ;
d14a1e28
RD
2259 char *kwnames[] = {
2260 (char *) "wFlags", NULL
2261 };
2262
994141e6 2263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
15afbcd0
RD
2264 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2265 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2266 {
2267 PyThreadState* __tstate = wxPyBeginAllowThreads();
2268 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2269
2270 wxPyEndAllowThreads(__tstate);
2271 if (PyErr_Occurred()) SWIG_fail;
2272 }
4d5c3d91 2273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2274 return resultobj;
2275 fail:
2276 return NULL;
2277}
2278
2279
2280static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2281 PyObject *resultobj;
2282 int arg1 ;
994141e6 2283 PyObject * obj0 = 0 ;
d14a1e28
RD
2284 char *kwnames[] = {
2285 (char *) "secs", NULL
2286 };
2287
994141e6 2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
15afbcd0
RD
2289 arg1 = (int) SWIG_AsInt(obj0);
2290 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2291 {
2292 PyThreadState* __tstate = wxPyBeginAllowThreads();
2293 wxSleep(arg1);
2294
2295 wxPyEndAllowThreads(__tstate);
2296 if (PyErr_Occurred()) SWIG_fail;
2297 }
2298 Py_INCREF(Py_None); resultobj = Py_None;
2299 return resultobj;
2300 fail:
2301 return NULL;
2302}
2303
2304
2305static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2306 PyObject *resultobj;
2307 unsigned long arg1 ;
2308 PyObject * obj0 = 0 ;
2309 char *kwnames[] = {
2310 (char *) "milliseconds", NULL
2311 };
2312
2313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
15afbcd0
RD
2314 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2315 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2316 {
2317 PyThreadState* __tstate = wxPyBeginAllowThreads();
2318 wxUsleep(arg1);
2319
2320 wxPyEndAllowThreads(__tstate);
2321 if (PyErr_Occurred()) SWIG_fail;
2322 }
2323 Py_INCREF(Py_None); resultobj = Py_None;
2324 return resultobj;
2325 fail:
2326 return NULL;
2327}
2328
2329
2330static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2331 PyObject *resultobj;
2332 bool arg1 ;
2333 PyObject * obj0 = 0 ;
2334 char *kwnames[] = {
2335 (char *) "enable", NULL
2336 };
2337
2338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
15afbcd0
RD
2339 arg1 = (bool) SWIG_AsBool(obj0);
2340 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
2341 {
2342 PyThreadState* __tstate = wxPyBeginAllowThreads();
2343 wxEnableTopLevelWindows(arg1);
2344
2345 wxPyEndAllowThreads(__tstate);
2346 if (PyErr_Occurred()) SWIG_fail;
2347 }
2348 Py_INCREF(Py_None); resultobj = Py_None;
2349 return resultobj;
2350 fail:
2351 return NULL;
2352}
2353
2354
2355static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2356 PyObject *resultobj;
2357 wxString *arg1 = 0 ;
2358 wxString result;
e811c8ce 2359 bool temp1 = False ;
d14a1e28
RD
2360 PyObject * obj0 = 0 ;
2361 char *kwnames[] = {
2362 (char *) "in", NULL
2363 };
2364
2365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2366 {
2367 arg1 = wxString_in_helper(obj0);
2368 if (arg1 == NULL) SWIG_fail;
e811c8ce 2369 temp1 = True;
d14a1e28
RD
2370 }
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 result = wxStripMenuCodes((wxString const &)*arg1);
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 {
2379#if wxUSE_UNICODE
2380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2381#else
2382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2383#endif
2384 }
2385 {
2386 if (temp1)
2387 delete arg1;
2388 }
2389 return resultobj;
2390 fail:
2391 {
2392 if (temp1)
2393 delete arg1;
2394 }
2395 return NULL;
2396}
2397
2398
2399static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2400 PyObject *resultobj;
2401 wxString result;
2402 char *kwnames[] = {
2403 NULL
2404 };
2405
2406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2407 {
2408 PyThreadState* __tstate = wxPyBeginAllowThreads();
2409 result = wxGetEmailAddress();
2410
2411 wxPyEndAllowThreads(__tstate);
2412 if (PyErr_Occurred()) SWIG_fail;
2413 }
2414 {
2415#if wxUSE_UNICODE
2416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2417#else
2418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2419#endif
2420 }
2421 return resultobj;
2422 fail:
2423 return NULL;
2424}
2425
2426
2427static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2428 PyObject *resultobj;
2429 wxString result;
2430 char *kwnames[] = {
2431 NULL
2432 };
2433
2434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2435 {
2436 PyThreadState* __tstate = wxPyBeginAllowThreads();
2437 result = wxGetHostName();
2438
2439 wxPyEndAllowThreads(__tstate);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 }
2442 {
2443#if wxUSE_UNICODE
2444 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2445#else
2446 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2447#endif
2448 }
2449 return resultobj;
2450 fail:
2451 return NULL;
2452}
2453
2454
2455static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2456 PyObject *resultobj;
2457 wxString result;
2458 char *kwnames[] = {
2459 NULL
2460 };
2461
2462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2463 {
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
2465 result = wxGetFullHostName();
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) SWIG_fail;
2469 }
2470 {
2471#if wxUSE_UNICODE
2472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2473#else
2474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2475#endif
2476 }
2477 return resultobj;
2478 fail:
2479 return NULL;
2480}
2481
2482
2483static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2484 PyObject *resultobj;
2485 wxString result;
2486 char *kwnames[] = {
2487 NULL
2488 };
2489
2490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 result = wxGetUserId();
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
2498 {
2499#if wxUSE_UNICODE
2500 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2501#else
2502 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2503#endif
2504 }
2505 return resultobj;
2506 fail:
2507 return NULL;
2508}
2509
2510
2511static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2512 PyObject *resultobj;
2513 wxString result;
2514 char *kwnames[] = {
2515 NULL
2516 };
2517
2518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2519 {
2520 PyThreadState* __tstate = wxPyBeginAllowThreads();
2521 result = wxGetUserName();
2522
2523 wxPyEndAllowThreads(__tstate);
2524 if (PyErr_Occurred()) SWIG_fail;
2525 }
2526 {
2527#if wxUSE_UNICODE
2528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2529#else
2530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2531#endif
2532 }
2533 return resultobj;
2534 fail:
2535 return NULL;
2536}
2537
2538
2539static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2540 PyObject *resultobj;
2541 wxString result;
2542 char *kwnames[] = {
2543 NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2547 {
2548 PyThreadState* __tstate = wxPyBeginAllowThreads();
2549 result = wxGetHomeDir();
2550
2551 wxPyEndAllowThreads(__tstate);
2552 if (PyErr_Occurred()) SWIG_fail;
2553 }
2554 {
2555#if wxUSE_UNICODE
2556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2557#else
2558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2559#endif
2560 }
2561 return resultobj;
2562 fail:
2563 return NULL;
2564}
2565
2566
2567static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2568 PyObject *resultobj;
2569 wxString const &arg1_defvalue = wxPyEmptyString ;
2570 wxString *arg1 = (wxString *) &arg1_defvalue ;
2571 wxString result;
e811c8ce 2572 bool temp1 = False ;
d14a1e28
RD
2573 PyObject * obj0 = 0 ;
2574 char *kwnames[] = {
2575 (char *) "user", NULL
2576 };
2577
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2579 if (obj0) {
2580 {
2581 arg1 = wxString_in_helper(obj0);
2582 if (arg1 == NULL) SWIG_fail;
e811c8ce 2583 temp1 = True;
d14a1e28
RD
2584 }
2585 }
2586 {
2587 PyThreadState* __tstate = wxPyBeginAllowThreads();
2588 result = wxGetUserHome((wxString const &)*arg1);
2589
2590 wxPyEndAllowThreads(__tstate);
2591 if (PyErr_Occurred()) SWIG_fail;
2592 }
2593 {
2594#if wxUSE_UNICODE
2595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2596#else
2597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2598#endif
2599 }
2600 {
2601 if (temp1)
2602 delete arg1;
2603 }
2604 return resultobj;
2605 fail:
2606 {
2607 if (temp1)
2608 delete arg1;
2609 }
2610 return NULL;
2611}
2612
2613
2614static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 unsigned long result;
2617 char *kwnames[] = {
2618 NULL
2619 };
2620
2621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2622 {
2623 PyThreadState* __tstate = wxPyBeginAllowThreads();
2624 result = (unsigned long)wxGetProcessId();
2625
2626 wxPyEndAllowThreads(__tstate);
2627 if (PyErr_Occurred()) SWIG_fail;
2628 }
15afbcd0 2629 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
2630 return resultobj;
2631 fail:
2632 return NULL;
2633}
2634
2635
2636static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2637 PyObject *resultobj;
2638 char *kwnames[] = {
2639 NULL
2640 };
2641
2642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2643 {
2644 PyThreadState* __tstate = wxPyBeginAllowThreads();
2645 wxTrap();
2646
2647 wxPyEndAllowThreads(__tstate);
2648 if (PyErr_Occurred()) SWIG_fail;
2649 }
2650 Py_INCREF(Py_None); resultobj = Py_None;
2651 return resultobj;
2652 fail:
2653 return NULL;
2654}
2655
2656
2657static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2658 PyObject *resultobj;
2659 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2660 wxString *arg1 = (wxString *) &arg1_defvalue ;
2661 wxString const &arg2_defvalue = wxPyEmptyString ;
2662 wxString *arg2 = (wxString *) &arg2_defvalue ;
2663 wxString const &arg3_defvalue = wxPyEmptyString ;
2664 wxString *arg3 = (wxString *) &arg3_defvalue ;
2665 wxString const &arg4_defvalue = wxPyEmptyString ;
2666 wxString *arg4 = (wxString *) &arg4_defvalue ;
2667 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2668 wxString *arg5 = (wxString *) &arg5_defvalue ;
2669 int arg6 = (int) 0 ;
2670 wxWindow *arg7 = (wxWindow *) NULL ;
2671 int arg8 = (int) -1 ;
2672 int arg9 = (int) -1 ;
2673 wxString result;
e811c8ce
RD
2674 bool temp1 = False ;
2675 bool temp2 = False ;
2676 bool temp3 = False ;
2677 bool temp4 = False ;
2678 bool temp5 = False ;
d14a1e28
RD
2679 PyObject * obj0 = 0 ;
2680 PyObject * obj1 = 0 ;
2681 PyObject * obj2 = 0 ;
2682 PyObject * obj3 = 0 ;
2683 PyObject * obj4 = 0 ;
994141e6 2684 PyObject * obj5 = 0 ;
d14a1e28 2685 PyObject * obj6 = 0 ;
994141e6
RD
2686 PyObject * obj7 = 0 ;
2687 PyObject * obj8 = 0 ;
d14a1e28
RD
2688 char *kwnames[] = {
2689 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2690 };
2691
994141e6 2692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d14a1e28
RD
2693 if (obj0) {
2694 {
2695 arg1 = wxString_in_helper(obj0);
2696 if (arg1 == NULL) SWIG_fail;
e811c8ce 2697 temp1 = True;
d14a1e28
RD
2698 }
2699 }
2700 if (obj1) {
2701 {
2702 arg2 = wxString_in_helper(obj1);
2703 if (arg2 == NULL) SWIG_fail;
e811c8ce 2704 temp2 = True;
d14a1e28
RD
2705 }
2706 }
2707 if (obj2) {
2708 {
2709 arg3 = wxString_in_helper(obj2);
2710 if (arg3 == NULL) SWIG_fail;
e811c8ce 2711 temp3 = True;
d14a1e28
RD
2712 }
2713 }
2714 if (obj3) {
2715 {
2716 arg4 = wxString_in_helper(obj3);
2717 if (arg4 == NULL) SWIG_fail;
e811c8ce 2718 temp4 = True;
d14a1e28
RD
2719 }
2720 }
2721 if (obj4) {
2722 {
2723 arg5 = wxString_in_helper(obj4);
2724 if (arg5 == NULL) SWIG_fail;
e811c8ce 2725 temp5 = True;
d14a1e28
RD
2726 }
2727 }
994141e6 2728 if (obj5) {
15afbcd0
RD
2729 arg6 = (int) SWIG_AsInt(obj5);
2730 if (PyErr_Occurred()) SWIG_fail;
994141e6 2731 }
d14a1e28 2732 if (obj6) {
15afbcd0
RD
2733 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 2735 }
994141e6 2736 if (obj7) {
15afbcd0
RD
2737 arg8 = (int) SWIG_AsInt(obj7);
2738 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
2739 }
2740 if (obj8) {
15afbcd0
RD
2741 arg9 = (int) SWIG_AsInt(obj8);
2742 if (PyErr_Occurred()) SWIG_fail;
994141e6 2743 }
d14a1e28
RD
2744 {
2745 PyThreadState* __tstate = wxPyBeginAllowThreads();
2746 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2747
2748 wxPyEndAllowThreads(__tstate);
2749 if (PyErr_Occurred()) SWIG_fail;
2750 }
2751 {
2752#if wxUSE_UNICODE
2753 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2754#else
2755 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2756#endif
2757 }
2758 {
2759 if (temp1)
2760 delete arg1;
2761 }
2762 {
2763 if (temp2)
2764 delete arg2;
2765 }
2766 {
2767 if (temp3)
2768 delete arg3;
2769 }
2770 {
2771 if (temp4)
2772 delete arg4;
2773 }
2774 {
2775 if (temp5)
2776 delete arg5;
2777 }
2778 return resultobj;
2779 fail:
2780 {
2781 if (temp1)
2782 delete arg1;
2783 }
2784 {
2785 if (temp2)
2786 delete arg2;
2787 }
2788 {
2789 if (temp3)
2790 delete arg3;
2791 }
2792 {
2793 if (temp4)
2794 delete arg4;
2795 }
2796 {
2797 if (temp5)
2798 delete arg5;
2799 }
2800 return NULL;
2801}
2802
2803
2804static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2805 PyObject *resultobj;
2806 wxString *arg1 = 0 ;
2807 wxString *arg2 = 0 ;
2808 wxString const &arg3_defvalue = wxPyEmptyString ;
2809 wxString *arg3 = (wxString *) &arg3_defvalue ;
2810 wxWindow *arg4 = (wxWindow *) NULL ;
2811 wxString result;
e811c8ce
RD
2812 bool temp1 = False ;
2813 bool temp2 = False ;
2814 bool temp3 = False ;
d14a1e28
RD
2815 PyObject * obj0 = 0 ;
2816 PyObject * obj1 = 0 ;
2817 PyObject * obj2 = 0 ;
2818 PyObject * obj3 = 0 ;
2819 char *kwnames[] = {
2820 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2821 };
2822
2823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2824 {
2825 arg1 = wxString_in_helper(obj0);
2826 if (arg1 == NULL) SWIG_fail;
e811c8ce 2827 temp1 = True;
d14a1e28
RD
2828 }
2829 {
2830 arg2 = wxString_in_helper(obj1);
2831 if (arg2 == NULL) SWIG_fail;
e811c8ce 2832 temp2 = True;
d14a1e28
RD
2833 }
2834 if (obj2) {
2835 {
2836 arg3 = wxString_in_helper(obj2);
2837 if (arg3 == NULL) SWIG_fail;
e811c8ce 2838 temp3 = True;
d14a1e28
RD
2839 }
2840 }
2841 if (obj3) {
15afbcd0
RD
2842 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2844 }
2845 {
2846 PyThreadState* __tstate = wxPyBeginAllowThreads();
2847 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2848
2849 wxPyEndAllowThreads(__tstate);
2850 if (PyErr_Occurred()) SWIG_fail;
2851 }
2852 {
2853#if wxUSE_UNICODE
2854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2855#else
2856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2857#endif
2858 }
2859 {
2860 if (temp1)
2861 delete arg1;
2862 }
2863 {
2864 if (temp2)
2865 delete arg2;
2866 }
2867 {
2868 if (temp3)
2869 delete arg3;
2870 }
2871 return resultobj;
2872 fail:
2873 {
2874 if (temp1)
2875 delete arg1;
2876 }
2877 {
2878 if (temp2)
2879 delete arg2;
2880 }
2881 {
2882 if (temp3)
2883 delete arg3;
2884 }
2885 return NULL;
2886}
2887
2888
2889static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2890 PyObject *resultobj;
2891 wxString *arg1 = 0 ;
2892 wxString *arg2 = 0 ;
2893 wxString const &arg3_defvalue = wxPyEmptyString ;
2894 wxString *arg3 = (wxString *) &arg3_defvalue ;
2895 wxWindow *arg4 = (wxWindow *) NULL ;
2896 wxString result;
e811c8ce
RD
2897 bool temp1 = False ;
2898 bool temp2 = False ;
2899 bool temp3 = False ;
d14a1e28
RD
2900 PyObject * obj0 = 0 ;
2901 PyObject * obj1 = 0 ;
2902 PyObject * obj2 = 0 ;
2903 PyObject * obj3 = 0 ;
2904 char *kwnames[] = {
2905 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2906 };
2907
2908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2909 {
2910 arg1 = wxString_in_helper(obj0);
2911 if (arg1 == NULL) SWIG_fail;
e811c8ce 2912 temp1 = True;
d14a1e28
RD
2913 }
2914 {
2915 arg2 = wxString_in_helper(obj1);
2916 if (arg2 == NULL) SWIG_fail;
e811c8ce 2917 temp2 = True;
d14a1e28
RD
2918 }
2919 if (obj2) {
2920 {
2921 arg3 = wxString_in_helper(obj2);
2922 if (arg3 == NULL) SWIG_fail;
e811c8ce 2923 temp3 = True;
d14a1e28
RD
2924 }
2925 }
2926 if (obj3) {
15afbcd0
RD
2927 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
2929 }
2930 {
2931 PyThreadState* __tstate = wxPyBeginAllowThreads();
2932 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2933
2934 wxPyEndAllowThreads(__tstate);
2935 if (PyErr_Occurred()) SWIG_fail;
2936 }
2937 {
2938#if wxUSE_UNICODE
2939 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2940#else
2941 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2942#endif
2943 }
2944 {
2945 if (temp1)
2946 delete arg1;
2947 }
2948 {
2949 if (temp2)
2950 delete arg2;
2951 }
2952 {
2953 if (temp3)
2954 delete arg3;
2955 }
2956 return resultobj;
2957 fail:
2958 {
2959 if (temp1)
2960 delete arg1;
2961 }
2962 {
2963 if (temp2)
2964 delete arg2;
2965 }
2966 {
2967 if (temp3)
2968 delete arg3;
2969 }
2970 return NULL;
2971}
2972
2973
2974static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2975 PyObject *resultobj;
2976 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
2977 wxString *arg1 = (wxString *) &arg1_defvalue ;
2978 wxString const &arg2_defvalue = wxPyEmptyString ;
2979 wxString *arg2 = (wxString *) &arg2_defvalue ;
2980 long arg3 = (long) wxDD_DEFAULT_STYLE ;
2981 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2982 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2983 wxWindow *arg5 = (wxWindow *) NULL ;
2984 wxString result;
e811c8ce
RD
2985 bool temp1 = False ;
2986 bool temp2 = False ;
d14a1e28
RD
2987 wxPoint temp4 ;
2988 PyObject * obj0 = 0 ;
2989 PyObject * obj1 = 0 ;
994141e6 2990 PyObject * obj2 = 0 ;
d14a1e28
RD
2991 PyObject * obj3 = 0 ;
2992 PyObject * obj4 = 0 ;
2993 char *kwnames[] = {
2994 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
2995 };
2996
994141e6 2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28
RD
2998 if (obj0) {
2999 {
3000 arg1 = wxString_in_helper(obj0);
3001 if (arg1 == NULL) SWIG_fail;
e811c8ce 3002 temp1 = True;
d14a1e28
RD
3003 }
3004 }
3005 if (obj1) {
3006 {
3007 arg2 = wxString_in_helper(obj1);
3008 if (arg2 == NULL) SWIG_fail;
e811c8ce 3009 temp2 = True;
d14a1e28
RD
3010 }
3011 }
994141e6 3012 if (obj2) {
15afbcd0
RD
3013 arg3 = (long) SWIG_AsLong(obj2);
3014 if (PyErr_Occurred()) SWIG_fail;
994141e6 3015 }
d14a1e28
RD
3016 if (obj3) {
3017 {
3018 arg4 = &temp4;
3019 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3020 }
3021 }
3022 if (obj4) {
15afbcd0
RD
3023 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3025 }
3026 {
3027 PyThreadState* __tstate = wxPyBeginAllowThreads();
3028 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3029
3030 wxPyEndAllowThreads(__tstate);
3031 if (PyErr_Occurred()) SWIG_fail;
3032 }
3033 {
3034#if wxUSE_UNICODE
3035 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3036#else
3037 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3038#endif
3039 }
3040 {
3041 if (temp1)
3042 delete arg1;
3043 }
3044 {
3045 if (temp2)
3046 delete arg2;
3047 }
3048 return resultobj;
3049 fail:
3050 {
3051 if (temp1)
3052 delete arg1;
3053 }
3054 {
3055 if (temp2)
3056 delete arg2;
3057 }
3058 return NULL;
3059}
3060
3061
3062static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3063 PyObject *resultobj;
3064 wxString *arg1 = 0 ;
3065 wxString const &arg2_defvalue = wxPyEmptyString ;
3066 wxString *arg2 = (wxString *) &arg2_defvalue ;
3067 wxString const &arg3_defvalue = wxPyEmptyString ;
3068 wxString *arg3 = (wxString *) &arg3_defvalue ;
3069 wxWindow *arg4 = (wxWindow *) NULL ;
3070 int arg5 = (int) -1 ;
3071 int arg6 = (int) -1 ;
e811c8ce 3072 bool arg7 = (bool) True ;
d14a1e28 3073 wxString result;
e811c8ce
RD
3074 bool temp1 = False ;
3075 bool temp2 = False ;
3076 bool temp3 = False ;
d14a1e28
RD
3077 PyObject * obj0 = 0 ;
3078 PyObject * obj1 = 0 ;
3079 PyObject * obj2 = 0 ;
3080 PyObject * obj3 = 0 ;
994141e6
RD
3081 PyObject * obj4 = 0 ;
3082 PyObject * obj5 = 0 ;
d14a1e28
RD
3083 PyObject * obj6 = 0 ;
3084 char *kwnames[] = {
3085 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3086 };
3087
994141e6 3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d14a1e28
RD
3089 {
3090 arg1 = wxString_in_helper(obj0);
3091 if (arg1 == NULL) SWIG_fail;
e811c8ce 3092 temp1 = True;
d14a1e28
RD
3093 }
3094 if (obj1) {
3095 {
3096 arg2 = wxString_in_helper(obj1);
3097 if (arg2 == NULL) SWIG_fail;
e811c8ce 3098 temp2 = True;
d14a1e28
RD
3099 }
3100 }
3101 if (obj2) {
3102 {
3103 arg3 = wxString_in_helper(obj2);
3104 if (arg3 == NULL) SWIG_fail;
e811c8ce 3105 temp3 = True;
d14a1e28
RD
3106 }
3107 }
3108 if (obj3) {
15afbcd0
RD
3109 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 3111 }
994141e6 3112 if (obj4) {
15afbcd0
RD
3113 arg5 = (int) SWIG_AsInt(obj4);
3114 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3115 }
3116 if (obj5) {
15afbcd0
RD
3117 arg6 = (int) SWIG_AsInt(obj5);
3118 if (PyErr_Occurred()) SWIG_fail;
994141e6 3119 }
d14a1e28 3120 if (obj6) {
15afbcd0
RD
3121 arg7 = (bool) SWIG_AsBool(obj6);
3122 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3123 }
3124 {
3125 PyThreadState* __tstate = wxPyBeginAllowThreads();
3126 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3127
3128 wxPyEndAllowThreads(__tstate);
3129 if (PyErr_Occurred()) SWIG_fail;
3130 }
3131 {
3132#if wxUSE_UNICODE
3133 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3134#else
3135 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3136#endif
3137 }
3138 {
3139 if (temp1)
3140 delete arg1;
3141 }
3142 {
3143 if (temp2)
3144 delete arg2;
3145 }
3146 {
3147 if (temp3)
3148 delete arg3;
3149 }
3150 return resultobj;
3151 fail:
3152 {
3153 if (temp1)
3154 delete arg1;
3155 }
3156 {
3157 if (temp2)
3158 delete arg2;
3159 }
3160 {
3161 if (temp3)
3162 delete arg3;
3163 }
3164 return NULL;
3165}
3166
3167
3168static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3169 PyObject *resultobj;
3170 wxString *arg1 = 0 ;
3171 wxString const &arg2_defvalue = wxPyEmptyString ;
3172 wxString *arg2 = (wxString *) &arg2_defvalue ;
3173 wxString const &arg3_defvalue = wxPyEmptyString ;
3174 wxString *arg3 = (wxString *) &arg3_defvalue ;
3175 wxWindow *arg4 = (wxWindow *) NULL ;
3176 wxString result;
e811c8ce
RD
3177 bool temp1 = False ;
3178 bool temp2 = False ;
3179 bool temp3 = False ;
d14a1e28
RD
3180 PyObject * obj0 = 0 ;
3181 PyObject * obj1 = 0 ;
3182 PyObject * obj2 = 0 ;
3183 PyObject * obj3 = 0 ;
3184 char *kwnames[] = {
3185 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3186 };
3187
3188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3189 {
3190 arg1 = wxString_in_helper(obj0);
3191 if (arg1 == NULL) SWIG_fail;
e811c8ce 3192 temp1 = True;
d14a1e28
RD
3193 }
3194 if (obj1) {
3195 {
3196 arg2 = wxString_in_helper(obj1);
3197 if (arg2 == NULL) SWIG_fail;
e811c8ce 3198 temp2 = True;
d14a1e28
RD
3199 }
3200 }
3201 if (obj2) {
3202 {
3203 arg3 = wxString_in_helper(obj2);
3204 if (arg3 == NULL) SWIG_fail;
e811c8ce 3205 temp3 = True;
d14a1e28
RD
3206 }
3207 }
3208 if (obj3) {
15afbcd0
RD
3209 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3211 }
3212 {
3213 PyThreadState* __tstate = wxPyBeginAllowThreads();
3214 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3215
3216 wxPyEndAllowThreads(__tstate);
3217 if (PyErr_Occurred()) SWIG_fail;
3218 }
3219 {
3220#if wxUSE_UNICODE
3221 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3222#else
3223 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3224#endif
3225 }
3226 {
3227 if (temp1)
3228 delete arg1;
3229 }
3230 {
3231 if (temp2)
3232 delete arg2;
3233 }
3234 {
3235 if (temp3)
3236 delete arg3;
3237 }
3238 return resultobj;
3239 fail:
3240 {
3241 if (temp1)
3242 delete arg1;
3243 }
3244 {
3245 if (temp2)
3246 delete arg2;
3247 }
3248 {
3249 if (temp3)
3250 delete arg3;
3251 }
3252 return NULL;
3253}
3254
3255
3256static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3257 PyObject *resultobj;
3258 wxString *arg1 = 0 ;
3259 wxString *arg2 = 0 ;
3260 int arg3 ;
3261 wxString *arg4 = (wxString *) 0 ;
3262 wxWindow *arg5 = (wxWindow *) NULL ;
3263 int arg6 = (int) -1 ;
3264 int arg7 = (int) -1 ;
e811c8ce 3265 bool arg8 = (bool) True ;
d14a1e28
RD
3266 int arg9 = (int) 150 ;
3267 int arg10 = (int) 200 ;
3268 wxString result;
e811c8ce
RD
3269 bool temp1 = False ;
3270 bool temp2 = False ;
d14a1e28
RD
3271 PyObject * obj0 = 0 ;
3272 PyObject * obj1 = 0 ;
3273 PyObject * obj2 = 0 ;
3274 PyObject * obj3 = 0 ;
994141e6
RD
3275 PyObject * obj4 = 0 ;
3276 PyObject * obj5 = 0 ;
d14a1e28 3277 PyObject * obj6 = 0 ;
994141e6
RD
3278 PyObject * obj7 = 0 ;
3279 PyObject * obj8 = 0 ;
d14a1e28
RD
3280 char *kwnames[] = {
3281 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3282 };
3283
994141e6 3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d14a1e28
RD
3285 {
3286 arg1 = wxString_in_helper(obj0);
3287 if (arg1 == NULL) SWIG_fail;
e811c8ce 3288 temp1 = True;
d14a1e28
RD
3289 }
3290 {
3291 arg2 = wxString_in_helper(obj1);
3292 if (arg2 == NULL) SWIG_fail;
e811c8ce 3293 temp2 = True;
d14a1e28
RD
3294 }
3295 {
3296 arg3 = PyList_Size(obj2);
3297 arg4 = wxString_LIST_helper(obj2);
3298 if (arg4 == NULL) SWIG_fail;
3299 }
3300 if (obj3) {
15afbcd0
RD
3301 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 3303 }
994141e6 3304 if (obj4) {
15afbcd0
RD
3305 arg6 = (int) SWIG_AsInt(obj4);
3306 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3307 }
3308 if (obj5) {
15afbcd0
RD
3309 arg7 = (int) SWIG_AsInt(obj5);
3310 if (PyErr_Occurred()) SWIG_fail;
994141e6 3311 }
d14a1e28 3312 if (obj6) {
15afbcd0
RD
3313 arg8 = (bool) SWIG_AsBool(obj6);
3314 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3315 }
3316 if (obj7) {
15afbcd0
RD
3317 arg9 = (int) SWIG_AsInt(obj7);
3318 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3319 }
3320 if (obj8) {
15afbcd0
RD
3321 arg10 = (int) SWIG_AsInt(obj8);
3322 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3323 }
3324 {
3325 PyThreadState* __tstate = wxPyBeginAllowThreads();
3326 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3327
3328 wxPyEndAllowThreads(__tstate);
3329 if (PyErr_Occurred()) SWIG_fail;
3330 }
3331 {
3332#if wxUSE_UNICODE
3333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3334#else
3335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3336#endif
3337 }
3338 {
3339 if (temp1)
3340 delete arg1;
3341 }
3342 {
3343 if (temp2)
3344 delete arg2;
3345 }
3346 {
3347 if (arg4) delete [] arg4;
3348 }
3349 return resultobj;
3350 fail:
3351 {
3352 if (temp1)
3353 delete arg1;
3354 }
3355 {
3356 if (temp2)
3357 delete arg2;
3358 }
3359 {
3360 if (arg4) delete [] arg4;
3361 }
3362 return NULL;
3363}
3364
3365
3366static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3367 PyObject *resultobj;
3368 wxString *arg1 = 0 ;
3369 wxString *arg2 = 0 ;
3370 int arg3 ;
3371 wxString *arg4 = (wxString *) 0 ;
3372 wxWindow *arg5 = (wxWindow *) NULL ;
3373 int arg6 = (int) -1 ;
3374 int arg7 = (int) -1 ;
e811c8ce 3375 bool arg8 = (bool) True ;
d14a1e28
RD
3376 int arg9 = (int) 150 ;
3377 int arg10 = (int) 200 ;
3378 int result;
e811c8ce
RD
3379 bool temp1 = False ;
3380 bool temp2 = False ;
d14a1e28
RD
3381 PyObject * obj0 = 0 ;
3382 PyObject * obj1 = 0 ;
3383 PyObject * obj2 = 0 ;
3384 PyObject * obj3 = 0 ;
994141e6
RD
3385 PyObject * obj4 = 0 ;
3386 PyObject * obj5 = 0 ;
d14a1e28 3387 PyObject * obj6 = 0 ;
994141e6
RD
3388 PyObject * obj7 = 0 ;
3389 PyObject * obj8 = 0 ;
d14a1e28
RD
3390 char *kwnames[] = {
3391 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3392 };
3393
994141e6 3394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d14a1e28
RD
3395 {
3396 arg1 = wxString_in_helper(obj0);
3397 if (arg1 == NULL) SWIG_fail;
e811c8ce 3398 temp1 = True;
d14a1e28
RD
3399 }
3400 {
3401 arg2 = wxString_in_helper(obj1);
3402 if (arg2 == NULL) SWIG_fail;
e811c8ce 3403 temp2 = True;
d14a1e28
RD
3404 }
3405 {
3406 arg3 = PyList_Size(obj2);
3407 arg4 = wxString_LIST_helper(obj2);
3408 if (arg4 == NULL) SWIG_fail;
3409 }
3410 if (obj3) {
15afbcd0
RD
3411 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 3413 }
994141e6 3414 if (obj4) {
15afbcd0
RD
3415 arg6 = (int) SWIG_AsInt(obj4);
3416 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3417 }
3418 if (obj5) {
15afbcd0
RD
3419 arg7 = (int) SWIG_AsInt(obj5);
3420 if (PyErr_Occurred()) SWIG_fail;
994141e6 3421 }
d14a1e28 3422 if (obj6) {
15afbcd0
RD
3423 arg8 = (bool) SWIG_AsBool(obj6);
3424 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3425 }
3426 if (obj7) {
15afbcd0
RD
3427 arg9 = (int) SWIG_AsInt(obj7);
3428 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3429 }
3430 if (obj8) {
15afbcd0
RD
3431 arg10 = (int) SWIG_AsInt(obj8);
3432 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
3433 }
3434 {
3435 PyThreadState* __tstate = wxPyBeginAllowThreads();
3436 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3437
3438 wxPyEndAllowThreads(__tstate);
3439 if (PyErr_Occurred()) SWIG_fail;
3440 }
15afbcd0 3441 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3442 {
3443 if (temp1)
3444 delete arg1;
3445 }
3446 {
3447 if (temp2)
3448 delete arg2;
3449 }
3450 {
3451 if (arg4) delete [] arg4;
3452 }
3453 return resultobj;
3454 fail:
3455 {
3456 if (temp1)
3457 delete arg1;
3458 }
3459 {
3460 if (temp2)
3461 delete arg2;
3462 }
3463 {
3464 if (arg4) delete [] arg4;
3465 }
3466 return NULL;
3467}
3468
3469
3470static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3471 PyObject *resultobj;
3472 wxString *arg1 = 0 ;
3473 wxString const &arg2_defvalue = wxPyEmptyString ;
3474 wxString *arg2 = (wxString *) &arg2_defvalue ;
3475 int arg3 = (int) wxOK|wxCENTRE ;
3476 wxWindow *arg4 = (wxWindow *) NULL ;
3477 int arg5 = (int) -1 ;
3478 int arg6 = (int) -1 ;
3479 int result;
e811c8ce
RD
3480 bool temp1 = False ;
3481 bool temp2 = False ;
d14a1e28
RD
3482 PyObject * obj0 = 0 ;
3483 PyObject * obj1 = 0 ;
994141e6 3484 PyObject * obj2 = 0 ;
d14a1e28 3485 PyObject * obj3 = 0 ;
994141e6
RD
3486 PyObject * obj4 = 0 ;
3487 PyObject * obj5 = 0 ;
d14a1e28
RD
3488 char *kwnames[] = {
3489 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3490 };
3491
994141e6 3492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28
RD
3493 {
3494 arg1 = wxString_in_helper(obj0);
3495 if (arg1 == NULL) SWIG_fail;
e811c8ce 3496 temp1 = True;
d14a1e28
RD
3497 }
3498 if (obj1) {
3499 {
3500 arg2 = wxString_in_helper(obj1);
3501 if (arg2 == NULL) SWIG_fail;
e811c8ce 3502 temp2 = True;
d14a1e28
RD
3503 }
3504 }
994141e6 3505 if (obj2) {
15afbcd0
RD
3506 arg3 = (int) SWIG_AsInt(obj2);
3507 if (PyErr_Occurred()) SWIG_fail;
994141e6 3508 }
d14a1e28 3509 if (obj3) {
15afbcd0
RD
3510 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 3512 }
994141e6 3513 if (obj4) {
15afbcd0
RD
3514 arg5 = (int) SWIG_AsInt(obj4);
3515 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3516 }
3517 if (obj5) {
15afbcd0
RD
3518 arg6 = (int) SWIG_AsInt(obj5);
3519 if (PyErr_Occurred()) SWIG_fail;
994141e6 3520 }
d14a1e28
RD
3521 {
3522 PyThreadState* __tstate = wxPyBeginAllowThreads();
3523 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3524
3525 wxPyEndAllowThreads(__tstate);
3526 if (PyErr_Occurred()) SWIG_fail;
3527 }
15afbcd0 3528 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3529 {
3530 if (temp1)
3531 delete arg1;
3532 }
3533 {
3534 if (temp2)
3535 delete arg2;
3536 }
3537 return resultobj;
3538 fail:
3539 {
3540 if (temp1)
3541 delete arg1;
3542 }
3543 {
3544 if (temp2)
3545 delete arg2;
3546 }
3547 return NULL;
3548}
3549
3550
3551static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3552 PyObject *resultobj;
3553 wxString *arg1 = 0 ;
3554 wxString *arg2 = 0 ;
3555 wxString *arg3 = 0 ;
3556 long arg4 ;
3557 long arg5 = (long) 0 ;
3558 long arg6 = (long) 100 ;
3559 wxWindow *arg7 = (wxWindow *) NULL ;
3560 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3561 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3562 long result;
e811c8ce
RD
3563 bool temp1 = False ;
3564 bool temp2 = False ;
3565 bool temp3 = False ;
d14a1e28
RD
3566 wxPoint temp8 ;
3567 PyObject * obj0 = 0 ;
3568 PyObject * obj1 = 0 ;
3569 PyObject * obj2 = 0 ;
994141e6
RD
3570 PyObject * obj3 = 0 ;
3571 PyObject * obj4 = 0 ;
3572 PyObject * obj5 = 0 ;
3573 PyObject * obj6 = 0 ;
d14a1e28
RD
3574 PyObject * obj7 = 0 ;
3575 char *kwnames[] = {
3576 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3577 };
3578
994141e6 3579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d14a1e28
RD
3580 {
3581 arg1 = wxString_in_helper(obj0);
3582 if (arg1 == NULL) SWIG_fail;
e811c8ce 3583 temp1 = True;
d14a1e28
RD
3584 }
3585 {
3586 arg2 = wxString_in_helper(obj1);
3587 if (arg2 == NULL) SWIG_fail;
e811c8ce 3588 temp2 = True;
d14a1e28
RD
3589 }
3590 {
3591 arg3 = wxString_in_helper(obj2);
3592 if (arg3 == NULL) SWIG_fail;
e811c8ce 3593 temp3 = True;
d14a1e28 3594 }
15afbcd0
RD
3595 arg4 = (long) SWIG_AsLong(obj3);
3596 if (PyErr_Occurred()) SWIG_fail;
994141e6 3597 if (obj4) {
15afbcd0
RD
3598 arg5 = (long) SWIG_AsLong(obj4);
3599 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
3600 }
3601 if (obj5) {
15afbcd0
RD
3602 arg6 = (long) SWIG_AsLong(obj5);
3603 if (PyErr_Occurred()) SWIG_fail;
994141e6 3604 }
d14a1e28 3605 if (obj6) {
15afbcd0
RD
3606 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3608 }
3609 if (obj7) {
3610 {
3611 arg8 = &temp8;
3612 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3613 }
3614 }
3615 {
3616 PyThreadState* __tstate = wxPyBeginAllowThreads();
3617 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3618
3619 wxPyEndAllowThreads(__tstate);
3620 if (PyErr_Occurred()) SWIG_fail;
3621 }
15afbcd0 3622 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
3623 {
3624 if (temp1)
3625 delete arg1;
3626 }
3627 {
3628 if (temp2)
3629 delete arg2;
3630 }
3631 {
3632 if (temp3)
3633 delete arg3;
3634 }
3635 return resultobj;
3636 fail:
3637 {
3638 if (temp1)
3639 delete arg1;
3640 }
3641 {
3642 if (temp2)
3643 delete arg2;
3644 }
3645 {
3646 if (temp3)
3647 delete arg3;
3648 }
3649 return NULL;
3650}
3651
3652
3653static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3654 PyObject *resultobj;
3655 bool result;
3656 char *kwnames[] = {
3657 NULL
3658 };
3659
3660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3661 {
3662 PyThreadState* __tstate = wxPyBeginAllowThreads();
3663 result = (bool)wxColourDisplay();
3664
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 }
4d5c3d91 3668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3669 return resultobj;
3670 fail:
3671 return NULL;
3672}
3673
3674
3675static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3676 PyObject *resultobj;
3677 int result;
3678 char *kwnames[] = {
3679 NULL
3680 };
3681
3682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3683 {
3684 PyThreadState* __tstate = wxPyBeginAllowThreads();
3685 result = (int)wxDisplayDepth();
3686
3687 wxPyEndAllowThreads(__tstate);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
15afbcd0 3690 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3691 return resultobj;
3692 fail:
3693 return NULL;
3694}
3695
3696
3697static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj;
3699 int result;
3700 char *kwnames[] = {
3701 NULL
3702 };
3703
3704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3705 {
3706 PyThreadState* __tstate = wxPyBeginAllowThreads();
3707 result = (int)wxGetDisplayDepth();
3708
3709 wxPyEndAllowThreads(__tstate);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 }
15afbcd0 3712 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
3713 return resultobj;
3714 fail:
3715 return NULL;
3716}
3717
3718
3719static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3720 PyObject *resultobj;
3721 int *arg1 = (int *) 0 ;
3722 int *arg2 = (int *) 0 ;
3723 int temp1 ;
3724 int temp2 ;
3725 char *kwnames[] = {
3726 NULL
3727 };
3728
3729 arg1 = &temp1;
3730 arg2 = &temp2;
3731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3732 {
3733 PyThreadState* __tstate = wxPyBeginAllowThreads();
3734 wxDisplaySize(arg1,arg2);
3735
3736 wxPyEndAllowThreads(__tstate);
3737 if (PyErr_Occurred()) SWIG_fail;
3738 }
3739 Py_INCREF(Py_None); resultobj = Py_None;
3740 {
3741 PyObject *o = PyInt_FromLong((long) (*arg1));
3742 resultobj = t_output_helper(resultobj,o);
3743 }
3744 {
3745 PyObject *o = PyInt_FromLong((long) (*arg2));
3746 resultobj = t_output_helper(resultobj,o);
3747 }
3748 return resultobj;
3749 fail:
3750 return NULL;
3751}
3752
3753
3754static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3755 PyObject *resultobj;
3756 wxSize result;
3757 char *kwnames[] = {
3758 NULL
3759 };
3760
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3762 {
3763 PyThreadState* __tstate = wxPyBeginAllowThreads();
3764 result = wxGetDisplaySize();
3765
3766 wxPyEndAllowThreads(__tstate);
3767 if (PyErr_Occurred()) SWIG_fail;
3768 }
3769 {
3770 wxSize * resultptr;
3771 resultptr = new wxSize((wxSize &) result);
15afbcd0 3772 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
3773 }
3774 return resultobj;
3775 fail:
3776 return NULL;
3777}
3778
3779
3780static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3781 PyObject *resultobj;
3782 int *arg1 = (int *) 0 ;
3783 int *arg2 = (int *) 0 ;
3784 int temp1 ;
3785 int temp2 ;
3786 char *kwnames[] = {
3787 NULL
3788 };
3789
3790 arg1 = &temp1;
3791 arg2 = &temp2;
3792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3793 {
3794 PyThreadState* __tstate = wxPyBeginAllowThreads();
3795 wxDisplaySizeMM(arg1,arg2);
3796
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 Py_INCREF(Py_None); resultobj = Py_None;
3801 {
3802 PyObject *o = PyInt_FromLong((long) (*arg1));
3803 resultobj = t_output_helper(resultobj,o);
3804 }
3805 {
3806 PyObject *o = PyInt_FromLong((long) (*arg2));
3807 resultobj = t_output_helper(resultobj,o);
3808 }
3809 return resultobj;
3810 fail:
3811 return NULL;
3812}
3813
3814
3815static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3816 PyObject *resultobj;
3817 wxSize result;
3818 char *kwnames[] = {
3819 NULL
3820 };
3821
3822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3823 {
3824 PyThreadState* __tstate = wxPyBeginAllowThreads();
3825 result = wxGetDisplaySizeMM();
3826
3827 wxPyEndAllowThreads(__tstate);
3828 if (PyErr_Occurred()) SWIG_fail;
3829 }
3830 {
3831 wxSize * resultptr;
3832 resultptr = new wxSize((wxSize &) result);
15afbcd0 3833 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
3834 }
3835 return resultobj;
3836 fail:
3837 return NULL;
3838}
3839
3840
3841static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3842 PyObject *resultobj;
3843 int *arg1 = (int *) 0 ;
3844 int *arg2 = (int *) 0 ;
3845 int *arg3 = (int *) 0 ;
3846 int *arg4 = (int *) 0 ;
3847 int temp1 ;
3848 int temp2 ;
3849 int temp3 ;
3850 int temp4 ;
3851 char *kwnames[] = {
3852 NULL
3853 };
3854
3855 arg1 = &temp1;
3856 arg2 = &temp2;
3857 arg3 = &temp3;
3858 arg4 = &temp4;
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 Py_INCREF(Py_None); resultobj = Py_None;
3868 {
3869 PyObject *o = PyInt_FromLong((long) (*arg1));
3870 resultobj = t_output_helper(resultobj,o);
3871 }
3872 {
3873 PyObject *o = PyInt_FromLong((long) (*arg2));
3874 resultobj = t_output_helper(resultobj,o);
3875 }
3876 {
3877 PyObject *o = PyInt_FromLong((long) (*arg3));
3878 resultobj = t_output_helper(resultobj,o);
3879 }
3880 {
3881 PyObject *o = PyInt_FromLong((long) (*arg4));
3882 resultobj = t_output_helper(resultobj,o);
3883 }
3884 return resultobj;
3885 fail:
3886 return NULL;
3887}
3888
3889
3890static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3891 PyObject *resultobj;
3892 wxRect result;
3893 char *kwnames[] = {
3894 NULL
3895 };
3896
3897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3898 {
3899 PyThreadState* __tstate = wxPyBeginAllowThreads();
3900 result = wxGetClientDisplayRect();
3901
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 {
3906 wxRect * resultptr;
3907 resultptr = new wxRect((wxRect &) result);
15afbcd0 3908 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
d14a1e28
RD
3909 }
3910 return resultobj;
3911 fail:
3912 return NULL;
3913}
3914
3915
3916static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3917 PyObject *resultobj;
3918 wxCursor *arg1 = 0 ;
3919 PyObject * obj0 = 0 ;
3920 char *kwnames[] = {
3921 (char *) "cursor", NULL
3922 };
3923
3924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
15afbcd0
RD
3925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3926 SWIG_POINTER_EXCEPTION | 0)) == -1)
3927 SWIG_fail;
d14a1e28 3928 if (arg1 == NULL) {
15afbcd0
RD
3929 PyErr_SetString(PyExc_TypeError,"null reference");
3930 SWIG_fail;
d14a1e28
RD
3931 }
3932 {
3933 PyThreadState* __tstate = wxPyBeginAllowThreads();
3934 wxSetCursor(*arg1);
3935
3936 wxPyEndAllowThreads(__tstate);
3937 if (PyErr_Occurred()) SWIG_fail;
3938 }
3939 Py_INCREF(Py_None); resultobj = Py_None;
3940 return resultobj;
3941 fail:
3942 return NULL;
3943}
3944
3945
3946static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3947 PyObject *resultobj;
3948 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3949 PyObject * obj0 = 0 ;
3950 char *kwnames[] = {
3951 (char *) "cursor", NULL
3952 };
3953
3954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
3955 if (obj0) {
15afbcd0
RD
3956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
3958 }
3959 {
3960 PyThreadState* __tstate = wxPyBeginAllowThreads();
3961 wxBeginBusyCursor(arg1);
3962
3963 wxPyEndAllowThreads(__tstate);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 }
3966 Py_INCREF(Py_None); resultobj = Py_None;
3967 return resultobj;
3968 fail:
3969 return NULL;
3970}
3971
3972
3973static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3974 PyObject *resultobj;
3975 wxWindow *result;
3976 char *kwnames[] = {
3977 NULL
3978 };
3979
3980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
3981 {
3982 PyThreadState* __tstate = wxPyBeginAllowThreads();
3983 result = (wxWindow *)wxGetActiveWindow();
3984
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 {
3989 resultobj = wxPyMake_wxObject(result);
3990 }
3991 return resultobj;
3992 fail:
3993 return NULL;
3994}
3995
3996
3997static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3998 PyObject *resultobj;
3999 wxPoint *arg1 = 0 ;
4000 wxWindow *result;
4001 wxPoint temp1 ;
4002 PyObject * obj0 = 0 ;
4003 char *kwnames[] = {
4004 (char *) "pt", NULL
4005 };
4006
4007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4008 {
4009 arg1 = &temp1;
4010 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4011 }
4012 {
4013 PyThreadState* __tstate = wxPyBeginAllowThreads();
4014 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4015
4016 wxPyEndAllowThreads(__tstate);
4017 if (PyErr_Occurred()) SWIG_fail;
4018 }
4019 {
4020 resultobj = wxPyMake_wxObject(result);
4021 }
4022 return resultobj;
4023 fail:
4024 return NULL;
4025}
4026
4027
4028static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4029 PyObject *resultobj;
4030 wxPoint *arg1 = 0 ;
4031 wxWindow *result;
4032 wxPoint temp1 ;
4033 PyObject * obj0 = 0 ;
4034 char *kwnames[] = {
4035 (char *) "pt", NULL
4036 };
4037
4038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4039 {
4040 arg1 = &temp1;
4041 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4042 }
4043 {
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4046
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 {
4051 resultobj = wxPyMake_wxObject(result);
4052 }
4053 return resultobj;
4054 fail:
4055 return NULL;
4056}
4057
4058
4059static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4060 PyObject *resultobj;
4061 wxWindow *arg1 = (wxWindow *) 0 ;
4062 wxWindow *result;
4063 PyObject * obj0 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "win", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
15afbcd0
RD
4069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4071 {
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 result = (wxWindow *)wxGetTopLevelParent(arg1);
4074
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 {
4079 resultobj = wxPyMake_wxObject(result);
4080 }
4081 return resultobj;
4082 fail:
4083 return NULL;
4084}
4085
4086
39f61e25
RD
4087static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4088 PyObject *resultobj;
4089 int arg1 ;
4090 bool result;
994141e6 4091 PyObject * obj0 = 0 ;
39f61e25
RD
4092 char *kwnames[] = {
4093 (char *) "key", NULL
4094 };
4095
994141e6 4096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
15afbcd0
RD
4097 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4098 if (PyErr_Occurred()) SWIG_fail;
39f61e25
RD
4099 {
4100 PyThreadState* __tstate = wxPyBeginAllowThreads();
4101 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4102
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 }
4d5c3d91 4106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39f61e25
RD
4107 return resultobj;
4108 fail:
4109 return NULL;
4110}
4111
4112
d14a1e28
RD
4113static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4114 PyObject *resultobj;
4115 char *kwnames[] = {
4116 NULL
4117 };
4118
4119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
4122 wxWakeUpMainThread();
4123
4124 wxPyEndAllowThreads(__tstate);
4125 if (PyErr_Occurred()) SWIG_fail;
4126 }
4127 Py_INCREF(Py_None); resultobj = Py_None;
4128 return resultobj;
4129 fail:
4130 return NULL;
4131}
4132
4133
4134static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4135 PyObject *resultobj;
4136 char *kwnames[] = {
4137 NULL
4138 };
4139
4140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 wxMutexGuiEnter();
4144
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 Py_INCREF(Py_None); resultobj = Py_None;
4149 return resultobj;
4150 fail:
4151 return NULL;
4152}
4153
4154
4155static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4156 PyObject *resultobj;
4157 char *kwnames[] = {
4158 NULL
4159 };
4160
4161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4162 {
4163 PyThreadState* __tstate = wxPyBeginAllowThreads();
4164 wxMutexGuiLeave();
4165
4166 wxPyEndAllowThreads(__tstate);
4167 if (PyErr_Occurred()) SWIG_fail;
4168 }
4169 Py_INCREF(Py_None); resultobj = Py_None;
4170 return resultobj;
4171 fail:
4172 return NULL;
4173}
4174
4175
4176static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4177 PyObject *resultobj;
4178 wxMutexGuiLocker *result;
4179 char *kwnames[] = {
4180 NULL
4181 };
4182
4183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4187
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 }
15afbcd0 4191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
d14a1e28
RD
4192 return resultobj;
4193 fail:
4194 return NULL;
4195}
4196
4197
4198static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4199 PyObject *resultobj;
4200 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4201 PyObject * obj0 = 0 ;
4202 char *kwnames[] = {
4203 (char *) "self", NULL
4204 };
4205
4206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
15afbcd0
RD
4207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 delete arg1;
4212
4213 wxPyEndAllowThreads(__tstate);
4214 if (PyErr_Occurred()) SWIG_fail;
4215 }
4216 Py_INCREF(Py_None); resultobj = Py_None;
4217 return resultobj;
4218 fail:
4219 return NULL;
4220}
4221
4222
4223static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4224 PyObject *obj;
4225 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4226 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4227 Py_INCREF(obj);
4228 return Py_BuildValue((char *)"");
4229}
4230static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4231 PyObject *resultobj;
4232 bool result;
4233 char *kwnames[] = {
4234 NULL
4235 };
4236
4237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4238 {
4239 PyThreadState* __tstate = wxPyBeginAllowThreads();
4240 result = (bool)wxThread_IsMain();
4241
4242 wxPyEndAllowThreads(__tstate);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 }
4d5c3d91 4245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4246 return resultobj;
4247 fail:
4248 return NULL;
4249}
4250
4251
4252static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4253 PyObject *resultobj;
4254 wxString *arg1 = 0 ;
4255 wxToolTip *result;
e811c8ce 4256 bool temp1 = False ;
d14a1e28
RD
4257 PyObject * obj0 = 0 ;
4258 char *kwnames[] = {
4259 (char *) "tip", NULL
4260 };
4261
4262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4263 {
4264 arg1 = wxString_in_helper(obj0);
4265 if (arg1 == NULL) SWIG_fail;
e811c8ce 4266 temp1 = True;
d14a1e28
RD
4267 }
4268 {
4269 PyThreadState* __tstate = wxPyBeginAllowThreads();
4270 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4271
4272 wxPyEndAllowThreads(__tstate);
4273 if (PyErr_Occurred()) SWIG_fail;
4274 }
4275 {
4276 resultobj = wxPyMake_wxObject(result);
4277 }
4278 {
4279 if (temp1)
4280 delete arg1;
4281 }
4282 return resultobj;
4283 fail:
4284 {
4285 if (temp1)
4286 delete arg1;
4287 }
4288 return NULL;
4289}
4290
4291
4292static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4293 PyObject *resultobj;
4294 wxToolTip *arg1 = (wxToolTip *) 0 ;
4295 wxString *arg2 = 0 ;
e811c8ce 4296 bool temp2 = False ;
d14a1e28
RD
4297 PyObject * obj0 = 0 ;
4298 PyObject * obj1 = 0 ;
4299 char *kwnames[] = {
4300 (char *) "self",(char *) "tip", NULL
4301 };
4302
4303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4306 {
4307 arg2 = wxString_in_helper(obj1);
4308 if (arg2 == NULL) SWIG_fail;
e811c8ce 4309 temp2 = True;
d14a1e28
RD
4310 }
4311 {
4312 PyThreadState* __tstate = wxPyBeginAllowThreads();
4313 (arg1)->SetTip((wxString const &)*arg2);
4314
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 Py_INCREF(Py_None); resultobj = Py_None;
4319 {
4320 if (temp2)
4321 delete arg2;
4322 }
4323 return resultobj;
4324 fail:
4325 {
4326 if (temp2)
4327 delete arg2;
4328 }
4329 return NULL;
4330}
4331
4332
4333static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4334 PyObject *resultobj;
4335 wxToolTip *arg1 = (wxToolTip *) 0 ;
4336 wxString result;
4337 PyObject * obj0 = 0 ;
4338 char *kwnames[] = {
4339 (char *) "self", NULL
4340 };
4341
4342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
15afbcd0
RD
4343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4345 {
4346 PyThreadState* __tstate = wxPyBeginAllowThreads();
4347 result = (arg1)->GetTip();
4348
4349 wxPyEndAllowThreads(__tstate);
4350 if (PyErr_Occurred()) SWIG_fail;
4351 }
4352 {
4353#if wxUSE_UNICODE
4354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4355#else
4356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4357#endif
4358 }
4359 return resultobj;
4360 fail:
4361 return NULL;
4362}
4363
4364
4365static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4366 PyObject *resultobj;
4367 wxToolTip *arg1 = (wxToolTip *) 0 ;
4368 wxWindow *result;
4369 PyObject * obj0 = 0 ;
4370 char *kwnames[] = {
4371 (char *) "self", NULL
4372 };
4373
4374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
15afbcd0
RD
4375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4377 {
4378 PyThreadState* __tstate = wxPyBeginAllowThreads();
4379 result = (wxWindow *)(arg1)->GetWindow();
4380
4381 wxPyEndAllowThreads(__tstate);
4382 if (PyErr_Occurred()) SWIG_fail;
4383 }
4384 {
4385 resultobj = wxPyMake_wxObject(result);
4386 }
4387 return resultobj;
4388 fail:
4389 return NULL;
4390}
4391
4392
4393static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4394 PyObject *resultobj;
4395 bool arg1 ;
4396 PyObject * obj0 = 0 ;
4397 char *kwnames[] = {
4398 (char *) "flag", NULL
4399 };
4400
4401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
15afbcd0
RD
4402 arg1 = (bool) SWIG_AsBool(obj0);
4403 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4404 {
4405 PyThreadState* __tstate = wxPyBeginAllowThreads();
4406 wxToolTip::Enable(arg1);
4407
4408 wxPyEndAllowThreads(__tstate);
4409 if (PyErr_Occurred()) SWIG_fail;
4410 }
4411 Py_INCREF(Py_None); resultobj = Py_None;
4412 return resultobj;
4413 fail:
4414 return NULL;
4415}
4416
4417
4418static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4419 PyObject *resultobj;
4420 long arg1 ;
994141e6 4421 PyObject * obj0 = 0 ;
d14a1e28
RD
4422 char *kwnames[] = {
4423 (char *) "milliseconds", NULL
4424 };
4425
994141e6 4426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
15afbcd0
RD
4427 arg1 = (long) SWIG_AsLong(obj0);
4428 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4429 {
4430 PyThreadState* __tstate = wxPyBeginAllowThreads();
4431 wxToolTip::SetDelay(arg1);
4432
4433 wxPyEndAllowThreads(__tstate);
4434 if (PyErr_Occurred()) SWIG_fail;
4435 }
4436 Py_INCREF(Py_None); resultobj = Py_None;
4437 return resultobj;
4438 fail:
4439 return NULL;
4440}
4441
4442
4443static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4444 PyObject *obj;
4445 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4446 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4447 Py_INCREF(obj);
4448 return Py_BuildValue((char *)"");
4449}
4450static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4451 PyObject *resultobj;
4452 wxWindow *arg1 = (wxWindow *) 0 ;
4453 wxSize *arg2 = 0 ;
4454 wxCaret *result;
4455 wxSize temp2 ;
4456 PyObject * obj0 = 0 ;
4457 PyObject * obj1 = 0 ;
4458 char *kwnames[] = {
4459 (char *) "window",(char *) "size", NULL
4460 };
4461
4462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4465 {
4466 arg2 = &temp2;
4467 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4468 }
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
15afbcd0 4476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
d14a1e28
RD
4477 return resultobj;
4478 fail:
4479 return NULL;
4480}
4481
4482
4483static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj;
4485 wxCaret *arg1 = (wxCaret *) 0 ;
4486 PyObject * obj0 = 0 ;
4487 char *kwnames[] = {
4488 (char *) "self", NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
15afbcd0
RD
4492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4494 {
4495 PyThreadState* __tstate = wxPyBeginAllowThreads();
4496 delete arg1;
4497
4498 wxPyEndAllowThreads(__tstate);
4499 if (PyErr_Occurred()) SWIG_fail;
4500 }
4501 Py_INCREF(Py_None); resultobj = Py_None;
4502 return resultobj;
4503 fail:
4504 return NULL;
4505}
4506
4507
4508static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4509 PyObject *resultobj;
4510 wxCaret *arg1 = (wxCaret *) 0 ;
4511 bool result;
4512 PyObject * obj0 = 0 ;
4513 char *kwnames[] = {
4514 (char *) "self", NULL
4515 };
4516
4517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
4518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4520 {
4521 PyThreadState* __tstate = wxPyBeginAllowThreads();
4522 result = (bool)(arg1)->IsOk();
4523
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4d5c3d91 4527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4528 return resultobj;
4529 fail:
4530 return NULL;
4531}
4532
4533
4534static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4535 PyObject *resultobj;
4536 wxCaret *arg1 = (wxCaret *) 0 ;
4537 bool result;
4538 PyObject * obj0 = 0 ;
4539 char *kwnames[] = {
4540 (char *) "self", NULL
4541 };
4542
4543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
15afbcd0
RD
4544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4546 {
4547 PyThreadState* __tstate = wxPyBeginAllowThreads();
4548 result = (bool)(arg1)->IsVisible();
4549
4550 wxPyEndAllowThreads(__tstate);
4551 if (PyErr_Occurred()) SWIG_fail;
4552 }
4d5c3d91 4553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4554 return resultobj;
4555 fail:
4556 return NULL;
4557}
4558
4559
322913ce
RD
4560static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4561 PyObject *resultobj;
4562 wxCaret *arg1 = (wxCaret *) 0 ;
4563 wxPoint result;
4564 PyObject * obj0 = 0 ;
4565 char *kwnames[] = {
4566 (char *) "self", NULL
4567 };
4568
4569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
4570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
322913ce
RD
4572 {
4573 PyThreadState* __tstate = wxPyBeginAllowThreads();
4574 result = (arg1)->GetPosition();
4575
4576 wxPyEndAllowThreads(__tstate);
4577 if (PyErr_Occurred()) SWIG_fail;
4578 }
4579 {
4580 wxPoint * resultptr;
4581 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 4582 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
322913ce
RD
4583 }
4584 return resultobj;
4585 fail:
4586 return NULL;
4587}
4588
4589
d14a1e28
RD
4590static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4591 PyObject *resultobj;
4592 wxCaret *arg1 = (wxCaret *) 0 ;
4593 int *arg2 = (int *) 0 ;
4594 int *arg3 = (int *) 0 ;
4595 int temp2 ;
4596 int temp3 ;
4597 PyObject * obj0 = 0 ;
4598 char *kwnames[] = {
4599 (char *) "self", NULL
4600 };
4601
4602 arg2 = &temp2;
4603 arg3 = &temp3;
4604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
4605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4607 {
4608 PyThreadState* __tstate = wxPyBeginAllowThreads();
4609 (arg1)->GetPosition(arg2,arg3);
4610
4611 wxPyEndAllowThreads(__tstate);
4612 if (PyErr_Occurred()) SWIG_fail;
4613 }
4614 Py_INCREF(Py_None); resultobj = Py_None;
4615 {
4616 PyObject *o = PyInt_FromLong((long) (*arg2));
4617 resultobj = t_output_helper(resultobj,o);
4618 }
4619 {
4620 PyObject *o = PyInt_FromLong((long) (*arg3));
4621 resultobj = t_output_helper(resultobj,o);
4622 }
4623 return resultobj;
4624 fail:
4625 return NULL;
4626}
4627
4628
322913ce 4629static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4630 PyObject *resultobj;
4631 wxCaret *arg1 = (wxCaret *) 0 ;
322913ce 4632 wxSize result;
d14a1e28
RD
4633 PyObject * obj0 = 0 ;
4634 char *kwnames[] = {
4635 (char *) "self", NULL
4636 };
4637
322913ce 4638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
4639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4641 {
4642 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 4643 result = (arg1)->GetSize();
d14a1e28
RD
4644
4645 wxPyEndAllowThreads(__tstate);
4646 if (PyErr_Occurred()) SWIG_fail;
4647 }
4648 {
322913ce
RD
4649 wxSize * resultptr;
4650 resultptr = new wxSize((wxSize &) result);
15afbcd0 4651 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
4652 }
4653 return resultobj;
4654 fail:
4655 return NULL;
4656}
4657
4658
4659static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4660 PyObject *resultobj;
4661 wxCaret *arg1 = (wxCaret *) 0 ;
4662 int *arg2 = (int *) 0 ;
4663 int *arg3 = (int *) 0 ;
4664 int temp2 ;
4665 int temp3 ;
4666 PyObject * obj0 = 0 ;
4667 char *kwnames[] = {
4668 (char *) "self", NULL
4669 };
4670
4671 arg2 = &temp2;
4672 arg3 = &temp3;
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
15afbcd0
RD
4674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4676 {
4677 PyThreadState* __tstate = wxPyBeginAllowThreads();
4678 (arg1)->GetSize(arg2,arg3);
4679
4680 wxPyEndAllowThreads(__tstate);
4681 if (PyErr_Occurred()) SWIG_fail;
4682 }
4683 Py_INCREF(Py_None); resultobj = Py_None;
4684 {
4685 PyObject *o = PyInt_FromLong((long) (*arg2));
4686 resultobj = t_output_helper(resultobj,o);
4687 }
4688 {
4689 PyObject *o = PyInt_FromLong((long) (*arg3));
4690 resultobj = t_output_helper(resultobj,o);
4691 }
4692 return resultobj;
4693 fail:
4694 return NULL;
4695}
4696
4697
d14a1e28
RD
4698static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4699 PyObject *resultobj;
4700 wxCaret *arg1 = (wxCaret *) 0 ;
4701 wxWindow *result;
4702 PyObject * obj0 = 0 ;
4703 char *kwnames[] = {
4704 (char *) "self", NULL
4705 };
4706
4707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
15afbcd0
RD
4708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4710 {
4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
4712 result = (wxWindow *)(arg1)->GetWindow();
4713
4714 wxPyEndAllowThreads(__tstate);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 {
4718 resultobj = wxPyMake_wxObject(result);
4719 }
4720 return resultobj;
4721 fail:
4722 return NULL;
4723}
4724
4725
4726static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4727 PyObject *resultobj;
4728 wxCaret *arg1 = (wxCaret *) 0 ;
4729 int arg2 ;
4730 int arg3 ;
4731 PyObject * obj0 = 0 ;
994141e6
RD
4732 PyObject * obj1 = 0 ;
4733 PyObject * obj2 = 0 ;
d14a1e28
RD
4734 char *kwnames[] = {
4735 (char *) "self",(char *) "x",(char *) "y", NULL
4736 };
4737
994141e6 4738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4741 arg2 = (int) SWIG_AsInt(obj1);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 arg3 = (int) SWIG_AsInt(obj2);
4744 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 (arg1)->Move(arg2,arg3);
4748
4749 wxPyEndAllowThreads(__tstate);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 Py_INCREF(Py_None); resultobj = Py_None;
4753 return resultobj;
4754 fail:
4755 return NULL;
4756}
4757
4758
4759static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj;
4761 wxCaret *arg1 = (wxCaret *) 0 ;
4762 wxPoint *arg2 = 0 ;
4763 wxPoint temp2 ;
4764 PyObject * obj0 = 0 ;
4765 PyObject * obj1 = 0 ;
4766 char *kwnames[] = {
4767 (char *) "self",(char *) "pt", NULL
4768 };
4769
4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4773 {
4774 arg2 = &temp2;
4775 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4776 }
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 (arg1)->Move((wxPoint const &)*arg2);
4780
4781 wxPyEndAllowThreads(__tstate);
4782 if (PyErr_Occurred()) SWIG_fail;
4783 }
4784 Py_INCREF(Py_None); resultobj = Py_None;
4785 return resultobj;
4786 fail:
4787 return NULL;
4788}
4789
4790
4791static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4792 PyObject *resultobj;
4793 wxCaret *arg1 = (wxCaret *) 0 ;
4794 int arg2 ;
4795 int arg3 ;
4796 PyObject * obj0 = 0 ;
994141e6
RD
4797 PyObject * obj1 = 0 ;
4798 PyObject * obj2 = 0 ;
d14a1e28
RD
4799 char *kwnames[] = {
4800 (char *) "self",(char *) "width",(char *) "height", NULL
4801 };
4802
994141e6 4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
4804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4806 arg2 = (int) SWIG_AsInt(obj1);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 arg3 = (int) SWIG_AsInt(obj2);
4809 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4810 {
4811 PyThreadState* __tstate = wxPyBeginAllowThreads();
4812 (arg1)->SetSize(arg2,arg3);
4813
4814 wxPyEndAllowThreads(__tstate);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 Py_INCREF(Py_None); resultobj = Py_None;
4818 return resultobj;
4819 fail:
4820 return NULL;
4821}
4822
4823
4824static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4825 PyObject *resultobj;
4826 wxCaret *arg1 = (wxCaret *) 0 ;
4827 wxSize *arg2 = 0 ;
4828 wxSize temp2 ;
4829 PyObject * obj0 = 0 ;
4830 PyObject * obj1 = 0 ;
4831 char *kwnames[] = {
4832 (char *) "self",(char *) "size", NULL
4833 };
4834
4835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4838 {
4839 arg2 = &temp2;
4840 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4841 }
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 (arg1)->SetSize((wxSize const &)*arg2);
4845
4846 wxPyEndAllowThreads(__tstate);
4847 if (PyErr_Occurred()) SWIG_fail;
4848 }
4849 Py_INCREF(Py_None); resultobj = Py_None;
4850 return resultobj;
4851 fail:
4852 return NULL;
4853}
4854
4855
4856static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4857 PyObject *resultobj;
4858 wxCaret *arg1 = (wxCaret *) 0 ;
e811c8ce 4859 int arg2 = (int) True ;
d14a1e28 4860 PyObject * obj0 = 0 ;
994141e6 4861 PyObject * obj1 = 0 ;
d14a1e28
RD
4862 char *kwnames[] = {
4863 (char *) "self",(char *) "show", NULL
4864 };
4865
994141e6 4866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
4867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 4869 if (obj1) {
15afbcd0
RD
4870 arg2 = (int) SWIG_AsInt(obj1);
4871 if (PyErr_Occurred()) SWIG_fail;
994141e6 4872 }
d14a1e28
RD
4873 {
4874 PyThreadState* __tstate = wxPyBeginAllowThreads();
4875 (arg1)->Show(arg2);
4876
4877 wxPyEndAllowThreads(__tstate);
4878 if (PyErr_Occurred()) SWIG_fail;
4879 }
4880 Py_INCREF(Py_None); resultobj = Py_None;
4881 return resultobj;
4882 fail:
4883 return NULL;
4884}
4885
4886
4887static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj;
4889 wxCaret *arg1 = (wxCaret *) 0 ;
4890 PyObject * obj0 = 0 ;
4891 char *kwnames[] = {
4892 (char *) "self", NULL
4893 };
4894
4895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
15afbcd0
RD
4896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 (arg1)->Hide();
4901
4902 wxPyEndAllowThreads(__tstate);
4903 if (PyErr_Occurred()) SWIG_fail;
4904 }
4905 Py_INCREF(Py_None); resultobj = Py_None;
4906 return resultobj;
4907 fail:
4908 return NULL;
4909}
4910
4911
4912static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
4913 PyObject *obj;
4914 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4915 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4916 Py_INCREF(obj);
4917 return Py_BuildValue((char *)"");
4918}
4919static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4920 PyObject *resultobj;
4921 int result;
4922 char *kwnames[] = {
4923 NULL
4924 };
4925
4926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4927 {
4928 PyThreadState* __tstate = wxPyBeginAllowThreads();
4929 result = (int)wxCaret_GetBlinkTime();
4930
4931 wxPyEndAllowThreads(__tstate);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
15afbcd0 4934 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
4935 return resultobj;
4936 fail:
4937 return NULL;
4938}
4939
4940
4941static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4942 PyObject *resultobj;
4943 int arg1 ;
994141e6 4944 PyObject * obj0 = 0 ;
d14a1e28
RD
4945 char *kwnames[] = {
4946 (char *) "milliseconds", NULL
4947 };
4948
994141e6 4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
15afbcd0
RD
4950 arg1 = (int) SWIG_AsInt(obj0);
4951 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 wxCaret_SetBlinkTime(arg1);
4955
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 Py_INCREF(Py_None); resultobj = Py_None;
4960 return resultobj;
4961 fail:
4962 return NULL;
4963}
4964
4965
4966static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj;
4968 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4969 wxBusyCursor *result;
4970 PyObject * obj0 = 0 ;
4971 char *kwnames[] = {
4972 (char *) "cursor", NULL
4973 };
4974
4975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
4976 if (obj0) {
15afbcd0
RD
4977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
4979 }
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (wxBusyCursor *)new wxBusyCursor(arg1);
4983
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
15afbcd0 4987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
d14a1e28
RD
4988 return resultobj;
4989 fail:
4990 return NULL;
4991}
4992
4993
4994static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4995 PyObject *resultobj;
4996 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
4997 PyObject * obj0 = 0 ;
4998 char *kwnames[] = {
4999 (char *) "self", NULL
5000 };
5001
5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
15afbcd0
RD
5003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 delete arg1;
5008
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 Py_INCREF(Py_None); resultobj = Py_None;
5013 return resultobj;
5014 fail:
5015 return NULL;
5016}
5017
5018
5019static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5020 PyObject *obj;
5021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5022 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5023 Py_INCREF(obj);
5024 return Py_BuildValue((char *)"");
5025}
5026static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5027 PyObject *resultobj;
5028 wxWindow *arg1 = (wxWindow *) NULL ;
5029 wxWindowDisabler *result;
5030 PyObject * obj0 = 0 ;
5031 char *kwnames[] = {
5032 (char *) "winToSkip", NULL
5033 };
5034
5035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5036 if (obj0) {
15afbcd0
RD
5037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5039 }
5040 {
5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
5042 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5043
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
15afbcd0 5047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
d14a1e28
RD
5048 return resultobj;
5049 fail:
5050 return NULL;
5051}
5052
5053
5054static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5055 PyObject *resultobj;
5056 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5057 PyObject * obj0 = 0 ;
5058 char *kwnames[] = {
5059 (char *) "self", NULL
5060 };
5061
5062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
15afbcd0
RD
5063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5065 {
5066 PyThreadState* __tstate = wxPyBeginAllowThreads();
5067 delete arg1;
5068
5069 wxPyEndAllowThreads(__tstate);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 }
5072 Py_INCREF(Py_None); resultobj = Py_None;
5073 return resultobj;
5074 fail:
5075 return NULL;
5076}
5077
5078
5079static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5080 PyObject *obj;
5081 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5082 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5083 Py_INCREF(obj);
5084 return Py_BuildValue((char *)"");
5085}
5086static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5087 PyObject *resultobj;
5088 wxString *arg1 = 0 ;
5089 wxBusyInfo *result;
e811c8ce 5090 bool temp1 = False ;
d14a1e28
RD
5091 PyObject * obj0 = 0 ;
5092 char *kwnames[] = {
5093 (char *) "message", NULL
5094 };
5095
5096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5097 {
5098 arg1 = wxString_in_helper(obj0);
5099 if (arg1 == NULL) SWIG_fail;
e811c8ce 5100 temp1 = True;
d14a1e28
RD
5101 }
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5105
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 }
15afbcd0 5109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
d14a1e28
RD
5110 {
5111 if (temp1)
5112 delete arg1;
5113 }
5114 return resultobj;
5115 fail:
5116 {
5117 if (temp1)
5118 delete arg1;
5119 }
5120 return NULL;
5121}
5122
5123
5124static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5125 PyObject *resultobj;
5126 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5127 PyObject * obj0 = 0 ;
5128 char *kwnames[] = {
5129 (char *) "self", NULL
5130 };
5131
5132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
5133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5135 {
5136 PyThreadState* __tstate = wxPyBeginAllowThreads();
5137 delete arg1;
5138
5139 wxPyEndAllowThreads(__tstate);
5140 if (PyErr_Occurred()) SWIG_fail;
5141 }
5142 Py_INCREF(Py_None); resultobj = Py_None;
5143 return resultobj;
5144 fail:
5145 return NULL;
5146}
5147
5148
5149static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5150 PyObject *obj;
5151 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5152 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5153 Py_INCREF(obj);
5154 return Py_BuildValue((char *)"");
5155}
5156static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5157 PyObject *resultobj;
5158 wxStopWatch *result;
5159 char *kwnames[] = {
5160 NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5164 {
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (wxStopWatch *)new wxStopWatch();
5167
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
15afbcd0 5171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
d14a1e28
RD
5172 return resultobj;
5173 fail:
5174 return NULL;
5175}
5176
5177
5178static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5179 PyObject *resultobj;
5180 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5181 long arg2 = (long) 0 ;
5182 PyObject * obj0 = 0 ;
994141e6 5183 PyObject * obj1 = 0 ;
d14a1e28
RD
5184 char *kwnames[] = {
5185 (char *) "self",(char *) "t0", NULL
5186 };
5187
994141e6 5188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 5191 if (obj1) {
15afbcd0
RD
5192 arg2 = (long) SWIG_AsLong(obj1);
5193 if (PyErr_Occurred()) SWIG_fail;
994141e6 5194 }
d14a1e28
RD
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
5197 (arg1)->Start(arg2);
5198
5199 wxPyEndAllowThreads(__tstate);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 Py_INCREF(Py_None); resultobj = Py_None;
5203 return resultobj;
5204 fail:
5205 return NULL;
5206}
5207
5208
5209static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5210 PyObject *resultobj;
5211 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5212 PyObject * obj0 = 0 ;
5213 char *kwnames[] = {
5214 (char *) "self", NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
15afbcd0
RD
5218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 (arg1)->Pause();
5223
5224 wxPyEndAllowThreads(__tstate);
5225 if (PyErr_Occurred()) SWIG_fail;
5226 }
5227 Py_INCREF(Py_None); resultobj = Py_None;
5228 return resultobj;
5229 fail:
5230 return NULL;
5231}
5232
5233
5234static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5235 PyObject *resultobj;
5236 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5237 PyObject * obj0 = 0 ;
5238 char *kwnames[] = {
5239 (char *) "self", NULL
5240 };
5241
5242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
15afbcd0
RD
5243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5245 {
5246 PyThreadState* __tstate = wxPyBeginAllowThreads();
5247 (arg1)->Resume();
5248
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 }
5252 Py_INCREF(Py_None); resultobj = Py_None;
5253 return resultobj;
5254 fail:
5255 return NULL;
5256}
5257
5258
5259static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5260 PyObject *resultobj;
5261 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5262 long result;
5263 PyObject * obj0 = 0 ;
5264 char *kwnames[] = {
5265 (char *) "self", NULL
5266 };
5267
5268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
15afbcd0
RD
5269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 result = (long)((wxStopWatch const *)arg1)->Time();
5274
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
15afbcd0 5278 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
5279 return resultobj;
5280 fail:
5281 return NULL;
5282}
5283
5284
5285static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5286 PyObject *obj;
5287 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5288 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5289 Py_INCREF(obj);
5290 return Py_BuildValue((char *)"");
5291}
5292static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 int arg1 = (int) 9 ;
5295 wxFileHistory *result;
994141e6 5296 PyObject * obj0 = 0 ;
d14a1e28
RD
5297 char *kwnames[] = {
5298 (char *) "maxFiles", NULL
5299 };
5300
994141e6
RD
5301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5302 if (obj0) {
15afbcd0
RD
5303 arg1 = (int) SWIG_AsInt(obj0);
5304 if (PyErr_Occurred()) SWIG_fail;
994141e6 5305 }
d14a1e28
RD
5306 {
5307 PyThreadState* __tstate = wxPyBeginAllowThreads();
5308 result = (wxFileHistory *)new wxFileHistory(arg1);
5309
5310 wxPyEndAllowThreads(__tstate);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
15afbcd0 5313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
d14a1e28
RD
5314 return resultobj;
5315 fail:
5316 return NULL;
5317}
5318
5319
5320static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5323 PyObject * obj0 = 0 ;
5324 char *kwnames[] = {
5325 (char *) "self", NULL
5326 };
5327
5328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
15afbcd0
RD
5329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5331 {
5332 PyThreadState* __tstate = wxPyBeginAllowThreads();
5333 delete arg1;
5334
5335 wxPyEndAllowThreads(__tstate);
5336 if (PyErr_Occurred()) SWIG_fail;
5337 }
5338 Py_INCREF(Py_None); resultobj = Py_None;
5339 return resultobj;
5340 fail:
5341 return NULL;
5342}
5343
5344
5345static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5346 PyObject *resultobj;
5347 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5348 wxString *arg2 = 0 ;
e811c8ce 5349 bool temp2 = False ;
d14a1e28
RD
5350 PyObject * obj0 = 0 ;
5351 PyObject * obj1 = 0 ;
5352 char *kwnames[] = {
5353 (char *) "self",(char *) "file", NULL
5354 };
5355
5356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5359 {
5360 arg2 = wxString_in_helper(obj1);
5361 if (arg2 == NULL) SWIG_fail;
e811c8ce 5362 temp2 = True;
d14a1e28
RD
5363 }
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 (arg1)->AddFileToHistory((wxString const &)*arg2);
5367
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 Py_INCREF(Py_None); resultobj = Py_None;
5372 {
5373 if (temp2)
5374 delete arg2;
5375 }
5376 return resultobj;
5377 fail:
5378 {
5379 if (temp2)
5380 delete arg2;
5381 }
5382 return NULL;
5383}
5384
5385
5386static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5387 PyObject *resultobj;
5388 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5389 int arg2 ;
5390 PyObject * obj0 = 0 ;
994141e6 5391 PyObject * obj1 = 0 ;
d14a1e28
RD
5392 char *kwnames[] = {
5393 (char *) "self",(char *) "i", NULL
5394 };
5395
994141e6 5396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5399 arg2 = (int) SWIG_AsInt(obj1);
5400 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 (arg1)->RemoveFileFromHistory(arg2);
5404
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 }
5408 Py_INCREF(Py_None); resultobj = Py_None;
5409 return resultobj;
5410 fail:
5411 return NULL;
5412}
5413
5414
5415static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5416 PyObject *resultobj;
5417 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5418 int result;
5419 PyObject * obj0 = 0 ;
5420 char *kwnames[] = {
5421 (char *) "self", NULL
5422 };
5423
5424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
15afbcd0
RD
5425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5427 {
5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
5429 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5430
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) SWIG_fail;
5433 }
15afbcd0 5434 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5435 return resultobj;
5436 fail:
5437 return NULL;
5438}
5439
5440
5441static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5442 PyObject *resultobj;
5443 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5444 wxMenu *arg2 = (wxMenu *) 0 ;
5445 PyObject * obj0 = 0 ;
5446 PyObject * obj1 = 0 ;
5447 char *kwnames[] = {
5448 (char *) "self",(char *) "menu", NULL
5449 };
5450
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5456 {
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 (arg1)->UseMenu(arg2);
5459
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 Py_INCREF(Py_None); resultobj = Py_None;
5464 return resultobj;
5465 fail:
5466 return NULL;
5467}
5468
5469
5470static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj;
5472 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5473 wxMenu *arg2 = (wxMenu *) 0 ;
5474 PyObject * obj0 = 0 ;
5475 PyObject * obj1 = 0 ;
5476 char *kwnames[] = {
5477 (char *) "self",(char *) "menu", NULL
5478 };
5479
5480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 (arg1)->RemoveMenu(arg2);
5488
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 Py_INCREF(Py_None); resultobj = Py_None;
5493 return resultobj;
5494 fail:
5495 return NULL;
5496}
5497
5498
5499static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5500 PyObject *resultobj;
5501 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5502 wxConfigBase *arg2 = 0 ;
5503 PyObject * obj0 = 0 ;
5504 PyObject * obj1 = 0 ;
5505 char *kwnames[] = {
5506 (char *) "self",(char *) "config", NULL
5507 };
5508
5509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5513 SWIG_POINTER_EXCEPTION | 0)) == -1)
5514 SWIG_fail;
d14a1e28 5515 if (arg2 == NULL) {
15afbcd0
RD
5516 PyErr_SetString(PyExc_TypeError,"null reference");
5517 SWIG_fail;
d14a1e28
RD
5518 }
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 (arg1)->Load(*arg2);
5522
5523 wxPyEndAllowThreads(__tstate);
5524 if (PyErr_Occurred()) SWIG_fail;
5525 }
5526 Py_INCREF(Py_None); resultobj = Py_None;
5527 return resultobj;
5528 fail:
5529 return NULL;
5530}
5531
5532
5533static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5534 PyObject *resultobj;
5535 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5536 wxConfigBase *arg2 = 0 ;
5537 PyObject * obj0 = 0 ;
5538 PyObject * obj1 = 0 ;
5539 char *kwnames[] = {
5540 (char *) "self",(char *) "config", NULL
5541 };
5542
5543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5546 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5547 SWIG_POINTER_EXCEPTION | 0)) == -1)
5548 SWIG_fail;
d14a1e28 5549 if (arg2 == NULL) {
15afbcd0
RD
5550 PyErr_SetString(PyExc_TypeError,"null reference");
5551 SWIG_fail;
d14a1e28
RD
5552 }
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 (arg1)->Save(*arg2);
5556
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 Py_INCREF(Py_None); resultobj = Py_None;
5561 return resultobj;
5562 fail:
5563 return NULL;
5564}
5565
5566
5567static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj;
5569 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5570 PyObject * obj0 = 0 ;
5571 char *kwnames[] = {
5572 (char *) "self", NULL
5573 };
5574
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
15afbcd0
RD
5576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5578 {
5579 PyThreadState* __tstate = wxPyBeginAllowThreads();
5580 (arg1)->AddFilesToMenu();
5581
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 Py_INCREF(Py_None); resultobj = Py_None;
5586 return resultobj;
5587 fail:
5588 return NULL;
5589}
5590
5591
5592static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5593 PyObject *resultobj;
5594 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5595 wxMenu *arg2 = (wxMenu *) 0 ;
5596 PyObject * obj0 = 0 ;
5597 PyObject * obj1 = 0 ;
5598 char *kwnames[] = {
5599 (char *) "self",(char *) "menu", NULL
5600 };
5601
5602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5607 {
5608 PyThreadState* __tstate = wxPyBeginAllowThreads();
5609 (arg1)->AddFilesToMenu(arg2);
5610
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) SWIG_fail;
5613 }
5614 Py_INCREF(Py_None); resultobj = Py_None;
5615 return resultobj;
5616 fail:
5617 return NULL;
5618}
5619
5620
5621static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5622 PyObject *resultobj;
5623 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5624 int arg2 ;
5625 wxString result;
5626 PyObject * obj0 = 0 ;
994141e6 5627 PyObject * obj1 = 0 ;
d14a1e28
RD
5628 char *kwnames[] = {
5629 (char *) "self",(char *) "i", NULL
5630 };
5631
994141e6 5632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
5633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5635 arg2 = (int) SWIG_AsInt(obj1);
5636 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5640
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 {
5645#if wxUSE_UNICODE
5646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5647#else
5648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5649#endif
5650 }
5651 return resultobj;
5652 fail:
5653 return NULL;
5654}
5655
5656
5657static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj;
5659 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5660 int result;
5661 PyObject * obj0 = 0 ;
5662 char *kwnames[] = {
5663 (char *) "self", NULL
5664 };
5665
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
5667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5669 {
5670 PyThreadState* __tstate = wxPyBeginAllowThreads();
5671 result = (int)((wxFileHistory const *)arg1)->GetCount();
5672
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
15afbcd0 5676 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
5677 return resultobj;
5678 fail:
5679 return NULL;
5680}
5681
5682
5683static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5684 PyObject *obj;
5685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5686 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5687 Py_INCREF(obj);
5688 return Py_BuildValue((char *)"");
5689}
5690static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5691 PyObject *resultobj;
5692 wxString *arg1 = 0 ;
5693 wxString const &arg2_defvalue = wxPyEmptyString ;
5694 wxString *arg2 = (wxString *) &arg2_defvalue ;
5695 wxSingleInstanceChecker *result;
e811c8ce
RD
5696 bool temp1 = False ;
5697 bool temp2 = False ;
d14a1e28
RD
5698 PyObject * obj0 = 0 ;
5699 PyObject * obj1 = 0 ;
5700 char *kwnames[] = {
5701 (char *) "name",(char *) "path", NULL
5702 };
5703
5704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5705 {
5706 arg1 = wxString_in_helper(obj0);
5707 if (arg1 == NULL) SWIG_fail;
e811c8ce 5708 temp1 = True;
d14a1e28
RD
5709 }
5710 if (obj1) {
5711 {
5712 arg2 = wxString_in_helper(obj1);
5713 if (arg2 == NULL) SWIG_fail;
e811c8ce 5714 temp2 = True;
d14a1e28
RD
5715 }
5716 }
5717 {
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5720
5721 wxPyEndAllowThreads(__tstate);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 }
15afbcd0 5724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
d14a1e28
RD
5725 {
5726 if (temp1)
5727 delete arg1;
5728 }
5729 {
5730 if (temp2)
5731 delete arg2;
5732 }
5733 return resultobj;
5734 fail:
5735 {
5736 if (temp1)
5737 delete arg1;
5738 }
5739 {
5740 if (temp2)
5741 delete arg2;
5742 }
5743 return NULL;
5744}
5745
5746
5747static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5748 PyObject *resultobj;
5749 wxSingleInstanceChecker *result;
5750 char *kwnames[] = {
5751 NULL
5752 };
5753
5754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5755 {
5756 PyThreadState* __tstate = wxPyBeginAllowThreads();
5757 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5758
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
15afbcd0 5762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
d14a1e28
RD
5763 return resultobj;
5764 fail:
5765 return NULL;
5766}
5767
5768
5769static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5770 PyObject *resultobj;
5771 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5772 PyObject * obj0 = 0 ;
5773 char *kwnames[] = {
5774 (char *) "self", NULL
5775 };
5776
5777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
15afbcd0
RD
5778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 delete arg1;
5783
5784 wxPyEndAllowThreads(__tstate);
5785 if (PyErr_Occurred()) SWIG_fail;
5786 }
5787 Py_INCREF(Py_None); resultobj = Py_None;
5788 return resultobj;
5789 fail:
5790 return NULL;
5791}
5792
5793
5794static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5795 PyObject *resultobj;
5796 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5797 wxString *arg2 = 0 ;
5798 wxString const &arg3_defvalue = wxPyEmptyString ;
5799 wxString *arg3 = (wxString *) &arg3_defvalue ;
5800 bool result;
e811c8ce
RD
5801 bool temp2 = False ;
5802 bool temp3 = False ;
d14a1e28
RD
5803 PyObject * obj0 = 0 ;
5804 PyObject * obj1 = 0 ;
5805 PyObject * obj2 = 0 ;
5806 char *kwnames[] = {
5807 (char *) "self",(char *) "name",(char *) "path", NULL
5808 };
5809
5810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
5811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5813 {
5814 arg2 = wxString_in_helper(obj1);
5815 if (arg2 == NULL) SWIG_fail;
e811c8ce 5816 temp2 = True;
d14a1e28
RD
5817 }
5818 if (obj2) {
5819 {
5820 arg3 = wxString_in_helper(obj2);
5821 if (arg3 == NULL) SWIG_fail;
e811c8ce 5822 temp3 = True;
d14a1e28
RD
5823 }
5824 }
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
4d5c3d91 5832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5833 {
5834 if (temp2)
5835 delete arg2;
5836 }
5837 {
5838 if (temp3)
5839 delete arg3;
5840 }
5841 return resultobj;
5842 fail:
5843 {
5844 if (temp2)
5845 delete arg2;
5846 }
5847 {
5848 if (temp3)
5849 delete arg3;
5850 }
5851 return NULL;
5852}
5853
5854
5855static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj;
5857 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5858 bool result;
5859 PyObject * obj0 = 0 ;
5860 char *kwnames[] = {
5861 (char *) "self", NULL
5862 };
5863
5864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
15afbcd0
RD
5865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5867 {
5868 PyThreadState* __tstate = wxPyBeginAllowThreads();
5869 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5870
5871 wxPyEndAllowThreads(__tstate);
5872 if (PyErr_Occurred()) SWIG_fail;
5873 }
4d5c3d91 5874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5875 return resultobj;
5876 fail:
5877 return NULL;
5878}
5879
5880
5881static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5882 PyObject *obj;
5883 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5884 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5885 Py_INCREF(obj);
5886 return Py_BuildValue((char *)"");
5887}
5888static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5889 PyObject *resultobj;
5890 wxWindow *arg1 = (wxWindow *) 0 ;
5891 wxDC *arg2 = 0 ;
5892 int arg3 ;
5893 PyObject * obj0 = 0 ;
5894 PyObject * obj1 = 0 ;
994141e6 5895 PyObject * obj2 = 0 ;
d14a1e28
RD
5896 char *kwnames[] = {
5897 (char *) "window",(char *) "dc",(char *) "method", NULL
5898 };
5899
994141e6 5900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
5901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5903 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
5904 SWIG_POINTER_EXCEPTION | 0)) == -1)
5905 SWIG_fail;
d14a1e28 5906 if (arg2 == NULL) {
15afbcd0
RD
5907 PyErr_SetString(PyExc_TypeError,"null reference");
5908 SWIG_fail;
994141e6 5909 }
15afbcd0
RD
5910 arg3 = (int) SWIG_AsInt(obj2);
5911 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
5912 {
5913 PyThreadState* __tstate = wxPyBeginAllowThreads();
5914 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5915
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 Py_INCREF(Py_None); resultobj = Py_None;
5920 return resultobj;
5921 fail:
5922 return NULL;
5923}
5924
5925
5926static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject *resultobj;
5928 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5929 PyObject * obj0 = 0 ;
5930 char *kwnames[] = {
5931 (char *) "self", NULL
5932 };
5933
5934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
15afbcd0
RD
5935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 delete arg1;
5940
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 Py_INCREF(Py_None); resultobj = Py_None;
5945 return resultobj;
5946 fail:
5947 return NULL;
5948}
5949
5950
5951static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5952 PyObject *resultobj;
5953 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5954 wxString result;
5955 PyObject * obj0 = 0 ;
5956 char *kwnames[] = {
5957 (char *) "self", NULL
5958 };
5959
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
15afbcd0
RD
5961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5963 {
5964 PyThreadState* __tstate = wxPyBeginAllowThreads();
5965 result = (arg1)->GetTip();
5966
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 {
5971#if wxUSE_UNICODE
5972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5973#else
5974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5975#endif
5976 }
5977 return resultobj;
5978 fail:
5979 return NULL;
5980}
5981
5982
5983static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5984 PyObject *resultobj;
5985 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5986 size_t result;
5987 PyObject * obj0 = 0 ;
5988 char *kwnames[] = {
5989 (char *) "self", NULL
5990 };
5991
5992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
15afbcd0
RD
5993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
5995 {
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 result = (size_t)(arg1)->GetCurrentTip();
5998
5999 wxPyEndAllowThreads(__tstate);
6000 if (PyErr_Occurred()) SWIG_fail;
6001 }
15afbcd0 6002 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
6003 return resultobj;
6004 fail:
6005 return NULL;
6006}
6007
6008
6009static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6010 PyObject *resultobj;
6011 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6012 wxString *arg2 = 0 ;
6013 wxString result;
e811c8ce 6014 bool temp2 = False ;
d14a1e28
RD
6015 PyObject * obj0 = 0 ;
6016 PyObject * obj1 = 0 ;
6017 char *kwnames[] = {
6018 (char *) "self",(char *) "tip", NULL
6019 };
6020
6021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
6022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6024 {
6025 arg2 = wxString_in_helper(obj1);
6026 if (arg2 == NULL) SWIG_fail;
e811c8ce 6027 temp2 = True;
d14a1e28
RD
6028 }
6029 {
6030 PyThreadState* __tstate = wxPyBeginAllowThreads();
6031 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6032
6033 wxPyEndAllowThreads(__tstate);
6034 if (PyErr_Occurred()) SWIG_fail;
6035 }
6036 {
6037#if wxUSE_UNICODE
6038 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6039#else
6040 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6041#endif
6042 }
6043 {
6044 if (temp2)
6045 delete arg2;
6046 }
6047 return resultobj;
6048 fail:
6049 {
6050 if (temp2)
6051 delete arg2;
6052 }
6053 return NULL;
6054}
6055
6056
6057static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6058 PyObject *obj;
6059 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6060 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6061 Py_INCREF(obj);
6062 return Py_BuildValue((char *)"");
6063}
6064static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6065 PyObject *resultobj;
6066 size_t arg1 ;
6067 wxPyTipProvider *result;
6068 PyObject * obj0 = 0 ;
6069 char *kwnames[] = {
6070 (char *) "currentTip", NULL
6071 };
6072
6073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
15afbcd0
RD
6074 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6075 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6076 {
6077 PyThreadState* __tstate = wxPyBeginAllowThreads();
6078 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6079
6080 wxPyEndAllowThreads(__tstate);
6081 if (PyErr_Occurred()) SWIG_fail;
6082 }
15afbcd0 6083 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
d14a1e28
RD
6084 return resultobj;
6085 fail:
6086 return NULL;
6087}
6088
6089
6090static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6091 PyObject *resultobj;
6092 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6093 PyObject *arg2 = (PyObject *) 0 ;
6094 PyObject *arg3 = (PyObject *) 0 ;
6095 PyObject * obj0 = 0 ;
6096 PyObject * obj1 = 0 ;
6097 PyObject * obj2 = 0 ;
6098 char *kwnames[] = {
6099 (char *) "self",(char *) "self",(char *) "_class", NULL
6100 };
6101
6102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
6103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6105 arg2 = obj1;
6106 arg3 = obj2;
6107 {
6108 PyThreadState* __tstate = wxPyBeginAllowThreads();
6109 (arg1)->_setCallbackInfo(arg2,arg3);
6110
6111 wxPyEndAllowThreads(__tstate);
6112 if (PyErr_Occurred()) SWIG_fail;
6113 }
6114 Py_INCREF(Py_None); resultobj = Py_None;
6115 return resultobj;
6116 fail:
6117 return NULL;
6118}
6119
6120
6121static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6122 PyObject *obj;
6123 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6124 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6125 Py_INCREF(obj);
6126 return Py_BuildValue((char *)"");
6127}
6128static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6129 PyObject *resultobj;
6130 wxWindow *arg1 = (wxWindow *) 0 ;
6131 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
e811c8ce 6132 bool arg3 = (bool) True ;
d14a1e28
RD
6133 bool result;
6134 PyObject * obj0 = 0 ;
6135 PyObject * obj1 = 0 ;
6136 PyObject * obj2 = 0 ;
6137 char *kwnames[] = {
6138 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6139 };
6140
6141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
6142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6144 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 6146 if (obj2) {
15afbcd0
RD
6147 arg3 = (bool) SWIG_AsBool(obj2);
6148 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6149 }
6150 {
6151 PyThreadState* __tstate = wxPyBeginAllowThreads();
6152 result = (bool)wxShowTip(arg1,arg2,arg3);
6153
6154 wxPyEndAllowThreads(__tstate);
6155 if (PyErr_Occurred()) SWIG_fail;
6156 }
4d5c3d91 6157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6158 return resultobj;
6159 fail:
6160 return NULL;
6161}
6162
6163
6164static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6165 PyObject *resultobj;
6166 wxString *arg1 = 0 ;
6167 size_t arg2 ;
6168 wxTipProvider *result;
e811c8ce 6169 bool temp1 = False ;
d14a1e28
RD
6170 PyObject * obj0 = 0 ;
6171 PyObject * obj1 = 0 ;
6172 char *kwnames[] = {
6173 (char *) "filename",(char *) "currentTip", NULL
6174 };
6175
6176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6177 {
6178 arg1 = wxString_in_helper(obj0);
6179 if (arg1 == NULL) SWIG_fail;
e811c8ce 6180 temp1 = True;
d14a1e28 6181 }
15afbcd0
RD
6182 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6183 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6184 {
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6187
6188 wxPyEndAllowThreads(__tstate);
6189 if (PyErr_Occurred()) SWIG_fail;
6190 }
15afbcd0 6191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
d14a1e28
RD
6192 {
6193 if (temp1)
6194 delete arg1;
6195 }
6196 return resultobj;
6197 fail:
6198 {
6199 if (temp1)
6200 delete arg1;
6201 }
6202 return NULL;
6203}
6204
6205
6206static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6207 PyObject *resultobj;
6208 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6209 int arg2 = (int) -1 ;
6210 wxPyTimer *result;
6211 PyObject * obj0 = 0 ;
994141e6 6212 PyObject * obj1 = 0 ;
d14a1e28
RD
6213 char *kwnames[] = {
6214 (char *) "owner",(char *) "id", NULL
6215 };
6216
994141e6 6217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 6218 if (obj0) {
15afbcd0
RD
6219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 6221 }
994141e6 6222 if (obj1) {
15afbcd0
RD
6223 arg2 = (int) SWIG_AsInt(obj1);
6224 if (PyErr_Occurred()) SWIG_fail;
994141e6 6225 }
d14a1e28
RD
6226 {
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6229
6230 wxPyEndAllowThreads(__tstate);
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
15afbcd0 6233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
d14a1e28
RD
6234 return resultobj;
6235 fail:
6236 return NULL;
6237}
6238
6239
6240static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj;
6242 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6243 PyObject * obj0 = 0 ;
6244 char *kwnames[] = {
6245 (char *) "self", NULL
6246 };
6247
6248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
15afbcd0
RD
6249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 delete arg1;
6254
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 Py_INCREF(Py_None); resultobj = Py_None;
6259 return resultobj;
6260 fail:
6261 return NULL;
6262}
6263
6264
7722248d
RD
6265static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj;
6267 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6268 PyObject *arg2 = (PyObject *) 0 ;
6269 PyObject *arg3 = (PyObject *) 0 ;
6270 PyObject * obj0 = 0 ;
6271 PyObject * obj1 = 0 ;
6272 PyObject * obj2 = 0 ;
6273 char *kwnames[] = {
6274 (char *) "self",(char *) "self",(char *) "_class", NULL
6275 };
6276
6277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
6278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7722248d
RD
6280 arg2 = obj1;
6281 arg3 = obj2;
6282 {
6283 PyThreadState* __tstate = wxPyBeginAllowThreads();
6284 (arg1)->_setCallbackInfo(arg2,arg3);
6285
6286 wxPyEndAllowThreads(__tstate);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 }
6289 Py_INCREF(Py_None); resultobj = Py_None;
6290 return resultobj;
6291 fail:
6292 return NULL;
6293}
6294
6295
d14a1e28
RD
6296static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6297 PyObject *resultobj;
6298 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6299 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6300 int arg3 = (int) -1 ;
6301 PyObject * obj0 = 0 ;
6302 PyObject * obj1 = 0 ;
994141e6 6303 PyObject * obj2 = 0 ;
d14a1e28
RD
6304 char *kwnames[] = {
6305 (char *) "self",(char *) "owner",(char *) "id", NULL
6306 };
6307
994141e6 6308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
6309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 6313 if (obj2) {
15afbcd0
RD
6314 arg3 = (int) SWIG_AsInt(obj2);
6315 if (PyErr_Occurred()) SWIG_fail;
994141e6 6316 }
d14a1e28
RD
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 (arg1)->SetOwner(arg2,arg3);
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 Py_INCREF(Py_None); resultobj = Py_None;
6325 return resultobj;
6326 fail:
6327 return NULL;
6328}
6329
6330
6331static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6334 int arg2 = (int) -1 ;
e811c8ce 6335 bool arg3 = (bool) False ;
d14a1e28
RD
6336 bool result;
6337 PyObject * obj0 = 0 ;
994141e6 6338 PyObject * obj1 = 0 ;
d14a1e28
RD
6339 PyObject * obj2 = 0 ;
6340 char *kwnames[] = {
6341 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6342 };
6343
994141e6 6344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
6345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 6347 if (obj1) {
15afbcd0
RD
6348 arg2 = (int) SWIG_AsInt(obj1);
6349 if (PyErr_Occurred()) SWIG_fail;
994141e6 6350 }
d14a1e28 6351 if (obj2) {
15afbcd0
RD
6352 arg3 = (bool) SWIG_AsBool(obj2);
6353 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6354 }
6355 {
6356 PyThreadState* __tstate = wxPyBeginAllowThreads();
6357 result = (bool)(arg1)->Start(arg2,arg3);
6358
6359 wxPyEndAllowThreads(__tstate);
6360 if (PyErr_Occurred()) SWIG_fail;
6361 }
4d5c3d91 6362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6363 return resultobj;
6364 fail:
6365 return NULL;
6366}
6367
6368
6369static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6370 PyObject *resultobj;
6371 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6372 PyObject * obj0 = 0 ;
6373 char *kwnames[] = {
6374 (char *) "self", NULL
6375 };
6376
6377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
15afbcd0
RD
6378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6380 {
6381 PyThreadState* __tstate = wxPyBeginAllowThreads();
6382 (arg1)->Stop();
6383
6384 wxPyEndAllowThreads(__tstate);
6385 if (PyErr_Occurred()) SWIG_fail;
6386 }
6387 Py_INCREF(Py_None); resultobj = Py_None;
6388 return resultobj;
6389 fail:
6390 return NULL;
6391}
6392
6393
d14a1e28
RD
6394static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6395 PyObject *resultobj;
6396 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6397 bool result;
6398 PyObject * obj0 = 0 ;
6399 char *kwnames[] = {
6400 (char *) "self", NULL
6401 };
6402
6403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
15afbcd0
RD
6404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6406 {
6407 PyThreadState* __tstate = wxPyBeginAllowThreads();
6408 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6409
6410 wxPyEndAllowThreads(__tstate);
6411 if (PyErr_Occurred()) SWIG_fail;
6412 }
4d5c3d91 6413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6414 return resultobj;
6415 fail:
6416 return NULL;
6417}
6418
6419
6420static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6421 PyObject *resultobj;
6422 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6423 int result;
6424 PyObject * obj0 = 0 ;
6425 char *kwnames[] = {
6426 (char *) "self", NULL
6427 };
6428
6429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
15afbcd0
RD
6430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6432 {
6433 PyThreadState* __tstate = wxPyBeginAllowThreads();
6434 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6435
6436 wxPyEndAllowThreads(__tstate);
6437 if (PyErr_Occurred()) SWIG_fail;
6438 }
15afbcd0 6439 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6440 return resultobj;
6441 fail:
6442 return NULL;
6443}
6444
6445
6446static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6447 PyObject *resultobj;
6448 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6449 bool result;
6450 PyObject * obj0 = 0 ;
6451 char *kwnames[] = {
6452 (char *) "self", NULL
6453 };
6454
6455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
15afbcd0
RD
6456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6458 {
6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
6460 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6461
6462 wxPyEndAllowThreads(__tstate);
6463 if (PyErr_Occurred()) SWIG_fail;
6464 }
4d5c3d91 6465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6466 return resultobj;
6467 fail:
6468 return NULL;
6469}
6470
6471
cc6dd355
RD
6472static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6473 PyObject *resultobj;
6474 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6475 int result;
6476 PyObject * obj0 = 0 ;
6477 char *kwnames[] = {
6478 (char *) "self", NULL
6479 };
6480
6481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
15afbcd0
RD
6482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
cc6dd355
RD
6484 {
6485 PyThreadState* __tstate = wxPyBeginAllowThreads();
6486 result = (int)((wxPyTimer const *)arg1)->GetId();
6487
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
15afbcd0 6491 resultobj = SWIG_FromInt((int)result);
cc6dd355
RD
6492 return resultobj;
6493 fail:
6494 return NULL;
6495}
6496
6497
d14a1e28
RD
6498static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6499 PyObject *obj;
6500 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6501 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6502 Py_INCREF(obj);
6503 return Py_BuildValue((char *)"");
6504}
6505static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6506 PyObject *resultobj;
6507 int arg1 = (int) 0 ;
6508 int arg2 = (int) 0 ;
6509 wxTimerEvent *result;
994141e6
RD
6510 PyObject * obj0 = 0 ;
6511 PyObject * obj1 = 0 ;
d14a1e28
RD
6512 char *kwnames[] = {
6513 (char *) "timerid",(char *) "interval", NULL
6514 };
6515
994141e6
RD
6516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6517 if (obj0) {
15afbcd0
RD
6518 arg1 = (int) SWIG_AsInt(obj0);
6519 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
6520 }
6521 if (obj1) {
15afbcd0
RD
6522 arg2 = (int) SWIG_AsInt(obj1);
6523 if (PyErr_Occurred()) SWIG_fail;
994141e6 6524 }
d14a1e28
RD
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6528
6529 wxPyEndAllowThreads(__tstate);
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
15afbcd0 6532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
d14a1e28
RD
6533 return resultobj;
6534 fail:
6535 return NULL;
6536}
6537
6538
6539static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj;
6541 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6542 int result;
6543 PyObject * obj0 = 0 ;
6544 char *kwnames[] = {
6545 (char *) "self", NULL
6546 };
6547
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
15afbcd0
RD
6549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6554
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
15afbcd0 6558 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
6559 return resultobj;
6560 fail:
6561 return NULL;
6562}
6563
6564
6565static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6566 PyObject *obj;
6567 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6568 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6569 Py_INCREF(obj);
6570 return Py_BuildValue((char *)"");
6571}
6572static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6573 PyObject *resultobj;
6574 wxTimer *arg1 = 0 ;
6575 wxTimerRunner *result;
6576 PyObject * obj0 = 0 ;
6577
6578 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
15afbcd0
RD
6579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6580 SWIG_POINTER_EXCEPTION | 0)) == -1)
6581 SWIG_fail;
d14a1e28 6582 if (arg1 == NULL) {
15afbcd0
RD
6583 PyErr_SetString(PyExc_TypeError,"null reference");
6584 SWIG_fail;
d14a1e28
RD
6585 }
6586 {
6587 PyThreadState* __tstate = wxPyBeginAllowThreads();
6588 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6589
6590 wxPyEndAllowThreads(__tstate);
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
15afbcd0 6593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
d14a1e28
RD
6594 return resultobj;
6595 fail:
6596 return NULL;
6597}
6598
6599
6600static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6601 PyObject *resultobj;
6602 wxTimer *arg1 = 0 ;
6603 int arg2 ;
e811c8ce 6604 bool arg3 = (bool) False ;
d14a1e28
RD
6605 wxTimerRunner *result;
6606 PyObject * obj0 = 0 ;
994141e6 6607 PyObject * obj1 = 0 ;
d14a1e28
RD
6608 PyObject * obj2 = 0 ;
6609
994141e6 6610 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
6611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6612 SWIG_POINTER_EXCEPTION | 0)) == -1)
6613 SWIG_fail;
d14a1e28 6614 if (arg1 == NULL) {
15afbcd0
RD
6615 PyErr_SetString(PyExc_TypeError,"null reference");
6616 SWIG_fail;
994141e6 6617 }
15afbcd0
RD
6618 arg2 = (int) SWIG_AsInt(obj1);
6619 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 6620 if (obj2) {
15afbcd0
RD
6621 arg3 = (bool) SWIG_AsBool(obj2);
6622 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6623 }
6624 {
6625 PyThreadState* __tstate = wxPyBeginAllowThreads();
6626 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6627
6628 wxPyEndAllowThreads(__tstate);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
15afbcd0 6631 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
d14a1e28
RD
6632 return resultobj;
6633 fail:
6634 return NULL;
6635}
6636
6637
6638static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6639 int argc;
6640 PyObject *argv[4];
6641 int ii;
6642
6643 argc = PyObject_Length(args);
6644 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6645 argv[ii] = PyTuple_GetItem(args,ii);
6646 }
6647 if (argc == 1) {
6648 int _v;
6649 {
6650 void *ptr;
15afbcd0 6651 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
d14a1e28
RD
6652 _v = 0;
6653 PyErr_Clear();
6654 } else {
6655 _v = 1;
6656 }
6657 }
6658 if (_v) {
6659 return _wrap_new_TimerRunner__SWIG_0(self,args);
6660 }
6661 }
6662 if ((argc >= 2) && (argc <= 3)) {
6663 int _v;
6664 {
6665 void *ptr;
15afbcd0 6666 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
d14a1e28
RD
6667 _v = 0;
6668 PyErr_Clear();
6669 } else {
6670 _v = 1;
6671 }
6672 }
6673 if (_v) {
15afbcd0 6674 _v = SWIG_CheckInt(argv[1]);
d14a1e28
RD
6675 if (_v) {
6676 if (argc <= 2) {
6677 return _wrap_new_TimerRunner__SWIG_1(self,args);
6678 }
15afbcd0 6679 _v = SWIG_CheckBool(argv[2]);
d14a1e28
RD
6680 if (_v) {
6681 return _wrap_new_TimerRunner__SWIG_1(self,args);
6682 }
6683 }
6684 }
6685 }
6686
6687 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6688 return NULL;
6689}
6690
6691
6692static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj;
6694 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6695 PyObject * obj0 = 0 ;
6696 char *kwnames[] = {
6697 (char *) "self", NULL
6698 };
6699
6700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
15afbcd0
RD
6701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6703 {
6704 PyThreadState* __tstate = wxPyBeginAllowThreads();
6705 delete arg1;
6706
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 Py_INCREF(Py_None); resultobj = Py_None;
6711 return resultobj;
6712 fail:
6713 return NULL;
6714}
6715
6716
6717static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6718 PyObject *resultobj;
6719 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6720 int arg2 ;
e811c8ce 6721 bool arg3 = (bool) False ;
d14a1e28 6722 PyObject * obj0 = 0 ;
994141e6 6723 PyObject * obj1 = 0 ;
d14a1e28
RD
6724 PyObject * obj2 = 0 ;
6725 char *kwnames[] = {
6726 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6727 };
6728
994141e6 6729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
6730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6732 arg2 = (int) SWIG_AsInt(obj1);
6733 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 6734 if (obj2) {
15afbcd0
RD
6735 arg3 = (bool) SWIG_AsBool(obj2);
6736 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6737 }
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 (arg1)->Start(arg2,arg3);
6741
6742 wxPyEndAllowThreads(__tstate);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 Py_INCREF(Py_None); resultobj = Py_None;
6746 return resultobj;
6747 fail:
6748 return NULL;
6749}
6750
6751
6752static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6753 PyObject *obj;
6754 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6755 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6756 Py_INCREF(obj);
6757 return Py_BuildValue((char *)"");
6758}
6759static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6760 PyObject *resultobj;
6761 wxLog *result;
6762 char *kwnames[] = {
6763 NULL
6764 };
6765
6766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6767 {
6768 PyThreadState* __tstate = wxPyBeginAllowThreads();
6769 result = (wxLog *)new wxLog();
6770
6771 wxPyEndAllowThreads(__tstate);
6772 if (PyErr_Occurred()) SWIG_fail;
6773 }
15afbcd0 6774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
d14a1e28
RD
6775 return resultobj;
6776 fail:
6777 return NULL;
6778}
6779
6780
6781static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6782 PyObject *resultobj;
6783 bool result;
6784 char *kwnames[] = {
6785 NULL
6786 };
6787
6788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6789 {
6790 PyThreadState* __tstate = wxPyBeginAllowThreads();
6791 result = (bool)wxLog::IsEnabled();
6792
6793 wxPyEndAllowThreads(__tstate);
6794 if (PyErr_Occurred()) SWIG_fail;
6795 }
4d5c3d91 6796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6797 return resultobj;
6798 fail:
6799 return NULL;
6800}
6801
6802
6803static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6804 PyObject *resultobj;
e811c8ce 6805 bool arg1 = (bool) True ;
d14a1e28
RD
6806 bool result;
6807 PyObject * obj0 = 0 ;
6808 char *kwnames[] = {
6809 (char *) "doIt", NULL
6810 };
6811
6812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6813 if (obj0) {
15afbcd0
RD
6814 arg1 = (bool) SWIG_AsBool(obj0);
6815 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6816 }
6817 {
6818 PyThreadState* __tstate = wxPyBeginAllowThreads();
6819 result = (bool)wxLog::EnableLogging(arg1);
6820
6821 wxPyEndAllowThreads(__tstate);
6822 if (PyErr_Occurred()) SWIG_fail;
6823 }
4d5c3d91 6824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6825 return resultobj;
6826 fail:
6827 return NULL;
6828}
6829
6830
6831static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6832 PyObject *resultobj;
6833 wxLogLevel arg1 ;
6834 wxChar *arg2 = (wxChar *) 0 ;
6835 time_t arg3 ;
6836 PyObject * obj0 = 0 ;
6837 PyObject * obj1 = 0 ;
6838 PyObject * obj2 = 0 ;
6839 char *kwnames[] = {
6840 (char *) "level",(char *) "szString",(char *) "t", NULL
6841 };
6842
6843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
6844 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
6847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6848 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
6849 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
6850 {
6851 PyThreadState* __tstate = wxPyBeginAllowThreads();
6852 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6853
6854 wxPyEndAllowThreads(__tstate);
6855 if (PyErr_Occurred()) SWIG_fail;
6856 }
6857 Py_INCREF(Py_None); resultobj = Py_None;
6858 return resultobj;
6859 fail:
6860 return NULL;
6861}
6862
6863
6864static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
6865 PyObject *resultobj;
6866 wxLog *arg1 = (wxLog *) 0 ;
6867 PyObject * obj0 = 0 ;
6868 char *kwnames[] = {
6869 (char *) "self", NULL
6870 };
6871
6872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
15afbcd0
RD
6873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6875 {
6876 PyThreadState* __tstate = wxPyBeginAllowThreads();
6877 (arg1)->Flush();
6878
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 Py_INCREF(Py_None); resultobj = Py_None;
6883 return resultobj;
6884 fail:
6885 return NULL;
6886}
6887
6888
6889static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj;
6891 char *kwnames[] = {
6892 NULL
6893 };
6894
6895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 wxLog::FlushActive();
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 Py_INCREF(Py_None); resultobj = Py_None;
6904 return resultobj;
6905 fail:
6906 return NULL;
6907}
6908
6909
6910static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6911 PyObject *resultobj;
6912 wxLog *result;
6913 char *kwnames[] = {
6914 NULL
6915 };
6916
6917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6918 {
6919 PyThreadState* __tstate = wxPyBeginAllowThreads();
6920 result = (wxLog *)wxLog::GetActiveTarget();
6921
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
15afbcd0 6925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
d14a1e28
RD
6926 return resultobj;
6927 fail:
6928 return NULL;
6929}
6930
6931
6932static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6933 PyObject *resultobj;
6934 wxLog *arg1 = (wxLog *) 0 ;
6935 wxLog *result;
6936 PyObject * obj0 = 0 ;
6937 char *kwnames[] = {
6938 (char *) "pLogger", NULL
6939 };
6940
6941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
15afbcd0
RD
6942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
6944 {
6945 PyThreadState* __tstate = wxPyBeginAllowThreads();
6946 result = (wxLog *)wxLog::SetActiveTarget(arg1);
6947
6948 wxPyEndAllowThreads(__tstate);
6949 if (PyErr_Occurred()) SWIG_fail;
6950 }
15afbcd0 6951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
d14a1e28
RD
6952 return resultobj;
6953 fail:
6954 return NULL;
6955}
6956
6957
6958static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
6959 PyObject *resultobj;
6960 char *kwnames[] = {
6961 NULL
6962 };
6963
6964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
6965 {
6966 PyThreadState* __tstate = wxPyBeginAllowThreads();
6967 wxLog::Suspend();
6968
6969 wxPyEndAllowThreads(__tstate);
6970 if (PyErr_Occurred()) SWIG_fail;
6971 }
6972 Py_INCREF(Py_None); resultobj = Py_None;
6973 return resultobj;
6974 fail:
6975 return NULL;
6976}
6977
6978
6979static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
6980 PyObject *resultobj;
6981 char *kwnames[] = {
6982 NULL
6983 };
6984
6985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
6986 {
6987 PyThreadState* __tstate = wxPyBeginAllowThreads();
6988 wxLog::Resume();
6989
6990 wxPyEndAllowThreads(__tstate);
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 Py_INCREF(Py_None); resultobj = Py_None;
6994 return resultobj;
6995 fail:
6996 return NULL;
6997}
6998
6999
7000static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj;
e811c8ce 7002 bool arg1 = (bool) True ;
d14a1e28
RD
7003 PyObject * obj0 = 0 ;
7004 char *kwnames[] = {
7005 (char *) "bVerbose", NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7009 if (obj0) {
15afbcd0
RD
7010 arg1 = (bool) SWIG_AsBool(obj0);
7011 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7012 }
7013 {
7014 PyThreadState* __tstate = wxPyBeginAllowThreads();
7015 wxLog::SetVerbose(arg1);
7016
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 Py_INCREF(Py_None); resultobj = Py_None;
7021 return resultobj;
7022 fail:
7023 return NULL;
7024}
7025
7026
7027static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7028 PyObject *resultobj;
7029 wxLogLevel arg1 ;
7030 PyObject * obj0 = 0 ;
7031 char *kwnames[] = {
7032 (char *) "logLevel", NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
15afbcd0
RD
7036 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7037 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 wxLog::SetLogLevel(arg1);
7041
7042 wxPyEndAllowThreads(__tstate);
7043 if (PyErr_Occurred()) SWIG_fail;
7044 }
7045 Py_INCREF(Py_None); resultobj = Py_None;
7046 return resultobj;
7047 fail:
7048 return NULL;
7049}
7050
7051
7052static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7053 PyObject *resultobj;
7054 char *kwnames[] = {
7055 NULL
7056 };
7057
7058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 wxLog::DontCreateOnDemand();
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 Py_INCREF(Py_None); resultobj = Py_None;
7067 return resultobj;
7068 fail:
7069 return NULL;
7070}
7071
7072
7073static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7074 PyObject *resultobj;
7075 wxTraceMask arg1 ;
7076 PyObject * obj0 = 0 ;
7077 char *kwnames[] = {
7078 (char *) "ulMask", NULL
7079 };
7080
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
15afbcd0
RD
7082 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7083 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7084 {
7085 PyThreadState* __tstate = wxPyBeginAllowThreads();
7086 wxLog::SetTraceMask(arg1);
7087
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 Py_INCREF(Py_None); resultobj = Py_None;
7092 return resultobj;
7093 fail:
7094 return NULL;
7095}
7096
7097
7098static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7099 PyObject *resultobj;
7100 wxString *arg1 = 0 ;
e811c8ce 7101 bool temp1 = False ;
d14a1e28
RD
7102 PyObject * obj0 = 0 ;
7103 char *kwnames[] = {
7104 (char *) "str", NULL
7105 };
7106
7107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7108 {
7109 arg1 = wxString_in_helper(obj0);
7110 if (arg1 == NULL) SWIG_fail;
e811c8ce 7111 temp1 = True;
d14a1e28
RD
7112 }
7113 {
7114 PyThreadState* __tstate = wxPyBeginAllowThreads();
7115 wxLog::AddTraceMask((wxString const &)*arg1);
7116
7117 wxPyEndAllowThreads(__tstate);
7118 if (PyErr_Occurred()) SWIG_fail;
7119 }
7120 Py_INCREF(Py_None); resultobj = Py_None;
7121 {
7122 if (temp1)
7123 delete arg1;
7124 }
7125 return resultobj;
7126 fail:
7127 {
7128 if (temp1)
7129 delete arg1;
7130 }
7131 return NULL;
7132}
7133
7134
7135static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 wxString *arg1 = 0 ;
e811c8ce 7138 bool temp1 = False ;
d14a1e28
RD
7139 PyObject * obj0 = 0 ;
7140 char *kwnames[] = {
7141 (char *) "str", NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7145 {
7146 arg1 = wxString_in_helper(obj0);
7147 if (arg1 == NULL) SWIG_fail;
e811c8ce 7148 temp1 = True;
d14a1e28
RD
7149 }
7150 {
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 wxLog::RemoveTraceMask((wxString const &)*arg1);
7153
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 Py_INCREF(Py_None); resultobj = Py_None;
7158 {
7159 if (temp1)
7160 delete arg1;
7161 }
7162 return resultobj;
7163 fail:
7164 {
7165 if (temp1)
7166 delete arg1;
7167 }
7168 return NULL;
7169}
7170
7171
7172static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7173 PyObject *resultobj;
7174 char *kwnames[] = {
7175 NULL
7176 };
7177
7178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 wxLog::ClearTraceMasks();
7182
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 Py_INCREF(Py_None); resultobj = Py_None;
7187 return resultobj;
7188 fail:
7189 return NULL;
7190}
7191
7192
7193static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7194 PyObject *resultobj;
7195 wxArrayString *result;
7196 char *kwnames[] = {
7197 NULL
7198 };
7199
7200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7201 {
7202 PyThreadState* __tstate = wxPyBeginAllowThreads();
7203 {
7204 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7205 result = (wxArrayString *) &_result_ref;
7206 }
7207
7208 wxPyEndAllowThreads(__tstate);
7209 if (PyErr_Occurred()) SWIG_fail;
7210 }
7211 {
7212 resultobj = wxArrayString2PyList_helper(*result);
7213 }
7214 return resultobj;
7215 fail:
7216 return NULL;
7217}
7218
7219
7220static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7221 PyObject *resultobj;
7222 wxChar *arg1 = (wxChar *) 0 ;
7223 PyObject * obj0 = 0 ;
7224 char *kwnames[] = {
7225 (char *) "ts", NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
15afbcd0
RD
7229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 wxLog::SetTimestamp((wxChar const *)arg1);
7234
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 Py_INCREF(Py_None); resultobj = Py_None;
7239 return resultobj;
7240 fail:
7241 return NULL;
7242}
7243
7244
7245static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7246 PyObject *resultobj;
7247 bool result;
7248 char *kwnames[] = {
7249 NULL
7250 };
7251
7252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 result = (bool)wxLog::GetVerbose();
7256
7257 wxPyEndAllowThreads(__tstate);
7258 if (PyErr_Occurred()) SWIG_fail;
7259 }
4d5c3d91 7260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7261 return resultobj;
7262 fail:
7263 return NULL;
7264}
7265
7266
7267static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7268 PyObject *resultobj;
7269 wxTraceMask result;
7270 char *kwnames[] = {
7271 NULL
7272 };
7273
7274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = (wxTraceMask)wxLog::GetTraceMask();
7278
7279 wxPyEndAllowThreads(__tstate);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
15afbcd0 7282 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7283 return resultobj;
7284 fail:
7285 return NULL;
7286}
7287
7288
7289static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7290 PyObject *resultobj;
7291 wxChar *arg1 = (wxChar *) 0 ;
7292 bool result;
7293 PyObject * obj0 = 0 ;
7294 char *kwnames[] = {
7295 (char *) "mask", NULL
7296 };
7297
7298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
15afbcd0
RD
7299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7301 {
7302 PyThreadState* __tstate = wxPyBeginAllowThreads();
7303 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7304
7305 wxPyEndAllowThreads(__tstate);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
4d5c3d91 7308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7309 return resultobj;
7310 fail:
7311 return NULL;
7312}
7313
7314
7315static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7316 PyObject *resultobj;
7317 wxLogLevel result;
7318 char *kwnames[] = {
7319 NULL
7320 };
7321
7322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 result = (wxLogLevel)wxLog::GetLogLevel();
7326
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
15afbcd0 7330 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7331 return resultobj;
7332 fail:
7333 return NULL;
7334}
7335
7336
7337static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj;
7339 wxChar *result;
7340 char *kwnames[] = {
7341 NULL
7342 };
7343
7344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 result = (wxChar *)wxLog::GetTimestamp();
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
15afbcd0 7352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
d14a1e28
RD
7353 return resultobj;
7354 fail:
7355 return NULL;
7356}
7357
7358
7359static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7360 PyObject *resultobj;
7361 wxString result;
7362 char *kwnames[] = {
7363 NULL
7364 };
7365
7366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 result = Log_TimeStamp();
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 {
7375#if wxUSE_UNICODE
7376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7377#else
7378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7379#endif
7380 }
7381 return resultobj;
7382 fail:
7383 return NULL;
7384}
7385
7386
7387static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7388 PyObject *resultobj;
7389 wxLog *arg1 = (wxLog *) 0 ;
7390 PyObject * obj0 = 0 ;
7391 char *kwnames[] = {
7392 (char *) "self", NULL
7393 };
7394
7395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
15afbcd0
RD
7396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7398 {
7399 PyThreadState* __tstate = wxPyBeginAllowThreads();
7400 wxLog_Destroy(arg1);
7401
7402 wxPyEndAllowThreads(__tstate);
7403 if (PyErr_Occurred()) SWIG_fail;
7404 }
7405 Py_INCREF(Py_None); resultobj = Py_None;
7406 return resultobj;
7407 fail:
7408 return NULL;
7409}
7410
7411
7412static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7413 PyObject *obj;
7414 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7415 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7416 Py_INCREF(obj);
7417 return Py_BuildValue((char *)"");
7418}
7419static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7420 PyObject *resultobj;
7421 wxLogStderr *result;
7422 char *kwnames[] = {
7423 NULL
7424 };
7425
7426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7427 {
7428 PyThreadState* __tstate = wxPyBeginAllowThreads();
7429 result = (wxLogStderr *)new wxLogStderr();
7430
7431 wxPyEndAllowThreads(__tstate);
7432 if (PyErr_Occurred()) SWIG_fail;
7433 }
15afbcd0 7434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
d14a1e28
RD
7435 return resultobj;
7436 fail:
7437 return NULL;
7438}
7439
7440
7441static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7442 PyObject *obj;
7443 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7444 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7445 Py_INCREF(obj);
7446 return Py_BuildValue((char *)"");
7447}
7448static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj;
7450 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7451 wxLogTextCtrl *result;
7452 PyObject * obj0 = 0 ;
7453 char *kwnames[] = {
7454 (char *) "pTextCtrl", NULL
7455 };
7456
7457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
15afbcd0
RD
7458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7460 {
7461 PyThreadState* __tstate = wxPyBeginAllowThreads();
7462 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7463
7464 wxPyEndAllowThreads(__tstate);
7465 if (PyErr_Occurred()) SWIG_fail;
7466 }
15afbcd0 7467 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
d14a1e28
RD
7468 return resultobj;
7469 fail:
7470 return NULL;
7471}
7472
7473
7474static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7475 PyObject *obj;
7476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7477 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7478 Py_INCREF(obj);
7479 return Py_BuildValue((char *)"");
7480}
7481static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7482 PyObject *resultobj;
7483 wxLogGui *result;
7484 char *kwnames[] = {
7485 NULL
7486 };
7487
7488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7489 {
7490 PyThreadState* __tstate = wxPyBeginAllowThreads();
7491 result = (wxLogGui *)new wxLogGui();
7492
7493 wxPyEndAllowThreads(__tstate);
7494 if (PyErr_Occurred()) SWIG_fail;
7495 }
15afbcd0 7496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
d14a1e28
RD
7497 return resultobj;
7498 fail:
7499 return NULL;
7500}
7501
7502
7503static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7504 PyObject *obj;
7505 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7506 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7507 Py_INCREF(obj);
7508 return Py_BuildValue((char *)"");
7509}
7510static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7511 PyObject *resultobj;
7512 wxFrame *arg1 = (wxFrame *) 0 ;
7513 wxString *arg2 = 0 ;
e811c8ce
RD
7514 bool arg3 = (bool) True ;
7515 bool arg4 = (bool) True ;
d14a1e28 7516 wxLogWindow *result;
e811c8ce 7517 bool temp2 = False ;
d14a1e28
RD
7518 PyObject * obj0 = 0 ;
7519 PyObject * obj1 = 0 ;
7520 PyObject * obj2 = 0 ;
7521 PyObject * obj3 = 0 ;
7522 char *kwnames[] = {
7523 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7524 };
7525
7526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
7527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7529 {
7530 arg2 = wxString_in_helper(obj1);
7531 if (arg2 == NULL) SWIG_fail;
e811c8ce 7532 temp2 = True;
d14a1e28
RD
7533 }
7534 if (obj2) {
15afbcd0
RD
7535 arg3 = (bool) SWIG_AsBool(obj2);
7536 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7537 }
7538 if (obj3) {
15afbcd0
RD
7539 arg4 = (bool) SWIG_AsBool(obj3);
7540 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7541 }
7542 {
7543 PyThreadState* __tstate = wxPyBeginAllowThreads();
7544 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7545
7546 wxPyEndAllowThreads(__tstate);
7547 if (PyErr_Occurred()) SWIG_fail;
7548 }
15afbcd0 7549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
d14a1e28
RD
7550 {
7551 if (temp2)
7552 delete arg2;
7553 }
7554 return resultobj;
7555 fail:
7556 {
7557 if (temp2)
7558 delete arg2;
7559 }
7560 return NULL;
7561}
7562
7563
7564static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7565 PyObject *resultobj;
7566 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
e811c8ce 7567 bool arg2 = (bool) True ;
d14a1e28
RD
7568 PyObject * obj0 = 0 ;
7569 PyObject * obj1 = 0 ;
7570 char *kwnames[] = {
7571 (char *) "self",(char *) "bShow", NULL
7572 };
7573
7574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 7577 if (obj1) {
15afbcd0
RD
7578 arg2 = (bool) SWIG_AsBool(obj1);
7579 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7580 }
7581 {
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 (arg1)->Show(arg2);
7584
7585 wxPyEndAllowThreads(__tstate);
7586 if (PyErr_Occurred()) SWIG_fail;
7587 }
7588 Py_INCREF(Py_None); resultobj = Py_None;
7589 return resultobj;
7590 fail:
7591 return NULL;
7592}
7593
7594
7595static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7596 PyObject *resultobj;
7597 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7598 wxFrame *result;
7599 PyObject * obj0 = 0 ;
7600 char *kwnames[] = {
7601 (char *) "self", NULL
7602 };
7603
7604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
15afbcd0
RD
7605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7607 {
7608 PyThreadState* __tstate = wxPyBeginAllowThreads();
7609 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7610
7611 wxPyEndAllowThreads(__tstate);
7612 if (PyErr_Occurred()) SWIG_fail;
7613 }
7614 {
7615 resultobj = wxPyMake_wxObject(result);
7616 }
7617 return resultobj;
7618 fail:
7619 return NULL;
7620}
7621
7622
7623static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7624 PyObject *resultobj;
7625 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7626 wxLog *result;
7627 PyObject * obj0 = 0 ;
7628 char *kwnames[] = {
7629 (char *) "self", NULL
7630 };
7631
7632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
15afbcd0
RD
7633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7635 {
7636 PyThreadState* __tstate = wxPyBeginAllowThreads();
7637 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7638
7639 wxPyEndAllowThreads(__tstate);
7640 if (PyErr_Occurred()) SWIG_fail;
7641 }
15afbcd0 7642 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
d14a1e28
RD
7643 return resultobj;
7644 fail:
7645 return NULL;
7646}
7647
7648
7649static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7650 PyObject *resultobj;
7651 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7652 bool result;
7653 PyObject * obj0 = 0 ;
7654 char *kwnames[] = {
7655 (char *) "self", NULL
7656 };
7657
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
15afbcd0
RD
7659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7661 {
7662 PyThreadState* __tstate = wxPyBeginAllowThreads();
7663 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7664
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
4d5c3d91 7668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7669 return resultobj;
7670 fail:
7671 return NULL;
7672}
7673
7674
7675static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7676 PyObject *resultobj;
7677 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7678 bool arg2 ;
7679 PyObject * obj0 = 0 ;
7680 PyObject * obj1 = 0 ;
7681 char *kwnames[] = {
7682 (char *) "self",(char *) "bDoPass", NULL
7683 };
7684
7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7688 arg2 = (bool) SWIG_AsBool(obj1);
7689 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7690 {
7691 PyThreadState* __tstate = wxPyBeginAllowThreads();
7692 (arg1)->PassMessages(arg2);
7693
7694 wxPyEndAllowThreads(__tstate);
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 Py_INCREF(Py_None); resultobj = Py_None;
7698 return resultobj;
7699 fail:
7700 return NULL;
7701}
7702
7703
7704static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7705 PyObject *obj;
7706 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7707 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7708 Py_INCREF(obj);
7709 return Py_BuildValue((char *)"");
7710}
7711static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7712 PyObject *resultobj;
7713 wxLog *arg1 = (wxLog *) 0 ;
7714 wxLogChain *result;
7715 PyObject * obj0 = 0 ;
7716 char *kwnames[] = {
7717 (char *) "logger", NULL
7718 };
7719
7720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
15afbcd0
RD
7721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7723 {
7724 PyThreadState* __tstate = wxPyBeginAllowThreads();
7725 result = (wxLogChain *)new wxLogChain(arg1);
7726
7727 wxPyEndAllowThreads(__tstate);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
15afbcd0 7730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
d14a1e28
RD
7731 return resultobj;
7732 fail:
7733 return NULL;
7734}
7735
7736
7737static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj;
7739 wxLogChain *arg1 = (wxLogChain *) 0 ;
7740 wxLog *arg2 = (wxLog *) 0 ;
7741 PyObject * obj0 = 0 ;
7742 PyObject * obj1 = 0 ;
7743 char *kwnames[] = {
7744 (char *) "self",(char *) "logger", NULL
7745 };
7746
7747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7750 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7752 {
7753 PyThreadState* __tstate = wxPyBeginAllowThreads();
7754 (arg1)->SetLog(arg2);
7755
7756 wxPyEndAllowThreads(__tstate);
7757 if (PyErr_Occurred()) SWIG_fail;
7758 }
7759 Py_INCREF(Py_None); resultobj = Py_None;
7760 return resultobj;
7761 fail:
7762 return NULL;
7763}
7764
7765
7766static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7767 PyObject *resultobj;
7768 wxLogChain *arg1 = (wxLogChain *) 0 ;
7769 bool arg2 ;
7770 PyObject * obj0 = 0 ;
7771 PyObject * obj1 = 0 ;
7772 char *kwnames[] = {
7773 (char *) "self",(char *) "bDoPass", NULL
7774 };
7775
7776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
7777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7779 arg2 = (bool) SWIG_AsBool(obj1);
7780 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7781 {
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 (arg1)->PassMessages(arg2);
7784
7785 wxPyEndAllowThreads(__tstate);
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
7788 Py_INCREF(Py_None); resultobj = Py_None;
7789 return resultobj;
7790 fail:
7791 return NULL;
7792}
7793
7794
7795static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7796 PyObject *resultobj;
7797 wxLogChain *arg1 = (wxLogChain *) 0 ;
7798 bool result;
7799 PyObject * obj0 = 0 ;
7800 char *kwnames[] = {
7801 (char *) "self", NULL
7802 };
7803
7804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
15afbcd0
RD
7805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7807 {
7808 PyThreadState* __tstate = wxPyBeginAllowThreads();
7809 result = (bool)(arg1)->IsPassingMessages();
7810
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
4d5c3d91 7814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7815 return resultobj;
7816 fail:
7817 return NULL;
7818}
7819
7820
7821static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7822 PyObject *resultobj;
7823 wxLogChain *arg1 = (wxLogChain *) 0 ;
7824 wxLog *result;
7825 PyObject * obj0 = 0 ;
7826 char *kwnames[] = {
7827 (char *) "self", NULL
7828 };
7829
7830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
15afbcd0
RD
7831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
7833 {
7834 PyThreadState* __tstate = wxPyBeginAllowThreads();
7835 result = (wxLog *)(arg1)->GetOldLog();
7836
7837 wxPyEndAllowThreads(__tstate);
7838 if (PyErr_Occurred()) SWIG_fail;
7839 }
15afbcd0 7840 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
d14a1e28
RD
7841 return resultobj;
7842 fail:
7843 return NULL;
7844}
7845
7846
7847static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
7848 PyObject *obj;
7849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7850 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7851 Py_INCREF(obj);
7852 return Py_BuildValue((char *)"");
7853}
7854static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
7855 PyObject *resultobj;
7856 unsigned long result;
7857 char *kwnames[] = {
7858 NULL
7859 };
7860
7861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7862 {
7863 PyThreadState* __tstate = wxPyBeginAllowThreads();
7864 result = (unsigned long)wxSysErrorCode();
7865
7866 wxPyEndAllowThreads(__tstate);
7867 if (PyErr_Occurred()) SWIG_fail;
7868 }
15afbcd0 7869 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7870 return resultobj;
7871 fail:
7872 return NULL;
7873}
7874
7875
7876static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
7877 PyObject *resultobj;
7878 unsigned long arg1 = (unsigned long) 0 ;
7879 wxString result;
7880 PyObject * obj0 = 0 ;
7881 char *kwnames[] = {
7882 (char *) "nErrCode", NULL
7883 };
7884
7885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7886 if (obj0) {
15afbcd0
RD
7887 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
7888 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
7889 }
7890 {
7891 PyThreadState* __tstate = wxPyBeginAllowThreads();
7892 result = wxSysErrorMsg(arg1);
7893
7894 wxPyEndAllowThreads(__tstate);
7895 if (PyErr_Occurred()) SWIG_fail;
7896 }
7897 {
7898#if wxUSE_UNICODE
7899 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7900#else
7901 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7902#endif
7903 }
7904 return resultobj;
7905 fail:
7906 return NULL;
7907}
7908
7909
7910static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
7911 PyObject *resultobj;
7912 wxString *arg1 = 0 ;
e811c8ce 7913 bool temp1 = False ;
d14a1e28
RD
7914 PyObject * obj0 = 0 ;
7915 char *kwnames[] = {
7916 (char *) "msg", NULL
7917 };
7918
7919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
7920 {
7921 arg1 = wxString_in_helper(obj0);
7922 if (arg1 == NULL) SWIG_fail;
e811c8ce 7923 temp1 = True;
d14a1e28
RD
7924 }
7925 {
7926 PyThreadState* __tstate = wxPyBeginAllowThreads();
7927 wxLogFatalError((wxString const &)*arg1);
7928
7929 wxPyEndAllowThreads(__tstate);
7930 if (PyErr_Occurred()) SWIG_fail;
7931 }
7932 Py_INCREF(Py_None); resultobj = Py_None;
7933 {
7934 if (temp1)
7935 delete arg1;
7936 }
7937 return resultobj;
7938 fail:
7939 {
7940 if (temp1)
7941 delete arg1;
7942 }
7943 return NULL;
7944}
7945
7946
7947static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
7948 PyObject *resultobj;
7949 wxString *arg1 = 0 ;
e811c8ce 7950 bool temp1 = False ;
d14a1e28
RD
7951 PyObject * obj0 = 0 ;
7952 char *kwnames[] = {
7953 (char *) "msg", NULL
7954 };
7955
7956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
7957 {
7958 arg1 = wxString_in_helper(obj0);
7959 if (arg1 == NULL) SWIG_fail;
e811c8ce 7960 temp1 = True;
d14a1e28
RD
7961 }
7962 {
7963 PyThreadState* __tstate = wxPyBeginAllowThreads();
7964 wxLogError((wxString const &)*arg1);
7965
7966 wxPyEndAllowThreads(__tstate);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 }
7969 Py_INCREF(Py_None); resultobj = Py_None;
7970 {
7971 if (temp1)
7972 delete arg1;
7973 }
7974 return resultobj;
7975 fail:
7976 {
7977 if (temp1)
7978 delete arg1;
7979 }
7980 return NULL;
7981}
7982
7983
7984static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
7985 PyObject *resultobj;
7986 wxString *arg1 = 0 ;
e811c8ce 7987 bool temp1 = False ;
d14a1e28
RD
7988 PyObject * obj0 = 0 ;
7989 char *kwnames[] = {
7990 (char *) "msg", NULL
7991 };
7992
7993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
7994 {
7995 arg1 = wxString_in_helper(obj0);
7996 if (arg1 == NULL) SWIG_fail;
e811c8ce 7997 temp1 = True;
d14a1e28
RD
7998 }
7999 {
8000 PyThreadState* __tstate = wxPyBeginAllowThreads();
8001 wxLogWarning((wxString const &)*arg1);
8002
8003 wxPyEndAllowThreads(__tstate);
8004 if (PyErr_Occurred()) SWIG_fail;
8005 }
8006 Py_INCREF(Py_None); resultobj = Py_None;
8007 {
8008 if (temp1)
8009 delete arg1;
8010 }
8011 return resultobj;
8012 fail:
8013 {
8014 if (temp1)
8015 delete arg1;
8016 }
8017 return NULL;
8018}
8019
8020
8021static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8022 PyObject *resultobj;
8023 wxString *arg1 = 0 ;
e811c8ce 8024 bool temp1 = False ;
d14a1e28
RD
8025 PyObject * obj0 = 0 ;
8026 char *kwnames[] = {
8027 (char *) "msg", NULL
8028 };
8029
8030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8031 {
8032 arg1 = wxString_in_helper(obj0);
8033 if (arg1 == NULL) SWIG_fail;
e811c8ce 8034 temp1 = True;
d14a1e28
RD
8035 }
8036 {
8037 PyThreadState* __tstate = wxPyBeginAllowThreads();
8038 wxLogMessage((wxString const &)*arg1);
8039
8040 wxPyEndAllowThreads(__tstate);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 Py_INCREF(Py_None); resultobj = Py_None;
8044 {
8045 if (temp1)
8046 delete arg1;
8047 }
8048 return resultobj;
8049 fail:
8050 {
8051 if (temp1)
8052 delete arg1;
8053 }
8054 return NULL;
8055}
8056
8057
8058static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8059 PyObject *resultobj;
8060 wxString *arg1 = 0 ;
e811c8ce 8061 bool temp1 = False ;
d14a1e28
RD
8062 PyObject * obj0 = 0 ;
8063 char *kwnames[] = {
8064 (char *) "msg", NULL
8065 };
8066
8067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8068 {
8069 arg1 = wxString_in_helper(obj0);
8070 if (arg1 == NULL) SWIG_fail;
e811c8ce 8071 temp1 = True;
d14a1e28
RD
8072 }
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 wxLogInfo((wxString const &)*arg1);
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 Py_INCREF(Py_None); resultobj = Py_None;
8081 {
8082 if (temp1)
8083 delete arg1;
8084 }
8085 return resultobj;
8086 fail:
8087 {
8088 if (temp1)
8089 delete arg1;
8090 }
8091 return NULL;
8092}
8093
8094
8095static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8096 PyObject *resultobj;
8097 wxString *arg1 = 0 ;
e811c8ce 8098 bool temp1 = False ;
d14a1e28
RD
8099 PyObject * obj0 = 0 ;
8100 char *kwnames[] = {
8101 (char *) "msg", NULL
8102 };
8103
8104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8105 {
8106 arg1 = wxString_in_helper(obj0);
8107 if (arg1 == NULL) SWIG_fail;
e811c8ce 8108 temp1 = True;
d14a1e28
RD
8109 }
8110 {
8111 PyThreadState* __tstate = wxPyBeginAllowThreads();
8112 wxLogDebug((wxString const &)*arg1);
8113
8114 wxPyEndAllowThreads(__tstate);
8115 if (PyErr_Occurred()) SWIG_fail;
8116 }
8117 Py_INCREF(Py_None); resultobj = Py_None;
8118 {
8119 if (temp1)
8120 delete arg1;
8121 }
8122 return resultobj;
8123 fail:
8124 {
8125 if (temp1)
8126 delete arg1;
8127 }
8128 return NULL;
8129}
8130
8131
8132static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj;
8134 wxString *arg1 = 0 ;
e811c8ce 8135 bool temp1 = False ;
d14a1e28
RD
8136 PyObject * obj0 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "msg", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8142 {
8143 arg1 = wxString_in_helper(obj0);
8144 if (arg1 == NULL) SWIG_fail;
e811c8ce 8145 temp1 = True;
d14a1e28
RD
8146 }
8147 {
8148 PyThreadState* __tstate = wxPyBeginAllowThreads();
8149 wxLogVerbose((wxString const &)*arg1);
8150
8151 wxPyEndAllowThreads(__tstate);
8152 if (PyErr_Occurred()) SWIG_fail;
8153 }
8154 Py_INCREF(Py_None); resultobj = Py_None;
8155 {
8156 if (temp1)
8157 delete arg1;
8158 }
8159 return resultobj;
8160 fail:
8161 {
8162 if (temp1)
8163 delete arg1;
8164 }
8165 return NULL;
8166}
8167
8168
8169static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8170 PyObject *resultobj;
8171 wxString *arg1 = 0 ;
e811c8ce 8172 bool temp1 = False ;
d14a1e28
RD
8173 PyObject * obj0 = 0 ;
8174 char *kwnames[] = {
8175 (char *) "msg", NULL
8176 };
8177
8178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8179 {
8180 arg1 = wxString_in_helper(obj0);
8181 if (arg1 == NULL) SWIG_fail;
e811c8ce 8182 temp1 = True;
d14a1e28
RD
8183 }
8184 {
8185 PyThreadState* __tstate = wxPyBeginAllowThreads();
8186 wxLogStatus((wxString const &)*arg1);
8187
8188 wxPyEndAllowThreads(__tstate);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 Py_INCREF(Py_None); resultobj = Py_None;
8192 {
8193 if (temp1)
8194 delete arg1;
8195 }
8196 return resultobj;
8197 fail:
8198 {
8199 if (temp1)
8200 delete arg1;
8201 }
8202 return NULL;
8203}
8204
8205
8206static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8207 PyObject *resultobj;
8208 wxFrame *arg1 = (wxFrame *) 0 ;
8209 wxString *arg2 = 0 ;
e811c8ce 8210 bool temp2 = False ;
d14a1e28
RD
8211 PyObject * obj0 = 0 ;
8212 PyObject * obj1 = 0 ;
8213 char *kwnames[] = {
8214 (char *) "pFrame",(char *) "msg", NULL
8215 };
8216
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8220 {
8221 arg2 = wxString_in_helper(obj1);
8222 if (arg2 == NULL) SWIG_fail;
e811c8ce 8223 temp2 = True;
d14a1e28
RD
8224 }
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 wxLogStatus(arg1,(wxString const &)*arg2);
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 Py_INCREF(Py_None); resultobj = Py_None;
8233 {
8234 if (temp2)
8235 delete arg2;
8236 }
8237 return resultobj;
8238 fail:
8239 {
8240 if (temp2)
8241 delete arg2;
8242 }
8243 return NULL;
8244}
8245
8246
8247static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8248 PyObject *resultobj;
8249 wxString *arg1 = 0 ;
e811c8ce 8250 bool temp1 = False ;
d14a1e28
RD
8251 PyObject * obj0 = 0 ;
8252 char *kwnames[] = {
8253 (char *) "msg", NULL
8254 };
8255
8256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8257 {
8258 arg1 = wxString_in_helper(obj0);
8259 if (arg1 == NULL) SWIG_fail;
e811c8ce 8260 temp1 = True;
d14a1e28
RD
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 wxLogSysError((wxString const &)*arg1);
8265
8266 wxPyEndAllowThreads(__tstate);
8267 if (PyErr_Occurred()) SWIG_fail;
8268 }
8269 Py_INCREF(Py_None); resultobj = Py_None;
8270 {
8271 if (temp1)
8272 delete arg1;
8273 }
8274 return resultobj;
8275 fail:
8276 {
8277 if (temp1)
8278 delete arg1;
8279 }
8280 return NULL;
8281}
8282
8283
cc6dd355 8284static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28 8285 PyObject *resultobj;
cc6dd355
RD
8286 unsigned long arg1 ;
8287 wxString *arg2 = 0 ;
8288 bool temp2 = False ;
d14a1e28 8289 PyObject * obj0 = 0 ;
cc6dd355 8290 PyObject * obj1 = 0 ;
d14a1e28 8291
cc6dd355 8292 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
15afbcd0
RD
8293 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8294 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 8295 {
cc6dd355
RD
8296 arg2 = wxString_in_helper(obj1);
8297 if (arg2 == NULL) SWIG_fail;
8298 temp2 = True;
d14a1e28
RD
8299 }
8300 {
8301 PyThreadState* __tstate = wxPyBeginAllowThreads();
cc6dd355 8302 wxLogTrace(arg1,(wxString const &)*arg2);
d14a1e28
RD
8303
8304 wxPyEndAllowThreads(__tstate);
8305 if (PyErr_Occurred()) SWIG_fail;
8306 }
8307 Py_INCREF(Py_None); resultobj = Py_None;
8308 {
cc6dd355
RD
8309 if (temp2)
8310 delete arg2;
d14a1e28
RD
8311 }
8312 return resultobj;
8313 fail:
8314 {
cc6dd355
RD
8315 if (temp2)
8316 delete arg2;
d14a1e28
RD
8317 }
8318 return NULL;
8319}
8320
8321
cc6dd355 8322static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
8323 PyObject *resultobj;
8324 wxString *arg1 = 0 ;
8325 wxString *arg2 = 0 ;
e811c8ce
RD
8326 bool temp1 = False ;
8327 bool temp2 = False ;
d14a1e28
RD
8328 PyObject * obj0 = 0 ;
8329 PyObject * obj1 = 0 ;
d14a1e28 8330
cc6dd355 8331 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
d14a1e28
RD
8332 {
8333 arg1 = wxString_in_helper(obj0);
8334 if (arg1 == NULL) SWIG_fail;
e811c8ce 8335 temp1 = True;
d14a1e28
RD
8336 }
8337 {
8338 arg2 = wxString_in_helper(obj1);
8339 if (arg2 == NULL) SWIG_fail;
e811c8ce 8340 temp2 = True;
d14a1e28
RD
8341 }
8342 {
8343 PyThreadState* __tstate = wxPyBeginAllowThreads();
8344 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8345
8346 wxPyEndAllowThreads(__tstate);
8347 if (PyErr_Occurred()) SWIG_fail;
8348 }
8349 Py_INCREF(Py_None); resultobj = Py_None;
8350 {
8351 if (temp1)
8352 delete arg1;
8353 }
8354 {
8355 if (temp2)
8356 delete arg2;
8357 }
8358 return resultobj;
8359 fail:
8360 {
8361 if (temp1)
8362 delete arg1;
8363 }
8364 {
8365 if (temp2)
8366 delete arg2;
8367 }
8368 return NULL;
8369}
8370
8371
cc6dd355
RD
8372static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8373 int argc;
8374 PyObject *argv[3];
8375 int ii;
8376
8377 argc = PyObject_Length(args);
8378 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8379 argv[ii] = PyTuple_GetItem(args,ii);
8380 }
8381 if (argc == 2) {
8382 int _v;
8383 {
4d5c3d91 8384 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
cc6dd355
RD
8385 }
8386 if (_v) {
8387 {
4d5c3d91 8388 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
cc6dd355
RD
8389 }
8390 if (_v) {
8391 return _wrap_LogTrace__SWIG_1(self,args);
8392 }
8393 }
8394 }
8395 if (argc == 2) {
8396 int _v;
15afbcd0 8397 _v = SWIG_CheckUnsignedLong(argv[0]);
cc6dd355
RD
8398 if (_v) {
8399 {
4d5c3d91 8400 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
cc6dd355
RD
8401 }
8402 if (_v) {
8403 return _wrap_LogTrace__SWIG_0(self,args);
8404 }
8405 }
8406 }
8407
8408 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8409 return NULL;
8410}
8411
8412
d14a1e28
RD
8413static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8414 PyObject *resultobj;
8415 unsigned long arg1 ;
8416 wxString *arg2 = 0 ;
e811c8ce 8417 bool temp2 = False ;
d14a1e28
RD
8418 PyObject * obj0 = 0 ;
8419 PyObject * obj1 = 0 ;
8420 char *kwnames[] = {
8421 (char *) "level",(char *) "msg", NULL
8422 };
8423
8424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8425 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8426 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8427 {
8428 arg2 = wxString_in_helper(obj1);
8429 if (arg2 == NULL) SWIG_fail;
e811c8ce 8430 temp2 = True;
d14a1e28
RD
8431 }
8432 {
8433 PyThreadState* __tstate = wxPyBeginAllowThreads();
8434 wxLogGeneric(arg1,(wxString const &)*arg2);
8435
8436 wxPyEndAllowThreads(__tstate);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 }
8439 Py_INCREF(Py_None); resultobj = Py_None;
8440 {
8441 if (temp2)
8442 delete arg2;
8443 }
8444 return resultobj;
8445 fail:
8446 {
8447 if (temp2)
8448 delete arg2;
8449 }
8450 return NULL;
8451}
8452
8453
8454static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8455 PyObject *resultobj;
8456 wxString *arg1 = 0 ;
8457 wxString *arg2 = 0 ;
e811c8ce
RD
8458 bool temp1 = False ;
8459 bool temp2 = False ;
d14a1e28
RD
8460 PyObject * obj0 = 0 ;
8461 PyObject * obj1 = 0 ;
8462 char *kwnames[] = {
8463 (char *) "title",(char *) "text", NULL
8464 };
8465
8466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8467 {
8468 arg1 = wxString_in_helper(obj0);
8469 if (arg1 == NULL) SWIG_fail;
e811c8ce 8470 temp1 = True;
d14a1e28
RD
8471 }
8472 {
8473 arg2 = wxString_in_helper(obj1);
8474 if (arg2 == NULL) SWIG_fail;
e811c8ce 8475 temp2 = True;
d14a1e28
RD
8476 }
8477 {
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8480
8481 wxPyEndAllowThreads(__tstate);
8482 if (PyErr_Occurred()) SWIG_fail;
8483 }
8484 Py_INCREF(Py_None); resultobj = Py_None;
8485 {
8486 if (temp1)
8487 delete arg1;
8488 }
8489 {
8490 if (temp2)
8491 delete arg2;
8492 }
8493 return resultobj;
8494 fail:
8495 {
8496 if (temp1)
8497 delete arg1;
8498 }
8499 {
8500 if (temp2)
8501 delete arg2;
8502 }
8503 return NULL;
8504}
8505
8506
8507static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8508 PyObject *resultobj;
8509 wxLogNull *result;
8510 char *kwnames[] = {
8511 NULL
8512 };
8513
8514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8515 {
8516 PyThreadState* __tstate = wxPyBeginAllowThreads();
8517 result = (wxLogNull *)new wxLogNull();
8518
8519 wxPyEndAllowThreads(__tstate);
8520 if (PyErr_Occurred()) SWIG_fail;
8521 }
15afbcd0 8522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
d14a1e28
RD
8523 return resultobj;
8524 fail:
8525 return NULL;
8526}
8527
8528
8529static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8530 PyObject *resultobj;
8531 wxLogNull *arg1 = (wxLogNull *) 0 ;
8532 PyObject * obj0 = 0 ;
8533 char *kwnames[] = {
8534 (char *) "self", NULL
8535 };
8536
8537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
15afbcd0
RD
8538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8540 {
8541 PyThreadState* __tstate = wxPyBeginAllowThreads();
8542 delete arg1;
8543
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 Py_INCREF(Py_None); resultobj = Py_None;
8548 return resultobj;
8549 fail:
8550 return NULL;
8551}
8552
8553
8554static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8555 PyObject *obj;
8556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8557 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8558 Py_INCREF(obj);
8559 return Py_BuildValue((char *)"");
8560}
8561static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8562 PyObject *resultobj;
8563 wxPyLog *result;
8564 char *kwnames[] = {
8565 NULL
8566 };
8567
8568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 result = (wxPyLog *)new wxPyLog();
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
15afbcd0 8576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
d14a1e28
RD
8577 return resultobj;
8578 fail:
8579 return NULL;
8580}
8581
8582
8583static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj;
8585 wxPyLog *arg1 = (wxPyLog *) 0 ;
8586 PyObject *arg2 = (PyObject *) 0 ;
8587 PyObject *arg3 = (PyObject *) 0 ;
8588 PyObject * obj0 = 0 ;
8589 PyObject * obj1 = 0 ;
8590 PyObject * obj2 = 0 ;
8591 char *kwnames[] = {
8592 (char *) "self",(char *) "self",(char *) "_class", NULL
8593 };
8594
8595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
8596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8598 arg2 = obj1;
8599 arg3 = obj2;
8600 {
8601 PyThreadState* __tstate = wxPyBeginAllowThreads();
8602 (arg1)->_setCallbackInfo(arg2,arg3);
8603
8604 wxPyEndAllowThreads(__tstate);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 Py_INCREF(Py_None); resultobj = Py_None;
8608 return resultobj;
8609 fail:
8610 return NULL;
8611}
8612
8613
8614static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8615 PyObject *obj;
8616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8617 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8618 Py_INCREF(obj);
8619 return Py_BuildValue((char *)"");
8620}
8621static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8622 PyObject *resultobj;
8623 int arg1 ;
8624 int arg2 = (int) wxSIGTERM ;
8625 int result;
994141e6
RD
8626 PyObject * obj0 = 0 ;
8627 PyObject * obj1 = 0 ;
d14a1e28
RD
8628 char *kwnames[] = {
8629 (char *) "pid",(char *) "sig", NULL
8630 };
8631
994141e6 8632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
8633 arg1 = (int) SWIG_AsInt(obj0);
8634 if (PyErr_Occurred()) SWIG_fail;
994141e6 8635 if (obj1) {
15afbcd0
RD
8636 arg2 = (wxSignal) SWIG_AsInt(obj1);
8637 if (PyErr_Occurred()) SWIG_fail;
994141e6 8638 }
d14a1e28
RD
8639 {
8640 PyThreadState* __tstate = wxPyBeginAllowThreads();
8641 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8642
8643 wxPyEndAllowThreads(__tstate);
8644 if (PyErr_Occurred()) SWIG_fail;
8645 }
15afbcd0 8646 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
8647 return resultobj;
8648 fail:
8649 return NULL;
8650}
8651
8652
8653static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8654 PyObject *resultobj;
8655 int arg1 ;
8656 bool result;
994141e6 8657 PyObject * obj0 = 0 ;
d14a1e28
RD
8658 char *kwnames[] = {
8659 (char *) "pid", NULL
8660 };
8661
994141e6 8662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
15afbcd0
RD
8663 arg1 = (int) SWIG_AsInt(obj0);
8664 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8665 {
8666 PyThreadState* __tstate = wxPyBeginAllowThreads();
8667 result = (bool)wxPyProcess::Exists(arg1);
8668
8669 wxPyEndAllowThreads(__tstate);
8670 if (PyErr_Occurred()) SWIG_fail;
8671 }
4d5c3d91 8672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8673 return resultobj;
8674 fail:
8675 return NULL;
8676}
8677
8678
8679static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8680 PyObject *resultobj;
8681 wxString *arg1 = 0 ;
8682 int arg2 = (int) wxEXEC_ASYNC ;
8683 wxPyProcess *result;
e811c8ce 8684 bool temp1 = False ;
d14a1e28 8685 PyObject * obj0 = 0 ;
994141e6 8686 PyObject * obj1 = 0 ;
d14a1e28
RD
8687 char *kwnames[] = {
8688 (char *) "cmd",(char *) "flags", NULL
8689 };
8690
994141e6 8691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
8692 {
8693 arg1 = wxString_in_helper(obj0);
8694 if (arg1 == NULL) SWIG_fail;
e811c8ce 8695 temp1 = True;
d14a1e28 8696 }
994141e6 8697 if (obj1) {
15afbcd0
RD
8698 arg2 = (int) SWIG_AsInt(obj1);
8699 if (PyErr_Occurred()) SWIG_fail;
994141e6 8700 }
d14a1e28
RD
8701 {
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8704
8705 wxPyEndAllowThreads(__tstate);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
15afbcd0 8708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
d14a1e28
RD
8709 {
8710 if (temp1)
8711 delete arg1;
8712 }
8713 return resultobj;
8714 fail:
8715 {
8716 if (temp1)
8717 delete arg1;
8718 }
8719 return NULL;
8720}
8721
8722
8723static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8724 PyObject *resultobj;
8725 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8726 int arg2 = (int) -1 ;
8727 wxPyProcess *result;
8728 PyObject * obj0 = 0 ;
994141e6 8729 PyObject * obj1 = 0 ;
d14a1e28
RD
8730 char *kwnames[] = {
8731 (char *) "parent",(char *) "id", NULL
8732 };
8733
994141e6 8734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 8735 if (obj0) {
15afbcd0
RD
8736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 8738 }
994141e6 8739 if (obj1) {
15afbcd0
RD
8740 arg2 = (int) SWIG_AsInt(obj1);
8741 if (PyErr_Occurred()) SWIG_fail;
994141e6 8742 }
d14a1e28
RD
8743 {
8744 PyThreadState* __tstate = wxPyBeginAllowThreads();
8745 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8746
8747 wxPyEndAllowThreads(__tstate);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
15afbcd0 8750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
d14a1e28
RD
8751 return resultobj;
8752 fail:
8753 return NULL;
8754}
8755
8756
8757static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8758 PyObject *resultobj;
8759 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8760 PyObject *arg2 = (PyObject *) 0 ;
8761 PyObject *arg3 = (PyObject *) 0 ;
8762 PyObject * obj0 = 0 ;
8763 PyObject * obj1 = 0 ;
8764 PyObject * obj2 = 0 ;
8765 char *kwnames[] = {
8766 (char *) "self",(char *) "self",(char *) "_class", NULL
8767 };
8768
8769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
8770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8772 arg2 = obj1;
8773 arg3 = obj2;
8774 {
8775 PyThreadState* __tstate = wxPyBeginAllowThreads();
8776 (arg1)->_setCallbackInfo(arg2,arg3);
8777
8778 wxPyEndAllowThreads(__tstate);
8779 if (PyErr_Occurred()) SWIG_fail;
8780 }
8781 Py_INCREF(Py_None); resultobj = Py_None;
8782 return resultobj;
8783 fail:
8784 return NULL;
8785}
8786
8787
8788static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8789 PyObject *resultobj;
8790 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8791 int arg2 ;
8792 int arg3 ;
8793 PyObject * obj0 = 0 ;
994141e6
RD
8794 PyObject * obj1 = 0 ;
8795 PyObject * obj2 = 0 ;
d14a1e28
RD
8796 char *kwnames[] = {
8797 (char *) "self",(char *) "pid",(char *) "status", NULL
8798 };
8799
994141e6 8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
8801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8803 arg2 = (int) SWIG_AsInt(obj1);
8804 if (PyErr_Occurred()) SWIG_fail;
8805 arg3 = (int) SWIG_AsInt(obj2);
8806 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 (arg1)->base_OnTerminate(arg2,arg3);
8810
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 Py_INCREF(Py_None); resultobj = Py_None;
8815 return resultobj;
8816 fail:
8817 return NULL;
8818}
8819
8820
8821static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj;
8823 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8824 PyObject * obj0 = 0 ;
8825 char *kwnames[] = {
8826 (char *) "self", NULL
8827 };
8828
8829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
15afbcd0
RD
8830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8832 {
8833 PyThreadState* __tstate = wxPyBeginAllowThreads();
8834 (arg1)->Redirect();
8835
8836 wxPyEndAllowThreads(__tstate);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
8839 Py_INCREF(Py_None); resultobj = Py_None;
8840 return resultobj;
8841 fail:
8842 return NULL;
8843}
8844
8845
8846static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
8847 PyObject *resultobj;
8848 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8849 bool result;
8850 PyObject * obj0 = 0 ;
8851 char *kwnames[] = {
8852 (char *) "self", NULL
8853 };
8854
8855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
15afbcd0
RD
8856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8858 {
8859 PyThreadState* __tstate = wxPyBeginAllowThreads();
8860 result = (bool)(arg1)->IsRedirected();
8861
8862 wxPyEndAllowThreads(__tstate);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
4d5c3d91 8865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8866 return resultobj;
8867 fail:
8868 return NULL;
8869}
8870
8871
8872static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj;
8874 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8875 PyObject * obj0 = 0 ;
8876 char *kwnames[] = {
8877 (char *) "self", NULL
8878 };
8879
8880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
15afbcd0
RD
8881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8883 {
8884 PyThreadState* __tstate = wxPyBeginAllowThreads();
8885 (arg1)->Detach();
8886
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 Py_INCREF(Py_None); resultobj = Py_None;
8891 return resultobj;
8892 fail:
8893 return NULL;
8894}
8895
8896
8897static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8898 PyObject *resultobj;
8899 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8900 wxInputStream *result;
8901 PyObject * obj0 = 0 ;
8902 char *kwnames[] = {
8903 (char *) "self", NULL
8904 };
8905
8906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
15afbcd0
RD
8907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8909 {
8910 PyThreadState* __tstate = wxPyBeginAllowThreads();
8911 result = (wxInputStream *)(arg1)->GetInputStream();
8912
8913 wxPyEndAllowThreads(__tstate);
8914 if (PyErr_Occurred()) SWIG_fail;
8915 }
8916 {
8917 wxPyInputStream * _ptr = NULL;
8918
8919 if (result) {
8920 _ptr = new wxPyInputStream(result);
8921 }
e811c8ce 8922 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
8923 }
8924 return resultobj;
8925 fail:
8926 return NULL;
8927}
8928
8929
8930static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8931 PyObject *resultobj;
8932 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8933 wxInputStream *result;
8934 PyObject * obj0 = 0 ;
8935 char *kwnames[] = {
8936 (char *) "self", NULL
8937 };
8938
8939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
15afbcd0
RD
8940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8942 {
8943 PyThreadState* __tstate = wxPyBeginAllowThreads();
8944 result = (wxInputStream *)(arg1)->GetErrorStream();
8945
8946 wxPyEndAllowThreads(__tstate);
8947 if (PyErr_Occurred()) SWIG_fail;
8948 }
8949 {
8950 wxPyInputStream * _ptr = NULL;
8951
8952 if (result) {
8953 _ptr = new wxPyInputStream(result);
8954 }
e811c8ce 8955 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
8956 }
8957 return resultobj;
8958 fail:
8959 return NULL;
8960}
8961
8962
8963static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8964 PyObject *resultobj;
8965 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8966 wxOutputStream *result;
8967 PyObject * obj0 = 0 ;
8968 char *kwnames[] = {
8969 (char *) "self", NULL
8970 };
8971
8972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
15afbcd0
RD
8973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
8975 {
8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
8977 result = (wxOutputStream *)(arg1)->GetOutputStream();
8978
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
15afbcd0 8982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
d14a1e28
RD
8983 return resultobj;
8984 fail:
8985 return NULL;
8986}
8987
8988
8989static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
8990 PyObject *resultobj;
8991 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8992 PyObject * obj0 = 0 ;
8993 char *kwnames[] = {
8994 (char *) "self", NULL
8995 };
8996
8997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
15afbcd0
RD
8998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9000 {
9001 PyThreadState* __tstate = wxPyBeginAllowThreads();
9002 (arg1)->CloseOutput();
9003
9004 wxPyEndAllowThreads(__tstate);
9005 if (PyErr_Occurred()) SWIG_fail;
9006 }
9007 Py_INCREF(Py_None); resultobj = Py_None;
9008 return resultobj;
9009 fail:
9010 return NULL;
9011}
9012
9013
9014static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9015 PyObject *resultobj;
9016 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9017 bool result;
9018 PyObject * obj0 = 0 ;
9019 char *kwnames[] = {
9020 (char *) "self", NULL
9021 };
9022
9023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
15afbcd0
RD
9024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9026 {
9027 PyThreadState* __tstate = wxPyBeginAllowThreads();
9028 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9029
9030 wxPyEndAllowThreads(__tstate);
9031 if (PyErr_Occurred()) SWIG_fail;
9032 }
4d5c3d91 9033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9034 return resultobj;
9035 fail:
9036 return NULL;
9037}
9038
9039
9040static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9041 PyObject *resultobj;
9042 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9043 bool result;
9044 PyObject * obj0 = 0 ;
9045 char *kwnames[] = {
9046 (char *) "self", NULL
9047 };
9048
9049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
15afbcd0
RD
9050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9052 {
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9055
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
4d5c3d91 9059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9060 return resultobj;
9061 fail:
9062 return NULL;
9063}
9064
9065
9066static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj;
9068 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9069 bool result;
9070 PyObject * obj0 = 0 ;
9071 char *kwnames[] = {
9072 (char *) "self", NULL
9073 };
9074
9075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
15afbcd0
RD
9076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9078 {
9079 PyThreadState* __tstate = wxPyBeginAllowThreads();
9080 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9081
9082 wxPyEndAllowThreads(__tstate);
9083 if (PyErr_Occurred()) SWIG_fail;
9084 }
4d5c3d91 9085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9086 return resultobj;
9087 fail:
9088 return NULL;
9089}
9090
9091
9092static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9093 PyObject *obj;
9094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9095 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9096 Py_INCREF(obj);
9097 return Py_BuildValue((char *)"");
9098}
9099static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9100 PyObject *resultobj;
9101 int arg1 = (int) 0 ;
9102 int arg2 = (int) 0 ;
9103 int arg3 = (int) 0 ;
9104 wxProcessEvent *result;
994141e6
RD
9105 PyObject * obj0 = 0 ;
9106 PyObject * obj1 = 0 ;
9107 PyObject * obj2 = 0 ;
d14a1e28
RD
9108 char *kwnames[] = {
9109 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9110 };
9111
994141e6
RD
9112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9113 if (obj0) {
15afbcd0
RD
9114 arg1 = (int) SWIG_AsInt(obj0);
9115 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
9116 }
9117 if (obj1) {
15afbcd0
RD
9118 arg2 = (int) SWIG_AsInt(obj1);
9119 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
9120 }
9121 if (obj2) {
15afbcd0
RD
9122 arg3 = (int) SWIG_AsInt(obj2);
9123 if (PyErr_Occurred()) SWIG_fail;
994141e6 9124 }
d14a1e28
RD
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9128
9129 wxPyEndAllowThreads(__tstate);
9130 if (PyErr_Occurred()) SWIG_fail;
9131 }
15afbcd0 9132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
d14a1e28
RD
9133 return resultobj;
9134 fail:
9135 return NULL;
9136}
9137
9138
9139static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9140 PyObject *resultobj;
9141 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9142 int result;
9143 PyObject * obj0 = 0 ;
9144 char *kwnames[] = {
9145 (char *) "self", NULL
9146 };
9147
9148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
15afbcd0
RD
9149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9151 {
9152 PyThreadState* __tstate = wxPyBeginAllowThreads();
9153 result = (int)(arg1)->GetPid();
9154
9155 wxPyEndAllowThreads(__tstate);
9156 if (PyErr_Occurred()) SWIG_fail;
9157 }
15afbcd0 9158 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9159 return resultobj;
9160 fail:
9161 return NULL;
9162}
9163
9164
9165static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj;
9167 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9168 int result;
9169 PyObject * obj0 = 0 ;
9170 char *kwnames[] = {
9171 (char *) "self", NULL
9172 };
9173
9174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
15afbcd0
RD
9175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9177 {
9178 PyThreadState* __tstate = wxPyBeginAllowThreads();
9179 result = (int)(arg1)->GetExitCode();
9180
9181 wxPyEndAllowThreads(__tstate);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 }
15afbcd0 9184 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9185 return resultobj;
9186 fail:
9187 return NULL;
9188}
9189
9190
9191static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9192 PyObject *resultobj;
9193 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9194 int arg2 ;
9195 PyObject * obj0 = 0 ;
994141e6 9196 PyObject * obj1 = 0 ;
d14a1e28
RD
9197 char *kwnames[] = {
9198 (char *) "self",(char *) "m_pid", NULL
9199 };
9200
994141e6 9201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9204 arg2 = (int) SWIG_AsInt(obj1);
9205 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9206 if (arg1) (arg1)->m_pid = arg2;
9207
9208 Py_INCREF(Py_None); resultobj = Py_None;
9209 return resultobj;
9210 fail:
9211 return NULL;
9212}
9213
9214
9215static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj;
9217 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9218 int result;
9219 PyObject * obj0 = 0 ;
9220 char *kwnames[] = {
9221 (char *) "self", NULL
9222 };
9223
9224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9227 result = (int) ((arg1)->m_pid);
9228
15afbcd0 9229 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9230 return resultobj;
9231 fail:
9232 return NULL;
9233}
9234
9235
9236static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9237 PyObject *resultobj;
9238 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9239 int arg2 ;
9240 PyObject * obj0 = 0 ;
994141e6 9241 PyObject * obj1 = 0 ;
d14a1e28
RD
9242 char *kwnames[] = {
9243 (char *) "self",(char *) "m_exitcode", NULL
9244 };
9245
994141e6 9246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9249 arg2 = (int) SWIG_AsInt(obj1);
9250 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9251 if (arg1) (arg1)->m_exitcode = arg2;
9252
9253 Py_INCREF(Py_None); resultobj = Py_None;
9254 return resultobj;
9255 fail:
9256 return NULL;
9257}
9258
9259
9260static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9261 PyObject *resultobj;
9262 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9263 int result;
9264 PyObject * obj0 = 0 ;
9265 char *kwnames[] = {
9266 (char *) "self", NULL
9267 };
9268
9269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
9270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9272 result = (int) ((arg1)->m_exitcode);
9273
15afbcd0 9274 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9275 return resultobj;
9276 fail:
9277 return NULL;
9278}
9279
9280
9281static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9282 PyObject *obj;
9283 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9284 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9285 Py_INCREF(obj);
9286 return Py_BuildValue((char *)"");
9287}
9288static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 wxString *arg1 = 0 ;
9291 int arg2 = (int) wxEXEC_ASYNC ;
9292 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9293 long result;
e811c8ce 9294 bool temp1 = False ;
d14a1e28 9295 PyObject * obj0 = 0 ;
994141e6 9296 PyObject * obj1 = 0 ;
d14a1e28
RD
9297 PyObject * obj2 = 0 ;
9298 char *kwnames[] = {
9299 (char *) "command",(char *) "flags",(char *) "process", NULL
9300 };
9301
994141e6 9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
9303 {
9304 arg1 = wxString_in_helper(obj0);
9305 if (arg1 == NULL) SWIG_fail;
e811c8ce 9306 temp1 = True;
d14a1e28 9307 }
994141e6 9308 if (obj1) {
15afbcd0
RD
9309 arg2 = (int) SWIG_AsInt(obj1);
9310 if (PyErr_Occurred()) SWIG_fail;
994141e6 9311 }
d14a1e28 9312 if (obj2) {
15afbcd0
RD
9313 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9315 }
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9319
9320 wxPyEndAllowThreads(__tstate);
9321 if (PyErr_Occurred()) SWIG_fail;
9322 }
15afbcd0 9323 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
9324 {
9325 if (temp1)
9326 delete arg1;
9327 }
9328 return resultobj;
9329 fail:
9330 {
9331 if (temp1)
9332 delete arg1;
9333 }
9334 return NULL;
9335}
9336
9337
9338static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9339 PyObject *resultobj;
9340 int arg1 = (int) wxJOYSTICK1 ;
9341 wxJoystick *result;
994141e6 9342 PyObject * obj0 = 0 ;
d14a1e28
RD
9343 char *kwnames[] = {
9344 (char *) "joystick", NULL
9345 };
9346
994141e6
RD
9347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9348 if (obj0) {
15afbcd0
RD
9349 arg1 = (int) SWIG_AsInt(obj0);
9350 if (PyErr_Occurred()) SWIG_fail;
994141e6 9351 }
d14a1e28
RD
9352 {
9353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9354 result = (wxJoystick *)new wxJoystick(arg1);
9355
9356 wxPyEndAllowThreads(__tstate);
9357 if (PyErr_Occurred()) SWIG_fail;
9358 }
15afbcd0 9359 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
d14a1e28
RD
9360 return resultobj;
9361 fail:
9362 return NULL;
9363}
9364
9365
9366static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9367 PyObject *resultobj;
9368 wxJoystick *arg1 = (wxJoystick *) 0 ;
9369 PyObject * obj0 = 0 ;
9370 char *kwnames[] = {
9371 (char *) "self", NULL
9372 };
9373
9374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
15afbcd0
RD
9375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9377 {
9378 PyThreadState* __tstate = wxPyBeginAllowThreads();
9379 delete arg1;
9380
9381 wxPyEndAllowThreads(__tstate);
9382 if (PyErr_Occurred()) SWIG_fail;
9383 }
9384 Py_INCREF(Py_None); resultobj = Py_None;
9385 return resultobj;
9386 fail:
9387 return NULL;
9388}
9389
9390
9391static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9392 PyObject *resultobj;
9393 wxJoystick *arg1 = (wxJoystick *) 0 ;
9394 wxPoint result;
9395 PyObject * obj0 = 0 ;
9396 char *kwnames[] = {
9397 (char *) "self", NULL
9398 };
9399
9400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
9401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9403 {
9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
9405 result = (arg1)->GetPosition();
9406
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 {
9411 wxPoint * resultptr;
9412 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 9413 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
9414 }
9415 return resultobj;
9416 fail:
9417 return NULL;
9418}
9419
9420
9421static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj;
9423 wxJoystick *arg1 = (wxJoystick *) 0 ;
9424 int result;
9425 PyObject * obj0 = 0 ;
9426 char *kwnames[] = {
9427 (char *) "self", NULL
9428 };
9429
9430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
9431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 result = (int)(arg1)->GetZPosition();
9436
9437 wxPyEndAllowThreads(__tstate);
9438 if (PyErr_Occurred()) SWIG_fail;
9439 }
15afbcd0 9440 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9441 return resultobj;
9442 fail:
9443 return NULL;
9444}
9445
9446
9447static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9448 PyObject *resultobj;
9449 wxJoystick *arg1 = (wxJoystick *) 0 ;
9450 int result;
9451 PyObject * obj0 = 0 ;
9452 char *kwnames[] = {
9453 (char *) "self", NULL
9454 };
9455
9456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
15afbcd0
RD
9457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 result = (int)(arg1)->GetButtonState();
9462
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
15afbcd0 9466 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9467 return resultobj;
9468 fail:
9469 return NULL;
9470}
9471
9472
9473static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9474 PyObject *resultobj;
9475 wxJoystick *arg1 = (wxJoystick *) 0 ;
9476 int result;
9477 PyObject * obj0 = 0 ;
9478 char *kwnames[] = {
9479 (char *) "self", NULL
9480 };
9481
9482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
9483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 result = (int)(arg1)->GetPOVPosition();
9488
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
15afbcd0 9492 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9493 return resultobj;
9494 fail:
9495 return NULL;
9496}
9497
9498
9499static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9500 PyObject *resultobj;
9501 wxJoystick *arg1 = (wxJoystick *) 0 ;
9502 int result;
9503 PyObject * obj0 = 0 ;
9504 char *kwnames[] = {
9505 (char *) "self", NULL
9506 };
9507
9508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
9509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 result = (int)(arg1)->GetPOVCTSPosition();
9514
9515 wxPyEndAllowThreads(__tstate);
9516 if (PyErr_Occurred()) SWIG_fail;
9517 }
15afbcd0 9518 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9519 return resultobj;
9520 fail:
9521 return NULL;
9522}
9523
9524
9525static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj;
9527 wxJoystick *arg1 = (wxJoystick *) 0 ;
9528 int result;
9529 PyObject * obj0 = 0 ;
9530 char *kwnames[] = {
9531 (char *) "self", NULL
9532 };
9533
9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
9535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9537 {
9538 PyThreadState* __tstate = wxPyBeginAllowThreads();
9539 result = (int)(arg1)->GetRudderPosition();
9540
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 }
15afbcd0 9544 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9545 return resultobj;
9546 fail:
9547 return NULL;
9548}
9549
9550
9551static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9552 PyObject *resultobj;
9553 wxJoystick *arg1 = (wxJoystick *) 0 ;
9554 int result;
9555 PyObject * obj0 = 0 ;
9556 char *kwnames[] = {
9557 (char *) "self", NULL
9558 };
9559
9560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
9561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9563 {
9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
9565 result = (int)(arg1)->GetUPosition();
9566
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
15afbcd0 9570 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9571 return resultobj;
9572 fail:
9573 return NULL;
9574}
9575
9576
9577static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9578 PyObject *resultobj;
9579 wxJoystick *arg1 = (wxJoystick *) 0 ;
9580 int result;
9581 PyObject * obj0 = 0 ;
9582 char *kwnames[] = {
9583 (char *) "self", NULL
9584 };
9585
9586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
9587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 result = (int)(arg1)->GetVPosition();
9592
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
15afbcd0 9596 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9597 return resultobj;
9598 fail:
9599 return NULL;
9600}
9601
9602
9603static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj;
9605 wxJoystick *arg1 = (wxJoystick *) 0 ;
9606 int result;
9607 PyObject * obj0 = 0 ;
9608 char *kwnames[] = {
9609 (char *) "self", NULL
9610 };
9611
9612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
15afbcd0
RD
9613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 result = (int)(arg1)->GetMovementThreshold();
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
15afbcd0 9622 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9623 return resultobj;
9624 fail:
9625 return NULL;
9626}
9627
9628
9629static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9630 PyObject *resultobj;
9631 wxJoystick *arg1 = (wxJoystick *) 0 ;
9632 int arg2 ;
9633 PyObject * obj0 = 0 ;
994141e6 9634 PyObject * obj1 = 0 ;
d14a1e28
RD
9635 char *kwnames[] = {
9636 (char *) "self",(char *) "threshold", NULL
9637 };
9638
994141e6 9639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
9640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9642 arg2 = (int) SWIG_AsInt(obj1);
9643 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 (arg1)->SetMovementThreshold(arg2);
9647
9648 wxPyEndAllowThreads(__tstate);
9649 if (PyErr_Occurred()) SWIG_fail;
9650 }
9651 Py_INCREF(Py_None); resultobj = Py_None;
9652 return resultobj;
9653 fail:
9654 return NULL;
9655}
9656
9657
9658static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9659 PyObject *resultobj;
9660 wxJoystick *arg1 = (wxJoystick *) 0 ;
9661 bool result;
9662 PyObject * obj0 = 0 ;
9663 char *kwnames[] = {
9664 (char *) "self", NULL
9665 };
9666
9667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
9668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9670 {
9671 PyThreadState* __tstate = wxPyBeginAllowThreads();
9672 result = (bool)(arg1)->IsOk();
9673
9674 wxPyEndAllowThreads(__tstate);
9675 if (PyErr_Occurred()) SWIG_fail;
9676 }
4d5c3d91 9677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9678 return resultobj;
9679 fail:
9680 return NULL;
9681}
9682
9683
9684static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj;
9686 wxJoystick *arg1 = (wxJoystick *) 0 ;
9687 int result;
9688 PyObject * obj0 = 0 ;
9689 char *kwnames[] = {
9690 (char *) "self", NULL
9691 };
9692
9693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
15afbcd0
RD
9694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (int)(arg1)->GetNumberJoysticks();
9699
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
15afbcd0 9703 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9704 return resultobj;
9705 fail:
9706 return NULL;
9707}
9708
9709
9710static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj;
9712 wxJoystick *arg1 = (wxJoystick *) 0 ;
9713 int result;
9714 PyObject * obj0 = 0 ;
9715 char *kwnames[] = {
9716 (char *) "self", NULL
9717 };
9718
9719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
15afbcd0
RD
9720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9722 {
9723 PyThreadState* __tstate = wxPyBeginAllowThreads();
9724 result = (int)(arg1)->GetManufacturerId();
9725
9726 wxPyEndAllowThreads(__tstate);
9727 if (PyErr_Occurred()) SWIG_fail;
9728 }
15afbcd0 9729 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9730 return resultobj;
9731 fail:
9732 return NULL;
9733}
9734
9735
9736static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9737 PyObject *resultobj;
9738 wxJoystick *arg1 = (wxJoystick *) 0 ;
9739 int result;
9740 PyObject * obj0 = 0 ;
9741 char *kwnames[] = {
9742 (char *) "self", NULL
9743 };
9744
9745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
15afbcd0
RD
9746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9748 {
9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
9750 result = (int)(arg1)->GetProductId();
9751
9752 wxPyEndAllowThreads(__tstate);
9753 if (PyErr_Occurred()) SWIG_fail;
9754 }
15afbcd0 9755 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9756 return resultobj;
9757 fail:
9758 return NULL;
9759}
9760
9761
9762static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9763 PyObject *resultobj;
9764 wxJoystick *arg1 = (wxJoystick *) 0 ;
9765 wxString result;
9766 PyObject * obj0 = 0 ;
9767 char *kwnames[] = {
9768 (char *) "self", NULL
9769 };
9770
9771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
15afbcd0
RD
9772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9774 {
9775 PyThreadState* __tstate = wxPyBeginAllowThreads();
9776 result = (arg1)->GetProductName();
9777
9778 wxPyEndAllowThreads(__tstate);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 }
9781 {
9782#if wxUSE_UNICODE
9783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9784#else
9785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9786#endif
9787 }
9788 return resultobj;
9789 fail:
9790 return NULL;
9791}
9792
9793
9794static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj;
9796 wxJoystick *arg1 = (wxJoystick *) 0 ;
9797 int result;
9798 PyObject * obj0 = 0 ;
9799 char *kwnames[] = {
9800 (char *) "self", NULL
9801 };
9802
9803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
15afbcd0
RD
9804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9806 {
9807 PyThreadState* __tstate = wxPyBeginAllowThreads();
9808 result = (int)(arg1)->GetXMin();
9809
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
15afbcd0 9813 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9814 return resultobj;
9815 fail:
9816 return NULL;
9817}
9818
9819
9820static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9821 PyObject *resultobj;
9822 wxJoystick *arg1 = (wxJoystick *) 0 ;
9823 int result;
9824 PyObject * obj0 = 0 ;
9825 char *kwnames[] = {
9826 (char *) "self", NULL
9827 };
9828
9829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
15afbcd0
RD
9830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9832 {
9833 PyThreadState* __tstate = wxPyBeginAllowThreads();
9834 result = (int)(arg1)->GetYMin();
9835
9836 wxPyEndAllowThreads(__tstate);
9837 if (PyErr_Occurred()) SWIG_fail;
9838 }
15afbcd0 9839 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9840 return resultobj;
9841 fail:
9842 return NULL;
9843}
9844
9845
9846static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9847 PyObject *resultobj;
9848 wxJoystick *arg1 = (wxJoystick *) 0 ;
9849 int result;
9850 PyObject * obj0 = 0 ;
9851 char *kwnames[] = {
9852 (char *) "self", NULL
9853 };
9854
9855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
15afbcd0
RD
9856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9858 {
9859 PyThreadState* __tstate = wxPyBeginAllowThreads();
9860 result = (int)(arg1)->GetZMin();
9861
9862 wxPyEndAllowThreads(__tstate);
9863 if (PyErr_Occurred()) SWIG_fail;
9864 }
15afbcd0 9865 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9866 return resultobj;
9867 fail:
9868 return NULL;
9869}
9870
9871
9872static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9873 PyObject *resultobj;
9874 wxJoystick *arg1 = (wxJoystick *) 0 ;
9875 int result;
9876 PyObject * obj0 = 0 ;
9877 char *kwnames[] = {
9878 (char *) "self", NULL
9879 };
9880
9881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
15afbcd0
RD
9882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9884 {
9885 PyThreadState* __tstate = wxPyBeginAllowThreads();
9886 result = (int)(arg1)->GetXMax();
9887
9888 wxPyEndAllowThreads(__tstate);
9889 if (PyErr_Occurred()) SWIG_fail;
9890 }
15afbcd0 9891 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9892 return resultobj;
9893 fail:
9894 return NULL;
9895}
9896
9897
9898static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9899 PyObject *resultobj;
9900 wxJoystick *arg1 = (wxJoystick *) 0 ;
9901 int result;
9902 PyObject * obj0 = 0 ;
9903 char *kwnames[] = {
9904 (char *) "self", NULL
9905 };
9906
9907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
15afbcd0
RD
9908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9910 {
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 result = (int)(arg1)->GetYMax();
9913
9914 wxPyEndAllowThreads(__tstate);
9915 if (PyErr_Occurred()) SWIG_fail;
9916 }
15afbcd0 9917 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9918 return resultobj;
9919 fail:
9920 return NULL;
9921}
9922
9923
9924static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9925 PyObject *resultobj;
9926 wxJoystick *arg1 = (wxJoystick *) 0 ;
9927 int result;
9928 PyObject * obj0 = 0 ;
9929 char *kwnames[] = {
9930 (char *) "self", NULL
9931 };
9932
9933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
15afbcd0
RD
9934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9936 {
9937 PyThreadState* __tstate = wxPyBeginAllowThreads();
9938 result = (int)(arg1)->GetZMax();
9939
9940 wxPyEndAllowThreads(__tstate);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
15afbcd0 9943 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9944 return resultobj;
9945 fail:
9946 return NULL;
9947}
9948
9949
9950static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9951 PyObject *resultobj;
9952 wxJoystick *arg1 = (wxJoystick *) 0 ;
9953 int result;
9954 PyObject * obj0 = 0 ;
9955 char *kwnames[] = {
9956 (char *) "self", NULL
9957 };
9958
9959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
15afbcd0
RD
9960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9962 {
9963 PyThreadState* __tstate = wxPyBeginAllowThreads();
9964 result = (int)(arg1)->GetNumberButtons();
9965
9966 wxPyEndAllowThreads(__tstate);
9967 if (PyErr_Occurred()) SWIG_fail;
9968 }
15afbcd0 9969 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9970 return resultobj;
9971 fail:
9972 return NULL;
9973}
9974
9975
9976static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
9977 PyObject *resultobj;
9978 wxJoystick *arg1 = (wxJoystick *) 0 ;
9979 int result;
9980 PyObject * obj0 = 0 ;
9981 char *kwnames[] = {
9982 (char *) "self", NULL
9983 };
9984
9985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
15afbcd0
RD
9986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
9988 {
9989 PyThreadState* __tstate = wxPyBeginAllowThreads();
9990 result = (int)(arg1)->GetNumberAxes();
9991
9992 wxPyEndAllowThreads(__tstate);
9993 if (PyErr_Occurred()) SWIG_fail;
9994 }
15afbcd0 9995 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
9996 return resultobj;
9997 fail:
9998 return NULL;
9999}
10000
10001
10002static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10003 PyObject *resultobj;
10004 wxJoystick *arg1 = (wxJoystick *) 0 ;
10005 int result;
10006 PyObject * obj0 = 0 ;
10007 char *kwnames[] = {
10008 (char *) "self", NULL
10009 };
10010
10011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
15afbcd0
RD
10012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10014 {
10015 PyThreadState* __tstate = wxPyBeginAllowThreads();
10016 result = (int)(arg1)->GetMaxButtons();
10017
10018 wxPyEndAllowThreads(__tstate);
10019 if (PyErr_Occurred()) SWIG_fail;
10020 }
15afbcd0 10021 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10022 return resultobj;
10023 fail:
10024 return NULL;
10025}
10026
10027
10028static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10029 PyObject *resultobj;
10030 wxJoystick *arg1 = (wxJoystick *) 0 ;
10031 int result;
10032 PyObject * obj0 = 0 ;
10033 char *kwnames[] = {
10034 (char *) "self", NULL
10035 };
10036
10037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
15afbcd0
RD
10038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10040 {
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 result = (int)(arg1)->GetMaxAxes();
10043
10044 wxPyEndAllowThreads(__tstate);
10045 if (PyErr_Occurred()) SWIG_fail;
10046 }
15afbcd0 10047 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10048 return resultobj;
10049 fail:
10050 return NULL;
10051}
10052
10053
10054static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10055 PyObject *resultobj;
10056 wxJoystick *arg1 = (wxJoystick *) 0 ;
10057 int result;
10058 PyObject * obj0 = 0 ;
10059 char *kwnames[] = {
10060 (char *) "self", NULL
10061 };
10062
10063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
15afbcd0
RD
10064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10066 {
10067 PyThreadState* __tstate = wxPyBeginAllowThreads();
10068 result = (int)(arg1)->GetPollingMin();
10069
10070 wxPyEndAllowThreads(__tstate);
10071 if (PyErr_Occurred()) SWIG_fail;
10072 }
15afbcd0 10073 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10074 return resultobj;
10075 fail:
10076 return NULL;
10077}
10078
10079
10080static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10081 PyObject *resultobj;
10082 wxJoystick *arg1 = (wxJoystick *) 0 ;
10083 int result;
10084 PyObject * obj0 = 0 ;
10085 char *kwnames[] = {
10086 (char *) "self", NULL
10087 };
10088
10089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
15afbcd0
RD
10090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = (int)(arg1)->GetPollingMax();
10095
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
15afbcd0 10099 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10100 return resultobj;
10101 fail:
10102 return NULL;
10103}
10104
10105
10106static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10107 PyObject *resultobj;
10108 wxJoystick *arg1 = (wxJoystick *) 0 ;
10109 int result;
10110 PyObject * obj0 = 0 ;
10111 char *kwnames[] = {
10112 (char *) "self", NULL
10113 };
10114
10115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
15afbcd0
RD
10116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (int)(arg1)->GetRudderMin();
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
15afbcd0 10125 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10126 return resultobj;
10127 fail:
10128 return NULL;
10129}
10130
10131
10132static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj;
10134 wxJoystick *arg1 = (wxJoystick *) 0 ;
10135 int result;
10136 PyObject * obj0 = 0 ;
10137 char *kwnames[] = {
10138 (char *) "self", NULL
10139 };
10140
10141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
15afbcd0
RD
10142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10144 {
10145 PyThreadState* __tstate = wxPyBeginAllowThreads();
10146 result = (int)(arg1)->GetRudderMax();
10147
10148 wxPyEndAllowThreads(__tstate);
10149 if (PyErr_Occurred()) SWIG_fail;
10150 }
15afbcd0 10151 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10152 return resultobj;
10153 fail:
10154 return NULL;
10155}
10156
10157
10158static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10159 PyObject *resultobj;
10160 wxJoystick *arg1 = (wxJoystick *) 0 ;
10161 int result;
10162 PyObject * obj0 = 0 ;
10163 char *kwnames[] = {
10164 (char *) "self", NULL
10165 };
10166
10167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
15afbcd0
RD
10168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10170 {
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 result = (int)(arg1)->GetUMin();
10173
10174 wxPyEndAllowThreads(__tstate);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 }
15afbcd0 10177 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10178 return resultobj;
10179 fail:
10180 return NULL;
10181}
10182
10183
10184static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10185 PyObject *resultobj;
10186 wxJoystick *arg1 = (wxJoystick *) 0 ;
10187 int result;
10188 PyObject * obj0 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self", NULL
10191 };
10192
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
15afbcd0
RD
10194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 result = (int)(arg1)->GetUMax();
10199
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
15afbcd0 10203 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10204 return resultobj;
10205 fail:
10206 return NULL;
10207}
10208
10209
10210static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj;
10212 wxJoystick *arg1 = (wxJoystick *) 0 ;
10213 int result;
10214 PyObject * obj0 = 0 ;
10215 char *kwnames[] = {
10216 (char *) "self", NULL
10217 };
10218
10219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
15afbcd0
RD
10220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10222 {
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 result = (int)(arg1)->GetVMin();
10225
10226 wxPyEndAllowThreads(__tstate);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 }
15afbcd0 10229 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10230 return resultobj;
10231 fail:
10232 return NULL;
10233}
10234
10235
10236static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10237 PyObject *resultobj;
10238 wxJoystick *arg1 = (wxJoystick *) 0 ;
10239 int result;
10240 PyObject * obj0 = 0 ;
10241 char *kwnames[] = {
10242 (char *) "self", NULL
10243 };
10244
10245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
15afbcd0
RD
10246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10248 {
10249 PyThreadState* __tstate = wxPyBeginAllowThreads();
10250 result = (int)(arg1)->GetVMax();
10251
10252 wxPyEndAllowThreads(__tstate);
10253 if (PyErr_Occurred()) SWIG_fail;
10254 }
15afbcd0 10255 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10256 return resultobj;
10257 fail:
10258 return NULL;
10259}
10260
10261
10262static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10263 PyObject *resultobj;
10264 wxJoystick *arg1 = (wxJoystick *) 0 ;
10265 bool result;
10266 PyObject * obj0 = 0 ;
10267 char *kwnames[] = {
10268 (char *) "self", NULL
10269 };
10270
10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
15afbcd0
RD
10272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10274 {
10275 PyThreadState* __tstate = wxPyBeginAllowThreads();
10276 result = (bool)(arg1)->HasRudder();
10277
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
4d5c3d91 10281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10282 return resultobj;
10283 fail:
10284 return NULL;
10285}
10286
10287
10288static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10289 PyObject *resultobj;
10290 wxJoystick *arg1 = (wxJoystick *) 0 ;
10291 bool result;
10292 PyObject * obj0 = 0 ;
10293 char *kwnames[] = {
10294 (char *) "self", NULL
10295 };
10296
10297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
15afbcd0
RD
10298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = (bool)(arg1)->HasZ();
10303
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
4d5c3d91 10307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10308 return resultobj;
10309 fail:
10310 return NULL;
10311}
10312
10313
10314static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10315 PyObject *resultobj;
10316 wxJoystick *arg1 = (wxJoystick *) 0 ;
10317 bool result;
10318 PyObject * obj0 = 0 ;
10319 char *kwnames[] = {
10320 (char *) "self", NULL
10321 };
10322
10323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
15afbcd0
RD
10324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10326 {
10327 PyThreadState* __tstate = wxPyBeginAllowThreads();
10328 result = (bool)(arg1)->HasU();
10329
10330 wxPyEndAllowThreads(__tstate);
10331 if (PyErr_Occurred()) SWIG_fail;
10332 }
4d5c3d91 10333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10334 return resultobj;
10335 fail:
10336 return NULL;
10337}
10338
10339
10340static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10341 PyObject *resultobj;
10342 wxJoystick *arg1 = (wxJoystick *) 0 ;
10343 bool result;
10344 PyObject * obj0 = 0 ;
10345 char *kwnames[] = {
10346 (char *) "self", NULL
10347 };
10348
10349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
15afbcd0
RD
10350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 result = (bool)(arg1)->HasV();
10355
10356 wxPyEndAllowThreads(__tstate);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
4d5c3d91 10359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10360 return resultobj;
10361 fail:
10362 return NULL;
10363}
10364
10365
10366static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10367 PyObject *resultobj;
10368 wxJoystick *arg1 = (wxJoystick *) 0 ;
10369 bool result;
10370 PyObject * obj0 = 0 ;
10371 char *kwnames[] = {
10372 (char *) "self", NULL
10373 };
10374
10375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
15afbcd0
RD
10376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10378 {
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 result = (bool)(arg1)->HasPOV();
10381
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
4d5c3d91 10385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10386 return resultobj;
10387 fail:
10388 return NULL;
10389}
10390
10391
10392static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10393 PyObject *resultobj;
10394 wxJoystick *arg1 = (wxJoystick *) 0 ;
10395 bool result;
10396 PyObject * obj0 = 0 ;
10397 char *kwnames[] = {
10398 (char *) "self", NULL
10399 };
10400
10401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
15afbcd0
RD
10402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10404 {
10405 PyThreadState* __tstate = wxPyBeginAllowThreads();
10406 result = (bool)(arg1)->HasPOV4Dir();
10407
10408 wxPyEndAllowThreads(__tstate);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 }
4d5c3d91 10411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10412 return resultobj;
10413 fail:
10414 return NULL;
10415}
10416
10417
10418static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10419 PyObject *resultobj;
10420 wxJoystick *arg1 = (wxJoystick *) 0 ;
10421 bool result;
10422 PyObject * obj0 = 0 ;
10423 char *kwnames[] = {
10424 (char *) "self", NULL
10425 };
10426
10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
15afbcd0
RD
10428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 result = (bool)(arg1)->HasPOVCTS();
10433
10434 wxPyEndAllowThreads(__tstate);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
4d5c3d91 10437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10438 return resultobj;
10439 fail:
10440 return NULL;
10441}
10442
10443
10444static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10445 PyObject *resultobj;
10446 wxJoystick *arg1 = (wxJoystick *) 0 ;
10447 wxWindow *arg2 = (wxWindow *) 0 ;
10448 int arg3 = (int) 0 ;
10449 bool result;
10450 PyObject * obj0 = 0 ;
10451 PyObject * obj1 = 0 ;
994141e6 10452 PyObject * obj2 = 0 ;
d14a1e28
RD
10453 char *kwnames[] = {
10454 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10455 };
10456
994141e6 10457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
10458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10460 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 10462 if (obj2) {
15afbcd0
RD
10463 arg3 = (int) SWIG_AsInt(obj2);
10464 if (PyErr_Occurred()) SWIG_fail;
994141e6 10465 }
d14a1e28
RD
10466 {
10467 PyThreadState* __tstate = wxPyBeginAllowThreads();
10468 result = (bool)(arg1)->SetCapture(arg2,arg3);
10469
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
4d5c3d91 10473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10474 return resultobj;
10475 fail:
10476 return NULL;
10477}
10478
10479
10480static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10481 PyObject *resultobj;
10482 wxJoystick *arg1 = (wxJoystick *) 0 ;
10483 bool result;
10484 PyObject * obj0 = 0 ;
10485 char *kwnames[] = {
10486 (char *) "self", NULL
10487 };
10488
10489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
15afbcd0
RD
10490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10492 {
10493 PyThreadState* __tstate = wxPyBeginAllowThreads();
10494 result = (bool)(arg1)->ReleaseCapture();
10495
10496 wxPyEndAllowThreads(__tstate);
10497 if (PyErr_Occurred()) SWIG_fail;
10498 }
4d5c3d91 10499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10500 return resultobj;
10501 fail:
10502 return NULL;
10503}
10504
10505
10506static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10507 PyObject *obj;
10508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10509 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10510 Py_INCREF(obj);
10511 return Py_BuildValue((char *)"");
10512}
10513static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10514 PyObject *resultobj;
10515 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10516 wxPoint *arg2 = (wxPoint *) 0 ;
10517 PyObject * obj0 = 0 ;
10518 PyObject * obj1 = 0 ;
10519 char *kwnames[] = {
10520 (char *) "self",(char *) "m_pos", NULL
10521 };
10522
10523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10528 if (arg1) (arg1)->m_pos = *arg2;
10529
10530 Py_INCREF(Py_None); resultobj = Py_None;
10531 return resultobj;
10532 fail:
10533 return NULL;
10534}
10535
10536
10537static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10538 PyObject *resultobj;
10539 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10540 wxPoint *result;
10541 PyObject * obj0 = 0 ;
10542 char *kwnames[] = {
10543 (char *) "self", NULL
10544 };
10545
10546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
10547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10549 result = (wxPoint *)& ((arg1)->m_pos);
10550
15afbcd0 10551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
d14a1e28
RD
10552 return resultobj;
10553 fail:
10554 return NULL;
10555}
10556
10557
10558static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj;
10560 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10561 int arg2 ;
10562 PyObject * obj0 = 0 ;
994141e6 10563 PyObject * obj1 = 0 ;
d14a1e28
RD
10564 char *kwnames[] = {
10565 (char *) "self",(char *) "m_zPosition", NULL
10566 };
10567
994141e6 10568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10571 arg2 = (int) SWIG_AsInt(obj1);
10572 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10573 if (arg1) (arg1)->m_zPosition = arg2;
10574
10575 Py_INCREF(Py_None); resultobj = Py_None;
10576 return resultobj;
10577 fail:
10578 return NULL;
10579}
10580
10581
10582static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj;
10584 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10585 int result;
10586 PyObject * obj0 = 0 ;
10587 char *kwnames[] = {
10588 (char *) "self", NULL
10589 };
10590
10591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
10592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10594 result = (int) ((arg1)->m_zPosition);
10595
15afbcd0 10596 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10597 return resultobj;
10598 fail:
10599 return NULL;
10600}
10601
10602
10603static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10604 PyObject *resultobj;
10605 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10606 int arg2 ;
10607 PyObject * obj0 = 0 ;
994141e6 10608 PyObject * obj1 = 0 ;
d14a1e28
RD
10609 char *kwnames[] = {
10610 (char *) "self",(char *) "m_buttonChange", NULL
10611 };
10612
994141e6 10613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10616 arg2 = (int) SWIG_AsInt(obj1);
10617 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10618 if (arg1) (arg1)->m_buttonChange = arg2;
10619
10620 Py_INCREF(Py_None); resultobj = Py_None;
10621 return resultobj;
10622 fail:
10623 return NULL;
10624}
10625
10626
10627static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10628 PyObject *resultobj;
10629 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10630 int result;
10631 PyObject * obj0 = 0 ;
10632 char *kwnames[] = {
10633 (char *) "self", NULL
10634 };
10635
10636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
10637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10639 result = (int) ((arg1)->m_buttonChange);
10640
15afbcd0 10641 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10642 return resultobj;
10643 fail:
10644 return NULL;
10645}
10646
10647
10648static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10649 PyObject *resultobj;
10650 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10651 int arg2 ;
10652 PyObject * obj0 = 0 ;
994141e6 10653 PyObject * obj1 = 0 ;
d14a1e28
RD
10654 char *kwnames[] = {
10655 (char *) "self",(char *) "m_buttonState", NULL
10656 };
10657
994141e6 10658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10661 arg2 = (int) SWIG_AsInt(obj1);
10662 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10663 if (arg1) (arg1)->m_buttonState = arg2;
10664
10665 Py_INCREF(Py_None); resultobj = Py_None;
10666 return resultobj;
10667 fail:
10668 return NULL;
10669}
10670
10671
10672static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj;
10674 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10675 int result;
10676 PyObject * obj0 = 0 ;
10677 char *kwnames[] = {
10678 (char *) "self", NULL
10679 };
10680
10681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
10682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10684 result = (int) ((arg1)->m_buttonState);
10685
15afbcd0 10686 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10687 return resultobj;
10688 fail:
10689 return NULL;
10690}
10691
10692
10693static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10694 PyObject *resultobj;
10695 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10696 int arg2 ;
10697 PyObject * obj0 = 0 ;
994141e6 10698 PyObject * obj1 = 0 ;
d14a1e28
RD
10699 char *kwnames[] = {
10700 (char *) "self",(char *) "m_joyStick", NULL
10701 };
10702
994141e6 10703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10706 arg2 = (int) SWIG_AsInt(obj1);
10707 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10708 if (arg1) (arg1)->m_joyStick = arg2;
10709
10710 Py_INCREF(Py_None); resultobj = Py_None;
10711 return resultobj;
10712 fail:
10713 return NULL;
10714}
10715
10716
10717static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj;
10719 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10720 int result;
10721 PyObject * obj0 = 0 ;
10722 char *kwnames[] = {
10723 (char *) "self", NULL
10724 };
10725
10726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
15afbcd0
RD
10727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10729 result = (int) ((arg1)->m_joyStick);
10730
15afbcd0 10731 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10732 return resultobj;
10733 fail:
10734 return NULL;
10735}
10736
10737
10738static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj;
10740 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10741 int arg2 = (int) 0 ;
10742 int arg3 = (int) wxJOYSTICK1 ;
10743 int arg4 = (int) 0 ;
10744 wxJoystickEvent *result;
994141e6
RD
10745 PyObject * obj0 = 0 ;
10746 PyObject * obj1 = 0 ;
10747 PyObject * obj2 = 0 ;
10748 PyObject * obj3 = 0 ;
d14a1e28
RD
10749 char *kwnames[] = {
10750 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10751 };
10752
994141e6
RD
10753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10754 if (obj0) {
15afbcd0
RD
10755 arg1 = (wxEventType) SWIG_AsInt(obj0);
10756 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
10757 }
10758 if (obj1) {
15afbcd0
RD
10759 arg2 = (int) SWIG_AsInt(obj1);
10760 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
10761 }
10762 if (obj2) {
15afbcd0
RD
10763 arg3 = (int) SWIG_AsInt(obj2);
10764 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
10765 }
10766 if (obj3) {
15afbcd0
RD
10767 arg4 = (int) SWIG_AsInt(obj3);
10768 if (PyErr_Occurred()) SWIG_fail;
994141e6 10769 }
d14a1e28
RD
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10773
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
15afbcd0 10777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
d14a1e28
RD
10778 return resultobj;
10779 fail:
10780 return NULL;
10781}
10782
10783
10784static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10785 PyObject *resultobj;
10786 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10787 wxPoint result;
10788 PyObject * obj0 = 0 ;
10789 char *kwnames[] = {
10790 (char *) "self", NULL
10791 };
10792
10793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
10794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10796 {
10797 PyThreadState* __tstate = wxPyBeginAllowThreads();
10798 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10799
10800 wxPyEndAllowThreads(__tstate);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 }
10803 {
10804 wxPoint * resultptr;
10805 resultptr = new wxPoint((wxPoint &) result);
15afbcd0 10806 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
d14a1e28
RD
10807 }
10808 return resultobj;
10809 fail:
10810 return NULL;
10811}
10812
10813
10814static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj;
10816 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10817 int result;
10818 PyObject * obj0 = 0 ;
10819 char *kwnames[] = {
10820 (char *) "self", NULL
10821 };
10822
10823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
15afbcd0
RD
10824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10826 {
10827 PyThreadState* __tstate = wxPyBeginAllowThreads();
10828 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
10829
10830 wxPyEndAllowThreads(__tstate);
10831 if (PyErr_Occurred()) SWIG_fail;
10832 }
15afbcd0 10833 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10834 return resultobj;
10835 fail:
10836 return NULL;
10837}
10838
10839
10840static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10841 PyObject *resultobj;
10842 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10843 int result;
10844 PyObject * obj0 = 0 ;
10845 char *kwnames[] = {
10846 (char *) "self", NULL
10847 };
10848
10849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
15afbcd0
RD
10850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10852 {
10853 PyThreadState* __tstate = wxPyBeginAllowThreads();
10854 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10855
10856 wxPyEndAllowThreads(__tstate);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 }
15afbcd0 10859 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10860 return resultobj;
10861 fail:
10862 return NULL;
10863}
10864
10865
10866static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj;
10868 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10869 int result;
10870 PyObject * obj0 = 0 ;
10871 char *kwnames[] = {
10872 (char *) "self", NULL
10873 };
10874
10875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
15afbcd0
RD
10876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10878 {
10879 PyThreadState* __tstate = wxPyBeginAllowThreads();
10880 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10881
10882 wxPyEndAllowThreads(__tstate);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
15afbcd0 10885 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10886 return resultobj;
10887 fail:
10888 return NULL;
10889}
10890
10891
10892static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10893 PyObject *resultobj;
10894 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10895 int result;
10896 PyObject * obj0 = 0 ;
10897 char *kwnames[] = {
10898 (char *) "self", NULL
10899 };
10900
10901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
15afbcd0
RD
10902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
10904 {
10905 PyThreadState* __tstate = wxPyBeginAllowThreads();
10906 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
10907
10908 wxPyEndAllowThreads(__tstate);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 }
15afbcd0 10911 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
10912 return resultobj;
10913 fail:
10914 return NULL;
10915}
10916
10917
10918static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10919 PyObject *resultobj;
10920 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10921 int arg2 ;
10922 PyObject * obj0 = 0 ;
994141e6 10923 PyObject * obj1 = 0 ;
d14a1e28
RD
10924 char *kwnames[] = {
10925 (char *) "self",(char *) "stick", NULL
10926 };
10927
994141e6 10928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10931 arg2 = (int) SWIG_AsInt(obj1);
10932 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 (arg1)->SetJoystick(arg2);
10936
10937 wxPyEndAllowThreads(__tstate);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 }
10940 Py_INCREF(Py_None); resultobj = Py_None;
10941 return resultobj;
10942 fail:
10943 return NULL;
10944}
10945
10946
10947static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10948 PyObject *resultobj;
10949 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10950 int arg2 ;
10951 PyObject * obj0 = 0 ;
994141e6 10952 PyObject * obj1 = 0 ;
d14a1e28
RD
10953 char *kwnames[] = {
10954 (char *) "self",(char *) "state", NULL
10955 };
10956
994141e6 10957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10960 arg2 = (int) SWIG_AsInt(obj1);
10961 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10962 {
10963 PyThreadState* __tstate = wxPyBeginAllowThreads();
10964 (arg1)->SetButtonState(arg2);
10965
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 Py_INCREF(Py_None); resultobj = Py_None;
10970 return resultobj;
10971 fail:
10972 return NULL;
10973}
10974
10975
10976static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10977 PyObject *resultobj;
10978 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10979 int arg2 ;
10980 PyObject * obj0 = 0 ;
994141e6 10981 PyObject * obj1 = 0 ;
d14a1e28
RD
10982 char *kwnames[] = {
10983 (char *) "self",(char *) "change", NULL
10984 };
10985
994141e6 10986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
10987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10989 arg2 = (int) SWIG_AsInt(obj1);
10990 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
10991 {
10992 PyThreadState* __tstate = wxPyBeginAllowThreads();
10993 (arg1)->SetButtonChange(arg2);
10994
10995 wxPyEndAllowThreads(__tstate);
10996 if (PyErr_Occurred()) SWIG_fail;
10997 }
10998 Py_INCREF(Py_None); resultobj = Py_None;
10999 return resultobj;
11000 fail:
11001 return NULL;
11002}
11003
11004
11005static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11006 PyObject *resultobj;
11007 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11008 wxPoint *arg2 = 0 ;
11009 wxPoint temp2 ;
11010 PyObject * obj0 = 0 ;
11011 PyObject * obj1 = 0 ;
11012 char *kwnames[] = {
11013 (char *) "self",(char *) "pos", NULL
11014 };
11015
11016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11019 {
11020 arg2 = &temp2;
11021 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11022 }
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 (arg1)->SetPosition((wxPoint const &)*arg2);
11026
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 Py_INCREF(Py_None); resultobj = Py_None;
11031 return resultobj;
11032 fail:
11033 return NULL;
11034}
11035
11036
11037static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11038 PyObject *resultobj;
11039 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11040 int arg2 ;
11041 PyObject * obj0 = 0 ;
994141e6 11042 PyObject * obj1 = 0 ;
d14a1e28
RD
11043 char *kwnames[] = {
11044 (char *) "self",(char *) "zPos", NULL
11045 };
11046
994141e6 11047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11050 arg2 = (int) SWIG_AsInt(obj1);
11051 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 (arg1)->SetZPosition(arg2);
11055
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 Py_INCREF(Py_None); resultobj = Py_None;
11060 return resultobj;
11061 fail:
11062 return NULL;
11063}
11064
11065
11066static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11067 PyObject *resultobj;
11068 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11069 bool result;
11070 PyObject * obj0 = 0 ;
11071 char *kwnames[] = {
11072 (char *) "self", NULL
11073 };
11074
11075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
15afbcd0
RD
11076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
11080 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11081
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
4d5c3d91 11085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11086 return resultobj;
11087 fail:
11088 return NULL;
11089}
11090
11091
11092static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11093 PyObject *resultobj;
11094 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11095 bool result;
11096 PyObject * obj0 = 0 ;
11097 char *kwnames[] = {
11098 (char *) "self", NULL
11099 };
11100
11101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
15afbcd0
RD
11102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11107
11108 wxPyEndAllowThreads(__tstate);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
4d5c3d91 11111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11112 return resultobj;
11113 fail:
11114 return NULL;
11115}
11116
11117
11118static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11119 PyObject *resultobj;
11120 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11121 bool result;
11122 PyObject * obj0 = 0 ;
11123 char *kwnames[] = {
11124 (char *) "self", NULL
11125 };
11126
11127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
15afbcd0
RD
11128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11133
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) SWIG_fail;
11136 }
4d5c3d91 11137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11138 return resultobj;
11139 fail:
11140 return NULL;
11141}
11142
11143
11144static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11145 PyObject *resultobj;
11146 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11147 int arg2 = (int) wxJOY_BUTTON_ANY ;
11148 bool result;
11149 PyObject * obj0 = 0 ;
994141e6 11150 PyObject * obj1 = 0 ;
d14a1e28
RD
11151 char *kwnames[] = {
11152 (char *) "self",(char *) "but", NULL
11153 };
11154
994141e6 11155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 11158 if (obj1) {
15afbcd0
RD
11159 arg2 = (int) SWIG_AsInt(obj1);
11160 if (PyErr_Occurred()) SWIG_fail;
994141e6 11161 }
d14a1e28
RD
11162 {
11163 PyThreadState* __tstate = wxPyBeginAllowThreads();
11164 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11165
11166 wxPyEndAllowThreads(__tstate);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
4d5c3d91 11169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11170 return resultobj;
11171 fail:
11172 return NULL;
11173}
11174
11175
11176static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11177 PyObject *resultobj;
11178 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11179 int arg2 = (int) wxJOY_BUTTON_ANY ;
11180 bool result;
11181 PyObject * obj0 = 0 ;
994141e6 11182 PyObject * obj1 = 0 ;
d14a1e28
RD
11183 char *kwnames[] = {
11184 (char *) "self",(char *) "but", NULL
11185 };
11186
994141e6 11187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 11190 if (obj1) {
15afbcd0
RD
11191 arg2 = (int) SWIG_AsInt(obj1);
11192 if (PyErr_Occurred()) SWIG_fail;
994141e6 11193 }
d14a1e28
RD
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11197
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
4d5c3d91 11201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11202 return resultobj;
11203 fail:
11204 return NULL;
11205}
11206
11207
11208static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11209 PyObject *resultobj;
11210 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11211 int arg2 = (int) wxJOY_BUTTON_ANY ;
11212 bool result;
11213 PyObject * obj0 = 0 ;
994141e6 11214 PyObject * obj1 = 0 ;
d14a1e28
RD
11215 char *kwnames[] = {
11216 (char *) "self",(char *) "but", NULL
11217 };
11218
994141e6 11219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 11222 if (obj1) {
15afbcd0
RD
11223 arg2 = (int) SWIG_AsInt(obj1);
11224 if (PyErr_Occurred()) SWIG_fail;
994141e6 11225 }
d14a1e28
RD
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
11228 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11229
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
4d5c3d91 11233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11234 return resultobj;
11235 fail:
11236 return NULL;
11237}
11238
11239
11240static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11241 PyObject *obj;
11242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11243 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11244 Py_INCREF(obj);
11245 return Py_BuildValue((char *)"");
11246}
4d5c3d91
RD
11247static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) {
11248 PyObject *resultobj;
11249 wxSound *result;
11250
11251 if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail;
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
11254 result = (wxSound *)new wxSound();
11255
11256 wxPyEndAllowThreads(__tstate);
11257 if (PyErr_Occurred()) SWIG_fail;
11258 }
15afbcd0 11259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
4d5c3d91
RD
11260 return resultobj;
11261 fail:
11262 return NULL;
11263}
11264
11265
11266static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
11267 PyObject *resultobj;
11268 wxString *arg1 = 0 ;
4d5c3d91
RD
11269 bool arg2 = (bool) false ;
11270 wxSound *result;
e811c8ce 11271 bool temp1 = False ;
d14a1e28
RD
11272 PyObject * obj0 = 0 ;
11273 PyObject * obj1 = 0 ;
d14a1e28 11274
4d5c3d91 11275 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail;
d14a1e28
RD
11276 {
11277 arg1 = wxString_in_helper(obj0);
11278 if (arg1 == NULL) SWIG_fail;
e811c8ce 11279 temp1 = True;
d14a1e28
RD
11280 }
11281 if (obj1) {
15afbcd0
RD
11282 arg2 = (bool) SWIG_AsBool(obj1);
11283 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11284 }
11285 {
11286 PyThreadState* __tstate = wxPyBeginAllowThreads();
4d5c3d91 11287 result = (wxSound *)new wxSound((wxString const &)*arg1,arg2);
d14a1e28
RD
11288
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
15afbcd0 11292 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
d14a1e28
RD
11293 {
11294 if (temp1)
11295 delete arg1;
11296 }
11297 return resultobj;
11298 fail:
11299 {
11300 if (temp1)
11301 delete arg1;
11302 }
11303 return NULL;
11304}
11305
11306
4d5c3d91 11307static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) {
d14a1e28 11308 PyObject *resultobj;
4d5c3d91
RD
11309 int arg1 ;
11310 wxByte *arg2 = (wxByte *) 0 ;
11311 wxSound *result;
d14a1e28 11312 PyObject * obj0 = 0 ;
4d5c3d91 11313 PyObject * obj1 = 0 ;
d14a1e28 11314
4d5c3d91 11315 if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail;
15afbcd0
RD
11316 arg1 = (int) SWIG_AsInt(obj0);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte,
11319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
4d5c3d91 11322 result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2);
d14a1e28
RD
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
15afbcd0 11327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
d14a1e28
RD
11328 return resultobj;
11329 fail:
4d5c3d91
RD
11330 return NULL;
11331}
11332
11333
11334static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) {
11335 int argc;
11336 PyObject *argv[3];
11337 int ii;
11338
11339 argc = PyObject_Length(args);
11340 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11341 argv[ii] = PyTuple_GetItem(args,ii);
d14a1e28 11342 }
4d5c3d91
RD
11343 if (argc == 0) {
11344 return _wrap_new_Sound__SWIG_0(self,args);
11345 }
11346 if ((argc >= 1) && (argc <= 2)) {
11347 int _v;
11348 {
11349 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11350 }
11351 if (_v) {
11352 if (argc <= 1) {
11353 return _wrap_new_Sound__SWIG_1(self,args);
11354 }
15afbcd0 11355 _v = SWIG_CheckBool(argv[1]);
4d5c3d91
RD
11356 if (_v) {
11357 return _wrap_new_Sound__SWIG_1(self,args);
11358 }
11359 }
11360 }
11361 if (argc == 2) {
11362 int _v;
15afbcd0 11363 _v = SWIG_CheckInt(argv[0]);
4d5c3d91
RD
11364 if (_v) {
11365 {
11366 void *ptr;
15afbcd0 11367 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
4d5c3d91
RD
11368 _v = 0;
11369 PyErr_Clear();
11370 } else {
11371 _v = 1;
11372 }
11373 }
11374 if (_v) {
11375 return _wrap_new_Sound__SWIG_2(self,args);
11376 }
11377 }
11378 }
11379
11380 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'");
d14a1e28
RD
11381 return NULL;
11382}
11383
11384
4d5c3d91 11385static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 11386 PyObject *resultobj;
4d5c3d91 11387 wxSound *arg1 = (wxSound *) 0 ;
d14a1e28
RD
11388 PyObject * obj0 = 0 ;
11389 char *kwnames[] = {
11390 (char *) "self", NULL
11391 };
11392
4d5c3d91 11393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
15afbcd0
RD
11394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 delete arg1;
11399
11400 wxPyEndAllowThreads(__tstate);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 }
11403 Py_INCREF(Py_None); resultobj = Py_None;
11404 return resultobj;
11405 fail:
11406 return NULL;
11407}
11408
11409
4d5c3d91 11410static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28 11411 PyObject *resultobj;
4d5c3d91
RD
11412 wxSound *arg1 = (wxSound *) 0 ;
11413 wxString *arg2 = 0 ;
11414 bool arg3 = (bool) false ;
d14a1e28 11415 bool result;
4d5c3d91 11416 bool temp2 = False ;
d14a1e28 11417 PyObject * obj0 = 0 ;
4d5c3d91
RD
11418 PyObject * obj1 = 0 ;
11419 PyObject * obj2 = 0 ;
d14a1e28 11420
4d5c3d91 11421 if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4d5c3d91
RD
11424 {
11425 arg2 = wxString_in_helper(obj1);
11426 if (arg2 == NULL) SWIG_fail;
11427 temp2 = True;
11428 }
11429 if (obj2) {
15afbcd0
RD
11430 arg3 = (bool) SWIG_AsBool(obj2);
11431 if (PyErr_Occurred()) SWIG_fail;
4d5c3d91 11432 }
d14a1e28
RD
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
4d5c3d91 11435 result = (bool)(arg1)->Create((wxString const &)*arg2,arg3);
d14a1e28
RD
11436
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
4d5c3d91
RD
11440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11441 {
11442 if (temp2)
11443 delete arg2;
11444 }
d14a1e28
RD
11445 return resultobj;
11446 fail:
4d5c3d91
RD
11447 {
11448 if (temp2)
11449 delete arg2;
11450 }
d14a1e28
RD
11451 return NULL;
11452}
11453
11454
4d5c3d91 11455static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28 11456 PyObject *resultobj;
4d5c3d91
RD
11457 wxSound *arg1 = (wxSound *) 0 ;
11458 int arg2 ;
11459 wxByte *arg3 = (wxByte *) 0 ;
d14a1e28
RD
11460 bool result;
11461 PyObject * obj0 = 0 ;
11462 PyObject * obj1 = 0 ;
11463 PyObject * obj2 = 0 ;
4d5c3d91
RD
11464
11465 if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11468 arg2 = (int) SWIG_AsInt(obj1);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte,
11471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4d5c3d91
RD
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11480 return resultobj;
11481 fail:
11482 return NULL;
11483}
11484
11485
11486static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) {
11487 int argc;
11488 PyObject *argv[4];
11489 int ii;
11490
11491 argc = PyObject_Length(args);
11492 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11493 argv[ii] = PyTuple_GetItem(args,ii);
11494 }
11495 if ((argc >= 2) && (argc <= 3)) {
11496 int _v;
11497 {
11498 void *ptr;
15afbcd0 11499 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
4d5c3d91
RD
11500 _v = 0;
11501 PyErr_Clear();
11502 } else {
11503 _v = 1;
11504 }
11505 }
11506 if (_v) {
11507 {
11508 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11509 }
11510 if (_v) {
11511 if (argc <= 2) {
11512 return _wrap_Sound_Create__SWIG_0(self,args);
11513 }
15afbcd0 11514 _v = SWIG_CheckBool(argv[2]);
4d5c3d91
RD
11515 if (_v) {
11516 return _wrap_Sound_Create__SWIG_0(self,args);
11517 }
11518 }
11519 }
11520 }
11521 if (argc == 3) {
11522 int _v;
11523 {
11524 void *ptr;
15afbcd0 11525 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
4d5c3d91
RD
11526 _v = 0;
11527 PyErr_Clear();
11528 } else {
11529 _v = 1;
11530 }
11531 }
11532 if (_v) {
15afbcd0 11533 _v = SWIG_CheckInt(argv[1]);
4d5c3d91
RD
11534 if (_v) {
11535 {
11536 void *ptr;
15afbcd0 11537 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
4d5c3d91
RD
11538 _v = 0;
11539 PyErr_Clear();
11540 } else {
11541 _v = 1;
11542 }
11543 }
11544 if (_v) {
11545 return _wrap_Sound_Create__SWIG_1(self,args);
11546 }
11547 }
11548 }
11549 }
11550
11551 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'");
11552 return NULL;
11553}
11554
11555
11556static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj;
11558 wxSound *arg1 = (wxSound *) 0 ;
11559 bool result;
11560 PyObject * obj0 = 0 ;
d14a1e28 11561 char *kwnames[] = {
4d5c3d91 11562 (char *) "self", NULL
d14a1e28
RD
11563 };
11564
4d5c3d91 11565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
11566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4d5c3d91
RD
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 result = (bool)(arg1)->IsOk();
11571
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11576 return resultobj;
11577 fail:
11578 return NULL;
11579}
11580
11581
11582static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) {
11583 PyObject *resultobj;
11584 wxSound *arg1 = (wxSound *) 0 ;
11585 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11586 bool result;
11587 PyObject * obj0 = 0 ;
11588 PyObject * obj1 = 0 ;
11589
11590 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail;
15afbcd0
RD
11591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 11593 if (obj1) {
15afbcd0
RD
11594 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11595 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 11596 }
4d5c3d91
RD
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 result = (bool)((wxSound const *)arg1)->Play(arg2);
11600
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
11604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11605 return resultobj;
11606 fail:
11607 return NULL;
11608}
11609
11610
11611static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) {
11612 PyObject *resultobj;
11613 wxString *arg1 = 0 ;
11614 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11615 bool result;
11616 bool temp1 = False ;
11617 PyObject * obj0 = 0 ;
11618 PyObject * obj1 = 0 ;
11619
11620 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail;
11621 {
11622 arg1 = wxString_in_helper(obj0);
11623 if (arg1 == NULL) SWIG_fail;
11624 temp1 = True;
11625 }
11626 if (obj1) {
15afbcd0
RD
11627 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11628 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
11629 }
11630 {
11631 PyThreadState* __tstate = wxPyBeginAllowThreads();
4d5c3d91 11632 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
d14a1e28
RD
11633
11634 wxPyEndAllowThreads(__tstate);
11635 if (PyErr_Occurred()) SWIG_fail;
11636 }
4d5c3d91
RD
11637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11638 {
11639 if (temp1)
11640 delete arg1;
11641 }
d14a1e28
RD
11642 return resultobj;
11643 fail:
4d5c3d91
RD
11644 {
11645 if (temp1)
11646 delete arg1;
11647 }
d14a1e28
RD
11648 return NULL;
11649}
11650
11651
4d5c3d91
RD
11652static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11653 PyObject *resultobj;
11654 char *kwnames[] = {
11655 NULL
11656 };
11657
11658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11659 {
11660 PyThreadState* __tstate = wxPyBeginAllowThreads();
11661 wxSound::Stop();
11662
11663 wxPyEndAllowThreads(__tstate);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 Py_INCREF(Py_None); resultobj = Py_None;
11667 return resultobj;
11668 fail:
11669 return NULL;
11670}
11671
11672
11673static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
d14a1e28
RD
11674 PyObject *obj;
11675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4d5c3d91 11676 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
d14a1e28
RD
11677 Py_INCREF(obj);
11678 return Py_BuildValue((char *)"");
11679}
11680static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11681 PyObject *resultobj;
11682 wxString *arg1 = 0 ;
11683 wxString *arg2 = 0 ;
11684 wxString *arg3 = 0 ;
11685 wxString *arg4 = 0 ;
11686 wxFileTypeInfo *result;
e811c8ce
RD
11687 bool temp1 = False ;
11688 bool temp2 = False ;
11689 bool temp3 = False ;
11690 bool temp4 = False ;
d14a1e28
RD
11691 PyObject * obj0 = 0 ;
11692 PyObject * obj1 = 0 ;
11693 PyObject * obj2 = 0 ;
11694 PyObject * obj3 = 0 ;
11695 char *kwnames[] = {
11696 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11700 {
11701 arg1 = wxString_in_helper(obj0);
11702 if (arg1 == NULL) SWIG_fail;
e811c8ce 11703 temp1 = True;
d14a1e28
RD
11704 }
11705 {
11706 arg2 = wxString_in_helper(obj1);
11707 if (arg2 == NULL) SWIG_fail;
e811c8ce 11708 temp2 = True;
d14a1e28
RD
11709 }
11710 {
11711 arg3 = wxString_in_helper(obj2);
11712 if (arg3 == NULL) SWIG_fail;
e811c8ce 11713 temp3 = True;
d14a1e28
RD
11714 }
11715 {
11716 arg4 = wxString_in_helper(obj3);
11717 if (arg4 == NULL) SWIG_fail;
e811c8ce 11718 temp4 = True;
d14a1e28
RD
11719 }
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11723
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
15afbcd0 11727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
d14a1e28
RD
11728 {
11729 if (temp1)
11730 delete arg1;
11731 }
11732 {
11733 if (temp2)
11734 delete arg2;
11735 }
11736 {
11737 if (temp3)
11738 delete arg3;
11739 }
11740 {
11741 if (temp4)
11742 delete arg4;
11743 }
11744 return resultobj;
11745 fail:
11746 {
11747 if (temp1)
11748 delete arg1;
11749 }
11750 {
11751 if (temp2)
11752 delete arg2;
11753 }
11754 {
11755 if (temp3)
11756 delete arg3;
11757 }
11758 {
11759 if (temp4)
11760 delete arg4;
11761 }
11762 return NULL;
11763}
11764
11765
11766static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11767 PyObject *resultobj;
11768 wxArrayString *arg1 = 0 ;
11769 wxFileTypeInfo *result;
3adfb63b 11770 bool temp1 = False ;
d14a1e28
RD
11771 PyObject * obj0 = 0 ;
11772 char *kwnames[] = {
11773 (char *) "sArray", NULL
11774 };
11775
11776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11777 {
11778 if (! PySequence_Check(obj0)) {
11779 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11780 SWIG_fail;
11781 }
11782 arg1 = new wxArrayString;
3adfb63b 11783 temp1 = True;
d14a1e28
RD
11784 int i, len=PySequence_Length(obj0);
11785 for (i=0; i<len; i++) {
11786 PyObject* item = PySequence_GetItem(obj0, i);
11787#if wxUSE_UNICODE
11788 PyObject* str = PyObject_Unicode(item);
11789#else
11790 PyObject* str = PyObject_Str(item);
11791#endif
11792 arg1->Add(Py2wxString(str));
11793 Py_DECREF(item);
11794 Py_DECREF(str);
11795 }
11796 }
11797 {
11798 PyThreadState* __tstate = wxPyBeginAllowThreads();
11799 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11800
11801 wxPyEndAllowThreads(__tstate);
11802 if (PyErr_Occurred()) SWIG_fail;
11803 }
15afbcd0 11804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
d14a1e28 11805 {
3adfb63b 11806 if (temp1) delete arg1;
d14a1e28
RD
11807 }
11808 return resultobj;
11809 fail:
11810 {
3adfb63b 11811 if (temp1) delete arg1;
d14a1e28
RD
11812 }
11813 return NULL;
11814}
11815
11816
11817static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11818 PyObject *resultobj;
11819 wxFileTypeInfo *result;
11820 char *kwnames[] = {
11821 NULL
11822 };
11823
11824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11825 {
11826 PyThreadState* __tstate = wxPyBeginAllowThreads();
11827 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11828
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
15afbcd0 11832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
d14a1e28
RD
11833 return resultobj;
11834 fail:
11835 return NULL;
11836}
11837
11838
11839static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11840 PyObject *resultobj;
11841 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11842 bool result;
11843 PyObject * obj0 = 0 ;
11844 char *kwnames[] = {
11845 (char *) "self", NULL
11846 };
11847
11848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
15afbcd0
RD
11849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11854
11855 wxPyEndAllowThreads(__tstate);
11856 if (PyErr_Occurred()) SWIG_fail;
11857 }
4d5c3d91 11858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11859 return resultobj;
11860 fail:
11861 return NULL;
11862}
11863
11864
11865static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj;
11867 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11868 wxString *arg2 = 0 ;
11869 int arg3 = (int) 0 ;
e811c8ce 11870 bool temp2 = False ;
d14a1e28
RD
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
994141e6 11873 PyObject * obj2 = 0 ;
d14a1e28
RD
11874 char *kwnames[] = {
11875 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
11876 };
11877
994141e6 11878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
11879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11881 {
11882 arg2 = wxString_in_helper(obj1);
11883 if (arg2 == NULL) SWIG_fail;
e811c8ce 11884 temp2 = True;
d14a1e28 11885 }
994141e6 11886 if (obj2) {
15afbcd0
RD
11887 arg3 = (int) SWIG_AsInt(obj2);
11888 if (PyErr_Occurred()) SWIG_fail;
994141e6 11889 }
d14a1e28
RD
11890 {
11891 PyThreadState* __tstate = wxPyBeginAllowThreads();
11892 (arg1)->SetIcon((wxString const &)*arg2,arg3);
11893
11894 wxPyEndAllowThreads(__tstate);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 }
11897 Py_INCREF(Py_None); resultobj = Py_None;
11898 {
11899 if (temp2)
11900 delete arg2;
11901 }
11902 return resultobj;
11903 fail:
11904 {
11905 if (temp2)
11906 delete arg2;
11907 }
11908 return NULL;
11909}
11910
11911
11912static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
11913 PyObject *resultobj;
11914 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11915 wxString *arg2 = 0 ;
e811c8ce 11916 bool temp2 = False ;
d14a1e28
RD
11917 PyObject * obj0 = 0 ;
11918 PyObject * obj1 = 0 ;
11919 char *kwnames[] = {
11920 (char *) "self",(char *) "shortDesc", NULL
11921 };
11922
11923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
11924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11926 {
11927 arg2 = wxString_in_helper(obj1);
11928 if (arg2 == NULL) SWIG_fail;
e811c8ce 11929 temp2 = True;
d14a1e28
RD
11930 }
11931 {
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 (arg1)->SetShortDesc((wxString const &)*arg2);
11934
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 Py_INCREF(Py_None); resultobj = Py_None;
11939 {
11940 if (temp2)
11941 delete arg2;
11942 }
11943 return resultobj;
11944 fail:
11945 {
11946 if (temp2)
11947 delete arg2;
11948 }
11949 return NULL;
11950}
11951
11952
11953static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
11954 PyObject *resultobj;
11955 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11956 wxString *result;
11957 PyObject * obj0 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
15afbcd0
RD
11963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
11965 {
11966 PyThreadState* __tstate = wxPyBeginAllowThreads();
11967 {
11968 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
11969 result = (wxString *) &_result_ref;
11970 }
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
cc6dd355
RD
11975 {
11976#if wxUSE_UNICODE
11977 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11978#else
11979 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11980#endif
11981 }
d14a1e28
RD
11982 return resultobj;
11983 fail:
11984 return NULL;
11985}
11986
11987
11988static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11989 PyObject *resultobj;
11990 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11991 wxString *result;
11992 PyObject * obj0 = 0 ;
11993 char *kwnames[] = {
11994 (char *) "self", NULL
11995 };
11996
11997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
15afbcd0
RD
11998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 {
12003 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12004 result = (wxString *) &_result_ref;
12005 }
12006
12007 wxPyEndAllowThreads(__tstate);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 }
cc6dd355
RD
12010 {
12011#if wxUSE_UNICODE
12012 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12013#else
12014 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12015#endif
12016 }
d14a1e28
RD
12017 return resultobj;
12018 fail:
12019 return NULL;
12020}
12021
12022
12023static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12024 PyObject *resultobj;
12025 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12026 wxString *result;
12027 PyObject * obj0 = 0 ;
12028 char *kwnames[] = {
12029 (char *) "self", NULL
12030 };
12031
12032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
15afbcd0
RD
12033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 {
12038 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12039 result = (wxString *) &_result_ref;
12040 }
12041
12042 wxPyEndAllowThreads(__tstate);
12043 if (PyErr_Occurred()) SWIG_fail;
12044 }
cc6dd355
RD
12045 {
12046#if wxUSE_UNICODE
12047 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12048#else
12049 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12050#endif
12051 }
d14a1e28
RD
12052 return resultobj;
12053 fail:
12054 return NULL;
12055}
12056
12057
12058static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12059 PyObject *resultobj;
12060 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12061 wxString *result;
12062 PyObject * obj0 = 0 ;
12063 char *kwnames[] = {
12064 (char *) "self", NULL
12065 };
12066
12067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
15afbcd0
RD
12068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12070 {
12071 PyThreadState* __tstate = wxPyBeginAllowThreads();
12072 {
12073 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12074 result = (wxString *) &_result_ref;
12075 }
12076
12077 wxPyEndAllowThreads(__tstate);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
cc6dd355
RD
12080 {
12081#if wxUSE_UNICODE
12082 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12083#else
12084 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12085#endif
12086 }
d14a1e28
RD
12087 return resultobj;
12088 fail:
12089 return NULL;
12090}
12091
12092
12093static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12096 wxString *result;
12097 PyObject * obj0 = 0 ;
12098 char *kwnames[] = {
12099 (char *) "self", NULL
12100 };
12101
12102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
15afbcd0
RD
12103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 {
12108 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12109 result = (wxString *) &_result_ref;
12110 }
12111
12112 wxPyEndAllowThreads(__tstate);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
cc6dd355
RD
12115 {
12116#if wxUSE_UNICODE
12117 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12118#else
12119 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12120#endif
12121 }
d14a1e28
RD
12122 return resultobj;
12123 fail:
12124 return NULL;
12125}
12126
12127
12128static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12129 PyObject *resultobj;
12130 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12131 wxArrayString *result;
12132 PyObject * obj0 = 0 ;
12133 char *kwnames[] = {
12134 (char *) "self", NULL
12135 };
12136
12137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
15afbcd0
RD
12138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 {
12143 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12144 result = (wxArrayString *) &_result_ref;
12145 }
12146
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 {
12151 resultobj = wxArrayString2PyList_helper(*result);
12152 }
12153 return resultobj;
12154 fail:
12155 return NULL;
12156}
12157
12158
12159static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12160 PyObject *resultobj;
12161 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12162 int result;
12163 PyObject * obj0 = 0 ;
12164 char *kwnames[] = {
12165 (char *) "self", NULL
12166 };
12167
12168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
15afbcd0
RD
12169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12171 {
12172 PyThreadState* __tstate = wxPyBeginAllowThreads();
12173 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12174
12175 wxPyEndAllowThreads(__tstate);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 }
15afbcd0 12178 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
12179 return resultobj;
12180 fail:
12181 return NULL;
12182}
12183
12184
12185static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12186 PyObject *resultobj;
12187 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12188 wxString *result;
12189 PyObject * obj0 = 0 ;
12190 char *kwnames[] = {
12191 (char *) "self", NULL
12192 };
12193
12194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
15afbcd0
RD
12195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12197 {
12198 PyThreadState* __tstate = wxPyBeginAllowThreads();
12199 {
12200 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12201 result = (wxString *) &_result_ref;
12202 }
12203
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
cc6dd355
RD
12207 {
12208#if wxUSE_UNICODE
12209 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12210#else
12211 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12212#endif
12213 }
d14a1e28
RD
12214 return resultobj;
12215 fail:
12216 return NULL;
12217}
12218
12219
12220static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12221 PyObject *resultobj;
12222 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12223 int result;
12224 PyObject * obj0 = 0 ;
12225 char *kwnames[] = {
12226 (char *) "self", NULL
12227 };
12228
12229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
15afbcd0
RD
12230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12235
12236 wxPyEndAllowThreads(__tstate);
12237 if (PyErr_Occurred()) SWIG_fail;
12238 }
15afbcd0 12239 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
12240 return resultobj;
12241 fail:
12242 return NULL;
12243}
12244
12245
12246static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12247 PyObject *obj;
12248 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12249 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12250 Py_INCREF(obj);
12251 return Py_BuildValue((char *)"");
12252}
12253static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12254 PyObject *resultobj;
12255 wxFileTypeInfo *arg1 = 0 ;
12256 wxFileType *result;
12257 PyObject * obj0 = 0 ;
12258 char *kwnames[] = {
12259 (char *) "ftInfo", NULL
12260 };
12261
12262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
15afbcd0
RD
12263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12264 SWIG_POINTER_EXCEPTION | 0)) == -1)
12265 SWIG_fail;
d14a1e28 12266 if (arg1 == NULL) {
15afbcd0
RD
12267 PyErr_SetString(PyExc_TypeError,"null reference");
12268 SWIG_fail;
d14a1e28
RD
12269 }
12270 {
12271 PyThreadState* __tstate = wxPyBeginAllowThreads();
12272 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12273
12274 wxPyEndAllowThreads(__tstate);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 }
15afbcd0 12277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
d14a1e28
RD
12278 return resultobj;
12279 fail:
12280 return NULL;
12281}
12282
12283
12284static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12285 PyObject *resultobj;
12286 wxFileType *arg1 = (wxFileType *) 0 ;
12287 PyObject * obj0 = 0 ;
12288 char *kwnames[] = {
12289 (char *) "self", NULL
12290 };
12291
12292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
15afbcd0
RD
12293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12295 {
12296 PyThreadState* __tstate = wxPyBeginAllowThreads();
12297 delete arg1;
12298
12299 wxPyEndAllowThreads(__tstate);
12300 if (PyErr_Occurred()) SWIG_fail;
12301 }
12302 Py_INCREF(Py_None); resultobj = Py_None;
12303 return resultobj;
12304 fail:
12305 return NULL;
12306}
12307
12308
12309static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12310 PyObject *resultobj;
12311 wxFileType *arg1 = (wxFileType *) 0 ;
12312 PyObject *result;
12313 PyObject * obj0 = 0 ;
12314 char *kwnames[] = {
12315 (char *) "self", NULL
12316 };
12317
12318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
15afbcd0
RD
12319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12321 {
12322 PyThreadState* __tstate = wxPyBeginAllowThreads();
12323 result = (PyObject *)wxFileType_GetMimeType(arg1);
12324
12325 wxPyEndAllowThreads(__tstate);
12326 if (PyErr_Occurred()) SWIG_fail;
12327 }
12328 resultobj = result;
12329 return resultobj;
12330 fail:
12331 return NULL;
12332}
12333
12334
12335static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12336 PyObject *resultobj;
12337 wxFileType *arg1 = (wxFileType *) 0 ;
12338 PyObject *result;
12339 PyObject * obj0 = 0 ;
12340 char *kwnames[] = {
12341 (char *) "self", NULL
12342 };
12343
12344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
15afbcd0
RD
12345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12350
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 resultobj = result;
12355 return resultobj;
12356 fail:
12357 return NULL;
12358}
12359
12360
12361static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12362 PyObject *resultobj;
12363 wxFileType *arg1 = (wxFileType *) 0 ;
12364 PyObject *result;
12365 PyObject * obj0 = 0 ;
12366 char *kwnames[] = {
12367 (char *) "self", NULL
12368 };
12369
12370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
15afbcd0
RD
12371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12373 {
12374 PyThreadState* __tstate = wxPyBeginAllowThreads();
12375 result = (PyObject *)wxFileType_GetExtensions(arg1);
12376
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 resultobj = result;
12381 return resultobj;
12382 fail:
12383 return NULL;
12384}
12385
12386
12387static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12388 PyObject *resultobj;
12389 wxFileType *arg1 = (wxFileType *) 0 ;
12390 wxIcon *result;
12391 PyObject * obj0 = 0 ;
12392 char *kwnames[] = {
12393 (char *) "self", NULL
12394 };
12395
12396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
15afbcd0
RD
12397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 result = (wxIcon *)wxFileType_GetIcon(arg1);
12402
12403 wxPyEndAllowThreads(__tstate);
12404 if (PyErr_Occurred()) SWIG_fail;
12405 }
15afbcd0 12406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
12407 return resultobj;
12408 fail:
12409 return NULL;
12410}
12411
12412
12413static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12414 PyObject *resultobj;
12415 wxFileType *arg1 = (wxFileType *) 0 ;
12416 PyObject *result;
12417 PyObject * obj0 = 0 ;
12418 char *kwnames[] = {
12419 (char *) "self", NULL
12420 };
12421
12422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
15afbcd0
RD
12423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 resultobj = result;
12433 return resultobj;
12434 fail:
12435 return NULL;
12436}
12437
12438
12439static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12440 PyObject *resultobj;
12441 wxFileType *arg1 = (wxFileType *) 0 ;
12442 PyObject *result;
12443 PyObject * obj0 = 0 ;
12444 char *kwnames[] = {
12445 (char *) "self", NULL
12446 };
12447
12448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
15afbcd0
RD
12449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12451 {
12452 PyThreadState* __tstate = wxPyBeginAllowThreads();
12453 result = (PyObject *)wxFileType_GetDescription(arg1);
12454
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 resultobj = result;
12459 return resultobj;
12460 fail:
12461 return NULL;
12462}
12463
12464
12465static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj;
12467 wxFileType *arg1 = (wxFileType *) 0 ;
12468 wxString *arg2 = 0 ;
12469 wxString const &arg3_defvalue = wxPyEmptyString ;
12470 wxString *arg3 = (wxString *) &arg3_defvalue ;
12471 PyObject *result;
e811c8ce
RD
12472 bool temp2 = False ;
12473 bool temp3 = False ;
d14a1e28
RD
12474 PyObject * obj0 = 0 ;
12475 PyObject * obj1 = 0 ;
12476 PyObject * obj2 = 0 ;
12477 char *kwnames[] = {
12478 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12479 };
12480
12481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12484 {
12485 arg2 = wxString_in_helper(obj1);
12486 if (arg2 == NULL) SWIG_fail;
e811c8ce 12487 temp2 = True;
d14a1e28
RD
12488 }
12489 if (obj2) {
12490 {
12491 arg3 = wxString_in_helper(obj2);
12492 if (arg3 == NULL) SWIG_fail;
e811c8ce 12493 temp3 = True;
d14a1e28
RD
12494 }
12495 }
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 resultobj = result;
12504 {
12505 if (temp2)
12506 delete arg2;
12507 }
12508 {
12509 if (temp3)
12510 delete arg3;
12511 }
12512 return resultobj;
12513 fail:
12514 {
12515 if (temp2)
12516 delete arg2;
12517 }
12518 {
12519 if (temp3)
12520 delete arg3;
12521 }
12522 return NULL;
12523}
12524
12525
12526static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12527 PyObject *resultobj;
12528 wxFileType *arg1 = (wxFileType *) 0 ;
12529 wxString *arg2 = 0 ;
12530 wxString const &arg3_defvalue = wxPyEmptyString ;
12531 wxString *arg3 = (wxString *) &arg3_defvalue ;
12532 PyObject *result;
e811c8ce
RD
12533 bool temp2 = False ;
12534 bool temp3 = False ;
d14a1e28
RD
12535 PyObject * obj0 = 0 ;
12536 PyObject * obj1 = 0 ;
12537 PyObject * obj2 = 0 ;
12538 char *kwnames[] = {
12539 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12540 };
12541
12542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12545 {
12546 arg2 = wxString_in_helper(obj1);
12547 if (arg2 == NULL) SWIG_fail;
e811c8ce 12548 temp2 = True;
d14a1e28
RD
12549 }
12550 if (obj2) {
12551 {
12552 arg3 = wxString_in_helper(obj2);
12553 if (arg3 == NULL) SWIG_fail;
e811c8ce 12554 temp3 = True;
d14a1e28
RD
12555 }
12556 }
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12560
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 resultobj = result;
12565 {
12566 if (temp2)
12567 delete arg2;
12568 }
12569 {
12570 if (temp3)
12571 delete arg3;
12572 }
12573 return resultobj;
12574 fail:
12575 {
12576 if (temp2)
12577 delete arg2;
12578 }
12579 {
12580 if (temp3)
12581 delete arg3;
12582 }
12583 return NULL;
12584}
12585
12586
12587static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12588 PyObject *resultobj;
12589 wxFileType *arg1 = (wxFileType *) 0 ;
12590 wxString *arg2 = 0 ;
12591 wxString const &arg3_defvalue = wxPyEmptyString ;
12592 wxString *arg3 = (wxString *) &arg3_defvalue ;
12593 PyObject *result;
e811c8ce
RD
12594 bool temp2 = False ;
12595 bool temp3 = False ;
d14a1e28
RD
12596 PyObject * obj0 = 0 ;
12597 PyObject * obj1 = 0 ;
12598 PyObject * obj2 = 0 ;
12599 char *kwnames[] = {
12600 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12601 };
12602
12603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12606 {
12607 arg2 = wxString_in_helper(obj1);
12608 if (arg2 == NULL) SWIG_fail;
e811c8ce 12609 temp2 = True;
d14a1e28
RD
12610 }
12611 if (obj2) {
12612 {
12613 arg3 = wxString_in_helper(obj2);
12614 if (arg3 == NULL) SWIG_fail;
e811c8ce 12615 temp3 = True;
d14a1e28
RD
12616 }
12617 }
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12621
12622 wxPyEndAllowThreads(__tstate);
12623 if (PyErr_Occurred()) SWIG_fail;
12624 }
12625 resultobj = result;
12626 {
12627 if (temp2)
12628 delete arg2;
12629 }
12630 {
12631 if (temp3)
12632 delete arg3;
12633 }
12634 return resultobj;
12635 fail:
12636 {
12637 if (temp2)
12638 delete arg2;
12639 }
12640 {
12641 if (temp3)
12642 delete arg3;
12643 }
12644 return NULL;
12645}
12646
12647
12648static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12649 PyObject *resultobj;
12650 wxFileType *arg1 = (wxFileType *) 0 ;
12651 wxString *arg2 = 0 ;
12652 wxString *arg3 = 0 ;
e811c8ce 12653 bool arg4 = (bool) True ;
d14a1e28 12654 bool result;
e811c8ce
RD
12655 bool temp2 = False ;
12656 bool temp3 = False ;
d14a1e28
RD
12657 PyObject * obj0 = 0 ;
12658 PyObject * obj1 = 0 ;
12659 PyObject * obj2 = 0 ;
12660 PyObject * obj3 = 0 ;
12661 char *kwnames[] = {
12662 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12663 };
12664
12665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
12666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12668 {
12669 arg2 = wxString_in_helper(obj1);
12670 if (arg2 == NULL) SWIG_fail;
e811c8ce 12671 temp2 = True;
d14a1e28
RD
12672 }
12673 {
12674 arg3 = wxString_in_helper(obj2);
12675 if (arg3 == NULL) SWIG_fail;
e811c8ce 12676 temp3 = True;
d14a1e28
RD
12677 }
12678 if (obj3) {
15afbcd0
RD
12679 arg4 = (bool) SWIG_AsBool(obj3);
12680 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
12681 }
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12685
12686 wxPyEndAllowThreads(__tstate);
12687 if (PyErr_Occurred()) SWIG_fail;
12688 }
4d5c3d91 12689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12690 {
12691 if (temp2)
12692 delete arg2;
12693 }
12694 {
12695 if (temp3)
12696 delete arg3;
12697 }
12698 return resultobj;
12699 fail:
12700 {
12701 if (temp2)
12702 delete arg2;
12703 }
12704 {
12705 if (temp3)
12706 delete arg3;
12707 }
12708 return NULL;
12709}
12710
12711
12712static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj;
12714 wxFileType *arg1 = (wxFileType *) 0 ;
12715 wxString const &arg2_defvalue = wxPyEmptyString ;
12716 wxString *arg2 = (wxString *) &arg2_defvalue ;
12717 int arg3 = (int) 0 ;
12718 bool result;
e811c8ce 12719 bool temp2 = False ;
d14a1e28
RD
12720 PyObject * obj0 = 0 ;
12721 PyObject * obj1 = 0 ;
994141e6 12722 PyObject * obj2 = 0 ;
d14a1e28
RD
12723 char *kwnames[] = {
12724 (char *) "self",(char *) "cmd",(char *) "index", NULL
12725 };
12726
994141e6 12727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12730 if (obj1) {
12731 {
12732 arg2 = wxString_in_helper(obj1);
12733 if (arg2 == NULL) SWIG_fail;
e811c8ce 12734 temp2 = True;
d14a1e28
RD
12735 }
12736 }
994141e6 12737 if (obj2) {
15afbcd0
RD
12738 arg3 = (int) SWIG_AsInt(obj2);
12739 if (PyErr_Occurred()) SWIG_fail;
994141e6 12740 }
d14a1e28
RD
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12744
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
4d5c3d91 12748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12749 {
12750 if (temp2)
12751 delete arg2;
12752 }
12753 return resultobj;
12754 fail:
12755 {
12756 if (temp2)
12757 delete arg2;
12758 }
12759 return NULL;
12760}
12761
12762
12763static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12764 PyObject *resultobj;
12765 wxFileType *arg1 = (wxFileType *) 0 ;
12766 bool result;
12767 PyObject * obj0 = 0 ;
12768 char *kwnames[] = {
12769 (char *) "self", NULL
12770 };
12771
12772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
15afbcd0
RD
12773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
12775 {
12776 PyThreadState* __tstate = wxPyBeginAllowThreads();
12777 result = (bool)(arg1)->Unassociate();
12778
12779 wxPyEndAllowThreads(__tstate);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 }
4d5c3d91 12782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12783 return resultobj;
12784 fail:
12785 return NULL;
12786}
12787
12788
12789static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj;
12791 wxString *arg1 = 0 ;
12792 wxString *arg2 = 0 ;
12793 wxString const &arg3_defvalue = wxPyEmptyString ;
12794 wxString *arg3 = (wxString *) &arg3_defvalue ;
12795 wxString result;
e811c8ce
RD
12796 bool temp1 = False ;
12797 bool temp2 = False ;
12798 bool temp3 = False ;
d14a1e28
RD
12799 PyObject * obj0 = 0 ;
12800 PyObject * obj1 = 0 ;
12801 PyObject * obj2 = 0 ;
12802 char *kwnames[] = {
12803 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12804 };
12805
12806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12807 {
12808 arg1 = wxString_in_helper(obj0);
12809 if (arg1 == NULL) SWIG_fail;
e811c8ce 12810 temp1 = True;
d14a1e28
RD
12811 }
12812 {
12813 arg2 = wxString_in_helper(obj1);
12814 if (arg2 == NULL) SWIG_fail;
e811c8ce 12815 temp2 = True;
d14a1e28
RD
12816 }
12817 if (obj2) {
12818 {
12819 arg3 = wxString_in_helper(obj2);
12820 if (arg3 == NULL) SWIG_fail;
e811c8ce 12821 temp3 = True;
d14a1e28
RD
12822 }
12823 }
12824 {
12825 PyThreadState* __tstate = wxPyBeginAllowThreads();
12826 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12827
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 {
12832#if wxUSE_UNICODE
12833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12834#else
12835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12836#endif
12837 }
12838 {
12839 if (temp1)
12840 delete arg1;
12841 }
12842 {
12843 if (temp2)
12844 delete arg2;
12845 }
12846 {
12847 if (temp3)
12848 delete arg3;
12849 }
12850 return resultobj;
12851 fail:
12852 {
12853 if (temp1)
12854 delete arg1;
12855 }
12856 {
12857 if (temp2)
12858 delete arg2;
12859 }
12860 {
12861 if (temp3)
12862 delete arg3;
12863 }
12864 return NULL;
12865}
12866
12867
12868static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
12869 PyObject *obj;
12870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12871 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
12872 Py_INCREF(obj);
12873 return Py_BuildValue((char *)"");
12874}
12875static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
12876 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
12877 return 1;
12878}
12879
12880
12881static PyObject *_wrap_TheMimeTypesManager_get() {
12882 PyObject *pyobj;
12883
15afbcd0 12884 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
d14a1e28
RD
12885 return pyobj;
12886}
12887
12888
12889static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
12890 PyObject *resultobj;
12891 wxString *arg1 = 0 ;
12892 wxString *arg2 = 0 ;
12893 bool result;
e811c8ce
RD
12894 bool temp1 = False ;
12895 bool temp2 = False ;
d14a1e28
RD
12896 PyObject * obj0 = 0 ;
12897 PyObject * obj1 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "mimeType",(char *) "wildcard", NULL
12900 };
12901
12902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
12903 {
12904 arg1 = wxString_in_helper(obj0);
12905 if (arg1 == NULL) SWIG_fail;
e811c8ce 12906 temp1 = True;
d14a1e28
RD
12907 }
12908 {
12909 arg2 = wxString_in_helper(obj1);
12910 if (arg2 == NULL) SWIG_fail;
e811c8ce 12911 temp2 = True;
d14a1e28
RD
12912 }
12913 {
12914 PyThreadState* __tstate = wxPyBeginAllowThreads();
12915 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
12916
12917 wxPyEndAllowThreads(__tstate);
12918 if (PyErr_Occurred()) SWIG_fail;
12919 }
4d5c3d91 12920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12921 {
12922 if (temp1)
12923 delete arg1;
12924 }
12925 {
12926 if (temp2)
12927 delete arg2;
12928 }
12929 return resultobj;
12930 fail:
12931 {
12932 if (temp1)
12933 delete arg1;
12934 }
12935 {
12936 if (temp2)
12937 delete arg2;
12938 }
12939 return NULL;
12940}
12941
12942
12943static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
12944 PyObject *resultobj;
12945 wxMimeTypesManager *result;
12946 char *kwnames[] = {
12947 NULL
12948 };
12949
12950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (wxMimeTypesManager *)new wxMimeTypesManager();
12954
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
15afbcd0 12958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
d14a1e28
RD
12959 return resultobj;
12960 fail:
12961 return NULL;
12962}
12963
12964
12965static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
12966 PyObject *resultobj;
12967 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12968 int arg2 = (int) wxMAILCAP_ALL ;
12969 wxString const &arg3_defvalue = wxPyEmptyString ;
12970 wxString *arg3 = (wxString *) &arg3_defvalue ;
e811c8ce 12971 bool temp3 = False ;
d14a1e28 12972 PyObject * obj0 = 0 ;
994141e6 12973 PyObject * obj1 = 0 ;
d14a1e28
RD
12974 PyObject * obj2 = 0 ;
12975 char *kwnames[] = {
12976 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
12977 };
12978
994141e6 12979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
12980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
12981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 12982 if (obj1) {
15afbcd0
RD
12983 arg2 = (int) SWIG_AsInt(obj1);
12984 if (PyErr_Occurred()) SWIG_fail;
994141e6 12985 }
d14a1e28
RD
12986 if (obj2) {
12987 {
12988 arg3 = wxString_in_helper(obj2);
12989 if (arg3 == NULL) SWIG_fail;
e811c8ce 12990 temp3 = True;
d14a1e28
RD
12991 }
12992 }
12993 {
12994 PyThreadState* __tstate = wxPyBeginAllowThreads();
12995 (arg1)->Initialize(arg2,(wxString const &)*arg3);
12996
12997 wxPyEndAllowThreads(__tstate);
12998 if (PyErr_Occurred()) SWIG_fail;
12999 }
13000 Py_INCREF(Py_None); resultobj = Py_None;
13001 {
13002 if (temp3)
13003 delete arg3;
13004 }
13005 return resultobj;
13006 fail:
13007 {
13008 if (temp3)
13009 delete arg3;
13010 }
13011 return NULL;
13012}
13013
13014
13015static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13016 PyObject *resultobj;
13017 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13018 PyObject * obj0 = 0 ;
13019 char *kwnames[] = {
13020 (char *) "self", NULL
13021 };
13022
13023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
15afbcd0
RD
13024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13026 {
13027 PyThreadState* __tstate = wxPyBeginAllowThreads();
13028 (arg1)->ClearData();
13029
13030 wxPyEndAllowThreads(__tstate);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 Py_INCREF(Py_None); resultobj = Py_None;
13034 return resultobj;
13035 fail:
13036 return NULL;
13037}
13038
13039
13040static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj;
13042 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13043 wxString *arg2 = 0 ;
13044 wxFileType *result;
e811c8ce 13045 bool temp2 = False ;
d14a1e28
RD
13046 PyObject * obj0 = 0 ;
13047 PyObject * obj1 = 0 ;
13048 char *kwnames[] = {
13049 (char *) "self",(char *) "ext", NULL
13050 };
13051
13052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13055 {
13056 arg2 = wxString_in_helper(obj1);
13057 if (arg2 == NULL) SWIG_fail;
e811c8ce 13058 temp2 = True;
d14a1e28
RD
13059 }
13060 {
13061 PyThreadState* __tstate = wxPyBeginAllowThreads();
13062 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13063
13064 wxPyEndAllowThreads(__tstate);
13065 if (PyErr_Occurred()) SWIG_fail;
13066 }
15afbcd0 13067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
d14a1e28
RD
13068 {
13069 if (temp2)
13070 delete arg2;
13071 }
13072 return resultobj;
13073 fail:
13074 {
13075 if (temp2)
13076 delete arg2;
13077 }
13078 return NULL;
13079}
13080
13081
13082static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13083 PyObject *resultobj;
13084 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13085 wxString *arg2 = 0 ;
13086 wxFileType *result;
e811c8ce 13087 bool temp2 = False ;
d14a1e28
RD
13088 PyObject * obj0 = 0 ;
13089 PyObject * obj1 = 0 ;
13090 char *kwnames[] = {
13091 (char *) "self",(char *) "mimeType", NULL
13092 };
13093
13094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13097 {
13098 arg2 = wxString_in_helper(obj1);
13099 if (arg2 == NULL) SWIG_fail;
e811c8ce 13100 temp2 = True;
d14a1e28
RD
13101 }
13102 {
13103 PyThreadState* __tstate = wxPyBeginAllowThreads();
13104 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13105
13106 wxPyEndAllowThreads(__tstate);
13107 if (PyErr_Occurred()) SWIG_fail;
13108 }
15afbcd0 13109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
d14a1e28
RD
13110 {
13111 if (temp2)
13112 delete arg2;
13113 }
13114 return resultobj;
13115 fail:
13116 {
13117 if (temp2)
13118 delete arg2;
13119 }
13120 return NULL;
13121}
13122
13123
13124static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13125 PyObject *resultobj;
13126 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13127 wxString *arg2 = 0 ;
e811c8ce 13128 bool arg3 = (bool) False ;
d14a1e28 13129 bool result;
e811c8ce 13130 bool temp2 = False ;
d14a1e28
RD
13131 PyObject * obj0 = 0 ;
13132 PyObject * obj1 = 0 ;
13133 PyObject * obj2 = 0 ;
13134 char *kwnames[] = {
13135 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13136 };
13137
13138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
13139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13141 {
13142 arg2 = wxString_in_helper(obj1);
13143 if (arg2 == NULL) SWIG_fail;
e811c8ce 13144 temp2 = True;
d14a1e28
RD
13145 }
13146 if (obj2) {
15afbcd0
RD
13147 arg3 = (bool) SWIG_AsBool(obj2);
13148 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
13149 }
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13153
13154 wxPyEndAllowThreads(__tstate);
13155 if (PyErr_Occurred()) SWIG_fail;
13156 }
4d5c3d91 13157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13158 {
13159 if (temp2)
13160 delete arg2;
13161 }
13162 return resultobj;
13163 fail:
13164 {
13165 if (temp2)
13166 delete arg2;
13167 }
13168 return NULL;
13169}
13170
13171
13172static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13173 PyObject *resultobj;
13174 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13175 wxString *arg2 = 0 ;
13176 bool result;
e811c8ce 13177 bool temp2 = False ;
d14a1e28
RD
13178 PyObject * obj0 = 0 ;
13179 PyObject * obj1 = 0 ;
13180 char *kwnames[] = {
13181 (char *) "self",(char *) "filename", NULL
13182 };
13183
13184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13187 {
13188 arg2 = wxString_in_helper(obj1);
13189 if (arg2 == NULL) SWIG_fail;
e811c8ce 13190 temp2 = True;
d14a1e28
RD
13191 }
13192 {
13193 PyThreadState* __tstate = wxPyBeginAllowThreads();
13194 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13195
13196 wxPyEndAllowThreads(__tstate);
13197 if (PyErr_Occurred()) SWIG_fail;
13198 }
4d5c3d91 13199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13200 {
13201 if (temp2)
13202 delete arg2;
13203 }
13204 return resultobj;
13205 fail:
13206 {
13207 if (temp2)
13208 delete arg2;
13209 }
13210 return NULL;
13211}
13212
13213
13214static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13215 PyObject *resultobj;
13216 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13217 PyObject *result;
13218 PyObject * obj0 = 0 ;
13219 char *kwnames[] = {
13220 (char *) "self", NULL
13221 };
13222
13223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
15afbcd0
RD
13224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13229
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 resultobj = result;
13234 return resultobj;
13235 fail:
13236 return NULL;
13237}
13238
13239
13240static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13241 PyObject *resultobj;
13242 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13243 wxFileTypeInfo *arg2 = 0 ;
13244 PyObject * obj0 = 0 ;
13245 PyObject * obj1 = 0 ;
13246 char *kwnames[] = {
13247 (char *) "self",(char *) "ft", NULL
13248 };
13249
13250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13254 SWIG_POINTER_EXCEPTION | 0)) == -1)
13255 SWIG_fail;
d14a1e28 13256 if (arg2 == NULL) {
15afbcd0
RD
13257 PyErr_SetString(PyExc_TypeError,"null reference");
13258 SWIG_fail;
d14a1e28
RD
13259 }
13260 {
13261 PyThreadState* __tstate = wxPyBeginAllowThreads();
13262 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13263
13264 wxPyEndAllowThreads(__tstate);
13265 if (PyErr_Occurred()) SWIG_fail;
13266 }
13267 Py_INCREF(Py_None); resultobj = Py_None;
13268 return resultobj;
13269 fail:
13270 return NULL;
13271}
13272
13273
13274static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13275 PyObject *resultobj;
13276 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13277 wxFileTypeInfo *arg2 = 0 ;
13278 wxFileType *result;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 char *kwnames[] = {
13282 (char *) "self",(char *) "ftInfo", NULL
13283 };
13284
13285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13288 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13289 SWIG_POINTER_EXCEPTION | 0)) == -1)
13290 SWIG_fail;
d14a1e28 13291 if (arg2 == NULL) {
15afbcd0
RD
13292 PyErr_SetString(PyExc_TypeError,"null reference");
13293 SWIG_fail;
d14a1e28
RD
13294 }
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
15afbcd0 13302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
d14a1e28
RD
13303 return resultobj;
13304 fail:
13305 return NULL;
13306}
13307
13308
13309static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13312 wxFileType *arg2 = (wxFileType *) 0 ;
13313 bool result;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 char *kwnames[] = {
13317 (char *) "self",(char *) "ft", NULL
13318 };
13319
13320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
13321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13325 {
13326 PyThreadState* __tstate = wxPyBeginAllowThreads();
13327 result = (bool)(arg1)->Unassociate(arg2);
13328
13329 wxPyEndAllowThreads(__tstate);
13330 if (PyErr_Occurred()) SWIG_fail;
13331 }
4d5c3d91 13332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13333 return resultobj;
13334 fail:
13335 return NULL;
13336}
13337
13338
13339static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13340 PyObject *resultobj;
13341 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13342 PyObject * obj0 = 0 ;
13343 char *kwnames[] = {
13344 (char *) "self", NULL
13345 };
13346
13347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
15afbcd0
RD
13348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
13350 {
13351 PyThreadState* __tstate = wxPyBeginAllowThreads();
13352 delete arg1;
13353
13354 wxPyEndAllowThreads(__tstate);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 }
13357 Py_INCREF(Py_None); resultobj = Py_None;
13358 return resultobj;
13359 fail:
13360 return NULL;
13361}
13362
13363
13364static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13365 PyObject *obj;
13366 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13367 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13368 Py_INCREF(obj);
13369 return Py_BuildValue((char *)"");
13370}
13371static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13372 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13373 return 1;
13374}
13375
13376
13377static PyObject *_wrap_ART_TOOLBAR_get() {
13378 PyObject *pyobj;
13379
13380 {
13381#if wxUSE_UNICODE
13382 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13383#else
13384 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13385#endif
13386 }
13387 return pyobj;
13388}
13389
13390
13391static int _wrap_ART_MENU_set(PyObject *_val) {
13392 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13393 return 1;
13394}
13395
13396
13397static PyObject *_wrap_ART_MENU_get() {
13398 PyObject *pyobj;
13399
13400 {
13401#if wxUSE_UNICODE
13402 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13403#else
13404 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13405#endif
13406 }
13407 return pyobj;
13408}
13409
13410
13411static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13412 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13413 return 1;
13414}
13415
13416
13417static PyObject *_wrap_ART_FRAME_ICON_get() {
13418 PyObject *pyobj;
13419
13420 {
13421#if wxUSE_UNICODE
13422 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13423#else
13424 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13425#endif
13426 }
13427 return pyobj;
13428}
13429
13430
13431static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13432 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13433 return 1;
13434}
13435
13436
13437static PyObject *_wrap_ART_CMN_DIALOG_get() {
13438 PyObject *pyobj;
13439
13440 {
13441#if wxUSE_UNICODE
13442 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13443#else
13444 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13445#endif
13446 }
13447 return pyobj;
13448}
13449
13450
13451static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13452 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13453 return 1;
13454}
13455
13456
13457static PyObject *_wrap_ART_HELP_BROWSER_get() {
13458 PyObject *pyobj;
13459
13460 {
13461#if wxUSE_UNICODE
13462 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13463#else
13464 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13465#endif
13466 }
13467 return pyobj;
13468}
13469
13470
13471static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13472 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13473 return 1;
13474}
13475
13476
13477static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13478 PyObject *pyobj;
13479
13480 {
13481#if wxUSE_UNICODE
13482 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13483#else
13484 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13485#endif
13486 }
13487 return pyobj;
13488}
13489
13490
13491static int _wrap_ART_OTHER_set(PyObject *_val) {
13492 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13493 return 1;
13494}
13495
13496
13497static PyObject *_wrap_ART_OTHER_get() {
13498 PyObject *pyobj;
13499
13500 {
13501#if wxUSE_UNICODE
13502 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13503#else
13504 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13505#endif
13506 }
13507 return pyobj;
13508}
13509
13510
13511static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13512 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13513 return 1;
13514}
13515
13516
13517static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13518 PyObject *pyobj;
13519
13520 {
13521#if wxUSE_UNICODE
13522 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13523#else
13524 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13525#endif
13526 }
13527 return pyobj;
13528}
13529
13530
13531static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13532 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13533 return 1;
13534}
13535
13536
13537static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13538 PyObject *pyobj;
13539
13540 {
13541#if wxUSE_UNICODE
13542 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13543#else
13544 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13545#endif
13546 }
13547 return pyobj;
13548}
13549
13550
13551static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13552 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13553 return 1;
13554}
13555
13556
13557static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13558 PyObject *pyobj;
13559
13560 {
13561#if wxUSE_UNICODE
13562 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13563#else
13564 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13565#endif
13566 }
13567 return pyobj;
13568}
13569
13570
13571static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13572 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13573 return 1;
13574}
13575
13576
13577static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13578 PyObject *pyobj;
13579
13580 {
13581#if wxUSE_UNICODE
13582 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13583#else
13584 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13585#endif
13586 }
13587 return pyobj;
13588}
13589
13590
13591static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13592 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13593 return 1;
13594}
13595
13596
13597static PyObject *_wrap_ART_HELP_BOOK_get() {
13598 PyObject *pyobj;
13599
13600 {
13601#if wxUSE_UNICODE
13602 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13603#else
13604 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13605#endif
13606 }
13607 return pyobj;
13608}
13609
13610
13611static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13612 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13613 return 1;
13614}
13615
13616
13617static PyObject *_wrap_ART_HELP_FOLDER_get() {
13618 PyObject *pyobj;
13619
13620 {
13621#if wxUSE_UNICODE
13622 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13623#else
13624 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13625#endif
13626 }
13627 return pyobj;
13628}
13629
13630
13631static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13632 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13633 return 1;
13634}
13635
13636
13637static PyObject *_wrap_ART_HELP_PAGE_get() {
13638 PyObject *pyobj;
13639
13640 {
13641#if wxUSE_UNICODE
13642 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13643#else
13644 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13645#endif
13646 }
13647 return pyobj;
13648}
13649
13650
13651static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13652 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13653 return 1;
13654}
13655
13656
13657static PyObject *_wrap_ART_GO_BACK_get() {
13658 PyObject *pyobj;
13659
13660 {
13661#if wxUSE_UNICODE
13662 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13663#else
13664 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13665#endif
13666 }
13667 return pyobj;
13668}
13669
13670
13671static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13672 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13673 return 1;
13674}
13675
13676
13677static PyObject *_wrap_ART_GO_FORWARD_get() {
13678 PyObject *pyobj;
13679
13680 {
13681#if wxUSE_UNICODE
13682 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13683#else
13684 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13685#endif
13686 }
13687 return pyobj;
13688}
13689
13690
13691static int _wrap_ART_GO_UP_set(PyObject *_val) {
13692 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13693 return 1;
13694}
13695
13696
13697static PyObject *_wrap_ART_GO_UP_get() {
13698 PyObject *pyobj;
13699
13700 {
13701#if wxUSE_UNICODE
13702 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13703#else
13704 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13705#endif
13706 }
13707 return pyobj;
13708}
13709
13710
13711static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13712 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13713 return 1;
13714}
13715
13716
13717static PyObject *_wrap_ART_GO_DOWN_get() {
13718 PyObject *pyobj;
13719
13720 {
13721#if wxUSE_UNICODE
13722 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13723#else
13724 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13725#endif
13726 }
13727 return pyobj;
13728}
13729
13730
13731static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13732 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13733 return 1;
13734}
13735
13736
13737static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13738 PyObject *pyobj;
13739
13740 {
13741#if wxUSE_UNICODE
13742 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13743#else
13744 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13745#endif
13746 }
13747 return pyobj;
13748}
13749
13750
13751static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13752 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13753 return 1;
13754}
13755
13756
13757static PyObject *_wrap_ART_GO_HOME_get() {
13758 PyObject *pyobj;
13759
13760 {
13761#if wxUSE_UNICODE
13762 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13763#else
13764 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13765#endif
13766 }
13767 return pyobj;
13768}
13769
13770
13771static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13772 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13773 return 1;
13774}
13775
13776
13777static PyObject *_wrap_ART_FILE_OPEN_get() {
13778 PyObject *pyobj;
13779
13780 {
13781#if wxUSE_UNICODE
13782 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13783#else
13784 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13785#endif
13786 }
13787 return pyobj;
13788}
13789
13790
13791static int _wrap_ART_PRINT_set(PyObject *_val) {
13792 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13793 return 1;
13794}
13795
13796
13797static PyObject *_wrap_ART_PRINT_get() {
13798 PyObject *pyobj;
13799
13800 {
13801#if wxUSE_UNICODE
13802 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13803#else
13804 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13805#endif
13806 }
13807 return pyobj;
13808}
13809
13810
13811static int _wrap_ART_HELP_set(PyObject *_val) {
13812 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13813 return 1;
13814}
13815
13816
13817static PyObject *_wrap_ART_HELP_get() {
13818 PyObject *pyobj;
13819
13820 {
13821#if wxUSE_UNICODE
13822 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13823#else
13824 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13825#endif
13826 }
13827 return pyobj;
13828}
13829
13830
13831static int _wrap_ART_TIP_set(PyObject *_val) {
13832 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13833 return 1;
13834}
13835
13836
13837static PyObject *_wrap_ART_TIP_get() {
13838 PyObject *pyobj;
13839
13840 {
13841#if wxUSE_UNICODE
13842 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13843#else
13844 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13845#endif
13846 }
13847 return pyobj;
13848}
13849
13850
13851static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
13852 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
13853 return 1;
13854}
13855
13856
13857static PyObject *_wrap_ART_REPORT_VIEW_get() {
13858 PyObject *pyobj;
13859
13860 {
13861#if wxUSE_UNICODE
13862 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13863#else
13864 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13865#endif
13866 }
13867 return pyobj;
13868}
13869
13870
13871static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
13872 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
13873 return 1;
13874}
13875
13876
13877static PyObject *_wrap_ART_LIST_VIEW_get() {
13878 PyObject *pyobj;
13879
13880 {
13881#if wxUSE_UNICODE
13882 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13883#else
13884 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13885#endif
13886 }
13887 return pyobj;
13888}
13889
13890
13891static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
13892 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
13893 return 1;
13894}
13895
13896
13897static PyObject *_wrap_ART_NEW_DIR_get() {
13898 PyObject *pyobj;
13899
13900 {
13901#if wxUSE_UNICODE
13902 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13903#else
13904 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13905#endif
13906 }
13907 return pyobj;
13908}
13909
13910
13911static int _wrap_ART_FOLDER_set(PyObject *_val) {
13912 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
13913 return 1;
13914}
13915
13916
13917static PyObject *_wrap_ART_FOLDER_get() {
13918 PyObject *pyobj;
13919
13920 {
13921#if wxUSE_UNICODE
13922 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13923#else
13924 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13925#endif
13926 }
13927 return pyobj;
13928}
13929
13930
13931static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
13932 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
13933 return 1;
13934}
13935
13936
13937static PyObject *_wrap_ART_GO_DIR_UP_get() {
13938 PyObject *pyobj;
13939
13940 {
13941#if wxUSE_UNICODE
13942 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13943#else
13944 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13945#endif
13946 }
13947 return pyobj;
13948}
13949
13950
13951static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
13952 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
13953 return 1;
13954}
13955
13956
13957static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
13958 PyObject *pyobj;
13959
13960 {
13961#if wxUSE_UNICODE
13962 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
13963#else
13964 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
13965#endif
13966 }
13967 return pyobj;
13968}
13969
13970
13971static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
13972 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
13973 return 1;
13974}
13975
13976
13977static PyObject *_wrap_ART_NORMAL_FILE_get() {
13978 PyObject *pyobj;
13979
13980 {
13981#if wxUSE_UNICODE
13982 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
13983#else
13984 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
13985#endif
13986 }
13987 return pyobj;
13988}
13989
13990
13991static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
13992 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
13993 return 1;
13994}
13995
13996
13997static PyObject *_wrap_ART_TICK_MARK_get() {
13998 PyObject *pyobj;
13999
14000 {
14001#if wxUSE_UNICODE
14002 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14003#else
14004 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14005#endif
14006 }
14007 return pyobj;
14008}
14009
14010
14011static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14012 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14013 return 1;
14014}
14015
14016
14017static PyObject *_wrap_ART_CROSS_MARK_get() {
14018 PyObject *pyobj;
14019
14020 {
14021#if wxUSE_UNICODE
14022 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14023#else
14024 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14025#endif
14026 }
14027 return pyobj;
14028}
14029
14030
14031static int _wrap_ART_ERROR_set(PyObject *_val) {
14032 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14033 return 1;
14034}
14035
14036
14037static PyObject *_wrap_ART_ERROR_get() {
14038 PyObject *pyobj;
14039
14040 {
14041#if wxUSE_UNICODE
14042 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14043#else
14044 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14045#endif
14046 }
14047 return pyobj;
14048}
14049
14050
14051static int _wrap_ART_QUESTION_set(PyObject *_val) {
14052 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14053 return 1;
14054}
14055
14056
14057static PyObject *_wrap_ART_QUESTION_get() {
14058 PyObject *pyobj;
14059
14060 {
14061#if wxUSE_UNICODE
14062 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14063#else
14064 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14065#endif
14066 }
14067 return pyobj;
14068}
14069
14070
14071static int _wrap_ART_WARNING_set(PyObject *_val) {
14072 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14073 return 1;
14074}
14075
14076
14077static PyObject *_wrap_ART_WARNING_get() {
14078 PyObject *pyobj;
14079
14080 {
14081#if wxUSE_UNICODE
14082 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14083#else
14084 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14085#endif
14086 }
14087 return pyobj;
14088}
14089
14090
14091static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14092 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14093 return 1;
14094}
14095
14096
14097static PyObject *_wrap_ART_INFORMATION_get() {
14098 PyObject *pyobj;
14099
14100 {
14101#if wxUSE_UNICODE
14102 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14103#else
14104 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14105#endif
14106 }
14107 return pyobj;
14108}
14109
14110
14111static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14112 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14113 return 1;
14114}
14115
14116
14117static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14118 PyObject *pyobj;
14119
14120 {
14121#if wxUSE_UNICODE
14122 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14123#else
14124 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14125#endif
14126 }
14127 return pyobj;
14128}
14129
14130
14131static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14132 PyObject *resultobj;
14133 wxPyArtProvider *result;
14134 char *kwnames[] = {
14135 NULL
14136 };
14137
14138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 result = (wxPyArtProvider *)new wxPyArtProvider();
14142
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
15afbcd0 14146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
d14a1e28
RD
14147 return resultobj;
14148 fail:
14149 return NULL;
14150}
14151
14152
d14a1e28
RD
14153static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14154 PyObject *resultobj;
14155 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14156 PyObject *arg2 = (PyObject *) 0 ;
14157 PyObject *arg3 = (PyObject *) 0 ;
14158 PyObject * obj0 = 0 ;
14159 PyObject * obj1 = 0 ;
14160 PyObject * obj2 = 0 ;
14161 char *kwnames[] = {
14162 (char *) "self",(char *) "self",(char *) "_class", NULL
14163 };
14164
14165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14168 arg2 = obj1;
14169 arg3 = obj2;
14170 {
14171 PyThreadState* __tstate = wxPyBeginAllowThreads();
14172 (arg1)->_setCallbackInfo(arg2,arg3);
14173
14174 wxPyEndAllowThreads(__tstate);
14175 if (PyErr_Occurred()) SWIG_fail;
14176 }
14177 Py_INCREF(Py_None); resultobj = Py_None;
14178 return resultobj;
14179 fail:
14180 return NULL;
14181}
14182
14183
14184static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14185 PyObject *resultobj;
14186 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14187 PyObject * obj0 = 0 ;
14188 char *kwnames[] = {
14189 (char *) "provider", NULL
14190 };
14191
14192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
15afbcd0
RD
14193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14195 {
14196 PyThreadState* __tstate = wxPyBeginAllowThreads();
14197 wxPyArtProvider::PushProvider(arg1);
14198
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 Py_INCREF(Py_None); resultobj = Py_None;
14203 return resultobj;
14204 fail:
14205 return NULL;
14206}
14207
14208
14209static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14210 PyObject *resultobj;
14211 bool result;
14212 char *kwnames[] = {
14213 NULL
14214 };
14215
14216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14217 {
14218 PyThreadState* __tstate = wxPyBeginAllowThreads();
14219 result = (bool)wxPyArtProvider::PopProvider();
14220
14221 wxPyEndAllowThreads(__tstate);
14222 if (PyErr_Occurred()) SWIG_fail;
14223 }
4d5c3d91 14224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14225 return resultobj;
14226 fail:
14227 return NULL;
14228}
14229
14230
14231static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14232 PyObject *resultobj;
14233 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14234 bool result;
14235 PyObject * obj0 = 0 ;
14236 char *kwnames[] = {
14237 (char *) "provider", NULL
14238 };
14239
14240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
15afbcd0
RD
14241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14243 {
14244 PyThreadState* __tstate = wxPyBeginAllowThreads();
14245 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14246
14247 wxPyEndAllowThreads(__tstate);
14248 if (PyErr_Occurred()) SWIG_fail;
14249 }
4d5c3d91 14250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14251 return resultobj;
14252 fail:
14253 return NULL;
14254}
14255
14256
14257static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14258 PyObject *resultobj;
14259 wxString *arg1 = 0 ;
14260 wxString const &arg2_defvalue = wxPyART_OTHER ;
14261 wxString *arg2 = (wxString *) &arg2_defvalue ;
14262 wxSize const &arg3_defvalue = wxDefaultSize ;
14263 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14264 wxBitmap result;
e811c8ce
RD
14265 bool temp1 = False ;
14266 bool temp2 = False ;
d14a1e28
RD
14267 wxSize temp3 ;
14268 PyObject * obj0 = 0 ;
14269 PyObject * obj1 = 0 ;
14270 PyObject * obj2 = 0 ;
14271 char *kwnames[] = {
14272 (char *) "id",(char *) "client",(char *) "size", NULL
14273 };
14274
14275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14276 {
14277 arg1 = wxString_in_helper(obj0);
14278 if (arg1 == NULL) SWIG_fail;
e811c8ce 14279 temp1 = True;
d14a1e28
RD
14280 }
14281 if (obj1) {
14282 {
14283 arg2 = wxString_in_helper(obj1);
14284 if (arg2 == NULL) SWIG_fail;
e811c8ce 14285 temp2 = True;
d14a1e28
RD
14286 }
14287 }
14288 if (obj2) {
14289 {
14290 arg3 = &temp3;
14291 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14292 }
14293 }
14294 {
14295 PyThreadState* __tstate = wxPyBeginAllowThreads();
14296 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14297
14298 wxPyEndAllowThreads(__tstate);
14299 if (PyErr_Occurred()) SWIG_fail;
14300 }
14301 {
14302 wxBitmap * resultptr;
14303 resultptr = new wxBitmap((wxBitmap &) result);
15afbcd0 14304 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
14305 }
14306 {
14307 if (temp1)
14308 delete arg1;
14309 }
14310 {
14311 if (temp2)
14312 delete arg2;
14313 }
14314 return resultobj;
14315 fail:
14316 {
14317 if (temp1)
14318 delete arg1;
14319 }
14320 {
14321 if (temp2)
14322 delete arg2;
14323 }
14324 return NULL;
14325}
14326
14327
14328static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14329 PyObject *resultobj;
14330 wxString *arg1 = 0 ;
14331 wxString const &arg2_defvalue = wxPyART_OTHER ;
14332 wxString *arg2 = (wxString *) &arg2_defvalue ;
14333 wxSize const &arg3_defvalue = wxDefaultSize ;
14334 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14335 wxIcon result;
e811c8ce
RD
14336 bool temp1 = False ;
14337 bool temp2 = False ;
d14a1e28
RD
14338 wxSize temp3 ;
14339 PyObject * obj0 = 0 ;
14340 PyObject * obj1 = 0 ;
14341 PyObject * obj2 = 0 ;
14342 char *kwnames[] = {
14343 (char *) "id",(char *) "client",(char *) "size", NULL
14344 };
14345
14346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14347 {
14348 arg1 = wxString_in_helper(obj0);
14349 if (arg1 == NULL) SWIG_fail;
e811c8ce 14350 temp1 = True;
d14a1e28
RD
14351 }
14352 if (obj1) {
14353 {
14354 arg2 = wxString_in_helper(obj1);
14355 if (arg2 == NULL) SWIG_fail;
e811c8ce 14356 temp2 = True;
d14a1e28
RD
14357 }
14358 }
14359 if (obj2) {
14360 {
14361 arg3 = &temp3;
14362 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14363 }
14364 }
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14368
14369 wxPyEndAllowThreads(__tstate);
14370 if (PyErr_Occurred()) SWIG_fail;
14371 }
14372 {
14373 wxIcon * resultptr;
14374 resultptr = new wxIcon((wxIcon &) result);
15afbcd0 14375 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
d14a1e28
RD
14376 }
14377 {
14378 if (temp1)
14379 delete arg1;
14380 }
14381 {
14382 if (temp2)
14383 delete arg2;
14384 }
14385 return resultobj;
14386 fail:
14387 {
14388 if (temp1)
14389 delete arg1;
14390 }
14391 {
14392 if (temp2)
14393 delete arg2;
14394 }
14395 return NULL;
14396}
14397
14398
1e0c8722
RD
14399static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14400 PyObject *resultobj;
14401 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14402 PyObject * obj0 = 0 ;
14403 char *kwnames[] = {
14404 (char *) "self", NULL
14405 };
14406
14407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
15afbcd0
RD
14408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1e0c8722
RD
14410 {
14411 PyThreadState* __tstate = wxPyBeginAllowThreads();
14412 wxPyArtProvider_Destroy(arg1);
14413
14414 wxPyEndAllowThreads(__tstate);
14415 if (PyErr_Occurred()) SWIG_fail;
14416 }
14417 Py_INCREF(Py_None); resultobj = Py_None;
14418 return resultobj;
14419 fail:
14420 return NULL;
14421}
14422
14423
d14a1e28
RD
14424static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14425 PyObject *obj;
14426 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14427 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14428 Py_INCREF(obj);
14429 return Py_BuildValue((char *)"");
14430}
14431static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14432 PyObject *resultobj;
14433 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14434 PyObject * obj0 = 0 ;
14435 char *kwnames[] = {
14436 (char *) "self", NULL
14437 };
14438
14439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
15afbcd0
RD
14440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14442 {
14443 PyThreadState* __tstate = wxPyBeginAllowThreads();
14444 delete arg1;
14445
14446 wxPyEndAllowThreads(__tstate);
14447 if (PyErr_Occurred()) SWIG_fail;
14448 }
14449 Py_INCREF(Py_None); resultobj = Py_None;
14450 return resultobj;
14451 fail:
14452 return NULL;
14453}
14454
14455
14456static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14457 PyObject *resultobj;
14458 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14459 wxConfigBase *result;
14460 PyObject * obj0 = 0 ;
14461 char *kwnames[] = {
b88bce5f 14462 (char *) "config", NULL
d14a1e28
RD
14463 };
14464
14465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
15afbcd0
RD
14466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14468 {
14469 PyThreadState* __tstate = wxPyBeginAllowThreads();
14470 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14471
14472 wxPyEndAllowThreads(__tstate);
14473 if (PyErr_Occurred()) SWIG_fail;
14474 }
15afbcd0 14475 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
d14a1e28
RD
14476 return resultobj;
14477 fail:
14478 return NULL;
14479}
14480
14481
14482static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14483 PyObject *resultobj;
e811c8ce 14484 bool arg1 = (bool) True ;
d14a1e28
RD
14485 wxConfigBase *result;
14486 PyObject * obj0 = 0 ;
14487 char *kwnames[] = {
14488 (char *) "createOnDemand", NULL
14489 };
14490
14491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14492 if (obj0) {
15afbcd0
RD
14493 arg1 = (bool) SWIG_AsBool(obj0);
14494 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14495 }
14496 {
14497 PyThreadState* __tstate = wxPyBeginAllowThreads();
14498 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14499
14500 wxPyEndAllowThreads(__tstate);
14501 if (PyErr_Occurred()) SWIG_fail;
14502 }
15afbcd0 14503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
d14a1e28
RD
14504 return resultobj;
14505 fail:
14506 return NULL;
14507}
14508
14509
14510static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14511 PyObject *resultobj;
14512 wxConfigBase *result;
14513 char *kwnames[] = {
14514 NULL
14515 };
14516
14517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 result = (wxConfigBase *)wxConfigBase::Create();
14521
14522 wxPyEndAllowThreads(__tstate);
14523 if (PyErr_Occurred()) SWIG_fail;
14524 }
15afbcd0 14525 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
d14a1e28
RD
14526 return resultobj;
14527 fail:
14528 return NULL;
14529}
14530
14531
14532static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14533 PyObject *resultobj;
14534 char *kwnames[] = {
14535 NULL
14536 };
14537
14538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14539 {
14540 PyThreadState* __tstate = wxPyBeginAllowThreads();
14541 wxConfigBase::DontCreateOnDemand();
14542
14543 wxPyEndAllowThreads(__tstate);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 }
14546 Py_INCREF(Py_None); resultobj = Py_None;
14547 return resultobj;
14548 fail:
14549 return NULL;
14550}
14551
14552
14553static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14554 PyObject *resultobj;
14555 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14556 wxString *arg2 = 0 ;
e811c8ce 14557 bool temp2 = False ;
d14a1e28
RD
14558 PyObject * obj0 = 0 ;
14559 PyObject * obj1 = 0 ;
14560 char *kwnames[] = {
b88bce5f 14561 (char *) "self",(char *) "path", NULL
d14a1e28
RD
14562 };
14563
14564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14567 {
14568 arg2 = wxString_in_helper(obj1);
14569 if (arg2 == NULL) SWIG_fail;
e811c8ce 14570 temp2 = True;
d14a1e28
RD
14571 }
14572 {
14573 PyThreadState* __tstate = wxPyBeginAllowThreads();
14574 (arg1)->SetPath((wxString const &)*arg2);
14575
14576 wxPyEndAllowThreads(__tstate);
14577 if (PyErr_Occurred()) SWIG_fail;
14578 }
14579 Py_INCREF(Py_None); resultobj = Py_None;
14580 {
14581 if (temp2)
14582 delete arg2;
14583 }
14584 return resultobj;
14585 fail:
14586 {
14587 if (temp2)
14588 delete arg2;
14589 }
14590 return NULL;
14591}
14592
14593
14594static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14595 PyObject *resultobj;
14596 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14597 wxString *result;
14598 PyObject * obj0 = 0 ;
14599 char *kwnames[] = {
14600 (char *) "self", NULL
14601 };
14602
14603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15afbcd0
RD
14604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 {
14609 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14610 result = (wxString *) &_result_ref;
14611 }
14612
14613 wxPyEndAllowThreads(__tstate);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
cc6dd355
RD
14616 {
14617#if wxUSE_UNICODE
14618 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14619#else
14620 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14621#endif
14622 }
d14a1e28
RD
14623 return resultobj;
14624 fail:
14625 return NULL;
14626}
14627
14628
14629static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14630 PyObject *resultobj;
14631 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14632 PyObject *result;
14633 PyObject * obj0 = 0 ;
14634 char *kwnames[] = {
14635 (char *) "self", NULL
14636 };
14637
14638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15afbcd0
RD
14639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14641 {
14642 PyThreadState* __tstate = wxPyBeginAllowThreads();
14643 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14644
14645 wxPyEndAllowThreads(__tstate);
14646 if (PyErr_Occurred()) SWIG_fail;
14647 }
14648 resultobj = result;
14649 return resultobj;
14650 fail:
14651 return NULL;
14652}
14653
14654
14655static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14656 PyObject *resultobj;
14657 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14658 long arg2 ;
14659 PyObject *result;
14660 PyObject * obj0 = 0 ;
994141e6 14661 PyObject * obj1 = 0 ;
d14a1e28
RD
14662 char *kwnames[] = {
14663 (char *) "self",(char *) "index", NULL
14664 };
14665
994141e6 14666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14669 arg2 = (long) SWIG_AsLong(obj1);
14670 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14674
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 resultobj = result;
14679 return resultobj;
14680 fail:
14681 return NULL;
14682}
14683
14684
14685static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14686 PyObject *resultobj;
14687 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14688 PyObject *result;
14689 PyObject * obj0 = 0 ;
14690 char *kwnames[] = {
14691 (char *) "self", NULL
14692 };
14693
14694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15afbcd0
RD
14695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14697 {
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14700
14701 wxPyEndAllowThreads(__tstate);
14702 if (PyErr_Occurred()) SWIG_fail;
14703 }
14704 resultobj = result;
14705 return resultobj;
14706 fail:
14707 return NULL;
14708}
14709
14710
14711static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14712 PyObject *resultobj;
14713 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14714 long arg2 ;
14715 PyObject *result;
14716 PyObject * obj0 = 0 ;
994141e6 14717 PyObject * obj1 = 0 ;
d14a1e28
RD
14718 char *kwnames[] = {
14719 (char *) "self",(char *) "index", NULL
14720 };
14721
994141e6 14722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14725 arg2 = (long) SWIG_AsLong(obj1);
14726 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14727 {
14728 PyThreadState* __tstate = wxPyBeginAllowThreads();
14729 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14730
14731 wxPyEndAllowThreads(__tstate);
14732 if (PyErr_Occurred()) SWIG_fail;
14733 }
14734 resultobj = result;
14735 return resultobj;
14736 fail:
14737 return NULL;
14738}
14739
14740
14741static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14742 PyObject *resultobj;
14743 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 14744 bool arg2 = (bool) False ;
d14a1e28
RD
14745 size_t result;
14746 PyObject * obj0 = 0 ;
14747 PyObject * obj1 = 0 ;
14748 char *kwnames[] = {
b88bce5f 14749 (char *) "self",(char *) "recursive", NULL
d14a1e28
RD
14750 };
14751
14752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 14755 if (obj1) {
15afbcd0
RD
14756 arg2 = (bool) SWIG_AsBool(obj1);
14757 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14758 }
14759 {
14760 PyThreadState* __tstate = wxPyBeginAllowThreads();
14761 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14762
14763 wxPyEndAllowThreads(__tstate);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 }
15afbcd0 14766 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
14767 return resultobj;
14768 fail:
14769 return NULL;
14770}
14771
14772
14773static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14774 PyObject *resultobj;
14775 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 14776 bool arg2 = (bool) False ;
d14a1e28
RD
14777 size_t result;
14778 PyObject * obj0 = 0 ;
14779 PyObject * obj1 = 0 ;
14780 char *kwnames[] = {
b88bce5f 14781 (char *) "self",(char *) "recursive", NULL
d14a1e28
RD
14782 };
14783
14784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 14787 if (obj1) {
15afbcd0
RD
14788 arg2 = (bool) SWIG_AsBool(obj1);
14789 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
14790 }
14791 {
14792 PyThreadState* __tstate = wxPyBeginAllowThreads();
14793 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14794
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
15afbcd0 14798 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
14799 return resultobj;
14800 fail:
14801 return NULL;
14802}
14803
14804
14805static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14806 PyObject *resultobj;
14807 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14808 wxString *arg2 = 0 ;
14809 bool result;
e811c8ce 14810 bool temp2 = False ;
d14a1e28
RD
14811 PyObject * obj0 = 0 ;
14812 PyObject * obj1 = 0 ;
14813 char *kwnames[] = {
b88bce5f 14814 (char *) "self",(char *) "name", NULL
d14a1e28
RD
14815 };
14816
14817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14820 {
14821 arg2 = wxString_in_helper(obj1);
14822 if (arg2 == NULL) SWIG_fail;
e811c8ce 14823 temp2 = True;
d14a1e28
RD
14824 }
14825 {
14826 PyThreadState* __tstate = wxPyBeginAllowThreads();
14827 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14828
14829 wxPyEndAllowThreads(__tstate);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
4d5c3d91 14832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14833 {
14834 if (temp2)
14835 delete arg2;
14836 }
14837 return resultobj;
14838 fail:
14839 {
14840 if (temp2)
14841 delete arg2;
14842 }
14843 return NULL;
14844}
14845
14846
14847static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj;
14849 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14850 wxString *arg2 = 0 ;
14851 bool result;
e811c8ce 14852 bool temp2 = False ;
d14a1e28
RD
14853 PyObject * obj0 = 0 ;
14854 PyObject * obj1 = 0 ;
14855 char *kwnames[] = {
b88bce5f 14856 (char *) "self",(char *) "name", NULL
d14a1e28
RD
14857 };
14858
14859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14862 {
14863 arg2 = wxString_in_helper(obj1);
14864 if (arg2 == NULL) SWIG_fail;
e811c8ce 14865 temp2 = True;
d14a1e28
RD
14866 }
14867 {
14868 PyThreadState* __tstate = wxPyBeginAllowThreads();
14869 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
14870
14871 wxPyEndAllowThreads(__tstate);
14872 if (PyErr_Occurred()) SWIG_fail;
14873 }
4d5c3d91 14874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14875 {
14876 if (temp2)
14877 delete arg2;
14878 }
14879 return resultobj;
14880 fail:
14881 {
14882 if (temp2)
14883 delete arg2;
14884 }
14885 return NULL;
14886}
14887
14888
14889static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
14890 PyObject *resultobj;
14891 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14892 wxString *arg2 = 0 ;
14893 bool result;
e811c8ce 14894 bool temp2 = False ;
d14a1e28
RD
14895 PyObject * obj0 = 0 ;
14896 PyObject * obj1 = 0 ;
14897 char *kwnames[] = {
b88bce5f 14898 (char *) "self",(char *) "name", NULL
d14a1e28
RD
14899 };
14900
14901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14904 {
14905 arg2 = wxString_in_helper(obj1);
14906 if (arg2 == NULL) SWIG_fail;
e811c8ce 14907 temp2 = True;
d14a1e28
RD
14908 }
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
14912
14913 wxPyEndAllowThreads(__tstate);
14914 if (PyErr_Occurred()) SWIG_fail;
14915 }
4d5c3d91 14916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14917 {
14918 if (temp2)
14919 delete arg2;
14920 }
14921 return resultobj;
14922 fail:
14923 {
14924 if (temp2)
14925 delete arg2;
14926 }
14927 return NULL;
14928}
14929
14930
14931static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
14932 PyObject *resultobj;
14933 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14934 wxString *arg2 = 0 ;
14935 int result;
e811c8ce 14936 bool temp2 = False ;
d14a1e28
RD
14937 PyObject * obj0 = 0 ;
14938 PyObject * obj1 = 0 ;
14939 char *kwnames[] = {
14940 (char *) "self",(char *) "name", NULL
14941 };
14942
14943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
14944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14946 {
14947 arg2 = wxString_in_helper(obj1);
14948 if (arg2 == NULL) SWIG_fail;
e811c8ce 14949 temp2 = True;
d14a1e28
RD
14950 }
14951 {
14952 PyThreadState* __tstate = wxPyBeginAllowThreads();
14953 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
14954
14955 wxPyEndAllowThreads(__tstate);
14956 if (PyErr_Occurred()) SWIG_fail;
14957 }
15afbcd0 14958 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
14959 {
14960 if (temp2)
14961 delete arg2;
14962 }
14963 return resultobj;
14964 fail:
14965 {
14966 if (temp2)
14967 delete arg2;
14968 }
14969 return NULL;
14970}
14971
14972
14973static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj;
14975 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14976 wxString *arg2 = 0 ;
14977 wxString const &arg3_defvalue = wxPyEmptyString ;
14978 wxString *arg3 = (wxString *) &arg3_defvalue ;
14979 wxString result;
e811c8ce
RD
14980 bool temp2 = False ;
14981 bool temp3 = False ;
d14a1e28
RD
14982 PyObject * obj0 = 0 ;
14983 PyObject * obj1 = 0 ;
14984 PyObject * obj2 = 0 ;
14985 char *kwnames[] = {
14986 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
14987 };
14988
14989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
14990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
14992 {
14993 arg2 = wxString_in_helper(obj1);
14994 if (arg2 == NULL) SWIG_fail;
e811c8ce 14995 temp2 = True;
d14a1e28
RD
14996 }
14997 if (obj2) {
14998 {
14999 arg3 = wxString_in_helper(obj2);
15000 if (arg3 == NULL) SWIG_fail;
e811c8ce 15001 temp3 = True;
d14a1e28
RD
15002 }
15003 }
15004 {
15005 PyThreadState* __tstate = wxPyBeginAllowThreads();
15006 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15007
15008 wxPyEndAllowThreads(__tstate);
15009 if (PyErr_Occurred()) SWIG_fail;
15010 }
15011 {
15012#if wxUSE_UNICODE
15013 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15014#else
15015 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15016#endif
15017 }
15018 {
15019 if (temp2)
15020 delete arg2;
15021 }
15022 {
15023 if (temp3)
15024 delete arg3;
15025 }
15026 return resultobj;
15027 fail:
15028 {
15029 if (temp2)
15030 delete arg2;
15031 }
15032 {
15033 if (temp3)
15034 delete arg3;
15035 }
15036 return NULL;
15037}
15038
15039
15040static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15041 PyObject *resultobj;
15042 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15043 wxString *arg2 = 0 ;
15044 long arg3 = (long) 0 ;
15045 long result;
e811c8ce 15046 bool temp2 = False ;
d14a1e28
RD
15047 PyObject * obj0 = 0 ;
15048 PyObject * obj1 = 0 ;
994141e6 15049 PyObject * obj2 = 0 ;
d14a1e28
RD
15050 char *kwnames[] = {
15051 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15052 };
15053
994141e6 15054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15057 {
15058 arg2 = wxString_in_helper(obj1);
15059 if (arg2 == NULL) SWIG_fail;
e811c8ce 15060 temp2 = True;
d14a1e28 15061 }
994141e6 15062 if (obj2) {
15afbcd0
RD
15063 arg3 = (long) SWIG_AsLong(obj2);
15064 if (PyErr_Occurred()) SWIG_fail;
994141e6 15065 }
d14a1e28
RD
15066 {
15067 PyThreadState* __tstate = wxPyBeginAllowThreads();
15068 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15069
15070 wxPyEndAllowThreads(__tstate);
15071 if (PyErr_Occurred()) SWIG_fail;
15072 }
15afbcd0 15073 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
15074 {
15075 if (temp2)
15076 delete arg2;
15077 }
15078 return resultobj;
15079 fail:
15080 {
15081 if (temp2)
15082 delete arg2;
15083 }
15084 return NULL;
15085}
15086
15087
15088static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj;
15090 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15091 wxString *arg2 = 0 ;
15092 double arg3 = (double) 0.0 ;
15093 double result;
e811c8ce 15094 bool temp2 = False ;
d14a1e28
RD
15095 PyObject * obj0 = 0 ;
15096 PyObject * obj1 = 0 ;
994141e6 15097 PyObject * obj2 = 0 ;
d14a1e28
RD
15098 char *kwnames[] = {
15099 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15100 };
15101
994141e6 15102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15105 {
15106 arg2 = wxString_in_helper(obj1);
15107 if (arg2 == NULL) SWIG_fail;
e811c8ce 15108 temp2 = True;
d14a1e28 15109 }
994141e6 15110 if (obj2) {
15afbcd0
RD
15111 arg3 = (double) SWIG_AsDouble(obj2);
15112 if (PyErr_Occurred()) SWIG_fail;
994141e6 15113 }
d14a1e28
RD
15114 {
15115 PyThreadState* __tstate = wxPyBeginAllowThreads();
15116 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15117
15118 wxPyEndAllowThreads(__tstate);
15119 if (PyErr_Occurred()) SWIG_fail;
15120 }
15afbcd0 15121 resultobj = SWIG_FromDouble((double)result);
d14a1e28
RD
15122 {
15123 if (temp2)
15124 delete arg2;
15125 }
15126 return resultobj;
15127 fail:
15128 {
15129 if (temp2)
15130 delete arg2;
15131 }
15132 return NULL;
15133}
15134
15135
15136static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15137 PyObject *resultobj;
15138 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15139 wxString *arg2 = 0 ;
e811c8ce 15140 bool arg3 = (bool) False ;
d14a1e28 15141 bool result;
e811c8ce 15142 bool temp2 = False ;
d14a1e28
RD
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145 PyObject * obj2 = 0 ;
15146 char *kwnames[] = {
15147 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15148 };
15149
15150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15153 {
15154 arg2 = wxString_in_helper(obj1);
15155 if (arg2 == NULL) SWIG_fail;
e811c8ce 15156 temp2 = True;
d14a1e28
RD
15157 }
15158 if (obj2) {
15afbcd0
RD
15159 arg3 = (bool) SWIG_AsBool(obj2);
15160 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15161 }
15162 {
15163 PyThreadState* __tstate = wxPyBeginAllowThreads();
15164 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15165
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
4d5c3d91 15169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15170 {
15171 if (temp2)
15172 delete arg2;
15173 }
15174 return resultobj;
15175 fail:
15176 {
15177 if (temp2)
15178 delete arg2;
15179 }
15180 return NULL;
15181}
15182
15183
15184static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15185 PyObject *resultobj;
15186 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15187 wxString *arg2 = 0 ;
15188 wxString *arg3 = 0 ;
15189 bool result;
e811c8ce
RD
15190 bool temp2 = False ;
15191 bool temp3 = False ;
d14a1e28
RD
15192 PyObject * obj0 = 0 ;
15193 PyObject * obj1 = 0 ;
15194 PyObject * obj2 = 0 ;
15195 char *kwnames[] = {
15196 (char *) "self",(char *) "key",(char *) "value", NULL
15197 };
15198
15199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15202 {
15203 arg2 = wxString_in_helper(obj1);
15204 if (arg2 == NULL) SWIG_fail;
e811c8ce 15205 temp2 = True;
d14a1e28
RD
15206 }
15207 {
15208 arg3 = wxString_in_helper(obj2);
15209 if (arg3 == NULL) SWIG_fail;
e811c8ce 15210 temp3 = True;
d14a1e28
RD
15211 }
15212 {
15213 PyThreadState* __tstate = wxPyBeginAllowThreads();
15214 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15215
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
4d5c3d91 15219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15220 {
15221 if (temp2)
15222 delete arg2;
15223 }
15224 {
15225 if (temp3)
15226 delete arg3;
15227 }
15228 return resultobj;
15229 fail:
15230 {
15231 if (temp2)
15232 delete arg2;
15233 }
15234 {
15235 if (temp3)
15236 delete arg3;
15237 }
15238 return NULL;
15239}
15240
15241
15242static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15243 PyObject *resultobj;
15244 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15245 wxString *arg2 = 0 ;
15246 long arg3 ;
15247 bool result;
e811c8ce 15248 bool temp2 = False ;
d14a1e28
RD
15249 PyObject * obj0 = 0 ;
15250 PyObject * obj1 = 0 ;
994141e6 15251 PyObject * obj2 = 0 ;
d14a1e28
RD
15252 char *kwnames[] = {
15253 (char *) "self",(char *) "key",(char *) "value", NULL
15254 };
15255
994141e6 15256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15259 {
15260 arg2 = wxString_in_helper(obj1);
15261 if (arg2 == NULL) SWIG_fail;
e811c8ce 15262 temp2 = True;
d14a1e28 15263 }
15afbcd0
RD
15264 arg3 = (long) SWIG_AsLong(obj2);
15265 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15266 {
15267 PyThreadState* __tstate = wxPyBeginAllowThreads();
15268 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15269
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
4d5c3d91 15273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15274 {
15275 if (temp2)
15276 delete arg2;
15277 }
15278 return resultobj;
15279 fail:
15280 {
15281 if (temp2)
15282 delete arg2;
15283 }
15284 return NULL;
15285}
15286
15287
15288static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15289 PyObject *resultobj;
15290 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15291 wxString *arg2 = 0 ;
15292 double arg3 ;
15293 bool result;
e811c8ce 15294 bool temp2 = False ;
d14a1e28
RD
15295 PyObject * obj0 = 0 ;
15296 PyObject * obj1 = 0 ;
994141e6 15297 PyObject * obj2 = 0 ;
d14a1e28
RD
15298 char *kwnames[] = {
15299 (char *) "self",(char *) "key",(char *) "value", NULL
15300 };
15301
994141e6 15302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15305 {
15306 arg2 = wxString_in_helper(obj1);
15307 if (arg2 == NULL) SWIG_fail;
e811c8ce 15308 temp2 = True;
d14a1e28 15309 }
15afbcd0
RD
15310 arg3 = (double) SWIG_AsDouble(obj2);
15311 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15312 {
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15315
15316 wxPyEndAllowThreads(__tstate);
15317 if (PyErr_Occurred()) SWIG_fail;
15318 }
4d5c3d91 15319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15320 {
15321 if (temp2)
15322 delete arg2;
15323 }
15324 return resultobj;
15325 fail:
15326 {
15327 if (temp2)
15328 delete arg2;
15329 }
15330 return NULL;
15331}
15332
15333
15334static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15335 PyObject *resultobj;
15336 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15337 wxString *arg2 = 0 ;
15338 bool arg3 ;
15339 bool result;
e811c8ce 15340 bool temp2 = False ;
d14a1e28
RD
15341 PyObject * obj0 = 0 ;
15342 PyObject * obj1 = 0 ;
15343 PyObject * obj2 = 0 ;
15344 char *kwnames[] = {
15345 (char *) "self",(char *) "key",(char *) "value", NULL
15346 };
15347
15348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15351 {
15352 arg2 = wxString_in_helper(obj1);
15353 if (arg2 == NULL) SWIG_fail;
e811c8ce 15354 temp2 = True;
d14a1e28 15355 }
15afbcd0
RD
15356 arg3 = (bool) SWIG_AsBool(obj2);
15357 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15358 {
15359 PyThreadState* __tstate = wxPyBeginAllowThreads();
15360 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15361
15362 wxPyEndAllowThreads(__tstate);
15363 if (PyErr_Occurred()) SWIG_fail;
15364 }
4d5c3d91 15365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15366 {
15367 if (temp2)
15368 delete arg2;
15369 }
15370 return resultobj;
15371 fail:
15372 {
15373 if (temp2)
15374 delete arg2;
15375 }
15376 return NULL;
15377}
15378
15379
15380static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15381 PyObject *resultobj;
15382 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 15383 bool arg2 = (bool) False ;
d14a1e28
RD
15384 bool result;
15385 PyObject * obj0 = 0 ;
15386 PyObject * obj1 = 0 ;
15387 char *kwnames[] = {
b88bce5f 15388 (char *) "self",(char *) "currentOnly", NULL
d14a1e28
RD
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15394 if (obj1) {
15afbcd0
RD
15395 arg2 = (bool) SWIG_AsBool(obj1);
15396 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15397 }
15398 {
15399 PyThreadState* __tstate = wxPyBeginAllowThreads();
15400 result = (bool)(arg1)->Flush(arg2);
15401
15402 wxPyEndAllowThreads(__tstate);
15403 if (PyErr_Occurred()) SWIG_fail;
15404 }
4d5c3d91 15405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15406 return resultobj;
15407 fail:
15408 return NULL;
15409}
15410
15411
15412static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15413 PyObject *resultobj;
15414 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15415 wxString *arg2 = 0 ;
15416 wxString *arg3 = 0 ;
15417 bool result;
e811c8ce
RD
15418 bool temp2 = False ;
15419 bool temp3 = False ;
d14a1e28
RD
15420 PyObject * obj0 = 0 ;
15421 PyObject * obj1 = 0 ;
15422 PyObject * obj2 = 0 ;
15423 char *kwnames[] = {
15424 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15425 };
15426
15427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15430 {
15431 arg2 = wxString_in_helper(obj1);
15432 if (arg2 == NULL) SWIG_fail;
e811c8ce 15433 temp2 = True;
d14a1e28
RD
15434 }
15435 {
15436 arg3 = wxString_in_helper(obj2);
15437 if (arg3 == NULL) SWIG_fail;
e811c8ce 15438 temp3 = True;
d14a1e28
RD
15439 }
15440 {
15441 PyThreadState* __tstate = wxPyBeginAllowThreads();
15442 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15443
15444 wxPyEndAllowThreads(__tstate);
15445 if (PyErr_Occurred()) SWIG_fail;
15446 }
4d5c3d91 15447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15448 {
15449 if (temp2)
15450 delete arg2;
15451 }
15452 {
15453 if (temp3)
15454 delete arg3;
15455 }
15456 return resultobj;
15457 fail:
15458 {
15459 if (temp2)
15460 delete arg2;
15461 }
15462 {
15463 if (temp3)
15464 delete arg3;
15465 }
15466 return NULL;
15467}
15468
15469
15470static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15471 PyObject *resultobj;
15472 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15473 wxString *arg2 = 0 ;
15474 wxString *arg3 = 0 ;
15475 bool result;
e811c8ce
RD
15476 bool temp2 = False ;
15477 bool temp3 = False ;
d14a1e28
RD
15478 PyObject * obj0 = 0 ;
15479 PyObject * obj1 = 0 ;
15480 PyObject * obj2 = 0 ;
15481 char *kwnames[] = {
15482 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15483 };
15484
15485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15488 {
15489 arg2 = wxString_in_helper(obj1);
15490 if (arg2 == NULL) SWIG_fail;
e811c8ce 15491 temp2 = True;
d14a1e28
RD
15492 }
15493 {
15494 arg3 = wxString_in_helper(obj2);
15495 if (arg3 == NULL) SWIG_fail;
e811c8ce 15496 temp3 = True;
d14a1e28
RD
15497 }
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
4d5c3d91 15505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15506 {
15507 if (temp2)
15508 delete arg2;
15509 }
15510 {
15511 if (temp3)
15512 delete arg3;
15513 }
15514 return resultobj;
15515 fail:
15516 {
15517 if (temp2)
15518 delete arg2;
15519 }
15520 {
15521 if (temp3)
15522 delete arg3;
15523 }
15524 return NULL;
15525}
15526
15527
15528static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj;
15530 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15531 wxString *arg2 = 0 ;
e811c8ce 15532 bool arg3 = (bool) True ;
d14a1e28 15533 bool result;
e811c8ce 15534 bool temp2 = False ;
d14a1e28
RD
15535 PyObject * obj0 = 0 ;
15536 PyObject * obj1 = 0 ;
15537 PyObject * obj2 = 0 ;
15538 char *kwnames[] = {
b88bce5f 15539 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
d14a1e28
RD
15540 };
15541
15542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
15543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15545 {
15546 arg2 = wxString_in_helper(obj1);
15547 if (arg2 == NULL) SWIG_fail;
e811c8ce 15548 temp2 = True;
d14a1e28
RD
15549 }
15550 if (obj2) {
15afbcd0
RD
15551 arg3 = (bool) SWIG_AsBool(obj2);
15552 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15553 }
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
15556 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
4d5c3d91 15561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15562 {
15563 if (temp2)
15564 delete arg2;
15565 }
15566 return resultobj;
15567 fail:
15568 {
15569 if (temp2)
15570 delete arg2;
15571 }
15572 return NULL;
15573}
15574
15575
15576static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15577 PyObject *resultobj;
15578 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15579 wxString *arg2 = 0 ;
15580 bool result;
e811c8ce 15581 bool temp2 = False ;
d14a1e28
RD
15582 PyObject * obj0 = 0 ;
15583 PyObject * obj1 = 0 ;
15584 char *kwnames[] = {
15585 (char *) "self",(char *) "key", NULL
15586 };
15587
15588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15591 {
15592 arg2 = wxString_in_helper(obj1);
15593 if (arg2 == NULL) SWIG_fail;
e811c8ce 15594 temp2 = True;
d14a1e28
RD
15595 }
15596 {
15597 PyThreadState* __tstate = wxPyBeginAllowThreads();
15598 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15599
15600 wxPyEndAllowThreads(__tstate);
15601 if (PyErr_Occurred()) SWIG_fail;
15602 }
4d5c3d91 15603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15604 {
15605 if (temp2)
15606 delete arg2;
15607 }
15608 return resultobj;
15609 fail:
15610 {
15611 if (temp2)
15612 delete arg2;
15613 }
15614 return NULL;
15615}
15616
15617
15618static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15619 PyObject *resultobj;
15620 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15621 bool result;
15622 PyObject * obj0 = 0 ;
15623 char *kwnames[] = {
15624 (char *) "self", NULL
15625 };
15626
15627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15afbcd0
RD
15628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
15632 result = (bool)(arg1)->DeleteAll();
15633
15634 wxPyEndAllowThreads(__tstate);
15635 if (PyErr_Occurred()) SWIG_fail;
15636 }
4d5c3d91 15637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15638 return resultobj;
15639 fail:
15640 return NULL;
15641}
15642
15643
b88bce5f 15644static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15645 PyObject *resultobj;
15646 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
b88bce5f 15647 bool arg2 = (bool) True ;
d14a1e28 15648 PyObject * obj0 = 0 ;
b88bce5f 15649 PyObject * obj1 = 0 ;
d14a1e28 15650 char *kwnames[] = {
b88bce5f 15651 (char *) "self",(char *) "doIt", NULL
d14a1e28
RD
15652 };
15653
b88bce5f 15654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f 15657 if (obj1) {
15afbcd0
RD
15658 arg2 = (bool) SWIG_AsBool(obj1);
15659 if (PyErr_Occurred()) SWIG_fail;
b88bce5f 15660 }
d14a1e28
RD
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 15663 (arg1)->SetExpandEnvVars(arg2);
d14a1e28
RD
15664
15665 wxPyEndAllowThreads(__tstate);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
b88bce5f 15668 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
15669 return resultobj;
15670 fail:
15671 return NULL;
15672}
15673
15674
b88bce5f 15675static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
15676 PyObject *resultobj;
15677 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
b88bce5f 15678 bool result;
d14a1e28 15679 PyObject * obj0 = 0 ;
d14a1e28 15680 char *kwnames[] = {
b88bce5f 15681 (char *) "self", NULL
d14a1e28
RD
15682 };
15683
b88bce5f 15684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15afbcd0
RD
15685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15687 {
15688 PyThreadState* __tstate = wxPyBeginAllowThreads();
b88bce5f 15689 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
d14a1e28
RD
15690
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
b88bce5f 15694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15695 return resultobj;
15696 fail:
15697 return NULL;
15698}
15699
15700
15701static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15702 PyObject *resultobj;
15703 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 15704 bool arg2 = (bool) True ;
d14a1e28
RD
15705 PyObject * obj0 = 0 ;
15706 PyObject * obj1 = 0 ;
15707 char *kwnames[] = {
b88bce5f 15708 (char *) "self",(char *) "doIt", NULL
d14a1e28
RD
15709 };
15710
15711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 15714 if (obj1) {
15afbcd0
RD
15715 arg2 = (bool) SWIG_AsBool(obj1);
15716 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15717 }
15718 {
15719 PyThreadState* __tstate = wxPyBeginAllowThreads();
15720 (arg1)->SetRecordDefaults(arg2);
15721
15722 wxPyEndAllowThreads(__tstate);
15723 if (PyErr_Occurred()) SWIG_fail;
15724 }
15725 Py_INCREF(Py_None); resultobj = Py_None;
15726 return resultobj;
15727 fail:
15728 return NULL;
15729}
15730
15731
15732static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15733 PyObject *resultobj;
15734 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15735 bool result;
15736 PyObject * obj0 = 0 ;
15737 char *kwnames[] = {
15738 (char *) "self", NULL
15739 };
15740
15741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15afbcd0
RD
15742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15744 {
15745 PyThreadState* __tstate = wxPyBeginAllowThreads();
15746 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15747
15748 wxPyEndAllowThreads(__tstate);
15749 if (PyErr_Occurred()) SWIG_fail;
15750 }
4d5c3d91 15751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15752 return resultobj;
15753 fail:
15754 return NULL;
15755}
15756
15757
15758static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15759 PyObject *resultobj;
15760 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15761 wxString *arg2 = 0 ;
15762 wxString result;
e811c8ce 15763 bool temp2 = False ;
d14a1e28
RD
15764 PyObject * obj0 = 0 ;
15765 PyObject * obj1 = 0 ;
15766 char *kwnames[] = {
15767 (char *) "self",(char *) "str", NULL
15768 };
15769
15770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15773 {
15774 arg2 = wxString_in_helper(obj1);
15775 if (arg2 == NULL) SWIG_fail;
e811c8ce 15776 temp2 = True;
d14a1e28
RD
15777 }
15778 {
15779 PyThreadState* __tstate = wxPyBeginAllowThreads();
15780 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15781
15782 wxPyEndAllowThreads(__tstate);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 {
15786#if wxUSE_UNICODE
15787 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15788#else
15789 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15790#endif
15791 }
15792 {
15793 if (temp2)
15794 delete arg2;
15795 }
15796 return resultobj;
15797 fail:
15798 {
15799 if (temp2)
15800 delete arg2;
15801 }
15802 return NULL;
15803}
15804
15805
15806static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15807 PyObject *resultobj;
15808 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15809 wxString result;
15810 PyObject * obj0 = 0 ;
15811 char *kwnames[] = {
15812 (char *) "self", NULL
15813 };
15814
15815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
15afbcd0
RD
15816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15818 {
15819 PyThreadState* __tstate = wxPyBeginAllowThreads();
15820 result = ((wxConfigBase const *)arg1)->GetAppName();
15821
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 {
15826#if wxUSE_UNICODE
15827 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15828#else
15829 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15830#endif
15831 }
15832 return resultobj;
15833 fail:
15834 return NULL;
15835}
15836
15837
15838static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj;
15840 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15841 wxString result;
15842 PyObject * obj0 = 0 ;
15843 char *kwnames[] = {
15844 (char *) "self", NULL
15845 };
15846
15847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
15afbcd0
RD
15848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15850 {
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 result = ((wxConfigBase const *)arg1)->GetVendorName();
15853
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 {
15858#if wxUSE_UNICODE
15859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15860#else
15861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15862#endif
15863 }
15864 return resultobj;
15865 fail:
15866 return NULL;
15867}
15868
15869
15870static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15871 PyObject *resultobj;
15872 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15873 wxString *arg2 = 0 ;
e811c8ce 15874 bool temp2 = False ;
d14a1e28
RD
15875 PyObject * obj0 = 0 ;
15876 PyObject * obj1 = 0 ;
15877 char *kwnames[] = {
15878 (char *) "self",(char *) "appName", NULL
15879 };
15880
15881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15884 {
15885 arg2 = wxString_in_helper(obj1);
15886 if (arg2 == NULL) SWIG_fail;
e811c8ce 15887 temp2 = True;
d14a1e28
RD
15888 }
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 (arg1)->SetAppName((wxString const &)*arg2);
15892
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 Py_INCREF(Py_None); resultobj = Py_None;
15897 {
15898 if (temp2)
15899 delete arg2;
15900 }
15901 return resultobj;
15902 fail:
15903 {
15904 if (temp2)
15905 delete arg2;
15906 }
15907 return NULL;
15908}
15909
15910
15911static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15912 PyObject *resultobj;
15913 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15914 wxString *arg2 = 0 ;
e811c8ce 15915 bool temp2 = False ;
d14a1e28
RD
15916 PyObject * obj0 = 0 ;
15917 PyObject * obj1 = 0 ;
15918 char *kwnames[] = {
15919 (char *) "self",(char *) "vendorName", NULL
15920 };
15921
15922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15925 {
15926 arg2 = wxString_in_helper(obj1);
15927 if (arg2 == NULL) SWIG_fail;
e811c8ce 15928 temp2 = True;
d14a1e28
RD
15929 }
15930 {
15931 PyThreadState* __tstate = wxPyBeginAllowThreads();
15932 (arg1)->SetVendorName((wxString const &)*arg2);
15933
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 Py_INCREF(Py_None); resultobj = Py_None;
15938 {
15939 if (temp2)
15940 delete arg2;
15941 }
15942 return resultobj;
15943 fail:
15944 {
15945 if (temp2)
15946 delete arg2;
15947 }
15948 return NULL;
15949}
15950
15951
15952static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15953 PyObject *resultobj;
15954 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15955 long arg2 ;
15956 PyObject * obj0 = 0 ;
994141e6 15957 PyObject * obj1 = 0 ;
d14a1e28
RD
15958 char *kwnames[] = {
15959 (char *) "self",(char *) "style", NULL
15960 };
15961
994141e6 15962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
15963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15965 arg2 = (long) SWIG_AsLong(obj1);
15966 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
15967 {
15968 PyThreadState* __tstate = wxPyBeginAllowThreads();
15969 (arg1)->SetStyle(arg2);
15970
15971 wxPyEndAllowThreads(__tstate);
15972 if (PyErr_Occurred()) SWIG_fail;
15973 }
15974 Py_INCREF(Py_None); resultobj = Py_None;
15975 return resultobj;
15976 fail:
15977 return NULL;
15978}
15979
15980
15981static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15982 PyObject *resultobj;
15983 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15984 long result;
15985 PyObject * obj0 = 0 ;
15986 char *kwnames[] = {
15987 (char *) "self", NULL
15988 };
15989
15990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
15afbcd0
RD
15991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
15993 {
15994 PyThreadState* __tstate = wxPyBeginAllowThreads();
15995 result = (long)((wxConfigBase const *)arg1)->GetStyle();
15996
15997 wxPyEndAllowThreads(__tstate);
15998 if (PyErr_Occurred()) SWIG_fail;
15999 }
15afbcd0 16000 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
16001 return resultobj;
16002 fail:
16003 return NULL;
16004}
16005
16006
16007static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16008 PyObject *obj;
16009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16010 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16011 Py_INCREF(obj);
16012 return Py_BuildValue((char *)"");
16013}
d14a1e28
RD
16014static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16015 PyObject *resultobj;
16016 wxString const &arg1_defvalue = wxPyEmptyString ;
16017 wxString *arg1 = (wxString *) &arg1_defvalue ;
16018 wxString const &arg2_defvalue = wxPyEmptyString ;
16019 wxString *arg2 = (wxString *) &arg2_defvalue ;
16020 wxString const &arg3_defvalue = wxPyEmptyString ;
16021 wxString *arg3 = (wxString *) &arg3_defvalue ;
16022 wxString const &arg4_defvalue = wxPyEmptyString ;
16023 wxString *arg4 = (wxString *) &arg4_defvalue ;
16024 long arg5 = (long) 0 ;
16025 wxConfig *result;
e811c8ce
RD
16026 bool temp1 = False ;
16027 bool temp2 = False ;
16028 bool temp3 = False ;
16029 bool temp4 = False ;
d14a1e28
RD
16030 PyObject * obj0 = 0 ;
16031 PyObject * obj1 = 0 ;
16032 PyObject * obj2 = 0 ;
16033 PyObject * obj3 = 0 ;
994141e6 16034 PyObject * obj4 = 0 ;
d14a1e28
RD
16035 char *kwnames[] = {
16036 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16037 };
16038
994141e6 16039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28
RD
16040 if (obj0) {
16041 {
16042 arg1 = wxString_in_helper(obj0);
16043 if (arg1 == NULL) SWIG_fail;
e811c8ce 16044 temp1 = True;
d14a1e28
RD
16045 }
16046 }
16047 if (obj1) {
16048 {
16049 arg2 = wxString_in_helper(obj1);
16050 if (arg2 == NULL) SWIG_fail;
e811c8ce 16051 temp2 = True;
d14a1e28
RD
16052 }
16053 }
16054 if (obj2) {
16055 {
16056 arg3 = wxString_in_helper(obj2);
16057 if (arg3 == NULL) SWIG_fail;
e811c8ce 16058 temp3 = True;
d14a1e28
RD
16059 }
16060 }
16061 if (obj3) {
16062 {
16063 arg4 = wxString_in_helper(obj3);
16064 if (arg4 == NULL) SWIG_fail;
e811c8ce 16065 temp4 = True;
d14a1e28
RD
16066 }
16067 }
994141e6 16068 if (obj4) {
15afbcd0
RD
16069 arg5 = (long) SWIG_AsLong(obj4);
16070 if (PyErr_Occurred()) SWIG_fail;
994141e6 16071 }
d14a1e28
RD
16072 {
16073 PyThreadState* __tstate = wxPyBeginAllowThreads();
16074 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16075
16076 wxPyEndAllowThreads(__tstate);
16077 if (PyErr_Occurred()) SWIG_fail;
16078 }
15afbcd0 16079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
d14a1e28
RD
16080 {
16081 if (temp1)
16082 delete arg1;
16083 }
16084 {
16085 if (temp2)
16086 delete arg2;
16087 }
16088 {
16089 if (temp3)
16090 delete arg3;
16091 }
16092 {
16093 if (temp4)
16094 delete arg4;
16095 }
16096 return resultobj;
16097 fail:
16098 {
16099 if (temp1)
16100 delete arg1;
16101 }
16102 {
16103 if (temp2)
16104 delete arg2;
16105 }
16106 {
16107 if (temp3)
16108 delete arg3;
16109 }
16110 {
16111 if (temp4)
16112 delete arg4;
16113 }
16114 return NULL;
16115}
16116
16117
16118static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16119 PyObject *resultobj;
16120 wxConfig *arg1 = (wxConfig *) 0 ;
16121 PyObject * obj0 = 0 ;
16122 char *kwnames[] = {
16123 (char *) "self", NULL
16124 };
16125
16126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
15afbcd0
RD
16127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 delete arg1;
16132
16133 wxPyEndAllowThreads(__tstate);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 }
16136 Py_INCREF(Py_None); resultobj = Py_None;
16137 return resultobj;
16138 fail:
16139 return NULL;
16140}
16141
16142
16143static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16144 PyObject *obj;
16145 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16146 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16147 Py_INCREF(obj);
16148 return Py_BuildValue((char *)"");
16149}
16150static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16151 PyObject *resultobj;
16152 wxString const &arg1_defvalue = wxPyEmptyString ;
16153 wxString *arg1 = (wxString *) &arg1_defvalue ;
16154 wxString const &arg2_defvalue = wxPyEmptyString ;
16155 wxString *arg2 = (wxString *) &arg2_defvalue ;
16156 wxString const &arg3_defvalue = wxPyEmptyString ;
16157 wxString *arg3 = (wxString *) &arg3_defvalue ;
16158 wxString const &arg4_defvalue = wxPyEmptyString ;
16159 wxString *arg4 = (wxString *) &arg4_defvalue ;
16160 long arg5 = (long) 0 ;
16161 wxFileConfig *result;
e811c8ce
RD
16162 bool temp1 = False ;
16163 bool temp2 = False ;
16164 bool temp3 = False ;
16165 bool temp4 = False ;
d14a1e28
RD
16166 PyObject * obj0 = 0 ;
16167 PyObject * obj1 = 0 ;
16168 PyObject * obj2 = 0 ;
16169 PyObject * obj3 = 0 ;
994141e6 16170 PyObject * obj4 = 0 ;
d14a1e28
RD
16171 char *kwnames[] = {
16172 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16173 };
16174
994141e6 16175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28
RD
16176 if (obj0) {
16177 {
16178 arg1 = wxString_in_helper(obj0);
16179 if (arg1 == NULL) SWIG_fail;
e811c8ce 16180 temp1 = True;
d14a1e28
RD
16181 }
16182 }
16183 if (obj1) {
16184 {
16185 arg2 = wxString_in_helper(obj1);
16186 if (arg2 == NULL) SWIG_fail;
e811c8ce 16187 temp2 = True;
d14a1e28
RD
16188 }
16189 }
16190 if (obj2) {
16191 {
16192 arg3 = wxString_in_helper(obj2);
16193 if (arg3 == NULL) SWIG_fail;
e811c8ce 16194 temp3 = True;
d14a1e28
RD
16195 }
16196 }
16197 if (obj3) {
16198 {
16199 arg4 = wxString_in_helper(obj3);
16200 if (arg4 == NULL) SWIG_fail;
e811c8ce 16201 temp4 = True;
d14a1e28
RD
16202 }
16203 }
994141e6 16204 if (obj4) {
15afbcd0
RD
16205 arg5 = (long) SWIG_AsLong(obj4);
16206 if (PyErr_Occurred()) SWIG_fail;
994141e6 16207 }
d14a1e28
RD
16208 {
16209 PyThreadState* __tstate = wxPyBeginAllowThreads();
16210 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16211
16212 wxPyEndAllowThreads(__tstate);
16213 if (PyErr_Occurred()) SWIG_fail;
16214 }
15afbcd0 16215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
d14a1e28
RD
16216 {
16217 if (temp1)
16218 delete arg1;
16219 }
16220 {
16221 if (temp2)
16222 delete arg2;
16223 }
16224 {
16225 if (temp3)
16226 delete arg3;
16227 }
16228 {
16229 if (temp4)
16230 delete arg4;
16231 }
16232 return resultobj;
16233 fail:
16234 {
16235 if (temp1)
16236 delete arg1;
16237 }
16238 {
16239 if (temp2)
16240 delete arg2;
16241 }
16242 {
16243 if (temp3)
16244 delete arg3;
16245 }
16246 {
16247 if (temp4)
16248 delete arg4;
16249 }
16250 return NULL;
16251}
16252
16253
16254static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16255 PyObject *resultobj;
16256 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16257 PyObject * obj0 = 0 ;
16258 char *kwnames[] = {
16259 (char *) "self", NULL
16260 };
16261
16262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
15afbcd0
RD
16263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
16265 {
16266 PyThreadState* __tstate = wxPyBeginAllowThreads();
16267 delete arg1;
16268
16269 wxPyEndAllowThreads(__tstate);
16270 if (PyErr_Occurred()) SWIG_fail;
16271 }
16272 Py_INCREF(Py_None); resultobj = Py_None;
16273 return resultobj;
16274 fail:
16275 return NULL;
16276}
16277
16278
16279static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16280 PyObject *obj;
16281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16282 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16283 Py_INCREF(obj);
16284 return Py_BuildValue((char *)"");
16285}
b88bce5f
RD
16286static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16287 PyObject *resultobj;
16288 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16289 wxString *arg2 = 0 ;
16290 wxConfigPathChanger *result;
16291 bool temp2 = False ;
16292 PyObject * obj0 = 0 ;
16293 PyObject * obj1 = 0 ;
16294 char *kwnames[] = {
16295 (char *) "config",(char *) "entry", NULL
16296 };
16297
16298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
16301 {
16302 arg2 = wxString_in_helper(obj1);
16303 if (arg2 == NULL) SWIG_fail;
16304 temp2 = True;
16305 }
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16309
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
15afbcd0 16313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
b88bce5f
RD
16314 {
16315 if (temp2)
16316 delete arg2;
16317 }
16318 return resultobj;
16319 fail:
16320 {
16321 if (temp2)
16322 delete arg2;
16323 }
16324 return NULL;
16325}
16326
16327
16328static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16329 PyObject *resultobj;
16330 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16331 PyObject * obj0 = 0 ;
16332 char *kwnames[] = {
16333 (char *) "self", NULL
16334 };
16335
16336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
15afbcd0
RD
16337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
16339 {
16340 PyThreadState* __tstate = wxPyBeginAllowThreads();
16341 delete arg1;
16342
16343 wxPyEndAllowThreads(__tstate);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 Py_INCREF(Py_None); resultobj = Py_None;
16347 return resultobj;
16348 fail:
16349 return NULL;
16350}
16351
16352
16353static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16354 PyObject *resultobj;
16355 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16356 wxString *result;
16357 PyObject * obj0 = 0 ;
16358 char *kwnames[] = {
16359 (char *) "self", NULL
16360 };
16361
16362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
15afbcd0
RD
16363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
b88bce5f
RD
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 {
16368 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16369 result = (wxString *) &_result_ref;
16370 }
16371
16372 wxPyEndAllowThreads(__tstate);
16373 if (PyErr_Occurred()) SWIG_fail;
16374 }
16375 {
16376#if wxUSE_UNICODE
16377 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16378#else
16379 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16380#endif
16381 }
16382 return resultobj;
16383 fail:
16384 return NULL;
16385}
16386
16387
16388static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16389 PyObject *obj;
16390 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16391 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16392 Py_INCREF(obj);
16393 return Py_BuildValue((char *)"");
16394}
d14a1e28
RD
16395static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16396 PyObject *resultobj;
16397 wxString *arg1 = 0 ;
16398 wxString result;
e811c8ce 16399 bool temp1 = False ;
d14a1e28
RD
16400 PyObject * obj0 = 0 ;
16401 char *kwnames[] = {
16402 (char *) "sz", NULL
16403 };
16404
16405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16406 {
16407 arg1 = wxString_in_helper(obj0);
16408 if (arg1 == NULL) SWIG_fail;
e811c8ce 16409 temp1 = True;
d14a1e28
RD
16410 }
16411 {
16412 PyThreadState* __tstate = wxPyBeginAllowThreads();
16413 result = wxExpandEnvVars((wxString const &)*arg1);
16414
16415 wxPyEndAllowThreads(__tstate);
16416 if (PyErr_Occurred()) SWIG_fail;
16417 }
16418 {
16419#if wxUSE_UNICODE
16420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16421#else
16422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16423#endif
16424 }
16425 {
16426 if (temp1)
16427 delete arg1;
16428 }
16429 return resultobj;
16430 fail:
16431 {
16432 if (temp1)
16433 delete arg1;
16434 }
16435 return NULL;
16436}
16437
16438
b2dc1044
RD
16439static int _wrap_DateFormatStr_set(PyObject *_val) {
16440 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16441 return 1;
16442}
16443
16444
16445static PyObject *_wrap_DateFormatStr_get() {
16446 PyObject *pyobj;
16447
16448 {
16449#if wxUSE_UNICODE
16450 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16451#else
16452 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16453#endif
16454 }
16455 return pyobj;
16456}
16457
16458
16459static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16460 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16461 return 1;
16462}
16463
16464
16465static PyObject *_wrap_TimeSpanFormatStr_get() {
16466 PyObject *pyobj;
16467
16468 {
16469#if wxUSE_UNICODE
16470 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16471#else
16472 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16473#endif
16474 }
16475 return pyobj;
16476}
16477
16478
d14a1e28
RD
16479static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16480 PyObject *resultobj;
16481 int arg1 ;
994141e6 16482 PyObject * obj0 = 0 ;
d14a1e28
RD
16483 char *kwnames[] = {
16484 (char *) "country", NULL
16485 };
16486
994141e6 16487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
15afbcd0
RD
16488 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16489 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16493
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 Py_INCREF(Py_None); resultobj = Py_None;
16498 return resultobj;
16499 fail:
16500 return NULL;
16501}
16502
16503
16504static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16505 PyObject *resultobj;
16506 int result;
16507 char *kwnames[] = {
16508 NULL
16509 };
16510
16511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16512 {
16513 PyThreadState* __tstate = wxPyBeginAllowThreads();
16514 result = (int)wxDateTime::GetCountry();
16515
16516 wxPyEndAllowThreads(__tstate);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
15afbcd0 16519 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16520 return resultobj;
16521 fail:
16522 return NULL;
16523}
16524
16525
16526static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16527 PyObject *resultobj;
16528 int arg1 = (int) wxDateTime::Country_Default ;
16529 bool result;
994141e6 16530 PyObject * obj0 = 0 ;
d14a1e28
RD
16531 char *kwnames[] = {
16532 (char *) "country", NULL
16533 };
16534
994141e6
RD
16535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16536 if (obj0) {
15afbcd0
RD
16537 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16538 if (PyErr_Occurred()) SWIG_fail;
994141e6 16539 }
d14a1e28
RD
16540 {
16541 PyThreadState* __tstate = wxPyBeginAllowThreads();
16542 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16543
16544 wxPyEndAllowThreads(__tstate);
16545 if (PyErr_Occurred()) SWIG_fail;
16546 }
4d5c3d91 16547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16548 return resultobj;
16549 fail:
16550 return NULL;
16551}
16552
16553
16554static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16555 PyObject *resultobj;
16556 int arg1 = (int) wxDateTime::Gregorian ;
16557 int result;
994141e6 16558 PyObject * obj0 = 0 ;
d14a1e28
RD
16559 char *kwnames[] = {
16560 (char *) "cal", NULL
16561 };
16562
994141e6
RD
16563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16564 if (obj0) {
15afbcd0
RD
16565 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16566 if (PyErr_Occurred()) SWIG_fail;
994141e6 16567 }
d14a1e28
RD
16568 {
16569 PyThreadState* __tstate = wxPyBeginAllowThreads();
16570 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16571
16572 wxPyEndAllowThreads(__tstate);
16573 if (PyErr_Occurred()) SWIG_fail;
16574 }
15afbcd0 16575 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16576 return resultobj;
16577 fail:
16578 return NULL;
16579}
16580
16581
16582static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16583 PyObject *resultobj;
16584 int arg1 ;
16585 int result;
994141e6 16586 PyObject * obj0 = 0 ;
d14a1e28
RD
16587 char *kwnames[] = {
16588 (char *) "year", NULL
16589 };
16590
994141e6 16591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
15afbcd0
RD
16592 arg1 = (int) SWIG_AsInt(obj0);
16593 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
16594 {
16595 PyThreadState* __tstate = wxPyBeginAllowThreads();
16596 result = (int)wxDateTime::ConvertYearToBC(arg1);
16597
16598 wxPyEndAllowThreads(__tstate);
16599 if (PyErr_Occurred()) SWIG_fail;
16600 }
15afbcd0 16601 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16602 return resultobj;
16603 fail:
16604 return NULL;
16605}
16606
16607
16608static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16609 PyObject *resultobj;
16610 int arg1 = (int) wxDateTime::Gregorian ;
16611 int result;
994141e6 16612 PyObject * obj0 = 0 ;
d14a1e28
RD
16613 char *kwnames[] = {
16614 (char *) "cal", NULL
16615 };
16616
994141e6
RD
16617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16618 if (obj0) {
15afbcd0
RD
16619 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16620 if (PyErr_Occurred()) SWIG_fail;
994141e6 16621 }
d14a1e28
RD
16622 {
16623 PyThreadState* __tstate = wxPyBeginAllowThreads();
16624 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16625
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
15afbcd0 16629 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16630 return resultobj;
16631 fail:
16632 return NULL;
16633}
16634
16635
16636static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj;
16638 int arg1 = (int) wxDateTime::Inv_Year ;
16639 int arg2 = (int) wxDateTime::Gregorian ;
16640 bool result;
994141e6
RD
16641 PyObject * obj0 = 0 ;
16642 PyObject * obj1 = 0 ;
d14a1e28
RD
16643 char *kwnames[] = {
16644 (char *) "year",(char *) "cal", NULL
16645 };
16646
994141e6
RD
16647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16648 if (obj0) {
15afbcd0
RD
16649 arg1 = (int) SWIG_AsInt(obj0);
16650 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
16651 }
16652 if (obj1) {
15afbcd0
RD
16653 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16654 if (PyErr_Occurred()) SWIG_fail;
994141e6 16655 }
d14a1e28
RD
16656 {
16657 PyThreadState* __tstate = wxPyBeginAllowThreads();
16658 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16659
16660 wxPyEndAllowThreads(__tstate);
16661 if (PyErr_Occurred()) SWIG_fail;
16662 }
4d5c3d91 16663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16664 return resultobj;
16665 fail:
16666 return NULL;
16667}
16668
16669
16670static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16671 PyObject *resultobj;
16672 int arg1 = (int) wxDateTime::Inv_Year ;
16673 int result;
994141e6 16674 PyObject * obj0 = 0 ;
d14a1e28
RD
16675 char *kwnames[] = {
16676 (char *) "year", NULL
16677 };
16678
994141e6
RD
16679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16680 if (obj0) {
15afbcd0
RD
16681 arg1 = (int) SWIG_AsInt(obj0);
16682 if (PyErr_Occurred()) SWIG_fail;
994141e6 16683 }
d14a1e28
RD
16684 {
16685 PyThreadState* __tstate = wxPyBeginAllowThreads();
16686 result = (int)wxDateTime::GetCentury(arg1);
16687
16688 wxPyEndAllowThreads(__tstate);
16689 if (PyErr_Occurred()) SWIG_fail;
16690 }
15afbcd0 16691 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16692 return resultobj;
16693 fail:
16694 return NULL;
16695}
16696
16697
16698static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16699 PyObject *resultobj;
16700 int arg1 ;
16701 int arg2 = (int) wxDateTime::Gregorian ;
322913ce 16702 int result;
994141e6
RD
16703 PyObject * obj0 = 0 ;
16704 PyObject * obj1 = 0 ;
d14a1e28
RD
16705 char *kwnames[] = {
16706 (char *) "year",(char *) "cal", NULL
16707 };
16708
994141e6 16709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16710 arg1 = (int) SWIG_AsInt(obj0);
16711 if (PyErr_Occurred()) SWIG_fail;
994141e6 16712 if (obj1) {
15afbcd0
RD
16713 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16714 if (PyErr_Occurred()) SWIG_fail;
994141e6 16715 }
d14a1e28
RD
16716 {
16717 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 16718 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
d14a1e28
RD
16719
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
15afbcd0 16723 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16724 return resultobj;
16725 fail:
16726 return NULL;
16727}
16728
16729
16730static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16731 PyObject *resultobj;
16732 int arg1 ;
16733 int arg2 = (int) wxDateTime::Inv_Year ;
16734 int arg3 = (int) wxDateTime::Gregorian ;
322913ce 16735 int result;
994141e6
RD
16736 PyObject * obj0 = 0 ;
16737 PyObject * obj1 = 0 ;
16738 PyObject * obj2 = 0 ;
d14a1e28
RD
16739 char *kwnames[] = {
16740 (char *) "month",(char *) "year",(char *) "cal", NULL
16741 };
16742
994141e6 16743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
16744 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16745 if (PyErr_Occurred()) SWIG_fail;
994141e6 16746 if (obj1) {
15afbcd0
RD
16747 arg2 = (int) SWIG_AsInt(obj1);
16748 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
16749 }
16750 if (obj2) {
15afbcd0
RD
16751 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16752 if (PyErr_Occurred()) SWIG_fail;
994141e6 16753 }
d14a1e28
RD
16754 {
16755 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 16756 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
d14a1e28
RD
16757
16758 wxPyEndAllowThreads(__tstate);
16759 if (PyErr_Occurred()) SWIG_fail;
16760 }
15afbcd0 16761 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
16762 return resultobj;
16763 fail:
16764 return NULL;
16765}
16766
16767
16768static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16769 PyObject *resultobj;
16770 int arg1 ;
16771 int arg2 = (int) wxDateTime::Name_Full ;
16772 wxString result;
994141e6
RD
16773 PyObject * obj0 = 0 ;
16774 PyObject * obj1 = 0 ;
d14a1e28
RD
16775 char *kwnames[] = {
16776 (char *) "month",(char *) "flags", NULL
16777 };
16778
994141e6 16779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16780 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16781 if (PyErr_Occurred()) SWIG_fail;
994141e6 16782 if (obj1) {
15afbcd0
RD
16783 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16784 if (PyErr_Occurred()) SWIG_fail;
994141e6 16785 }
d14a1e28
RD
16786 {
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16789
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 {
16794#if wxUSE_UNICODE
16795 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16796#else
16797 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16798#endif
16799 }
16800 return resultobj;
16801 fail:
16802 return NULL;
16803}
16804
16805
16806static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
16807 PyObject *resultobj;
16808 int arg1 ;
16809 int arg2 = (int) wxDateTime::Name_Full ;
16810 wxString result;
994141e6
RD
16811 PyObject * obj0 = 0 ;
16812 PyObject * obj1 = 0 ;
d14a1e28
RD
16813 char *kwnames[] = {
16814 (char *) "weekday",(char *) "flags", NULL
16815 };
16816
994141e6 16817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
16818 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
16819 if (PyErr_Occurred()) SWIG_fail;
994141e6 16820 if (obj1) {
15afbcd0
RD
16821 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16822 if (PyErr_Occurred()) SWIG_fail;
994141e6 16823 }
d14a1e28
RD
16824 {
16825 PyThreadState* __tstate = wxPyBeginAllowThreads();
16826 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
16827
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 {
16832#if wxUSE_UNICODE
16833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16834#else
16835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16836#endif
16837 }
16838 return resultobj;
16839 fail:
16840 return NULL;
16841}
16842
16843
16844static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
16845 PyObject *resultobj;
16846 wxString *arg1 = (wxString *) 0 ;
16847 wxString *arg2 = (wxString *) 0 ;
7eae615b
RD
16848 bool temp1 = False ;
16849 bool temp2 = False ;
d14a1e28
RD
16850 PyObject * obj0 = 0 ;
16851 PyObject * obj1 = 0 ;
16852 char *kwnames[] = {
16853 (char *) "OUTPUT",(char *) "OUTPUT", NULL
16854 };
16855
16856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
7eae615b
RD
16857 {
16858 arg1 = wxString_in_helper(obj0);
16859 if (arg1 == NULL) SWIG_fail;
16860 temp1 = True;
16861 }
16862 {
16863 arg2 = wxString_in_helper(obj1);
16864 if (arg2 == NULL) SWIG_fail;
16865 temp2 = True;
16866 }
d14a1e28
RD
16867 {
16868 PyThreadState* __tstate = wxPyBeginAllowThreads();
16869 wxDateTime::GetAmPmStrings(arg1,arg2);
16870
16871 wxPyEndAllowThreads(__tstate);
16872 if (PyErr_Occurred()) SWIG_fail;
16873 }
16874 Py_INCREF(Py_None); resultobj = Py_None;
7eae615b
RD
16875 {
16876 if (temp1)
16877 delete arg1;
16878 }
16879 {
16880 if (temp2)
16881 delete arg2;
16882 }
d14a1e28
RD
16883 return resultobj;
16884 fail:
7eae615b
RD
16885 {
16886 if (temp1)
16887 delete arg1;
16888 }
16889 {
16890 if (temp2)
16891 delete arg2;
16892 }
d14a1e28
RD
16893 return NULL;
16894}
16895
16896
16897static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
16898 PyObject *resultobj;
16899 int arg1 = (int) wxDateTime::Inv_Year ;
16900 int arg2 = (int) wxDateTime::Country_Default ;
16901 bool result;
994141e6
RD
16902 PyObject * obj0 = 0 ;
16903 PyObject * obj1 = 0 ;
d14a1e28
RD
16904 char *kwnames[] = {
16905 (char *) "year",(char *) "country", NULL
16906 };
16907
994141e6
RD
16908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
16909 if (obj0) {
15afbcd0
RD
16910 arg1 = (int) SWIG_AsInt(obj0);
16911 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
16912 }
16913 if (obj1) {
15afbcd0
RD
16914 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16915 if (PyErr_Occurred()) SWIG_fail;
994141e6 16916 }
d14a1e28
RD
16917 {
16918 PyThreadState* __tstate = wxPyBeginAllowThreads();
16919 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
16920
16921 wxPyEndAllowThreads(__tstate);
16922 if (PyErr_Occurred()) SWIG_fail;
16923 }
4d5c3d91 16924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16925 return resultobj;
16926 fail:
16927 return NULL;
16928}
16929
16930
16931static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16932 PyObject *resultobj;
16933 int arg1 = (int) wxDateTime::Inv_Year ;
16934 int arg2 = (int) wxDateTime::Country_Default ;
16935 wxDateTime result;
994141e6
RD
16936 PyObject * obj0 = 0 ;
16937 PyObject * obj1 = 0 ;
d14a1e28
RD
16938 char *kwnames[] = {
16939 (char *) "year",(char *) "country", NULL
16940 };
16941
994141e6
RD
16942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
16943 if (obj0) {
15afbcd0
RD
16944 arg1 = (int) SWIG_AsInt(obj0);
16945 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
16946 }
16947 if (obj1) {
15afbcd0
RD
16948 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16949 if (PyErr_Occurred()) SWIG_fail;
994141e6 16950 }
d14a1e28
RD
16951 {
16952 PyThreadState* __tstate = wxPyBeginAllowThreads();
16953 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
16954
16955 wxPyEndAllowThreads(__tstate);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 }
16958 {
16959 wxDateTime * resultptr;
16960 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 16961 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
16962 }
16963 return resultobj;
16964 fail:
16965 return NULL;
16966}
16967
16968
16969static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16970 PyObject *resultobj;
16971 int arg1 = (int) wxDateTime::Inv_Year ;
16972 int arg2 = (int) wxDateTime::Country_Default ;
16973 wxDateTime result;
994141e6
RD
16974 PyObject * obj0 = 0 ;
16975 PyObject * obj1 = 0 ;
d14a1e28
RD
16976 char *kwnames[] = {
16977 (char *) "year",(char *) "country", NULL
16978 };
16979
994141e6
RD
16980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
16981 if (obj0) {
15afbcd0
RD
16982 arg1 = (int) SWIG_AsInt(obj0);
16983 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
16984 }
16985 if (obj1) {
15afbcd0
RD
16986 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16987 if (PyErr_Occurred()) SWIG_fail;
994141e6 16988 }
d14a1e28
RD
16989 {
16990 PyThreadState* __tstate = wxPyBeginAllowThreads();
16991 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
16992
16993 wxPyEndAllowThreads(__tstate);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
16997 wxDateTime * resultptr;
16998 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 16999 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17000 }
17001 return resultobj;
17002 fail:
17003 return NULL;
17004}
17005
17006
17007static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17008 PyObject *resultobj;
17009 wxDateTime result;
17010 char *kwnames[] = {
17011 NULL
17012 };
17013
17014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17015 {
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = wxDateTime::Now();
17018
17019 wxPyEndAllowThreads(__tstate);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 }
17022 {
17023 wxDateTime * resultptr;
17024 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 17025 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17026 }
17027 return resultobj;
17028 fail:
17029 return NULL;
17030}
17031
17032
17033static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17034 PyObject *resultobj;
17035 wxDateTime result;
17036 char *kwnames[] = {
17037 NULL
17038 };
17039
17040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17041 {
17042 PyThreadState* __tstate = wxPyBeginAllowThreads();
17043 result = wxDateTime::UNow();
17044
17045 wxPyEndAllowThreads(__tstate);
17046 if (PyErr_Occurred()) SWIG_fail;
17047 }
17048 {
17049 wxDateTime * resultptr;
17050 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 17051 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17052 }
17053 return resultobj;
17054 fail:
17055 return NULL;
17056}
17057
17058
17059static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17060 PyObject *resultobj;
17061 wxDateTime result;
17062 char *kwnames[] = {
17063 NULL
17064 };
17065
17066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17067 {
17068 PyThreadState* __tstate = wxPyBeginAllowThreads();
17069 result = wxDateTime::Today();
17070
17071 wxPyEndAllowThreads(__tstate);
17072 if (PyErr_Occurred()) SWIG_fail;
17073 }
17074 {
17075 wxDateTime * resultptr;
17076 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 17077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17078 }
17079 return resultobj;
17080 fail:
17081 return NULL;
17082}
17083
17084
17085static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17086 PyObject *resultobj;
17087 wxDateTime *result;
17088 char *kwnames[] = {
17089 NULL
17090 };
17091
17092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17093 {
17094 PyThreadState* __tstate = wxPyBeginAllowThreads();
17095 result = (wxDateTime *)new wxDateTime();
17096
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
15afbcd0 17100 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17101 return resultobj;
17102 fail:
17103 return NULL;
17104}
17105
17106
17107static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17108 PyObject *resultobj;
17109 time_t arg1 ;
17110 wxDateTime *result;
17111 PyObject * obj0 = 0 ;
17112 char *kwnames[] = {
17113 (char *) "timet", NULL
17114 };
17115
17116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
15afbcd0
RD
17117 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17118 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 result = (wxDateTime *)new wxDateTime(arg1);
17122
17123 wxPyEndAllowThreads(__tstate);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
15afbcd0 17126 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17127 return resultobj;
17128 fail:
17129 return NULL;
17130}
17131
17132
17133static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17134 PyObject *resultobj;
17135 double arg1 ;
17136 wxDateTime *result;
994141e6 17137 PyObject * obj0 = 0 ;
d14a1e28
RD
17138 char *kwnames[] = {
17139 (char *) "jdn", NULL
17140 };
17141
994141e6 17142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
15afbcd0
RD
17143 arg1 = (double) SWIG_AsDouble(obj0);
17144 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 result = (wxDateTime *)new wxDateTime(arg1);
17148
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
15afbcd0 17152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17153 return resultobj;
17154 fail:
17155 return NULL;
17156}
17157
17158
17159static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17160 PyObject *resultobj;
322913ce
RD
17161 int arg1 ;
17162 int arg2 = (int) 0 ;
17163 int arg3 = (int) 0 ;
17164 int arg4 = (int) 0 ;
d14a1e28 17165 wxDateTime *result;
994141e6
RD
17166 PyObject * obj0 = 0 ;
17167 PyObject * obj1 = 0 ;
17168 PyObject * obj2 = 0 ;
17169 PyObject * obj3 = 0 ;
d14a1e28
RD
17170 char *kwnames[] = {
17171 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17172 };
17173
994141e6 17174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
17175 arg1 = (int) SWIG_AsInt(obj0);
17176 if (PyErr_Occurred()) SWIG_fail;
994141e6 17177 if (obj1) {
15afbcd0
RD
17178 arg2 = (int) SWIG_AsInt(obj1);
17179 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17180 }
17181 if (obj2) {
15afbcd0
RD
17182 arg3 = (int) SWIG_AsInt(obj2);
17183 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17184 }
17185 if (obj3) {
15afbcd0
RD
17186 arg4 = (int) SWIG_AsInt(obj3);
17187 if (PyErr_Occurred()) SWIG_fail;
994141e6 17188 }
d14a1e28
RD
17189 {
17190 PyThreadState* __tstate = wxPyBeginAllowThreads();
17191 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17192
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
15afbcd0 17196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17197 return resultobj;
17198 fail:
17199 return NULL;
17200}
17201
17202
17203static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17204 PyObject *resultobj;
322913ce 17205 int arg1 ;
d14a1e28
RD
17206 int arg2 = (int) wxDateTime::Inv_Month ;
17207 int arg3 = (int) wxDateTime::Inv_Year ;
322913ce
RD
17208 int arg4 = (int) 0 ;
17209 int arg5 = (int) 0 ;
17210 int arg6 = (int) 0 ;
17211 int arg7 = (int) 0 ;
d14a1e28 17212 wxDateTime *result;
994141e6
RD
17213 PyObject * obj0 = 0 ;
17214 PyObject * obj1 = 0 ;
17215 PyObject * obj2 = 0 ;
17216 PyObject * obj3 = 0 ;
17217 PyObject * obj4 = 0 ;
17218 PyObject * obj5 = 0 ;
17219 PyObject * obj6 = 0 ;
d14a1e28
RD
17220 char *kwnames[] = {
17221 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17222 };
17223
994141e6 17224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15afbcd0
RD
17225 arg1 = (int) SWIG_AsInt(obj0);
17226 if (PyErr_Occurred()) SWIG_fail;
994141e6 17227 if (obj1) {
15afbcd0
RD
17228 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17229 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17230 }
17231 if (obj2) {
15afbcd0
RD
17232 arg3 = (int) SWIG_AsInt(obj2);
17233 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17234 }
17235 if (obj3) {
15afbcd0
RD
17236 arg4 = (int) SWIG_AsInt(obj3);
17237 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17238 }
17239 if (obj4) {
15afbcd0
RD
17240 arg5 = (int) SWIG_AsInt(obj4);
17241 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17242 }
17243 if (obj5) {
15afbcd0
RD
17244 arg6 = (int) SWIG_AsInt(obj5);
17245 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17246 }
17247 if (obj6) {
15afbcd0
RD
17248 arg7 = (int) SWIG_AsInt(obj6);
17249 if (PyErr_Occurred()) SWIG_fail;
994141e6 17250 }
d14a1e28
RD
17251 {
17252 PyThreadState* __tstate = wxPyBeginAllowThreads();
17253 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17254
17255 wxPyEndAllowThreads(__tstate);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
15afbcd0 17258 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17259 return resultobj;
17260 fail:
17261 return NULL;
17262}
17263
17264
17265static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17266 PyObject *resultobj;
17267 wxDateTime *arg1 = (wxDateTime *) 0 ;
17268 PyObject * obj0 = 0 ;
17269 char *kwnames[] = {
17270 (char *) "self", NULL
17271 };
17272
17273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
15afbcd0
RD
17274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17276 {
17277 PyThreadState* __tstate = wxPyBeginAllowThreads();
17278 delete arg1;
17279
17280 wxPyEndAllowThreads(__tstate);
17281 if (PyErr_Occurred()) SWIG_fail;
17282 }
17283 Py_INCREF(Py_None); resultobj = Py_None;
17284 return resultobj;
17285 fail:
17286 return NULL;
17287}
17288
17289
17290static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17291 PyObject *resultobj;
17292 wxDateTime *arg1 = (wxDateTime *) 0 ;
17293 wxDateTime *result;
17294 PyObject * obj0 = 0 ;
17295 char *kwnames[] = {
17296 (char *) "self", NULL
17297 };
17298
17299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
15afbcd0
RD
17300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17302 {
17303 PyThreadState* __tstate = wxPyBeginAllowThreads();
17304 {
17305 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17306 result = (wxDateTime *) &_result_ref;
17307 }
17308
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
15afbcd0 17312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17313 return resultobj;
17314 fail:
17315 return NULL;
17316}
17317
17318
17319static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17320 PyObject *resultobj;
17321 wxDateTime *arg1 = (wxDateTime *) 0 ;
17322 time_t arg2 ;
17323 wxDateTime *result;
17324 PyObject * obj0 = 0 ;
17325 PyObject * obj1 = 0 ;
17326 char *kwnames[] = {
17327 (char *) "self",(char *) "timet", NULL
17328 };
17329
17330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17333 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17334 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17335 {
17336 PyThreadState* __tstate = wxPyBeginAllowThreads();
17337 {
17338 wxDateTime &_result_ref = (arg1)->Set(arg2);
17339 result = (wxDateTime *) &_result_ref;
17340 }
17341
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
15afbcd0 17345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17346 return resultobj;
17347 fail:
17348 return NULL;
17349}
17350
17351
17352static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17353 PyObject *resultobj;
17354 wxDateTime *arg1 = (wxDateTime *) 0 ;
17355 double arg2 ;
17356 wxDateTime *result;
17357 PyObject * obj0 = 0 ;
994141e6 17358 PyObject * obj1 = 0 ;
d14a1e28
RD
17359 char *kwnames[] = {
17360 (char *) "self",(char *) "jdn", NULL
17361 };
17362
994141e6 17363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17366 arg2 = (double) SWIG_AsDouble(obj1);
17367 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 {
17371 wxDateTime &_result_ref = (arg1)->Set(arg2);
17372 result = (wxDateTime *) &_result_ref;
17373 }
17374
17375 wxPyEndAllowThreads(__tstate);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
15afbcd0 17378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17379 return resultobj;
17380 fail:
17381 return NULL;
17382}
17383
17384
17385static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17386 PyObject *resultobj;
17387 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce
RD
17388 int arg2 ;
17389 int arg3 = (int) 0 ;
17390 int arg4 = (int) 0 ;
17391 int arg5 = (int) 0 ;
d14a1e28
RD
17392 wxDateTime *result;
17393 PyObject * obj0 = 0 ;
994141e6
RD
17394 PyObject * obj1 = 0 ;
17395 PyObject * obj2 = 0 ;
17396 PyObject * obj3 = 0 ;
17397 PyObject * obj4 = 0 ;
d14a1e28
RD
17398 char *kwnames[] = {
17399 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17400 };
17401
994141e6 17402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
17403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17405 arg2 = (int) SWIG_AsInt(obj1);
17406 if (PyErr_Occurred()) SWIG_fail;
994141e6 17407 if (obj2) {
15afbcd0
RD
17408 arg3 = (int) SWIG_AsInt(obj2);
17409 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17410 }
17411 if (obj3) {
15afbcd0
RD
17412 arg4 = (int) SWIG_AsInt(obj3);
17413 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17414 }
17415 if (obj4) {
15afbcd0
RD
17416 arg5 = (int) SWIG_AsInt(obj4);
17417 if (PyErr_Occurred()) SWIG_fail;
994141e6 17418 }
d14a1e28
RD
17419 {
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 {
17422 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17423 result = (wxDateTime *) &_result_ref;
17424 }
17425
17426 wxPyEndAllowThreads(__tstate);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 }
15afbcd0 17429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17430 return resultobj;
17431 fail:
17432 return NULL;
17433}
17434
17435
17436static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17437 PyObject *resultobj;
17438 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 17439 int arg2 ;
d14a1e28
RD
17440 int arg3 = (int) wxDateTime::Inv_Month ;
17441 int arg4 = (int) wxDateTime::Inv_Year ;
322913ce
RD
17442 int arg5 = (int) 0 ;
17443 int arg6 = (int) 0 ;
17444 int arg7 = (int) 0 ;
17445 int arg8 = (int) 0 ;
d14a1e28
RD
17446 wxDateTime *result;
17447 PyObject * obj0 = 0 ;
994141e6
RD
17448 PyObject * obj1 = 0 ;
17449 PyObject * obj2 = 0 ;
17450 PyObject * obj3 = 0 ;
17451 PyObject * obj4 = 0 ;
17452 PyObject * obj5 = 0 ;
17453 PyObject * obj6 = 0 ;
17454 PyObject * obj7 = 0 ;
d14a1e28
RD
17455 char *kwnames[] = {
17456 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17457 };
17458
994141e6 17459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
15afbcd0
RD
17460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17462 arg2 = (int) SWIG_AsInt(obj1);
17463 if (PyErr_Occurred()) SWIG_fail;
994141e6 17464 if (obj2) {
15afbcd0
RD
17465 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17466 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17467 }
17468 if (obj3) {
15afbcd0
RD
17469 arg4 = (int) SWIG_AsInt(obj3);
17470 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17471 }
17472 if (obj4) {
15afbcd0
RD
17473 arg5 = (int) SWIG_AsInt(obj4);
17474 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17475 }
17476 if (obj5) {
15afbcd0
RD
17477 arg6 = (int) SWIG_AsInt(obj5);
17478 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17479 }
17480 if (obj6) {
15afbcd0
RD
17481 arg7 = (int) SWIG_AsInt(obj6);
17482 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
17483 }
17484 if (obj7) {
15afbcd0
RD
17485 arg8 = (int) SWIG_AsInt(obj7);
17486 if (PyErr_Occurred()) SWIG_fail;
994141e6 17487 }
d14a1e28
RD
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 {
17491 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17492 result = (wxDateTime *) &_result_ref;
17493 }
17494
17495 wxPyEndAllowThreads(__tstate);
17496 if (PyErr_Occurred()) SWIG_fail;
17497 }
15afbcd0 17498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17499 return resultobj;
17500 fail:
17501 return NULL;
17502}
17503
17504
17505static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17506 PyObject *resultobj;
17507 wxDateTime *arg1 = (wxDateTime *) 0 ;
17508 wxDateTime *result;
17509 PyObject * obj0 = 0 ;
17510 char *kwnames[] = {
17511 (char *) "self", NULL
17512 };
17513
17514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
15afbcd0
RD
17515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
17517 {
17518 PyThreadState* __tstate = wxPyBeginAllowThreads();
17519 {
17520 wxDateTime &_result_ref = (arg1)->ResetTime();
17521 result = (wxDateTime *) &_result_ref;
17522 }
17523
17524 wxPyEndAllowThreads(__tstate);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 }
15afbcd0 17527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17528 return resultobj;
17529 fail:
17530 return NULL;
17531}
17532
17533
17534static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17535 PyObject *resultobj;
17536 wxDateTime *arg1 = (wxDateTime *) 0 ;
17537 int arg2 ;
17538 wxDateTime *result;
17539 PyObject * obj0 = 0 ;
994141e6 17540 PyObject * obj1 = 0 ;
d14a1e28
RD
17541 char *kwnames[] = {
17542 (char *) "self",(char *) "year", NULL
17543 };
17544
994141e6 17545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17548 arg2 = (int) SWIG_AsInt(obj1);
17549 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17550 {
17551 PyThreadState* __tstate = wxPyBeginAllowThreads();
17552 {
17553 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17554 result = (wxDateTime *) &_result_ref;
17555 }
17556
17557 wxPyEndAllowThreads(__tstate);
17558 if (PyErr_Occurred()) SWIG_fail;
17559 }
15afbcd0 17560 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17561 return resultobj;
17562 fail:
17563 return NULL;
17564}
17565
17566
17567static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17568 PyObject *resultobj;
17569 wxDateTime *arg1 = (wxDateTime *) 0 ;
17570 int arg2 ;
17571 wxDateTime *result;
17572 PyObject * obj0 = 0 ;
994141e6 17573 PyObject * obj1 = 0 ;
d14a1e28
RD
17574 char *kwnames[] = {
17575 (char *) "self",(char *) "month", NULL
17576 };
17577
994141e6 17578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17581 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17582 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17583 {
17584 PyThreadState* __tstate = wxPyBeginAllowThreads();
17585 {
17586 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17587 result = (wxDateTime *) &_result_ref;
17588 }
17589
17590 wxPyEndAllowThreads(__tstate);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 }
15afbcd0 17593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17594 return resultobj;
17595 fail:
17596 return NULL;
17597}
17598
17599
17600static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17601 PyObject *resultobj;
17602 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 17603 int arg2 ;
d14a1e28
RD
17604 wxDateTime *result;
17605 PyObject * obj0 = 0 ;
994141e6 17606 PyObject * obj1 = 0 ;
d14a1e28
RD
17607 char *kwnames[] = {
17608 (char *) "self",(char *) "day", NULL
17609 };
17610
994141e6 17611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17614 arg2 = (int) SWIG_AsInt(obj1);
17615 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 {
17619 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17620 result = (wxDateTime *) &_result_ref;
17621 }
17622
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
15afbcd0 17626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17627 return resultobj;
17628 fail:
17629 return NULL;
17630}
17631
17632
17633static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj;
17635 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 17636 int arg2 ;
d14a1e28
RD
17637 wxDateTime *result;
17638 PyObject * obj0 = 0 ;
994141e6 17639 PyObject * obj1 = 0 ;
d14a1e28
RD
17640 char *kwnames[] = {
17641 (char *) "self",(char *) "hour", NULL
17642 };
17643
994141e6 17644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17647 arg2 = (int) SWIG_AsInt(obj1);
17648 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17649 {
17650 PyThreadState* __tstate = wxPyBeginAllowThreads();
17651 {
17652 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17653 result = (wxDateTime *) &_result_ref;
17654 }
17655
17656 wxPyEndAllowThreads(__tstate);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 }
15afbcd0 17659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17660 return resultobj;
17661 fail:
17662 return NULL;
17663}
17664
17665
17666static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17667 PyObject *resultobj;
17668 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 17669 int arg2 ;
d14a1e28
RD
17670 wxDateTime *result;
17671 PyObject * obj0 = 0 ;
994141e6 17672 PyObject * obj1 = 0 ;
d14a1e28
RD
17673 char *kwnames[] = {
17674 (char *) "self",(char *) "minute", NULL
17675 };
17676
994141e6 17677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17680 arg2 = (int) SWIG_AsInt(obj1);
17681 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 {
17685 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17686 result = (wxDateTime *) &_result_ref;
17687 }
17688
17689 wxPyEndAllowThreads(__tstate);
17690 if (PyErr_Occurred()) SWIG_fail;
17691 }
15afbcd0 17692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17693 return resultobj;
17694 fail:
17695 return NULL;
17696}
17697
17698
17699static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17700 PyObject *resultobj;
17701 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 17702 int arg2 ;
d14a1e28
RD
17703 wxDateTime *result;
17704 PyObject * obj0 = 0 ;
994141e6 17705 PyObject * obj1 = 0 ;
d14a1e28
RD
17706 char *kwnames[] = {
17707 (char *) "self",(char *) "second", NULL
17708 };
17709
994141e6 17710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17713 arg2 = (int) SWIG_AsInt(obj1);
17714 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17715 {
17716 PyThreadState* __tstate = wxPyBeginAllowThreads();
17717 {
17718 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17719 result = (wxDateTime *) &_result_ref;
17720 }
17721
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
15afbcd0 17725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17726 return resultobj;
17727 fail:
17728 return NULL;
17729}
17730
17731
17732static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17733 PyObject *resultobj;
17734 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 17735 int arg2 ;
d14a1e28
RD
17736 wxDateTime *result;
17737 PyObject * obj0 = 0 ;
994141e6 17738 PyObject * obj1 = 0 ;
d14a1e28
RD
17739 char *kwnames[] = {
17740 (char *) "self",(char *) "millisecond", NULL
17741 };
17742
994141e6 17743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17746 arg2 = (int) SWIG_AsInt(obj1);
17747 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17748 {
17749 PyThreadState* __tstate = wxPyBeginAllowThreads();
17750 {
17751 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17752 result = (wxDateTime *) &_result_ref;
17753 }
17754
17755 wxPyEndAllowThreads(__tstate);
17756 if (PyErr_Occurred()) SWIG_fail;
17757 }
15afbcd0 17758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17759 return resultobj;
17760 fail:
17761 return NULL;
17762}
17763
17764
17765static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17766 PyObject *resultobj;
17767 wxDateTime *arg1 = (wxDateTime *) 0 ;
17768 int arg2 ;
17769 int arg3 = (int) wxDateTime::Monday_First ;
17770 wxDateTime *result;
17771 PyObject * obj0 = 0 ;
994141e6
RD
17772 PyObject * obj1 = 0 ;
17773 PyObject * obj2 = 0 ;
d14a1e28
RD
17774 char *kwnames[] = {
17775 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17776 };
17777
994141e6 17778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
17779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17781 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17782 if (PyErr_Occurred()) SWIG_fail;
994141e6 17783 if (obj2) {
15afbcd0
RD
17784 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17785 if (PyErr_Occurred()) SWIG_fail;
994141e6 17786 }
d14a1e28
RD
17787 {
17788 PyThreadState* __tstate = wxPyBeginAllowThreads();
17789 {
17790 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17791 result = (wxDateTime *) &_result_ref;
17792 }
17793
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
15afbcd0 17797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17798 return resultobj;
17799 fail:
17800 return NULL;
17801}
17802
17803
17804static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17805 PyObject *resultobj;
17806 wxDateTime *arg1 = (wxDateTime *) 0 ;
17807 int arg2 ;
17808 int arg3 = (int) wxDateTime::Monday_First ;
17809 wxDateTime result;
17810 PyObject * obj0 = 0 ;
994141e6
RD
17811 PyObject * obj1 = 0 ;
17812 PyObject * obj2 = 0 ;
d14a1e28
RD
17813 char *kwnames[] = {
17814 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17815 };
17816
994141e6 17817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
17818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17820 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17821 if (PyErr_Occurred()) SWIG_fail;
994141e6 17822 if (obj2) {
15afbcd0
RD
17823 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17824 if (PyErr_Occurred()) SWIG_fail;
994141e6 17825 }
d14a1e28
RD
17826 {
17827 PyThreadState* __tstate = wxPyBeginAllowThreads();
17828 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17829
17830 wxPyEndAllowThreads(__tstate);
17831 if (PyErr_Occurred()) SWIG_fail;
17832 }
17833 {
17834 wxDateTime * resultptr;
17835 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 17836 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17837 }
17838 return resultobj;
17839 fail:
17840 return NULL;
17841}
17842
17843
17844static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17845 PyObject *resultobj;
17846 wxDateTime *arg1 = (wxDateTime *) 0 ;
17847 int arg2 ;
17848 wxDateTime *result;
17849 PyObject * obj0 = 0 ;
994141e6 17850 PyObject * obj1 = 0 ;
d14a1e28
RD
17851 char *kwnames[] = {
17852 (char *) "self",(char *) "weekday", NULL
17853 };
17854
994141e6 17855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17858 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17859 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17860 {
17861 PyThreadState* __tstate = wxPyBeginAllowThreads();
17862 {
17863 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
17864 result = (wxDateTime *) &_result_ref;
17865 }
17866
17867 wxPyEndAllowThreads(__tstate);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
15afbcd0 17870 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17871 return resultobj;
17872 fail:
17873 return NULL;
17874}
17875
17876
17877static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17878 PyObject *resultobj;
17879 wxDateTime *arg1 = (wxDateTime *) 0 ;
17880 int arg2 ;
17881 wxDateTime result;
17882 PyObject * obj0 = 0 ;
994141e6 17883 PyObject * obj1 = 0 ;
d14a1e28
RD
17884 char *kwnames[] = {
17885 (char *) "self",(char *) "weekday", NULL
17886 };
17887
994141e6 17888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17891 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17892 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
17896
17897 wxPyEndAllowThreads(__tstate);
17898 if (PyErr_Occurred()) SWIG_fail;
17899 }
17900 {
17901 wxDateTime * resultptr;
17902 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 17903 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17904 }
17905 return resultobj;
17906 fail:
17907 return NULL;
17908}
17909
17910
17911static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17912 PyObject *resultobj;
17913 wxDateTime *arg1 = (wxDateTime *) 0 ;
17914 int arg2 ;
17915 wxDateTime *result;
17916 PyObject * obj0 = 0 ;
994141e6 17917 PyObject * obj1 = 0 ;
d14a1e28
RD
17918 char *kwnames[] = {
17919 (char *) "self",(char *) "weekday", NULL
17920 };
17921
994141e6 17922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17925 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17926 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 {
17930 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
17931 result = (wxDateTime *) &_result_ref;
17932 }
17933
17934 wxPyEndAllowThreads(__tstate);
17935 if (PyErr_Occurred()) SWIG_fail;
17936 }
15afbcd0 17937 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
17938 return resultobj;
17939 fail:
17940 return NULL;
17941}
17942
17943
17944static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17945 PyObject *resultobj;
17946 wxDateTime *arg1 = (wxDateTime *) 0 ;
17947 int arg2 ;
17948 wxDateTime result;
17949 PyObject * obj0 = 0 ;
994141e6 17950 PyObject * obj1 = 0 ;
d14a1e28
RD
17951 char *kwnames[] = {
17952 (char *) "self",(char *) "weekday", NULL
17953 };
17954
994141e6 17955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
17956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17958 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17959 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
17963
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 {
17968 wxDateTime * resultptr;
17969 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 17970 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
17971 }
17972 return resultobj;
17973 fail:
17974 return NULL;
17975}
17976
17977
17978static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17979 PyObject *resultobj;
17980 wxDateTime *arg1 = (wxDateTime *) 0 ;
17981 int arg2 ;
17982 int arg3 = (int) 1 ;
17983 int arg4 = (int) wxDateTime::Inv_Month ;
17984 int arg5 = (int) wxDateTime::Inv_Year ;
17985 bool result;
17986 PyObject * obj0 = 0 ;
994141e6
RD
17987 PyObject * obj1 = 0 ;
17988 PyObject * obj2 = 0 ;
17989 PyObject * obj3 = 0 ;
17990 PyObject * obj4 = 0 ;
d14a1e28
RD
17991 char *kwnames[] = {
17992 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
17993 };
17994
994141e6 17995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15afbcd0
RD
17996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17998 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17999 if (PyErr_Occurred()) SWIG_fail;
994141e6 18000 if (obj2) {
15afbcd0
RD
18001 arg3 = (int) SWIG_AsInt(obj2);
18002 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
18003 }
18004 if (obj3) {
15afbcd0
RD
18005 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18006 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
18007 }
18008 if (obj4) {
15afbcd0
RD
18009 arg5 = (int) SWIG_AsInt(obj4);
18010 if (PyErr_Occurred()) SWIG_fail;
994141e6 18011 }
d14a1e28
RD
18012 {
18013 PyThreadState* __tstate = wxPyBeginAllowThreads();
18014 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18015
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
4d5c3d91 18019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18020 return resultobj;
18021 fail:
18022 return NULL;
18023}
18024
18025
18026static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18027 PyObject *resultobj;
18028 wxDateTime *arg1 = (wxDateTime *) 0 ;
18029 int arg2 ;
18030 int arg3 = (int) wxDateTime::Inv_Month ;
18031 int arg4 = (int) wxDateTime::Inv_Year ;
18032 bool result;
18033 PyObject * obj0 = 0 ;
994141e6
RD
18034 PyObject * obj1 = 0 ;
18035 PyObject * obj2 = 0 ;
18036 PyObject * obj3 = 0 ;
d14a1e28
RD
18037 char *kwnames[] = {
18038 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18039 };
18040
994141e6 18041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18044 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18045 if (PyErr_Occurred()) SWIG_fail;
994141e6 18046 if (obj2) {
15afbcd0
RD
18047 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18048 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
18049 }
18050 if (obj3) {
15afbcd0
RD
18051 arg4 = (int) SWIG_AsInt(obj3);
18052 if (PyErr_Occurred()) SWIG_fail;
994141e6 18053 }
d14a1e28
RD
18054 {
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18057
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
4d5c3d91 18061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18062 return resultobj;
18063 fail:
18064 return NULL;
18065}
18066
18067
18068static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 wxDateTime *arg1 = (wxDateTime *) 0 ;
18071 int arg2 ;
18072 int arg3 = (int) wxDateTime::Inv_Month ;
18073 int arg4 = (int) wxDateTime::Inv_Year ;
18074 wxDateTime result;
18075 PyObject * obj0 = 0 ;
994141e6
RD
18076 PyObject * obj1 = 0 ;
18077 PyObject * obj2 = 0 ;
18078 PyObject * obj3 = 0 ;
d14a1e28
RD
18079 char *kwnames[] = {
18080 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18081 };
18082
994141e6 18083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18086 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18087 if (PyErr_Occurred()) SWIG_fail;
994141e6 18088 if (obj2) {
15afbcd0
RD
18089 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18090 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
18091 }
18092 if (obj3) {
15afbcd0
RD
18093 arg4 = (int) SWIG_AsInt(obj3);
18094 if (PyErr_Occurred()) SWIG_fail;
994141e6 18095 }
d14a1e28
RD
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18099
18100 wxPyEndAllowThreads(__tstate);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
18103 {
18104 wxDateTime * resultptr;
18105 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 18106 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
18107 }
18108 return resultobj;
18109 fail:
18110 return NULL;
18111}
18112
18113
18114static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj;
18116 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 18117 int arg2 ;
d14a1e28
RD
18118 int arg3 = (int) wxDateTime::Mon ;
18119 int arg4 = (int) wxDateTime::Monday_First ;
18120 bool result;
18121 PyObject * obj0 = 0 ;
994141e6
RD
18122 PyObject * obj1 = 0 ;
18123 PyObject * obj2 = 0 ;
18124 PyObject * obj3 = 0 ;
d14a1e28
RD
18125 char *kwnames[] = {
18126 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18127 };
18128
994141e6 18129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18132 arg2 = (int) SWIG_AsInt(obj1);
18133 if (PyErr_Occurred()) SWIG_fail;
994141e6 18134 if (obj2) {
15afbcd0
RD
18135 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18136 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
18137 }
18138 if (obj3) {
15afbcd0
RD
18139 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18140 if (PyErr_Occurred()) SWIG_fail;
994141e6 18141 }
d14a1e28
RD
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18145
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
4d5c3d91 18149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18150 return resultobj;
18151 fail:
18152 return NULL;
18153}
18154
18155
18156static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj;
18158 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 18159 int arg2 ;
d14a1e28
RD
18160 int arg3 = (int) wxDateTime::Mon ;
18161 int arg4 = (int) wxDateTime::Monday_First ;
18162 wxDateTime result;
18163 PyObject * obj0 = 0 ;
994141e6
RD
18164 PyObject * obj1 = 0 ;
18165 PyObject * obj2 = 0 ;
18166 PyObject * obj3 = 0 ;
d14a1e28
RD
18167 char *kwnames[] = {
18168 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18169 };
18170
994141e6 18171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
18172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18174 arg2 = (int) SWIG_AsInt(obj1);
18175 if (PyErr_Occurred()) SWIG_fail;
994141e6 18176 if (obj2) {
15afbcd0
RD
18177 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18178 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
18179 }
18180 if (obj3) {
15afbcd0
RD
18181 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18182 if (PyErr_Occurred()) SWIG_fail;
994141e6 18183 }
d14a1e28
RD
18184 {
18185 PyThreadState* __tstate = wxPyBeginAllowThreads();
18186 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18187
18188 wxPyEndAllowThreads(__tstate);
18189 if (PyErr_Occurred()) SWIG_fail;
18190 }
18191 {
18192 wxDateTime * resultptr;
18193 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 18194 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
18195 }
18196 return resultobj;
18197 fail:
18198 return NULL;
18199}
18200
18201
18202static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18203 PyObject *resultobj;
18204 wxDateTime *arg1 = (wxDateTime *) 0 ;
18205 int arg2 = (int) wxDateTime::Inv_Month ;
18206 int arg3 = (int) wxDateTime::Inv_Year ;
18207 wxDateTime *result;
18208 PyObject * obj0 = 0 ;
994141e6
RD
18209 PyObject * obj1 = 0 ;
18210 PyObject * obj2 = 0 ;
d14a1e28
RD
18211 char *kwnames[] = {
18212 (char *) "self",(char *) "month",(char *) "year", NULL
18213 };
18214
994141e6 18215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
18216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 18218 if (obj1) {
15afbcd0
RD
18219 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18220 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
18221 }
18222 if (obj2) {
15afbcd0
RD
18223 arg3 = (int) SWIG_AsInt(obj2);
18224 if (PyErr_Occurred()) SWIG_fail;
994141e6 18225 }
d14a1e28
RD
18226 {
18227 PyThreadState* __tstate = wxPyBeginAllowThreads();
18228 {
18229 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18230 result = (wxDateTime *) &_result_ref;
18231 }
18232
18233 wxPyEndAllowThreads(__tstate);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 }
15afbcd0 18236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
18237 return resultobj;
18238 fail:
18239 return NULL;
18240}
18241
18242
18243static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18244 PyObject *resultobj;
18245 wxDateTime *arg1 = (wxDateTime *) 0 ;
18246 int arg2 = (int) wxDateTime::Inv_Month ;
18247 int arg3 = (int) wxDateTime::Inv_Year ;
18248 wxDateTime result;
18249 PyObject * obj0 = 0 ;
994141e6
RD
18250 PyObject * obj1 = 0 ;
18251 PyObject * obj2 = 0 ;
d14a1e28
RD
18252 char *kwnames[] = {
18253 (char *) "self",(char *) "month",(char *) "year", NULL
18254 };
18255
994141e6 18256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
18257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 18259 if (obj1) {
15afbcd0
RD
18260 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18261 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
18262 }
18263 if (obj2) {
15afbcd0
RD
18264 arg3 = (int) SWIG_AsInt(obj2);
18265 if (PyErr_Occurred()) SWIG_fail;
994141e6 18266 }
d14a1e28
RD
18267 {
18268 PyThreadState* __tstate = wxPyBeginAllowThreads();
18269 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18270
18271 wxPyEndAllowThreads(__tstate);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 }
18274 {
18275 wxDateTime * resultptr;
18276 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 18277 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
18278 }
18279 return resultobj;
18280 fail:
18281 return NULL;
18282}
18283
18284
18285static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18286 PyObject *resultobj;
18287 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 18288 int arg2 ;
d14a1e28
RD
18289 wxDateTime *result;
18290 PyObject * obj0 = 0 ;
994141e6 18291 PyObject * obj1 = 0 ;
d14a1e28
RD
18292 char *kwnames[] = {
18293 (char *) "self",(char *) "yday", NULL
18294 };
18295
994141e6 18296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18299 arg2 = (int) SWIG_AsInt(obj1);
18300 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 {
18304 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18305 result = (wxDateTime *) &_result_ref;
18306 }
18307
18308 wxPyEndAllowThreads(__tstate);
18309 if (PyErr_Occurred()) SWIG_fail;
18310 }
15afbcd0 18311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
18312 return resultobj;
18313 fail:
18314 return NULL;
18315}
18316
18317
18318static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18319 PyObject *resultobj;
18320 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 18321 int arg2 ;
d14a1e28
RD
18322 wxDateTime result;
18323 PyObject * obj0 = 0 ;
994141e6 18324 PyObject * obj1 = 0 ;
d14a1e28
RD
18325 char *kwnames[] = {
18326 (char *) "self",(char *) "yday", NULL
18327 };
18328
994141e6 18329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18332 arg2 = (int) SWIG_AsInt(obj1);
18333 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 result = (arg1)->GetYearDay(arg2);
18337
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 {
18342 wxDateTime * resultptr;
18343 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 18344 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
18345 }
18346 return resultobj;
18347 fail:
18348 return NULL;
18349}
18350
18351
18352static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18353 PyObject *resultobj;
18354 wxDateTime *arg1 = (wxDateTime *) 0 ;
18355 double result;
18356 PyObject * obj0 = 0 ;
18357 char *kwnames[] = {
18358 (char *) "self", NULL
18359 };
18360
18361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
15afbcd0
RD
18362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18364 {
18365 PyThreadState* __tstate = wxPyBeginAllowThreads();
18366 result = (double)(arg1)->GetJulianDayNumber();
18367
18368 wxPyEndAllowThreads(__tstate);
18369 if (PyErr_Occurred()) SWIG_fail;
18370 }
15afbcd0 18371 resultobj = SWIG_FromDouble((double)result);
d14a1e28
RD
18372 return resultobj;
18373 fail:
18374 return NULL;
18375}
18376
18377
18378static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18379 PyObject *resultobj;
18380 wxDateTime *arg1 = (wxDateTime *) 0 ;
18381 double result;
18382 PyObject * obj0 = 0 ;
18383 char *kwnames[] = {
18384 (char *) "self", NULL
18385 };
18386
18387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
15afbcd0
RD
18388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18390 {
18391 PyThreadState* __tstate = wxPyBeginAllowThreads();
18392 result = (double)(arg1)->GetJDN();
18393
18394 wxPyEndAllowThreads(__tstate);
18395 if (PyErr_Occurred()) SWIG_fail;
18396 }
15afbcd0 18397 resultobj = SWIG_FromDouble((double)result);
d14a1e28
RD
18398 return resultobj;
18399 fail:
18400 return NULL;
18401}
18402
18403
18404static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18405 PyObject *resultobj;
18406 wxDateTime *arg1 = (wxDateTime *) 0 ;
18407 double result;
18408 PyObject * obj0 = 0 ;
18409 char *kwnames[] = {
18410 (char *) "self", NULL
18411 };
18412
18413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
15afbcd0
RD
18414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18416 {
18417 PyThreadState* __tstate = wxPyBeginAllowThreads();
18418 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18419
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
15afbcd0 18423 resultobj = SWIG_FromDouble((double)result);
d14a1e28
RD
18424 return resultobj;
18425 fail:
18426 return NULL;
18427}
18428
18429
18430static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18431 PyObject *resultobj;
18432 wxDateTime *arg1 = (wxDateTime *) 0 ;
18433 double result;
18434 PyObject * obj0 = 0 ;
18435 char *kwnames[] = {
18436 (char *) "self", NULL
18437 };
18438
18439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
15afbcd0
RD
18440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 result = (double)(arg1)->GetMJD();
18445
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
15afbcd0 18449 resultobj = SWIG_FromDouble((double)result);
d14a1e28
RD
18450 return resultobj;
18451 fail:
18452 return NULL;
18453}
18454
18455
18456static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18457 PyObject *resultobj;
18458 wxDateTime *arg1 = (wxDateTime *) 0 ;
18459 double result;
18460 PyObject * obj0 = 0 ;
18461 char *kwnames[] = {
18462 (char *) "self", NULL
18463 };
18464
18465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
15afbcd0
RD
18466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18468 {
18469 PyThreadState* __tstate = wxPyBeginAllowThreads();
18470 result = (double)(arg1)->GetRataDie();
18471
18472 wxPyEndAllowThreads(__tstate);
18473 if (PyErr_Occurred()) SWIG_fail;
18474 }
15afbcd0 18475 resultobj = SWIG_FromDouble((double)result);
d14a1e28
RD
18476 return resultobj;
18477 fail:
18478 return NULL;
18479}
18480
18481
18482static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18483 PyObject *resultobj;
18484 wxDateTime *arg1 = (wxDateTime *) 0 ;
18485 wxDateTime::TimeZone *arg2 = 0 ;
e811c8ce 18486 bool arg3 = (bool) False ;
d14a1e28 18487 wxDateTime result;
7722248d 18488 bool temp2 = False ;
d14a1e28
RD
18489 PyObject * obj0 = 0 ;
18490 PyObject * obj1 = 0 ;
18491 PyObject * obj2 = 0 ;
18492 char *kwnames[] = {
18493 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18494 };
18495
18496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
18497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18499 {
18500 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 18501 temp2 = True;
d14a1e28
RD
18502 }
18503 if (obj2) {
15afbcd0
RD
18504 arg3 = (bool) SWIG_AsBool(obj2);
18505 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
18506 }
18507 {
18508 PyThreadState* __tstate = wxPyBeginAllowThreads();
18509 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18510
18511 wxPyEndAllowThreads(__tstate);
18512 if (PyErr_Occurred()) SWIG_fail;
18513 }
18514 {
18515 wxDateTime * resultptr;
18516 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 18517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
18518 }
18519 {
7722248d 18520 if (temp2) delete arg2;
d14a1e28
RD
18521 }
18522 return resultobj;
18523 fail:
18524 {
7722248d 18525 if (temp2) delete arg2;
d14a1e28
RD
18526 }
18527 return NULL;
18528}
18529
18530
18531static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18532 PyObject *resultobj;
18533 wxDateTime *arg1 = (wxDateTime *) 0 ;
18534 wxDateTime::TimeZone *arg2 = 0 ;
e811c8ce 18535 bool arg3 = (bool) False ;
d14a1e28 18536 wxDateTime *result;
7722248d 18537 bool temp2 = False ;
d14a1e28
RD
18538 PyObject * obj0 = 0 ;
18539 PyObject * obj1 = 0 ;
18540 PyObject * obj2 = 0 ;
18541 char *kwnames[] = {
18542 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18543 };
18544
18545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
18546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18548 {
18549 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 18550 temp2 = True;
d14a1e28
RD
18551 }
18552 if (obj2) {
15afbcd0
RD
18553 arg3 = (bool) SWIG_AsBool(obj2);
18554 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
18555 }
18556 {
18557 PyThreadState* __tstate = wxPyBeginAllowThreads();
18558 {
18559 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18560 result = (wxDateTime *) &_result_ref;
18561 }
18562
18563 wxPyEndAllowThreads(__tstate);
18564 if (PyErr_Occurred()) SWIG_fail;
18565 }
15afbcd0 18566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28 18567 {
7722248d 18568 if (temp2) delete arg2;
d14a1e28
RD
18569 }
18570 return resultobj;
18571 fail:
18572 {
7722248d 18573 if (temp2) delete arg2;
d14a1e28
RD
18574 }
18575 return NULL;
18576}
18577
18578
18579static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18580 PyObject *resultobj;
18581 wxDateTime *arg1 = (wxDateTime *) 0 ;
e811c8ce 18582 bool arg2 = (bool) False ;
d14a1e28
RD
18583 wxDateTime result;
18584 PyObject * obj0 = 0 ;
18585 PyObject * obj1 = 0 ;
18586 char *kwnames[] = {
18587 (char *) "self",(char *) "noDST", NULL
18588 };
18589
18590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 18593 if (obj1) {
15afbcd0
RD
18594 arg2 = (bool) SWIG_AsBool(obj1);
18595 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
18596 }
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 result = (arg1)->ToGMT(arg2);
18600
18601 wxPyEndAllowThreads(__tstate);
18602 if (PyErr_Occurred()) SWIG_fail;
18603 }
18604 {
18605 wxDateTime * resultptr;
18606 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 18607 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
18608 }
18609 return resultobj;
18610 fail:
18611 return NULL;
18612}
18613
18614
18615static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18616 PyObject *resultobj;
18617 wxDateTime *arg1 = (wxDateTime *) 0 ;
e811c8ce 18618 bool arg2 = (bool) False ;
d14a1e28
RD
18619 wxDateTime *result;
18620 PyObject * obj0 = 0 ;
18621 PyObject * obj1 = 0 ;
18622 char *kwnames[] = {
18623 (char *) "self",(char *) "noDST", NULL
18624 };
18625
18626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 18629 if (obj1) {
15afbcd0
RD
18630 arg2 = (bool) SWIG_AsBool(obj1);
18631 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
18632 }
18633 {
18634 PyThreadState* __tstate = wxPyBeginAllowThreads();
18635 {
18636 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18637 result = (wxDateTime *) &_result_ref;
18638 }
18639
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
15afbcd0 18643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
18644 return resultobj;
18645 fail:
18646 return NULL;
18647}
18648
18649
18650static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18651 PyObject *resultobj;
18652 wxDateTime *arg1 = (wxDateTime *) 0 ;
18653 int arg2 = (int) wxDateTime::Country_Default ;
18654 int result;
18655 PyObject * obj0 = 0 ;
994141e6 18656 PyObject * obj1 = 0 ;
d14a1e28
RD
18657 char *kwnames[] = {
18658 (char *) "self",(char *) "country", NULL
18659 };
18660
994141e6 18661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 18664 if (obj1) {
15afbcd0
RD
18665 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18666 if (PyErr_Occurred()) SWIG_fail;
994141e6 18667 }
d14a1e28
RD
18668 {
18669 PyThreadState* __tstate = wxPyBeginAllowThreads();
18670 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18671
18672 wxPyEndAllowThreads(__tstate);
18673 if (PyErr_Occurred()) SWIG_fail;
18674 }
15afbcd0 18675 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
18676 return resultobj;
18677 fail:
18678 return NULL;
18679}
18680
18681
18682static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18683 PyObject *resultobj;
18684 wxDateTime *arg1 = (wxDateTime *) 0 ;
18685 bool result;
18686 PyObject * obj0 = 0 ;
18687 char *kwnames[] = {
18688 (char *) "self", NULL
18689 };
18690
18691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
15afbcd0
RD
18692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 result = (bool)((wxDateTime const *)arg1)->IsValid();
18697
18698 wxPyEndAllowThreads(__tstate);
18699 if (PyErr_Occurred()) SWIG_fail;
18700 }
4d5c3d91 18701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18702 return resultobj;
18703 fail:
18704 return NULL;
18705}
18706
18707
18708static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18709 PyObject *resultobj;
18710 wxDateTime *arg1 = (wxDateTime *) 0 ;
18711 time_t result;
18712 PyObject * obj0 = 0 ;
18713 char *kwnames[] = {
18714 (char *) "self", NULL
18715 };
18716
18717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
15afbcd0
RD
18718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18720 {
18721 PyThreadState* __tstate = wxPyBeginAllowThreads();
18722 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18723
18724 wxPyEndAllowThreads(__tstate);
18725 if (PyErr_Occurred()) SWIG_fail;
18726 }
15afbcd0 18727 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
d14a1e28
RD
18728 return resultobj;
18729 fail:
18730 return NULL;
18731}
18732
18733
18734static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18735 PyObject *resultobj;
18736 wxDateTime *arg1 = (wxDateTime *) 0 ;
18737 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18738 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18739 int result;
7722248d 18740 bool temp2 = False ;
d14a1e28
RD
18741 PyObject * obj0 = 0 ;
18742 PyObject * obj1 = 0 ;
18743 char *kwnames[] = {
18744 (char *) "self",(char *) "tz", NULL
18745 };
18746
18747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18750 if (obj1) {
18751 {
18752 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 18753 temp2 = True;
d14a1e28
RD
18754 }
18755 }
18756 {
18757 PyThreadState* __tstate = wxPyBeginAllowThreads();
18758 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18759
18760 wxPyEndAllowThreads(__tstate);
18761 if (PyErr_Occurred()) SWIG_fail;
18762 }
15afbcd0 18763 resultobj = SWIG_FromInt((int)result);
d14a1e28 18764 {
7722248d 18765 if (temp2) delete arg2;
d14a1e28
RD
18766 }
18767 return resultobj;
18768 fail:
18769 {
7722248d 18770 if (temp2) delete arg2;
d14a1e28
RD
18771 }
18772 return NULL;
18773}
18774
18775
18776static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18777 PyObject *resultobj;
18778 wxDateTime *arg1 = (wxDateTime *) 0 ;
18779 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18780 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18781 int result;
7722248d 18782 bool temp2 = False ;
d14a1e28
RD
18783 PyObject * obj0 = 0 ;
18784 PyObject * obj1 = 0 ;
18785 char *kwnames[] = {
18786 (char *) "self",(char *) "tz", NULL
18787 };
18788
18789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18792 if (obj1) {
18793 {
18794 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 18795 temp2 = True;
d14a1e28
RD
18796 }
18797 }
18798 {
18799 PyThreadState* __tstate = wxPyBeginAllowThreads();
18800 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
18801
18802 wxPyEndAllowThreads(__tstate);
18803 if (PyErr_Occurred()) SWIG_fail;
18804 }
15afbcd0 18805 resultobj = SWIG_FromInt((int)result);
d14a1e28 18806 {
7722248d 18807 if (temp2) delete arg2;
d14a1e28
RD
18808 }
18809 return resultobj;
18810 fail:
18811 {
7722248d 18812 if (temp2) delete arg2;
d14a1e28
RD
18813 }
18814 return NULL;
18815}
18816
18817
18818static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18819 PyObject *resultobj;
18820 wxDateTime *arg1 = (wxDateTime *) 0 ;
18821 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18822 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 18823 int result;
7722248d 18824 bool temp2 = False ;
d14a1e28
RD
18825 PyObject * obj0 = 0 ;
18826 PyObject * obj1 = 0 ;
18827 char *kwnames[] = {
18828 (char *) "self",(char *) "tz", NULL
18829 };
18830
18831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18834 if (obj1) {
18835 {
18836 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 18837 temp2 = True;
d14a1e28
RD
18838 }
18839 }
18840 {
18841 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 18842 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
18843
18844 wxPyEndAllowThreads(__tstate);
18845 if (PyErr_Occurred()) SWIG_fail;
18846 }
15afbcd0 18847 resultobj = SWIG_FromInt((int)result);
d14a1e28 18848 {
7722248d 18849 if (temp2) delete arg2;
d14a1e28
RD
18850 }
18851 return resultobj;
18852 fail:
18853 {
7722248d 18854 if (temp2) delete arg2;
d14a1e28
RD
18855 }
18856 return NULL;
18857}
18858
18859
18860static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18861 PyObject *resultobj;
18862 wxDateTime *arg1 = (wxDateTime *) 0 ;
18863 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18864 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18865 int result;
7722248d 18866 bool temp2 = False ;
d14a1e28
RD
18867 PyObject * obj0 = 0 ;
18868 PyObject * obj1 = 0 ;
18869 char *kwnames[] = {
18870 (char *) "self",(char *) "tz", NULL
18871 };
18872
18873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18876 if (obj1) {
18877 {
18878 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 18879 temp2 = True;
d14a1e28
RD
18880 }
18881 }
18882 {
18883 PyThreadState* __tstate = wxPyBeginAllowThreads();
18884 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
18885
18886 wxPyEndAllowThreads(__tstate);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
15afbcd0 18889 resultobj = SWIG_FromInt((int)result);
d14a1e28 18890 {
7722248d 18891 if (temp2) delete arg2;
d14a1e28
RD
18892 }
18893 return resultobj;
18894 fail:
18895 {
7722248d 18896 if (temp2) delete arg2;
d14a1e28
RD
18897 }
18898 return NULL;
18899}
18900
18901
18902static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18903 PyObject *resultobj;
18904 wxDateTime *arg1 = (wxDateTime *) 0 ;
18905 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18906 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 18907 int result;
7722248d 18908 bool temp2 = False ;
d14a1e28
RD
18909 PyObject * obj0 = 0 ;
18910 PyObject * obj1 = 0 ;
18911 char *kwnames[] = {
18912 (char *) "self",(char *) "tz", NULL
18913 };
18914
18915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18918 if (obj1) {
18919 {
18920 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 18921 temp2 = True;
d14a1e28
RD
18922 }
18923 }
18924 {
18925 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 18926 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
18927
18928 wxPyEndAllowThreads(__tstate);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
15afbcd0 18931 resultobj = SWIG_FromInt((int)result);
d14a1e28 18932 {
7722248d 18933 if (temp2) delete arg2;
d14a1e28
RD
18934 }
18935 return resultobj;
18936 fail:
18937 {
7722248d 18938 if (temp2) delete arg2;
d14a1e28
RD
18939 }
18940 return NULL;
18941}
18942
18943
18944static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18945 PyObject *resultobj;
18946 wxDateTime *arg1 = (wxDateTime *) 0 ;
18947 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18948 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 18949 int result;
7722248d 18950 bool temp2 = False ;
d14a1e28
RD
18951 PyObject * obj0 = 0 ;
18952 PyObject * obj1 = 0 ;
18953 char *kwnames[] = {
18954 (char *) "self",(char *) "tz", NULL
18955 };
18956
18957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
18958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
18960 if (obj1) {
18961 {
18962 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 18963 temp2 = True;
d14a1e28
RD
18964 }
18965 }
18966 {
18967 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 18968 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
18969
18970 wxPyEndAllowThreads(__tstate);
18971 if (PyErr_Occurred()) SWIG_fail;
18972 }
15afbcd0 18973 resultobj = SWIG_FromInt((int)result);
d14a1e28 18974 {
7722248d 18975 if (temp2) delete arg2;
d14a1e28
RD
18976 }
18977 return resultobj;
18978 fail:
18979 {
7722248d 18980 if (temp2) delete arg2;
d14a1e28
RD
18981 }
18982 return NULL;
18983}
18984
18985
18986static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18987 PyObject *resultobj;
18988 wxDateTime *arg1 = (wxDateTime *) 0 ;
18989 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18990 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 18991 int result;
7722248d 18992 bool temp2 = False ;
d14a1e28
RD
18993 PyObject * obj0 = 0 ;
18994 PyObject * obj1 = 0 ;
18995 char *kwnames[] = {
18996 (char *) "self",(char *) "tz", NULL
18997 };
18998
18999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
19002 if (obj1) {
19003 {
19004 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 19005 temp2 = True;
d14a1e28
RD
19006 }
19007 }
19008 {
19009 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 19010 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
19011
19012 wxPyEndAllowThreads(__tstate);
19013 if (PyErr_Occurred()) SWIG_fail;
19014 }
15afbcd0 19015 resultobj = SWIG_FromInt((int)result);
d14a1e28 19016 {
7722248d 19017 if (temp2) delete arg2;
d14a1e28
RD
19018 }
19019 return resultobj;
19020 fail:
19021 {
7722248d 19022 if (temp2) delete arg2;
d14a1e28
RD
19023 }
19024 return NULL;
19025}
19026
19027
19028static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19029 PyObject *resultobj;
19030 wxDateTime *arg1 = (wxDateTime *) 0 ;
19031 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19032 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 19033 int result;
7722248d 19034 bool temp2 = False ;
d14a1e28
RD
19035 PyObject * obj0 = 0 ;
19036 PyObject * obj1 = 0 ;
19037 char *kwnames[] = {
19038 (char *) "self",(char *) "tz", NULL
19039 };
19040
19041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
19044 if (obj1) {
19045 {
19046 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 19047 temp2 = True;
d14a1e28
RD
19048 }
19049 }
19050 {
19051 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 19052 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
19053
19054 wxPyEndAllowThreads(__tstate);
19055 if (PyErr_Occurred()) SWIG_fail;
19056 }
15afbcd0 19057 resultobj = SWIG_FromInt((int)result);
d14a1e28 19058 {
7722248d 19059 if (temp2) delete arg2;
d14a1e28
RD
19060 }
19061 return resultobj;
19062 fail:
19063 {
7722248d 19064 if (temp2) delete arg2;
d14a1e28
RD
19065 }
19066 return NULL;
19067}
19068
19069
19070static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19071 PyObject *resultobj;
19072 wxDateTime *arg1 = (wxDateTime *) 0 ;
19073 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19074 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 19075 int result;
7722248d 19076 bool temp2 = False ;
d14a1e28
RD
19077 PyObject * obj0 = 0 ;
19078 PyObject * obj1 = 0 ;
19079 char *kwnames[] = {
19080 (char *) "self",(char *) "tz", NULL
19081 };
19082
19083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
19086 if (obj1) {
19087 {
19088 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 19089 temp2 = True;
d14a1e28
RD
19090 }
19091 }
19092 {
19093 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 19094 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
19095
19096 wxPyEndAllowThreads(__tstate);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
15afbcd0 19099 resultobj = SWIG_FromInt((int)result);
d14a1e28 19100 {
7722248d 19101 if (temp2) delete arg2;
d14a1e28
RD
19102 }
19103 return resultobj;
19104 fail:
19105 {
7722248d 19106 if (temp2) delete arg2;
d14a1e28
RD
19107 }
19108 return NULL;
19109}
19110
19111
19112static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19113 PyObject *resultobj;
19114 wxDateTime *arg1 = (wxDateTime *) 0 ;
19115 int arg2 = (int) wxDateTime::Monday_First ;
19116 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19117 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
322913ce 19118 int result;
7722248d 19119 bool temp3 = False ;
d14a1e28 19120 PyObject * obj0 = 0 ;
994141e6 19121 PyObject * obj1 = 0 ;
d14a1e28
RD
19122 PyObject * obj2 = 0 ;
19123 char *kwnames[] = {
19124 (char *) "self",(char *) "flags",(char *) "tz", NULL
19125 };
19126
994141e6 19127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
19128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 19130 if (obj1) {
15afbcd0
RD
19131 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19132 if (PyErr_Occurred()) SWIG_fail;
994141e6 19133 }
d14a1e28
RD
19134 if (obj2) {
19135 {
19136 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 19137 temp3 = True;
d14a1e28
RD
19138 }
19139 }
19140 {
19141 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 19142 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
d14a1e28
RD
19143
19144 wxPyEndAllowThreads(__tstate);
19145 if (PyErr_Occurred()) SWIG_fail;
19146 }
15afbcd0 19147 resultobj = SWIG_FromInt((int)result);
d14a1e28 19148 {
7722248d 19149 if (temp3) delete arg3;
d14a1e28
RD
19150 }
19151 return resultobj;
19152 fail:
19153 {
7722248d 19154 if (temp3) delete arg3;
d14a1e28
RD
19155 }
19156 return NULL;
19157}
19158
19159
19160static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19161 PyObject *resultobj;
19162 wxDateTime *arg1 = (wxDateTime *) 0 ;
19163 int arg2 = (int) wxDateTime::Monday_First ;
19164 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19165 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
322913ce 19166 int result;
7722248d 19167 bool temp3 = False ;
d14a1e28 19168 PyObject * obj0 = 0 ;
994141e6 19169 PyObject * obj1 = 0 ;
d14a1e28
RD
19170 PyObject * obj2 = 0 ;
19171 char *kwnames[] = {
19172 (char *) "self",(char *) "flags",(char *) "tz", NULL
19173 };
19174
994141e6 19175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
19176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 19178 if (obj1) {
15afbcd0
RD
19179 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19180 if (PyErr_Occurred()) SWIG_fail;
994141e6 19181 }
d14a1e28
RD
19182 if (obj2) {
19183 {
19184 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 19185 temp3 = True;
d14a1e28
RD
19186 }
19187 }
19188 {
19189 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 19190 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
d14a1e28
RD
19191
19192 wxPyEndAllowThreads(__tstate);
19193 if (PyErr_Occurred()) SWIG_fail;
19194 }
15afbcd0 19195 resultobj = SWIG_FromInt((int)result);
d14a1e28 19196 {
7722248d 19197 if (temp3) delete arg3;
d14a1e28
RD
19198 }
19199 return resultobj;
19200 fail:
19201 {
7722248d 19202 if (temp3) delete arg3;
d14a1e28
RD
19203 }
19204 return NULL;
19205}
19206
19207
19208static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19209 PyObject *resultobj;
19210 wxDateTime *arg1 = (wxDateTime *) 0 ;
19211 int arg2 = (int) wxDateTime::Country_Default ;
19212 bool result;
19213 PyObject * obj0 = 0 ;
994141e6 19214 PyObject * obj1 = 0 ;
d14a1e28
RD
19215 char *kwnames[] = {
19216 (char *) "self",(char *) "country", NULL
19217 };
19218
994141e6 19219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 19222 if (obj1) {
15afbcd0
RD
19223 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19224 if (PyErr_Occurred()) SWIG_fail;
994141e6 19225 }
d14a1e28
RD
19226 {
19227 PyThreadState* __tstate = wxPyBeginAllowThreads();
19228 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19229
19230 wxPyEndAllowThreads(__tstate);
19231 if (PyErr_Occurred()) SWIG_fail;
19232 }
4d5c3d91 19233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19234 return resultobj;
19235 fail:
19236 return NULL;
19237}
19238
19239
19240static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19241 PyObject *resultobj;
19242 wxDateTime *arg1 = (wxDateTime *) 0 ;
19243 wxDateTime *arg2 = 0 ;
19244 bool result;
19245 PyObject * obj0 = 0 ;
19246 PyObject * obj1 = 0 ;
19247 char *kwnames[] = {
19248 (char *) "self",(char *) "datetime", NULL
19249 };
19250
19251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19254 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19255 SWIG_POINTER_EXCEPTION | 0)) == -1)
19256 SWIG_fail;
d14a1e28 19257 if (arg2 == NULL) {
15afbcd0
RD
19258 PyErr_SetString(PyExc_TypeError,"null reference");
19259 SWIG_fail;
d14a1e28
RD
19260 }
19261 {
19262 PyThreadState* __tstate = wxPyBeginAllowThreads();
19263 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19264
19265 wxPyEndAllowThreads(__tstate);
19266 if (PyErr_Occurred()) SWIG_fail;
19267 }
4d5c3d91 19268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19269 return resultobj;
19270 fail:
19271 return NULL;
19272}
19273
19274
19275static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19276 PyObject *resultobj;
19277 wxDateTime *arg1 = (wxDateTime *) 0 ;
19278 wxDateTime *arg2 = 0 ;
19279 bool result;
19280 PyObject * obj0 = 0 ;
19281 PyObject * obj1 = 0 ;
19282 char *kwnames[] = {
19283 (char *) "self",(char *) "datetime", NULL
19284 };
19285
19286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19289 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19290 SWIG_POINTER_EXCEPTION | 0)) == -1)
19291 SWIG_fail;
d14a1e28 19292 if (arg2 == NULL) {
15afbcd0
RD
19293 PyErr_SetString(PyExc_TypeError,"null reference");
19294 SWIG_fail;
d14a1e28
RD
19295 }
19296 {
19297 PyThreadState* __tstate = wxPyBeginAllowThreads();
19298 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19299
19300 wxPyEndAllowThreads(__tstate);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 }
4d5c3d91 19303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19304 return resultobj;
19305 fail:
19306 return NULL;
19307}
19308
19309
19310static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19311 PyObject *resultobj;
19312 wxDateTime *arg1 = (wxDateTime *) 0 ;
19313 wxDateTime *arg2 = 0 ;
19314 bool result;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 char *kwnames[] = {
19318 (char *) "self",(char *) "datetime", NULL
19319 };
19320
19321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19325 SWIG_POINTER_EXCEPTION | 0)) == -1)
19326 SWIG_fail;
d14a1e28 19327 if (arg2 == NULL) {
15afbcd0
RD
19328 PyErr_SetString(PyExc_TypeError,"null reference");
19329 SWIG_fail;
d14a1e28
RD
19330 }
19331 {
19332 PyThreadState* __tstate = wxPyBeginAllowThreads();
19333 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19334
19335 wxPyEndAllowThreads(__tstate);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
4d5c3d91 19338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19339 return resultobj;
19340 fail:
19341 return NULL;
19342}
19343
19344
19345static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19346 PyObject *resultobj;
19347 wxDateTime *arg1 = (wxDateTime *) 0 ;
19348 wxDateTime *arg2 = 0 ;
19349 wxDateTime *arg3 = 0 ;
19350 bool result;
19351 PyObject * obj0 = 0 ;
19352 PyObject * obj1 = 0 ;
19353 PyObject * obj2 = 0 ;
19354 char *kwnames[] = {
19355 (char *) "self",(char *) "t1",(char *) "t2", NULL
19356 };
19357
19358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
19359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19361 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19362 SWIG_POINTER_EXCEPTION | 0)) == -1)
19363 SWIG_fail;
d14a1e28 19364 if (arg2 == NULL) {
15afbcd0
RD
19365 PyErr_SetString(PyExc_TypeError,"null reference");
19366 SWIG_fail;
d14a1e28 19367 }
15afbcd0
RD
19368 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19369 SWIG_POINTER_EXCEPTION | 0)) == -1)
19370 SWIG_fail;
d14a1e28 19371 if (arg3 == NULL) {
15afbcd0
RD
19372 PyErr_SetString(PyExc_TypeError,"null reference");
19373 SWIG_fail;
d14a1e28
RD
19374 }
19375 {
19376 PyThreadState* __tstate = wxPyBeginAllowThreads();
19377 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19378
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
4d5c3d91 19382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19383 return resultobj;
19384 fail:
19385 return NULL;
19386}
19387
19388
19389static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19390 PyObject *resultobj;
19391 wxDateTime *arg1 = (wxDateTime *) 0 ;
19392 wxDateTime *arg2 = 0 ;
19393 wxDateTime *arg3 = 0 ;
19394 bool result;
19395 PyObject * obj0 = 0 ;
19396 PyObject * obj1 = 0 ;
19397 PyObject * obj2 = 0 ;
19398 char *kwnames[] = {
19399 (char *) "self",(char *) "t1",(char *) "t2", NULL
19400 };
19401
19402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
19403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19406 SWIG_POINTER_EXCEPTION | 0)) == -1)
19407 SWIG_fail;
d14a1e28 19408 if (arg2 == NULL) {
15afbcd0
RD
19409 PyErr_SetString(PyExc_TypeError,"null reference");
19410 SWIG_fail;
d14a1e28 19411 }
15afbcd0
RD
19412 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19413 SWIG_POINTER_EXCEPTION | 0)) == -1)
19414 SWIG_fail;
d14a1e28 19415 if (arg3 == NULL) {
15afbcd0
RD
19416 PyErr_SetString(PyExc_TypeError,"null reference");
19417 SWIG_fail;
d14a1e28
RD
19418 }
19419 {
19420 PyThreadState* __tstate = wxPyBeginAllowThreads();
19421 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19422
19423 wxPyEndAllowThreads(__tstate);
19424 if (PyErr_Occurred()) SWIG_fail;
19425 }
4d5c3d91 19426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19427 return resultobj;
19428 fail:
19429 return NULL;
19430}
19431
19432
19433static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19434 PyObject *resultobj;
19435 wxDateTime *arg1 = (wxDateTime *) 0 ;
19436 wxDateTime *arg2 = 0 ;
19437 bool result;
19438 PyObject * obj0 = 0 ;
19439 PyObject * obj1 = 0 ;
19440 char *kwnames[] = {
19441 (char *) "self",(char *) "dt", NULL
19442 };
19443
19444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19447 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19448 SWIG_POINTER_EXCEPTION | 0)) == -1)
19449 SWIG_fail;
d14a1e28 19450 if (arg2 == NULL) {
15afbcd0
RD
19451 PyErr_SetString(PyExc_TypeError,"null reference");
19452 SWIG_fail;
d14a1e28
RD
19453 }
19454 {
19455 PyThreadState* __tstate = wxPyBeginAllowThreads();
19456 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19457
19458 wxPyEndAllowThreads(__tstate);
19459 if (PyErr_Occurred()) SWIG_fail;
19460 }
4d5c3d91 19461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19462 return resultobj;
19463 fail:
19464 return NULL;
19465}
19466
19467
19468static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19469 PyObject *resultobj;
19470 wxDateTime *arg1 = (wxDateTime *) 0 ;
19471 wxDateTime *arg2 = 0 ;
19472 bool result;
19473 PyObject * obj0 = 0 ;
19474 PyObject * obj1 = 0 ;
19475 char *kwnames[] = {
19476 (char *) "self",(char *) "dt", NULL
19477 };
19478
19479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19483 SWIG_POINTER_EXCEPTION | 0)) == -1)
19484 SWIG_fail;
d14a1e28 19485 if (arg2 == NULL) {
15afbcd0
RD
19486 PyErr_SetString(PyExc_TypeError,"null reference");
19487 SWIG_fail;
d14a1e28
RD
19488 }
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19492
19493 wxPyEndAllowThreads(__tstate);
19494 if (PyErr_Occurred()) SWIG_fail;
19495 }
4d5c3d91 19496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19497 return resultobj;
19498 fail:
19499 return NULL;
19500}
19501
19502
19503static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19504 PyObject *resultobj;
19505 wxDateTime *arg1 = (wxDateTime *) 0 ;
19506 wxDateTime *arg2 = 0 ;
19507 wxTimeSpan *arg3 = 0 ;
19508 bool result;
19509 PyObject * obj0 = 0 ;
19510 PyObject * obj1 = 0 ;
19511 PyObject * obj2 = 0 ;
19512 char *kwnames[] = {
19513 (char *) "self",(char *) "dt",(char *) "ts", NULL
19514 };
19515
19516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
19517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19519 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19520 SWIG_POINTER_EXCEPTION | 0)) == -1)
19521 SWIG_fail;
d14a1e28 19522 if (arg2 == NULL) {
15afbcd0
RD
19523 PyErr_SetString(PyExc_TypeError,"null reference");
19524 SWIG_fail;
d14a1e28 19525 }
15afbcd0
RD
19526 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19527 SWIG_POINTER_EXCEPTION | 0)) == -1)
19528 SWIG_fail;
d14a1e28 19529 if (arg3 == NULL) {
15afbcd0
RD
19530 PyErr_SetString(PyExc_TypeError,"null reference");
19531 SWIG_fail;
d14a1e28
RD
19532 }
19533 {
19534 PyThreadState* __tstate = wxPyBeginAllowThreads();
19535 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19536
19537 wxPyEndAllowThreads(__tstate);
19538 if (PyErr_Occurred()) SWIG_fail;
19539 }
4d5c3d91 19540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19541 return resultobj;
19542 fail:
19543 return NULL;
19544}
19545
19546
19547static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19548 PyObject *resultobj;
19549 wxDateTime *arg1 = (wxDateTime *) 0 ;
19550 wxTimeSpan *arg2 = 0 ;
19551 wxDateTime *result;
19552 PyObject * obj0 = 0 ;
19553 PyObject * obj1 = 0 ;
19554 char *kwnames[] = {
19555 (char *) "self",(char *) "diff", NULL
19556 };
19557
19558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19562 SWIG_POINTER_EXCEPTION | 0)) == -1)
19563 SWIG_fail;
d14a1e28 19564 if (arg2 == NULL) {
15afbcd0
RD
19565 PyErr_SetString(PyExc_TypeError,"null reference");
19566 SWIG_fail;
d14a1e28
RD
19567 }
19568 {
19569 PyThreadState* __tstate = wxPyBeginAllowThreads();
19570 {
19571 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19572 result = (wxDateTime *) &_result_ref;
19573 }
19574
19575 wxPyEndAllowThreads(__tstate);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 }
15afbcd0 19578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
19579 return resultobj;
19580 fail:
19581 return NULL;
19582}
19583
19584
19585static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19586 PyObject *resultobj;
19587 wxDateTime *arg1 = (wxDateTime *) 0 ;
19588 wxDateSpan *arg2 = 0 ;
19589 wxDateTime *result;
19590 PyObject * obj0 = 0 ;
19591 PyObject * obj1 = 0 ;
19592 char *kwnames[] = {
19593 (char *) "self",(char *) "diff", NULL
19594 };
19595
19596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19600 SWIG_POINTER_EXCEPTION | 0)) == -1)
19601 SWIG_fail;
d14a1e28 19602 if (arg2 == NULL) {
15afbcd0
RD
19603 PyErr_SetString(PyExc_TypeError,"null reference");
19604 SWIG_fail;
d14a1e28
RD
19605 }
19606 {
19607 PyThreadState* __tstate = wxPyBeginAllowThreads();
19608 {
19609 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19610 result = (wxDateTime *) &_result_ref;
19611 }
19612
19613 wxPyEndAllowThreads(__tstate);
19614 if (PyErr_Occurred()) SWIG_fail;
19615 }
15afbcd0 19616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
19617 return resultobj;
19618 fail:
19619 return NULL;
19620}
19621
19622
19623static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19624 PyObject *resultobj;
19625 wxDateTime *arg1 = (wxDateTime *) 0 ;
19626 wxTimeSpan *arg2 = 0 ;
19627 wxDateTime *result;
19628 PyObject * obj0 = 0 ;
19629 PyObject * obj1 = 0 ;
19630 char *kwnames[] = {
19631 (char *) "self",(char *) "diff", NULL
19632 };
19633
19634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19637 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19638 SWIG_POINTER_EXCEPTION | 0)) == -1)
19639 SWIG_fail;
d14a1e28 19640 if (arg2 == NULL) {
15afbcd0
RD
19641 PyErr_SetString(PyExc_TypeError,"null reference");
19642 SWIG_fail;
d14a1e28
RD
19643 }
19644 {
19645 PyThreadState* __tstate = wxPyBeginAllowThreads();
19646 {
19647 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19648 result = (wxDateTime *) &_result_ref;
19649 }
19650
19651 wxPyEndAllowThreads(__tstate);
19652 if (PyErr_Occurred()) SWIG_fail;
19653 }
15afbcd0 19654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
19655 return resultobj;
19656 fail:
19657 return NULL;
19658}
19659
19660
19661static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19662 PyObject *resultobj;
19663 wxDateTime *arg1 = (wxDateTime *) 0 ;
19664 wxDateSpan *arg2 = 0 ;
19665 wxDateTime *result;
19666 PyObject * obj0 = 0 ;
19667 PyObject * obj1 = 0 ;
19668 char *kwnames[] = {
19669 (char *) "self",(char *) "diff", NULL
19670 };
19671
19672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19675 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19676 SWIG_POINTER_EXCEPTION | 0)) == -1)
19677 SWIG_fail;
d14a1e28 19678 if (arg2 == NULL) {
15afbcd0
RD
19679 PyErr_SetString(PyExc_TypeError,"null reference");
19680 SWIG_fail;
d14a1e28
RD
19681 }
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 {
19685 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19686 result = (wxDateTime *) &_result_ref;
19687 }
19688
19689 wxPyEndAllowThreads(__tstate);
19690 if (PyErr_Occurred()) SWIG_fail;
19691 }
15afbcd0 19692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
19693 return resultobj;
19694 fail:
19695 return NULL;
19696}
19697
19698
19699static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19700 PyObject *resultobj;
19701 wxDateTime *arg1 = (wxDateTime *) 0 ;
19702 wxDateTime *arg2 = 0 ;
19703 wxTimeSpan result;
19704 PyObject * obj0 = 0 ;
19705 PyObject * obj1 = 0 ;
19706 char *kwnames[] = {
19707 (char *) "self",(char *) "dt", NULL
19708 };
19709
19710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
19711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19713 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19714 SWIG_POINTER_EXCEPTION | 0)) == -1)
19715 SWIG_fail;
d14a1e28 19716 if (arg2 == NULL) {
15afbcd0
RD
19717 PyErr_SetString(PyExc_TypeError,"null reference");
19718 SWIG_fail;
d14a1e28
RD
19719 }
19720 {
19721 PyThreadState* __tstate = wxPyBeginAllowThreads();
19722 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19723
19724 wxPyEndAllowThreads(__tstate);
19725 if (PyErr_Occurred()) SWIG_fail;
19726 }
19727 {
19728 wxTimeSpan * resultptr;
19729 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 19730 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
19731 }
19732 return resultobj;
19733 fail:
19734 return NULL;
19735}
19736
19737
19738static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19739 PyObject *resultobj;
19740 wxDateTime *arg1 = (wxDateTime *) 0 ;
19741 wxTimeSpan *arg2 = 0 ;
19742 wxDateTime *result;
19743 PyObject * obj0 = 0 ;
19744 PyObject * obj1 = 0 ;
19745
19746 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
15afbcd0
RD
19747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19749 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19750 SWIG_POINTER_EXCEPTION | 0)) == -1)
19751 SWIG_fail;
d14a1e28 19752 if (arg2 == NULL) {
15afbcd0
RD
19753 PyErr_SetString(PyExc_TypeError,"null reference");
19754 SWIG_fail;
d14a1e28
RD
19755 }
19756 {
19757 PyThreadState* __tstate = wxPyBeginAllowThreads();
19758 {
19759 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19760 result = (wxDateTime *) &_result_ref;
19761 }
19762
19763 wxPyEndAllowThreads(__tstate);
19764 if (PyErr_Occurred()) SWIG_fail;
19765 }
15afbcd0 19766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
19767 return resultobj;
19768 fail:
19769 return NULL;
19770}
19771
19772
19773static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
19774 PyObject *resultobj;
19775 wxDateTime *arg1 = (wxDateTime *) 0 ;
19776 wxDateSpan *arg2 = 0 ;
19777 wxDateTime *result;
19778 PyObject * obj0 = 0 ;
19779 PyObject * obj1 = 0 ;
19780
19781 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
15afbcd0
RD
19782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19784 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19785 SWIG_POINTER_EXCEPTION | 0)) == -1)
19786 SWIG_fail;
d14a1e28 19787 if (arg2 == NULL) {
15afbcd0
RD
19788 PyErr_SetString(PyExc_TypeError,"null reference");
19789 SWIG_fail;
d14a1e28
RD
19790 }
19791 {
19792 PyThreadState* __tstate = wxPyBeginAllowThreads();
19793 {
19794 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
19795 result = (wxDateTime *) &_result_ref;
19796 }
19797
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
15afbcd0 19801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
19802 return resultobj;
19803 fail:
19804 return NULL;
19805}
19806
19807
19808static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
19809 int argc;
19810 PyObject *argv[3];
19811 int ii;
19812
19813 argc = PyObject_Length(args);
19814 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19815 argv[ii] = PyTuple_GetItem(args,ii);
19816 }
19817 if (argc == 2) {
19818 int _v;
19819 {
19820 void *ptr;
15afbcd0 19821 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
19822 _v = 0;
19823 PyErr_Clear();
19824 } else {
19825 _v = 1;
19826 }
19827 }
19828 if (_v) {
19829 {
19830 void *ptr;
15afbcd0 19831 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
d14a1e28
RD
19832 _v = 0;
19833 PyErr_Clear();
19834 } else {
19835 _v = 1;
19836 }
19837 }
19838 if (_v) {
19839 return _wrap_DateTime___iadd____SWIG_0(self,args);
19840 }
19841 }
19842 }
19843 if (argc == 2) {
19844 int _v;
19845 {
19846 void *ptr;
15afbcd0 19847 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
19848 _v = 0;
19849 PyErr_Clear();
19850 } else {
19851 _v = 1;
19852 }
19853 }
19854 if (_v) {
19855 {
19856 void *ptr;
15afbcd0 19857 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
d14a1e28
RD
19858 _v = 0;
19859 PyErr_Clear();
19860 } else {
19861 _v = 1;
19862 }
19863 }
19864 if (_v) {
19865 return _wrap_DateTime___iadd____SWIG_1(self,args);
19866 }
19867 }
19868 }
19869
19870 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
19871 return NULL;
19872}
19873
19874
19875static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
19876 PyObject *resultobj;
19877 wxDateTime *arg1 = (wxDateTime *) 0 ;
19878 wxTimeSpan *arg2 = 0 ;
19879 wxDateTime *result;
19880 PyObject * obj0 = 0 ;
19881 PyObject * obj1 = 0 ;
19882
19883 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
15afbcd0
RD
19884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19886 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19887 SWIG_POINTER_EXCEPTION | 0)) == -1)
19888 SWIG_fail;
d14a1e28 19889 if (arg2 == NULL) {
15afbcd0
RD
19890 PyErr_SetString(PyExc_TypeError,"null reference");
19891 SWIG_fail;
d14a1e28
RD
19892 }
19893 {
19894 PyThreadState* __tstate = wxPyBeginAllowThreads();
19895 {
19896 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
19897 result = (wxDateTime *) &_result_ref;
19898 }
19899
19900 wxPyEndAllowThreads(__tstate);
19901 if (PyErr_Occurred()) SWIG_fail;
19902 }
15afbcd0 19903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
19904 return resultobj;
19905 fail:
19906 return NULL;
19907}
19908
19909
19910static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
19911 PyObject *resultobj;
19912 wxDateTime *arg1 = (wxDateTime *) 0 ;
19913 wxDateSpan *arg2 = 0 ;
19914 wxDateTime *result;
19915 PyObject * obj0 = 0 ;
19916 PyObject * obj1 = 0 ;
19917
19918 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
15afbcd0
RD
19919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19922 SWIG_POINTER_EXCEPTION | 0)) == -1)
19923 SWIG_fail;
d14a1e28 19924 if (arg2 == NULL) {
15afbcd0
RD
19925 PyErr_SetString(PyExc_TypeError,"null reference");
19926 SWIG_fail;
d14a1e28
RD
19927 }
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 {
19931 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
19932 result = (wxDateTime *) &_result_ref;
19933 }
19934
19935 wxPyEndAllowThreads(__tstate);
19936 if (PyErr_Occurred()) SWIG_fail;
19937 }
15afbcd0 19938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
d14a1e28
RD
19939 return resultobj;
19940 fail:
19941 return NULL;
19942}
19943
19944
19945static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
19946 int argc;
19947 PyObject *argv[3];
19948 int ii;
19949
19950 argc = PyObject_Length(args);
19951 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19952 argv[ii] = PyTuple_GetItem(args,ii);
19953 }
19954 if (argc == 2) {
19955 int _v;
19956 {
19957 void *ptr;
15afbcd0 19958 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
19959 _v = 0;
19960 PyErr_Clear();
19961 } else {
19962 _v = 1;
19963 }
19964 }
19965 if (_v) {
19966 {
19967 void *ptr;
15afbcd0 19968 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
d14a1e28
RD
19969 _v = 0;
19970 PyErr_Clear();
19971 } else {
19972 _v = 1;
19973 }
19974 }
19975 if (_v) {
19976 return _wrap_DateTime___isub____SWIG_0(self,args);
19977 }
19978 }
19979 }
19980 if (argc == 2) {
19981 int _v;
19982 {
19983 void *ptr;
15afbcd0 19984 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
19985 _v = 0;
19986 PyErr_Clear();
19987 } else {
19988 _v = 1;
19989 }
19990 }
19991 if (_v) {
19992 {
19993 void *ptr;
15afbcd0 19994 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
d14a1e28
RD
19995 _v = 0;
19996 PyErr_Clear();
19997 } else {
19998 _v = 1;
19999 }
20000 }
20001 if (_v) {
20002 return _wrap_DateTime___isub____SWIG_1(self,args);
20003 }
20004 }
20005 }
20006
20007 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20008 return NULL;
20009}
20010
20011
20012static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20013 PyObject *resultobj;
20014 wxDateTime *arg1 = (wxDateTime *) 0 ;
20015 wxTimeSpan *arg2 = 0 ;
20016 wxDateTime result;
20017 PyObject * obj0 = 0 ;
20018 PyObject * obj1 = 0 ;
20019
20020 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20023 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20024 SWIG_POINTER_EXCEPTION | 0)) == -1)
20025 SWIG_fail;
d14a1e28 20026 if (arg2 == NULL) {
15afbcd0
RD
20027 PyErr_SetString(PyExc_TypeError,"null reference");
20028 SWIG_fail;
d14a1e28
RD
20029 }
20030 {
20031 PyThreadState* __tstate = wxPyBeginAllowThreads();
20032 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20033
20034 wxPyEndAllowThreads(__tstate);
20035 if (PyErr_Occurred()) SWIG_fail;
20036 }
20037 {
20038 wxDateTime * resultptr;
20039 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 20040 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
20041 }
20042 return resultobj;
20043 fail:
20044 return NULL;
20045}
20046
20047
20048static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20049 PyObject *resultobj;
20050 wxDateTime *arg1 = (wxDateTime *) 0 ;
20051 wxDateSpan *arg2 = 0 ;
20052 wxDateTime result;
20053 PyObject * obj0 = 0 ;
20054 PyObject * obj1 = 0 ;
20055
20056 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20059 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20060 SWIG_POINTER_EXCEPTION | 0)) == -1)
20061 SWIG_fail;
d14a1e28 20062 if (arg2 == NULL) {
15afbcd0
RD
20063 PyErr_SetString(PyExc_TypeError,"null reference");
20064 SWIG_fail;
d14a1e28
RD
20065 }
20066 {
20067 PyThreadState* __tstate = wxPyBeginAllowThreads();
20068 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20069
20070 wxPyEndAllowThreads(__tstate);
20071 if (PyErr_Occurred()) SWIG_fail;
20072 }
20073 {
20074 wxDateTime * resultptr;
20075 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 20076 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
20077 }
20078 return resultobj;
20079 fail:
20080 return NULL;
20081}
20082
20083
20084static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20085 int argc;
20086 PyObject *argv[3];
20087 int ii;
20088
20089 argc = PyObject_Length(args);
20090 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20091 argv[ii] = PyTuple_GetItem(args,ii);
20092 }
20093 if (argc == 2) {
20094 int _v;
20095 {
20096 void *ptr;
15afbcd0 20097 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
20098 _v = 0;
20099 PyErr_Clear();
20100 } else {
20101 _v = 1;
20102 }
20103 }
20104 if (_v) {
20105 {
20106 void *ptr;
15afbcd0 20107 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
d14a1e28
RD
20108 _v = 0;
20109 PyErr_Clear();
20110 } else {
20111 _v = 1;
20112 }
20113 }
20114 if (_v) {
20115 return _wrap_DateTime___add____SWIG_0(self,args);
20116 }
20117 }
20118 }
20119 if (argc == 2) {
20120 int _v;
20121 {
20122 void *ptr;
15afbcd0 20123 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
20124 _v = 0;
20125 PyErr_Clear();
20126 } else {
20127 _v = 1;
20128 }
20129 }
20130 if (_v) {
20131 {
20132 void *ptr;
15afbcd0 20133 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
d14a1e28
RD
20134 _v = 0;
20135 PyErr_Clear();
20136 } else {
20137 _v = 1;
20138 }
20139 }
20140 if (_v) {
20141 return _wrap_DateTime___add____SWIG_1(self,args);
20142 }
20143 }
20144 }
20145
20146 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20147 return NULL;
20148}
20149
20150
20151static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20152 PyObject *resultobj;
20153 wxDateTime *arg1 = (wxDateTime *) 0 ;
20154 wxDateTime *arg2 = 0 ;
20155 wxTimeSpan result;
20156 PyObject * obj0 = 0 ;
20157 PyObject * obj1 = 0 ;
20158
20159 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20162 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20163 SWIG_POINTER_EXCEPTION | 0)) == -1)
20164 SWIG_fail;
d14a1e28 20165 if (arg2 == NULL) {
15afbcd0
RD
20166 PyErr_SetString(PyExc_TypeError,"null reference");
20167 SWIG_fail;
d14a1e28
RD
20168 }
20169 {
20170 PyThreadState* __tstate = wxPyBeginAllowThreads();
20171 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20172
20173 wxPyEndAllowThreads(__tstate);
20174 if (PyErr_Occurred()) SWIG_fail;
20175 }
20176 {
20177 wxTimeSpan * resultptr;
20178 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 20179 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
20180 }
20181 return resultobj;
20182 fail:
20183 return NULL;
20184}
20185
20186
20187static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20188 PyObject *resultobj;
20189 wxDateTime *arg1 = (wxDateTime *) 0 ;
20190 wxTimeSpan *arg2 = 0 ;
20191 wxDateTime result;
20192 PyObject * obj0 = 0 ;
20193 PyObject * obj1 = 0 ;
20194
20195 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20198 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20199 SWIG_POINTER_EXCEPTION | 0)) == -1)
20200 SWIG_fail;
d14a1e28 20201 if (arg2 == NULL) {
15afbcd0
RD
20202 PyErr_SetString(PyExc_TypeError,"null reference");
20203 SWIG_fail;
d14a1e28
RD
20204 }
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20208
20209 wxPyEndAllowThreads(__tstate);
20210 if (PyErr_Occurred()) SWIG_fail;
20211 }
20212 {
20213 wxDateTime * resultptr;
20214 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 20215 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
20216 }
20217 return resultobj;
20218 fail:
20219 return NULL;
20220}
20221
20222
20223static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20224 PyObject *resultobj;
20225 wxDateTime *arg1 = (wxDateTime *) 0 ;
20226 wxDateSpan *arg2 = 0 ;
20227 wxDateTime result;
20228 PyObject * obj0 = 0 ;
20229 PyObject * obj1 = 0 ;
20230
20231 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20235 SWIG_POINTER_EXCEPTION | 0)) == -1)
20236 SWIG_fail;
d14a1e28 20237 if (arg2 == NULL) {
15afbcd0
RD
20238 PyErr_SetString(PyExc_TypeError,"null reference");
20239 SWIG_fail;
d14a1e28
RD
20240 }
20241 {
20242 PyThreadState* __tstate = wxPyBeginAllowThreads();
20243 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20244
20245 wxPyEndAllowThreads(__tstate);
20246 if (PyErr_Occurred()) SWIG_fail;
20247 }
20248 {
20249 wxDateTime * resultptr;
20250 resultptr = new wxDateTime((wxDateTime &) result);
15afbcd0 20251 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
d14a1e28
RD
20252 }
20253 return resultobj;
20254 fail:
20255 return NULL;
20256}
20257
20258
20259static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20260 int argc;
20261 PyObject *argv[3];
20262 int ii;
20263
20264 argc = PyObject_Length(args);
20265 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20266 argv[ii] = PyTuple_GetItem(args,ii);
20267 }
20268 if (argc == 2) {
20269 int _v;
20270 {
20271 void *ptr;
15afbcd0 20272 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
20273 _v = 0;
20274 PyErr_Clear();
20275 } else {
20276 _v = 1;
20277 }
20278 }
20279 if (_v) {
20280 {
20281 void *ptr;
15afbcd0 20282 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
20283 _v = 0;
20284 PyErr_Clear();
20285 } else {
20286 _v = 1;
20287 }
20288 }
20289 if (_v) {
20290 return _wrap_DateTime___sub____SWIG_0(self,args);
20291 }
20292 }
20293 }
20294 if (argc == 2) {
20295 int _v;
20296 {
20297 void *ptr;
15afbcd0 20298 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
20299 _v = 0;
20300 PyErr_Clear();
20301 } else {
20302 _v = 1;
20303 }
20304 }
20305 if (_v) {
20306 {
20307 void *ptr;
15afbcd0 20308 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
d14a1e28
RD
20309 _v = 0;
20310 PyErr_Clear();
20311 } else {
20312 _v = 1;
20313 }
20314 }
20315 if (_v) {
20316 return _wrap_DateTime___sub____SWIG_1(self,args);
20317 }
20318 }
20319 }
20320 if (argc == 2) {
20321 int _v;
20322 {
20323 void *ptr;
15afbcd0 20324 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
d14a1e28
RD
20325 _v = 0;
20326 PyErr_Clear();
20327 } else {
20328 _v = 1;
20329 }
20330 }
20331 if (_v) {
20332 {
20333 void *ptr;
15afbcd0 20334 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
d14a1e28
RD
20335 _v = 0;
20336 PyErr_Clear();
20337 } else {
20338 _v = 1;
20339 }
20340 }
20341 if (_v) {
20342 return _wrap_DateTime___sub____SWIG_2(self,args);
20343 }
20344 }
20345 }
20346
20347 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20348 return NULL;
20349}
20350
20351
20352static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20353 PyObject *resultobj;
20354 wxDateTime *arg1 = (wxDateTime *) 0 ;
22faec7d 20355 wxDateTime *arg2 = (wxDateTime *) 0 ;
d14a1e28
RD
20356 bool result;
20357 PyObject * obj0 = 0 ;
20358 PyObject * obj1 = 0 ;
20359
20360 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20365 {
20366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 20367 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
d14a1e28
RD
20368
20369 wxPyEndAllowThreads(__tstate);
20370 if (PyErr_Occurred()) SWIG_fail;
20371 }
4d5c3d91 20372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20373 return resultobj;
20374 fail:
20375 return NULL;
20376}
20377
20378
20379static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20380 PyObject *resultobj;
20381 wxDateTime *arg1 = (wxDateTime *) 0 ;
22faec7d 20382 wxDateTime *arg2 = (wxDateTime *) 0 ;
d14a1e28
RD
20383 bool result;
20384 PyObject * obj0 = 0 ;
20385 PyObject * obj1 = 0 ;
20386
20387 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20390 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20392 {
20393 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 20394 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
d14a1e28
RD
20395
20396 wxPyEndAllowThreads(__tstate);
20397 if (PyErr_Occurred()) SWIG_fail;
20398 }
4d5c3d91 20399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20400 return resultobj;
20401 fail:
20402 return NULL;
20403}
20404
20405
20406static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20407 PyObject *resultobj;
20408 wxDateTime *arg1 = (wxDateTime *) 0 ;
22faec7d 20409 wxDateTime *arg2 = (wxDateTime *) 0 ;
d14a1e28
RD
20410 bool result;
20411 PyObject * obj0 = 0 ;
20412 PyObject * obj1 = 0 ;
20413
20414 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20417 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20419 {
20420 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 20421 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
d14a1e28
RD
20422
20423 wxPyEndAllowThreads(__tstate);
20424 if (PyErr_Occurred()) SWIG_fail;
20425 }
4d5c3d91 20426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20427 return resultobj;
20428 fail:
20429 return NULL;
20430}
20431
20432
20433static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20434 PyObject *resultobj;
20435 wxDateTime *arg1 = (wxDateTime *) 0 ;
22faec7d 20436 wxDateTime *arg2 = (wxDateTime *) 0 ;
d14a1e28
RD
20437 bool result;
20438 PyObject * obj0 = 0 ;
20439 PyObject * obj1 = 0 ;
20440
20441 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20446 {
20447 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 20448 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
d14a1e28
RD
20449
20450 wxPyEndAllowThreads(__tstate);
20451 if (PyErr_Occurred()) SWIG_fail;
20452 }
4d5c3d91 20453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20454 return resultobj;
20455 fail:
20456 return NULL;
20457}
20458
20459
20460static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20461 PyObject *resultobj;
20462 wxDateTime *arg1 = (wxDateTime *) 0 ;
22faec7d 20463 wxDateTime *arg2 = (wxDateTime *) 0 ;
d14a1e28
RD
20464 bool result;
20465 PyObject * obj0 = 0 ;
20466 PyObject * obj1 = 0 ;
20467
20468 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 20475 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
d14a1e28
RD
20476
20477 wxPyEndAllowThreads(__tstate);
20478 if (PyErr_Occurred()) SWIG_fail;
20479 }
4d5c3d91 20480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20481 return resultobj;
20482 fail:
20483 return NULL;
20484}
20485
20486
20487static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20488 PyObject *resultobj;
20489 wxDateTime *arg1 = (wxDateTime *) 0 ;
22faec7d 20490 wxDateTime *arg2 = (wxDateTime *) 0 ;
d14a1e28
RD
20491 bool result;
20492 PyObject * obj0 = 0 ;
20493 PyObject * obj1 = 0 ;
20494
20495 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
15afbcd0
RD
20496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20500 {
20501 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 20502 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
d14a1e28
RD
20503
20504 wxPyEndAllowThreads(__tstate);
20505 if (PyErr_Occurred()) SWIG_fail;
20506 }
4d5c3d91 20507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20508 return resultobj;
20509 fail:
20510 return NULL;
20511}
20512
20513
20514static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20515 PyObject *resultobj;
20516 wxDateTime *arg1 = (wxDateTime *) 0 ;
20517 wxString *arg2 = 0 ;
20518 int result;
e811c8ce 20519 bool temp2 = False ;
d14a1e28
RD
20520 PyObject * obj0 = 0 ;
20521 PyObject * obj1 = 0 ;
20522 char *kwnames[] = {
20523 (char *) "self",(char *) "date", NULL
20524 };
20525
20526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
20527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20529 {
20530 arg2 = wxString_in_helper(obj1);
20531 if (arg2 == NULL) SWIG_fail;
e811c8ce 20532 temp2 = True;
d14a1e28
RD
20533 }
20534 {
20535 PyThreadState* __tstate = wxPyBeginAllowThreads();
20536 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20537
20538 wxPyEndAllowThreads(__tstate);
20539 if (PyErr_Occurred()) SWIG_fail;
20540 }
15afbcd0 20541 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
20542 {
20543 if (temp2)
20544 delete arg2;
20545 }
20546 return resultobj;
20547 fail:
20548 {
20549 if (temp2)
20550 delete arg2;
20551 }
20552 return NULL;
20553}
20554
20555
20556static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20557 PyObject *resultobj;
20558 wxDateTime *arg1 = (wxDateTime *) 0 ;
20559 wxString *arg2 = 0 ;
20560 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20561 wxString *arg3 = (wxString *) &arg3_defvalue ;
20562 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20563 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20564 int result;
e811c8ce
RD
20565 bool temp2 = False ;
20566 bool temp3 = False ;
d14a1e28
RD
20567 PyObject * obj0 = 0 ;
20568 PyObject * obj1 = 0 ;
20569 PyObject * obj2 = 0 ;
20570 PyObject * obj3 = 0 ;
20571 char *kwnames[] = {
20572 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20573 };
20574
20575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
20576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20578 {
20579 arg2 = wxString_in_helper(obj1);
20580 if (arg2 == NULL) SWIG_fail;
e811c8ce 20581 temp2 = True;
d14a1e28
RD
20582 }
20583 if (obj2) {
20584 {
20585 arg3 = wxString_in_helper(obj2);
20586 if (arg3 == NULL) SWIG_fail;
e811c8ce 20587 temp3 = True;
d14a1e28
RD
20588 }
20589 }
20590 if (obj3) {
15afbcd0
RD
20591 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20592 SWIG_POINTER_EXCEPTION | 0)) == -1)
20593 SWIG_fail;
d14a1e28 20594 if (arg4 == NULL) {
15afbcd0
RD
20595 PyErr_SetString(PyExc_TypeError,"null reference");
20596 SWIG_fail;
d14a1e28
RD
20597 }
20598 }
20599 {
20600 PyThreadState* __tstate = wxPyBeginAllowThreads();
20601 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20602
20603 wxPyEndAllowThreads(__tstate);
20604 if (PyErr_Occurred()) SWIG_fail;
20605 }
15afbcd0 20606 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
20607 {
20608 if (temp2)
20609 delete arg2;
20610 }
20611 {
20612 if (temp3)
20613 delete arg3;
20614 }
20615 return resultobj;
20616 fail:
20617 {
20618 if (temp2)
20619 delete arg2;
20620 }
20621 {
20622 if (temp3)
20623 delete arg3;
20624 }
20625 return NULL;
20626}
20627
20628
20629static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20630 PyObject *resultobj;
20631 wxDateTime *arg1 = (wxDateTime *) 0 ;
20632 wxString *arg2 = 0 ;
20633 int result;
e811c8ce 20634 bool temp2 = False ;
d14a1e28
RD
20635 PyObject * obj0 = 0 ;
20636 PyObject * obj1 = 0 ;
20637 char *kwnames[] = {
20638 (char *) "self",(char *) "datetime", NULL
20639 };
20640
20641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
20642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20644 {
20645 arg2 = wxString_in_helper(obj1);
20646 if (arg2 == NULL) SWIG_fail;
e811c8ce 20647 temp2 = True;
d14a1e28
RD
20648 }
20649 {
20650 PyThreadState* __tstate = wxPyBeginAllowThreads();
20651 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20652
20653 wxPyEndAllowThreads(__tstate);
20654 if (PyErr_Occurred()) SWIG_fail;
20655 }
15afbcd0 20656 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
20657 {
20658 if (temp2)
20659 delete arg2;
20660 }
20661 return resultobj;
20662 fail:
20663 {
20664 if (temp2)
20665 delete arg2;
20666 }
20667 return NULL;
20668}
20669
20670
20671static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20672 PyObject *resultobj;
20673 wxDateTime *arg1 = (wxDateTime *) 0 ;
20674 wxString *arg2 = 0 ;
20675 int result;
e811c8ce 20676 bool temp2 = False ;
d14a1e28
RD
20677 PyObject * obj0 = 0 ;
20678 PyObject * obj1 = 0 ;
20679 char *kwnames[] = {
20680 (char *) "self",(char *) "date", NULL
20681 };
20682
20683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
20684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20686 {
20687 arg2 = wxString_in_helper(obj1);
20688 if (arg2 == NULL) SWIG_fail;
e811c8ce 20689 temp2 = True;
d14a1e28
RD
20690 }
20691 {
20692 PyThreadState* __tstate = wxPyBeginAllowThreads();
20693 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20694
20695 wxPyEndAllowThreads(__tstate);
20696 if (PyErr_Occurred()) SWIG_fail;
20697 }
15afbcd0 20698 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
20699 {
20700 if (temp2)
20701 delete arg2;
20702 }
20703 return resultobj;
20704 fail:
20705 {
20706 if (temp2)
20707 delete arg2;
20708 }
20709 return NULL;
20710}
20711
20712
20713static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20714 PyObject *resultobj;
20715 wxDateTime *arg1 = (wxDateTime *) 0 ;
20716 wxString *arg2 = 0 ;
20717 int result;
e811c8ce 20718 bool temp2 = False ;
d14a1e28
RD
20719 PyObject * obj0 = 0 ;
20720 PyObject * obj1 = 0 ;
20721 char *kwnames[] = {
20722 (char *) "self",(char *) "time", NULL
20723 };
20724
20725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
20726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20728 {
20729 arg2 = wxString_in_helper(obj1);
20730 if (arg2 == NULL) SWIG_fail;
e811c8ce 20731 temp2 = True;
d14a1e28
RD
20732 }
20733 {
20734 PyThreadState* __tstate = wxPyBeginAllowThreads();
20735 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20736
20737 wxPyEndAllowThreads(__tstate);
20738 if (PyErr_Occurred()) SWIG_fail;
20739 }
15afbcd0 20740 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
20741 {
20742 if (temp2)
20743 delete arg2;
20744 }
20745 return resultobj;
20746 fail:
20747 {
20748 if (temp2)
20749 delete arg2;
20750 }
20751 return NULL;
20752}
20753
20754
20755static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20756 PyObject *resultobj;
20757 wxDateTime *arg1 = (wxDateTime *) 0 ;
20758 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20759 wxString *arg2 = (wxString *) &arg2_defvalue ;
20760 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20761 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20762 wxString result;
e811c8ce 20763 bool temp2 = False ;
7722248d 20764 bool temp3 = False ;
d14a1e28
RD
20765 PyObject * obj0 = 0 ;
20766 PyObject * obj1 = 0 ;
20767 PyObject * obj2 = 0 ;
20768 char *kwnames[] = {
20769 (char *) "self",(char *) "format",(char *) "tz", NULL
20770 };
20771
20772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
20773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20775 if (obj1) {
20776 {
20777 arg2 = wxString_in_helper(obj1);
20778 if (arg2 == NULL) SWIG_fail;
e811c8ce 20779 temp2 = True;
d14a1e28
RD
20780 }
20781 }
20782 if (obj2) {
20783 {
20784 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 20785 temp3 = True;
d14a1e28
RD
20786 }
20787 }
20788 {
20789 PyThreadState* __tstate = wxPyBeginAllowThreads();
20790 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
20791
20792 wxPyEndAllowThreads(__tstate);
20793 if (PyErr_Occurred()) SWIG_fail;
20794 }
20795 {
20796#if wxUSE_UNICODE
20797 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20798#else
20799 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20800#endif
20801 }
20802 {
20803 if (temp2)
20804 delete arg2;
20805 }
20806 {
7722248d 20807 if (temp3) delete arg3;
d14a1e28
RD
20808 }
20809 return resultobj;
20810 fail:
20811 {
20812 if (temp2)
20813 delete arg2;
20814 }
20815 {
7722248d 20816 if (temp3) delete arg3;
d14a1e28
RD
20817 }
20818 return NULL;
20819}
20820
20821
20822static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20823 PyObject *resultobj;
20824 wxDateTime *arg1 = (wxDateTime *) 0 ;
20825 wxString result;
20826 PyObject * obj0 = 0 ;
20827 char *kwnames[] = {
20828 (char *) "self", NULL
20829 };
20830
20831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
15afbcd0
RD
20832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20834 {
20835 PyThreadState* __tstate = wxPyBeginAllowThreads();
20836 result = ((wxDateTime const *)arg1)->FormatDate();
20837
20838 wxPyEndAllowThreads(__tstate);
20839 if (PyErr_Occurred()) SWIG_fail;
20840 }
20841 {
20842#if wxUSE_UNICODE
20843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20844#else
20845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20846#endif
20847 }
20848 return resultobj;
20849 fail:
20850 return NULL;
20851}
20852
20853
20854static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20855 PyObject *resultobj;
20856 wxDateTime *arg1 = (wxDateTime *) 0 ;
20857 wxString result;
20858 PyObject * obj0 = 0 ;
20859 char *kwnames[] = {
20860 (char *) "self", NULL
20861 };
20862
20863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
15afbcd0
RD
20864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20866 {
20867 PyThreadState* __tstate = wxPyBeginAllowThreads();
20868 result = ((wxDateTime const *)arg1)->FormatTime();
20869
20870 wxPyEndAllowThreads(__tstate);
20871 if (PyErr_Occurred()) SWIG_fail;
20872 }
20873 {
20874#if wxUSE_UNICODE
20875 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20876#else
20877 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20878#endif
20879 }
20880 return resultobj;
20881 fail:
20882 return NULL;
20883}
20884
20885
20886static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
20887 PyObject *resultobj;
20888 wxDateTime *arg1 = (wxDateTime *) 0 ;
20889 wxString result;
20890 PyObject * obj0 = 0 ;
20891 char *kwnames[] = {
20892 (char *) "self", NULL
20893 };
20894
20895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
15afbcd0
RD
20896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20898 {
20899 PyThreadState* __tstate = wxPyBeginAllowThreads();
20900 result = ((wxDateTime const *)arg1)->FormatISODate();
20901
20902 wxPyEndAllowThreads(__tstate);
20903 if (PyErr_Occurred()) SWIG_fail;
20904 }
20905 {
20906#if wxUSE_UNICODE
20907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20908#else
20909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20910#endif
20911 }
20912 return resultobj;
20913 fail:
20914 return NULL;
20915}
20916
20917
20918static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20919 PyObject *resultobj;
20920 wxDateTime *arg1 = (wxDateTime *) 0 ;
20921 wxString result;
20922 PyObject * obj0 = 0 ;
20923 char *kwnames[] = {
20924 (char *) "self", NULL
20925 };
20926
20927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
15afbcd0
RD
20928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
20930 {
20931 PyThreadState* __tstate = wxPyBeginAllowThreads();
20932 result = ((wxDateTime const *)arg1)->FormatISOTime();
20933
20934 wxPyEndAllowThreads(__tstate);
20935 if (PyErr_Occurred()) SWIG_fail;
20936 }
20937 {
20938#if wxUSE_UNICODE
20939 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20940#else
20941 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20942#endif
20943 }
20944 return resultobj;
20945 fail:
20946 return NULL;
20947}
20948
20949
20950static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
20951 PyObject *obj;
20952 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20953 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
20954 Py_INCREF(obj);
20955 return Py_BuildValue((char *)"");
20956}
20957static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
20958 PyObject *resultobj;
20959 long arg1 ;
20960 wxTimeSpan result;
994141e6 20961 PyObject * obj0 = 0 ;
d14a1e28
RD
20962 char *kwnames[] = {
20963 (char *) "sec", NULL
20964 };
20965
994141e6 20966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
15afbcd0
RD
20967 arg1 = (long) SWIG_AsLong(obj0);
20968 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
20969 {
20970 PyThreadState* __tstate = wxPyBeginAllowThreads();
20971 result = wxTimeSpan::Seconds(arg1);
20972
20973 wxPyEndAllowThreads(__tstate);
20974 if (PyErr_Occurred()) SWIG_fail;
20975 }
20976 {
20977 wxTimeSpan * resultptr;
20978 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 20979 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
20980 }
20981 return resultobj;
20982 fail:
20983 return NULL;
20984}
20985
20986
20987static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
20988 PyObject *resultobj;
20989 wxTimeSpan result;
20990 char *kwnames[] = {
20991 NULL
20992 };
20993
20994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
20995 {
20996 PyThreadState* __tstate = wxPyBeginAllowThreads();
20997 result = wxTimeSpan::Second();
20998
20999 wxPyEndAllowThreads(__tstate);
21000 if (PyErr_Occurred()) SWIG_fail;
21001 }
21002 {
21003 wxTimeSpan * resultptr;
21004 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21005 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21006 }
21007 return resultobj;
21008 fail:
21009 return NULL;
21010}
21011
21012
21013static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21014 PyObject *resultobj;
21015 long arg1 ;
21016 wxTimeSpan result;
994141e6 21017 PyObject * obj0 = 0 ;
d14a1e28
RD
21018 char *kwnames[] = {
21019 (char *) "min", NULL
21020 };
21021
994141e6 21022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
15afbcd0
RD
21023 arg1 = (long) SWIG_AsLong(obj0);
21024 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
21025 {
21026 PyThreadState* __tstate = wxPyBeginAllowThreads();
21027 result = wxTimeSpan::Minutes(arg1);
21028
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 {
21033 wxTimeSpan * resultptr;
21034 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21035 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21036 }
21037 return resultobj;
21038 fail:
21039 return NULL;
21040}
21041
21042
21043static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21044 PyObject *resultobj;
21045 wxTimeSpan result;
21046 char *kwnames[] = {
21047 NULL
21048 };
21049
21050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21051 {
21052 PyThreadState* __tstate = wxPyBeginAllowThreads();
21053 result = wxTimeSpan::Minute();
21054
21055 wxPyEndAllowThreads(__tstate);
21056 if (PyErr_Occurred()) SWIG_fail;
21057 }
21058 {
21059 wxTimeSpan * resultptr;
21060 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21061 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21062 }
21063 return resultobj;
21064 fail:
21065 return NULL;
21066}
21067
21068
21069static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21070 PyObject *resultobj;
21071 long arg1 ;
21072 wxTimeSpan result;
994141e6 21073 PyObject * obj0 = 0 ;
d14a1e28
RD
21074 char *kwnames[] = {
21075 (char *) "hours", NULL
21076 };
21077
994141e6 21078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
15afbcd0
RD
21079 arg1 = (long) SWIG_AsLong(obj0);
21080 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
21081 {
21082 PyThreadState* __tstate = wxPyBeginAllowThreads();
21083 result = wxTimeSpan::Hours(arg1);
21084
21085 wxPyEndAllowThreads(__tstate);
21086 if (PyErr_Occurred()) SWIG_fail;
21087 }
21088 {
21089 wxTimeSpan * resultptr;
21090 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21092 }
21093 return resultobj;
21094 fail:
21095 return NULL;
21096}
21097
21098
21099static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21100 PyObject *resultobj;
21101 wxTimeSpan result;
21102 char *kwnames[] = {
21103 NULL
21104 };
21105
21106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21107 {
21108 PyThreadState* __tstate = wxPyBeginAllowThreads();
21109 result = wxTimeSpan::Hour();
21110
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 {
21115 wxTimeSpan * resultptr;
21116 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21117 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21118 }
21119 return resultobj;
21120 fail:
21121 return NULL;
21122}
21123
21124
21125static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21126 PyObject *resultobj;
21127 long arg1 ;
21128 wxTimeSpan result;
994141e6 21129 PyObject * obj0 = 0 ;
d14a1e28
RD
21130 char *kwnames[] = {
21131 (char *) "days", NULL
21132 };
21133
994141e6 21134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
15afbcd0
RD
21135 arg1 = (long) SWIG_AsLong(obj0);
21136 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
21137 {
21138 PyThreadState* __tstate = wxPyBeginAllowThreads();
21139 result = wxTimeSpan::Days(arg1);
21140
21141 wxPyEndAllowThreads(__tstate);
21142 if (PyErr_Occurred()) SWIG_fail;
21143 }
21144 {
21145 wxTimeSpan * resultptr;
21146 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21147 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21148 }
21149 return resultobj;
21150 fail:
21151 return NULL;
21152}
21153
21154
21155static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21156 PyObject *resultobj;
21157 wxTimeSpan result;
21158 char *kwnames[] = {
21159 NULL
21160 };
21161
21162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21163 {
21164 PyThreadState* __tstate = wxPyBeginAllowThreads();
21165 result = wxTimeSpan::Day();
21166
21167 wxPyEndAllowThreads(__tstate);
21168 if (PyErr_Occurred()) SWIG_fail;
21169 }
21170 {
21171 wxTimeSpan * resultptr;
21172 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21173 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21174 }
21175 return resultobj;
21176 fail:
21177 return NULL;
21178}
21179
21180
21181static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21182 PyObject *resultobj;
21183 long arg1 ;
21184 wxTimeSpan result;
994141e6 21185 PyObject * obj0 = 0 ;
d14a1e28
RD
21186 char *kwnames[] = {
21187 (char *) "days", NULL
21188 };
21189
994141e6 21190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
15afbcd0
RD
21191 arg1 = (long) SWIG_AsLong(obj0);
21192 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
21193 {
21194 PyThreadState* __tstate = wxPyBeginAllowThreads();
21195 result = wxTimeSpan::Weeks(arg1);
21196
21197 wxPyEndAllowThreads(__tstate);
21198 if (PyErr_Occurred()) SWIG_fail;
21199 }
21200 {
21201 wxTimeSpan * resultptr;
21202 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21203 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21204 }
21205 return resultobj;
21206 fail:
21207 return NULL;
21208}
21209
21210
21211static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21212 PyObject *resultobj;
21213 wxTimeSpan result;
21214 char *kwnames[] = {
21215 NULL
21216 };
21217
21218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21219 {
21220 PyThreadState* __tstate = wxPyBeginAllowThreads();
21221 result = wxTimeSpan::Week();
21222
21223 wxPyEndAllowThreads(__tstate);
21224 if (PyErr_Occurred()) SWIG_fail;
21225 }
21226 {
21227 wxTimeSpan * resultptr;
21228 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21230 }
21231 return resultobj;
21232 fail:
21233 return NULL;
21234}
21235
21236
21237static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21238 PyObject *resultobj;
21239 long arg1 = (long) 0 ;
21240 long arg2 = (long) 0 ;
21241 long arg3 = (long) 0 ;
21242 long arg4 = (long) 0 ;
21243 wxTimeSpan *result;
994141e6
RD
21244 PyObject * obj0 = 0 ;
21245 PyObject * obj1 = 0 ;
21246 PyObject * obj2 = 0 ;
21247 PyObject * obj3 = 0 ;
d14a1e28
RD
21248 char *kwnames[] = {
21249 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21250 };
21251
994141e6
RD
21252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21253 if (obj0) {
15afbcd0
RD
21254 arg1 = (long) SWIG_AsLong(obj0);
21255 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
21256 }
21257 if (obj1) {
15afbcd0
RD
21258 arg2 = (long) SWIG_AsLong(obj1);
21259 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
21260 }
21261 if (obj2) {
15afbcd0
RD
21262 arg3 = (long) SWIG_AsLong(obj2);
21263 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
21264 }
21265 if (obj3) {
15afbcd0
RD
21266 arg4 = (long) SWIG_AsLong(obj3);
21267 if (PyErr_Occurred()) SWIG_fail;
994141e6 21268 }
d14a1e28
RD
21269 {
21270 PyThreadState* __tstate = wxPyBeginAllowThreads();
21271 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21272
21273 wxPyEndAllowThreads(__tstate);
21274 if (PyErr_Occurred()) SWIG_fail;
21275 }
15afbcd0 21276 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21277 return resultobj;
21278 fail:
21279 return NULL;
21280}
21281
21282
21283static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21284 PyObject *resultobj;
21285 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21286 PyObject * obj0 = 0 ;
21287 char *kwnames[] = {
21288 (char *) "self", NULL
21289 };
21290
21291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
15afbcd0
RD
21292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21294 {
21295 PyThreadState* __tstate = wxPyBeginAllowThreads();
21296 delete arg1;
21297
21298 wxPyEndAllowThreads(__tstate);
21299 if (PyErr_Occurred()) SWIG_fail;
21300 }
21301 Py_INCREF(Py_None); resultobj = Py_None;
21302 return resultobj;
21303 fail:
21304 return NULL;
21305}
21306
21307
21308static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21309 PyObject *resultobj;
21310 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21311 wxTimeSpan *arg2 = 0 ;
21312 wxTimeSpan *result;
21313 PyObject * obj0 = 0 ;
21314 PyObject * obj1 = 0 ;
21315 char *kwnames[] = {
21316 (char *) "self",(char *) "diff", NULL
21317 };
21318
21319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21323 SWIG_POINTER_EXCEPTION | 0)) == -1)
21324 SWIG_fail;
d14a1e28 21325 if (arg2 == NULL) {
15afbcd0
RD
21326 PyErr_SetString(PyExc_TypeError,"null reference");
21327 SWIG_fail;
d14a1e28
RD
21328 }
21329 {
21330 PyThreadState* __tstate = wxPyBeginAllowThreads();
21331 {
21332 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21333 result = (wxTimeSpan *) &_result_ref;
21334 }
21335
21336 wxPyEndAllowThreads(__tstate);
21337 if (PyErr_Occurred()) SWIG_fail;
21338 }
15afbcd0 21339 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
d14a1e28
RD
21340 return resultobj;
21341 fail:
21342 return NULL;
21343}
21344
21345
21346static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21347 PyObject *resultobj;
21348 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21349 wxTimeSpan *arg2 = 0 ;
21350 wxTimeSpan *result;
21351 PyObject * obj0 = 0 ;
21352 PyObject * obj1 = 0 ;
21353 char *kwnames[] = {
21354 (char *) "self",(char *) "diff", NULL
21355 };
21356
21357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21360 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21361 SWIG_POINTER_EXCEPTION | 0)) == -1)
21362 SWIG_fail;
d14a1e28 21363 if (arg2 == NULL) {
15afbcd0
RD
21364 PyErr_SetString(PyExc_TypeError,"null reference");
21365 SWIG_fail;
d14a1e28
RD
21366 }
21367 {
21368 PyThreadState* __tstate = wxPyBeginAllowThreads();
21369 {
21370 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21371 result = (wxTimeSpan *) &_result_ref;
21372 }
21373
21374 wxPyEndAllowThreads(__tstate);
21375 if (PyErr_Occurred()) SWIG_fail;
21376 }
15afbcd0 21377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
d14a1e28
RD
21378 return resultobj;
21379 fail:
21380 return NULL;
21381}
21382
21383
21384static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21385 PyObject *resultobj;
21386 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21387 int arg2 ;
21388 wxTimeSpan *result;
21389 PyObject * obj0 = 0 ;
994141e6 21390 PyObject * obj1 = 0 ;
d14a1e28
RD
21391 char *kwnames[] = {
21392 (char *) "self",(char *) "n", NULL
21393 };
21394
994141e6 21395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21398 arg2 = (int) SWIG_AsInt(obj1);
21399 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
21400 {
21401 PyThreadState* __tstate = wxPyBeginAllowThreads();
21402 {
21403 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21404 result = (wxTimeSpan *) &_result_ref;
21405 }
21406
21407 wxPyEndAllowThreads(__tstate);
21408 if (PyErr_Occurred()) SWIG_fail;
21409 }
15afbcd0 21410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
d14a1e28
RD
21411 return resultobj;
21412 fail:
21413 return NULL;
21414}
21415
21416
21417static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21418 PyObject *resultobj;
21419 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21420 wxTimeSpan *result;
21421 PyObject * obj0 = 0 ;
21422 char *kwnames[] = {
21423 (char *) "self", NULL
21424 };
21425
21426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
15afbcd0
RD
21427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21429 {
21430 PyThreadState* __tstate = wxPyBeginAllowThreads();
21431 {
21432 wxTimeSpan &_result_ref = (arg1)->Neg();
21433 result = (wxTimeSpan *) &_result_ref;
21434 }
21435
21436 wxPyEndAllowThreads(__tstate);
21437 if (PyErr_Occurred()) SWIG_fail;
21438 }
15afbcd0 21439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
d14a1e28
RD
21440 return resultobj;
21441 fail:
21442 return NULL;
21443}
21444
21445
21446static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21447 PyObject *resultobj;
21448 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21449 wxTimeSpan result;
21450 PyObject * obj0 = 0 ;
21451 char *kwnames[] = {
21452 (char *) "self", NULL
21453 };
21454
21455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
15afbcd0
RD
21456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21458 {
21459 PyThreadState* __tstate = wxPyBeginAllowThreads();
21460 result = ((wxTimeSpan const *)arg1)->Abs();
21461
21462 wxPyEndAllowThreads(__tstate);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 }
21465 {
21466 wxTimeSpan * resultptr;
21467 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21468 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21469 }
21470 return resultobj;
21471 fail:
21472 return NULL;
21473}
21474
21475
21476static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21477 PyObject *resultobj;
21478 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21479 wxTimeSpan *arg2 = 0 ;
21480 wxTimeSpan *result;
21481 PyObject * obj0 = 0 ;
21482 PyObject * obj1 = 0 ;
21483 char *kwnames[] = {
21484 (char *) "self",(char *) "diff", NULL
21485 };
21486
21487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21491 SWIG_POINTER_EXCEPTION | 0)) == -1)
21492 SWIG_fail;
d14a1e28 21493 if (arg2 == NULL) {
15afbcd0
RD
21494 PyErr_SetString(PyExc_TypeError,"null reference");
21495 SWIG_fail;
d14a1e28
RD
21496 }
21497 {
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 {
21500 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21501 result = (wxTimeSpan *) &_result_ref;
21502 }
21503
21504 wxPyEndAllowThreads(__tstate);
21505 if (PyErr_Occurred()) SWIG_fail;
21506 }
15afbcd0 21507 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
d14a1e28
RD
21508 return resultobj;
21509 fail:
21510 return NULL;
21511}
21512
21513
21514static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21515 PyObject *resultobj;
21516 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21517 wxTimeSpan *arg2 = 0 ;
21518 wxTimeSpan *result;
21519 PyObject * obj0 = 0 ;
21520 PyObject * obj1 = 0 ;
21521 char *kwnames[] = {
21522 (char *) "self",(char *) "diff", NULL
21523 };
21524
21525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21529 SWIG_POINTER_EXCEPTION | 0)) == -1)
21530 SWIG_fail;
d14a1e28 21531 if (arg2 == NULL) {
15afbcd0
RD
21532 PyErr_SetString(PyExc_TypeError,"null reference");
21533 SWIG_fail;
d14a1e28
RD
21534 }
21535 {
21536 PyThreadState* __tstate = wxPyBeginAllowThreads();
21537 {
21538 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21539 result = (wxTimeSpan *) &_result_ref;
21540 }
21541
21542 wxPyEndAllowThreads(__tstate);
21543 if (PyErr_Occurred()) SWIG_fail;
21544 }
15afbcd0 21545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
d14a1e28
RD
21546 return resultobj;
21547 fail:
21548 return NULL;
21549}
21550
21551
21552static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21553 PyObject *resultobj;
21554 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21555 int arg2 ;
21556 wxTimeSpan *result;
21557 PyObject * obj0 = 0 ;
994141e6 21558 PyObject * obj1 = 0 ;
d14a1e28
RD
21559 char *kwnames[] = {
21560 (char *) "self",(char *) "n", NULL
21561 };
21562
994141e6 21563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21566 arg2 = (int) SWIG_AsInt(obj1);
21567 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
21568 {
21569 PyThreadState* __tstate = wxPyBeginAllowThreads();
21570 {
21571 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21572 result = (wxTimeSpan *) &_result_ref;
21573 }
21574
21575 wxPyEndAllowThreads(__tstate);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
15afbcd0 21578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
d14a1e28
RD
21579 return resultobj;
21580 fail:
21581 return NULL;
21582}
21583
21584
21585static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21586 PyObject *resultobj;
21587 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21588 wxTimeSpan *result;
21589 PyObject * obj0 = 0 ;
21590 char *kwnames[] = {
21591 (char *) "self", NULL
21592 };
21593
21594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
15afbcd0
RD
21595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21597 {
21598 PyThreadState* __tstate = wxPyBeginAllowThreads();
21599 {
21600 wxTimeSpan &_result_ref = (arg1)->operator -();
21601 result = (wxTimeSpan *) &_result_ref;
21602 }
21603
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
15afbcd0 21607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
d14a1e28
RD
21608 return resultobj;
21609 fail:
21610 return NULL;
21611}
21612
21613
21614static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21615 PyObject *resultobj;
21616 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21617 wxTimeSpan *arg2 = 0 ;
21618 wxTimeSpan result;
21619 PyObject * obj0 = 0 ;
21620 PyObject * obj1 = 0 ;
21621 char *kwnames[] = {
21622 (char *) "self",(char *) "other", NULL
21623 };
21624
21625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21628 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21629 SWIG_POINTER_EXCEPTION | 0)) == -1)
21630 SWIG_fail;
d14a1e28 21631 if (arg2 == NULL) {
15afbcd0
RD
21632 PyErr_SetString(PyExc_TypeError,"null reference");
21633 SWIG_fail;
d14a1e28
RD
21634 }
21635 {
21636 PyThreadState* __tstate = wxPyBeginAllowThreads();
21637 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21638
21639 wxPyEndAllowThreads(__tstate);
21640 if (PyErr_Occurred()) SWIG_fail;
21641 }
21642 {
21643 wxTimeSpan * resultptr;
21644 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21646 }
21647 return resultobj;
21648 fail:
21649 return NULL;
21650}
21651
21652
21653static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21654 PyObject *resultobj;
21655 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21656 wxTimeSpan *arg2 = 0 ;
21657 wxTimeSpan result;
21658 PyObject * obj0 = 0 ;
21659 PyObject * obj1 = 0 ;
21660 char *kwnames[] = {
21661 (char *) "self",(char *) "other", NULL
21662 };
21663
21664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21668 SWIG_POINTER_EXCEPTION | 0)) == -1)
21669 SWIG_fail;
d14a1e28 21670 if (arg2 == NULL) {
15afbcd0
RD
21671 PyErr_SetString(PyExc_TypeError,"null reference");
21672 SWIG_fail;
d14a1e28
RD
21673 }
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21677
21678 wxPyEndAllowThreads(__tstate);
21679 if (PyErr_Occurred()) SWIG_fail;
21680 }
21681 {
21682 wxTimeSpan * resultptr;
21683 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21684 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21685 }
21686 return resultobj;
21687 fail:
21688 return NULL;
21689}
21690
21691
21692static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21693 PyObject *resultobj;
21694 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21695 int arg2 ;
21696 wxTimeSpan result;
21697 PyObject * obj0 = 0 ;
994141e6 21698 PyObject * obj1 = 0 ;
d14a1e28
RD
21699 char *kwnames[] = {
21700 (char *) "self",(char *) "n", NULL
21701 };
21702
994141e6 21703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21706 arg2 = (int) SWIG_AsInt(obj1);
21707 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
21708 {
21709 PyThreadState* __tstate = wxPyBeginAllowThreads();
21710 result = wxTimeSpan___mul__(arg1,arg2);
21711
21712 wxPyEndAllowThreads(__tstate);
21713 if (PyErr_Occurred()) SWIG_fail;
21714 }
21715 {
21716 wxTimeSpan * resultptr;
21717 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21718 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21719 }
21720 return resultobj;
21721 fail:
21722 return NULL;
21723}
21724
21725
21726static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21727 PyObject *resultobj;
21728 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21729 int arg2 ;
21730 wxTimeSpan result;
21731 PyObject * obj0 = 0 ;
994141e6 21732 PyObject * obj1 = 0 ;
d14a1e28
RD
21733 char *kwnames[] = {
21734 (char *) "self",(char *) "n", NULL
21735 };
21736
994141e6 21737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21740 arg2 = (int) SWIG_AsInt(obj1);
21741 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
21742 {
21743 PyThreadState* __tstate = wxPyBeginAllowThreads();
21744 result = wxTimeSpan___rmul__(arg1,arg2);
21745
21746 wxPyEndAllowThreads(__tstate);
21747 if (PyErr_Occurred()) SWIG_fail;
21748 }
21749 {
21750 wxTimeSpan * resultptr;
21751 resultptr = new wxTimeSpan((wxTimeSpan &) result);
15afbcd0 21752 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
d14a1e28
RD
21753 }
21754 return resultobj;
21755 fail:
21756 return NULL;
21757}
21758
21759
21760static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21761 PyObject *resultobj;
21762 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22faec7d 21763 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
d14a1e28
RD
21764 bool result;
21765 PyObject * obj0 = 0 ;
21766 PyObject * obj1 = 0 ;
21767 char *kwnames[] = {
21768 (char *) "self",(char *) "other", NULL
21769 };
21770
21771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21776 {
21777 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 21778 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
d14a1e28
RD
21779
21780 wxPyEndAllowThreads(__tstate);
21781 if (PyErr_Occurred()) SWIG_fail;
21782 }
4d5c3d91 21783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21784 return resultobj;
21785 fail:
21786 return NULL;
21787}
21788
21789
21790static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
21791 PyObject *resultobj;
21792 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22faec7d 21793 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
d14a1e28
RD
21794 bool result;
21795 PyObject * obj0 = 0 ;
21796 PyObject * obj1 = 0 ;
21797 char *kwnames[] = {
21798 (char *) "self",(char *) "other", NULL
21799 };
21800
21801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21806 {
21807 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 21808 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
d14a1e28
RD
21809
21810 wxPyEndAllowThreads(__tstate);
21811 if (PyErr_Occurred()) SWIG_fail;
21812 }
4d5c3d91 21813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21814 return resultobj;
21815 fail:
21816 return NULL;
21817}
21818
21819
21820static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21821 PyObject *resultobj;
21822 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22faec7d 21823 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
d14a1e28
RD
21824 bool result;
21825 PyObject * obj0 = 0 ;
21826 PyObject * obj1 = 0 ;
21827 char *kwnames[] = {
21828 (char *) "self",(char *) "other", NULL
21829 };
21830
21831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21834 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21836 {
21837 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 21838 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
d14a1e28
RD
21839
21840 wxPyEndAllowThreads(__tstate);
21841 if (PyErr_Occurred()) SWIG_fail;
21842 }
4d5c3d91 21843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21844 return resultobj;
21845 fail:
21846 return NULL;
21847}
21848
21849
21850static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
21851 PyObject *resultobj;
21852 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22faec7d 21853 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
d14a1e28
RD
21854 bool result;
21855 PyObject * obj0 = 0 ;
21856 PyObject * obj1 = 0 ;
21857 char *kwnames[] = {
21858 (char *) "self",(char *) "other", NULL
21859 };
21860
21861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21864 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21866 {
21867 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 21868 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
d14a1e28
RD
21869
21870 wxPyEndAllowThreads(__tstate);
21871 if (PyErr_Occurred()) SWIG_fail;
21872 }
4d5c3d91 21873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21874 return resultobj;
21875 fail:
21876 return NULL;
21877}
21878
21879
21880static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
21881 PyObject *resultobj;
21882 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22faec7d 21883 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
d14a1e28
RD
21884 bool result;
21885 PyObject * obj0 = 0 ;
21886 PyObject * obj1 = 0 ;
21887 char *kwnames[] = {
21888 (char *) "self",(char *) "other", NULL
21889 };
21890
21891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21896 {
21897 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 21898 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
d14a1e28
RD
21899
21900 wxPyEndAllowThreads(__tstate);
21901 if (PyErr_Occurred()) SWIG_fail;
21902 }
4d5c3d91 21903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21904 return resultobj;
21905 fail:
21906 return NULL;
21907}
21908
21909
21910static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
21911 PyObject *resultobj;
21912 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22faec7d 21913 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
d14a1e28
RD
21914 bool result;
21915 PyObject * obj0 = 0 ;
21916 PyObject * obj1 = 0 ;
21917 char *kwnames[] = {
21918 (char *) "self",(char *) "other", NULL
21919 };
21920
21921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
21922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21926 {
21927 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 21928 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
d14a1e28
RD
21929
21930 wxPyEndAllowThreads(__tstate);
21931 if (PyErr_Occurred()) SWIG_fail;
21932 }
4d5c3d91 21933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21934 return resultobj;
21935 fail:
21936 return NULL;
21937}
21938
21939
21940static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
21941 PyObject *resultobj;
21942 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21943 bool result;
21944 PyObject * obj0 = 0 ;
21945 char *kwnames[] = {
21946 (char *) "self", NULL
21947 };
21948
21949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
15afbcd0
RD
21950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21952 {
21953 PyThreadState* __tstate = wxPyBeginAllowThreads();
21954 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
21955
21956 wxPyEndAllowThreads(__tstate);
21957 if (PyErr_Occurred()) SWIG_fail;
21958 }
4d5c3d91 21959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21960 return resultobj;
21961 fail:
21962 return NULL;
21963}
21964
21965
21966static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
21967 PyObject *resultobj;
21968 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21969 bool result;
21970 PyObject * obj0 = 0 ;
21971 char *kwnames[] = {
21972 (char *) "self", NULL
21973 };
21974
21975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
15afbcd0
RD
21976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
21978 {
21979 PyThreadState* __tstate = wxPyBeginAllowThreads();
21980 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
21981
21982 wxPyEndAllowThreads(__tstate);
21983 if (PyErr_Occurred()) SWIG_fail;
21984 }
4d5c3d91 21985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21986 return resultobj;
21987 fail:
21988 return NULL;
21989}
21990
21991
21992static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
21993 PyObject *resultobj;
21994 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21995 bool result;
21996 PyObject * obj0 = 0 ;
21997 char *kwnames[] = {
21998 (char *) "self", NULL
21999 };
22000
22001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
15afbcd0
RD
22002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22004 {
22005 PyThreadState* __tstate = wxPyBeginAllowThreads();
22006 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22007
22008 wxPyEndAllowThreads(__tstate);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 }
4d5c3d91 22011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22012 return resultobj;
22013 fail:
22014 return NULL;
22015}
22016
22017
22018static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22019 PyObject *resultobj;
22020 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22021 wxTimeSpan *arg2 = 0 ;
22022 bool result;
22023 PyObject * obj0 = 0 ;
22024 PyObject * obj1 = 0 ;
22025 char *kwnames[] = {
22026 (char *) "self",(char *) "ts", NULL
22027 };
22028
22029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22033 SWIG_POINTER_EXCEPTION | 0)) == -1)
22034 SWIG_fail;
d14a1e28 22035 if (arg2 == NULL) {
15afbcd0
RD
22036 PyErr_SetString(PyExc_TypeError,"null reference");
22037 SWIG_fail;
d14a1e28
RD
22038 }
22039 {
22040 PyThreadState* __tstate = wxPyBeginAllowThreads();
22041 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22042
22043 wxPyEndAllowThreads(__tstate);
22044 if (PyErr_Occurred()) SWIG_fail;
22045 }
4d5c3d91 22046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22047 return resultobj;
22048 fail:
22049 return NULL;
22050}
22051
22052
22053static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22054 PyObject *resultobj;
22055 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22056 wxTimeSpan *arg2 = 0 ;
22057 bool result;
22058 PyObject * obj0 = 0 ;
22059 PyObject * obj1 = 0 ;
22060 char *kwnames[] = {
22061 (char *) "self",(char *) "ts", NULL
22062 };
22063
22064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22067 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22068 SWIG_POINTER_EXCEPTION | 0)) == -1)
22069 SWIG_fail;
d14a1e28 22070 if (arg2 == NULL) {
15afbcd0
RD
22071 PyErr_SetString(PyExc_TypeError,"null reference");
22072 SWIG_fail;
d14a1e28
RD
22073 }
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22077
22078 wxPyEndAllowThreads(__tstate);
22079 if (PyErr_Occurred()) SWIG_fail;
22080 }
4d5c3d91 22081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22082 return resultobj;
22083 fail:
22084 return NULL;
22085}
22086
22087
22088static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22089 PyObject *resultobj;
22090 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22091 wxTimeSpan *arg2 = 0 ;
22092 bool result;
22093 PyObject * obj0 = 0 ;
22094 PyObject * obj1 = 0 ;
22095 char *kwnames[] = {
22096 (char *) "self",(char *) "t", NULL
22097 };
22098
22099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22103 SWIG_POINTER_EXCEPTION | 0)) == -1)
22104 SWIG_fail;
d14a1e28 22105 if (arg2 == NULL) {
15afbcd0
RD
22106 PyErr_SetString(PyExc_TypeError,"null reference");
22107 SWIG_fail;
d14a1e28
RD
22108 }
22109 {
22110 PyThreadState* __tstate = wxPyBeginAllowThreads();
22111 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22112
22113 wxPyEndAllowThreads(__tstate);
22114 if (PyErr_Occurred()) SWIG_fail;
22115 }
4d5c3d91 22116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22117 return resultobj;
22118 fail:
22119 return NULL;
22120}
22121
22122
22123static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22124 PyObject *resultobj;
22125 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22126 int result;
22127 PyObject * obj0 = 0 ;
22128 char *kwnames[] = {
22129 (char *) "self", NULL
22130 };
22131
22132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
15afbcd0
RD
22133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22135 {
22136 PyThreadState* __tstate = wxPyBeginAllowThreads();
22137 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22138
22139 wxPyEndAllowThreads(__tstate);
22140 if (PyErr_Occurred()) SWIG_fail;
22141 }
15afbcd0 22142 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22143 return resultobj;
22144 fail:
22145 return NULL;
22146}
22147
22148
22149static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22150 PyObject *resultobj;
22151 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22152 int result;
22153 PyObject * obj0 = 0 ;
22154 char *kwnames[] = {
22155 (char *) "self", NULL
22156 };
22157
22158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
15afbcd0
RD
22159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22161 {
22162 PyThreadState* __tstate = wxPyBeginAllowThreads();
22163 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22164
22165 wxPyEndAllowThreads(__tstate);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
15afbcd0 22168 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22169 return resultobj;
22170 fail:
22171 return NULL;
22172}
22173
22174
22175static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22176 PyObject *resultobj;
22177 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22178 int result;
22179 PyObject * obj0 = 0 ;
22180 char *kwnames[] = {
22181 (char *) "self", NULL
22182 };
22183
22184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
15afbcd0
RD
22185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22187 {
22188 PyThreadState* __tstate = wxPyBeginAllowThreads();
22189 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22190
22191 wxPyEndAllowThreads(__tstate);
22192 if (PyErr_Occurred()) SWIG_fail;
22193 }
15afbcd0 22194 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22195 return resultobj;
22196 fail:
22197 return NULL;
22198}
22199
22200
22201static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22202 PyObject *resultobj;
22203 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22204 int result;
22205 PyObject * obj0 = 0 ;
22206 char *kwnames[] = {
22207 (char *) "self", NULL
22208 };
22209
22210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
15afbcd0
RD
22211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22213 {
22214 PyThreadState* __tstate = wxPyBeginAllowThreads();
22215 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22216
22217 wxPyEndAllowThreads(__tstate);
22218 if (PyErr_Occurred()) SWIG_fail;
22219 }
15afbcd0 22220 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22221 return resultobj;
22222 fail:
22223 return NULL;
22224}
22225
22226
22227static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22228 PyObject *resultobj;
22229 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22230 wxLongLong result;
22231 PyObject * obj0 = 0 ;
22232 char *kwnames[] = {
22233 (char *) "self", NULL
22234 };
22235
22236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
15afbcd0
RD
22237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22239 {
22240 PyThreadState* __tstate = wxPyBeginAllowThreads();
22241 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22242
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 {
22247 PyObject *hi, *lo, *shifter, *shifted;
22248 hi = PyLong_FromLong( (&result)->GetHi() );
22249 lo = PyLong_FromLong( (&result)->GetLo() );
22250 shifter = PyLong_FromLong(32);
22251 shifted = PyNumber_Lshift(hi, shifter);
22252 resultobj = PyNumber_Or(shifted, lo);
22253 Py_DECREF(hi);
22254 Py_DECREF(lo);
22255 Py_DECREF(shifter);
22256 Py_DECREF(shifted);
22257 }
22258 return resultobj;
22259 fail:
22260 return NULL;
22261}
22262
22263
22264static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22265 PyObject *resultobj;
22266 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22267 wxLongLong result;
22268 PyObject * obj0 = 0 ;
22269 char *kwnames[] = {
22270 (char *) "self", NULL
22271 };
22272
22273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
15afbcd0
RD
22274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22276 {
22277 PyThreadState* __tstate = wxPyBeginAllowThreads();
22278 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22279
22280 wxPyEndAllowThreads(__tstate);
22281 if (PyErr_Occurred()) SWIG_fail;
22282 }
22283 {
22284 PyObject *hi, *lo, *shifter, *shifted;
22285 hi = PyLong_FromLong( (&result)->GetHi() );
22286 lo = PyLong_FromLong( (&result)->GetLo() );
22287 shifter = PyLong_FromLong(32);
22288 shifted = PyNumber_Lshift(hi, shifter);
22289 resultobj = PyNumber_Or(shifted, lo);
22290 Py_DECREF(hi);
22291 Py_DECREF(lo);
22292 Py_DECREF(shifter);
22293 Py_DECREF(shifted);
22294 }
22295 return resultobj;
22296 fail:
22297 return NULL;
22298}
22299
22300
22301static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22302 PyObject *resultobj;
22303 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22304 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22305 wxString *arg2 = (wxString *) &arg2_defvalue ;
22306 wxString result;
e811c8ce 22307 bool temp2 = False ;
d14a1e28
RD
22308 PyObject * obj0 = 0 ;
22309 PyObject * obj1 = 0 ;
22310 char *kwnames[] = {
22311 (char *) "self",(char *) "format", NULL
22312 };
22313
22314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22317 if (obj1) {
22318 {
22319 arg2 = wxString_in_helper(obj1);
22320 if (arg2 == NULL) SWIG_fail;
e811c8ce 22321 temp2 = True;
d14a1e28
RD
22322 }
22323 }
22324 {
22325 PyThreadState* __tstate = wxPyBeginAllowThreads();
22326 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22327
22328 wxPyEndAllowThreads(__tstate);
22329 if (PyErr_Occurred()) SWIG_fail;
22330 }
22331 {
22332#if wxUSE_UNICODE
22333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22334#else
22335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22336#endif
22337 }
22338 {
22339 if (temp2)
22340 delete arg2;
22341 }
22342 return resultobj;
22343 fail:
22344 {
22345 if (temp2)
22346 delete arg2;
22347 }
22348 return NULL;
22349}
22350
22351
22352static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22353 PyObject *obj;
22354 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22355 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22356 Py_INCREF(obj);
22357 return Py_BuildValue((char *)"");
22358}
22359static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22360 PyObject *resultobj;
22361 int arg1 = (int) 0 ;
22362 int arg2 = (int) 0 ;
22363 int arg3 = (int) 0 ;
22364 int arg4 = (int) 0 ;
22365 wxDateSpan *result;
994141e6
RD
22366 PyObject * obj0 = 0 ;
22367 PyObject * obj1 = 0 ;
22368 PyObject * obj2 = 0 ;
22369 PyObject * obj3 = 0 ;
d14a1e28
RD
22370 char *kwnames[] = {
22371 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22372 };
22373
994141e6
RD
22374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22375 if (obj0) {
15afbcd0
RD
22376 arg1 = (int) SWIG_AsInt(obj0);
22377 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
22378 }
22379 if (obj1) {
15afbcd0
RD
22380 arg2 = (int) SWIG_AsInt(obj1);
22381 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
22382 }
22383 if (obj2) {
15afbcd0
RD
22384 arg3 = (int) SWIG_AsInt(obj2);
22385 if (PyErr_Occurred()) SWIG_fail;
994141e6
RD
22386 }
22387 if (obj3) {
15afbcd0
RD
22388 arg4 = (int) SWIG_AsInt(obj3);
22389 if (PyErr_Occurred()) SWIG_fail;
994141e6 22390 }
d14a1e28
RD
22391 {
22392 PyThreadState* __tstate = wxPyBeginAllowThreads();
22393 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22394
22395 wxPyEndAllowThreads(__tstate);
22396 if (PyErr_Occurred()) SWIG_fail;
22397 }
15afbcd0 22398 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22399 return resultobj;
22400 fail:
22401 return NULL;
22402}
22403
22404
22405static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22406 PyObject *resultobj;
22407 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22408 PyObject * obj0 = 0 ;
22409 char *kwnames[] = {
22410 (char *) "self", NULL
22411 };
22412
22413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
15afbcd0
RD
22414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22416 {
22417 PyThreadState* __tstate = wxPyBeginAllowThreads();
22418 delete arg1;
22419
22420 wxPyEndAllowThreads(__tstate);
22421 if (PyErr_Occurred()) SWIG_fail;
22422 }
22423 Py_INCREF(Py_None); resultobj = Py_None;
22424 return resultobj;
22425 fail:
22426 return NULL;
22427}
22428
22429
22430static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22431 PyObject *resultobj;
22432 int arg1 ;
22433 wxDateSpan result;
994141e6 22434 PyObject * obj0 = 0 ;
d14a1e28
RD
22435 char *kwnames[] = {
22436 (char *) "days", NULL
22437 };
22438
994141e6 22439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
15afbcd0
RD
22440 arg1 = (int) SWIG_AsInt(obj0);
22441 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
22442 {
22443 PyThreadState* __tstate = wxPyBeginAllowThreads();
22444 result = wxDateSpan::Days(arg1);
22445
22446 wxPyEndAllowThreads(__tstate);
22447 if (PyErr_Occurred()) SWIG_fail;
22448 }
22449 {
22450 wxDateSpan * resultptr;
22451 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 22452 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22453 }
22454 return resultobj;
22455 fail:
22456 return NULL;
22457}
22458
22459
22460static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22461 PyObject *resultobj;
22462 wxDateSpan result;
22463 char *kwnames[] = {
22464 NULL
22465 };
22466
22467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 result = wxDateSpan::Day();
22471
22472 wxPyEndAllowThreads(__tstate);
22473 if (PyErr_Occurred()) SWIG_fail;
22474 }
22475 {
22476 wxDateSpan * resultptr;
22477 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 22478 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22479 }
22480 return resultobj;
22481 fail:
22482 return NULL;
22483}
22484
22485
22486static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22487 PyObject *resultobj;
22488 int arg1 ;
22489 wxDateSpan result;
994141e6 22490 PyObject * obj0 = 0 ;
d14a1e28
RD
22491 char *kwnames[] = {
22492 (char *) "weeks", NULL
22493 };
22494
994141e6 22495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
15afbcd0
RD
22496 arg1 = (int) SWIG_AsInt(obj0);
22497 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
22498 {
22499 PyThreadState* __tstate = wxPyBeginAllowThreads();
22500 result = wxDateSpan::Weeks(arg1);
22501
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 {
22506 wxDateSpan * resultptr;
22507 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 22508 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22509 }
22510 return resultobj;
22511 fail:
22512 return NULL;
22513}
22514
22515
22516static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22517 PyObject *resultobj;
22518 wxDateSpan result;
22519 char *kwnames[] = {
22520 NULL
22521 };
22522
22523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22524 {
22525 PyThreadState* __tstate = wxPyBeginAllowThreads();
22526 result = wxDateSpan::Week();
22527
22528 wxPyEndAllowThreads(__tstate);
22529 if (PyErr_Occurred()) SWIG_fail;
22530 }
22531 {
22532 wxDateSpan * resultptr;
22533 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 22534 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22535 }
22536 return resultobj;
22537 fail:
22538 return NULL;
22539}
22540
22541
22542static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22543 PyObject *resultobj;
22544 int arg1 ;
22545 wxDateSpan result;
994141e6 22546 PyObject * obj0 = 0 ;
d14a1e28
RD
22547 char *kwnames[] = {
22548 (char *) "mon", NULL
22549 };
22550
994141e6 22551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
15afbcd0
RD
22552 arg1 = (int) SWIG_AsInt(obj0);
22553 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
22554 {
22555 PyThreadState* __tstate = wxPyBeginAllowThreads();
22556 result = wxDateSpan::Months(arg1);
22557
22558 wxPyEndAllowThreads(__tstate);
22559 if (PyErr_Occurred()) SWIG_fail;
22560 }
22561 {
22562 wxDateSpan * resultptr;
22563 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 22564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22565 }
22566 return resultobj;
22567 fail:
22568 return NULL;
22569}
22570
22571
22572static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22573 PyObject *resultobj;
22574 wxDateSpan result;
22575 char *kwnames[] = {
22576 NULL
22577 };
22578
22579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 result = wxDateSpan::Month();
22583
22584 wxPyEndAllowThreads(__tstate);
22585 if (PyErr_Occurred()) SWIG_fail;
22586 }
22587 {
22588 wxDateSpan * resultptr;
22589 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 22590 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22591 }
22592 return resultobj;
22593 fail:
22594 return NULL;
22595}
22596
22597
22598static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22599 PyObject *resultobj;
22600 int arg1 ;
22601 wxDateSpan result;
994141e6 22602 PyObject * obj0 = 0 ;
d14a1e28
RD
22603 char *kwnames[] = {
22604 (char *) "years", NULL
22605 };
22606
994141e6 22607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
15afbcd0
RD
22608 arg1 = (int) SWIG_AsInt(obj0);
22609 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
22610 {
22611 PyThreadState* __tstate = wxPyBeginAllowThreads();
22612 result = wxDateSpan::Years(arg1);
22613
22614 wxPyEndAllowThreads(__tstate);
22615 if (PyErr_Occurred()) SWIG_fail;
22616 }
22617 {
22618 wxDateSpan * resultptr;
22619 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 22620 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22621 }
22622 return resultobj;
22623 fail:
22624 return NULL;
22625}
22626
22627
22628static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22629 PyObject *resultobj;
22630 wxDateSpan result;
22631 char *kwnames[] = {
22632 NULL
22633 };
22634
22635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22636 {
22637 PyThreadState* __tstate = wxPyBeginAllowThreads();
22638 result = wxDateSpan::Year();
22639
22640 wxPyEndAllowThreads(__tstate);
22641 if (PyErr_Occurred()) SWIG_fail;
22642 }
22643 {
22644 wxDateSpan * resultptr;
22645 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 22646 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
22647 }
22648 return resultobj;
22649 fail:
22650 return NULL;
22651}
22652
22653
22654static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22655 PyObject *resultobj;
22656 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22657 int arg2 ;
22658 wxDateSpan *result;
22659 PyObject * obj0 = 0 ;
994141e6 22660 PyObject * obj1 = 0 ;
d14a1e28
RD
22661 char *kwnames[] = {
22662 (char *) "self",(char *) "n", NULL
22663 };
22664
994141e6 22665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22668 arg2 = (int) SWIG_AsInt(obj1);
22669 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
22672 {
22673 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22674 result = (wxDateSpan *) &_result_ref;
22675 }
22676
22677 wxPyEndAllowThreads(__tstate);
22678 if (PyErr_Occurred()) SWIG_fail;
22679 }
15afbcd0 22680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
22681 return resultobj;
22682 fail:
22683 return NULL;
22684}
22685
22686
22687static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22688 PyObject *resultobj;
22689 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22690 int arg2 ;
22691 wxDateSpan *result;
22692 PyObject * obj0 = 0 ;
994141e6 22693 PyObject * obj1 = 0 ;
d14a1e28
RD
22694 char *kwnames[] = {
22695 (char *) "self",(char *) "n", NULL
22696 };
22697
994141e6 22698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22701 arg2 = (int) SWIG_AsInt(obj1);
22702 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
22703 {
22704 PyThreadState* __tstate = wxPyBeginAllowThreads();
22705 {
22706 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22707 result = (wxDateSpan *) &_result_ref;
22708 }
22709
22710 wxPyEndAllowThreads(__tstate);
22711 if (PyErr_Occurred()) SWIG_fail;
22712 }
15afbcd0 22713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
22714 return resultobj;
22715 fail:
22716 return NULL;
22717}
22718
22719
22720static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22721 PyObject *resultobj;
22722 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22723 int arg2 ;
22724 wxDateSpan *result;
22725 PyObject * obj0 = 0 ;
994141e6 22726 PyObject * obj1 = 0 ;
d14a1e28
RD
22727 char *kwnames[] = {
22728 (char *) "self",(char *) "n", NULL
22729 };
22730
994141e6 22731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22734 arg2 = (int) SWIG_AsInt(obj1);
22735 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
22736 {
22737 PyThreadState* __tstate = wxPyBeginAllowThreads();
22738 {
22739 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22740 result = (wxDateSpan *) &_result_ref;
22741 }
22742
22743 wxPyEndAllowThreads(__tstate);
22744 if (PyErr_Occurred()) SWIG_fail;
22745 }
15afbcd0 22746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
22747 return resultobj;
22748 fail:
22749 return NULL;
22750}
22751
22752
22753static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22754 PyObject *resultobj;
22755 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22756 int arg2 ;
22757 wxDateSpan *result;
22758 PyObject * obj0 = 0 ;
994141e6 22759 PyObject * obj1 = 0 ;
d14a1e28
RD
22760 char *kwnames[] = {
22761 (char *) "self",(char *) "n", NULL
22762 };
22763
994141e6 22764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22767 arg2 = (int) SWIG_AsInt(obj1);
22768 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
22769 {
22770 PyThreadState* __tstate = wxPyBeginAllowThreads();
22771 {
22772 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
22773 result = (wxDateSpan *) &_result_ref;
22774 }
22775
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
15afbcd0 22779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
22780 return resultobj;
22781 fail:
22782 return NULL;
22783}
22784
22785
22786static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22787 PyObject *resultobj;
22788 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22789 int result;
22790 PyObject * obj0 = 0 ;
22791 char *kwnames[] = {
22792 (char *) "self", NULL
22793 };
22794
22795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
15afbcd0
RD
22796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22798 {
22799 PyThreadState* __tstate = wxPyBeginAllowThreads();
22800 result = (int)((wxDateSpan const *)arg1)->GetYears();
22801
22802 wxPyEndAllowThreads(__tstate);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 }
15afbcd0 22805 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22806 return resultobj;
22807 fail:
22808 return NULL;
22809}
22810
22811
22812static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22813 PyObject *resultobj;
22814 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22815 int result;
22816 PyObject * obj0 = 0 ;
22817 char *kwnames[] = {
22818 (char *) "self", NULL
22819 };
22820
22821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
15afbcd0
RD
22822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22824 {
22825 PyThreadState* __tstate = wxPyBeginAllowThreads();
22826 result = (int)((wxDateSpan const *)arg1)->GetMonths();
22827
22828 wxPyEndAllowThreads(__tstate);
22829 if (PyErr_Occurred()) SWIG_fail;
22830 }
15afbcd0 22831 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22832 return resultobj;
22833 fail:
22834 return NULL;
22835}
22836
22837
22838static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22839 PyObject *resultobj;
22840 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22841 int result;
22842 PyObject * obj0 = 0 ;
22843 char *kwnames[] = {
22844 (char *) "self", NULL
22845 };
22846
22847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
15afbcd0
RD
22848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22850 {
22851 PyThreadState* __tstate = wxPyBeginAllowThreads();
22852 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
22853
22854 wxPyEndAllowThreads(__tstate);
22855 if (PyErr_Occurred()) SWIG_fail;
22856 }
15afbcd0 22857 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22858 return resultobj;
22859 fail:
22860 return NULL;
22861}
22862
22863
22864static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22865 PyObject *resultobj;
22866 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22867 int result;
22868 PyObject * obj0 = 0 ;
22869 char *kwnames[] = {
22870 (char *) "self", NULL
22871 };
22872
22873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
15afbcd0
RD
22874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22876 {
22877 PyThreadState* __tstate = wxPyBeginAllowThreads();
22878 result = (int)((wxDateSpan const *)arg1)->GetDays();
22879
22880 wxPyEndAllowThreads(__tstate);
22881 if (PyErr_Occurred()) SWIG_fail;
22882 }
15afbcd0 22883 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22884 return resultobj;
22885 fail:
22886 return NULL;
22887}
22888
22889
22890static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22891 PyObject *resultobj;
22892 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22893 int result;
22894 PyObject * obj0 = 0 ;
22895 char *kwnames[] = {
22896 (char *) "self", NULL
22897 };
22898
22899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
15afbcd0
RD
22900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
22905
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
15afbcd0 22909 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
22910 return resultobj;
22911 fail:
22912 return NULL;
22913}
22914
22915
22916static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
22917 PyObject *resultobj;
22918 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22919 wxDateSpan *arg2 = 0 ;
22920 wxDateSpan *result;
22921 PyObject * obj0 = 0 ;
22922 PyObject * obj1 = 0 ;
22923 char *kwnames[] = {
22924 (char *) "self",(char *) "other", NULL
22925 };
22926
22927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22930 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
22931 SWIG_POINTER_EXCEPTION | 0)) == -1)
22932 SWIG_fail;
d14a1e28 22933 if (arg2 == NULL) {
15afbcd0
RD
22934 PyErr_SetString(PyExc_TypeError,"null reference");
22935 SWIG_fail;
d14a1e28
RD
22936 }
22937 {
22938 PyThreadState* __tstate = wxPyBeginAllowThreads();
22939 {
22940 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
22941 result = (wxDateSpan *) &_result_ref;
22942 }
22943
22944 wxPyEndAllowThreads(__tstate);
22945 if (PyErr_Occurred()) SWIG_fail;
22946 }
15afbcd0 22947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
22948 return resultobj;
22949 fail:
22950 return NULL;
22951}
22952
22953
22954static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
22955 PyObject *resultobj;
22956 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22957 wxDateSpan *arg2 = 0 ;
22958 wxDateSpan *result;
22959 PyObject * obj0 = 0 ;
22960 PyObject * obj1 = 0 ;
22961 char *kwnames[] = {
22962 (char *) "self",(char *) "other", NULL
22963 };
22964
22965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
22966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22968 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
22969 SWIG_POINTER_EXCEPTION | 0)) == -1)
22970 SWIG_fail;
d14a1e28 22971 if (arg2 == NULL) {
15afbcd0
RD
22972 PyErr_SetString(PyExc_TypeError,"null reference");
22973 SWIG_fail;
d14a1e28
RD
22974 }
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 {
22978 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
22979 result = (wxDateSpan *) &_result_ref;
22980 }
22981
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
15afbcd0 22985 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
22986 return resultobj;
22987 fail:
22988 return NULL;
22989}
22990
22991
22992static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
22993 PyObject *resultobj;
22994 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22995 wxDateSpan *result;
22996 PyObject * obj0 = 0 ;
22997 char *kwnames[] = {
22998 (char *) "self", NULL
22999 };
23000
23001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
15afbcd0
RD
23002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
23004 {
23005 PyThreadState* __tstate = wxPyBeginAllowThreads();
23006 {
23007 wxDateSpan &_result_ref = (arg1)->Neg();
23008 result = (wxDateSpan *) &_result_ref;
23009 }
23010
23011 wxPyEndAllowThreads(__tstate);
23012 if (PyErr_Occurred()) SWIG_fail;
23013 }
15afbcd0 23014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
23015 return resultobj;
23016 fail:
23017 return NULL;
23018}
23019
23020
23021static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23022 PyObject *resultobj;
23023 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23024 int arg2 ;
23025 wxDateSpan *result;
23026 PyObject * obj0 = 0 ;
994141e6 23027 PyObject * obj1 = 0 ;
d14a1e28
RD
23028 char *kwnames[] = {
23029 (char *) "self",(char *) "factor", NULL
23030 };
23031
994141e6 23032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23035 arg2 = (int) SWIG_AsInt(obj1);
23036 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 {
23040 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23041 result = (wxDateSpan *) &_result_ref;
23042 }
23043
23044 wxPyEndAllowThreads(__tstate);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 }
15afbcd0 23047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
23048 return resultobj;
23049 fail:
23050 return NULL;
23051}
23052
23053
23054static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23055 PyObject *resultobj;
23056 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23057 wxDateSpan *arg2 = 0 ;
23058 wxDateSpan *result;
23059 PyObject * obj0 = 0 ;
23060 PyObject * obj1 = 0 ;
23061 char *kwnames[] = {
23062 (char *) "self",(char *) "other", NULL
23063 };
23064
23065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23069 SWIG_POINTER_EXCEPTION | 0)) == -1)
23070 SWIG_fail;
d14a1e28 23071 if (arg2 == NULL) {
15afbcd0
RD
23072 PyErr_SetString(PyExc_TypeError,"null reference");
23073 SWIG_fail;
d14a1e28
RD
23074 }
23075 {
23076 PyThreadState* __tstate = wxPyBeginAllowThreads();
23077 {
23078 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23079 result = (wxDateSpan *) &_result_ref;
23080 }
23081
23082 wxPyEndAllowThreads(__tstate);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 }
15afbcd0 23085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
23086 return resultobj;
23087 fail:
23088 return NULL;
23089}
23090
23091
23092static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23093 PyObject *resultobj;
23094 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23095 wxDateSpan *arg2 = 0 ;
23096 wxDateSpan *result;
23097 PyObject * obj0 = 0 ;
23098 PyObject * obj1 = 0 ;
23099 char *kwnames[] = {
23100 (char *) "self",(char *) "other", NULL
23101 };
23102
23103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23107 SWIG_POINTER_EXCEPTION | 0)) == -1)
23108 SWIG_fail;
d14a1e28 23109 if (arg2 == NULL) {
15afbcd0
RD
23110 PyErr_SetString(PyExc_TypeError,"null reference");
23111 SWIG_fail;
d14a1e28
RD
23112 }
23113 {
23114 PyThreadState* __tstate = wxPyBeginAllowThreads();
23115 {
23116 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23117 result = (wxDateSpan *) &_result_ref;
23118 }
23119
23120 wxPyEndAllowThreads(__tstate);
23121 if (PyErr_Occurred()) SWIG_fail;
23122 }
15afbcd0 23123 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
23124 return resultobj;
23125 fail:
23126 return NULL;
23127}
23128
23129
23130static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23131 PyObject *resultobj;
23132 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23133 wxDateSpan *result;
23134 PyObject * obj0 = 0 ;
23135 char *kwnames[] = {
23136 (char *) "self", NULL
23137 };
23138
23139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
15afbcd0
RD
23140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
23142 {
23143 PyThreadState* __tstate = wxPyBeginAllowThreads();
23144 {
23145 wxDateSpan &_result_ref = (arg1)->operator -();
23146 result = (wxDateSpan *) &_result_ref;
23147 }
23148
23149 wxPyEndAllowThreads(__tstate);
23150 if (PyErr_Occurred()) SWIG_fail;
23151 }
15afbcd0 23152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
23153 return resultobj;
23154 fail:
23155 return NULL;
23156}
23157
23158
23159static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23160 PyObject *resultobj;
23161 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23162 int arg2 ;
23163 wxDateSpan *result;
23164 PyObject * obj0 = 0 ;
994141e6 23165 PyObject * obj1 = 0 ;
d14a1e28
RD
23166 char *kwnames[] = {
23167 (char *) "self",(char *) "factor", NULL
23168 };
23169
994141e6 23170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23173 arg2 = (int) SWIG_AsInt(obj1);
23174 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
23175 {
23176 PyThreadState* __tstate = wxPyBeginAllowThreads();
23177 {
23178 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23179 result = (wxDateSpan *) &_result_ref;
23180 }
23181
23182 wxPyEndAllowThreads(__tstate);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
15afbcd0 23185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
d14a1e28
RD
23186 return resultobj;
23187 fail:
23188 return NULL;
23189}
23190
23191
23192static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23193 PyObject *resultobj;
23194 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23195 wxDateSpan *arg2 = 0 ;
23196 wxDateSpan result;
23197 PyObject * obj0 = 0 ;
23198 PyObject * obj1 = 0 ;
23199 char *kwnames[] = {
23200 (char *) "self",(char *) "other", NULL
23201 };
23202
23203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23207 SWIG_POINTER_EXCEPTION | 0)) == -1)
23208 SWIG_fail;
d14a1e28 23209 if (arg2 == NULL) {
15afbcd0
RD
23210 PyErr_SetString(PyExc_TypeError,"null reference");
23211 SWIG_fail;
d14a1e28
RD
23212 }
23213 {
23214 PyThreadState* __tstate = wxPyBeginAllowThreads();
23215 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23216
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
23220 {
23221 wxDateSpan * resultptr;
23222 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 23223 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
23224 }
23225 return resultobj;
23226 fail:
23227 return NULL;
23228}
23229
23230
23231static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23232 PyObject *resultobj;
23233 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23234 wxDateSpan *arg2 = 0 ;
23235 wxDateSpan result;
23236 PyObject * obj0 = 0 ;
23237 PyObject * obj1 = 0 ;
23238 char *kwnames[] = {
23239 (char *) "self",(char *) "other", NULL
23240 };
23241
23242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23245 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23246 SWIG_POINTER_EXCEPTION | 0)) == -1)
23247 SWIG_fail;
d14a1e28 23248 if (arg2 == NULL) {
15afbcd0
RD
23249 PyErr_SetString(PyExc_TypeError,"null reference");
23250 SWIG_fail;
d14a1e28
RD
23251 }
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23255
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 {
23260 wxDateSpan * resultptr;
23261 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 23262 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
23263 }
23264 return resultobj;
23265 fail:
23266 return NULL;
23267}
23268
23269
23270static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23271 PyObject *resultobj;
23272 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23273 int arg2 ;
23274 wxDateSpan result;
23275 PyObject * obj0 = 0 ;
994141e6 23276 PyObject * obj1 = 0 ;
d14a1e28
RD
23277 char *kwnames[] = {
23278 (char *) "self",(char *) "n", NULL
23279 };
23280
994141e6 23281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23284 arg2 = (int) SWIG_AsInt(obj1);
23285 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
23286 {
23287 PyThreadState* __tstate = wxPyBeginAllowThreads();
23288 result = wxDateSpan___mul__(arg1,arg2);
23289
23290 wxPyEndAllowThreads(__tstate);
23291 if (PyErr_Occurred()) SWIG_fail;
23292 }
23293 {
23294 wxDateSpan * resultptr;
23295 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 23296 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
23297 }
23298 return resultobj;
23299 fail:
23300 return NULL;
23301}
23302
23303
23304static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23305 PyObject *resultobj;
23306 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23307 int arg2 ;
23308 wxDateSpan result;
23309 PyObject * obj0 = 0 ;
994141e6 23310 PyObject * obj1 = 0 ;
d14a1e28
RD
23311 char *kwnames[] = {
23312 (char *) "self",(char *) "n", NULL
23313 };
23314
994141e6 23315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23318 arg2 = (int) SWIG_AsInt(obj1);
23319 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
23320 {
23321 PyThreadState* __tstate = wxPyBeginAllowThreads();
23322 result = wxDateSpan___rmul__(arg1,arg2);
23323
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 {
23328 wxDateSpan * resultptr;
23329 resultptr = new wxDateSpan((wxDateSpan &) result);
15afbcd0 23330 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
d14a1e28
RD
23331 }
23332 return resultobj;
23333 fail:
23334 return NULL;
23335}
23336
23337
23338static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23339 PyObject *resultobj;
23340 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22faec7d 23341 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
d14a1e28
RD
23342 bool result;
23343 PyObject * obj0 = 0 ;
23344 PyObject * obj1 = 0 ;
23345 char *kwnames[] = {
23346 (char *) "self",(char *) "other", NULL
23347 };
23348
23349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23352 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
23354 {
23355 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 23356 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
d14a1e28
RD
23357
23358 wxPyEndAllowThreads(__tstate);
23359 if (PyErr_Occurred()) SWIG_fail;
23360 }
4d5c3d91 23361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23362 return resultobj;
23363 fail:
23364 return NULL;
23365}
23366
23367
23368static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23369 PyObject *resultobj;
23370 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22faec7d 23371 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
d14a1e28
RD
23372 bool result;
23373 PyObject * obj0 = 0 ;
23374 PyObject * obj1 = 0 ;
23375 char *kwnames[] = {
23376 (char *) "self",(char *) "other", NULL
23377 };
23378
23379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23382 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
23384 {
23385 PyThreadState* __tstate = wxPyBeginAllowThreads();
22faec7d 23386 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
d14a1e28
RD
23387
23388 wxPyEndAllowThreads(__tstate);
23389 if (PyErr_Occurred()) SWIG_fail;
23390 }
4d5c3d91 23391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23392 return resultobj;
23393 fail:
23394 return NULL;
23395}
23396
23397
23398static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23399 PyObject *obj;
23400 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23401 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23402 Py_INCREF(obj);
23403 return Py_BuildValue((char *)"");
23404}
23405static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23406 PyObject *resultobj;
23407 long result;
23408 char *kwnames[] = {
23409 NULL
23410 };
23411
23412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23413 {
23414 PyThreadState* __tstate = wxPyBeginAllowThreads();
23415 result = (long)wxGetLocalTime();
23416
23417 wxPyEndAllowThreads(__tstate);
23418 if (PyErr_Occurred()) SWIG_fail;
23419 }
15afbcd0 23420 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
23421 return resultobj;
23422 fail:
23423 return NULL;
23424}
23425
23426
23427static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23428 PyObject *resultobj;
23429 long result;
23430 char *kwnames[] = {
23431 NULL
23432 };
23433
23434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23435 {
23436 PyThreadState* __tstate = wxPyBeginAllowThreads();
23437 result = (long)wxGetUTCTime();
23438
23439 wxPyEndAllowThreads(__tstate);
23440 if (PyErr_Occurred()) SWIG_fail;
23441 }
15afbcd0 23442 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
23443 return resultobj;
23444 fail:
23445 return NULL;
23446}
23447
23448
23449static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23450 PyObject *resultobj;
23451 long result;
23452 char *kwnames[] = {
23453 NULL
23454 };
23455
23456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23457 {
23458 PyThreadState* __tstate = wxPyBeginAllowThreads();
23459 result = (long)wxGetCurrentTime();
23460
23461 wxPyEndAllowThreads(__tstate);
23462 if (PyErr_Occurred()) SWIG_fail;
23463 }
15afbcd0 23464 resultobj = SWIG_FromLong((long)result);
d14a1e28
RD
23465 return resultobj;
23466 fail:
23467 return NULL;
23468}
23469
23470
23471static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23472 PyObject *resultobj;
23473 wxLongLong result;
23474 char *kwnames[] = {
23475 NULL
23476 };
23477
23478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23479 {
23480 PyThreadState* __tstate = wxPyBeginAllowThreads();
23481 result = wxGetLocalTimeMillis();
23482
23483 wxPyEndAllowThreads(__tstate);
23484 if (PyErr_Occurred()) SWIG_fail;
23485 }
23486 {
23487 PyObject *hi, *lo, *shifter, *shifted;
23488 hi = PyLong_FromLong( (&result)->GetHi() );
23489 lo = PyLong_FromLong( (&result)->GetLo() );
23490 shifter = PyLong_FromLong(32);
23491 shifted = PyNumber_Lshift(hi, shifter);
23492 resultobj = PyNumber_Or(shifted, lo);
23493 Py_DECREF(hi);
23494 Py_DECREF(lo);
23495 Py_DECREF(shifter);
23496 Py_DECREF(shifted);
23497 }
23498 return resultobj;
23499 fail:
23500 return NULL;
23501}
23502
23503
98e665d3
RD
23504static int _wrap_DefaultDateTime_set(PyObject *_val) {
23505 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23506 return 1;
23507}
23508
23509
23510static PyObject *_wrap_DefaultDateTime_get() {
23511 PyObject *pyobj;
23512
15afbcd0 23513 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
98e665d3
RD
23514 return pyobj;
23515}
23516
23517
d14a1e28
RD
23518static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23519 PyObject *resultobj;
23520 int arg1 ;
23521 wxDataFormat *result;
994141e6 23522 PyObject * obj0 = 0 ;
d14a1e28
RD
23523 char *kwnames[] = {
23524 (char *) "type", NULL
23525 };
23526
994141e6 23527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
15afbcd0
RD
23528 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23529 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
23530 {
23531 PyThreadState* __tstate = wxPyBeginAllowThreads();
23532 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23533
23534 wxPyEndAllowThreads(__tstate);
23535 if (PyErr_Occurred()) SWIG_fail;
23536 }
15afbcd0 23537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
d14a1e28
RD
23538 return resultobj;
23539 fail:
23540 return NULL;
23541}
23542
23543
23544static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj;
23546 wxString *arg1 = 0 ;
23547 wxDataFormat *result;
e811c8ce 23548 bool temp1 = False ;
d14a1e28
RD
23549 PyObject * obj0 = 0 ;
23550 char *kwnames[] = {
23551 (char *) "format", NULL
23552 };
23553
23554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23555 {
23556 arg1 = wxString_in_helper(obj0);
23557 if (arg1 == NULL) SWIG_fail;
e811c8ce 23558 temp1 = True;
d14a1e28
RD
23559 }
23560 {
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23563
23564 wxPyEndAllowThreads(__tstate);
23565 if (PyErr_Occurred()) SWIG_fail;
23566 }
15afbcd0 23567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
d14a1e28
RD
23568 {
23569 if (temp1)
23570 delete arg1;
23571 }
23572 return resultobj;
23573 fail:
23574 {
23575 if (temp1)
23576 delete arg1;
23577 }
23578 return NULL;
23579}
23580
23581
23582static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23583 PyObject *resultobj;
23584 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23585 PyObject * obj0 = 0 ;
23586 char *kwnames[] = {
23587 (char *) "self", NULL
23588 };
23589
23590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
15afbcd0
RD
23591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
23593 {
23594 PyThreadState* __tstate = wxPyBeginAllowThreads();
23595 delete arg1;
23596
23597 wxPyEndAllowThreads(__tstate);
23598 if (PyErr_Occurred()) SWIG_fail;
23599 }
23600 Py_INCREF(Py_None); resultobj = Py_None;
23601 return resultobj;
23602 fail:
23603 return NULL;
23604}
23605
23606
23607static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23608 PyObject *resultobj;
23609 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23610 int arg2 ;
23611 bool result;
23612 PyObject * obj0 = 0 ;
994141e6 23613 PyObject * obj1 = 0 ;
d14a1e28 23614
994141e6 23615 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
15afbcd0
RD
23616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23618 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23619 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
23620 {
23621 PyThreadState* __tstate = wxPyBeginAllowThreads();
db914595 23622 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
d14a1e28
RD
23623
23624 wxPyEndAllowThreads(__tstate);
23625 if (PyErr_Occurred()) SWIG_fail;
23626 }
4d5c3d91 23627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23628 return resultobj;
23629 fail:
23630 return NULL;
23631}
23632
23633
23634static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23635 PyObject *resultobj;
23636 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23637 int arg2 ;
23638 bool result;
23639 PyObject * obj0 = 0 ;
994141e6 23640 PyObject * obj1 = 0 ;
d14a1e28 23641
994141e6 23642 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
15afbcd0
RD
23643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23645 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23646 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
23647 {
23648 PyThreadState* __tstate = wxPyBeginAllowThreads();
db914595 23649 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
d14a1e28
RD
23650
23651 wxPyEndAllowThreads(__tstate);
23652 if (PyErr_Occurred()) SWIG_fail;
23653 }
4d5c3d91 23654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23655 return resultobj;
23656 fail:
23657 return NULL;
23658}
23659
23660
23661static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23662 PyObject *resultobj;
23663 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23664 wxDataFormat *arg2 = 0 ;
23665 bool result;
23666 PyObject * obj0 = 0 ;
23667 PyObject * obj1 = 0 ;
23668
23669 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
15afbcd0
RD
23670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23672 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23673 SWIG_POINTER_EXCEPTION | 0)) == -1)
23674 SWIG_fail;
d14a1e28 23675 if (arg2 == NULL) {
15afbcd0
RD
23676 PyErr_SetString(PyExc_TypeError,"null reference");
23677 SWIG_fail;
d14a1e28
RD
23678 }
23679 {
23680 PyThreadState* __tstate = wxPyBeginAllowThreads();
23681 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23682
23683 wxPyEndAllowThreads(__tstate);
23684 if (PyErr_Occurred()) SWIG_fail;
23685 }
4d5c3d91 23686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23687 return resultobj;
23688 fail:
23689 return NULL;
23690}
23691
23692
23693static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23694 int argc;
23695 PyObject *argv[3];
23696 int ii;
23697
23698 argc = PyObject_Length(args);
23699 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23700 argv[ii] = PyTuple_GetItem(args,ii);
23701 }
23702 if (argc == 2) {
23703 int _v;
23704 {
23705 void *ptr;
15afbcd0 23706 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
d14a1e28
RD
23707 _v = 0;
23708 PyErr_Clear();
23709 } else {
23710 _v = 1;
23711 }
23712 }
23713 if (_v) {
23714 {
23715 void *ptr;
15afbcd0 23716 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
d14a1e28
RD
23717 _v = 0;
23718 PyErr_Clear();
23719 } else {
23720 _v = 1;
23721 }
23722 }
23723 if (_v) {
23724 return _wrap_DataFormat___eq____SWIG_1(self,args);
23725 }
23726 }
23727 }
23728 if (argc == 2) {
23729 int _v;
23730 {
23731 void *ptr;
15afbcd0 23732 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
d14a1e28
RD
23733 _v = 0;
23734 PyErr_Clear();
23735 } else {
23736 _v = 1;
23737 }
23738 }
23739 if (_v) {
15afbcd0 23740 _v = SWIG_CheckInt(argv[1]);
d14a1e28
RD
23741 if (_v) {
23742 return _wrap_DataFormat___eq____SWIG_0(self,args);
23743 }
23744 }
23745 }
23746
23747 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
23748 return NULL;
23749}
23750
23751
23752static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
23753 PyObject *resultobj;
23754 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23755 wxDataFormat *arg2 = 0 ;
23756 bool result;
23757 PyObject * obj0 = 0 ;
23758 PyObject * obj1 = 0 ;
23759
23760 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
15afbcd0
RD
23761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23764 SWIG_POINTER_EXCEPTION | 0)) == -1)
23765 SWIG_fail;
d14a1e28 23766 if (arg2 == NULL) {
15afbcd0
RD
23767 PyErr_SetString(PyExc_TypeError,"null reference");
23768 SWIG_fail;
d14a1e28
RD
23769 }
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
23773
23774 wxPyEndAllowThreads(__tstate);
23775 if (PyErr_Occurred()) SWIG_fail;
23776 }
4d5c3d91 23777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23778 return resultobj;
23779 fail:
23780 return NULL;
23781}
23782
23783
23784static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
23785 int argc;
23786 PyObject *argv[3];
23787 int ii;
23788
23789 argc = PyObject_Length(args);
23790 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23791 argv[ii] = PyTuple_GetItem(args,ii);
23792 }
23793 if (argc == 2) {
23794 int _v;
23795 {
23796 void *ptr;
15afbcd0 23797 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
d14a1e28
RD
23798 _v = 0;
23799 PyErr_Clear();
23800 } else {
23801 _v = 1;
23802 }
23803 }
23804 if (_v) {
23805 {
23806 void *ptr;
15afbcd0 23807 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
d14a1e28
RD
23808 _v = 0;
23809 PyErr_Clear();
23810 } else {
23811 _v = 1;
23812 }
23813 }
23814 if (_v) {
23815 return _wrap_DataFormat___ne____SWIG_1(self,args);
23816 }
23817 }
23818 }
23819 if (argc == 2) {
23820 int _v;
23821 {
23822 void *ptr;
15afbcd0 23823 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
d14a1e28
RD
23824 _v = 0;
23825 PyErr_Clear();
23826 } else {
23827 _v = 1;
23828 }
23829 }
23830 if (_v) {
15afbcd0 23831 _v = SWIG_CheckInt(argv[1]);
d14a1e28
RD
23832 if (_v) {
23833 return _wrap_DataFormat___ne____SWIG_0(self,args);
23834 }
23835 }
23836 }
23837
23838 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
23839 return NULL;
23840}
23841
23842
23843static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
23844 PyObject *resultobj;
23845 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23846 int arg2 ;
23847 PyObject * obj0 = 0 ;
994141e6 23848 PyObject * obj1 = 0 ;
d14a1e28
RD
23849 char *kwnames[] = {
23850 (char *) "self",(char *) "format", NULL
23851 };
23852
994141e6 23853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23856 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23857 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
23858 {
23859 PyThreadState* __tstate = wxPyBeginAllowThreads();
23860 (arg1)->SetType((wxDataFormatId )arg2);
23861
23862 wxPyEndAllowThreads(__tstate);
23863 if (PyErr_Occurred()) SWIG_fail;
23864 }
23865 Py_INCREF(Py_None); resultobj = Py_None;
23866 return resultobj;
23867 fail:
23868 return NULL;
23869}
23870
23871
23872static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
23873 PyObject *resultobj;
23874 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23875 int result;
23876 PyObject * obj0 = 0 ;
23877 char *kwnames[] = {
23878 (char *) "self", NULL
23879 };
23880
23881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
15afbcd0
RD
23882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
23884 {
23885 PyThreadState* __tstate = wxPyBeginAllowThreads();
23886 result = (int)((wxDataFormat const *)arg1)->GetType();
23887
23888 wxPyEndAllowThreads(__tstate);
23889 if (PyErr_Occurred()) SWIG_fail;
23890 }
15afbcd0 23891 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
23892 return resultobj;
23893 fail:
23894 return NULL;
23895}
23896
23897
23898static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23899 PyObject *resultobj;
23900 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23901 wxString result;
23902 PyObject * obj0 = 0 ;
23903 char *kwnames[] = {
23904 (char *) "self", NULL
23905 };
23906
23907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
15afbcd0
RD
23908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = ((wxDataFormat const *)arg1)->GetId();
23913
23914 wxPyEndAllowThreads(__tstate);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 }
23917 {
23918#if wxUSE_UNICODE
23919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23920#else
23921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23922#endif
23923 }
23924 return resultobj;
23925 fail:
23926 return NULL;
23927}
23928
23929
23930static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23931 PyObject *resultobj;
23932 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23933 wxString *arg2 = 0 ;
e811c8ce 23934 bool temp2 = False ;
d14a1e28
RD
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 char *kwnames[] = {
23938 (char *) "self",(char *) "format", NULL
23939 };
23940
23941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
23942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
23944 {
23945 arg2 = wxString_in_helper(obj1);
23946 if (arg2 == NULL) SWIG_fail;
e811c8ce 23947 temp2 = True;
d14a1e28
RD
23948 }
23949 {
23950 PyThreadState* __tstate = wxPyBeginAllowThreads();
23951 (arg1)->SetId((wxString const &)*arg2);
23952
23953 wxPyEndAllowThreads(__tstate);
23954 if (PyErr_Occurred()) SWIG_fail;
23955 }
23956 Py_INCREF(Py_None); resultobj = Py_None;
23957 {
23958 if (temp2)
23959 delete arg2;
23960 }
23961 return resultobj;
23962 fail:
23963 {
23964 if (temp2)
23965 delete arg2;
23966 }
23967 return NULL;
23968}
23969
23970
23971static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
23972 PyObject *obj;
23973 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23974 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
23975 Py_INCREF(obj);
23976 return Py_BuildValue((char *)"");
23977}
23978static int _wrap_FormatInvalid_set(PyObject *_val) {
23979 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
23980 return 1;
23981}
23982
23983
23984static PyObject *_wrap_FormatInvalid_get() {
23985 PyObject *pyobj;
23986
15afbcd0 23987 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
d14a1e28
RD
23988 return pyobj;
23989}
23990
23991
23992static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23993 PyObject *resultobj;
23994 wxDataObject *arg1 = (wxDataObject *) 0 ;
23995 PyObject * obj0 = 0 ;
23996 char *kwnames[] = {
23997 (char *) "self", NULL
23998 };
23999
24000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
15afbcd0
RD
24001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 delete arg1;
24006
24007 wxPyEndAllowThreads(__tstate);
24008 if (PyErr_Occurred()) SWIG_fail;
24009 }
24010 Py_INCREF(Py_None); resultobj = Py_None;
24011 return resultobj;
24012 fail:
24013 return NULL;
24014}
24015
24016
24017static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24018 PyObject *resultobj;
24019 wxDataObject *arg1 = (wxDataObject *) 0 ;
24020 int arg2 = (int) wxDataObject::Get ;
24021 SwigValueWrapper< wxDataFormat > result;
24022 PyObject * obj0 = 0 ;
994141e6 24023 PyObject * obj1 = 0 ;
d14a1e28
RD
24024 char *kwnames[] = {
24025 (char *) "self",(char *) "dir", NULL
24026 };
24027
994141e6 24028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
24029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 24031 if (obj1) {
15afbcd0
RD
24032 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24033 if (PyErr_Occurred()) SWIG_fail;
994141e6 24034 }
d14a1e28
RD
24035 {
24036 PyThreadState* __tstate = wxPyBeginAllowThreads();
24037 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24038
24039 wxPyEndAllowThreads(__tstate);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 }
24042 {
24043 wxDataFormat * resultptr;
24044 resultptr = new wxDataFormat((wxDataFormat &) result);
15afbcd0 24045 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
d14a1e28
RD
24046 }
24047 return resultobj;
24048 fail:
24049 return NULL;
24050}
24051
24052
24053static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24054 PyObject *resultobj;
24055 wxDataObject *arg1 = (wxDataObject *) 0 ;
24056 int arg2 = (int) wxDataObject::Get ;
24057 size_t result;
24058 PyObject * obj0 = 0 ;
994141e6 24059 PyObject * obj1 = 0 ;
d14a1e28
RD
24060 char *kwnames[] = {
24061 (char *) "self",(char *) "dir", NULL
24062 };
24063
994141e6 24064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
24065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 24067 if (obj1) {
15afbcd0
RD
24068 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24069 if (PyErr_Occurred()) SWIG_fail;
994141e6 24070 }
d14a1e28
RD
24071 {
24072 PyThreadState* __tstate = wxPyBeginAllowThreads();
24073 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24074
24075 wxPyEndAllowThreads(__tstate);
24076 if (PyErr_Occurred()) SWIG_fail;
24077 }
15afbcd0 24078 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
24079 return resultobj;
24080 fail:
24081 return NULL;
24082}
24083
24084
24085static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24086 PyObject *resultobj;
24087 wxDataObject *arg1 = (wxDataObject *) 0 ;
24088 wxDataFormat *arg2 = 0 ;
24089 int arg3 = (int) wxDataObject::Get ;
24090 bool result;
24091 PyObject * obj0 = 0 ;
24092 PyObject * obj1 = 0 ;
994141e6 24093 PyObject * obj2 = 0 ;
d14a1e28
RD
24094 char *kwnames[] = {
24095 (char *) "self",(char *) "format",(char *) "dir", NULL
24096 };
24097
994141e6 24098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
24099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24101 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24102 SWIG_POINTER_EXCEPTION | 0)) == -1)
24103 SWIG_fail;
d14a1e28 24104 if (arg2 == NULL) {
15afbcd0
RD
24105 PyErr_SetString(PyExc_TypeError,"null reference");
24106 SWIG_fail;
d14a1e28 24107 }
994141e6 24108 if (obj2) {
15afbcd0
RD
24109 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24110 if (PyErr_Occurred()) SWIG_fail;
994141e6 24111 }
d14a1e28
RD
24112 {
24113 PyThreadState* __tstate = wxPyBeginAllowThreads();
24114 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24115
24116 wxPyEndAllowThreads(__tstate);
24117 if (PyErr_Occurred()) SWIG_fail;
24118 }
4d5c3d91 24119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24120 return resultobj;
24121 fail:
24122 return NULL;
24123}
24124
24125
24126static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24127 PyObject *resultobj;
24128 wxDataObject *arg1 = (wxDataObject *) 0 ;
24129 wxDataFormat *arg2 = 0 ;
24130 size_t result;
24131 PyObject * obj0 = 0 ;
24132 PyObject * obj1 = 0 ;
24133 char *kwnames[] = {
24134 (char *) "self",(char *) "format", NULL
24135 };
24136
24137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
24138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24140 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24141 SWIG_POINTER_EXCEPTION | 0)) == -1)
24142 SWIG_fail;
d14a1e28 24143 if (arg2 == NULL) {
15afbcd0
RD
24144 PyErr_SetString(PyExc_TypeError,"null reference");
24145 SWIG_fail;
d14a1e28
RD
24146 }
24147 {
24148 PyThreadState* __tstate = wxPyBeginAllowThreads();
24149 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24150
24151 wxPyEndAllowThreads(__tstate);
24152 if (PyErr_Occurred()) SWIG_fail;
24153 }
15afbcd0 24154 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
24155 return resultobj;
24156 fail:
24157 return NULL;
24158}
24159
24160
24161static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24162 PyObject *resultobj;
24163 wxDataObject *arg1 = (wxDataObject *) 0 ;
24164 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24165 int arg3 = (int) wxDataObject::Get ;
24166 PyObject * obj0 = 0 ;
24167 PyObject * obj1 = 0 ;
994141e6 24168 PyObject * obj2 = 0 ;
d14a1e28
RD
24169 char *kwnames[] = {
24170 (char *) "self",(char *) "formats",(char *) "dir", NULL
24171 };
24172
994141e6 24173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
24174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24176 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 24178 if (obj2) {
15afbcd0
RD
24179 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24180 if (PyErr_Occurred()) SWIG_fail;
994141e6 24181 }
d14a1e28
RD
24182 {
24183 PyThreadState* __tstate = wxPyBeginAllowThreads();
24184 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24185
24186 wxPyEndAllowThreads(__tstate);
24187 if (PyErr_Occurred()) SWIG_fail;
24188 }
24189 Py_INCREF(Py_None); resultobj = Py_None;
24190 return resultobj;
24191 fail:
24192 return NULL;
24193}
24194
24195
24196static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24197 PyObject *resultobj;
24198 wxDataObject *arg1 = (wxDataObject *) 0 ;
24199 wxDataFormat *arg2 = 0 ;
24200 void *arg3 = (void *) 0 ;
24201 bool result;
24202 PyObject * obj0 = 0 ;
24203 PyObject * obj1 = 0 ;
24204 PyObject * obj2 = 0 ;
24205 char *kwnames[] = {
24206 (char *) "self",(char *) "format",(char *) "buf", NULL
24207 };
24208
24209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
24210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24213 SWIG_POINTER_EXCEPTION | 0)) == -1)
24214 SWIG_fail;
d14a1e28 24215 if (arg2 == NULL) {
15afbcd0
RD
24216 PyErr_SetString(PyExc_TypeError,"null reference");
24217 SWIG_fail;
d14a1e28 24218 }
15afbcd0 24219 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24220 {
24221 PyThreadState* __tstate = wxPyBeginAllowThreads();
24222 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24223
24224 wxPyEndAllowThreads(__tstate);
24225 if (PyErr_Occurred()) SWIG_fail;
24226 }
4d5c3d91 24227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24228 return resultobj;
24229 fail:
24230 return NULL;
24231}
24232
24233
24234static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24235 PyObject *resultobj;
24236 wxDataObject *arg1 = (wxDataObject *) 0 ;
24237 wxDataFormat *arg2 = 0 ;
24238 size_t arg3 ;
24239 void *arg4 = (void *) 0 ;
24240 bool result;
24241 PyObject * obj0 = 0 ;
24242 PyObject * obj1 = 0 ;
24243 PyObject * obj2 = 0 ;
24244 PyObject * obj3 = 0 ;
24245 char *kwnames[] = {
24246 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24247 };
24248
24249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
24250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24252 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24253 SWIG_POINTER_EXCEPTION | 0)) == -1)
24254 SWIG_fail;
d14a1e28 24255 if (arg2 == NULL) {
15afbcd0
RD
24256 PyErr_SetString(PyExc_TypeError,"null reference");
24257 SWIG_fail;
a41e16b6 24258 }
15afbcd0
RD
24259 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24260 if (PyErr_Occurred()) SWIG_fail;
24261 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24265
24266 wxPyEndAllowThreads(__tstate);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
4d5c3d91 24269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24270 return resultobj;
24271 fail:
24272 return NULL;
24273}
24274
24275
24276static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24277 PyObject *obj;
24278 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24279 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24280 Py_INCREF(obj);
24281 return Py_BuildValue((char *)"");
24282}
24283static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24284 PyObject *resultobj;
24285 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24286 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24287 wxDataObjectSimple *result;
24288 PyObject * obj0 = 0 ;
24289 char *kwnames[] = {
24290 (char *) "format", NULL
24291 };
24292
24293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24294 if (obj0) {
15afbcd0
RD
24295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24296 SWIG_POINTER_EXCEPTION | 0)) == -1)
24297 SWIG_fail;
d14a1e28 24298 if (arg1 == NULL) {
15afbcd0
RD
24299 PyErr_SetString(PyExc_TypeError,"null reference");
24300 SWIG_fail;
d14a1e28
RD
24301 }
24302 }
24303 {
24304 PyThreadState* __tstate = wxPyBeginAllowThreads();
24305 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24306
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
15afbcd0 24310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
d14a1e28
RD
24311 return resultobj;
24312 fail:
24313 return NULL;
24314}
24315
24316
24317static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24318 PyObject *resultobj;
24319 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24320 wxDataFormat *result;
24321 PyObject * obj0 = 0 ;
24322 char *kwnames[] = {
24323 (char *) "self", NULL
24324 };
24325
24326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
15afbcd0
RD
24327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24329 {
24330 PyThreadState* __tstate = wxPyBeginAllowThreads();
24331 {
24332 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24333 result = (wxDataFormat *) &_result_ref;
24334 }
24335
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
15afbcd0 24339 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
d14a1e28
RD
24340 return resultobj;
24341 fail:
24342 return NULL;
24343}
24344
24345
24346static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24347 PyObject *resultobj;
24348 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24349 wxDataFormat *arg2 = 0 ;
24350 PyObject * obj0 = 0 ;
24351 PyObject * obj1 = 0 ;
24352 char *kwnames[] = {
24353 (char *) "self",(char *) "format", NULL
24354 };
24355
24356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
24357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24360 SWIG_POINTER_EXCEPTION | 0)) == -1)
24361 SWIG_fail;
d14a1e28 24362 if (arg2 == NULL) {
15afbcd0
RD
24363 PyErr_SetString(PyExc_TypeError,"null reference");
24364 SWIG_fail;
d14a1e28
RD
24365 }
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24369
24370 wxPyEndAllowThreads(__tstate);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 Py_INCREF(Py_None); resultobj = Py_None;
24374 return resultobj;
24375 fail:
24376 return NULL;
24377}
24378
24379
24380static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24381 PyObject *obj;
24382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24383 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24384 Py_INCREF(obj);
24385 return Py_BuildValue((char *)"");
24386}
24387static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24388 PyObject *resultobj;
24389 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24390 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24391 wxPyDataObjectSimple *result;
24392 PyObject * obj0 = 0 ;
24393 char *kwnames[] = {
24394 (char *) "format", NULL
24395 };
24396
24397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24398 if (obj0) {
15afbcd0
RD
24399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24400 SWIG_POINTER_EXCEPTION | 0)) == -1)
24401 SWIG_fail;
d14a1e28 24402 if (arg1 == NULL) {
15afbcd0
RD
24403 PyErr_SetString(PyExc_TypeError,"null reference");
24404 SWIG_fail;
d14a1e28
RD
24405 }
24406 }
24407 {
24408 PyThreadState* __tstate = wxPyBeginAllowThreads();
24409 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24410
24411 wxPyEndAllowThreads(__tstate);
24412 if (PyErr_Occurred()) SWIG_fail;
24413 }
15afbcd0 24414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
d14a1e28
RD
24415 return resultobj;
24416 fail:
24417 return NULL;
24418}
24419
24420
24421static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24422 PyObject *resultobj;
24423 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24424 PyObject *arg2 = (PyObject *) 0 ;
24425 PyObject *arg3 = (PyObject *) 0 ;
24426 PyObject * obj0 = 0 ;
24427 PyObject * obj1 = 0 ;
24428 PyObject * obj2 = 0 ;
24429 char *kwnames[] = {
24430 (char *) "self",(char *) "self",(char *) "_class", NULL
24431 };
24432
24433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
24434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24436 arg2 = obj1;
24437 arg3 = obj2;
24438 {
24439 PyThreadState* __tstate = wxPyBeginAllowThreads();
24440 (arg1)->_setCallbackInfo(arg2,arg3);
24441
24442 wxPyEndAllowThreads(__tstate);
24443 if (PyErr_Occurred()) SWIG_fail;
24444 }
24445 Py_INCREF(Py_None); resultobj = Py_None;
24446 return resultobj;
24447 fail:
24448 return NULL;
24449}
24450
24451
24452static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24453 PyObject *obj;
24454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24455 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24456 Py_INCREF(obj);
24457 return Py_BuildValue((char *)"");
24458}
24459static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24460 PyObject *resultobj;
24461 wxDataObjectComposite *result;
24462 char *kwnames[] = {
24463 NULL
24464 };
24465
24466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24467 {
24468 PyThreadState* __tstate = wxPyBeginAllowThreads();
24469 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24470
24471 wxPyEndAllowThreads(__tstate);
24472 if (PyErr_Occurred()) SWIG_fail;
24473 }
15afbcd0 24474 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
d14a1e28
RD
24475 return resultobj;
24476 fail:
24477 return NULL;
24478}
24479
24480
24481static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24482 PyObject *resultobj;
24483 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24484 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
e811c8ce 24485 int arg3 = (int) False ;
d14a1e28
RD
24486 PyObject * obj0 = 0 ;
24487 PyObject * obj1 = 0 ;
994141e6 24488 PyObject * obj2 = 0 ;
d14a1e28
RD
24489 char *kwnames[] = {
24490 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24491 };
24492
994141e6 24493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
24494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24497 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
994141e6 24498 if (obj2) {
15afbcd0
RD
24499 arg3 = (int) SWIG_AsInt(obj2);
24500 if (PyErr_Occurred()) SWIG_fail;
994141e6 24501 }
d14a1e28
RD
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
24504 (arg1)->Add(arg2,arg3);
24505
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
24509 Py_INCREF(Py_None); resultobj = Py_None;
24510 return resultobj;
24511 fail:
24512 return NULL;
24513}
24514
24515
24516static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24517 PyObject *obj;
24518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24519 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24520 Py_INCREF(obj);
24521 return Py_BuildValue((char *)"");
24522}
24523static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24524 PyObject *resultobj;
24525 wxString const &arg1_defvalue = wxPyEmptyString ;
24526 wxString *arg1 = (wxString *) &arg1_defvalue ;
24527 wxTextDataObject *result;
e811c8ce 24528 bool temp1 = False ;
d14a1e28
RD
24529 PyObject * obj0 = 0 ;
24530 char *kwnames[] = {
24531 (char *) "text", NULL
24532 };
24533
24534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24535 if (obj0) {
24536 {
24537 arg1 = wxString_in_helper(obj0);
24538 if (arg1 == NULL) SWIG_fail;
e811c8ce 24539 temp1 = True;
d14a1e28
RD
24540 }
24541 }
24542 {
24543 PyThreadState* __tstate = wxPyBeginAllowThreads();
24544 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24545
24546 wxPyEndAllowThreads(__tstate);
24547 if (PyErr_Occurred()) SWIG_fail;
24548 }
15afbcd0 24549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
d14a1e28
RD
24550 {
24551 if (temp1)
24552 delete arg1;
24553 }
24554 return resultobj;
24555 fail:
24556 {
24557 if (temp1)
24558 delete arg1;
24559 }
24560 return NULL;
24561}
24562
24563
24564static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj;
24566 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24567 size_t result;
24568 PyObject * obj0 = 0 ;
24569 char *kwnames[] = {
24570 (char *) "self", NULL
24571 };
24572
24573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
15afbcd0
RD
24574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 result = (size_t)(arg1)->GetTextLength();
24579
24580 wxPyEndAllowThreads(__tstate);
24581 if (PyErr_Occurred()) SWIG_fail;
24582 }
15afbcd0 24583 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
24584 return resultobj;
24585 fail:
24586 return NULL;
24587}
24588
24589
24590static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24591 PyObject *resultobj;
24592 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24593 wxString result;
24594 PyObject * obj0 = 0 ;
24595 char *kwnames[] = {
24596 (char *) "self", NULL
24597 };
24598
24599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
15afbcd0
RD
24600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24602 {
24603 PyThreadState* __tstate = wxPyBeginAllowThreads();
24604 result = (arg1)->GetText();
24605
24606 wxPyEndAllowThreads(__tstate);
24607 if (PyErr_Occurred()) SWIG_fail;
24608 }
24609 {
24610#if wxUSE_UNICODE
24611 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24612#else
24613 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24614#endif
24615 }
24616 return resultobj;
24617 fail:
24618 return NULL;
24619}
24620
24621
24622static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24623 PyObject *resultobj;
24624 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24625 wxString *arg2 = 0 ;
e811c8ce 24626 bool temp2 = False ;
d14a1e28
RD
24627 PyObject * obj0 = 0 ;
24628 PyObject * obj1 = 0 ;
24629 char *kwnames[] = {
24630 (char *) "self",(char *) "text", NULL
24631 };
24632
24633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
24634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24636 {
24637 arg2 = wxString_in_helper(obj1);
24638 if (arg2 == NULL) SWIG_fail;
e811c8ce 24639 temp2 = True;
d14a1e28
RD
24640 }
24641 {
24642 PyThreadState* __tstate = wxPyBeginAllowThreads();
24643 (arg1)->SetText((wxString const &)*arg2);
24644
24645 wxPyEndAllowThreads(__tstate);
24646 if (PyErr_Occurred()) SWIG_fail;
24647 }
24648 Py_INCREF(Py_None); resultobj = Py_None;
24649 {
24650 if (temp2)
24651 delete arg2;
24652 }
24653 return resultobj;
24654 fail:
24655 {
24656 if (temp2)
24657 delete arg2;
24658 }
24659 return NULL;
24660}
24661
24662
24663static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
24664 PyObject *obj;
24665 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24666 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24667 Py_INCREF(obj);
24668 return Py_BuildValue((char *)"");
24669}
24670static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24671 PyObject *resultobj;
24672 wxString const &arg1_defvalue = wxPyEmptyString ;
24673 wxString *arg1 = (wxString *) &arg1_defvalue ;
24674 wxPyTextDataObject *result;
e811c8ce 24675 bool temp1 = False ;
d14a1e28
RD
24676 PyObject * obj0 = 0 ;
24677 char *kwnames[] = {
24678 (char *) "text", NULL
24679 };
24680
24681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24682 if (obj0) {
24683 {
24684 arg1 = wxString_in_helper(obj0);
24685 if (arg1 == NULL) SWIG_fail;
e811c8ce 24686 temp1 = True;
d14a1e28
RD
24687 }
24688 }
24689 {
24690 PyThreadState* __tstate = wxPyBeginAllowThreads();
24691 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24692
24693 wxPyEndAllowThreads(__tstate);
24694 if (PyErr_Occurred()) SWIG_fail;
24695 }
15afbcd0 24696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
d14a1e28
RD
24697 {
24698 if (temp1)
24699 delete arg1;
24700 }
24701 return resultobj;
24702 fail:
24703 {
24704 if (temp1)
24705 delete arg1;
24706 }
24707 return NULL;
24708}
24709
24710
24711static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24712 PyObject *resultobj;
24713 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24714 PyObject *arg2 = (PyObject *) 0 ;
24715 PyObject *arg3 = (PyObject *) 0 ;
24716 PyObject * obj0 = 0 ;
24717 PyObject * obj1 = 0 ;
24718 PyObject * obj2 = 0 ;
24719 char *kwnames[] = {
24720 (char *) "self",(char *) "self",(char *) "_class", NULL
24721 };
24722
24723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
24724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
24725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24726 arg2 = obj1;
24727 arg3 = obj2;
24728 {
24729 PyThreadState* __tstate = wxPyBeginAllowThreads();
24730 (arg1)->_setCallbackInfo(arg2,arg3);
24731
24732 wxPyEndAllowThreads(__tstate);
24733 if (PyErr_Occurred()) SWIG_fail;
24734 }
24735 Py_INCREF(Py_None); resultobj = Py_None;
24736 return resultobj;
24737 fail:
24738 return NULL;
24739}
24740
24741
24742static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
24743 PyObject *obj;
24744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24745 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
24746 Py_INCREF(obj);
24747 return Py_BuildValue((char *)"");
24748}
24749static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24750 PyObject *resultobj;
24751 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24752 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24753 wxBitmapDataObject *result;
24754 PyObject * obj0 = 0 ;
24755 char *kwnames[] = {
24756 (char *) "bitmap", NULL
24757 };
24758
24759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
24760 if (obj0) {
15afbcd0
RD
24761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24762 SWIG_POINTER_EXCEPTION | 0)) == -1)
24763 SWIG_fail;
d14a1e28 24764 if (arg1 == NULL) {
15afbcd0
RD
24765 PyErr_SetString(PyExc_TypeError,"null reference");
24766 SWIG_fail;
d14a1e28
RD
24767 }
24768 }
24769 {
24770 PyThreadState* __tstate = wxPyBeginAllowThreads();
24771 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
24772
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
15afbcd0 24776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
d14a1e28
RD
24777 return resultobj;
24778 fail:
24779 return NULL;
24780}
24781
24782
24783static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24784 PyObject *resultobj;
24785 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24786 wxBitmap result;
24787 PyObject * obj0 = 0 ;
24788 char *kwnames[] = {
24789 (char *) "self", NULL
24790 };
24791
24792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
15afbcd0
RD
24793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
24794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24795 {
24796 PyThreadState* __tstate = wxPyBeginAllowThreads();
24797 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
24798
24799 wxPyEndAllowThreads(__tstate);
24800 if (PyErr_Occurred()) SWIG_fail;
24801 }
24802 {
24803 wxBitmap * resultptr;
24804 resultptr = new wxBitmap((wxBitmap &) result);
15afbcd0 24805 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
d14a1e28
RD
24806 }
24807 return resultobj;
24808 fail:
24809 return NULL;
24810}
24811
24812
24813static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24814 PyObject *resultobj;
24815 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24816 wxBitmap *arg2 = 0 ;
24817 PyObject * obj0 = 0 ;
24818 PyObject * obj1 = 0 ;
24819 char *kwnames[] = {
24820 (char *) "self",(char *) "bitmap", NULL
24821 };
24822
24823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
24824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
24825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24826 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
24827 SWIG_POINTER_EXCEPTION | 0)) == -1)
24828 SWIG_fail;
d14a1e28 24829 if (arg2 == NULL) {
15afbcd0
RD
24830 PyErr_SetString(PyExc_TypeError,"null reference");
24831 SWIG_fail;
d14a1e28
RD
24832 }
24833 {
24834 PyThreadState* __tstate = wxPyBeginAllowThreads();
24835 (arg1)->SetBitmap((wxBitmap const &)*arg2);
24836
24837 wxPyEndAllowThreads(__tstate);
24838 if (PyErr_Occurred()) SWIG_fail;
24839 }
24840 Py_INCREF(Py_None); resultobj = Py_None;
24841 return resultobj;
24842 fail:
24843 return NULL;
24844}
24845
24846
24847static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
24848 PyObject *obj;
24849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24850 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
24851 Py_INCREF(obj);
24852 return Py_BuildValue((char *)"");
24853}
24854static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24855 PyObject *resultobj;
24856 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24857 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24858 wxPyBitmapDataObject *result;
24859 PyObject * obj0 = 0 ;
24860 char *kwnames[] = {
24861 (char *) "bitmap", NULL
24862 };
24863
24864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
24865 if (obj0) {
15afbcd0
RD
24866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24867 SWIG_POINTER_EXCEPTION | 0)) == -1)
24868 SWIG_fail;
d14a1e28 24869 if (arg1 == NULL) {
15afbcd0
RD
24870 PyErr_SetString(PyExc_TypeError,"null reference");
24871 SWIG_fail;
d14a1e28
RD
24872 }
24873 }
24874 {
24875 PyThreadState* __tstate = wxPyBeginAllowThreads();
24876 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
24877
24878 wxPyEndAllowThreads(__tstate);
24879 if (PyErr_Occurred()) SWIG_fail;
24880 }
15afbcd0 24881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
d14a1e28
RD
24882 return resultobj;
24883 fail:
24884 return NULL;
24885}
24886
24887
24888static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24889 PyObject *resultobj;
24890 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
24891 PyObject *arg2 = (PyObject *) 0 ;
24892 PyObject *arg3 = (PyObject *) 0 ;
24893 PyObject * obj0 = 0 ;
24894 PyObject * obj1 = 0 ;
24895 PyObject * obj2 = 0 ;
24896 char *kwnames[] = {
24897 (char *) "self",(char *) "self",(char *) "_class", NULL
24898 };
24899
24900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
24901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
24902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24903 arg2 = obj1;
24904 arg3 = obj2;
24905 {
24906 PyThreadState* __tstate = wxPyBeginAllowThreads();
24907 (arg1)->_setCallbackInfo(arg2,arg3);
24908
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 Py_INCREF(Py_None); resultobj = Py_None;
24913 return resultobj;
24914 fail:
24915 return NULL;
24916}
24917
24918
24919static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
24920 PyObject *obj;
24921 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24922 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
24923 Py_INCREF(obj);
24924 return Py_BuildValue((char *)"");
24925}
24926static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24927 PyObject *resultobj;
24928 wxFileDataObject *result;
24929 char *kwnames[] = {
24930 NULL
24931 };
24932
24933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
24934 {
24935 PyThreadState* __tstate = wxPyBeginAllowThreads();
24936 result = (wxFileDataObject *)new wxFileDataObject();
24937
24938 wxPyEndAllowThreads(__tstate);
24939 if (PyErr_Occurred()) SWIG_fail;
24940 }
15afbcd0 24941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
d14a1e28
RD
24942 return resultobj;
24943 fail:
24944 return NULL;
24945}
24946
24947
24948static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
24949 PyObject *resultobj;
24950 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
24951 wxArrayString *result;
24952 PyObject * obj0 = 0 ;
24953 char *kwnames[] = {
24954 (char *) "self", NULL
24955 };
24956
24957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
15afbcd0
RD
24958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
24959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
24960 {
24961 PyThreadState* __tstate = wxPyBeginAllowThreads();
24962 {
24963 wxArrayString const &_result_ref = (arg1)->GetFilenames();
24964 result = (wxArrayString *) &_result_ref;
24965 }
24966
24967 wxPyEndAllowThreads(__tstate);
24968 if (PyErr_Occurred()) SWIG_fail;
24969 }
24970 {
24971 resultobj = wxArrayString2PyList_helper(*result);
24972 }
24973 return resultobj;
24974 fail:
24975 return NULL;
24976}
24977
24978
15afbcd0
RD
24979static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
24980 PyObject *resultobj;
24981 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
24982 wxString *arg2 = 0 ;
24983 bool temp2 = False ;
24984 PyObject * obj0 = 0 ;
24985 PyObject * obj1 = 0 ;
24986 char *kwnames[] = {
24987 (char *) "self",(char *) "filename", NULL
24988 };
24989
24990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
24991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
24992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24993 {
24994 arg2 = wxString_in_helper(obj1);
24995 if (arg2 == NULL) SWIG_fail;
24996 temp2 = True;
24997 }
24998 {
24999 PyThreadState* __tstate = wxPyBeginAllowThreads();
25000 (arg1)->AddFile((wxString const &)*arg2);
25001
25002 wxPyEndAllowThreads(__tstate);
25003 if (PyErr_Occurred()) SWIG_fail;
25004 }
25005 Py_INCREF(Py_None); resultobj = Py_None;
25006 {
25007 if (temp2)
25008 delete arg2;
25009 }
25010 return resultobj;
25011 fail:
25012 {
25013 if (temp2)
25014 delete arg2;
25015 }
25016 return NULL;
25017}
25018
25019
d14a1e28
RD
25020static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25021 PyObject *obj;
25022 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25023 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25024 Py_INCREF(obj);
25025 return Py_BuildValue((char *)"");
25026}
25027static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25028 PyObject *resultobj;
25029 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25030 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25031 wxCustomDataObject *result;
25032 PyObject * obj0 = 0 ;
25033 char *kwnames[] = {
25034 (char *) "format", NULL
25035 };
25036
25037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25038 if (obj0) {
15afbcd0
RD
25039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25040 SWIG_POINTER_EXCEPTION | 0)) == -1)
25041 SWIG_fail;
d14a1e28 25042 if (arg1 == NULL) {
15afbcd0
RD
25043 PyErr_SetString(PyExc_TypeError,"null reference");
25044 SWIG_fail;
d14a1e28
RD
25045 }
25046 }
25047 {
25048 PyThreadState* __tstate = wxPyBeginAllowThreads();
25049 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25050
25051 wxPyEndAllowThreads(__tstate);
25052 if (PyErr_Occurred()) SWIG_fail;
25053 }
15afbcd0 25054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
d14a1e28
RD
25055 return resultobj;
25056 fail:
25057 return NULL;
25058}
25059
25060
25061static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
25062 PyObject *resultobj;
25063 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25064 PyObject *arg2 = (PyObject *) 0 ;
25065 PyObject * obj0 = 0 ;
25066 PyObject * obj1 = 0 ;
25067 char *kwnames[] = {
25068 (char *) "self",(char *) "data", NULL
25069 };
25070
25071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
25072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25074 arg2 = obj1;
25075 {
25076 PyThreadState* __tstate = wxPyBeginAllowThreads();
25077 wxCustomDataObject_TakeData(arg1,arg2);
25078
25079 wxPyEndAllowThreads(__tstate);
25080 if (PyErr_Occurred()) SWIG_fail;
25081 }
25082 Py_INCREF(Py_None); resultobj = Py_None;
25083 return resultobj;
25084 fail:
25085 return NULL;
25086}
25087
25088
25089static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25090 PyObject *resultobj;
25091 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25092 PyObject *arg2 = (PyObject *) 0 ;
25093 bool result;
25094 PyObject * obj0 = 0 ;
25095 PyObject * obj1 = 0 ;
25096 char *kwnames[] = {
25097 (char *) "self",(char *) "data", NULL
25098 };
25099
25100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
25101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25103 arg2 = obj1;
25104 {
25105 PyThreadState* __tstate = wxPyBeginAllowThreads();
25106 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25107
25108 wxPyEndAllowThreads(__tstate);
25109 if (PyErr_Occurred()) SWIG_fail;
25110 }
4d5c3d91 25111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25112 return resultobj;
25113 fail:
25114 return NULL;
25115}
25116
25117
25118static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25119 PyObject *resultobj;
25120 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25121 size_t result;
25122 PyObject * obj0 = 0 ;
25123 char *kwnames[] = {
25124 (char *) "self", NULL
25125 };
25126
25127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
15afbcd0
RD
25128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25130 {
25131 PyThreadState* __tstate = wxPyBeginAllowThreads();
25132 result = (size_t)(arg1)->GetSize();
25133
25134 wxPyEndAllowThreads(__tstate);
25135 if (PyErr_Occurred()) SWIG_fail;
25136 }
15afbcd0 25137 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
25138 return resultobj;
25139 fail:
25140 return NULL;
25141}
25142
25143
25144static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25145 PyObject *resultobj;
25146 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25147 PyObject *result;
25148 PyObject * obj0 = 0 ;
25149 char *kwnames[] = {
25150 (char *) "self", NULL
25151 };
25152
25153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
15afbcd0
RD
25154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25159
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
25163 resultobj = result;
25164 return resultobj;
25165 fail:
25166 return NULL;
25167}
25168
25169
25170static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25171 PyObject *obj;
25172 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25173 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25174 Py_INCREF(obj);
25175 return Py_BuildValue((char *)"");
25176}
25177static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25178 PyObject *resultobj;
25179 wxURLDataObject *result;
25180 char *kwnames[] = {
25181 NULL
25182 };
25183
25184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25185 {
25186 PyThreadState* __tstate = wxPyBeginAllowThreads();
25187 result = (wxURLDataObject *)new wxURLDataObject();
25188
25189 wxPyEndAllowThreads(__tstate);
25190 if (PyErr_Occurred()) SWIG_fail;
25191 }
15afbcd0 25192 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
d14a1e28
RD
25193 return resultobj;
25194 fail:
25195 return NULL;
25196}
25197
25198
25199static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25200 PyObject *resultobj;
25201 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25202 wxString result;
25203 PyObject * obj0 = 0 ;
25204 char *kwnames[] = {
25205 (char *) "self", NULL
25206 };
25207
25208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
15afbcd0
RD
25209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25211 {
25212 PyThreadState* __tstate = wxPyBeginAllowThreads();
25213 result = (arg1)->GetURL();
25214
25215 wxPyEndAllowThreads(__tstate);
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 {
25219#if wxUSE_UNICODE
25220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25221#else
25222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25223#endif
25224 }
25225 return resultobj;
25226 fail:
25227 return NULL;
25228}
25229
25230
25231static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj;
25233 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25234 wxString *arg2 = 0 ;
e811c8ce 25235 bool temp2 = False ;
d14a1e28
RD
25236 PyObject * obj0 = 0 ;
25237 PyObject * obj1 = 0 ;
25238 char *kwnames[] = {
25239 (char *) "self",(char *) "url", NULL
25240 };
25241
25242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
25243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25245 {
25246 arg2 = wxString_in_helper(obj1);
25247 if (arg2 == NULL) SWIG_fail;
e811c8ce 25248 temp2 = True;
d14a1e28
RD
25249 }
25250 {
25251 PyThreadState* __tstate = wxPyBeginAllowThreads();
25252 (arg1)->SetURL((wxString const &)*arg2);
25253
25254 wxPyEndAllowThreads(__tstate);
25255 if (PyErr_Occurred()) SWIG_fail;
25256 }
25257 Py_INCREF(Py_None); resultobj = Py_None;
25258 {
25259 if (temp2)
25260 delete arg2;
25261 }
25262 return resultobj;
25263 fail:
25264 {
25265 if (temp2)
25266 delete arg2;
25267 }
25268 return NULL;
25269}
25270
25271
25272static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25273 PyObject *obj;
25274 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25275 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25276 Py_INCREF(obj);
25277 return Py_BuildValue((char *)"");
25278}
25279static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25280 PyObject *resultobj;
25281 wxMetafileDataObject *result;
25282 char *kwnames[] = {
25283 NULL
25284 };
25285
25286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25287 {
25288 PyThreadState* __tstate = wxPyBeginAllowThreads();
25289 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25290
25291 wxPyEndAllowThreads(__tstate);
25292 if (PyErr_Occurred()) SWIG_fail;
25293 }
15afbcd0 25294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
d14a1e28
RD
25295 return resultobj;
25296 fail:
25297 return NULL;
25298}
25299
25300
25301static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25302 PyObject *obj;
25303 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25304 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25305 Py_INCREF(obj);
25306 return Py_BuildValue((char *)"");
25307}
25308static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25309 PyObject *resultobj;
25310 int arg1 ;
25311 bool result;
994141e6 25312 PyObject * obj0 = 0 ;
d14a1e28
RD
25313 char *kwnames[] = {
25314 (char *) "res", NULL
25315 };
25316
994141e6 25317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
15afbcd0
RD
25318 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25319 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
25320 {
25321 PyThreadState* __tstate = wxPyBeginAllowThreads();
25322 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25323
25324 wxPyEndAllowThreads(__tstate);
25325 if (PyErr_Occurred()) SWIG_fail;
25326 }
4d5c3d91 25327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25328 return resultobj;
25329 fail:
25330 return NULL;
25331}
25332
25333
25334static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25335 PyObject *resultobj;
d1e20054 25336 wxWindow *arg1 = (wxWindow *) 0 ;
d14a1e28
RD
25337 wxIcon const &arg2_defvalue = wxNullIcon ;
25338 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
25339 wxIcon const &arg3_defvalue = wxNullIcon ;
25340 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
25341 wxIcon const &arg4_defvalue = wxNullIcon ;
25342 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
25343 wxPyDropSource *result;
25344 PyObject * obj0 = 0 ;
25345 PyObject * obj1 = 0 ;
25346 PyObject * obj2 = 0 ;
25347 PyObject * obj3 = 0 ;
25348 char *kwnames[] = {
25349 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25350 };
25351
d1e20054 25352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
25353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 25355 if (obj1) {
15afbcd0
RD
25356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
25357 SWIG_POINTER_EXCEPTION | 0)) == -1)
25358 SWIG_fail;
d14a1e28 25359 if (arg2 == NULL) {
15afbcd0
RD
25360 PyErr_SetString(PyExc_TypeError,"null reference");
25361 SWIG_fail;
d14a1e28
RD
25362 }
25363 }
25364 if (obj2) {
15afbcd0
RD
25365 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon,
25366 SWIG_POINTER_EXCEPTION | 0)) == -1)
25367 SWIG_fail;
d14a1e28 25368 if (arg3 == NULL) {
15afbcd0
RD
25369 PyErr_SetString(PyExc_TypeError,"null reference");
25370 SWIG_fail;
d14a1e28
RD
25371 }
25372 }
25373 if (obj3) {
15afbcd0
RD
25374 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon,
25375 SWIG_POINTER_EXCEPTION | 0)) == -1)
25376 SWIG_fail;
d14a1e28 25377 if (arg4 == NULL) {
15afbcd0
RD
25378 PyErr_SetString(PyExc_TypeError,"null reference");
25379 SWIG_fail;
d14a1e28
RD
25380 }
25381 }
25382 {
25383 PyThreadState* __tstate = wxPyBeginAllowThreads();
25384 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
25385
25386 wxPyEndAllowThreads(__tstate);
25387 if (PyErr_Occurred()) SWIG_fail;
25388 }
15afbcd0 25389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
d14a1e28
RD
25390 return resultobj;
25391 fail:
25392 return NULL;
25393}
25394
25395
25396static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25397 PyObject *resultobj;
25398 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25399 PyObject *arg2 = (PyObject *) 0 ;
25400 PyObject *arg3 = (PyObject *) 0 ;
25401 int arg4 ;
25402 PyObject * obj0 = 0 ;
25403 PyObject * obj1 = 0 ;
25404 PyObject * obj2 = 0 ;
994141e6 25405 PyObject * obj3 = 0 ;
d14a1e28
RD
25406 char *kwnames[] = {
25407 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25408 };
25409
994141e6 25410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
25411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25413 arg2 = obj1;
25414 arg3 = obj2;
15afbcd0
RD
25415 arg4 = (int) SWIG_AsInt(obj3);
25416 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
25417 {
25418 PyThreadState* __tstate = wxPyBeginAllowThreads();
25419 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25420
25421 wxPyEndAllowThreads(__tstate);
25422 if (PyErr_Occurred()) SWIG_fail;
25423 }
25424 Py_INCREF(Py_None); resultobj = Py_None;
25425 return resultobj;
25426 fail:
25427 return NULL;
25428}
25429
25430
25431static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25432 PyObject *resultobj;
25433 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25434 PyObject * obj0 = 0 ;
25435 char *kwnames[] = {
25436 (char *) "self", NULL
25437 };
25438
25439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
15afbcd0
RD
25440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25442 {
25443 PyThreadState* __tstate = wxPyBeginAllowThreads();
25444 delete arg1;
25445
25446 wxPyEndAllowThreads(__tstate);
25447 if (PyErr_Occurred()) SWIG_fail;
25448 }
25449 Py_INCREF(Py_None); resultobj = Py_None;
25450 return resultobj;
25451 fail:
25452 return NULL;
25453}
25454
25455
25456static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25457 PyObject *resultobj;
25458 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25459 wxDataObject *arg2 = 0 ;
25460 PyObject * obj0 = 0 ;
25461 PyObject * obj1 = 0 ;
25462 char *kwnames[] = {
25463 (char *) "self",(char *) "data", NULL
25464 };
25465
25466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
25467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25470 SWIG_POINTER_EXCEPTION | 0)) == -1)
25471 SWIG_fail;
d14a1e28 25472 if (arg2 == NULL) {
15afbcd0
RD
25473 PyErr_SetString(PyExc_TypeError,"null reference");
25474 SWIG_fail;
d14a1e28
RD
25475 }
25476 {
25477 PyThreadState* __tstate = wxPyBeginAllowThreads();
25478 (arg1)->SetData(*arg2);
25479
25480 wxPyEndAllowThreads(__tstate);
25481 if (PyErr_Occurred()) SWIG_fail;
25482 }
25483 Py_INCREF(Py_None); resultobj = Py_None;
25484 return resultobj;
25485 fail:
25486 return NULL;
25487}
25488
25489
25490static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25491 PyObject *resultobj;
25492 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25493 wxDataObject *result;
25494 PyObject * obj0 = 0 ;
25495 char *kwnames[] = {
25496 (char *) "self", NULL
25497 };
25498
25499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
15afbcd0
RD
25500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25502 {
25503 PyThreadState* __tstate = wxPyBeginAllowThreads();
25504 result = (wxDataObject *)(arg1)->GetDataObject();
25505
25506 wxPyEndAllowThreads(__tstate);
25507 if (PyErr_Occurred()) SWIG_fail;
25508 }
15afbcd0 25509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
d14a1e28
RD
25510 return resultobj;
25511 fail:
25512 return NULL;
25513}
25514
25515
25516static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25517 PyObject *resultobj;
25518 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25519 int arg2 ;
25520 wxCursor *arg3 = 0 ;
25521 PyObject * obj0 = 0 ;
994141e6 25522 PyObject * obj1 = 0 ;
d14a1e28
RD
25523 PyObject * obj2 = 0 ;
25524 char *kwnames[] = {
25525 (char *) "self",(char *) "res",(char *) "cursor", NULL
25526 };
25527
994141e6 25528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
25529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25531 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25534 SWIG_POINTER_EXCEPTION | 0)) == -1)
25535 SWIG_fail;
d14a1e28 25536 if (arg3 == NULL) {
15afbcd0
RD
25537 PyErr_SetString(PyExc_TypeError,"null reference");
25538 SWIG_fail;
d14a1e28
RD
25539 }
25540 {
25541 PyThreadState* __tstate = wxPyBeginAllowThreads();
25542 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25543
25544 wxPyEndAllowThreads(__tstate);
25545 if (PyErr_Occurred()) SWIG_fail;
25546 }
25547 Py_INCREF(Py_None); resultobj = Py_None;
25548 return resultobj;
25549 fail:
25550 return NULL;
25551}
25552
25553
25554static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25555 PyObject *resultobj;
25556 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25557 int arg2 = (int) wxDrag_CopyOnly ;
25558 int result;
25559 PyObject * obj0 = 0 ;
994141e6 25560 PyObject * obj1 = 0 ;
d14a1e28
RD
25561 char *kwnames[] = {
25562 (char *) "self",(char *) "flags", NULL
25563 };
25564
994141e6 25565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
25566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
994141e6 25568 if (obj1) {
15afbcd0
RD
25569 arg2 = (int) SWIG_AsInt(obj1);
25570 if (PyErr_Occurred()) SWIG_fail;
994141e6 25571 }
d14a1e28
RD
25572 {
25573 PyThreadState* __tstate = wxPyBeginAllowThreads();
25574 result = (int)(arg1)->DoDragDrop(arg2);
25575
25576 wxPyEndAllowThreads(__tstate);
25577 if (PyErr_Occurred()) SWIG_fail;
25578 }
15afbcd0 25579 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
25580 return resultobj;
25581 fail:
25582 return NULL;
25583}
25584
25585
25586static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25587 PyObject *resultobj;
25588 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25589 int arg2 ;
25590 bool result;
25591 PyObject * obj0 = 0 ;
994141e6 25592 PyObject * obj1 = 0 ;
d14a1e28
RD
25593 char *kwnames[] = {
25594 (char *) "self",(char *) "effect", NULL
25595 };
25596
994141e6 25597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
25598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25600 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25601 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
25602 {
25603 PyThreadState* __tstate = wxPyBeginAllowThreads();
25604 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25605
25606 wxPyEndAllowThreads(__tstate);
25607 if (PyErr_Occurred()) SWIG_fail;
25608 }
4d5c3d91 25609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25610 return resultobj;
25611 fail:
25612 return NULL;
25613}
25614
25615
25616static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
25617 PyObject *obj;
25618 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25619 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25620 Py_INCREF(obj);
25621 return Py_BuildValue((char *)"");
25622}
15afbcd0 25623static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
25624 PyObject *resultobj;
25625 wxDataObject *arg1 = (wxDataObject *) NULL ;
25626 wxPyDropTarget *result;
25627 PyObject * obj0 = 0 ;
25628 char *kwnames[] = {
25629 (char *) "dataObject", NULL
25630 };
25631
15afbcd0 25632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
d14a1e28 25633 if (obj0) {
15afbcd0
RD
25634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25635 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d14a1e28
RD
25636 }
25637 {
25638 PyThreadState* __tstate = wxPyBeginAllowThreads();
25639 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25640
25641 wxPyEndAllowThreads(__tstate);
25642 if (PyErr_Occurred()) SWIG_fail;
25643 }
15afbcd0 25644 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
d14a1e28
RD
25645 return resultobj;
25646 fail:
25647 return NULL;
25648}
25649
25650
25651static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25652 PyObject *resultobj;
25653 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25654 PyObject *arg2 = (PyObject *) 0 ;
25655 PyObject *arg3 = (PyObject *) 0 ;
25656 PyObject * obj0 = 0 ;
25657 PyObject * obj1 = 0 ;
25658 PyObject * obj2 = 0 ;
25659 char *kwnames[] = {
25660 (char *) "self",(char *) "self",(char *) "_class", NULL
25661 };
25662
25663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
25664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25666 arg2 = obj1;
25667 arg3 = obj2;
25668 {
25669 PyThreadState* __tstate = wxPyBeginAllowThreads();
25670 (arg1)->_setCallbackInfo(arg2,arg3);
25671
25672 wxPyEndAllowThreads(__tstate);
25673 if (PyErr_Occurred()) SWIG_fail;
25674 }
25675 Py_INCREF(Py_None); resultobj = Py_None;
25676 return resultobj;
25677 fail:
25678 return NULL;
25679}
25680
25681
25682static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25683 PyObject *resultobj;
25684 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25685 PyObject * obj0 = 0 ;
25686 char *kwnames[] = {
25687 (char *) "self", NULL
25688 };
25689
25690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
15afbcd0
RD
25691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25693 {
25694 PyThreadState* __tstate = wxPyBeginAllowThreads();
25695 delete arg1;
25696
25697 wxPyEndAllowThreads(__tstate);
25698 if (PyErr_Occurred()) SWIG_fail;
25699 }
25700 Py_INCREF(Py_None); resultobj = Py_None;
25701 return resultobj;
25702 fail:
25703 return NULL;
25704}
25705
25706
25707static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25708 PyObject *resultobj;
25709 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25710 wxDataObject *result;
25711 PyObject * obj0 = 0 ;
25712 char *kwnames[] = {
25713 (char *) "self", NULL
25714 };
25715
25716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
15afbcd0
RD
25717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25719 {
25720 PyThreadState* __tstate = wxPyBeginAllowThreads();
25721 result = (wxDataObject *)(arg1)->GetDataObject();
25722
25723 wxPyEndAllowThreads(__tstate);
25724 if (PyErr_Occurred()) SWIG_fail;
25725 }
15afbcd0 25726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
d14a1e28
RD
25727 return resultobj;
25728 fail:
25729 return NULL;
25730}
25731
25732
25733static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25734 PyObject *resultobj;
25735 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25736 wxDataObject *arg2 = (wxDataObject *) 0 ;
25737 PyObject * obj0 = 0 ;
25738 PyObject * obj1 = 0 ;
25739 char *kwnames[] = {
25740 (char *) "self",(char *) "dataObject", NULL
25741 };
25742
25743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
25744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25746 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25747 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d14a1e28
RD
25748 {
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 (arg1)->SetDataObject(arg2);
25751
25752 wxPyEndAllowThreads(__tstate);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 Py_INCREF(Py_None); resultobj = Py_None;
25756 return resultobj;
25757 fail:
25758 return NULL;
25759}
25760
25761
25762static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
25763 PyObject *resultobj;
25764 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
25765 int arg2 ;
25766 int arg3 ;
d14a1e28
RD
25767 int arg4 ;
25768 int result;
25769 PyObject * obj0 = 0 ;
994141e6
RD
25770 PyObject * obj1 = 0 ;
25771 PyObject * obj2 = 0 ;
25772 PyObject * obj3 = 0 ;
d14a1e28
RD
25773 char *kwnames[] = {
25774 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25775 };
25776
994141e6 25777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
25778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25780 arg2 = (int) SWIG_AsInt(obj1);
25781 if (PyErr_Occurred()) SWIG_fail;
25782 arg3 = (int) SWIG_AsInt(obj2);
25783 if (PyErr_Occurred()) SWIG_fail;
25784 arg4 = (wxDragResult) SWIG_AsInt(obj3);
25785 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
25786 {
25787 PyThreadState* __tstate = wxPyBeginAllowThreads();
25788 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
25789
25790 wxPyEndAllowThreads(__tstate);
25791 if (PyErr_Occurred()) SWIG_fail;
25792 }
15afbcd0 25793 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
25794 return resultobj;
25795 fail:
25796 return NULL;
25797}
25798
25799
25800static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
25801 PyObject *resultobj;
25802 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
25803 int arg2 ;
25804 int arg3 ;
d14a1e28
RD
25805 int arg4 ;
25806 int result;
25807 PyObject * obj0 = 0 ;
994141e6
RD
25808 PyObject * obj1 = 0 ;
25809 PyObject * obj2 = 0 ;
25810 PyObject * obj3 = 0 ;
d14a1e28
RD
25811 char *kwnames[] = {
25812 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25813 };
25814
994141e6 25815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
25816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25818 arg2 = (int) SWIG_AsInt(obj1);
25819 if (PyErr_Occurred()) SWIG_fail;
25820 arg3 = (int) SWIG_AsInt(obj2);
25821 if (PyErr_Occurred()) SWIG_fail;
25822 arg4 = (wxDragResult) SWIG_AsInt(obj3);
25823 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
25824 {
25825 PyThreadState* __tstate = wxPyBeginAllowThreads();
25826 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
25827
25828 wxPyEndAllowThreads(__tstate);
25829 if (PyErr_Occurred()) SWIG_fail;
25830 }
15afbcd0 25831 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
25832 return resultobj;
25833 fail:
25834 return NULL;
25835}
25836
25837
25838static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
25839 PyObject *resultobj;
25840 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25841 PyObject * obj0 = 0 ;
25842 char *kwnames[] = {
25843 (char *) "self", NULL
25844 };
25845
25846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
15afbcd0
RD
25847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25849 {
25850 PyThreadState* __tstate = wxPyBeginAllowThreads();
25851 (arg1)->base_OnLeave();
25852
25853 wxPyEndAllowThreads(__tstate);
25854 if (PyErr_Occurred()) SWIG_fail;
25855 }
25856 Py_INCREF(Py_None); resultobj = Py_None;
25857 return resultobj;
25858 fail:
25859 return NULL;
25860}
25861
25862
25863static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25864 PyObject *resultobj;
25865 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
25866 int arg2 ;
25867 int arg3 ;
d14a1e28
RD
25868 bool result;
25869 PyObject * obj0 = 0 ;
994141e6
RD
25870 PyObject * obj1 = 0 ;
25871 PyObject * obj2 = 0 ;
d14a1e28
RD
25872 char *kwnames[] = {
25873 (char *) "self",(char *) "x",(char *) "y", NULL
25874 };
25875
994141e6 25876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
25877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25879 arg2 = (int) SWIG_AsInt(obj1);
25880 if (PyErr_Occurred()) SWIG_fail;
25881 arg3 = (int) SWIG_AsInt(obj2);
25882 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
25883 {
25884 PyThreadState* __tstate = wxPyBeginAllowThreads();
25885 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
25886
25887 wxPyEndAllowThreads(__tstate);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
4d5c3d91 25890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25891 return resultobj;
25892 fail:
25893 return NULL;
25894}
25895
25896
25897static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25898 PyObject *resultobj;
25899 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25900 bool result;
25901 PyObject * obj0 = 0 ;
25902 char *kwnames[] = {
25903 (char *) "self", NULL
25904 };
25905
25906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
15afbcd0
RD
25907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25909 {
25910 PyThreadState* __tstate = wxPyBeginAllowThreads();
25911 result = (bool)(arg1)->GetData();
25912
25913 wxPyEndAllowThreads(__tstate);
25914 if (PyErr_Occurred()) SWIG_fail;
25915 }
4d5c3d91 25916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25917 return resultobj;
25918 fail:
25919 return NULL;
25920}
25921
25922
25923static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
25924 PyObject *obj;
25925 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25926 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
25927 Py_INCREF(obj);
25928 return Py_BuildValue((char *)"");
25929}
25930static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25931 PyObject *resultobj;
25932 wxPyTextDropTarget *result;
25933 char *kwnames[] = {
25934 NULL
25935 };
25936
25937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
25938 {
25939 PyThreadState* __tstate = wxPyBeginAllowThreads();
25940 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
25941
25942 wxPyEndAllowThreads(__tstate);
25943 if (PyErr_Occurred()) SWIG_fail;
25944 }
15afbcd0 25945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
d14a1e28
RD
25946 return resultobj;
25947 fail:
25948 return NULL;
25949}
25950
25951
25952static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25953 PyObject *resultobj;
25954 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
25955 PyObject *arg2 = (PyObject *) 0 ;
25956 PyObject *arg3 = (PyObject *) 0 ;
25957 PyObject * obj0 = 0 ;
25958 PyObject * obj1 = 0 ;
25959 PyObject * obj2 = 0 ;
25960 char *kwnames[] = {
25961 (char *) "self",(char *) "self",(char *) "_class", NULL
25962 };
25963
25964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
25965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
25966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
25967 arg2 = obj1;
25968 arg3 = obj2;
25969 {
25970 PyThreadState* __tstate = wxPyBeginAllowThreads();
25971 (arg1)->_setCallbackInfo(arg2,arg3);
25972
25973 wxPyEndAllowThreads(__tstate);
25974 if (PyErr_Occurred()) SWIG_fail;
25975 }
25976 Py_INCREF(Py_None); resultobj = Py_None;
25977 return resultobj;
25978 fail:
25979 return NULL;
25980}
25981
25982
25983static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
25984 PyObject *resultobj;
25985 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
25986 int arg2 ;
25987 int arg3 ;
d14a1e28
RD
25988 int arg4 ;
25989 int result;
25990 PyObject * obj0 = 0 ;
994141e6
RD
25991 PyObject * obj1 = 0 ;
25992 PyObject * obj2 = 0 ;
25993 PyObject * obj3 = 0 ;
d14a1e28
RD
25994 char *kwnames[] = {
25995 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25996 };
25997
994141e6 25998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
25999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26001 arg2 = (int) SWIG_AsInt(obj1);
26002 if (PyErr_Occurred()) SWIG_fail;
26003 arg3 = (int) SWIG_AsInt(obj2);
26004 if (PyErr_Occurred()) SWIG_fail;
26005 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26006 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26007 {
26008 PyThreadState* __tstate = wxPyBeginAllowThreads();
26009 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26010
26011 wxPyEndAllowThreads(__tstate);
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
15afbcd0 26014 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
26015 return resultobj;
26016 fail:
26017 return NULL;
26018}
26019
26020
26021static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26022 PyObject *resultobj;
26023 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
26024 int arg2 ;
26025 int arg3 ;
d14a1e28
RD
26026 int arg4 ;
26027 int result;
26028 PyObject * obj0 = 0 ;
994141e6
RD
26029 PyObject * obj1 = 0 ;
26030 PyObject * obj2 = 0 ;
26031 PyObject * obj3 = 0 ;
d14a1e28
RD
26032 char *kwnames[] = {
26033 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26034 };
26035
994141e6 26036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
26037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26039 arg2 = (int) SWIG_AsInt(obj1);
26040 if (PyErr_Occurred()) SWIG_fail;
26041 arg3 = (int) SWIG_AsInt(obj2);
26042 if (PyErr_Occurred()) SWIG_fail;
26043 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26044 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26045 {
26046 PyThreadState* __tstate = wxPyBeginAllowThreads();
26047 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26048
26049 wxPyEndAllowThreads(__tstate);
26050 if (PyErr_Occurred()) SWIG_fail;
26051 }
15afbcd0 26052 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
26053 return resultobj;
26054 fail:
26055 return NULL;
26056}
26057
26058
26059static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26060 PyObject *resultobj;
26061 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26062 PyObject * obj0 = 0 ;
26063 char *kwnames[] = {
26064 (char *) "self", NULL
26065 };
26066
26067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
15afbcd0
RD
26068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26070 {
26071 PyThreadState* __tstate = wxPyBeginAllowThreads();
26072 (arg1)->base_OnLeave();
26073
26074 wxPyEndAllowThreads(__tstate);
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 Py_INCREF(Py_None); resultobj = Py_None;
26078 return resultobj;
26079 fail:
26080 return NULL;
26081}
26082
26083
26084static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26085 PyObject *resultobj;
26086 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
26087 int arg2 ;
26088 int arg3 ;
d14a1e28
RD
26089 bool result;
26090 PyObject * obj0 = 0 ;
994141e6
RD
26091 PyObject * obj1 = 0 ;
26092 PyObject * obj2 = 0 ;
d14a1e28
RD
26093 char *kwnames[] = {
26094 (char *) "self",(char *) "x",(char *) "y", NULL
26095 };
26096
994141e6 26097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
26098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26100 arg2 = (int) SWIG_AsInt(obj1);
26101 if (PyErr_Occurred()) SWIG_fail;
26102 arg3 = (int) SWIG_AsInt(obj2);
26103 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26104 {
26105 PyThreadState* __tstate = wxPyBeginAllowThreads();
26106 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26107
26108 wxPyEndAllowThreads(__tstate);
26109 if (PyErr_Occurred()) SWIG_fail;
26110 }
4d5c3d91 26111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26112 return resultobj;
26113 fail:
26114 return NULL;
26115}
26116
26117
26118static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26119 PyObject *resultobj;
26120 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
26121 int arg2 ;
26122 int arg3 ;
d14a1e28
RD
26123 int arg4 ;
26124 int result;
26125 PyObject * obj0 = 0 ;
994141e6
RD
26126 PyObject * obj1 = 0 ;
26127 PyObject * obj2 = 0 ;
26128 PyObject * obj3 = 0 ;
d14a1e28
RD
26129 char *kwnames[] = {
26130 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26131 };
26132
994141e6 26133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
26134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26136 arg2 = (int) SWIG_AsInt(obj1);
26137 if (PyErr_Occurred()) SWIG_fail;
26138 arg3 = (int) SWIG_AsInt(obj2);
26139 if (PyErr_Occurred()) SWIG_fail;
26140 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26141 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26142 {
26143 PyThreadState* __tstate = wxPyBeginAllowThreads();
26144 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26145
26146 wxPyEndAllowThreads(__tstate);
26147 if (PyErr_Occurred()) SWIG_fail;
26148 }
15afbcd0 26149 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
26150 return resultobj;
26151 fail:
26152 return NULL;
26153}
26154
26155
26156static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26157 PyObject *obj;
26158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26159 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26160 Py_INCREF(obj);
26161 return Py_BuildValue((char *)"");
26162}
26163static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26164 PyObject *resultobj;
26165 wxPyFileDropTarget *result;
26166 char *kwnames[] = {
26167 NULL
26168 };
26169
26170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26171 {
26172 PyThreadState* __tstate = wxPyBeginAllowThreads();
26173 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26174
26175 wxPyEndAllowThreads(__tstate);
26176 if (PyErr_Occurred()) SWIG_fail;
26177 }
15afbcd0 26178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
d14a1e28
RD
26179 return resultobj;
26180 fail:
26181 return NULL;
26182}
26183
26184
26185static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26186 PyObject *resultobj;
26187 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26188 PyObject *arg2 = (PyObject *) 0 ;
26189 PyObject *arg3 = (PyObject *) 0 ;
26190 PyObject * obj0 = 0 ;
26191 PyObject * obj1 = 0 ;
26192 PyObject * obj2 = 0 ;
26193 char *kwnames[] = {
26194 (char *) "self",(char *) "self",(char *) "_class", NULL
26195 };
26196
26197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
26198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26200 arg2 = obj1;
26201 arg3 = obj2;
26202 {
26203 PyThreadState* __tstate = wxPyBeginAllowThreads();
26204 (arg1)->_setCallbackInfo(arg2,arg3);
26205
26206 wxPyEndAllowThreads(__tstate);
26207 if (PyErr_Occurred()) SWIG_fail;
26208 }
26209 Py_INCREF(Py_None); resultobj = Py_None;
26210 return resultobj;
26211 fail:
26212 return NULL;
26213}
26214
26215
26216static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26217 PyObject *resultobj;
26218 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
26219 int arg2 ;
26220 int arg3 ;
d14a1e28
RD
26221 int arg4 ;
26222 int result;
26223 PyObject * obj0 = 0 ;
994141e6
RD
26224 PyObject * obj1 = 0 ;
26225 PyObject * obj2 = 0 ;
26226 PyObject * obj3 = 0 ;
d14a1e28
RD
26227 char *kwnames[] = {
26228 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26229 };
26230
994141e6 26231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
26232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26234 arg2 = (int) SWIG_AsInt(obj1);
26235 if (PyErr_Occurred()) SWIG_fail;
26236 arg3 = (int) SWIG_AsInt(obj2);
26237 if (PyErr_Occurred()) SWIG_fail;
26238 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26239 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26240 {
26241 PyThreadState* __tstate = wxPyBeginAllowThreads();
26242 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26243
26244 wxPyEndAllowThreads(__tstate);
26245 if (PyErr_Occurred()) SWIG_fail;
26246 }
15afbcd0 26247 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
26248 return resultobj;
26249 fail:
26250 return NULL;
26251}
26252
26253
26254static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26255 PyObject *resultobj;
26256 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
26257 int arg2 ;
26258 int arg3 ;
d14a1e28
RD
26259 int arg4 ;
26260 int result;
26261 PyObject * obj0 = 0 ;
994141e6
RD
26262 PyObject * obj1 = 0 ;
26263 PyObject * obj2 = 0 ;
26264 PyObject * obj3 = 0 ;
d14a1e28
RD
26265 char *kwnames[] = {
26266 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26267 };
26268
994141e6 26269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
26270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26272 arg2 = (int) SWIG_AsInt(obj1);
26273 if (PyErr_Occurred()) SWIG_fail;
26274 arg3 = (int) SWIG_AsInt(obj2);
26275 if (PyErr_Occurred()) SWIG_fail;
26276 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26277 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26278 {
26279 PyThreadState* __tstate = wxPyBeginAllowThreads();
26280 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26281
26282 wxPyEndAllowThreads(__tstate);
26283 if (PyErr_Occurred()) SWIG_fail;
26284 }
15afbcd0 26285 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
26286 return resultobj;
26287 fail:
26288 return NULL;
26289}
26290
26291
26292static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26293 PyObject *resultobj;
26294 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26295 PyObject * obj0 = 0 ;
26296 char *kwnames[] = {
26297 (char *) "self", NULL
26298 };
26299
26300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
15afbcd0
RD
26301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26303 {
26304 PyThreadState* __tstate = wxPyBeginAllowThreads();
26305 (arg1)->base_OnLeave();
26306
26307 wxPyEndAllowThreads(__tstate);
26308 if (PyErr_Occurred()) SWIG_fail;
26309 }
26310 Py_INCREF(Py_None); resultobj = Py_None;
26311 return resultobj;
26312 fail:
26313 return NULL;
26314}
26315
26316
26317static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26318 PyObject *resultobj;
26319 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
26320 int arg2 ;
26321 int arg3 ;
d14a1e28
RD
26322 bool result;
26323 PyObject * obj0 = 0 ;
994141e6
RD
26324 PyObject * obj1 = 0 ;
26325 PyObject * obj2 = 0 ;
d14a1e28
RD
26326 char *kwnames[] = {
26327 (char *) "self",(char *) "x",(char *) "y", NULL
26328 };
26329
994141e6 26330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
15afbcd0
RD
26331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26333 arg2 = (int) SWIG_AsInt(obj1);
26334 if (PyErr_Occurred()) SWIG_fail;
26335 arg3 = (int) SWIG_AsInt(obj2);
26336 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26337 {
26338 PyThreadState* __tstate = wxPyBeginAllowThreads();
26339 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26340
26341 wxPyEndAllowThreads(__tstate);
26342 if (PyErr_Occurred()) SWIG_fail;
26343 }
4d5c3d91 26344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26345 return resultobj;
26346 fail:
26347 return NULL;
26348}
26349
26350
26351static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26352 PyObject *resultobj;
26353 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
26354 int arg2 ;
26355 int arg3 ;
d14a1e28
RD
26356 int arg4 ;
26357 int result;
26358 PyObject * obj0 = 0 ;
994141e6
RD
26359 PyObject * obj1 = 0 ;
26360 PyObject * obj2 = 0 ;
26361 PyObject * obj3 = 0 ;
d14a1e28
RD
26362 char *kwnames[] = {
26363 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26364 };
26365
994141e6 26366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15afbcd0
RD
26367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26369 arg2 = (int) SWIG_AsInt(obj1);
26370 if (PyErr_Occurred()) SWIG_fail;
26371 arg3 = (int) SWIG_AsInt(obj2);
26372 if (PyErr_Occurred()) SWIG_fail;
26373 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26374 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26375 {
26376 PyThreadState* __tstate = wxPyBeginAllowThreads();
26377 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26378
26379 wxPyEndAllowThreads(__tstate);
26380 if (PyErr_Occurred()) SWIG_fail;
26381 }
15afbcd0 26382 resultobj = SWIG_FromInt((int)result);
d14a1e28
RD
26383 return resultobj;
26384 fail:
26385 return NULL;
26386}
26387
26388
26389static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26390 PyObject *obj;
26391 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26392 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26393 Py_INCREF(obj);
26394 return Py_BuildValue((char *)"");
26395}
26396static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26397 PyObject *resultobj;
26398 wxClipboard *result;
26399 char *kwnames[] = {
26400 NULL
26401 };
26402
26403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26404 {
26405 PyThreadState* __tstate = wxPyBeginAllowThreads();
26406 result = (wxClipboard *)new wxClipboard();
26407
26408 wxPyEndAllowThreads(__tstate);
26409 if (PyErr_Occurred()) SWIG_fail;
26410 }
15afbcd0 26411 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
d14a1e28
RD
26412 return resultobj;
26413 fail:
26414 return NULL;
26415}
26416
26417
26418static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26419 PyObject *resultobj;
26420 wxClipboard *arg1 = (wxClipboard *) 0 ;
26421 PyObject * obj0 = 0 ;
26422 char *kwnames[] = {
26423 (char *) "self", NULL
26424 };
26425
26426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
15afbcd0
RD
26427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26429 {
26430 PyThreadState* __tstate = wxPyBeginAllowThreads();
26431 delete arg1;
26432
26433 wxPyEndAllowThreads(__tstate);
26434 if (PyErr_Occurred()) SWIG_fail;
26435 }
26436 Py_INCREF(Py_None); resultobj = Py_None;
26437 return resultobj;
26438 fail:
26439 return NULL;
26440}
26441
26442
26443static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26444 PyObject *resultobj;
26445 wxClipboard *arg1 = (wxClipboard *) 0 ;
26446 bool result;
26447 PyObject * obj0 = 0 ;
26448 char *kwnames[] = {
26449 (char *) "self", NULL
26450 };
26451
26452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
15afbcd0
RD
26453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26455 {
26456 PyThreadState* __tstate = wxPyBeginAllowThreads();
26457 result = (bool)(arg1)->Open();
26458
26459 wxPyEndAllowThreads(__tstate);
26460 if (PyErr_Occurred()) SWIG_fail;
26461 }
4d5c3d91 26462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26463 return resultobj;
26464 fail:
26465 return NULL;
26466}
26467
26468
26469static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26470 PyObject *resultobj;
26471 wxClipboard *arg1 = (wxClipboard *) 0 ;
26472 PyObject * obj0 = 0 ;
26473 char *kwnames[] = {
26474 (char *) "self", NULL
26475 };
26476
26477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
15afbcd0
RD
26478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26480 {
26481 PyThreadState* __tstate = wxPyBeginAllowThreads();
26482 (arg1)->Close();
26483
26484 wxPyEndAllowThreads(__tstate);
26485 if (PyErr_Occurred()) SWIG_fail;
26486 }
26487 Py_INCREF(Py_None); resultobj = Py_None;
26488 return resultobj;
26489 fail:
26490 return NULL;
26491}
26492
26493
26494static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26495 PyObject *resultobj;
26496 wxClipboard *arg1 = (wxClipboard *) 0 ;
26497 bool result;
26498 PyObject * obj0 = 0 ;
26499 char *kwnames[] = {
26500 (char *) "self", NULL
26501 };
26502
26503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
15afbcd0
RD
26504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26506 {
26507 PyThreadState* __tstate = wxPyBeginAllowThreads();
26508 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26509
26510 wxPyEndAllowThreads(__tstate);
26511 if (PyErr_Occurred()) SWIG_fail;
26512 }
4d5c3d91 26513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26514 return resultobj;
26515 fail:
26516 return NULL;
26517}
26518
26519
26520static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26521 PyObject *resultobj;
26522 wxClipboard *arg1 = (wxClipboard *) 0 ;
26523 wxDataObject *arg2 = (wxDataObject *) 0 ;
26524 bool result;
26525 PyObject * obj0 = 0 ;
26526 PyObject * obj1 = 0 ;
26527 char *kwnames[] = {
26528 (char *) "self",(char *) "data", NULL
26529 };
26530
26531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
26532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26535 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d14a1e28
RD
26536 {
26537 PyThreadState* __tstate = wxPyBeginAllowThreads();
26538 result = (bool)(arg1)->AddData(arg2);
26539
26540 wxPyEndAllowThreads(__tstate);
26541 if (PyErr_Occurred()) SWIG_fail;
26542 }
4d5c3d91 26543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26544 return resultobj;
26545 fail:
26546 return NULL;
26547}
26548
26549
26550static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26551 PyObject *resultobj;
26552 wxClipboard *arg1 = (wxClipboard *) 0 ;
26553 wxDataObject *arg2 = (wxDataObject *) 0 ;
26554 bool result;
26555 PyObject * obj0 = 0 ;
26556 PyObject * obj1 = 0 ;
26557 char *kwnames[] = {
26558 (char *) "self",(char *) "data", NULL
26559 };
26560
26561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
26562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26565 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d14a1e28
RD
26566 {
26567 PyThreadState* __tstate = wxPyBeginAllowThreads();
26568 result = (bool)(arg1)->SetData(arg2);
26569
26570 wxPyEndAllowThreads(__tstate);
26571 if (PyErr_Occurred()) SWIG_fail;
26572 }
4d5c3d91 26573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26574 return resultobj;
26575 fail:
26576 return NULL;
26577}
26578
26579
26580static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
26581 PyObject *resultobj;
26582 wxClipboard *arg1 = (wxClipboard *) 0 ;
26583 wxDataFormat *arg2 = 0 ;
26584 bool result;
26585 PyObject * obj0 = 0 ;
26586 PyObject * obj1 = 0 ;
26587 char *kwnames[] = {
26588 (char *) "self",(char *) "format", NULL
26589 };
26590
26591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
26592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26594 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26595 SWIG_POINTER_EXCEPTION | 0)) == -1)
26596 SWIG_fail;
d14a1e28 26597 if (arg2 == NULL) {
15afbcd0
RD
26598 PyErr_SetString(PyExc_TypeError,"null reference");
26599 SWIG_fail;
d14a1e28
RD
26600 }
26601 {
26602 PyThreadState* __tstate = wxPyBeginAllowThreads();
26603 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26604
26605 wxPyEndAllowThreads(__tstate);
26606 if (PyErr_Occurred()) SWIG_fail;
26607 }
4d5c3d91 26608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26609 return resultobj;
26610 fail:
26611 return NULL;
26612}
26613
26614
26615static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26616 PyObject *resultobj;
26617 wxClipboard *arg1 = (wxClipboard *) 0 ;
26618 wxDataObject *arg2 = 0 ;
26619 bool result;
26620 PyObject * obj0 = 0 ;
26621 PyObject * obj1 = 0 ;
26622 char *kwnames[] = {
26623 (char *) "self",(char *) "data", NULL
26624 };
26625
26626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
26627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26630 SWIG_POINTER_EXCEPTION | 0)) == -1)
26631 SWIG_fail;
d14a1e28 26632 if (arg2 == NULL) {
15afbcd0
RD
26633 PyErr_SetString(PyExc_TypeError,"null reference");
26634 SWIG_fail;
d14a1e28
RD
26635 }
26636 {
26637 PyThreadState* __tstate = wxPyBeginAllowThreads();
26638 result = (bool)(arg1)->GetData(*arg2);
26639
26640 wxPyEndAllowThreads(__tstate);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
4d5c3d91 26643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26644 return resultobj;
26645 fail:
26646 return NULL;
26647}
26648
26649
26650static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
26651 PyObject *resultobj;
26652 wxClipboard *arg1 = (wxClipboard *) 0 ;
26653 PyObject * obj0 = 0 ;
26654 char *kwnames[] = {
26655 (char *) "self", NULL
26656 };
26657
26658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
15afbcd0
RD
26659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26661 {
26662 PyThreadState* __tstate = wxPyBeginAllowThreads();
26663 (arg1)->Clear();
26664
26665 wxPyEndAllowThreads(__tstate);
26666 if (PyErr_Occurred()) SWIG_fail;
26667 }
26668 Py_INCREF(Py_None); resultobj = Py_None;
26669 return resultobj;
26670 fail:
26671 return NULL;
26672}
26673
26674
26675static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
26676 PyObject *resultobj;
26677 wxClipboard *arg1 = (wxClipboard *) 0 ;
26678 bool result;
26679 PyObject * obj0 = 0 ;
26680 char *kwnames[] = {
26681 (char *) "self", NULL
26682 };
26683
26684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
15afbcd0
RD
26685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26687 {
26688 PyThreadState* __tstate = wxPyBeginAllowThreads();
26689 result = (bool)(arg1)->Flush();
26690
26691 wxPyEndAllowThreads(__tstate);
26692 if (PyErr_Occurred()) SWIG_fail;
26693 }
4d5c3d91 26694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26695 return resultobj;
26696 fail:
26697 return NULL;
26698}
26699
26700
26701static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26702 PyObject *resultobj;
26703 wxClipboard *arg1 = (wxClipboard *) 0 ;
fcafa8a9 26704 bool arg2 = (bool) True ;
d14a1e28
RD
26705 PyObject * obj0 = 0 ;
26706 PyObject * obj1 = 0 ;
26707 char *kwnames[] = {
26708 (char *) "self",(char *) "primary", NULL
26709 };
26710
26711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
15afbcd0
RD
26712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28 26714 if (obj1) {
15afbcd0
RD
26715 arg2 = (bool) SWIG_AsBool(obj1);
26716 if (PyErr_Occurred()) SWIG_fail;
d14a1e28
RD
26717 }
26718 {
26719 PyThreadState* __tstate = wxPyBeginAllowThreads();
26720 (arg1)->UsePrimarySelection(arg2);
26721
26722 wxPyEndAllowThreads(__tstate);
26723 if (PyErr_Occurred()) SWIG_fail;
26724 }
26725 Py_INCREF(Py_None); resultobj = Py_None;
26726 return resultobj;
26727 fail:
26728 return NULL;
26729}
26730
26731
26732static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
26733 PyObject *obj;
26734 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26735 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
26736 Py_INCREF(obj);
26737 return Py_BuildValue((char *)"");
26738}
26739static int _wrap_TheClipboard_set(PyObject *_val) {
26740 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
26741 return 1;
26742}
26743
26744
26745static PyObject *_wrap_TheClipboard_get() {
26746 PyObject *pyobj;
26747
15afbcd0 26748 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
d14a1e28
RD
26749 return pyobj;
26750}
26751
26752
26753static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
26754 PyObject *resultobj;
26755 wxClipboard *arg1 = (wxClipboard *) NULL ;
26756 wxClipboardLocker *result;
26757 PyObject * obj0 = 0 ;
26758 char *kwnames[] = {
26759 (char *) "clipboard", NULL
26760 };
26761
26762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
26763 if (obj0) {
15afbcd0
RD
26764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26766 }
26767 {
26768 PyThreadState* __tstate = wxPyBeginAllowThreads();
26769 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
26770
26771 wxPyEndAllowThreads(__tstate);
26772 if (PyErr_Occurred()) SWIG_fail;
26773 }
15afbcd0 26774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
d14a1e28
RD
26775 return resultobj;
26776 fail:
26777 return NULL;
26778}
26779
26780
26781static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
26782 PyObject *resultobj;
26783 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26784 PyObject * obj0 = 0 ;
26785 char *kwnames[] = {
26786 (char *) "self", NULL
26787 };
26788
26789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
15afbcd0
RD
26790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
26791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26792 {
26793 PyThreadState* __tstate = wxPyBeginAllowThreads();
26794 delete arg1;
26795
26796 wxPyEndAllowThreads(__tstate);
26797 if (PyErr_Occurred()) SWIG_fail;
26798 }
26799 Py_INCREF(Py_None); resultobj = Py_None;
26800 return resultobj;
26801 fail:
26802 return NULL;
26803}
26804
26805
26806static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
26807 PyObject *resultobj;
26808 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26809 bool result;
26810 PyObject * obj0 = 0 ;
26811 char *kwnames[] = {
26812 (char *) "self", NULL
26813 };
26814
26815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
15afbcd0
RD
26816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
26817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d14a1e28
RD
26818 {
26819 PyThreadState* __tstate = wxPyBeginAllowThreads();
26820 result = (bool)wxClipboardLocker___nonzero__(arg1);
26821
26822 wxPyEndAllowThreads(__tstate);
26823 if (PyErr_Occurred()) SWIG_fail;
26824 }
4d5c3d91 26825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26826 return resultobj;
26827 fail:
26828 return NULL;
26829}
26830
26831
26832static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
26833 PyObject *obj;
26834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26835 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
26836 Py_INCREF(obj);
26837 return Py_BuildValue((char *)"");
26838}
26839static PyMethodDef SwigMethods[] = {
26840 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
26841 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
26842 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
26843 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
26844 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
26845 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
26846 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
26847 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
26848 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
26849 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
26850 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
26851 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
26852 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
26853 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
26854 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
26855 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
26856 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
26857 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
26858 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
26859 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
26860 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
26861 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
26862 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
26863 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
26864 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
26865 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
26866 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
26867 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
26868 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
26869 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
26870 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
26871 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
26872 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
26873 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
26874 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
26875 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
26876 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
26877 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
26878 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
26879 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
26880 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
26881 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
26882 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
26883 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
26884 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
26885 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
26886 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
26887 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
26888 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
26889 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
26890 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
26891 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
26892 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
26893 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
26894 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
26895 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
26896 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
26897 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
26898 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
26899 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
26900 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
26901 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
26902 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
26903 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
26904 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
26905 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
26906 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
39f61e25 26907 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26908 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
26909 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
26910 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
26911 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
26912 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
26913 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
26914 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
26915 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
26916 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
26917 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
26918 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
26919 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
26920 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
26921 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
26922 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
26923 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
26924 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
26925 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
d14a1e28 26926 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
322913ce 26927 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 26928 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
322913ce 26929 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26930 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
26931 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
26932 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
26933 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
26934 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
26935 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
26936 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
26937 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
26938 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
26939 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
26940 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
26941 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
26942 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
26943 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
26944 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
26945 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
26946 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
26947 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
26948 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
26949 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
26950 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
26951 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
26952 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
26953 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
26954 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
26955 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
26956 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
26957 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
26958 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
26959 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
26960 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
26961 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
26962 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
26963 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
26964 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
26965 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
26966 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
26967 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
26968 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
26969 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
26970 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
26971 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
26972 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
26973 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
26974 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
26975 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
26976 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
26977 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
26978 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
26979 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
26980 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
26981 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
26982 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
26983 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
26984 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
26985 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
26986 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
26987 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
7722248d 26988 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26989 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
26990 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
26991 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26992 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
26993 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
26994 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
cc6dd355 26995 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26996 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
26997 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
26998 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
26999 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
27000 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
27001 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
27002 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
27003 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
27004 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
27005 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
27006 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
27007 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
27008 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
27009 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
27010 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
27011 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
27012 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
27013 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
27014 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
27015 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
27016 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
27017 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
27018 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
27019 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
27020 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
27021 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
27022 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
27023 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
27024 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
27025 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
27026 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
27027 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
27028 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
27029 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
27030 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
27031 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
27032 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
27033 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
27034 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
27035 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
27036 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
27037 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
27038 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
27039 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
27040 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
27041 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
27042 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
27043 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
27044 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
27045 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
27046 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
27047 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
27048 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
27049 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
27050 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
27051 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
27052 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
27053 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
27054 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
27055 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
27056 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
27057 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
27058 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
27059 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
27060 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
27061 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
cc6dd355 27062 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
d14a1e28
RD
27063 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
27064 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
27065 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
27066 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
27067 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
27068 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
27069 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27070 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
27071 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
27072 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
27073 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
27074 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
27075 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27076 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
27077 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
27078 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
27079 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
27080 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
27081 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
27082 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
27083 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
27084 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
27085 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
27086 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
27087 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
27088 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
27089 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
27090 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
27091 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
27092 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
27093 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
27094 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
27095 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
27096 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
27097 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
27098 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
27099 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
27100 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
27101 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
27102 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
27103 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
27104 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
27105 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
27106 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
27107 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
27108 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
27109 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
27110 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
27111 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
27112 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
27113 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
27114 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
27115 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
27116 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
27117 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
27118 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
27119 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
27120 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
27121 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
27122 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
27123 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
27124 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
27125 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
27126 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
27127 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
27128 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
27129 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
27130 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
27131 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
27132 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
27133 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
27134 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
27135 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
27136 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
27137 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
27138 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
27139 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
27140 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
27141 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
27142 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
27143 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
27144 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
27145 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
27146 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
27147 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
27148 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
27149 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
27150 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
27151 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
27152 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
27153 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
27154 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
27155 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
27156 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
27157 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
27158 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
27159 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
27160 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
27161 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
27162 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
27163 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
27164 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
27165 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
27166 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
27167 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
27168 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
27169 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
4d5c3d91
RD
27170 { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS },
27171 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
27172 { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS },
27173 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
27174 { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS },
27175 { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS },
27176 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
27177 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
d14a1e28
RD
27178 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
27179 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
27180 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
27181 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
27182 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
27183 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
27184 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
27185 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
27186 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
27187 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
27188 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
27189 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
27190 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
27191 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
27192 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
27193 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
27194 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
27195 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
27196 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
27197 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
27198 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
27199 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
27200 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
27201 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
27202 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
27203 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
27204 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
27205 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
27206 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
27207 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
27208 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
27209 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
27210 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
27211 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
27212 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
27213 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
27214 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
27215 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
27216 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
27217 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
27218 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
27219 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
27220 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
27221 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
27222 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
27223 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
27224 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
27225 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27226 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
27227 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
27228 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
27229 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
27230 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
1e0c8722 27231 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
27232 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
27233 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
27234 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
27235 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
27236 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
27237 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
27238 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
27239 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
27240 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
27241 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
27242 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
27243 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
27244 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
27245 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
27246 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
27247 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
27248 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
27249 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
27250 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
27251 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
27252 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
27253 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
27254 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
27255 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
27256 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
27257 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
27258 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
27259 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
27260 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
27261 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
27262 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
27263 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
d14a1e28 27264 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
b88bce5f 27265 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
27266 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
27267 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
27268 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
27269 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
27270 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
27271 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
27272 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
27273 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
27274 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
27275 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
d14a1e28
RD
27276 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
27277 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
27278 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
27279 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
27280 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
27281 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
b88bce5f
RD
27282 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
27283 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
27284 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
27285 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
d14a1e28
RD
27286 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
27287 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
27288 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
27289 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
27290 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
27291 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
27292 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
27293 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
27294 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
27295 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
27296 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
27297 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
27298 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
27299 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
27300 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
27301 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
27302 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
27303 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
27304 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
27305 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
27306 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
27307 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
27308 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
27309 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
27310 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
27311 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
27312 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
27313 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
27314 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
27315 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
27316 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
27317 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
27318 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
27319 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
27320 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
27321 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
27322 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
27323 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
27324 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
27325 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
27326 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
27327 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
27328 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
27329 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
27330 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
27331 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
27332 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
27333 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
27334 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
27335 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
27336 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
27337 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
27338 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
27339 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
27340 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
27341 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
27342 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
27343 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
27344 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
27345 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
27346 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
27347 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
27348 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
27349 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
27350 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
27351 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
27352 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
27353 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
27354 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
27355 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
27356 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
27357 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
27358 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
27359 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
27360 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
27361 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
27362 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
27363 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
27364 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
27365 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
27366 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
27367 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
27368 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
27369 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
27370 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
27371 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
27372 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
27373 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
27374 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
27375 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
27376 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
27377 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
27378 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
27379 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
27380 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
27381 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
27382 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
27383 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
27384 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
27385 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
27386 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
27387 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
27388 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
27389 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
27390 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
27391 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
27392 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
27393 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
27394 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
27395 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
27396 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
27397 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
27398 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
27399 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
27400 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
27401 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
27402 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
27403 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
27404 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
27405 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
27406 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
27407 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
27408 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
27409 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
27410 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
27411 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
27412 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
27413 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
27414 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
27415 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
27416 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
27417 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
27418 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
27419 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
27420 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
27421 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
27422 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
27423 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
27424 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
27425 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
27426 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
27427 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
27428 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
27429 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
27430 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
27431 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
27432 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
27433 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
27434 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
27435 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
27436 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
27437 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
27438 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
27439 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
27440 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
27441 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
27442 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
27443 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
27444 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
27445 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
27446 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
27447 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
27448 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
27449 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
27450 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
27451 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
27452 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
27453 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
27454 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
27455 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
27456 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
27457 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
27458 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
27459 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
27460 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
27461 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
27462 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
27463 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
27464 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
27465 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
27466 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
27467 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
27468 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
27469 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
27470 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
27471 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
27472 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
27473 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
27474 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
27475 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
27476 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
27477 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
27478 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
27479 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
27480 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
27481 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
27482 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
27483 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
27484 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
27485 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
27486 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
27487 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
27488 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
27489 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
27490 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
27491 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
27492 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
27493 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
27494 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
27495 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
27496 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
27497 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
27498 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
27499 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
27500 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
27501 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
27502 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
27503 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
27504 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
27505 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27506 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
27507 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
27508 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
27509 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
27510 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
27511 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
27512 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
27513 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
27514 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
27515 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
27516 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27517 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
27518 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
27519 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
27520 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
27521 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
27522 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
27523 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27524 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
27525 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
27526 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
15afbcd0 27527 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
27528 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
27529 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
27530 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
27531 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
27532 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
27533 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
27534 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
27535 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
27536 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
27537 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
27538 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
27539 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
27540 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
27541 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
27542 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
27543 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27544 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
27545 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
27546 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
27547 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
27548 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
27549 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
27550 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
15afbcd0 27551 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
27552 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27553 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
27554 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
27555 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
27556 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27557 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27558 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27559 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27560 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
27561 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
27562 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
27563 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27564 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27565 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27566 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27567 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27568 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
27569 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
27570 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
27571 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27572 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27573 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27574 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27575 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27576 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
27577 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
27578 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
27579 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
27580 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
27581 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
27582 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
27583 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
27584 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
27585 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
27586 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
27587 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
27588 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
27589 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
27590 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
27591 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
27592 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
27593 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
27594 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
27595 { NULL, NULL }
27596};
27597
27598
27599/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
27600
27601static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
27602 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
27603}
27604static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
27605 return (void *)((wxEvent *) ((wxMenuEvent *) x));
27606}
27607static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
27608 return (void *)((wxEvent *) ((wxCloseEvent *) x));
27609}
27610static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
27611 return (void *)((wxEvent *) ((wxMouseEvent *) x));
27612}
27613static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
27614 return (void *)((wxEvent *) ((wxEraseEvent *) x));
27615}
27616static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
27617 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
27618}
27619static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
27620 return (void *)((wxEvent *) ((wxTimerEvent *) x));
27621}
27622static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
27623 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
27624}
27625static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
27626 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
27627}
27628static void *_p_wxPyEventTo_p_wxEvent(void *x) {
27629 return (void *)((wxEvent *) ((wxPyEvent *) x));
27630}
27631static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
27632 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
27633}
27634static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
27635 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
27636}
27637static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
27638 return (void *)((wxEvent *) ((wxIdleEvent *) x));
27639}
27640static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
27641 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
27642}
27643static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
27644 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
27645}
27646static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
27647 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
27648}
27649static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
27650 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
27651}
27652static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
27653 return (void *)((wxEvent *) ((wxActivateEvent *) x));
27654}
27655static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
27656 return (void *)((wxEvent *) ((wxSizeEvent *) x));
27657}
27658static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
27659 return (void *)((wxEvent *) ((wxMoveEvent *) x));
27660}
27661static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
27662 return (void *)((wxEvent *) ((wxPaintEvent *) x));
27663}
27664static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
27665 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
27666}
27667static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
27668 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
27669}
27670static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
27671 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
27672}
27673static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
27674 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
27675}
27676static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
27677 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
27678}
27679static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
27680 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
27681}
27682static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
27683 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
27684}
27685static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
27686 return (void *)((wxEvent *) ((wxFocusEvent *) x));
27687}
27688static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
27689 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
27690}
27691static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
27692 return (void *)((wxEvent *) ((wxProcessEvent *) x));
27693}
27694static void *_p_wxShowEventTo_p_wxEvent(void *x) {
27695 return (void *)((wxEvent *) ((wxShowEvent *) x));
27696}
27697static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
27698 return (void *)((wxEvent *) ((wxCommandEvent *) x));
27699}
27700static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
27701 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
27702}
27703static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
27704 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
27705}
27706static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
27707 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
27708}
27709static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
27710 return (void *)((wxEvent *) ((wxKeyEvent *) x));
27711}
27712static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
27713 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
27714}
27715static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
27716 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
27717}
27718static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
27719 return (void *)((wxConfigBase *) ((wxConfig *) x));
27720}
27721static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
27722 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27723}
27724static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
27725 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
27726}
27727static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
27728 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
27729}
27730static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
27731 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
27732}
27733static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
27734 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
27735}
27736static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
27737 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
27738}
27739static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
27740 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
27741}
27742static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
27743 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
27744}
27745static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
27746 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27747}
27748static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
27749 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
27750}
27751static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
27752 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
27753}
27754static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
27755 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
27756}
27757static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
27758 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
27759}
27760static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
27761 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
27762}
27763static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
27764 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
27765}
27766static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
27767 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
27768}
27769static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
27770 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
27771}
27772static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
27773 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
27774}
27775static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
27776 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27777}
27778static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
27779 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
27780}
27781static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
27782 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
27783}
27784static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
27785 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
27786}
27787static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
27788 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
27789}
27790static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
27791 return (void *)((wxEvtHandler *) ((wxWindow *) x));
27792}
27793static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
27794 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
27795}
27796static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
27797 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
27798}
27799static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
27800 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
27801}
27802static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
27803 return (void *)((wxEvtHandler *) ((wxValidator *) x));
27804}
27805static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
27806 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
27807}
27808static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
27809 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
27810}
27811static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
27812 return (void *)((wxEvtHandler *) ((wxMenu *) x));
27813}
27814static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
27815 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
27816}
27817static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
27818 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
27819}
27820static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
27821 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
27822}
27823static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
27824 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
27825}
27826static void *_p_wxSizerItemTo_p_wxObject(void *x) {
27827 return (void *)((wxObject *) ((wxSizerItem *) x));
27828}
27829static void *_p_wxScrollEventTo_p_wxObject(void *x) {
27830 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
27831}
27832static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
27833 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
27834}
27835static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
27836 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
27837}
27838static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
27839 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
27840}
27841static void *_p_wxSizerTo_p_wxObject(void *x) {
27842 return (void *)((wxObject *) ((wxSizer *) x));
27843}
27844static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
27845 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
27846}
27847static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
27848 return (void *)((wxObject *) ((wxFileHistory *) x));
27849}
27850static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
27851 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
27852}
27853static void *_p_wxEventTo_p_wxObject(void *x) {
27854 return (void *)((wxObject *) ((wxEvent *) x));
27855}
27856static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
27857 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
27858}
27859static void *_p_wxGridSizerTo_p_wxObject(void *x) {
27860 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
27861}
27862static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
27863 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
27864}
27865static void *_p_wxPaintEventTo_p_wxObject(void *x) {
27866 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
27867}
27868static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
27869 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
27870}
27871static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
27872 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
27873}
27874static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
27875 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
27876}
27877static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
27878 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
27879}
27880static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
27881 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
27882}
27883static void *_p_wxControlTo_p_wxObject(void *x) {
27884 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
27885}
27886static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
27887 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
27888}
27889static void *_p_wxTimerEventTo_p_wxObject(void *x) {
27890 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
27891}
27892static void *_p_wxFSFileTo_p_wxObject(void *x) {
27893 return (void *)((wxObject *) ((wxFSFile *) x));
27894}
27895static void *_p_wxClipboardTo_p_wxObject(void *x) {
27896 return (void *)((wxObject *) ((wxClipboard *) x));
27897}
27898static void *_p_wxPySizerTo_p_wxObject(void *x) {
27899 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
27900}
27901static void *_p_wxPyEventTo_p_wxObject(void *x) {
27902 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
27903}
27904static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
27905 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
27906}
27907static void *_p_wxShowEventTo_p_wxObject(void *x) {
27908 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
27909}
27910static void *_p_wxToolTipTo_p_wxObject(void *x) {
27911 return (void *)((wxObject *) ((wxToolTip *) x));
27912}
27913static void *_p_wxMenuItemTo_p_wxObject(void *x) {
27914 return (void *)((wxObject *) ((wxMenuItem *) x));
27915}
27916static void *_p_wxIdleEventTo_p_wxObject(void *x) {
27917 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
27918}
27919static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
27920 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
27921}
27922static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
27923 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
27924}
27925static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
27926 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
27927}
27928static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
27929 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
27930}
27931static void *_p_wxSizeEventTo_p_wxObject(void *x) {
27932 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
27933}
27934static void *_p_wxMoveEventTo_p_wxObject(void *x) {
27935 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
27936}
27937static void *_p_wxActivateEventTo_p_wxObject(void *x) {
27938 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
27939}
27940static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
27941 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
27942}
27943static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
27944 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
27945}
27946static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
27947 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
27948}
27949static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
27950 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
27951}
27952static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
27953 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
27954}
27955static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
27956 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
27957}
27958static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
27959 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
27960}
27961static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
27962 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
27963}
27964static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
27965 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
27966}
27967static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
27968 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
27969}
27970static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
27971 return (void *)((wxObject *) ((wxImageHandler *) x));
27972}
27973static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
27974 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
27975}
27976static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
27977 return (void *)((wxObject *) ((wxEvtHandler *) x));
27978}
1e0c8722
RD
27979static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
27980 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
27981}
d14a1e28
RD
27982static void *_p_wxImageTo_p_wxObject(void *x) {
27983 return (void *)((wxObject *) ((wxImage *) x));
27984}
27985static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
27986 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
27987}
27988static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
27989 return (void *)((wxObject *) ((wxSystemOptions *) x));
27990}
27991static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
27992 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
27993}
27994static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
27995 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
27996}
27997static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
27998 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
27999}
28000static void *_p_wxKeyEventTo_p_wxObject(void *x) {
28001 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
28002}
28003static void *_p_wxWindowTo_p_wxObject(void *x) {
28004 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
28005}
28006static void *_p_wxMenuTo_p_wxObject(void *x) {
28007 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
28008}
28009static void *_p_wxMenuBarTo_p_wxObject(void *x) {
28010 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
28011}
28012static void *_p_wxPyProcessTo_p_wxObject(void *x) {
28013 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
28014}
28015static void *_p_wxFileSystemTo_p_wxObject(void *x) {
28016 return (void *)((wxObject *) ((wxFileSystem *) x));
28017}
28018static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
28019 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
28020}
28021static void *_p_wxMenuEventTo_p_wxObject(void *x) {
28022 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
28023}
28024static void *_p_wxPyAppTo_p_wxObject(void *x) {
28025 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
28026}
28027static void *_p_wxCloseEventTo_p_wxObject(void *x) {
28028 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
28029}
28030static void *_p_wxMouseEventTo_p_wxObject(void *x) {
28031 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
28032}
28033static void *_p_wxEraseEventTo_p_wxObject(void *x) {
28034 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
28035}
28036static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
28037 return (void *)((wxObject *) ((wxBusyInfo *) x));
28038}
28039static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
28040 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
28041}
28042static void *_p_wxCommandEventTo_p_wxObject(void *x) {
28043 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
28044}
28045static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
28046 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
28047}
28048static void *_p_wxFocusEventTo_p_wxObject(void *x) {
28049 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
28050}
28051static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
28052 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
28053}
28054static void *_p_wxProcessEventTo_p_wxObject(void *x) {
28055 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
28056}
28057static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
28058 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
28059}
28060static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
28061 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
28062}
28063static void *_p_wxValidatorTo_p_wxObject(void *x) {
28064 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
28065}
28066static void *_p_wxPyTimerTo_p_wxObject(void *x) {
28067 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
28068}
28069static void *_p_wxLogStderrTo_p_wxLog(void *x) {
28070 return (void *)((wxLog *) ((wxLogStderr *) x));
28071}
28072static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
28073 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
28074}
28075static void *_p_wxLogWindowTo_p_wxLog(void *x) {
28076 return (void *)((wxLog *) ((wxLogWindow *) x));
28077}
28078static void *_p_wxLogChainTo_p_wxLog(void *x) {
28079 return (void *)((wxLog *) ((wxLogChain *) x));
28080}
28081static void *_p_wxLogGuiTo_p_wxLog(void *x) {
28082 return (void *)((wxLog *) ((wxLogGui *) x));
28083}
28084static void *_p_wxPyLogTo_p_wxLog(void *x) {
28085 return (void *)((wxLog *) ((wxPyLog *) x));
28086}
28087static void *_p_wxControlTo_p_wxWindow(void *x) {
28088 return (void *)((wxWindow *) ((wxControl *) x));
28089}
28090static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
28091 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
28092}
28093static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
28094 return (void *)((wxWindow *) ((wxMenuBar *) x));
28095}
28096static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
28097 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
28098}
28099static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
28100 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
28101}
15afbcd0
RD
28102static 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}};
28103static 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}};
28104static 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}};
28105static 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}};
28106static 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}};
28107static 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}};
28108static 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}};
28109static 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}};
28110static 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}};
28111static 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}};
28112static 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}};
28113static 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}};
28114static 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}};
28115static 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}};
28116static 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}};
28117static 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}};
28118static 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}};
28119static 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}};
28120static 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}};
28121static 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}};
28122static 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}};
28123static 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}};
28124static 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}};
28125static 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}};
28126static 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}};
28127static 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}};
28128static 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}};
28129static 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}};
28130static 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}};
28131static 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}};
28132static 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}};
28133static 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}};
28134static 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}};
28135static 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}};
28136static 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}};
28137static 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}};
28138static 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}};
28139static 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}};
28140static 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}};
28141static 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}};
28142static 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}};
28143static 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}};
28144static 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}};
28145static 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}};
28146static 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}};
28147static 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}};
28148static 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}};
28149static 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}};
28150static 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}};
28151static 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}};
28152static 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}};
28153static 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}};
28154static 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}};
28155static 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}};
28156static 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}};
28157static 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}};
28158static 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}};
28159static 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}};
28160static 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}};
28161static 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}};
28162static 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}};
28163static 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}};
28164static 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}};
28165static 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}};
28166static 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}};
28167static 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}};
28168static 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}};
28169static 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}};
28170static 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}};
28171static 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}};
28172static 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}};
28173static 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}};
28174static 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}};
28175static 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}};
28176static 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}};
28177static 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}};
28178static 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}};
28179static 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}};
28180static 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}};
28181static 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}};
28182static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0, 0, 0, 0},{"_p_wxByte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
28183static 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}};
28184static 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}};
28185static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0, 0, 0, 0},{"_p_wxDateSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d14a1e28
RD
28186
28187static swig_type_info *swig_types_initial[] = {
28188_swigt__p_wxLogChain,
28189_swigt__p_wxMutexGuiLocker,
28190_swigt__p_wxFileHistory,
28191_swigt__p_wxLog,
28192_swigt__p_wxDateTime__TimeZone,
28193_swigt__p_wxMenu,
28194_swigt__p_wxEvent,
28195_swigt__p_wxConfigBase,
d14a1e28
RD
28196_swigt__p_wxFileType,
28197_swigt__p_wxLogGui,
28198_swigt__p_wxFont,
28199_swigt__p_wxDataFormat,
28200_swigt__p_wxTimerEvent,
28201_swigt__p_wxCaret,
28202_swigt__p_int,
28203_swigt__p_wxSize,
28204_swigt__p_wxClipboard,
28205_swigt__p_wxStopWatch,
28206_swigt__p_wxDC,
28207_swigt__p_wxClipboardLocker,
28208_swigt__p_wxIcon,
28209_swigt__p_wxLogStderr,
28210_swigt__p_wxLogTextCtrl,
28211_swigt__p_wxTextCtrl,
28212_swigt__p_wxBusyCursor,
d14a1e28
RD
28213_swigt__p_wxPyTextDataObject,
28214_swigt__p_wxBitmapDataObject,
28215_swigt__p_wxTextDataObject,
28216_swigt__p_wxDataObject,
4d5c3d91 28217_swigt__p_wxPyBitmapDataObject,
994141e6 28218_swigt__p_wxFileDataObject,
d14a1e28
RD
28219_swigt__p_wxCustomDataObject,
28220_swigt__p_wxURLDataObject,
28221_swigt__p_wxMetafileDataObject,
4d5c3d91 28222_swigt__p_wxSound,
d14a1e28
RD
28223_swigt__p_wxTimerRunner,
28224_swigt__p_wxLogWindow,
28225_swigt__p_wxTimeSpan,
28226_swigt__p_wxArrayString,
28227_swigt__p_wxWindowDisabler,
28228_swigt__p_wxToolTip,
28229_swigt__p_wxDataObjectComposite,
28230_swigt__p_wxFileConfig,
28231_swigt__p_wxSystemSettings,
28232_swigt__p_wxPyDataObjectSimple,
28233_swigt__p_wxDataObjectSimple,
28234_swigt__p_wxEvtHandler,
28235_swigt__p_wxRect,
994141e6 28236_swigt__p_char,
d14a1e28
RD
28237_swigt__p_wxSingleInstanceChecker,
28238_swigt__p_wxFileTypeInfo,
28239_swigt__p_wxFrame,
28240_swigt__p_wxTimer,
28241_swigt__p_wxMimeTypesManager,
28242_swigt__p_wxPyArtProvider,
28243_swigt__p_wxPyTipProvider,
28244_swigt__p_wxTipProvider,
28245_swigt__p_wxJoystick,
28246_swigt__p_wxSystemOptions,
28247_swigt__p_wxPoint,
28248_swigt__p_wxJoystickEvent,
28249_swigt__p_wxCursor,
28250_swigt__p_wxObject,
28251_swigt__p_wxOutputStream,
28252_swigt__p_wxDateTime,
28253_swigt__p_wxPyDropSource,
28254_swigt__p_wxWindow,
28255_swigt__p_wxString,
28256_swigt__p_wxPyProcess,
28257_swigt__p_wxBitmap,
28258_swigt__p_wxConfig,
28259_swigt__p_wxChar,
28260_swigt__p_wxBusyInfo,
28261_swigt__p_wxPyDropTarget,
28262_swigt__p_wxPyTextDropTarget,
28263_swigt__p_wxPyFileDropTarget,
28264_swigt__p_wxProcessEvent,
28265_swigt__p_wxPyLog,
28266_swigt__p_wxLogNull,
28267_swigt__p_wxColour,
4d5c3d91 28268_swigt__p_wxByte,
d14a1e28
RD
28269_swigt__p_wxConfigPathChanger,
28270_swigt__p_wxPyTimer,
28271_swigt__p_wxDateSpan,
282720
28273};
28274
28275
28276/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
28277
28278static swig_const_info swig_const_table[] = {
15afbcd0
RD
28279{ SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
28280{ SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
28281{ SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
28282{ SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
28283{ SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
d14a1e28
RD
28284{0}};
28285
28286#ifdef __cplusplus
28287}
28288#endif
28289
28290#ifdef __cplusplus
28291extern "C"
28292#endif
28293SWIGEXPORT(void) SWIG_init(void) {
28294 static PyObject *SWIG_globals = 0;
28295 static int typeinit = 0;
28296 PyObject *m, *d;
28297 int i;
28298 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
28299 m = Py_InitModule((char *) SWIG_name, SwigMethods);
28300 d = PyModule_GetDict(m);
28301
28302 if (!typeinit) {
28303 for (i = 0; swig_types_initial[i]; i++) {
28304 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
28305 }
28306 typeinit = 1;
28307 }
28308 SWIG_InstallConstants(d,swig_const_table);
28309
15afbcd0
RD
28310 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
28311 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
28312 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
28313 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
28314 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
28315 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
28316 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
28317 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
28318 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
28319 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
28320 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
28321 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
28322 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
28323 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
28324 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
28325 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
28326 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
28327 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
28328 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
28329 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
28330 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
28331 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
28332 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
28333 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
28334 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
28335 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
28336 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
28337 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
28338 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
28339 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
28340 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
28341 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
28342 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
28343 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
28344 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
28345 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
28346 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
28347 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
28348 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
28349 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
28350 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
28351 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
28352 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
28353 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
28354 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
28355 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
28356 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
28357 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
28358 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
28359 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
28360 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
28361 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
28362 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
28363 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
28364 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
28365 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
28366 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
28367 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
28368 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
28369 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
28370 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
28371 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
28372 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
28373 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
28374 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
28375 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
28376 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
28377 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
28378 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
28379 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
28380 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
28381 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
28382 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
28383 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
28384 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
28385 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
28386 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
28387 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
28388 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
28389 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
28390 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
28391 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
28392 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
28393 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
28394 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
28395 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
28396 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
28397 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
28398 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
28399 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
28400 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
b2dc1044
RD
28401 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
28402 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
28403 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
28404 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
15afbcd0
RD
28405 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
28406 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
28407 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
28408 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
d14a1e28 28409 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
15afbcd0
RD
28410 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
28411 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
28412 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
28413 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
28414 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
28415 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
28416 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
28417 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
28418 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
28419 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
28420 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
28421 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
28422 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
28423 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
28424 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
28425 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
28426 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
28427 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
28428 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
28429 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
28430 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
28431 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
28432 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
28433 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
28434 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
28435 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
28436 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
28437 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
28438 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
28439 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
28440 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
28441 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
28442 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
28443 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
28444 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
28445 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
28446 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
28447 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
28448 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
28449 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
28450 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
28451 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
28452 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
28453 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
28454 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
d14a1e28 28455 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
15afbcd0
RD
28456 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
28457 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
28458 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
28459 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
d14a1e28
RD
28460
28461 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
28462
15afbcd0
RD
28463 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
28464 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
28465 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
28466 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
28467 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
28468 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
28469 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
d14a1e28
RD
28470 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
28471 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
28472 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
28473 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
15afbcd0
RD
28474 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
28475 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
28476 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
28477 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
28478 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
28479 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
28480 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
28481 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
d14a1e28
RD
28482 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
28483 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
28484 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
28485 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
28486 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
28487 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
28488 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
28489 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
28490 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
28491 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
28492 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
28493 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
28494 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
28495 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
28496 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
28497 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
28498 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
28499 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
28500 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
28501 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
28502 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
28503 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
28504 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
28505 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
28506 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
28507 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
28508 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
28509 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
28510 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
28511 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
28512 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
28513 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
28514 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
28515 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
28516 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
28517 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
28518 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
28519 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
28520 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
28521
28522 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
28523
15afbcd0
RD
28524 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
28525 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
28526 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
28527 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
28528 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
28529 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
28530 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
28531 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
28532 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
b2dc1044
RD
28533 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
28534 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
15afbcd0
RD
28535 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
28536 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
28537 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
28538 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
28539 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
28540 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
28541 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
28542 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
28543 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
28544 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
28545 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
28546 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
28547 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
28548 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
28549 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
28550 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
28551 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
28552 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
28553 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
28554 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
28555 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
28556 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
28557 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
28558 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
28559 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
28560 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
28561 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
28562 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
28563 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
28564 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
28565 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
28566 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
28567 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
28568 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
28569 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
28570 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
28571 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
28572 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
28573 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
28574 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
28575 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
28576 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
28577 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
28578 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
28579 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
28580 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
28581 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
28582 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
28583 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
28584 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
28585 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
28586 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
28587 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
28588 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
28589 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
28590 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
28591 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
28592 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
28593 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
28594 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
28595 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
28596 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
28597 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
28598 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
28599 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
28600 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
28601 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
28602 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
28603 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
28604 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
28605 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
28606 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
28607 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
28608 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
28609 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
28610 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
28611 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
28612 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
28613 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
28614 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
28615 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
28616 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
28617 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
28618 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
28619 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
28620 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
28621 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
28622 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
28623 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
28624 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
28625 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
28626 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
28627 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
28628 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
28629 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
28630 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
28631 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
28632 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
28633 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
28634 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
28635 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
28636 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
28637 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
28638 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
28639 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
28640 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
28641 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
28642 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
28643 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
28644 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
28645 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
28646 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
28647 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
28648 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
28649 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
28650 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
28651 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
28652 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
28653 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
28654 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
28655 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
28656 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
28657 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
28658 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
28659 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
28660 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
28661 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
28662 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
28663 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
28664 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
28665 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
28666 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
28667 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
28668 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
28669 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
28670 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
28671 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
28672 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
28673 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
28674 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
28675 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
28676 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
28677 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
28678 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
28679 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
28680 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
28681 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
28682 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
28683 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
28684 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
28685 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
28686 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
28687 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
28688 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
28689 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
98e665d3 28690 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
15afbcd0
RD
28691 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
28692 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
28693 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
28694 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
28695 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
28696 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
28697 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
28698 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
28699 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
28700 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
28701 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
28702 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
28703 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
28704 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
28705 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
28706 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
28707 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
28708 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
28709 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
28710 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
d14a1e28 28711 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
15afbcd0
RD
28712 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
28713 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
28714 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
28715 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
28716 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
28717 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
28718 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
28719 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
28720 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
28721 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
28722 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
28723 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
d14a1e28
RD
28724
28725 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
28726 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
28727 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
28728 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
28729
28730 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
28731}
28732