]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/misc_wrap.cpp
Added some more docstrings, and also a few little tweaks along the way.
[wxWidgets.git] / wxPython / src / mac / misc_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
2dbef272 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
9fd4be55
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
0f774bef
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
0f774bef
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
0f774bef 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
0f774bef 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 {
0f774bef 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
0f774bef 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 *);
0f774bef
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
0f774bef 126
d14a1e28
RD
127/***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
d14a1e28
RD
137#include "Python.h"
138
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
d14a1e28
RD
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
2dbef272 174
d14a1e28
RD
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
8edf1c75 187typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 188
0f774bef
RD
189SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 197
8edf1c75
RD
198/* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201/* basic types */
202/*
203 utilities
204*/
205SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
d14a1e28
RD
219
220
221/* Contract support */
222
423f194a 223#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 224
d14a1e28
RD
225#ifdef __cplusplus
226}
227#endif
228
229
230
231/* -------- TYPES TABLE (BEGIN) -------- */
232
233#define SWIGTYPE_p_wxLogChain swig_types[0]
234#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
235#define SWIGTYPE_p_wxMetafile swig_types[2]
236#define SWIGTYPE_p_wxFileHistory swig_types[3]
237#define SWIGTYPE_p_wxLog swig_types[4]
238#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
239#define SWIGTYPE_p_wxMenu swig_types[6]
240#define SWIGTYPE_p_wxEvent swig_types[7]
241#define SWIGTYPE_p_wxConfigBase swig_types[8]
02a34c4c
RD
242#define SWIGTYPE_p_wxFileType swig_types[9]
243#define SWIGTYPE_p_wxLogGui swig_types[10]
244#define SWIGTYPE_p_wxFont swig_types[11]
245#define SWIGTYPE_p_wxDataFormat swig_types[12]
246#define SWIGTYPE_p_wxTimerEvent swig_types[13]
247#define SWIGTYPE_p_wxCaret swig_types[14]
248#define SWIGTYPE_p_int swig_types[15]
249#define SWIGTYPE_p_wxSize swig_types[16]
250#define SWIGTYPE_p_wxClipboard swig_types[17]
251#define SWIGTYPE_p_wxStopWatch swig_types[18]
252#define SWIGTYPE_p_wxDC swig_types[19]
253#define SWIGTYPE_p_wxClipboardLocker swig_types[20]
254#define SWIGTYPE_p_wxIcon swig_types[21]
255#define SWIGTYPE_p_wxLogStderr swig_types[22]
256#define SWIGTYPE_p_wxLogTextCtrl swig_types[23]
257#define SWIGTYPE_p_wxTextCtrl swig_types[24]
258#define SWIGTYPE_p_wxBusyCursor swig_types[25]
259#define SWIGTYPE_p_wxPyTextDataObject swig_types[26]
260#define SWIGTYPE_p_wxBitmapDataObject swig_types[27]
261#define SWIGTYPE_p_wxTextDataObject swig_types[28]
262#define SWIGTYPE_p_wxDataObject swig_types[29]
263#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[30]
264#define SWIGTYPE_p_wxFileDataObject swig_types[31]
265#define SWIGTYPE_p_wxCustomDataObject swig_types[32]
266#define SWIGTYPE_p_wxURLDataObject swig_types[33]
267#define SWIGTYPE_p_wxMetafileDataObject swig_types[34]
268#define SWIGTYPE_p_wxSound swig_types[35]
d14a1e28
RD
269#define SWIGTYPE_p_wxTimerRunner swig_types[36]
270#define SWIGTYPE_p_wxLogWindow swig_types[37]
271#define SWIGTYPE_p_wxTimeSpan swig_types[38]
272#define SWIGTYPE_p_wxArrayString swig_types[39]
273#define SWIGTYPE_p_wxWindowDisabler swig_types[40]
274#define SWIGTYPE_p_wxToolTip swig_types[41]
275#define SWIGTYPE_p_wxDataObjectComposite swig_types[42]
276#define SWIGTYPE_p_wxFileConfig swig_types[43]
277#define SWIGTYPE_p_wxSystemSettings swig_types[44]
278#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[45]
279#define SWIGTYPE_p_wxDataObjectSimple swig_types[46]
280#define SWIGTYPE_p_wxEvtHandler swig_types[47]
281#define SWIGTYPE_p_wxRect swig_types[48]
8edf1c75
RD
282#define SWIGTYPE_p_char swig_types[49]
283#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[50]
284#define SWIGTYPE_p_wxFileTypeInfo swig_types[51]
285#define SWIGTYPE_p_wxFrame swig_types[52]
286#define SWIGTYPE_p_wxTimer swig_types[53]
287#define SWIGTYPE_p_wxMimeTypesManager swig_types[54]
288#define SWIGTYPE_p_wxPyArtProvider swig_types[55]
289#define SWIGTYPE_p_wxPyTipProvider swig_types[56]
290#define SWIGTYPE_p_wxTipProvider swig_types[57]
291#define SWIGTYPE_p_wxJoystick swig_types[58]
292#define SWIGTYPE_p_wxSystemOptions swig_types[59]
293#define SWIGTYPE_p_wxPoint swig_types[60]
294#define SWIGTYPE_p_wxJoystickEvent swig_types[61]
295#define SWIGTYPE_p_wxCursor swig_types[62]
296#define SWIGTYPE_p_wxObject swig_types[63]
297#define SWIGTYPE_p_wxOutputStream swig_types[64]
298#define SWIGTYPE_p_wxDateTime swig_types[65]
299#define SWIGTYPE_p_wxPyDropSource swig_types[66]
300#define SWIGTYPE_p_wxWindow swig_types[67]
301#define SWIGTYPE_p_wxString swig_types[68]
302#define SWIGTYPE_p_wxPyProcess swig_types[69]
303#define SWIGTYPE_p_wxBitmap swig_types[70]
304#define SWIGTYPE_p_wxConfig swig_types[71]
305#define SWIGTYPE_p_wxChar swig_types[72]
306#define SWIGTYPE_p_wxBusyInfo swig_types[73]
307#define SWIGTYPE_p_wxPyDropTarget swig_types[74]
308#define SWIGTYPE_p_wxPyTextDropTarget swig_types[75]
309#define SWIGTYPE_p_wxPyFileDropTarget swig_types[76]
310#define SWIGTYPE_p_wxProcessEvent swig_types[77]
311#define SWIGTYPE_p_wxPyLog swig_types[78]
312#define SWIGTYPE_p_wxLogNull swig_types[79]
313#define SWIGTYPE_p_wxColour swig_types[80]
02a34c4c
RD
314#define SWIGTYPE_p_wxByte swig_types[81]
315#define SWIGTYPE_p_wxConfigPathChanger swig_types[82]
316#define SWIGTYPE_p_wxPyTimer swig_types[83]
317#define SWIGTYPE_p_wxDateSpan swig_types[84]
318static swig_type_info *swig_types[86];
d14a1e28
RD
319
320/* -------- TYPES TABLE (END) -------- */
321
322
323/*-----------------------------------------------
324 @(target):= _misc.so
325 ------------------------------------------------*/
326#define SWIG_init init_misc
327
328#define SWIG_name "_misc"
329
8edf1c75
RD
330#include <limits.h>
331#include <float.h>
332#include <string.h>
333
334#ifndef SWIGSTATIC
335#ifdef __cplusplus
336#define SWIGSTATIC(a) static inline a
337#else
338#define SWIGSTATIC(a) static a
339#endif
340#endif
341
342#ifndef numeric_cast
343#ifdef __cplusplus
344#ifdef HAVE_NUMERIC_CAST
345#define numeric_cast(type,a) numeric_cast<type>(a)
346#else
347#define numeric_cast(type,a) static_cast<type>(a)
348#endif
349#else
350#define numeric_cast(type,a) (type)(a)
351#endif
352#endif
353
354
355
356#define SWIG_PyObj_FromSignedChar PyInt_FromLong
357#define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
358#define SWIG_PyObj_FromShort PyInt_FromLong
359#define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
360#define SWIG_PyObj_FromInt PyInt_FromLong
361#define SWIG_PyObj_FromLong PyInt_FromLong
362#define SWIG_PyObj_FromFloat PyFloat_FromDouble
363#define SWIG_PyObj_FromDouble PyFloat_FromDouble
364#define SWIG_PyObj_FromFloat PyFloat_FromDouble
365#define SWIG_PyObj_FromDouble PyFloat_FromDouble
366
367
d14a1e28
RD
368#include "wx/wxPython/wxPython.h"
369#include "wx/wxPython/pyclasses.h"
370#include "wx/wxPython/pyistream.h"
371
d14a1e28 372
cbd72d4f 373 static const wxString wxPyEmptyString(wxEmptyString);
d14a1e28
RD
374
375
8edf1c75
RD
376
377SWIGSTATIC(int)
378SWIG_PyObj_AsInt(PyObject *obj)
379{
380 return numeric_cast(int,
381 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
382}
383
cbd72d4f
RD
384 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
385 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
386 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
d14a1e28 387
8edf1c75
RD
388SWIGSTATIC(long)
389SWIG_PyObj_AsLong(PyObject * obj)
390{
391 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
392}
393
394
395SWIGSTATIC(bool)
396SWIG_PyObj_AsBool(PyObject *obj)
397{
398 return PyObject_IsTrue(obj) ? true : false;
399}
400
401
d14a1e28
RD
402static PyObject* t_output_helper(PyObject* target, PyObject* o) {
403 PyObject* o2;
404 PyObject* o3;
405
406 if (!target) {
407 target = o;
408 } else if (target == Py_None) {
409 Py_DECREF(Py_None);
410 target = o;
411 } else {
412 if (!PyTuple_Check(target)) {
413 o2 = target;
414 target = PyTuple_New(1);
415 PyTuple_SetItem(target, 0, o2);
416 }
417 o3 = PyTuple_New(1);
418 PyTuple_SetItem(o3, 0, o);
419
420 o2 = target;
421 target = PySequence_Concat(o2, o3);
422 Py_DECREF(o2);
423 Py_DECREF(o3);
424 }
425 return target;
426}
427
428
8edf1c75
RD
429SWIGSTATIC(PyObject* )
430SWIG_PyObj_FromUnsignedLong(unsigned long value)
431{
432 return (value > (unsigned long)(LONG_MAX)) ?
433 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
434}
435
436
d14a1e28
RD
437 bool wxThread_IsMain() {
438#ifdef WXP_WITH_THREAD
439 return wxThread::IsMain();
440#else
423f194a 441 return True;
d14a1e28
RD
442#endif
443 }
444
445
446 int wxCaret_GetBlinkTime() {
447 return wxCaret::GetBlinkTime();
448 }
449
450 void wxCaret_SetBlinkTime(int milliseconds) {
451 wxCaret::SetBlinkTime(milliseconds);
452 }
453
454
455#include <wx/snglinst.h>
456
457
458#ifdef __WXMSW__
459#include <wx/msw/private.h>
460#include <wx/dynload.h>
461#endif
462
463
464
465void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
466{
467#ifdef __WXMSW__
468
469 switch (method)
470 {
471 case 1:
472 // This one only partially works. Appears to be an undocumented
473 // "standard" convention that not all widgets adhear to. For
474 // example, for some widgets backgrounds or non-client areas may
475 // not be painted.
476 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
477 break;
478
479 case 2:
480 // This one works much better, except for on XP. On Win2k nearly
481 // all widgets and their children are captured correctly[**]. On
482 // XP with Themes activated most native widgets draw only
483 // partially, if at all. Without themes it works just like on
484 // Win2k.
485 //
486 // ** For example the radio buttons in a wxRadioBox are not its
487 // children by default, but you can capture it via the panel
488 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
489 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
490 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
491 PRF_ERASEBKGND | PRF_OWNED );
492 break;
493
494 case 3:
495 // This one is only defined in the latest SDK and is only
496 // available on XP. MSDN says it is similar to sending WM_PRINT
497 // so I expect that it will work similar to the above. Since it
498 // is avaialble only on XP, it can't be compiled like this and
499 // will have to be loaded dynamically.
500 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
501
502 // fall through
503
504 case 4:
505 // Use PrintWindow if available, or fallback to WM_PRINT
506 // otherwise. Unfortunately using PrintWindow is even worse than
507 // WM_PRINT. For most native widgets nothing is drawn to the dc
508 // at all, with or without Themes.
509 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
423f194a 510 static bool s_triedToLoad = False;
d14a1e28
RD
511 static PrintWindow_t pfnPrintWindow = NULL;
512 if ( !s_triedToLoad )
513 {
514
423f194a 515 s_triedToLoad = True;
d14a1e28
RD
516 wxDynamicLibrary dllUser32(_T("user32.dll"));
517 if ( dllUser32.IsLoaded() )
518 {
519 wxLogNull nolog; // Don't report errors here
520 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
521 }
522 }
523 if (pfnPrintWindow)
524 {
525 printf("Using PrintWindow\n");
526 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
527 }
528 else
529 {
530 printf("Using WM_PRINT\n");
531 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
532 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
533 }
534 }
535#endif
536}
537
538
539
540#include <wx/tipdlg.h>
541
542
543class wxPyTipProvider : public wxTipProvider {
544public:
545 wxPyTipProvider(size_t currentTip)
546 : wxTipProvider(currentTip) {}
547
548 DEC_PYCALLBACK_STRING__pure(GetTip);
549 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
550 PYPRIVATE;
551};
552
553IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
554IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
555
556
557IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
558
8edf1c75
RD
559
560SWIGSTATIC(unsigned int)
561SWIG_PyObj_AsUnsignedInt(PyObject *obj)
562{
563 return numeric_cast(unsigned int,
564 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX));
565}
566
d14a1e28
RD
567wxString Log_TimeStamp(){
568 wxString msg;
569 wxLog::TimeStamp(&msg);
570 return msg;
571 }
572void wxLog_Destroy(wxLog *self){ delete self; }
573
574// A wxLog class that can be derived from in wxPython
575class wxPyLog : public wxLog {
576public:
577 wxPyLog() : wxLog() {}
578
579 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
580 bool found;
581 wxPyBeginBlockThreads();
582 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
583 PyObject* s = wx2PyString(szString);
584 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
585 Py_DECREF(s);
586 }
587 wxPyEndBlockThreads();
588 if (! found)
589 wxLog::DoLog(level, szString, t);
590 }
591
592 virtual void DoLogString(const wxChar *szString, time_t t) {
593 bool found;
594 wxPyBeginBlockThreads();
595 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
596 PyObject* s = wx2PyString(szString);
597 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
598 Py_DECREF(s);
599 }
600 wxPyEndBlockThreads();
601 if (! found)
602 wxLog::DoLogString(szString, t);
603 }
604
605 PYPRIVATE;
606};
607
608
609
610
611IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
612
613
614#include <wx/joystick.h>
615
616
617#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
618// A C++ stub class for wxJoystick for platforms that don't have it.
619class wxJoystick : public wxObject {
620public:
621 wxJoystick(int joystick = wxJOYSTICK1) {
622 wxPyBeginBlockThreads();
cbd72d4f
RD
623 PyErr_SetString(PyExc_NotImplementedError,
624 "wxJoystick is not available on this platform.");
d14a1e28
RD
625 wxPyEndBlockThreads();
626 }
627 wxPoint GetPosition() { return wxPoint(-1,-1); }
628 int GetZPosition() { return -1; }
629 int GetButtonState() { return -1; }
630 int GetPOVPosition() { return -1; }
631 int GetPOVCTSPosition() { return -1; }
632 int GetRudderPosition() { return -1; }
633 int GetUPosition() { return -1; }
634 int GetVPosition() { return -1; }
635 int GetMovementThreshold() { return -1; }
636 void SetMovementThreshold(int threshold) {}
637
423f194a 638 bool IsOk(void) { return False; }
d14a1e28
RD
639 int GetNumberJoysticks() { return -1; }
640 int GetManufacturerId() { return -1; }
641 int GetProductId() { return -1; }
642 wxString GetProductName() { return ""; }
643 int GetXMin() { return -1; }
644 int GetYMin() { return -1; }
645 int GetZMin() { return -1; }
646 int GetXMax() { return -1; }
647 int GetYMax() { return -1; }
648 int GetZMax() { return -1; }
649 int GetNumberButtons() { return -1; }
650 int GetNumberAxes() { return -1; }
651 int GetMaxButtons() { return -1; }
652 int GetMaxAxes() { return -1; }
653 int GetPollingMin() { return -1; }
654 int GetPollingMax() { return -1; }
655 int GetRudderMin() { return -1; }
656 int GetRudderMax() { return -1; }
657 int GetUMin() { return -1; }
658 int GetUMax() { return -1; }
659 int GetVMin() { return -1; }
660 int GetVMax() { return -1; }
661
423f194a
RD
662 bool HasRudder() { return False; }
663 bool HasZ() { return False; }
664 bool HasU() { return False; }
665 bool HasV() { return False; }
666 bool HasPOV() { return False; }
667 bool HasPOV4Dir() { return False; }
668 bool HasPOVCTS() { return False; }
d14a1e28 669
423f194a
RD
670 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
671 bool ReleaseCapture() { return False; }
d14a1e28
RD
672};
673#endif
674
675
02a34c4c 676#include <wx/sound.h>
d14a1e28
RD
677
678
dff1fa9b 679#if !wxUSE_SOUND
d14a1e28 680// A C++ stub class for wxWave for platforms that don't have it.
02a34c4c 681class wxSound : public wxObject
d14a1e28
RD
682{
683public:
02a34c4c 684 wxSound() {
d14a1e28 685 wxPyBeginBlockThreads();
cbd72d4f 686 PyErr_SetString(PyExc_NotImplementedError,
02a34c4c 687 "wxSound is not available on this platform.");
d14a1e28
RD
688 wxPyEndBlockThreads();
689 }
02a34c4c 690 wxSound(const wxString&, bool) {
d14a1e28 691 wxPyBeginBlockThreads();
cbd72d4f 692 PyErr_SetString(PyExc_NotImplementedError,
02a34c4c 693 "wxSound is not available on this platform.");
d14a1e28
RD
694 wxPyEndBlockThreads();
695 }
02a34c4c
RD
696 wxSound(int, const wxByte*) {
697 wxPyBeginBlockThreads();
698 PyErr_SetString(PyExc_NotImplementedError,
699 "wxSound is not available on this platform.");
700 wxPyEndBlockThreads();
701 }
702
703 ~wxSound() {};
d14a1e28 704
02a34c4c
RD
705 bool Create(const wxString&, bool) { return false; }
706 bool Create(int, const wxByte*) { return false; };
707 bool IsOk() { return false; };
708 bool Play(unsigned) const { return false; }
709 static bool Play(const wxString&, unsigned) { return false; }
710 static void Stop() {}
d14a1e28
RD
711};
712
713#endif
714
02a34c4c
RD
715bool wxSound_Create__SWIG_1(wxSound *self,int size,wxByte const *data){
716 wxPyBeginBlockThreads();
717 PyErr_SetString(PyExc_NotImplementedError,
718 "Create from data is not available on this platform.");
719 wxPyEndBlockThreads();
d14a1e28 720 }
02a34c4c 721void Sound_Stop(){}
d14a1e28
RD
722
723#include <wx/mimetype.h>
724
725PyObject *wxFileType_GetMimeType(wxFileType *self){
726 wxString str;
727 if (self->GetMimeType(&str))
728 return wx2PyString(str);
729 else
730 RETURN_NONE();
731 }
732PyObject *wxFileType_GetMimeTypes(wxFileType *self){
733 wxArrayString arr;
734 if (self->GetMimeTypes(arr))
735 return wxArrayString2PyList_helper(arr);
736 else
737 RETURN_NONE();
738 }
739PyObject *wxFileType_GetExtensions(wxFileType *self){
740 wxArrayString arr;
741 if (self->GetExtensions(arr))
742 return wxArrayString2PyList_helper(arr);
743 else
744 RETURN_NONE();
745 }
746wxIcon *wxFileType_GetIcon(wxFileType *self){
747 wxIconLocation loc;
748 if (self->GetIcon(&loc))
749 return new wxIcon(loc);
750 else
751 return NULL;
752 }
753PyObject *wxFileType_GetIconInfo(wxFileType *self){
754 wxIconLocation loc;
755 if (self->GetIcon(&loc)) {
756 wxString iconFile = loc.GetFileName();
757 int iconIndex = -1;
758
759
760
761 // Make a tuple and put the values in it
762 wxPyBeginBlockThreads();
763 PyObject* tuple = PyTuple_New(3);
764 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
423f194a 765 wxT("wxIcon"), True));
d14a1e28
RD
766 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
767 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
768 wxPyEndBlockThreads();
769 return tuple;
770 }
771 else
772 RETURN_NONE();
773 }
774PyObject *wxFileType_GetDescription(wxFileType *self){
775 wxString str;
776 if (self->GetDescription(&str))
777 return wx2PyString(str);
778 else
779 RETURN_NONE();
780 }
781PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
782 wxString str;
783 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
784 return wx2PyString(str);
785 else
786 RETURN_NONE();
787 }
788PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
789 wxString str;
790 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
791 return wx2PyString(str);
792 else
793 RETURN_NONE();
794 }
795PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
796 wxArrayString verbs;
797 wxArrayString commands;
798 if (self->GetAllCommands(&verbs, &commands,
799 wxFileType::MessageParameters(filename, mimetype))) {
800 wxPyBeginBlockThreads();
801 PyObject* tuple = PyTuple_New(2);
802 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
803 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
804 wxPyEndBlockThreads();
805 return tuple;
806 }
807 else
808 RETURN_NONE();
809 }
810wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
811 return wxFileType::ExpandCommand(command,
812 wxFileType::MessageParameters(filename, mimetype));
813 }
814PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
815 wxArrayString arr;
816 self->EnumAllFileTypes(arr);
817 return wxArrayString2PyList_helper(arr);
818 }
819
820#include <wx/artprov.h>
821
822 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
823 static const wxString wxPyART_MENU(wxART_MENU);
824 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
825 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
826 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
827 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
828 static const wxString wxPyART_OTHER(wxART_OTHER);
829 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
830 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
831 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
832 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
833 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
834 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
835 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
836 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
837 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
838 static const wxString wxPyART_GO_UP(wxART_GO_UP);
839 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
840 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
841 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
842 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
843 static const wxString wxPyART_PRINT(wxART_PRINT);
844 static const wxString wxPyART_HELP(wxART_HELP);
845 static const wxString wxPyART_TIP(wxART_TIP);
846 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
847 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
848 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
849 static const wxString wxPyART_FOLDER(wxART_FOLDER);
850 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
851 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
852 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
853 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
854 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
855 static const wxString wxPyART_ERROR(wxART_ERROR);
856 static const wxString wxPyART_QUESTION(wxART_QUESTION);
857 static const wxString wxPyART_WARNING(wxART_WARNING);
858 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
859 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
860 // Python aware wxArtProvider
861class wxPyArtProvider : public wxArtProvider {
862public:
863
864 virtual wxBitmap CreateBitmap(const wxArtID& id,
865 const wxArtClient& client,
866 const wxSize& size) {
867 wxBitmap rval = wxNullBitmap;
868 wxPyBeginBlockThreads();
869 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
870 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
871 PyObject* ro;
872 wxBitmap* ptr;
873 PyObject* s1, *s2;
874 s1 = wx2PyString(id);
875 s2 = wx2PyString(client);
876 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
877 Py_DECREF(so);
878 Py_DECREF(s1);
879 Py_DECREF(s2);
880 if (ro) {
881 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
882 rval = *ptr;
883 Py_DECREF(ro);
884 }
885 }
886 wxPyEndBlockThreads();
887 return rval;
888 }
889
890 PYPRIVATE;
891};
892
41f1cec7 893void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
d14a1e28
RD
894
895
896
897 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
898 PyObject* ret = PyTuple_New(3);
899 if (ret) {
900 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
901 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
902 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
903 }
904 return ret;
905 }
906
907PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
908 bool cont;
909 long index = 0;
910 wxString value;
911
912 cont = self->GetFirstGroup(value, index);
913 return __EnumerationHelper(cont, value, index);
914 }
915PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
916 bool cont;
917 wxString value;
918
919 cont = self->GetNextGroup(value, index);
920 return __EnumerationHelper(cont, value, index);
921 }
922PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
923 bool cont;
924 long index = 0;
925 wxString value;
926
927 cont = self->GetFirstEntry(value, index);
928 return __EnumerationHelper(cont, value, index);
929 }
930PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
931 bool cont;
932 wxString value;
933
934 cont = self->GetNextEntry(value, index);
935 return __EnumerationHelper(cont, value, index);
936 }
937long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
938 long rv;
939 self->Read(key, &rv, defaultVal);
940 return rv;
941 }
8edf1c75
RD
942
943SWIGSTATIC(double)
944SWIG_PyObj_AsDouble(PyObject *obj)
945{
946 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
947#if HAVE_LONG_LONG
948 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
949#else
950 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
951#endif
952 if (PyErr_Occurred()) {
953 PyErr_Clear();
954 PyErr_SetString(PyExc_TypeError, "a double is expected");
955 }
956}
957
d14a1e28
RD
958double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
959 double rv;
960 self->Read(key, &rv, defaultVal);
961 return rv;
962 }
963bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
964 bool rv;
965 self->Read(key, &rv, defaultVal);
966 return rv;
967 }
968
969#include <wx/datetime.h>
970
d14a1e28 971
32958cea
RD
972 static const wxString wxPyDateFormatStr(wxT("%c"));
973 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
d14a1e28
RD
974
975#define LOCAL_TZ wxDateTime::Local
976
8edf1c75
RD
977
978#define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong
979
d14a1e28
RD
980wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
981wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
982wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
983wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
984wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
985bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; }
986bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; }
987bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; }
988bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; }
989bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; }
990bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; }
991int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
992 const wxChar* rv;
993 const wxChar* _date = date;
994 rv = self->ParseRfc822Date(_date);
995 if (rv == NULL) return -1;
996 return rv - _date;
997 }
998int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
999 const wxChar* rv;
1000 const wxChar* _date = date;
1001 rv = self->ParseFormat(_date, format, dateDef);
1002 if (rv == NULL) return -1;
1003 return rv - _date;
1004 }
1005int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1006 const wxChar* rv;
1007 const wxChar* _datetime = datetime;
1008 rv = self->ParseDateTime(_datetime);
1009 if (rv == NULL) return -1;
1010 return rv - _datetime;
1011 }
1012int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1013 const wxChar* rv;
1014 const wxChar* _date = date;
1015 rv = self->ParseDate(_date);
1016 if (rv == NULL) return -1;
1017 return rv - _date;
1018 }
1019int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1020 const wxChar* rv;
1021 const wxChar* _time = time;
1022 rv = self->ParseTime(_time);
1023 if (rv == NULL) return -1;
1024 return rv - _time;
1025 }
1026wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1027wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1028wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1029wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1030bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; }
1031bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; }
1032bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; }
1033bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; }
1034bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; }
1035bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; }
1036wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1037wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1038wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1039wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1040bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; }
1041bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; }
1042
1043#include <wx/dataobj.h>
1044
1045 // Create a new class for wxPython to use
1046class wxPyDataObjectSimple : public wxDataObjectSimple {
1047public:
1048 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1049 : wxDataObjectSimple(format) {}
1050
1051 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1052 bool GetDataHere(void *buf) const;
1053 bool SetData(size_t len, const void *buf) const;
1054 PYPRIVATE;
1055};
1056
1057IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1058
1059bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1060 // We need to get the data for this object and write it to buf. I think
1061 // the best way to do this for wxPython is to have the Python method
1062 // return either a string or None and then act appropriately with the
1063 // C++ version.
1064
423f194a 1065 bool rval = False;
d14a1e28
RD
1066 wxPyBeginBlockThreads();
1067 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1068 PyObject* ro;
1069 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1070 if (ro) {
1071 rval = (ro != Py_None && PyString_Check(ro));
1072 if (rval)
1073 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1074 Py_DECREF(ro);
1075 }
1076 }
1077 wxPyEndBlockThreads();
1078 return rval;
1079}
1080
1081bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1082 // For this one we simply need to make a string from buf and len
1083 // and send it to the Python method.
423f194a 1084 bool rval = False;
d14a1e28
RD
1085 wxPyBeginBlockThreads();
1086 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1087 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1088 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1089 Py_DECREF(data);
1090 }
1091 wxPyEndBlockThreads();
1092 return rval;
1093}
1094
1095 // Create a new class for wxPython to use
1096class wxPyTextDataObject : public wxTextDataObject {
1097public:
1098 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1099 : wxTextDataObject(text) {}
1100
1101 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1102 DEC_PYCALLBACK_STRING__const(GetText);
1103 DEC_PYCALLBACK__STRING(SetText);
1104 PYPRIVATE;
1105};
1106
1107IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1108IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1109IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1110
1111
1112 // Create a new class for wxPython to use
1113class wxPyBitmapDataObject : public wxBitmapDataObject {
1114public:
1115 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1116 : wxBitmapDataObject(bitmap) {}
1117
1118 wxBitmap GetBitmap() const;
1119 void SetBitmap(const wxBitmap& bitmap);
1120 PYPRIVATE;
1121};
1122
1123wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1124 wxBitmap* rval = &wxNullBitmap;
1125 wxPyBeginBlockThreads();
1126 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1127 PyObject* ro;
1128 wxBitmap* ptr;
1129 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1130 if (ro) {
1131 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1132 rval = ptr;
1133 Py_DECREF(ro);
1134 }
1135 }
1136 wxPyEndBlockThreads();
1137 return *rval;
1138}
1139
1140void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1141 wxPyBeginBlockThreads();
1142 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
423f194a 1143 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
d14a1e28
RD
1144 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1145 Py_DECREF(bo);
1146 }
1147 wxPyEndBlockThreads();
1148}
1149
1150void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1151 if (PyString_Check(data)) {
1152 // for Python we just call SetData here since we always need it to make a copy.
1153 self->SetData(PyString_Size(data), PyString_AsString(data));
1154 }
1155 else {
1156 // raise a TypeError if not a string
1157 PyErr_SetString(PyExc_TypeError, "String expected.");
1158 }
1159 }
1160bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1161 if (PyString_Check(data)) {
1162 return self->SetData(PyString_Size(data), PyString_AsString(data));
1163 }
1164 else {
1165 // raise a TypeError if not a string
1166 PyErr_SetString(PyExc_TypeError, "String expected.");
423f194a 1167 return False;
d14a1e28
RD
1168 }
1169 }
1170PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1171 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1172 }
1173
1174#include <wx/metafile.h>
1175
1176
d14a1e28
RD
1177IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1178
1179
d14a1e28
RD
1180IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1181IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1182IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1183IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1184IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1185
1186
d14a1e28
RD
1187class wxPyTextDropTarget : public wxTextDropTarget {
1188public:
1189 wxPyTextDropTarget() {}
1190
1191 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1192
1193 DEC_PYCALLBACK__(OnLeave);
1194 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1195 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1196 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1197 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1198
1199 PYPRIVATE;
1200};
1201
1202IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1203IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1204IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1205IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1206IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1207IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1208
1209
1210
1211class wxPyFileDropTarget : public wxFileDropTarget {
1212public:
1213 wxPyFileDropTarget() {}
1214
1215 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1216
1217 DEC_PYCALLBACK__(OnLeave);
1218 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1219 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1220 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1221 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1222
1223 PYPRIVATE;
1224};
1225
1226bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1227 const wxArrayString& filenames) {
423f194a 1228 bool rval = False;
d14a1e28
RD
1229 wxPyBeginBlockThreads();
1230 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1231 PyObject* list = wxArrayString2PyList_helper(filenames);
1232 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1233 Py_DECREF(list);
1234 }
1235 wxPyEndBlockThreads();
1236 return rval;
1237}
1238
1239
1240
1241IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1242IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1243IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1244IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1245IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1246
1247
1248
1249
1250bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1251#ifdef __cplusplus
1252extern "C" {
1253#endif
1254static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1255 PyObject *resultobj;
1256 int arg1 ;
1257 wxColour result;
8edf1c75 1258 PyObject * obj0 = 0 ;
d14a1e28
RD
1259 char *kwnames[] = {
1260 (char *) "index", NULL
1261 };
1262
8edf1c75
RD
1263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1264 {
1265 arg1 = (wxSystemColour) SWIG_PyObj_AsInt(obj0);
1266 if (PyErr_Occurred()) SWIG_fail;
1267 }
d14a1e28
RD
1268 {
1269 PyThreadState* __tstate = wxPyBeginAllowThreads();
1270 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1271
1272 wxPyEndAllowThreads(__tstate);
1273 if (PyErr_Occurred()) SWIG_fail;
1274 }
1275 {
1276 wxColour * resultptr;
1277 resultptr = new wxColour((wxColour &) result);
1278 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1279 }
1280 return resultobj;
1281 fail:
1282 return NULL;
1283}
1284
1285
1286static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1287 PyObject *resultobj;
1288 int arg1 ;
1289 wxFont result;
8edf1c75 1290 PyObject * obj0 = 0 ;
d14a1e28
RD
1291 char *kwnames[] = {
1292 (char *) "index", NULL
1293 };
1294
8edf1c75
RD
1295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1296 {
1297 arg1 = (wxSystemFont) SWIG_PyObj_AsInt(obj0);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
d14a1e28
RD
1300 {
1301 PyThreadState* __tstate = wxPyBeginAllowThreads();
1302 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1303
1304 wxPyEndAllowThreads(__tstate);
1305 if (PyErr_Occurred()) SWIG_fail;
1306 }
1307 {
1308 wxFont * resultptr;
1309 resultptr = new wxFont((wxFont &) result);
1310 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
1311 }
1312 return resultobj;
1313 fail:
1314 return NULL;
1315}
1316
1317
1318static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1319 PyObject *resultobj;
1320 int arg1 ;
1321 int result;
8edf1c75 1322 PyObject * obj0 = 0 ;
d14a1e28
RD
1323 char *kwnames[] = {
1324 (char *) "index", NULL
1325 };
1326
8edf1c75
RD
1327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1328 {
1329 arg1 = (wxSystemMetric) SWIG_PyObj_AsInt(obj0);
1330 if (PyErr_Occurred()) SWIG_fail;
1331 }
d14a1e28
RD
1332 {
1333 PyThreadState* __tstate = wxPyBeginAllowThreads();
1334 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1335
1336 wxPyEndAllowThreads(__tstate);
1337 if (PyErr_Occurred()) SWIG_fail;
1338 }
8edf1c75 1339 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
1340 return resultobj;
1341 fail:
1342 return NULL;
1343}
1344
1345
1346static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1347 PyObject *resultobj;
1348 int arg1 ;
1349 bool result;
8edf1c75 1350 PyObject * obj0 = 0 ;
d14a1e28
RD
1351 char *kwnames[] = {
1352 (char *) "index", NULL
1353 };
1354
8edf1c75
RD
1355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1356 {
1357 arg1 = (wxSystemFeature) SWIG_PyObj_AsInt(obj0);
1358 if (PyErr_Occurred()) SWIG_fail;
1359 }
d14a1e28
RD
1360 {
1361 PyThreadState* __tstate = wxPyBeginAllowThreads();
1362 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1363
1364 wxPyEndAllowThreads(__tstate);
1365 if (PyErr_Occurred()) SWIG_fail;
1366 }
02a34c4c 1367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1368 return resultobj;
1369 fail:
1370 return NULL;
1371}
1372
1373
1374static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1375 PyObject *resultobj;
1376 int result;
1377 char *kwnames[] = {
1378 NULL
1379 };
1380
1381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1382 {
1383 PyThreadState* __tstate = wxPyBeginAllowThreads();
1384 result = (int)wxSystemSettings::GetScreenType();
1385
1386 wxPyEndAllowThreads(__tstate);
1387 if (PyErr_Occurred()) SWIG_fail;
1388 }
8edf1c75 1389 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
1390 return resultobj;
1391 fail:
1392 return NULL;
1393}
1394
1395
1396static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1397 PyObject *resultobj;
1398 int arg1 ;
8edf1c75 1399 PyObject * obj0 = 0 ;
d14a1e28
RD
1400 char *kwnames[] = {
1401 (char *) "screen", NULL
1402 };
1403
8edf1c75
RD
1404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1405 {
1406 arg1 = (wxSystemScreenType) SWIG_PyObj_AsInt(obj0);
1407 if (PyErr_Occurred()) SWIG_fail;
1408 }
d14a1e28
RD
1409 {
1410 PyThreadState* __tstate = wxPyBeginAllowThreads();
1411 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1412
1413 wxPyEndAllowThreads(__tstate);
1414 if (PyErr_Occurred()) SWIG_fail;
1415 }
1416 Py_INCREF(Py_None); resultobj = Py_None;
1417 return resultobj;
1418 fail:
1419 return NULL;
1420}
1421
1422
1423static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1424 PyObject *obj;
1425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1426 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1427 Py_INCREF(obj);
1428 return Py_BuildValue((char *)"");
1429}
1430static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1431 PyObject *resultobj;
1432 wxSystemOptions *result;
1433 char *kwnames[] = {
1434 NULL
1435 };
1436
1437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1438 {
1439 PyThreadState* __tstate = wxPyBeginAllowThreads();
1440 result = (wxSystemOptions *)new wxSystemOptions();
1441
1442 wxPyEndAllowThreads(__tstate);
1443 if (PyErr_Occurred()) SWIG_fail;
1444 }
1445 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1);
1446 return resultobj;
1447 fail:
1448 return NULL;
1449}
1450
1451
1452static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1453 PyObject *resultobj;
1454 wxString *arg1 = 0 ;
1455 wxString *arg2 = 0 ;
423f194a
RD
1456 bool temp1 = False ;
1457 bool temp2 = False ;
d14a1e28
RD
1458 PyObject * obj0 = 0 ;
1459 PyObject * obj1 = 0 ;
1460 char *kwnames[] = {
1461 (char *) "name",(char *) "value", NULL
1462 };
1463
1464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1465 {
1466 arg1 = wxString_in_helper(obj0);
1467 if (arg1 == NULL) SWIG_fail;
423f194a 1468 temp1 = True;
d14a1e28
RD
1469 }
1470 {
1471 arg2 = wxString_in_helper(obj1);
1472 if (arg2 == NULL) SWIG_fail;
423f194a 1473 temp2 = True;
d14a1e28
RD
1474 }
1475 {
1476 PyThreadState* __tstate = wxPyBeginAllowThreads();
1477 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1478
1479 wxPyEndAllowThreads(__tstate);
1480 if (PyErr_Occurred()) SWIG_fail;
1481 }
1482 Py_INCREF(Py_None); resultobj = Py_None;
1483 {
1484 if (temp1)
1485 delete arg1;
1486 }
1487 {
1488 if (temp2)
1489 delete arg2;
1490 }
1491 return resultobj;
1492 fail:
1493 {
1494 if (temp1)
1495 delete arg1;
1496 }
1497 {
1498 if (temp2)
1499 delete arg2;
1500 }
1501 return NULL;
1502}
1503
1504
1505static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1506 PyObject *resultobj;
1507 wxString *arg1 = 0 ;
1508 int arg2 ;
423f194a 1509 bool temp1 = False ;
d14a1e28 1510 PyObject * obj0 = 0 ;
8edf1c75 1511 PyObject * obj1 = 0 ;
d14a1e28
RD
1512 char *kwnames[] = {
1513 (char *) "name",(char *) "value", NULL
1514 };
1515
8edf1c75 1516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
1517 {
1518 arg1 = wxString_in_helper(obj0);
1519 if (arg1 == NULL) SWIG_fail;
423f194a 1520 temp1 = True;
d14a1e28 1521 }
8edf1c75
RD
1522 {
1523 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1524 if (PyErr_Occurred()) SWIG_fail;
1525 }
d14a1e28
RD
1526 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) SWIG_fail;
1532 }
1533 Py_INCREF(Py_None); resultobj = Py_None;
1534 {
1535 if (temp1)
1536 delete arg1;
1537 }
1538 return resultobj;
1539 fail:
1540 {
1541 if (temp1)
1542 delete arg1;
1543 }
1544 return NULL;
1545}
1546
1547
1548static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1549 PyObject *resultobj;
1550 wxString *arg1 = 0 ;
1551 wxString result;
423f194a 1552 bool temp1 = False ;
d14a1e28
RD
1553 PyObject * obj0 = 0 ;
1554 char *kwnames[] = {
1555 (char *) "name", NULL
1556 };
1557
1558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1559 {
1560 arg1 = wxString_in_helper(obj0);
1561 if (arg1 == NULL) SWIG_fail;
423f194a 1562 temp1 = True;
d14a1e28
RD
1563 }
1564 {
1565 PyThreadState* __tstate = wxPyBeginAllowThreads();
1566 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1567
1568 wxPyEndAllowThreads(__tstate);
1569 if (PyErr_Occurred()) SWIG_fail;
1570 }
1571 {
1572#if wxUSE_UNICODE
1573 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1574#else
1575 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1576#endif
1577 }
1578 {
1579 if (temp1)
1580 delete arg1;
1581 }
1582 return resultobj;
1583 fail:
1584 {
1585 if (temp1)
1586 delete arg1;
1587 }
1588 return NULL;
1589}
1590
1591
1592static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1593 PyObject *resultobj;
1594 wxString *arg1 = 0 ;
1595 int result;
423f194a 1596 bool temp1 = False ;
d14a1e28
RD
1597 PyObject * obj0 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "name", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1603 {
1604 arg1 = wxString_in_helper(obj0);
1605 if (arg1 == NULL) SWIG_fail;
423f194a 1606 temp1 = True;
d14a1e28
RD
1607 }
1608 {
1609 PyThreadState* __tstate = wxPyBeginAllowThreads();
1610 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1611
1612 wxPyEndAllowThreads(__tstate);
1613 if (PyErr_Occurred()) SWIG_fail;
1614 }
8edf1c75 1615 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
1616 {
1617 if (temp1)
1618 delete arg1;
1619 }
1620 return resultobj;
1621 fail:
1622 {
1623 if (temp1)
1624 delete arg1;
1625 }
1626 return NULL;
1627}
1628
1629
1630static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1631 PyObject *resultobj;
1632 wxString *arg1 = 0 ;
1633 bool result;
423f194a 1634 bool temp1 = False ;
d14a1e28
RD
1635 PyObject * obj0 = 0 ;
1636 char *kwnames[] = {
1637 (char *) "name", NULL
1638 };
1639
1640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1641 {
1642 arg1 = wxString_in_helper(obj0);
1643 if (arg1 == NULL) SWIG_fail;
423f194a 1644 temp1 = True;
d14a1e28
RD
1645 }
1646 {
1647 PyThreadState* __tstate = wxPyBeginAllowThreads();
1648 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1649
1650 wxPyEndAllowThreads(__tstate);
1651 if (PyErr_Occurred()) SWIG_fail;
1652 }
02a34c4c 1653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1654 {
1655 if (temp1)
1656 delete arg1;
1657 }
1658 return resultobj;
1659 fail:
1660 {
1661 if (temp1)
1662 delete arg1;
1663 }
1664 return NULL;
1665}
1666
1667
1668static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1669 PyObject *obj;
1670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1671 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1672 Py_INCREF(obj);
1673 return Py_BuildValue((char *)"");
1674}
8edf1c75 1675static int _wrap_FileSelectorPromptStr_set(PyObject *) {
cbd72d4f
RD
1676 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1677 return 1;
1678}
1679
1680
1681static PyObject *_wrap_FileSelectorPromptStr_get() {
1682 PyObject *pyobj;
1683
1684 {
1685#if wxUSE_UNICODE
1686 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1687#else
1688 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1689#endif
1690 }
1691 return pyobj;
1692}
1693
1694
8edf1c75 1695static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
cbd72d4f
RD
1696 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1697 return 1;
1698}
1699
1700
1701static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1702 PyObject *pyobj;
1703
1704 {
1705#if wxUSE_UNICODE
1706 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1707#else
1708 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1709#endif
1710 }
1711 return pyobj;
1712}
1713
1714
8edf1c75 1715static int _wrap_DirSelectorPromptStr_set(PyObject *) {
cbd72d4f
RD
1716 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1717 return 1;
1718}
1719
1720
1721static PyObject *_wrap_DirSelectorPromptStr_get() {
1722 PyObject *pyobj;
1723
1724 {
1725#if wxUSE_UNICODE
1726 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1727#else
1728 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1729#endif
1730 }
1731 return pyobj;
1732}
1733
1734
d14a1e28
RD
1735static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1736 PyObject *resultobj;
1737 long result;
1738 char *kwnames[] = {
1739 NULL
1740 };
1741
1742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1743 {
1744 PyThreadState* __tstate = wxPyBeginAllowThreads();
1745 result = (long)wxNewId();
1746
1747 wxPyEndAllowThreads(__tstate);
1748 if (PyErr_Occurred()) SWIG_fail;
1749 }
8edf1c75 1750 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
1751 return resultobj;
1752 fail:
1753 return NULL;
1754}
1755
1756
1757static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1758 PyObject *resultobj;
1759 long arg1 ;
8edf1c75 1760 PyObject * obj0 = 0 ;
d14a1e28
RD
1761 char *kwnames[] = {
1762 (char *) "id", NULL
1763 };
1764
8edf1c75
RD
1765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
1766 {
1767 arg1 = (long) SWIG_PyObj_AsLong(obj0);
1768 if (PyErr_Occurred()) SWIG_fail;
1769 }
d14a1e28
RD
1770 {
1771 PyThreadState* __tstate = wxPyBeginAllowThreads();
1772 wxRegisterId(arg1);
1773
1774 wxPyEndAllowThreads(__tstate);
1775 if (PyErr_Occurred()) SWIG_fail;
1776 }
1777 Py_INCREF(Py_None); resultobj = Py_None;
1778 return resultobj;
1779 fail:
1780 return NULL;
1781}
1782
1783
1784static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
1785 PyObject *resultobj;
1786 long result;
1787 char *kwnames[] = {
1788 NULL
1789 };
1790
1791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1792 {
1793 PyThreadState* __tstate = wxPyBeginAllowThreads();
1794 result = (long)wxGetCurrentId();
1795
1796 wxPyEndAllowThreads(__tstate);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
8edf1c75 1799 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
1800 return resultobj;
1801 fail:
1802 return NULL;
1803}
1804
1805
1806static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
1807 PyObject *resultobj;
1808 char *kwnames[] = {
1809 NULL
1810 };
1811
1812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1813 {
1814 PyThreadState* __tstate = wxPyBeginAllowThreads();
1815 wxBell();
1816
1817 wxPyEndAllowThreads(__tstate);
1818 if (PyErr_Occurred()) SWIG_fail;
1819 }
1820 Py_INCREF(Py_None); resultobj = Py_None;
1821 return resultobj;
1822 fail:
1823 return NULL;
1824}
1825
1826
1827static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
1828 PyObject *resultobj;
1829 char *kwnames[] = {
1830 NULL
1831 };
1832
1833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
1834 {
1835 PyThreadState* __tstate = wxPyBeginAllowThreads();
1836 wxEndBusyCursor();
1837
1838 wxPyEndAllowThreads(__tstate);
1839 if (PyErr_Occurred()) SWIG_fail;
1840 }
1841 Py_INCREF(Py_None); resultobj = Py_None;
1842 return resultobj;
1843 fail:
1844 return NULL;
1845}
1846
1847
1848static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1849 PyObject *resultobj;
423f194a 1850 bool arg1 = (bool) True ;
d14a1e28
RD
1851 long result;
1852 PyObject * obj0 = 0 ;
1853 char *kwnames[] = {
1854 (char *) "resetTimer", NULL
1855 };
1856
1857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
1858 if (obj0) {
2dbef272 1859 {
8edf1c75 1860 arg1 = (bool) SWIG_PyObj_AsBool(obj0);
2dbef272
RD
1861 if (PyErr_Occurred()) SWIG_fail;
1862 }
d14a1e28
RD
1863 }
1864 {
1865 PyThreadState* __tstate = wxPyBeginAllowThreads();
1866 result = (long)wxGetElapsedTime(arg1);
1867
1868 wxPyEndAllowThreads(__tstate);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 }
8edf1c75 1871 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
1872 return resultobj;
1873 fail:
1874 return NULL;
1875}
1876
1877
1878static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject *resultobj;
1880 int *arg1 = (int *) 0 ;
1881 int *arg2 = (int *) 0 ;
1882 int temp1 ;
1883 int temp2 ;
1884 char *kwnames[] = {
1885 NULL
1886 };
1887
1888 arg1 = &temp1;
1889 arg2 = &temp2;
1890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 wxGetMousePosition(arg1,arg2);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 Py_INCREF(Py_None); resultobj = Py_None;
1899 {
1900 PyObject *o = PyInt_FromLong((long) (*arg1));
1901 resultobj = t_output_helper(resultobj,o);
1902 }
1903 {
1904 PyObject *o = PyInt_FromLong((long) (*arg2));
1905 resultobj = t_output_helper(resultobj,o);
1906 }
1907 return resultobj;
1908 fail:
1909 return NULL;
1910}
1911
1912
1913static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
1914 PyObject *resultobj;
1915 bool result;
1916 char *kwnames[] = {
1917 NULL
1918 };
1919
1920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
1921 {
1922 PyThreadState* __tstate = wxPyBeginAllowThreads();
1923 result = (bool)wxIsBusy();
1924
1925 wxPyEndAllowThreads(__tstate);
1926 if (PyErr_Occurred()) SWIG_fail;
1927 }
02a34c4c 1928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1929 return resultobj;
1930 fail:
1931 return NULL;
1932}
1933
1934
1935static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
1936 PyObject *resultobj;
1937 wxString result;
1938 char *kwnames[] = {
1939 NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
1943 {
1944 PyThreadState* __tstate = wxPyBeginAllowThreads();
1945 result = wxNow();
1946
1947 wxPyEndAllowThreads(__tstate);
1948 if (PyErr_Occurred()) SWIG_fail;
1949 }
1950 {
1951#if wxUSE_UNICODE
1952 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1953#else
1954 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1955#endif
1956 }
1957 return resultobj;
1958 fail:
1959 return NULL;
1960}
1961
1962
1963static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
1964 PyObject *resultobj;
1965 wxString const &arg1_defvalue = wxPyEmptyString ;
1966 wxString *arg1 = (wxString *) &arg1_defvalue ;
1967 bool result;
423f194a 1968 bool temp1 = False ;
d14a1e28
RD
1969 PyObject * obj0 = 0 ;
1970 char *kwnames[] = {
1971 (char *) "command", NULL
1972 };
1973
1974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
1975 if (obj0) {
1976 {
1977 arg1 = wxString_in_helper(obj0);
1978 if (arg1 == NULL) SWIG_fail;
423f194a 1979 temp1 = True;
d14a1e28
RD
1980 }
1981 }
1982 {
1983 PyThreadState* __tstate = wxPyBeginAllowThreads();
1984 result = (bool)wxShell((wxString const &)*arg1);
1985
1986 wxPyEndAllowThreads(__tstate);
1987 if (PyErr_Occurred()) SWIG_fail;
1988 }
02a34c4c 1989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1990 {
1991 if (temp1)
1992 delete arg1;
1993 }
1994 return resultobj;
1995 fail:
1996 {
1997 if (temp1)
1998 delete arg1;
1999 }
2000 return NULL;
2001}
2002
2003
2004static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2005 PyObject *resultobj;
2006 char *kwnames[] = {
2007 NULL
2008 };
2009
2010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2011 {
2012 PyThreadState* __tstate = wxPyBeginAllowThreads();
2013 wxStartTimer();
2014
2015 wxPyEndAllowThreads(__tstate);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 }
2018 Py_INCREF(Py_None); resultobj = Py_None;
2019 return resultobj;
2020 fail:
2021 return NULL;
2022}
2023
2024
2025static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2026 PyObject *resultobj;
2027 int *arg1 = (int *) 0 ;
2028 int *arg2 = (int *) 0 ;
2029 int result;
2030 int temp1 ;
2031 int temp2 ;
2032 char *kwnames[] = {
2033 NULL
2034 };
2035
2036 arg1 = &temp1;
2037 arg2 = &temp2;
2038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2039 {
2040 PyThreadState* __tstate = wxPyBeginAllowThreads();
2041 result = (int)wxGetOsVersion(arg1,arg2);
2042
2043 wxPyEndAllowThreads(__tstate);
2044 if (PyErr_Occurred()) SWIG_fail;
2045 }
8edf1c75 2046 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
2047 {
2048 PyObject *o = PyInt_FromLong((long) (*arg1));
2049 resultobj = t_output_helper(resultobj,o);
2050 }
2051 {
2052 PyObject *o = PyInt_FromLong((long) (*arg2));
2053 resultobj = t_output_helper(resultobj,o);
2054 }
2055 return resultobj;
2056 fail:
2057 return NULL;
2058}
2059
2060
2061static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2062 PyObject *resultobj;
2063 wxString result;
2064 char *kwnames[] = {
2065 NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2069 {
2070 PyThreadState* __tstate = wxPyBeginAllowThreads();
2071 result = wxGetOsDescription();
2072
2073 wxPyEndAllowThreads(__tstate);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 }
2076 {
2077#if wxUSE_UNICODE
2078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2079#else
2080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2081#endif
2082 }
2083 return resultobj;
2084 fail:
2085 return NULL;
2086}
2087
2088
2089static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2090 PyObject *resultobj;
2091 long result;
2092 char *kwnames[] = {
2093 NULL
2094 };
2095
2096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2097 {
2098 PyThreadState* __tstate = wxPyBeginAllowThreads();
2099 result = (long)wxGetFreeMemory();
2100
2101 wxPyEndAllowThreads(__tstate);
2102 if (PyErr_Occurred()) SWIG_fail;
2103 }
8edf1c75 2104 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
2105 return resultobj;
2106 fail:
2107 return NULL;
2108}
2109
2110
2111static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject *resultobj;
2113 int arg1 ;
2114 bool result;
8edf1c75 2115 PyObject * obj0 = 0 ;
d14a1e28
RD
2116 char *kwnames[] = {
2117 (char *) "wFlags", NULL
2118 };
2119
8edf1c75
RD
2120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2121 {
2122 arg1 = (wxShutdownFlags) SWIG_PyObj_AsInt(obj0);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
d14a1e28
RD
2125 {
2126 PyThreadState* __tstate = wxPyBeginAllowThreads();
2127 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2128
2129 wxPyEndAllowThreads(__tstate);
2130 if (PyErr_Occurred()) SWIG_fail;
2131 }
02a34c4c 2132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2133 return resultobj;
2134 fail:
2135 return NULL;
2136}
2137
2138
2139static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2140 PyObject *resultobj;
2141 int arg1 ;
8edf1c75 2142 PyObject * obj0 = 0 ;
d14a1e28
RD
2143 char *kwnames[] = {
2144 (char *) "secs", NULL
2145 };
2146
8edf1c75
RD
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2148 {
2149 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2150 if (PyErr_Occurred()) SWIG_fail;
2151 }
d14a1e28
RD
2152 {
2153 PyThreadState* __tstate = wxPyBeginAllowThreads();
2154 wxSleep(arg1);
2155
2156 wxPyEndAllowThreads(__tstate);
2157 if (PyErr_Occurred()) SWIG_fail;
2158 }
2159 Py_INCREF(Py_None); resultobj = Py_None;
2160 return resultobj;
2161 fail:
2162 return NULL;
2163}
2164
2165
2166static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2167 PyObject *resultobj;
2168 unsigned long arg1 ;
2169 PyObject * obj0 = 0 ;
2170 char *kwnames[] = {
2171 (char *) "milliseconds", NULL
2172 };
2173
2174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2dbef272 2175 {
8edf1c75 2176 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
2dbef272
RD
2177 if (PyErr_Occurred()) SWIG_fail;
2178 }
d14a1e28
RD
2179 {
2180 PyThreadState* __tstate = wxPyBeginAllowThreads();
2181 wxUsleep(arg1);
2182
2183 wxPyEndAllowThreads(__tstate);
2184 if (PyErr_Occurred()) SWIG_fail;
2185 }
2186 Py_INCREF(Py_None); resultobj = Py_None;
2187 return resultobj;
2188 fail:
2189 return NULL;
2190}
2191
2192
2193static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2194 PyObject *resultobj;
2195 bool arg1 ;
2196 PyObject * obj0 = 0 ;
2197 char *kwnames[] = {
2198 (char *) "enable", NULL
2199 };
2200
2201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2dbef272 2202 {
8edf1c75 2203 arg1 = (bool) SWIG_PyObj_AsBool(obj0);
2dbef272
RD
2204 if (PyErr_Occurred()) SWIG_fail;
2205 }
d14a1e28
RD
2206 {
2207 PyThreadState* __tstate = wxPyBeginAllowThreads();
2208 wxEnableTopLevelWindows(arg1);
2209
2210 wxPyEndAllowThreads(__tstate);
2211 if (PyErr_Occurred()) SWIG_fail;
2212 }
2213 Py_INCREF(Py_None); resultobj = Py_None;
2214 return resultobj;
2215 fail:
2216 return NULL;
2217}
2218
2219
2220static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2221 PyObject *resultobj;
2222 wxString *arg1 = 0 ;
2223 wxString result;
423f194a 2224 bool temp1 = False ;
d14a1e28
RD
2225 PyObject * obj0 = 0 ;
2226 char *kwnames[] = {
2227 (char *) "in", NULL
2228 };
2229
2230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2231 {
2232 arg1 = wxString_in_helper(obj0);
2233 if (arg1 == NULL) SWIG_fail;
423f194a 2234 temp1 = True;
d14a1e28
RD
2235 }
2236 {
2237 PyThreadState* __tstate = wxPyBeginAllowThreads();
2238 result = wxStripMenuCodes((wxString const &)*arg1);
2239
2240 wxPyEndAllowThreads(__tstate);
2241 if (PyErr_Occurred()) SWIG_fail;
2242 }
2243 {
2244#if wxUSE_UNICODE
2245 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2246#else
2247 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2248#endif
2249 }
2250 {
2251 if (temp1)
2252 delete arg1;
2253 }
2254 return resultobj;
2255 fail:
2256 {
2257 if (temp1)
2258 delete arg1;
2259 }
2260 return NULL;
2261}
2262
2263
2264static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2265 PyObject *resultobj;
2266 wxString result;
2267 char *kwnames[] = {
2268 NULL
2269 };
2270
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2272 {
2273 PyThreadState* __tstate = wxPyBeginAllowThreads();
2274 result = wxGetEmailAddress();
2275
2276 wxPyEndAllowThreads(__tstate);
2277 if (PyErr_Occurred()) SWIG_fail;
2278 }
2279 {
2280#if wxUSE_UNICODE
2281 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2282#else
2283 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2284#endif
2285 }
2286 return resultobj;
2287 fail:
2288 return NULL;
2289}
2290
2291
2292static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2293 PyObject *resultobj;
2294 wxString result;
2295 char *kwnames[] = {
2296 NULL
2297 };
2298
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2300 {
2301 PyThreadState* __tstate = wxPyBeginAllowThreads();
2302 result = wxGetHostName();
2303
2304 wxPyEndAllowThreads(__tstate);
2305 if (PyErr_Occurred()) SWIG_fail;
2306 }
2307 {
2308#if wxUSE_UNICODE
2309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2310#else
2311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2312#endif
2313 }
2314 return resultobj;
2315 fail:
2316 return NULL;
2317}
2318
2319
2320static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2321 PyObject *resultobj;
2322 wxString result;
2323 char *kwnames[] = {
2324 NULL
2325 };
2326
2327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2328 {
2329 PyThreadState* __tstate = wxPyBeginAllowThreads();
2330 result = wxGetFullHostName();
2331
2332 wxPyEndAllowThreads(__tstate);
2333 if (PyErr_Occurred()) SWIG_fail;
2334 }
2335 {
2336#if wxUSE_UNICODE
2337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2338#else
2339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2340#endif
2341 }
2342 return resultobj;
2343 fail:
2344 return NULL;
2345}
2346
2347
2348static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2349 PyObject *resultobj;
2350 wxString result;
2351 char *kwnames[] = {
2352 NULL
2353 };
2354
2355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2356 {
2357 PyThreadState* __tstate = wxPyBeginAllowThreads();
2358 result = wxGetUserId();
2359
2360 wxPyEndAllowThreads(__tstate);
2361 if (PyErr_Occurred()) SWIG_fail;
2362 }
2363 {
2364#if wxUSE_UNICODE
2365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2366#else
2367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2368#endif
2369 }
2370 return resultobj;
2371 fail:
2372 return NULL;
2373}
2374
2375
2376static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2377 PyObject *resultobj;
2378 wxString result;
2379 char *kwnames[] = {
2380 NULL
2381 };
2382
2383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2384 {
2385 PyThreadState* __tstate = wxPyBeginAllowThreads();
2386 result = wxGetUserName();
2387
2388 wxPyEndAllowThreads(__tstate);
2389 if (PyErr_Occurred()) SWIG_fail;
2390 }
2391 {
2392#if wxUSE_UNICODE
2393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2394#else
2395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2396#endif
2397 }
2398 return resultobj;
2399 fail:
2400 return NULL;
2401}
2402
2403
2404static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2405 PyObject *resultobj;
2406 wxString result;
2407 char *kwnames[] = {
2408 NULL
2409 };
2410
2411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2412 {
2413 PyThreadState* __tstate = wxPyBeginAllowThreads();
2414 result = wxGetHomeDir();
2415
2416 wxPyEndAllowThreads(__tstate);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
2419 {
2420#if wxUSE_UNICODE
2421 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2422#else
2423 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2424#endif
2425 }
2426 return resultobj;
2427 fail:
2428 return NULL;
2429}
2430
2431
2432static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2433 PyObject *resultobj;
2434 wxString const &arg1_defvalue = wxPyEmptyString ;
2435 wxString *arg1 = (wxString *) &arg1_defvalue ;
2436 wxString result;
423f194a 2437 bool temp1 = False ;
d14a1e28
RD
2438 PyObject * obj0 = 0 ;
2439 char *kwnames[] = {
2440 (char *) "user", NULL
2441 };
2442
2443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2444 if (obj0) {
2445 {
2446 arg1 = wxString_in_helper(obj0);
2447 if (arg1 == NULL) SWIG_fail;
423f194a 2448 temp1 = True;
d14a1e28
RD
2449 }
2450 }
2451 {
2452 PyThreadState* __tstate = wxPyBeginAllowThreads();
2453 result = wxGetUserHome((wxString const &)*arg1);
2454
2455 wxPyEndAllowThreads(__tstate);
2456 if (PyErr_Occurred()) SWIG_fail;
2457 }
2458 {
2459#if wxUSE_UNICODE
2460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2461#else
2462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2463#endif
2464 }
2465 {
2466 if (temp1)
2467 delete arg1;
2468 }
2469 return resultobj;
2470 fail:
2471 {
2472 if (temp1)
2473 delete arg1;
2474 }
2475 return NULL;
2476}
2477
2478
2479static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 unsigned long result;
2482 char *kwnames[] = {
2483 NULL
2484 };
2485
2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2487 {
2488 PyThreadState* __tstate = wxPyBeginAllowThreads();
2489 result = (unsigned long)wxGetProcessId();
2490
2491 wxPyEndAllowThreads(__tstate);
2492 if (PyErr_Occurred()) SWIG_fail;
2493 }
8edf1c75 2494 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
2495 return resultobj;
2496 fail:
2497 return NULL;
2498}
2499
2500
2501static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2502 PyObject *resultobj;
2503 char *kwnames[] = {
2504 NULL
2505 };
2506
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2508 {
2509 PyThreadState* __tstate = wxPyBeginAllowThreads();
2510 wxTrap();
2511
2512 wxPyEndAllowThreads(__tstate);
2513 if (PyErr_Occurred()) SWIG_fail;
2514 }
2515 Py_INCREF(Py_None); resultobj = Py_None;
2516 return resultobj;
2517 fail:
2518 return NULL;
2519}
2520
2521
2522static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2523 PyObject *resultobj;
2524 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2525 wxString *arg1 = (wxString *) &arg1_defvalue ;
2526 wxString const &arg2_defvalue = wxPyEmptyString ;
2527 wxString *arg2 = (wxString *) &arg2_defvalue ;
2528 wxString const &arg3_defvalue = wxPyEmptyString ;
2529 wxString *arg3 = (wxString *) &arg3_defvalue ;
2530 wxString const &arg4_defvalue = wxPyEmptyString ;
2531 wxString *arg4 = (wxString *) &arg4_defvalue ;
2532 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2533 wxString *arg5 = (wxString *) &arg5_defvalue ;
2534 int arg6 = (int) 0 ;
2535 wxWindow *arg7 = (wxWindow *) NULL ;
2536 int arg8 = (int) -1 ;
2537 int arg9 = (int) -1 ;
2538 wxString result;
423f194a
RD
2539 bool temp1 = False ;
2540 bool temp2 = False ;
2541 bool temp3 = False ;
2542 bool temp4 = False ;
2543 bool temp5 = False ;
d14a1e28
RD
2544 PyObject * obj0 = 0 ;
2545 PyObject * obj1 = 0 ;
2546 PyObject * obj2 = 0 ;
2547 PyObject * obj3 = 0 ;
2548 PyObject * obj4 = 0 ;
8edf1c75 2549 PyObject * obj5 = 0 ;
d14a1e28 2550 PyObject * obj6 = 0 ;
8edf1c75
RD
2551 PyObject * obj7 = 0 ;
2552 PyObject * obj8 = 0 ;
d14a1e28
RD
2553 char *kwnames[] = {
2554 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2555 };
2556
8edf1c75 2557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d14a1e28
RD
2558 if (obj0) {
2559 {
2560 arg1 = wxString_in_helper(obj0);
2561 if (arg1 == NULL) SWIG_fail;
423f194a 2562 temp1 = True;
d14a1e28
RD
2563 }
2564 }
2565 if (obj1) {
2566 {
2567 arg2 = wxString_in_helper(obj1);
2568 if (arg2 == NULL) SWIG_fail;
423f194a 2569 temp2 = True;
d14a1e28
RD
2570 }
2571 }
2572 if (obj2) {
2573 {
2574 arg3 = wxString_in_helper(obj2);
2575 if (arg3 == NULL) SWIG_fail;
423f194a 2576 temp3 = True;
d14a1e28
RD
2577 }
2578 }
2579 if (obj3) {
2580 {
2581 arg4 = wxString_in_helper(obj3);
2582 if (arg4 == NULL) SWIG_fail;
423f194a 2583 temp4 = True;
d14a1e28
RD
2584 }
2585 }
2586 if (obj4) {
2587 {
2588 arg5 = wxString_in_helper(obj4);
2589 if (arg5 == NULL) SWIG_fail;
423f194a 2590 temp5 = True;
d14a1e28
RD
2591 }
2592 }
8edf1c75
RD
2593 if (obj5) {
2594 {
2595 arg6 = (int) SWIG_PyObj_AsInt(obj5);
2596 if (PyErr_Occurred()) SWIG_fail;
2597 }
2598 }
d14a1e28
RD
2599 if (obj6) {
2600 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2601 }
8edf1c75
RD
2602 if (obj7) {
2603 {
2604 arg8 = (int) SWIG_PyObj_AsInt(obj7);
2605 if (PyErr_Occurred()) SWIG_fail;
2606 }
2607 }
2608 if (obj8) {
2609 {
2610 arg9 = (int) SWIG_PyObj_AsInt(obj8);
2611 if (PyErr_Occurred()) SWIG_fail;
2612 }
2613 }
d14a1e28
RD
2614 {
2615 PyThreadState* __tstate = wxPyBeginAllowThreads();
2616 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2617
2618 wxPyEndAllowThreads(__tstate);
2619 if (PyErr_Occurred()) SWIG_fail;
2620 }
2621 {
2622#if wxUSE_UNICODE
2623 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2624#else
2625 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2626#endif
2627 }
2628 {
2629 if (temp1)
2630 delete arg1;
2631 }
2632 {
2633 if (temp2)
2634 delete arg2;
2635 }
2636 {
2637 if (temp3)
2638 delete arg3;
2639 }
2640 {
2641 if (temp4)
2642 delete arg4;
2643 }
2644 {
2645 if (temp5)
2646 delete arg5;
2647 }
2648 return resultobj;
2649 fail:
2650 {
2651 if (temp1)
2652 delete arg1;
2653 }
2654 {
2655 if (temp2)
2656 delete arg2;
2657 }
2658 {
2659 if (temp3)
2660 delete arg3;
2661 }
2662 {
2663 if (temp4)
2664 delete arg4;
2665 }
2666 {
2667 if (temp5)
2668 delete arg5;
2669 }
2670 return NULL;
2671}
2672
2673
2674static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2675 PyObject *resultobj;
2676 wxString *arg1 = 0 ;
2677 wxString *arg2 = 0 ;
2678 wxString const &arg3_defvalue = wxPyEmptyString ;
2679 wxString *arg3 = (wxString *) &arg3_defvalue ;
2680 wxWindow *arg4 = (wxWindow *) NULL ;
2681 wxString result;
423f194a
RD
2682 bool temp1 = False ;
2683 bool temp2 = False ;
2684 bool temp3 = False ;
d14a1e28
RD
2685 PyObject * obj0 = 0 ;
2686 PyObject * obj1 = 0 ;
2687 PyObject * obj2 = 0 ;
2688 PyObject * obj3 = 0 ;
2689 char *kwnames[] = {
2690 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2691 };
2692
2693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2694 {
2695 arg1 = wxString_in_helper(obj0);
2696 if (arg1 == NULL) SWIG_fail;
423f194a 2697 temp1 = True;
d14a1e28
RD
2698 }
2699 {
2700 arg2 = wxString_in_helper(obj1);
2701 if (arg2 == NULL) SWIG_fail;
423f194a 2702 temp2 = True;
d14a1e28
RD
2703 }
2704 if (obj2) {
2705 {
2706 arg3 = wxString_in_helper(obj2);
2707 if (arg3 == NULL) SWIG_fail;
423f194a 2708 temp3 = True;
d14a1e28
RD
2709 }
2710 }
2711 if (obj3) {
2712 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2713 }
2714 {
2715 PyThreadState* __tstate = wxPyBeginAllowThreads();
2716 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2717
2718 wxPyEndAllowThreads(__tstate);
2719 if (PyErr_Occurred()) SWIG_fail;
2720 }
2721 {
2722#if wxUSE_UNICODE
2723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2724#else
2725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2726#endif
2727 }
2728 {
2729 if (temp1)
2730 delete arg1;
2731 }
2732 {
2733 if (temp2)
2734 delete arg2;
2735 }
2736 {
2737 if (temp3)
2738 delete arg3;
2739 }
2740 return resultobj;
2741 fail:
2742 {
2743 if (temp1)
2744 delete arg1;
2745 }
2746 {
2747 if (temp2)
2748 delete arg2;
2749 }
2750 {
2751 if (temp3)
2752 delete arg3;
2753 }
2754 return NULL;
2755}
2756
2757
2758static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2759 PyObject *resultobj;
2760 wxString *arg1 = 0 ;
2761 wxString *arg2 = 0 ;
2762 wxString const &arg3_defvalue = wxPyEmptyString ;
2763 wxString *arg3 = (wxString *) &arg3_defvalue ;
2764 wxWindow *arg4 = (wxWindow *) NULL ;
2765 wxString result;
423f194a
RD
2766 bool temp1 = False ;
2767 bool temp2 = False ;
2768 bool temp3 = False ;
d14a1e28
RD
2769 PyObject * obj0 = 0 ;
2770 PyObject * obj1 = 0 ;
2771 PyObject * obj2 = 0 ;
2772 PyObject * obj3 = 0 ;
2773 char *kwnames[] = {
2774 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2775 };
2776
2777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2778 {
2779 arg1 = wxString_in_helper(obj0);
2780 if (arg1 == NULL) SWIG_fail;
423f194a 2781 temp1 = True;
d14a1e28
RD
2782 }
2783 {
2784 arg2 = wxString_in_helper(obj1);
2785 if (arg2 == NULL) SWIG_fail;
423f194a 2786 temp2 = True;
d14a1e28
RD
2787 }
2788 if (obj2) {
2789 {
2790 arg3 = wxString_in_helper(obj2);
2791 if (arg3 == NULL) SWIG_fail;
423f194a 2792 temp3 = True;
d14a1e28
RD
2793 }
2794 }
2795 if (obj3) {
2796 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2797 }
2798 {
2799 PyThreadState* __tstate = wxPyBeginAllowThreads();
2800 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2801
2802 wxPyEndAllowThreads(__tstate);
2803 if (PyErr_Occurred()) SWIG_fail;
2804 }
2805 {
2806#if wxUSE_UNICODE
2807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2808#else
2809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2810#endif
2811 }
2812 {
2813 if (temp1)
2814 delete arg1;
2815 }
2816 {
2817 if (temp2)
2818 delete arg2;
2819 }
2820 {
2821 if (temp3)
2822 delete arg3;
2823 }
2824 return resultobj;
2825 fail:
2826 {
2827 if (temp1)
2828 delete arg1;
2829 }
2830 {
2831 if (temp2)
2832 delete arg2;
2833 }
2834 {
2835 if (temp3)
2836 delete arg3;
2837 }
2838 return NULL;
2839}
2840
2841
2842static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2843 PyObject *resultobj;
2844 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
2845 wxString *arg1 = (wxString *) &arg1_defvalue ;
2846 wxString const &arg2_defvalue = wxPyEmptyString ;
2847 wxString *arg2 = (wxString *) &arg2_defvalue ;
2848 long arg3 = (long) wxDD_DEFAULT_STYLE ;
2849 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2850 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2851 wxWindow *arg5 = (wxWindow *) NULL ;
2852 wxString result;
423f194a
RD
2853 bool temp1 = False ;
2854 bool temp2 = False ;
d14a1e28
RD
2855 wxPoint temp4 ;
2856 PyObject * obj0 = 0 ;
2857 PyObject * obj1 = 0 ;
8edf1c75 2858 PyObject * obj2 = 0 ;
d14a1e28
RD
2859 PyObject * obj3 = 0 ;
2860 PyObject * obj4 = 0 ;
2861 char *kwnames[] = {
2862 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
2863 };
2864
8edf1c75 2865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28
RD
2866 if (obj0) {
2867 {
2868 arg1 = wxString_in_helper(obj0);
2869 if (arg1 == NULL) SWIG_fail;
423f194a 2870 temp1 = True;
d14a1e28
RD
2871 }
2872 }
2873 if (obj1) {
2874 {
2875 arg2 = wxString_in_helper(obj1);
2876 if (arg2 == NULL) SWIG_fail;
423f194a 2877 temp2 = True;
d14a1e28
RD
2878 }
2879 }
8edf1c75
RD
2880 if (obj2) {
2881 {
2882 arg3 = (long) SWIG_PyObj_AsLong(obj2);
2883 if (PyErr_Occurred()) SWIG_fail;
2884 }
2885 }
d14a1e28
RD
2886 if (obj3) {
2887 {
2888 arg4 = &temp4;
2889 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2890 }
2891 }
2892 if (obj4) {
2893 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2894 }
2895 {
2896 PyThreadState* __tstate = wxPyBeginAllowThreads();
2897 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
2898
2899 wxPyEndAllowThreads(__tstate);
2900 if (PyErr_Occurred()) SWIG_fail;
2901 }
2902 {
2903#if wxUSE_UNICODE
2904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2905#else
2906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2907#endif
2908 }
2909 {
2910 if (temp1)
2911 delete arg1;
2912 }
2913 {
2914 if (temp2)
2915 delete arg2;
2916 }
2917 return resultobj;
2918 fail:
2919 {
2920 if (temp1)
2921 delete arg1;
2922 }
2923 {
2924 if (temp2)
2925 delete arg2;
2926 }
2927 return NULL;
2928}
2929
2930
2931static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2932 PyObject *resultobj;
2933 wxString *arg1 = 0 ;
2934 wxString const &arg2_defvalue = wxPyEmptyString ;
2935 wxString *arg2 = (wxString *) &arg2_defvalue ;
2936 wxString const &arg3_defvalue = wxPyEmptyString ;
2937 wxString *arg3 = (wxString *) &arg3_defvalue ;
2938 wxWindow *arg4 = (wxWindow *) NULL ;
2939 int arg5 = (int) -1 ;
2940 int arg6 = (int) -1 ;
423f194a 2941 bool arg7 = (bool) True ;
d14a1e28 2942 wxString result;
423f194a
RD
2943 bool temp1 = False ;
2944 bool temp2 = False ;
2945 bool temp3 = False ;
d14a1e28
RD
2946 PyObject * obj0 = 0 ;
2947 PyObject * obj1 = 0 ;
2948 PyObject * obj2 = 0 ;
2949 PyObject * obj3 = 0 ;
8edf1c75
RD
2950 PyObject * obj4 = 0 ;
2951 PyObject * obj5 = 0 ;
d14a1e28
RD
2952 PyObject * obj6 = 0 ;
2953 char *kwnames[] = {
2954 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
2955 };
2956
8edf1c75 2957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d14a1e28
RD
2958 {
2959 arg1 = wxString_in_helper(obj0);
2960 if (arg1 == NULL) SWIG_fail;
423f194a 2961 temp1 = True;
d14a1e28
RD
2962 }
2963 if (obj1) {
2964 {
2965 arg2 = wxString_in_helper(obj1);
2966 if (arg2 == NULL) SWIG_fail;
423f194a 2967 temp2 = True;
d14a1e28
RD
2968 }
2969 }
2970 if (obj2) {
2971 {
2972 arg3 = wxString_in_helper(obj2);
2973 if (arg3 == NULL) SWIG_fail;
423f194a 2974 temp3 = True;
d14a1e28
RD
2975 }
2976 }
2977 if (obj3) {
2978 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2979 }
8edf1c75
RD
2980 if (obj4) {
2981 {
2982 arg5 = (int) SWIG_PyObj_AsInt(obj4);
2983 if (PyErr_Occurred()) SWIG_fail;
2984 }
2985 }
2986 if (obj5) {
2987 {
2988 arg6 = (int) SWIG_PyObj_AsInt(obj5);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 }
d14a1e28 2992 if (obj6) {
2dbef272 2993 {
8edf1c75 2994 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
2dbef272
RD
2995 if (PyErr_Occurred()) SWIG_fail;
2996 }
d14a1e28
RD
2997 }
2998 {
2999 PyThreadState* __tstate = wxPyBeginAllowThreads();
3000 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3001
3002 wxPyEndAllowThreads(__tstate);
3003 if (PyErr_Occurred()) SWIG_fail;
3004 }
3005 {
3006#if wxUSE_UNICODE
3007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3008#else
3009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3010#endif
3011 }
3012 {
3013 if (temp1)
3014 delete arg1;
3015 }
3016 {
3017 if (temp2)
3018 delete arg2;
3019 }
3020 {
3021 if (temp3)
3022 delete arg3;
3023 }
3024 return resultobj;
3025 fail:
3026 {
3027 if (temp1)
3028 delete arg1;
3029 }
3030 {
3031 if (temp2)
3032 delete arg2;
3033 }
3034 {
3035 if (temp3)
3036 delete arg3;
3037 }
3038 return NULL;
3039}
3040
3041
3042static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3043 PyObject *resultobj;
3044 wxString *arg1 = 0 ;
3045 wxString const &arg2_defvalue = wxPyEmptyString ;
3046 wxString *arg2 = (wxString *) &arg2_defvalue ;
3047 wxString const &arg3_defvalue = wxPyEmptyString ;
3048 wxString *arg3 = (wxString *) &arg3_defvalue ;
3049 wxWindow *arg4 = (wxWindow *) NULL ;
3050 wxString result;
423f194a
RD
3051 bool temp1 = False ;
3052 bool temp2 = False ;
3053 bool temp3 = False ;
d14a1e28
RD
3054 PyObject * obj0 = 0 ;
3055 PyObject * obj1 = 0 ;
3056 PyObject * obj2 = 0 ;
3057 PyObject * obj3 = 0 ;
3058 char *kwnames[] = {
3059 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3060 };
3061
3062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3063 {
3064 arg1 = wxString_in_helper(obj0);
3065 if (arg1 == NULL) SWIG_fail;
423f194a 3066 temp1 = True;
d14a1e28
RD
3067 }
3068 if (obj1) {
3069 {
3070 arg2 = wxString_in_helper(obj1);
3071 if (arg2 == NULL) SWIG_fail;
423f194a 3072 temp2 = True;
d14a1e28
RD
3073 }
3074 }
3075 if (obj2) {
3076 {
3077 arg3 = wxString_in_helper(obj2);
3078 if (arg3 == NULL) SWIG_fail;
423f194a 3079 temp3 = True;
d14a1e28
RD
3080 }
3081 }
3082 if (obj3) {
3083 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3084 }
3085 {
3086 PyThreadState* __tstate = wxPyBeginAllowThreads();
3087 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3088
3089 wxPyEndAllowThreads(__tstate);
3090 if (PyErr_Occurred()) SWIG_fail;
3091 }
3092 {
3093#if wxUSE_UNICODE
3094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3095#else
3096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3097#endif
3098 }
3099 {
3100 if (temp1)
3101 delete arg1;
3102 }
3103 {
3104 if (temp2)
3105 delete arg2;
3106 }
3107 {
3108 if (temp3)
3109 delete arg3;
3110 }
3111 return resultobj;
3112 fail:
3113 {
3114 if (temp1)
3115 delete arg1;
3116 }
3117 {
3118 if (temp2)
3119 delete arg2;
3120 }
3121 {
3122 if (temp3)
3123 delete arg3;
3124 }
3125 return NULL;
3126}
3127
3128
3129static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3130 PyObject *resultobj;
3131 wxString *arg1 = 0 ;
3132 wxString *arg2 = 0 ;
3133 int arg3 ;
3134 wxString *arg4 = (wxString *) 0 ;
3135 wxWindow *arg5 = (wxWindow *) NULL ;
3136 int arg6 = (int) -1 ;
3137 int arg7 = (int) -1 ;
423f194a 3138 bool arg8 = (bool) True ;
d14a1e28
RD
3139 int arg9 = (int) 150 ;
3140 int arg10 = (int) 200 ;
3141 wxString result;
423f194a
RD
3142 bool temp1 = False ;
3143 bool temp2 = False ;
d14a1e28
RD
3144 PyObject * obj0 = 0 ;
3145 PyObject * obj1 = 0 ;
3146 PyObject * obj2 = 0 ;
3147 PyObject * obj3 = 0 ;
8edf1c75
RD
3148 PyObject * obj4 = 0 ;
3149 PyObject * obj5 = 0 ;
d14a1e28 3150 PyObject * obj6 = 0 ;
8edf1c75
RD
3151 PyObject * obj7 = 0 ;
3152 PyObject * obj8 = 0 ;
d14a1e28
RD
3153 char *kwnames[] = {
3154 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3155 };
3156
8edf1c75 3157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d14a1e28
RD
3158 {
3159 arg1 = wxString_in_helper(obj0);
3160 if (arg1 == NULL) SWIG_fail;
423f194a 3161 temp1 = True;
d14a1e28
RD
3162 }
3163 {
3164 arg2 = wxString_in_helper(obj1);
3165 if (arg2 == NULL) SWIG_fail;
423f194a 3166 temp2 = True;
d14a1e28
RD
3167 }
3168 {
3169 arg3 = PyList_Size(obj2);
3170 arg4 = wxString_LIST_helper(obj2);
3171 if (arg4 == NULL) SWIG_fail;
3172 }
3173 if (obj3) {
3174 if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3175 }
8edf1c75
RD
3176 if (obj4) {
3177 {
3178 arg6 = (int) SWIG_PyObj_AsInt(obj4);
3179 if (PyErr_Occurred()) SWIG_fail;
3180 }
3181 }
3182 if (obj5) {
3183 {
3184 arg7 = (int) SWIG_PyObj_AsInt(obj5);
3185 if (PyErr_Occurred()) SWIG_fail;
3186 }
3187 }
d14a1e28 3188 if (obj6) {
2dbef272 3189 {
8edf1c75
RD
3190 arg8 = (bool) SWIG_PyObj_AsBool(obj6);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 }
3194 if (obj7) {
3195 {
3196 arg9 = (int) SWIG_PyObj_AsInt(obj7);
3197 if (PyErr_Occurred()) SWIG_fail;
3198 }
3199 }
3200 if (obj8) {
3201 {
3202 arg10 = (int) SWIG_PyObj_AsInt(obj8);
2dbef272
RD
3203 if (PyErr_Occurred()) SWIG_fail;
3204 }
d14a1e28
RD
3205 }
3206 {
3207 PyThreadState* __tstate = wxPyBeginAllowThreads();
3208 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3209
3210 wxPyEndAllowThreads(__tstate);
3211 if (PyErr_Occurred()) SWIG_fail;
3212 }
3213 {
3214#if wxUSE_UNICODE
3215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3216#else
3217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3218#endif
3219 }
3220 {
3221 if (temp1)
3222 delete arg1;
3223 }
3224 {
3225 if (temp2)
3226 delete arg2;
3227 }
3228 {
3229 if (arg4) delete [] arg4;
3230 }
3231 return resultobj;
3232 fail:
3233 {
3234 if (temp1)
3235 delete arg1;
3236 }
3237 {
3238 if (temp2)
3239 delete arg2;
3240 }
3241 {
3242 if (arg4) delete [] arg4;
3243 }
3244 return NULL;
3245}
3246
3247
3248static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3249 PyObject *resultobj;
3250 wxString *arg1 = 0 ;
3251 wxString *arg2 = 0 ;
3252 int arg3 ;
3253 wxString *arg4 = (wxString *) 0 ;
3254 wxWindow *arg5 = (wxWindow *) NULL ;
3255 int arg6 = (int) -1 ;
3256 int arg7 = (int) -1 ;
423f194a 3257 bool arg8 = (bool) True ;
d14a1e28
RD
3258 int arg9 = (int) 150 ;
3259 int arg10 = (int) 200 ;
3260 int result;
423f194a
RD
3261 bool temp1 = False ;
3262 bool temp2 = False ;
d14a1e28
RD
3263 PyObject * obj0 = 0 ;
3264 PyObject * obj1 = 0 ;
3265 PyObject * obj2 = 0 ;
3266 PyObject * obj3 = 0 ;
8edf1c75
RD
3267 PyObject * obj4 = 0 ;
3268 PyObject * obj5 = 0 ;
d14a1e28 3269 PyObject * obj6 = 0 ;
8edf1c75
RD
3270 PyObject * obj7 = 0 ;
3271 PyObject * obj8 = 0 ;
d14a1e28
RD
3272 char *kwnames[] = {
3273 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3274 };
3275
8edf1c75 3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
d14a1e28
RD
3277 {
3278 arg1 = wxString_in_helper(obj0);
3279 if (arg1 == NULL) SWIG_fail;
423f194a 3280 temp1 = True;
d14a1e28
RD
3281 }
3282 {
3283 arg2 = wxString_in_helper(obj1);
3284 if (arg2 == NULL) SWIG_fail;
423f194a 3285 temp2 = True;
d14a1e28
RD
3286 }
3287 {
3288 arg3 = PyList_Size(obj2);
3289 arg4 = wxString_LIST_helper(obj2);
3290 if (arg4 == NULL) SWIG_fail;
3291 }
3292 if (obj3) {
3293 if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3294 }
8edf1c75
RD
3295 if (obj4) {
3296 {
3297 arg6 = (int) SWIG_PyObj_AsInt(obj4);
3298 if (PyErr_Occurred()) SWIG_fail;
3299 }
3300 }
3301 if (obj5) {
3302 {
3303 arg7 = (int) SWIG_PyObj_AsInt(obj5);
3304 if (PyErr_Occurred()) SWIG_fail;
3305 }
3306 }
d14a1e28 3307 if (obj6) {
2dbef272 3308 {
8edf1c75
RD
3309 arg8 = (bool) SWIG_PyObj_AsBool(obj6);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 }
3313 if (obj7) {
3314 {
3315 arg9 = (int) SWIG_PyObj_AsInt(obj7);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 }
3319 if (obj8) {
3320 {
3321 arg10 = (int) SWIG_PyObj_AsInt(obj8);
2dbef272
RD
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
d14a1e28
RD
3324 }
3325 {
3326 PyThreadState* __tstate = wxPyBeginAllowThreads();
3327 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3328
3329 wxPyEndAllowThreads(__tstate);
3330 if (PyErr_Occurred()) SWIG_fail;
3331 }
8edf1c75 3332 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3333 {
3334 if (temp1)
3335 delete arg1;
3336 }
3337 {
3338 if (temp2)
3339 delete arg2;
3340 }
3341 {
3342 if (arg4) delete [] arg4;
3343 }
3344 return resultobj;
3345 fail:
3346 {
3347 if (temp1)
3348 delete arg1;
3349 }
3350 {
3351 if (temp2)
3352 delete arg2;
3353 }
3354 {
3355 if (arg4) delete [] arg4;
3356 }
3357 return NULL;
3358}
3359
3360
3361static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3362 PyObject *resultobj;
3363 wxString *arg1 = 0 ;
3364 wxString const &arg2_defvalue = wxPyEmptyString ;
3365 wxString *arg2 = (wxString *) &arg2_defvalue ;
3366 int arg3 = (int) wxOK|wxCENTRE ;
3367 wxWindow *arg4 = (wxWindow *) NULL ;
3368 int arg5 = (int) -1 ;
3369 int arg6 = (int) -1 ;
3370 int result;
423f194a
RD
3371 bool temp1 = False ;
3372 bool temp2 = False ;
d14a1e28
RD
3373 PyObject * obj0 = 0 ;
3374 PyObject * obj1 = 0 ;
8edf1c75 3375 PyObject * obj2 = 0 ;
d14a1e28 3376 PyObject * obj3 = 0 ;
8edf1c75
RD
3377 PyObject * obj4 = 0 ;
3378 PyObject * obj5 = 0 ;
d14a1e28
RD
3379 char *kwnames[] = {
3380 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3381 };
3382
8edf1c75 3383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28
RD
3384 {
3385 arg1 = wxString_in_helper(obj0);
3386 if (arg1 == NULL) SWIG_fail;
423f194a 3387 temp1 = True;
d14a1e28
RD
3388 }
3389 if (obj1) {
3390 {
3391 arg2 = wxString_in_helper(obj1);
3392 if (arg2 == NULL) SWIG_fail;
423f194a 3393 temp2 = True;
d14a1e28
RD
3394 }
3395 }
8edf1c75
RD
3396 if (obj2) {
3397 {
3398 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3399 if (PyErr_Occurred()) SWIG_fail;
3400 }
3401 }
d14a1e28
RD
3402 if (obj3) {
3403 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3404 }
8edf1c75
RD
3405 if (obj4) {
3406 {
3407 arg5 = (int) SWIG_PyObj_AsInt(obj4);
3408 if (PyErr_Occurred()) SWIG_fail;
3409 }
3410 }
3411 if (obj5) {
3412 {
3413 arg6 = (int) SWIG_PyObj_AsInt(obj5);
3414 if (PyErr_Occurred()) SWIG_fail;
3415 }
3416 }
d14a1e28
RD
3417 {
3418 PyThreadState* __tstate = wxPyBeginAllowThreads();
3419 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3420
3421 wxPyEndAllowThreads(__tstate);
3422 if (PyErr_Occurred()) SWIG_fail;
3423 }
8edf1c75 3424 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3425 {
3426 if (temp1)
3427 delete arg1;
3428 }
3429 {
3430 if (temp2)
3431 delete arg2;
3432 }
3433 return resultobj;
3434 fail:
3435 {
3436 if (temp1)
3437 delete arg1;
3438 }
3439 {
3440 if (temp2)
3441 delete arg2;
3442 }
3443 return NULL;
3444}
3445
3446
3447static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3448 PyObject *resultobj;
3449 wxString *arg1 = 0 ;
3450 wxString *arg2 = 0 ;
3451 wxString *arg3 = 0 ;
3452 long arg4 ;
3453 long arg5 = (long) 0 ;
3454 long arg6 = (long) 100 ;
3455 wxWindow *arg7 = (wxWindow *) NULL ;
3456 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3457 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3458 long result;
423f194a
RD
3459 bool temp1 = False ;
3460 bool temp2 = False ;
3461 bool temp3 = False ;
d14a1e28
RD
3462 wxPoint temp8 ;
3463 PyObject * obj0 = 0 ;
3464 PyObject * obj1 = 0 ;
3465 PyObject * obj2 = 0 ;
8edf1c75
RD
3466 PyObject * obj3 = 0 ;
3467 PyObject * obj4 = 0 ;
3468 PyObject * obj5 = 0 ;
3469 PyObject * obj6 = 0 ;
d14a1e28
RD
3470 PyObject * obj7 = 0 ;
3471 char *kwnames[] = {
3472 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3473 };
3474
8edf1c75 3475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d14a1e28
RD
3476 {
3477 arg1 = wxString_in_helper(obj0);
3478 if (arg1 == NULL) SWIG_fail;
423f194a 3479 temp1 = True;
d14a1e28
RD
3480 }
3481 {
3482 arg2 = wxString_in_helper(obj1);
3483 if (arg2 == NULL) SWIG_fail;
423f194a 3484 temp2 = True;
d14a1e28
RD
3485 }
3486 {
3487 arg3 = wxString_in_helper(obj2);
3488 if (arg3 == NULL) SWIG_fail;
423f194a 3489 temp3 = True;
d14a1e28 3490 }
8edf1c75
RD
3491 {
3492 arg4 = (long) SWIG_PyObj_AsLong(obj3);
3493 if (PyErr_Occurred()) SWIG_fail;
3494 }
3495 if (obj4) {
3496 {
3497 arg5 = (long) SWIG_PyObj_AsLong(obj4);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 }
3501 if (obj5) {
3502 {
3503 arg6 = (long) SWIG_PyObj_AsLong(obj5);
3504 if (PyErr_Occurred()) SWIG_fail;
3505 }
3506 }
d14a1e28
RD
3507 if (obj6) {
3508 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3509 }
3510 if (obj7) {
3511 {
3512 arg8 = &temp8;
3513 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3514 }
3515 }
3516 {
3517 PyThreadState* __tstate = wxPyBeginAllowThreads();
3518 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3519
3520 wxPyEndAllowThreads(__tstate);
3521 if (PyErr_Occurred()) SWIG_fail;
3522 }
8edf1c75 3523 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
3524 {
3525 if (temp1)
3526 delete arg1;
3527 }
3528 {
3529 if (temp2)
3530 delete arg2;
3531 }
3532 {
3533 if (temp3)
3534 delete arg3;
3535 }
3536 return resultobj;
3537 fail:
3538 {
3539 if (temp1)
3540 delete arg1;
3541 }
3542 {
3543 if (temp2)
3544 delete arg2;
3545 }
3546 {
3547 if (temp3)
3548 delete arg3;
3549 }
3550 return NULL;
3551}
3552
3553
3554static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3555 PyObject *resultobj;
3556 bool result;
3557 char *kwnames[] = {
3558 NULL
3559 };
3560
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3562 {
3563 PyThreadState* __tstate = wxPyBeginAllowThreads();
3564 result = (bool)wxColourDisplay();
3565
3566 wxPyEndAllowThreads(__tstate);
3567 if (PyErr_Occurred()) SWIG_fail;
3568 }
02a34c4c 3569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3570 return resultobj;
3571 fail:
3572 return NULL;
3573}
3574
3575
3576static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3577 PyObject *resultobj;
3578 int result;
3579 char *kwnames[] = {
3580 NULL
3581 };
3582
3583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3584 {
3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
3586 result = (int)wxDisplayDepth();
3587
3588 wxPyEndAllowThreads(__tstate);
3589 if (PyErr_Occurred()) SWIG_fail;
3590 }
8edf1c75 3591 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3592 return resultobj;
3593 fail:
3594 return NULL;
3595}
3596
3597
3598static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3599 PyObject *resultobj;
3600 int result;
3601 char *kwnames[] = {
3602 NULL
3603 };
3604
3605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3606 {
3607 PyThreadState* __tstate = wxPyBeginAllowThreads();
3608 result = (int)wxGetDisplayDepth();
3609
3610 wxPyEndAllowThreads(__tstate);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
8edf1c75 3613 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3614 return resultobj;
3615 fail:
3616 return NULL;
3617}
3618
3619
3620static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3621 PyObject *resultobj;
3622 int *arg1 = (int *) 0 ;
3623 int *arg2 = (int *) 0 ;
3624 int temp1 ;
3625 int temp2 ;
3626 char *kwnames[] = {
3627 NULL
3628 };
3629
3630 arg1 = &temp1;
3631 arg2 = &temp2;
3632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3633 {
3634 PyThreadState* __tstate = wxPyBeginAllowThreads();
3635 wxDisplaySize(arg1,arg2);
3636
3637 wxPyEndAllowThreads(__tstate);
3638 if (PyErr_Occurred()) SWIG_fail;
3639 }
3640 Py_INCREF(Py_None); resultobj = Py_None;
3641 {
3642 PyObject *o = PyInt_FromLong((long) (*arg1));
3643 resultobj = t_output_helper(resultobj,o);
3644 }
3645 {
3646 PyObject *o = PyInt_FromLong((long) (*arg2));
3647 resultobj = t_output_helper(resultobj,o);
3648 }
3649 return resultobj;
3650 fail:
3651 return NULL;
3652}
3653
3654
3655static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3656 PyObject *resultobj;
3657 wxSize result;
3658 char *kwnames[] = {
3659 NULL
3660 };
3661
3662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3663 {
3664 PyThreadState* __tstate = wxPyBeginAllowThreads();
3665 result = wxGetDisplaySize();
3666
3667 wxPyEndAllowThreads(__tstate);
3668 if (PyErr_Occurred()) SWIG_fail;
3669 }
3670 {
3671 wxSize * resultptr;
3672 resultptr = new wxSize((wxSize &) result);
3673 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
3674 }
3675 return resultobj;
3676 fail:
3677 return NULL;
3678}
3679
3680
3681static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3682 PyObject *resultobj;
3683 int *arg1 = (int *) 0 ;
3684 int *arg2 = (int *) 0 ;
3685 int temp1 ;
3686 int temp2 ;
3687 char *kwnames[] = {
3688 NULL
3689 };
3690
3691 arg1 = &temp1;
3692 arg2 = &temp2;
3693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3694 {
3695 PyThreadState* __tstate = wxPyBeginAllowThreads();
3696 wxDisplaySizeMM(arg1,arg2);
3697
3698 wxPyEndAllowThreads(__tstate);
3699 if (PyErr_Occurred()) SWIG_fail;
3700 }
3701 Py_INCREF(Py_None); resultobj = Py_None;
3702 {
3703 PyObject *o = PyInt_FromLong((long) (*arg1));
3704 resultobj = t_output_helper(resultobj,o);
3705 }
3706 {
3707 PyObject *o = PyInt_FromLong((long) (*arg2));
3708 resultobj = t_output_helper(resultobj,o);
3709 }
3710 return resultobj;
3711 fail:
3712 return NULL;
3713}
3714
3715
3716static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3717 PyObject *resultobj;
3718 wxSize result;
3719 char *kwnames[] = {
3720 NULL
3721 };
3722
3723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3724 {
3725 PyThreadState* __tstate = wxPyBeginAllowThreads();
3726 result = wxGetDisplaySizeMM();
3727
3728 wxPyEndAllowThreads(__tstate);
3729 if (PyErr_Occurred()) SWIG_fail;
3730 }
3731 {
3732 wxSize * resultptr;
3733 resultptr = new wxSize((wxSize &) result);
3734 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
3735 }
3736 return resultobj;
3737 fail:
3738 return NULL;
3739}
3740
3741
3742static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj;
3744 int *arg1 = (int *) 0 ;
3745 int *arg2 = (int *) 0 ;
3746 int *arg3 = (int *) 0 ;
3747 int *arg4 = (int *) 0 ;
3748 int temp1 ;
3749 int temp2 ;
3750 int temp3 ;
3751 int temp4 ;
3752 char *kwnames[] = {
3753 NULL
3754 };
3755
3756 arg1 = &temp1;
3757 arg2 = &temp2;
3758 arg3 = &temp3;
3759 arg4 = &temp4;
3760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3764
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) SWIG_fail;
3767 }
3768 Py_INCREF(Py_None); resultobj = Py_None;
3769 {
3770 PyObject *o = PyInt_FromLong((long) (*arg1));
3771 resultobj = t_output_helper(resultobj,o);
3772 }
3773 {
3774 PyObject *o = PyInt_FromLong((long) (*arg2));
3775 resultobj = t_output_helper(resultobj,o);
3776 }
3777 {
3778 PyObject *o = PyInt_FromLong((long) (*arg3));
3779 resultobj = t_output_helper(resultobj,o);
3780 }
3781 {
3782 PyObject *o = PyInt_FromLong((long) (*arg4));
3783 resultobj = t_output_helper(resultobj,o);
3784 }
3785 return resultobj;
3786 fail:
3787 return NULL;
3788}
3789
3790
3791static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3792 PyObject *resultobj;
3793 wxRect result;
3794 char *kwnames[] = {
3795 NULL
3796 };
3797
3798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 result = wxGetClientDisplayRect();
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 {
3807 wxRect * resultptr;
3808 resultptr = new wxRect((wxRect &) result);
3809 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
3810 }
3811 return resultobj;
3812 fail:
3813 return NULL;
3814}
3815
3816
3817static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3818 PyObject *resultobj;
3819 wxCursor *arg1 = 0 ;
3820 PyObject * obj0 = 0 ;
3821 char *kwnames[] = {
3822 (char *) "cursor", NULL
3823 };
3824
3825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3827 if (arg1 == NULL) {
3828 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3829 }
3830 {
3831 PyThreadState* __tstate = wxPyBeginAllowThreads();
3832 wxSetCursor(*arg1);
3833
3834 wxPyEndAllowThreads(__tstate);
3835 if (PyErr_Occurred()) SWIG_fail;
3836 }
3837 Py_INCREF(Py_None); resultobj = Py_None;
3838 return resultobj;
3839 fail:
3840 return NULL;
3841}
3842
3843
3844static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject *resultobj;
3846 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3847 PyObject * obj0 = 0 ;
3848 char *kwnames[] = {
3849 (char *) "cursor", NULL
3850 };
3851
3852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
3853 if (obj0) {
3854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3855 }
3856 {
3857 PyThreadState* __tstate = wxPyBeginAllowThreads();
3858 wxBeginBusyCursor(arg1);
3859
3860 wxPyEndAllowThreads(__tstate);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 Py_INCREF(Py_None); resultobj = Py_None;
3864 return resultobj;
3865 fail:
3866 return NULL;
3867}
3868
3869
3870static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3871 PyObject *resultobj;
3872 wxWindow *result;
3873 char *kwnames[] = {
3874 NULL
3875 };
3876
3877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
3878 {
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 result = (wxWindow *)wxGetActiveWindow();
3881
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 {
3886 resultobj = wxPyMake_wxObject(result);
3887 }
3888 return resultobj;
3889 fail:
3890 return NULL;
3891}
3892
3893
3894static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3895 PyObject *resultobj;
3896 wxPoint *arg1 = 0 ;
3897 wxWindow *result;
3898 wxPoint temp1 ;
3899 PyObject * obj0 = 0 ;
3900 char *kwnames[] = {
3901 (char *) "pt", NULL
3902 };
3903
3904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
3905 {
3906 arg1 = &temp1;
3907 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3908 }
3909 {
3910 PyThreadState* __tstate = wxPyBeginAllowThreads();
3911 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
3912
3913 wxPyEndAllowThreads(__tstate);
3914 if (PyErr_Occurred()) SWIG_fail;
3915 }
3916 {
3917 resultobj = wxPyMake_wxObject(result);
3918 }
3919 return resultobj;
3920 fail:
3921 return NULL;
3922}
3923
3924
3925static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3926 PyObject *resultobj;
3927 wxPoint *arg1 = 0 ;
3928 wxWindow *result;
3929 wxPoint temp1 ;
3930 PyObject * obj0 = 0 ;
3931 char *kwnames[] = {
3932 (char *) "pt", NULL
3933 };
3934
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
3936 {
3937 arg1 = &temp1;
3938 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3939 }
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
3943
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) SWIG_fail;
3946 }
3947 {
3948 resultobj = wxPyMake_wxObject(result);
3949 }
3950 return resultobj;
3951 fail:
3952 return NULL;
3953}
3954
3955
3956static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3957 PyObject *resultobj;
3958 wxWindow *arg1 = (wxWindow *) 0 ;
3959 wxWindow *result;
3960 PyObject * obj0 = 0 ;
3961 char *kwnames[] = {
3962 (char *) "win", NULL
3963 };
3964
3965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
3966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3967 {
3968 PyThreadState* __tstate = wxPyBeginAllowThreads();
3969 result = (wxWindow *)wxGetTopLevelParent(arg1);
3970
3971 wxPyEndAllowThreads(__tstate);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 {
3975 resultobj = wxPyMake_wxObject(result);
3976 }
3977 return resultobj;
3978 fail:
3979 return NULL;
3980}
3981
3982
cbd72d4f
RD
3983static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 int arg1 ;
3986 bool result;
8edf1c75 3987 PyObject * obj0 = 0 ;
cbd72d4f
RD
3988 char *kwnames[] = {
3989 (char *) "key", NULL
3990 };
3991
8edf1c75
RD
3992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
3993 {
3994 arg1 = (wxKeyCode) SWIG_PyObj_AsInt(obj0);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
cbd72d4f
RD
3997 {
3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
3999 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4000
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
02a34c4c 4004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
cbd72d4f
RD
4005 return resultobj;
4006 fail:
4007 return NULL;
4008}
4009
4010
d14a1e28
RD
4011static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4012 PyObject *resultobj;
4013 char *kwnames[] = {
4014 NULL
4015 };
4016
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 wxWakeUpMainThread();
4021
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 Py_INCREF(Py_None); resultobj = Py_None;
4026 return resultobj;
4027 fail:
4028 return NULL;
4029}
4030
4031
4032static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4033 PyObject *resultobj;
4034 char *kwnames[] = {
4035 NULL
4036 };
4037
4038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4039 {
4040 PyThreadState* __tstate = wxPyBeginAllowThreads();
4041 wxMutexGuiEnter();
4042
4043 wxPyEndAllowThreads(__tstate);
4044 if (PyErr_Occurred()) SWIG_fail;
4045 }
4046 Py_INCREF(Py_None); resultobj = Py_None;
4047 return resultobj;
4048 fail:
4049 return NULL;
4050}
4051
4052
4053static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4054 PyObject *resultobj;
4055 char *kwnames[] = {
4056 NULL
4057 };
4058
4059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 wxMutexGuiLeave();
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 Py_INCREF(Py_None); resultobj = Py_None;
4068 return resultobj;
4069 fail:
4070 return NULL;
4071}
4072
4073
4074static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4075 PyObject *resultobj;
4076 wxMutexGuiLocker *result;
4077 char *kwnames[] = {
4078 NULL
4079 };
4080
4081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4082 {
4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
4084 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4085
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1);
4090 return resultobj;
4091 fail:
4092 return NULL;
4093}
4094
4095
4096static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4097 PyObject *resultobj;
4098 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4099 PyObject * obj0 = 0 ;
4100 char *kwnames[] = {
4101 (char *) "self", NULL
4102 };
4103
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 delete arg1;
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 Py_INCREF(Py_None); resultobj = Py_None;
4114 return resultobj;
4115 fail:
4116 return NULL;
4117}
4118
4119
4120static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4121 PyObject *obj;
4122 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4123 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4124 Py_INCREF(obj);
4125 return Py_BuildValue((char *)"");
4126}
4127static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4128 PyObject *resultobj;
4129 bool result;
4130 char *kwnames[] = {
4131 NULL
4132 };
4133
4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4135 {
4136 PyThreadState* __tstate = wxPyBeginAllowThreads();
4137 result = (bool)wxThread_IsMain();
4138
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
02a34c4c 4142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4143 return resultobj;
4144 fail:
4145 return NULL;
4146}
4147
4148
4149static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj;
4151 wxString *arg1 = 0 ;
4152 wxToolTip *result;
423f194a 4153 bool temp1 = False ;
d14a1e28
RD
4154 PyObject * obj0 = 0 ;
4155 char *kwnames[] = {
4156 (char *) "tip", NULL
4157 };
4158
4159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4160 {
4161 arg1 = wxString_in_helper(obj0);
4162 if (arg1 == NULL) SWIG_fail;
423f194a 4163 temp1 = True;
d14a1e28
RD
4164 }
4165 {
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4168
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) SWIG_fail;
4171 }
4172 {
4173 resultobj = wxPyMake_wxObject(result);
4174 }
4175 {
4176 if (temp1)
4177 delete arg1;
4178 }
4179 return resultobj;
4180 fail:
4181 {
4182 if (temp1)
4183 delete arg1;
4184 }
4185 return NULL;
4186}
4187
4188
4189static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4190 PyObject *resultobj;
4191 wxToolTip *arg1 = (wxToolTip *) 0 ;
4192 wxString *arg2 = 0 ;
423f194a 4193 bool temp2 = False ;
d14a1e28
RD
4194 PyObject * obj0 = 0 ;
4195 PyObject * obj1 = 0 ;
4196 char *kwnames[] = {
4197 (char *) "self",(char *) "tip", NULL
4198 };
4199
4200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4202 {
4203 arg2 = wxString_in_helper(obj1);
4204 if (arg2 == NULL) SWIG_fail;
423f194a 4205 temp2 = True;
d14a1e28
RD
4206 }
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 (arg1)->SetTip((wxString const &)*arg2);
4210
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 Py_INCREF(Py_None); resultobj = Py_None;
4215 {
4216 if (temp2)
4217 delete arg2;
4218 }
4219 return resultobj;
4220 fail:
4221 {
4222 if (temp2)
4223 delete arg2;
4224 }
4225 return NULL;
4226}
4227
4228
4229static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4230 PyObject *resultobj;
4231 wxToolTip *arg1 = (wxToolTip *) 0 ;
4232 wxString result;
4233 PyObject * obj0 = 0 ;
4234 char *kwnames[] = {
4235 (char *) "self", NULL
4236 };
4237
4238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4240 {
4241 PyThreadState* __tstate = wxPyBeginAllowThreads();
4242 result = (arg1)->GetTip();
4243
4244 wxPyEndAllowThreads(__tstate);
4245 if (PyErr_Occurred()) SWIG_fail;
4246 }
4247 {
4248#if wxUSE_UNICODE
4249 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4250#else
4251 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4252#endif
4253 }
4254 return resultobj;
4255 fail:
4256 return NULL;
4257}
4258
4259
4260static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4261 PyObject *resultobj;
4262 wxToolTip *arg1 = (wxToolTip *) 0 ;
4263 wxWindow *result;
4264 PyObject * obj0 = 0 ;
4265 char *kwnames[] = {
4266 (char *) "self", NULL
4267 };
4268
4269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 result = (wxWindow *)(arg1)->GetWindow();
4274
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 {
4279 resultobj = wxPyMake_wxObject(result);
4280 }
4281 return resultobj;
4282 fail:
4283 return NULL;
4284}
4285
4286
4287static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 bool arg1 ;
4290 PyObject * obj0 = 0 ;
4291 char *kwnames[] = {
4292 (char *) "flag", NULL
4293 };
4294
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
2dbef272 4296 {
8edf1c75 4297 arg1 = (bool) SWIG_PyObj_AsBool(obj0);
2dbef272
RD
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
d14a1e28
RD
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 wxToolTip::Enable(arg1);
4303
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 Py_INCREF(Py_None); resultobj = Py_None;
4308 return resultobj;
4309 fail:
4310 return NULL;
4311}
4312
4313
4314static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj;
4316 long arg1 ;
8edf1c75 4317 PyObject * obj0 = 0 ;
d14a1e28
RD
4318 char *kwnames[] = {
4319 (char *) "milliseconds", NULL
4320 };
4321
8edf1c75
RD
4322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4323 {
4324 arg1 = (long) SWIG_PyObj_AsLong(obj0);
4325 if (PyErr_Occurred()) SWIG_fail;
4326 }
d14a1e28
RD
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 wxToolTip::SetDelay(arg1);
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 Py_INCREF(Py_None); resultobj = Py_None;
4335 return resultobj;
4336 fail:
4337 return NULL;
4338}
4339
4340
4341static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4342 PyObject *obj;
4343 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4344 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4345 Py_INCREF(obj);
4346 return Py_BuildValue((char *)"");
4347}
4348static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj;
4350 wxWindow *arg1 = (wxWindow *) 0 ;
4351 wxSize *arg2 = 0 ;
4352 wxCaret *result;
4353 wxSize temp2 ;
4354 PyObject * obj0 = 0 ;
4355 PyObject * obj1 = 0 ;
4356 char *kwnames[] = {
4357 (char *) "window",(char *) "size", NULL
4358 };
4359
4360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4362 {
4363 arg2 = &temp2;
4364 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4365 }
4366 {
4367 PyThreadState* __tstate = wxPyBeginAllowThreads();
4368 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4369
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 }
4373 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1);
4374 return resultobj;
4375 fail:
4376 return NULL;
4377}
4378
4379
4380static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4381 PyObject *resultobj;
4382 wxCaret *arg1 = (wxCaret *) 0 ;
4383 PyObject * obj0 = 0 ;
4384 char *kwnames[] = {
4385 (char *) "self", NULL
4386 };
4387
4388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4390 {
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 delete arg1;
4393
4394 wxPyEndAllowThreads(__tstate);
4395 if (PyErr_Occurred()) SWIG_fail;
4396 }
4397 Py_INCREF(Py_None); resultobj = Py_None;
4398 return resultobj;
4399 fail:
4400 return NULL;
4401}
4402
4403
4404static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4405 PyObject *resultobj;
4406 wxCaret *arg1 = (wxCaret *) 0 ;
4407 bool result;
4408 PyObject * obj0 = 0 ;
4409 char *kwnames[] = {
4410 (char *) "self", NULL
4411 };
4412
4413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4415 {
4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
4417 result = (bool)(arg1)->IsOk();
4418
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
02a34c4c 4422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4423 return resultobj;
4424 fail:
4425 return NULL;
4426}
4427
4428
4429static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4430 PyObject *resultobj;
4431 wxCaret *arg1 = (wxCaret *) 0 ;
4432 bool result;
4433 PyObject * obj0 = 0 ;
4434 char *kwnames[] = {
4435 (char *) "self", NULL
4436 };
4437
4438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 result = (bool)(arg1)->IsVisible();
4443
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
02a34c4c 4447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4448 return resultobj;
4449 fail:
4450 return NULL;
4451}
4452
4453
44127b65
RD
4454static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj;
4456 wxCaret *arg1 = (wxCaret *) 0 ;
4457 wxPoint result;
4458 PyObject * obj0 = 0 ;
4459 char *kwnames[] = {
4460 (char *) "self", NULL
4461 };
4462
4463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4465 {
4466 PyThreadState* __tstate = wxPyBeginAllowThreads();
4467 result = (arg1)->GetPosition();
4468
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 {
4473 wxPoint * resultptr;
4474 resultptr = new wxPoint((wxPoint &) result);
4475 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
4476 }
4477 return resultobj;
4478 fail:
4479 return NULL;
4480}
4481
4482
d14a1e28
RD
4483static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj;
4485 wxCaret *arg1 = (wxCaret *) 0 ;
4486 int *arg2 = (int *) 0 ;
4487 int *arg3 = (int *) 0 ;
4488 int temp2 ;
4489 int temp3 ;
4490 PyObject * obj0 = 0 ;
4491 char *kwnames[] = {
4492 (char *) "self", NULL
4493 };
4494
4495 arg2 = &temp2;
4496 arg3 = &temp3;
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4499 {
4500 PyThreadState* __tstate = wxPyBeginAllowThreads();
4501 (arg1)->GetPosition(arg2,arg3);
4502
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 Py_INCREF(Py_None); resultobj = Py_None;
4507 {
4508 PyObject *o = PyInt_FromLong((long) (*arg2));
4509 resultobj = t_output_helper(resultobj,o);
4510 }
4511 {
4512 PyObject *o = PyInt_FromLong((long) (*arg3));
4513 resultobj = t_output_helper(resultobj,o);
4514 }
4515 return resultobj;
4516 fail:
4517 return NULL;
4518}
4519
4520
44127b65 4521static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4522 PyObject *resultobj;
4523 wxCaret *arg1 = (wxCaret *) 0 ;
44127b65 4524 wxSize result;
d14a1e28
RD
4525 PyObject * obj0 = 0 ;
4526 char *kwnames[] = {
4527 (char *) "self", NULL
4528 };
4529
44127b65 4530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
d14a1e28
RD
4531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4532 {
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 4534 result = (arg1)->GetSize();
d14a1e28
RD
4535
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 }
4539 {
44127b65
RD
4540 wxSize * resultptr;
4541 resultptr = new wxSize((wxSize &) result);
4542 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
4543 }
4544 return resultobj;
4545 fail:
4546 return NULL;
4547}
4548
4549
4550static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj;
4552 wxCaret *arg1 = (wxCaret *) 0 ;
4553 int *arg2 = (int *) 0 ;
4554 int *arg3 = (int *) 0 ;
4555 int temp2 ;
4556 int temp3 ;
4557 PyObject * obj0 = 0 ;
4558 char *kwnames[] = {
4559 (char *) "self", NULL
4560 };
4561
4562 arg2 = &temp2;
4563 arg3 = &temp3;
4564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4566 {
4567 PyThreadState* __tstate = wxPyBeginAllowThreads();
4568 (arg1)->GetSize(arg2,arg3);
4569
4570 wxPyEndAllowThreads(__tstate);
4571 if (PyErr_Occurred()) SWIG_fail;
4572 }
4573 Py_INCREF(Py_None); resultobj = Py_None;
4574 {
4575 PyObject *o = PyInt_FromLong((long) (*arg2));
4576 resultobj = t_output_helper(resultobj,o);
4577 }
4578 {
4579 PyObject *o = PyInt_FromLong((long) (*arg3));
4580 resultobj = t_output_helper(resultobj,o);
4581 }
4582 return resultobj;
4583 fail:
4584 return NULL;
4585}
4586
4587
d14a1e28
RD
4588static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4589 PyObject *resultobj;
4590 wxCaret *arg1 = (wxCaret *) 0 ;
4591 wxWindow *result;
4592 PyObject * obj0 = 0 ;
4593 char *kwnames[] = {
4594 (char *) "self", NULL
4595 };
4596
4597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 result = (wxWindow *)(arg1)->GetWindow();
4602
4603 wxPyEndAllowThreads(__tstate);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 }
4606 {
4607 resultobj = wxPyMake_wxObject(result);
4608 }
4609 return resultobj;
4610 fail:
4611 return NULL;
4612}
4613
4614
4615static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4616 PyObject *resultobj;
4617 wxCaret *arg1 = (wxCaret *) 0 ;
4618 int arg2 ;
4619 int arg3 ;
4620 PyObject * obj0 = 0 ;
8edf1c75
RD
4621 PyObject * obj1 = 0 ;
4622 PyObject * obj2 = 0 ;
d14a1e28
RD
4623 char *kwnames[] = {
4624 (char *) "self",(char *) "x",(char *) "y", NULL
4625 };
4626
8edf1c75 4627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 4628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4629 {
4630 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4631 if (PyErr_Occurred()) SWIG_fail;
4632 }
4633 {
4634 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4635 if (PyErr_Occurred()) SWIG_fail;
4636 }
d14a1e28
RD
4637 {
4638 PyThreadState* __tstate = wxPyBeginAllowThreads();
4639 (arg1)->Move(arg2,arg3);
4640
4641 wxPyEndAllowThreads(__tstate);
4642 if (PyErr_Occurred()) SWIG_fail;
4643 }
4644 Py_INCREF(Py_None); resultobj = Py_None;
4645 return resultobj;
4646 fail:
4647 return NULL;
4648}
4649
4650
4651static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxCaret *arg1 = (wxCaret *) 0 ;
4654 wxPoint *arg2 = 0 ;
4655 wxPoint temp2 ;
4656 PyObject * obj0 = 0 ;
4657 PyObject * obj1 = 0 ;
4658 char *kwnames[] = {
4659 (char *) "self",(char *) "pt", NULL
4660 };
4661
4662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4664 {
4665 arg2 = &temp2;
4666 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4667 }
4668 {
4669 PyThreadState* __tstate = wxPyBeginAllowThreads();
4670 (arg1)->Move((wxPoint const &)*arg2);
4671
4672 wxPyEndAllowThreads(__tstate);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 Py_INCREF(Py_None); resultobj = Py_None;
4676 return resultobj;
4677 fail:
4678 return NULL;
4679}
4680
4681
4682static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4683 PyObject *resultobj;
4684 wxCaret *arg1 = (wxCaret *) 0 ;
4685 int arg2 ;
4686 int arg3 ;
4687 PyObject * obj0 = 0 ;
8edf1c75
RD
4688 PyObject * obj1 = 0 ;
4689 PyObject * obj2 = 0 ;
d14a1e28
RD
4690 char *kwnames[] = {
4691 (char *) "self",(char *) "width",(char *) "height", NULL
4692 };
4693
8edf1c75 4694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 4695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4696 {
4697 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4698 if (PyErr_Occurred()) SWIG_fail;
4699 }
4700 {
4701 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4702 if (PyErr_Occurred()) SWIG_fail;
4703 }
d14a1e28
RD
4704 {
4705 PyThreadState* __tstate = wxPyBeginAllowThreads();
4706 (arg1)->SetSize(arg2,arg3);
4707
4708 wxPyEndAllowThreads(__tstate);
4709 if (PyErr_Occurred()) SWIG_fail;
4710 }
4711 Py_INCREF(Py_None); resultobj = Py_None;
4712 return resultobj;
4713 fail:
4714 return NULL;
4715}
4716
4717
4718static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4719 PyObject *resultobj;
4720 wxCaret *arg1 = (wxCaret *) 0 ;
4721 wxSize *arg2 = 0 ;
4722 wxSize temp2 ;
4723 PyObject * obj0 = 0 ;
4724 PyObject * obj1 = 0 ;
4725 char *kwnames[] = {
4726 (char *) "self",(char *) "size", NULL
4727 };
4728
4729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4731 {
4732 arg2 = &temp2;
4733 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4734 }
4735 {
4736 PyThreadState* __tstate = wxPyBeginAllowThreads();
4737 (arg1)->SetSize((wxSize const &)*arg2);
4738
4739 wxPyEndAllowThreads(__tstate);
4740 if (PyErr_Occurred()) SWIG_fail;
4741 }
4742 Py_INCREF(Py_None); resultobj = Py_None;
4743 return resultobj;
4744 fail:
4745 return NULL;
4746}
4747
4748
4749static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4750 PyObject *resultobj;
4751 wxCaret *arg1 = (wxCaret *) 0 ;
423f194a 4752 int arg2 = (int) True ;
d14a1e28 4753 PyObject * obj0 = 0 ;
8edf1c75 4754 PyObject * obj1 = 0 ;
d14a1e28
RD
4755 char *kwnames[] = {
4756 (char *) "self",(char *) "show", NULL
4757 };
4758
8edf1c75 4759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4761 if (obj1) {
4762 {
4763 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 }
d14a1e28
RD
4767 {
4768 PyThreadState* __tstate = wxPyBeginAllowThreads();
4769 (arg1)->Show(arg2);
4770
4771 wxPyEndAllowThreads(__tstate);
4772 if (PyErr_Occurred()) SWIG_fail;
4773 }
4774 Py_INCREF(Py_None); resultobj = Py_None;
4775 return resultobj;
4776 fail:
4777 return NULL;
4778}
4779
4780
4781static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4782 PyObject *resultobj;
4783 wxCaret *arg1 = (wxCaret *) 0 ;
4784 PyObject * obj0 = 0 ;
4785 char *kwnames[] = {
4786 (char *) "self", NULL
4787 };
4788
4789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4791 {
4792 PyThreadState* __tstate = wxPyBeginAllowThreads();
4793 (arg1)->Hide();
4794
4795 wxPyEndAllowThreads(__tstate);
4796 if (PyErr_Occurred()) SWIG_fail;
4797 }
4798 Py_INCREF(Py_None); resultobj = Py_None;
4799 return resultobj;
4800 fail:
4801 return NULL;
4802}
4803
4804
4805static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
4806 PyObject *obj;
4807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4808 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4809 Py_INCREF(obj);
4810 return Py_BuildValue((char *)"");
4811}
4812static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4813 PyObject *resultobj;
4814 int result;
4815 char *kwnames[] = {
4816 NULL
4817 };
4818
4819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (int)wxCaret_GetBlinkTime();
4823
4824 wxPyEndAllowThreads(__tstate);
4825 if (PyErr_Occurred()) SWIG_fail;
4826 }
8edf1c75 4827 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
4828 return resultobj;
4829 fail:
4830 return NULL;
4831}
4832
4833
4834static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4835 PyObject *resultobj;
4836 int arg1 ;
8edf1c75 4837 PyObject * obj0 = 0 ;
d14a1e28
RD
4838 char *kwnames[] = {
4839 (char *) "milliseconds", NULL
4840 };
4841
8edf1c75
RD
4842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
4843 {
4844 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
d14a1e28
RD
4847 {
4848 PyThreadState* __tstate = wxPyBeginAllowThreads();
4849 wxCaret_SetBlinkTime(arg1);
4850
4851 wxPyEndAllowThreads(__tstate);
4852 if (PyErr_Occurred()) SWIG_fail;
4853 }
4854 Py_INCREF(Py_None); resultobj = Py_None;
4855 return resultobj;
4856 fail:
4857 return NULL;
4858}
4859
4860
4861static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4862 PyObject *resultobj;
4863 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4864 wxBusyCursor *result;
4865 PyObject * obj0 = 0 ;
4866 char *kwnames[] = {
4867 (char *) "cursor", NULL
4868 };
4869
4870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
4871 if (obj0) {
4872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4873 }
4874 {
4875 PyThreadState* __tstate = wxPyBeginAllowThreads();
4876 result = (wxBusyCursor *)new wxBusyCursor(arg1);
4877
4878 wxPyEndAllowThreads(__tstate);
4879 if (PyErr_Occurred()) SWIG_fail;
4880 }
4881 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1);
4882 return resultobj;
4883 fail:
4884 return NULL;
4885}
4886
4887
4888static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4889 PyObject *resultobj;
4890 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
4891 PyObject * obj0 = 0 ;
4892 char *kwnames[] = {
4893 (char *) "self", NULL
4894 };
4895
4896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
4897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4898 {
4899 PyThreadState* __tstate = wxPyBeginAllowThreads();
4900 delete arg1;
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 * BusyCursor_swigregister(PyObject *self, PyObject *args) {
4913 PyObject *obj;
4914 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4915 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
4916 Py_INCREF(obj);
4917 return Py_BuildValue((char *)"");
4918}
4919static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
4920 PyObject *resultobj;
4921 wxWindow *arg1 = (wxWindow *) NULL ;
4922 wxWindowDisabler *result;
4923 PyObject * obj0 = 0 ;
4924 char *kwnames[] = {
4925 (char *) "winToSkip", NULL
4926 };
4927
4928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
4929 if (obj0) {
4930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4931 }
4932 {
4933 PyThreadState* __tstate = wxPyBeginAllowThreads();
4934 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
4935
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1);
4940 return resultobj;
4941 fail:
4942 return NULL;
4943}
4944
4945
4946static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
4947 PyObject *resultobj;
4948 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
4949 PyObject * obj0 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "self", NULL
4952 };
4953
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
4955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 delete arg1;
4959
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 Py_INCREF(Py_None); resultobj = Py_None;
4964 return resultobj;
4965 fail:
4966 return NULL;
4967}
4968
4969
4970static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
4971 PyObject *obj;
4972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4973 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
4974 Py_INCREF(obj);
4975 return Py_BuildValue((char *)"");
4976}
4977static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4978 PyObject *resultobj;
4979 wxString *arg1 = 0 ;
4980 wxBusyInfo *result;
423f194a 4981 bool temp1 = False ;
d14a1e28
RD
4982 PyObject * obj0 = 0 ;
4983 char *kwnames[] = {
4984 (char *) "message", NULL
4985 };
4986
4987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
4988 {
4989 arg1 = wxString_in_helper(obj0);
4990 if (arg1 == NULL) SWIG_fail;
423f194a 4991 temp1 = True;
d14a1e28
RD
4992 }
4993 {
4994 PyThreadState* __tstate = wxPyBeginAllowThreads();
4995 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
4996
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1);
5001 {
5002 if (temp1)
5003 delete arg1;
5004 }
5005 return resultobj;
5006 fail:
5007 {
5008 if (temp1)
5009 delete arg1;
5010 }
5011 return NULL;
5012}
5013
5014
5015static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5016 PyObject *resultobj;
5017 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5018 PyObject * obj0 = 0 ;
5019 char *kwnames[] = {
5020 (char *) "self", NULL
5021 };
5022
5023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 delete arg1;
5028
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 Py_INCREF(Py_None); resultobj = Py_None;
5033 return resultobj;
5034 fail:
5035 return NULL;
5036}
5037
5038
5039static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5040 PyObject *obj;
5041 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5042 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5043 Py_INCREF(obj);
5044 return Py_BuildValue((char *)"");
5045}
5046static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5047 PyObject *resultobj;
5048 wxStopWatch *result;
5049 char *kwnames[] = {
5050 NULL
5051 };
5052
5053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5054 {
5055 PyThreadState* __tstate = wxPyBeginAllowThreads();
5056 result = (wxStopWatch *)new wxStopWatch();
5057
5058 wxPyEndAllowThreads(__tstate);
5059 if (PyErr_Occurred()) SWIG_fail;
5060 }
5061 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1);
5062 return resultobj;
5063 fail:
5064 return NULL;
5065}
5066
5067
5068static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5069 PyObject *resultobj;
5070 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5071 long arg2 = (long) 0 ;
5072 PyObject * obj0 = 0 ;
8edf1c75 5073 PyObject * obj1 = 0 ;
d14a1e28
RD
5074 char *kwnames[] = {
5075 (char *) "self",(char *) "t0", NULL
5076 };
5077
8edf1c75 5078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5080 if (obj1) {
5081 {
5082 arg2 = (long) SWIG_PyObj_AsLong(obj1);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 }
d14a1e28
RD
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 (arg1)->Start(arg2);
5089
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 Py_INCREF(Py_None); resultobj = Py_None;
5094 return resultobj;
5095 fail:
5096 return NULL;
5097}
5098
5099
5100static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5101 PyObject *resultobj;
5102 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5103 PyObject * obj0 = 0 ;
5104 char *kwnames[] = {
5105 (char *) "self", NULL
5106 };
5107
5108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5110 {
5111 PyThreadState* __tstate = wxPyBeginAllowThreads();
5112 (arg1)->Pause();
5113
5114 wxPyEndAllowThreads(__tstate);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 Py_INCREF(Py_None); resultobj = Py_None;
5118 return resultobj;
5119 fail:
5120 return NULL;
5121}
5122
5123
5124static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5125 PyObject *resultobj;
5126 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5127 PyObject * obj0 = 0 ;
5128 char *kwnames[] = {
5129 (char *) "self", NULL
5130 };
5131
5132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5133 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 (arg1)->Resume();
5137
5138 wxPyEndAllowThreads(__tstate);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 }
5141 Py_INCREF(Py_None); resultobj = Py_None;
5142 return resultobj;
5143 fail:
5144 return NULL;
5145}
5146
5147
5148static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5149 PyObject *resultobj;
5150 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5151 long result;
5152 PyObject * obj0 = 0 ;
5153 char *kwnames[] = {
5154 (char *) "self", NULL
5155 };
5156
5157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 result = (long)((wxStopWatch const *)arg1)->Time();
5162
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
8edf1c75 5166 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
5167 return resultobj;
5168 fail:
5169 return NULL;
5170}
5171
5172
5173static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5174 PyObject *obj;
5175 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5176 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5177 Py_INCREF(obj);
5178 return Py_BuildValue((char *)"");
5179}
5180static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5181 PyObject *resultobj;
5182 int arg1 = (int) 9 ;
5183 wxFileHistory *result;
8edf1c75 5184 PyObject * obj0 = 0 ;
d14a1e28
RD
5185 char *kwnames[] = {
5186 (char *) "maxFiles", NULL
5187 };
5188
8edf1c75
RD
5189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5190 if (obj0) {
5191 {
5192 arg1 = (int) SWIG_PyObj_AsInt(obj0);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 }
d14a1e28
RD
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = (wxFileHistory *)new wxFileHistory(arg1);
5199
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1);
5204 return resultobj;
5205 fail:
5206 return NULL;
5207}
5208
5209
5210static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5211 PyObject *resultobj;
5212 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5213 PyObject * obj0 = 0 ;
5214 char *kwnames[] = {
5215 (char *) "self", NULL
5216 };
5217
5218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 delete arg1;
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_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5235 PyObject *resultobj;
5236 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5237 wxString *arg2 = 0 ;
423f194a 5238 bool temp2 = False ;
d14a1e28
RD
5239 PyObject * obj0 = 0 ;
5240 PyObject * obj1 = 0 ;
5241 char *kwnames[] = {
5242 (char *) "self",(char *) "file", NULL
5243 };
5244
5245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5247 {
5248 arg2 = wxString_in_helper(obj1);
5249 if (arg2 == NULL) SWIG_fail;
423f194a 5250 temp2 = True;
d14a1e28
RD
5251 }
5252 {
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 (arg1)->AddFileToHistory((wxString const &)*arg2);
5255
5256 wxPyEndAllowThreads(__tstate);
5257 if (PyErr_Occurred()) SWIG_fail;
5258 }
5259 Py_INCREF(Py_None); resultobj = Py_None;
5260 {
5261 if (temp2)
5262 delete arg2;
5263 }
5264 return resultobj;
5265 fail:
5266 {
5267 if (temp2)
5268 delete arg2;
5269 }
5270 return NULL;
5271}
5272
5273
5274static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5275 PyObject *resultobj;
5276 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5277 int arg2 ;
5278 PyObject * obj0 = 0 ;
8edf1c75 5279 PyObject * obj1 = 0 ;
d14a1e28
RD
5280 char *kwnames[] = {
5281 (char *) "self",(char *) "i", NULL
5282 };
5283
8edf1c75 5284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5286 {
5287 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5288 if (PyErr_Occurred()) SWIG_fail;
5289 }
d14a1e28
RD
5290 {
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 (arg1)->RemoveFileFromHistory(arg2);
5293
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 Py_INCREF(Py_None); resultobj = Py_None;
5298 return resultobj;
5299 fail:
5300 return NULL;
5301}
5302
5303
5304static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5305 PyObject *resultobj;
5306 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5307 int result;
5308 PyObject * obj0 = 0 ;
5309 char *kwnames[] = {
5310 (char *) "self", NULL
5311 };
5312
5313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5315 {
5316 PyThreadState* __tstate = wxPyBeginAllowThreads();
5317 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5318
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
8edf1c75 5322 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
5323 return resultobj;
5324 fail:
5325 return NULL;
5326}
5327
5328
5329static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5330 PyObject *resultobj;
5331 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5332 wxMenu *arg2 = (wxMenu *) 0 ;
5333 PyObject * obj0 = 0 ;
5334 PyObject * obj1 = 0 ;
5335 char *kwnames[] = {
5336 (char *) "self",(char *) "menu", NULL
5337 };
5338
5339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5341 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5342 {
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 (arg1)->UseMenu(arg2);
5345
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 Py_INCREF(Py_None); resultobj = Py_None;
5350 return resultobj;
5351 fail:
5352 return NULL;
5353}
5354
5355
5356static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5357 PyObject *resultobj;
5358 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5359 wxMenu *arg2 = (wxMenu *) 0 ;
5360 PyObject * obj0 = 0 ;
5361 PyObject * obj1 = 0 ;
5362 char *kwnames[] = {
5363 (char *) "self",(char *) "menu", NULL
5364 };
5365
5366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5368 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 (arg1)->RemoveMenu(arg2);
5372
5373 wxPyEndAllowThreads(__tstate);
5374 if (PyErr_Occurred()) SWIG_fail;
5375 }
5376 Py_INCREF(Py_None); resultobj = Py_None;
5377 return resultobj;
5378 fail:
5379 return NULL;
5380}
5381
5382
5383static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5384 PyObject *resultobj;
5385 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5386 wxConfigBase *arg2 = 0 ;
5387 PyObject * obj0 = 0 ;
5388 PyObject * obj1 = 0 ;
5389 char *kwnames[] = {
5390 (char *) "self",(char *) "config", NULL
5391 };
5392
5393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5395 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5396 if (arg2 == NULL) {
5397 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5398 }
5399 {
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 (arg1)->Load(*arg2);
5402
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 Py_INCREF(Py_None); resultobj = Py_None;
5407 return resultobj;
5408 fail:
5409 return NULL;
5410}
5411
5412
5413static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj;
5415 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5416 wxConfigBase *arg2 = 0 ;
5417 PyObject * obj0 = 0 ;
5418 PyObject * obj1 = 0 ;
5419 char *kwnames[] = {
5420 (char *) "self",(char *) "config", NULL
5421 };
5422
5423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5425 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5426 if (arg2 == NULL) {
5427 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5428 }
5429 {
5430 PyThreadState* __tstate = wxPyBeginAllowThreads();
5431 (arg1)->Save(*arg2);
5432
5433 wxPyEndAllowThreads(__tstate);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 Py_INCREF(Py_None); resultobj = Py_None;
5437 return resultobj;
5438 fail:
5439 return NULL;
5440}
5441
5442
5443static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5444 PyObject *resultobj;
5445 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5446 PyObject * obj0 = 0 ;
5447 char *kwnames[] = {
5448 (char *) "self", NULL
5449 };
5450
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5453 {
5454 PyThreadState* __tstate = wxPyBeginAllowThreads();
5455 (arg1)->AddFilesToMenu();
5456
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 }
5460 Py_INCREF(Py_None); resultobj = Py_None;
5461 return resultobj;
5462 fail:
5463 return NULL;
5464}
5465
5466
5467static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5468 PyObject *resultobj;
5469 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5470 wxMenu *arg2 = (wxMenu *) 0 ;
5471 PyObject * obj0 = 0 ;
5472 PyObject * obj1 = 0 ;
5473 char *kwnames[] = {
5474 (char *) "self",(char *) "menu", NULL
5475 };
5476
5477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5479 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5480 {
5481 PyThreadState* __tstate = wxPyBeginAllowThreads();
5482 (arg1)->AddFilesToMenu(arg2);
5483
5484 wxPyEndAllowThreads(__tstate);
5485 if (PyErr_Occurred()) SWIG_fail;
5486 }
5487 Py_INCREF(Py_None); resultobj = Py_None;
5488 return resultobj;
5489 fail:
5490 return NULL;
5491}
5492
5493
5494static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5495 PyObject *resultobj;
5496 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5497 int arg2 ;
5498 wxString result;
5499 PyObject * obj0 = 0 ;
8edf1c75 5500 PyObject * obj1 = 0 ;
d14a1e28
RD
5501 char *kwnames[] = {
5502 (char *) "self",(char *) "i", NULL
5503 };
5504
8edf1c75 5505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5507 {
5508 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
d14a1e28
RD
5511 {
5512 PyThreadState* __tstate = wxPyBeginAllowThreads();
5513 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5514
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 {
5519#if wxUSE_UNICODE
5520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5521#else
5522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5523#endif
5524 }
5525 return resultobj;
5526 fail:
5527 return NULL;
5528}
5529
5530
5531static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj;
5533 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5534 int result;
5535 PyObject * obj0 = 0 ;
5536 char *kwnames[] = {
5537 (char *) "self", NULL
5538 };
5539
5540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 result = (int)((wxFileHistory const *)arg1)->GetCount();
5545
5546 wxPyEndAllowThreads(__tstate);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
8edf1c75 5549 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
5550 return resultobj;
5551 fail:
5552 return NULL;
5553}
5554
5555
5556static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5557 PyObject *obj;
5558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5559 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5560 Py_INCREF(obj);
5561 return Py_BuildValue((char *)"");
5562}
5563static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5564 PyObject *resultobj;
5565 wxString *arg1 = 0 ;
5566 wxString const &arg2_defvalue = wxPyEmptyString ;
5567 wxString *arg2 = (wxString *) &arg2_defvalue ;
5568 wxSingleInstanceChecker *result;
423f194a
RD
5569 bool temp1 = False ;
5570 bool temp2 = False ;
d14a1e28
RD
5571 PyObject * obj0 = 0 ;
5572 PyObject * obj1 = 0 ;
5573 char *kwnames[] = {
5574 (char *) "name",(char *) "path", NULL
5575 };
5576
5577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5578 {
5579 arg1 = wxString_in_helper(obj0);
5580 if (arg1 == NULL) SWIG_fail;
423f194a 5581 temp1 = True;
d14a1e28
RD
5582 }
5583 if (obj1) {
5584 {
5585 arg2 = wxString_in_helper(obj1);
5586 if (arg2 == NULL) SWIG_fail;
423f194a 5587 temp2 = True;
d14a1e28
RD
5588 }
5589 }
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5593
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1);
5598 {
5599 if (temp1)
5600 delete arg1;
5601 }
5602 {
5603 if (temp2)
5604 delete arg2;
5605 }
5606 return resultobj;
5607 fail:
5608 {
5609 if (temp1)
5610 delete arg1;
5611 }
5612 {
5613 if (temp2)
5614 delete arg2;
5615 }
5616 return NULL;
5617}
5618
5619
5620static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5621 PyObject *resultobj;
5622 wxSingleInstanceChecker *result;
5623 char *kwnames[] = {
5624 NULL
5625 };
5626
5627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5628 {
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5631
5632 wxPyEndAllowThreads(__tstate);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 }
5635 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1);
5636 return resultobj;
5637 fail:
5638 return NULL;
5639}
5640
5641
5642static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5643 PyObject *resultobj;
5644 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5645 PyObject * obj0 = 0 ;
5646 char *kwnames[] = {
5647 (char *) "self", NULL
5648 };
5649
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5651 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 delete arg1;
5655
5656 wxPyEndAllowThreads(__tstate);
5657 if (PyErr_Occurred()) SWIG_fail;
5658 }
5659 Py_INCREF(Py_None); resultobj = Py_None;
5660 return resultobj;
5661 fail:
5662 return NULL;
5663}
5664
5665
5666static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5667 PyObject *resultobj;
5668 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5669 wxString *arg2 = 0 ;
5670 wxString const &arg3_defvalue = wxPyEmptyString ;
5671 wxString *arg3 = (wxString *) &arg3_defvalue ;
5672 bool result;
423f194a
RD
5673 bool temp2 = False ;
5674 bool temp3 = False ;
d14a1e28
RD
5675 PyObject * obj0 = 0 ;
5676 PyObject * obj1 = 0 ;
5677 PyObject * obj2 = 0 ;
5678 char *kwnames[] = {
5679 (char *) "self",(char *) "name",(char *) "path", NULL
5680 };
5681
5682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5684 {
5685 arg2 = wxString_in_helper(obj1);
5686 if (arg2 == NULL) SWIG_fail;
423f194a 5687 temp2 = True;
d14a1e28
RD
5688 }
5689 if (obj2) {
5690 {
5691 arg3 = wxString_in_helper(obj2);
5692 if (arg3 == NULL) SWIG_fail;
423f194a 5693 temp3 = True;
d14a1e28
RD
5694 }
5695 }
5696 {
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5699
5700 wxPyEndAllowThreads(__tstate);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 }
02a34c4c 5703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5704 {
5705 if (temp2)
5706 delete arg2;
5707 }
5708 {
5709 if (temp3)
5710 delete arg3;
5711 }
5712 return resultobj;
5713 fail:
5714 {
5715 if (temp2)
5716 delete arg2;
5717 }
5718 {
5719 if (temp3)
5720 delete arg3;
5721 }
5722 return NULL;
5723}
5724
5725
5726static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5727 PyObject *resultobj;
5728 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5729 bool result;
5730 PyObject * obj0 = 0 ;
5731 char *kwnames[] = {
5732 (char *) "self", NULL
5733 };
5734
5735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5737 {
5738 PyThreadState* __tstate = wxPyBeginAllowThreads();
5739 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5740
5741 wxPyEndAllowThreads(__tstate);
5742 if (PyErr_Occurred()) SWIG_fail;
5743 }
02a34c4c 5744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5745 return resultobj;
5746 fail:
5747 return NULL;
5748}
5749
5750
5751static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5752 PyObject *obj;
5753 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5754 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5755 Py_INCREF(obj);
5756 return Py_BuildValue((char *)"");
5757}
5758static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5759 PyObject *resultobj;
5760 wxWindow *arg1 = (wxWindow *) 0 ;
5761 wxDC *arg2 = 0 ;
5762 int arg3 ;
5763 PyObject * obj0 = 0 ;
5764 PyObject * obj1 = 0 ;
8edf1c75 5765 PyObject * obj2 = 0 ;
d14a1e28
RD
5766 char *kwnames[] = {
5767 (char *) "window",(char *) "dc",(char *) "method", NULL
5768 };
5769
8edf1c75 5770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
5771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5772 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5773 if (arg2 == NULL) {
5774 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5775 }
8edf1c75
RD
5776 {
5777 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5778 if (PyErr_Occurred()) SWIG_fail;
5779 }
d14a1e28
RD
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
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_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5795 PyObject *resultobj;
5796 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5797 PyObject * obj0 = 0 ;
5798 char *kwnames[] = {
5799 (char *) "self", NULL
5800 };
5801
5802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
5803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5804 {
5805 PyThreadState* __tstate = wxPyBeginAllowThreads();
5806 delete arg1;
5807
5808 wxPyEndAllowThreads(__tstate);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 }
5811 Py_INCREF(Py_None); resultobj = Py_None;
5812 return resultobj;
5813 fail:
5814 return NULL;
5815}
5816
5817
5818static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5819 PyObject *resultobj;
5820 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5821 wxString result;
5822 PyObject * obj0 = 0 ;
5823 char *kwnames[] = {
5824 (char *) "self", NULL
5825 };
5826
5827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
5828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5829 {
5830 PyThreadState* __tstate = wxPyBeginAllowThreads();
5831 result = (arg1)->GetTip();
5832
5833 wxPyEndAllowThreads(__tstate);
5834 if (PyErr_Occurred()) SWIG_fail;
5835 }
5836 {
5837#if wxUSE_UNICODE
5838 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5839#else
5840 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5841#endif
5842 }
5843 return resultobj;
5844 fail:
5845 return NULL;
5846}
5847
5848
5849static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj;
5851 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5852 size_t result;
5853 PyObject * obj0 = 0 ;
5854 char *kwnames[] = {
5855 (char *) "self", NULL
5856 };
5857
5858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
5859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5860 {
5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
5862 result = (size_t)(arg1)->GetCurrentTip();
5863
5864 wxPyEndAllowThreads(__tstate);
5865 if (PyErr_Occurred()) SWIG_fail;
5866 }
8edf1c75 5867 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
5868 return resultobj;
5869 fail:
5870 return NULL;
5871}
5872
5873
5874static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj;
5876 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5877 wxString *arg2 = 0 ;
5878 wxString result;
423f194a 5879 bool temp2 = False ;
d14a1e28
RD
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 char *kwnames[] = {
5883 (char *) "self",(char *) "tip", NULL
5884 };
5885
5886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
5887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5888 {
5889 arg2 = wxString_in_helper(obj1);
5890 if (arg2 == NULL) SWIG_fail;
423f194a 5891 temp2 = True;
d14a1e28
RD
5892 }
5893 {
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 result = (arg1)->PreprocessTip((wxString const &)*arg2);
5896
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 {
5901#if wxUSE_UNICODE
5902 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5903#else
5904 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5905#endif
5906 }
5907 {
5908 if (temp2)
5909 delete arg2;
5910 }
5911 return resultobj;
5912 fail:
5913 {
5914 if (temp2)
5915 delete arg2;
5916 }
5917 return NULL;
5918}
5919
5920
5921static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
5922 PyObject *obj;
5923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5924 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
5925 Py_INCREF(obj);
5926 return Py_BuildValue((char *)"");
5927}
5928static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5929 PyObject *resultobj;
5930 size_t arg1 ;
5931 wxPyTipProvider *result;
5932 PyObject * obj0 = 0 ;
5933 char *kwnames[] = {
5934 (char *) "currentTip", NULL
5935 };
5936
5937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
2dbef272 5938 {
8edf1c75 5939 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
2dbef272
RD
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
d14a1e28
RD
5942 {
5943 PyThreadState* __tstate = wxPyBeginAllowThreads();
5944 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
5945
5946 wxPyEndAllowThreads(__tstate);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
5949 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1);
5950 return resultobj;
5951 fail:
5952 return NULL;
5953}
5954
5955
5956static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj;
5958 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
5959 PyObject *arg2 = (PyObject *) 0 ;
5960 PyObject *arg3 = (PyObject *) 0 ;
5961 PyObject * obj0 = 0 ;
5962 PyObject * obj1 = 0 ;
5963 PyObject * obj2 = 0 ;
5964 char *kwnames[] = {
5965 (char *) "self",(char *) "self",(char *) "_class", NULL
5966 };
5967
5968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5970 arg2 = obj1;
5971 arg3 = obj2;
5972 {
5973 PyThreadState* __tstate = wxPyBeginAllowThreads();
5974 (arg1)->_setCallbackInfo(arg2,arg3);
5975
5976 wxPyEndAllowThreads(__tstate);
5977 if (PyErr_Occurred()) SWIG_fail;
5978 }
5979 Py_INCREF(Py_None); resultobj = Py_None;
5980 return resultobj;
5981 fail:
5982 return NULL;
5983}
5984
5985
5986static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
5987 PyObject *obj;
5988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5989 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
5990 Py_INCREF(obj);
5991 return Py_BuildValue((char *)"");
5992}
5993static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj;
5995 wxWindow *arg1 = (wxWindow *) 0 ;
5996 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
423f194a 5997 bool arg3 = (bool) True ;
d14a1e28
RD
5998 bool result;
5999 PyObject * obj0 = 0 ;
6000 PyObject * obj1 = 0 ;
6001 PyObject * obj2 = 0 ;
6002 char *kwnames[] = {
6003 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6004 };
6005
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6008 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6009 if (obj2) {
2dbef272 6010 {
8edf1c75 6011 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
d14a1e28
RD
6014 }
6015 {
6016 PyThreadState* __tstate = wxPyBeginAllowThreads();
6017 result = (bool)wxShowTip(arg1,arg2,arg3);
6018
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
02a34c4c 6022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6023 return resultobj;
6024 fail:
6025 return NULL;
6026}
6027
6028
6029static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6030 PyObject *resultobj;
6031 wxString *arg1 = 0 ;
6032 size_t arg2 ;
6033 wxTipProvider *result;
423f194a 6034 bool temp1 = False ;
d14a1e28
RD
6035 PyObject * obj0 = 0 ;
6036 PyObject * obj1 = 0 ;
6037 char *kwnames[] = {
6038 (char *) "filename",(char *) "currentTip", NULL
6039 };
6040
6041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6042 {
6043 arg1 = wxString_in_helper(obj0);
6044 if (arg1 == NULL) SWIG_fail;
423f194a 6045 temp1 = True;
d14a1e28 6046 }
2dbef272 6047 {
8edf1c75 6048 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
2dbef272
RD
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
d14a1e28
RD
6051 {
6052 PyThreadState* __tstate = wxPyBeginAllowThreads();
6053 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6054
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1);
6059 {
6060 if (temp1)
6061 delete arg1;
6062 }
6063 return resultobj;
6064 fail:
6065 {
6066 if (temp1)
6067 delete arg1;
6068 }
6069 return NULL;
6070}
6071
6072
6073static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6074 PyObject *resultobj;
6075 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6076 int arg2 = (int) -1 ;
6077 wxPyTimer *result;
6078 PyObject * obj0 = 0 ;
8edf1c75 6079 PyObject * obj1 = 0 ;
d14a1e28
RD
6080 char *kwnames[] = {
6081 (char *) "owner",(char *) "id", NULL
6082 };
6083
8edf1c75 6084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
6085 if (obj0) {
6086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6087 }
8edf1c75
RD
6088 if (obj1) {
6089 {
6090 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 }
d14a1e28
RD
6094 {
6095 PyThreadState* __tstate = wxPyBeginAllowThreads();
6096 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6097
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1);
6102 return resultobj;
6103 fail:
6104 return NULL;
6105}
6106
6107
6108static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6109 PyObject *resultobj;
6110 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6111 PyObject * obj0 = 0 ;
6112 char *kwnames[] = {
6113 (char *) "self", NULL
6114 };
6115
6116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6118 {
6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
6120 delete arg1;
6121
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 Py_INCREF(Py_None); resultobj = Py_None;
6126 return resultobj;
6127 fail:
6128 return NULL;
6129}
6130
6131
44127b65
RD
6132static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6133 PyObject *resultobj;
6134 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6135 PyObject *arg2 = (PyObject *) 0 ;
6136 PyObject *arg3 = (PyObject *) 0 ;
6137 PyObject * obj0 = 0 ;
6138 PyObject * obj1 = 0 ;
6139 PyObject * obj2 = 0 ;
6140 char *kwnames[] = {
6141 (char *) "self",(char *) "self",(char *) "_class", NULL
6142 };
6143
6144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6146 arg2 = obj1;
6147 arg3 = obj2;
6148 {
6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
6150 (arg1)->_setCallbackInfo(arg2,arg3);
6151
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 Py_INCREF(Py_None); resultobj = Py_None;
6156 return resultobj;
6157 fail:
6158 return NULL;
6159}
6160
6161
d14a1e28
RD
6162static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj;
6164 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6165 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6166 int arg3 = (int) -1 ;
6167 PyObject * obj0 = 0 ;
6168 PyObject * obj1 = 0 ;
8edf1c75 6169 PyObject * obj2 = 0 ;
d14a1e28
RD
6170 char *kwnames[] = {
6171 (char *) "self",(char *) "owner",(char *) "id", NULL
6172 };
6173
8edf1c75 6174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
6175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6176 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
6177 if (obj2) {
6178 {
6179 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 }
d14a1e28
RD
6183 {
6184 PyThreadState* __tstate = wxPyBeginAllowThreads();
6185 (arg1)->SetOwner(arg2,arg3);
6186
6187 wxPyEndAllowThreads(__tstate);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 }
6190 Py_INCREF(Py_None); resultobj = Py_None;
6191 return resultobj;
6192 fail:
6193 return NULL;
6194}
6195
6196
6197static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6198 PyObject *resultobj;
6199 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6200 int arg2 = (int) -1 ;
423f194a 6201 bool arg3 = (bool) False ;
d14a1e28
RD
6202 bool result;
6203 PyObject * obj0 = 0 ;
8edf1c75 6204 PyObject * obj1 = 0 ;
d14a1e28
RD
6205 PyObject * obj2 = 0 ;
6206 char *kwnames[] = {
6207 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6208 };
6209
8edf1c75 6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 6211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
6212 if (obj1) {
6213 {
6214 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 }
d14a1e28 6218 if (obj2) {
2dbef272 6219 {
8edf1c75 6220 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
d14a1e28
RD
6223 }
6224 {
6225 PyThreadState* __tstate = wxPyBeginAllowThreads();
6226 result = (bool)(arg1)->Start(arg2,arg3);
6227
6228 wxPyEndAllowThreads(__tstate);
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
02a34c4c 6231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6232 return resultobj;
6233 fail:
6234 return NULL;
6235}
6236
6237
6238static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6239 PyObject *resultobj;
6240 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6241 PyObject * obj0 = 0 ;
6242 char *kwnames[] = {
6243 (char *) "self", NULL
6244 };
6245
6246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6248 {
6249 PyThreadState* __tstate = wxPyBeginAllowThreads();
6250 (arg1)->Stop();
6251
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 Py_INCREF(Py_None); resultobj = Py_None;
6256 return resultobj;
6257 fail:
6258 return NULL;
6259}
6260
6261
d14a1e28
RD
6262static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj;
6264 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6265 bool result;
6266 PyObject * obj0 = 0 ;
6267 char *kwnames[] = {
6268 (char *) "self", NULL
6269 };
6270
6271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6273 {
6274 PyThreadState* __tstate = wxPyBeginAllowThreads();
6275 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6276
6277 wxPyEndAllowThreads(__tstate);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
02a34c4c 6280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6281 return resultobj;
6282 fail:
6283 return NULL;
6284}
6285
6286
6287static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6288 PyObject *resultobj;
6289 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6290 int result;
6291 PyObject * obj0 = 0 ;
6292 char *kwnames[] = {
6293 (char *) "self", NULL
6294 };
6295
6296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6298 {
6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
6300 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6301
6302 wxPyEndAllowThreads(__tstate);
6303 if (PyErr_Occurred()) SWIG_fail;
6304 }
8edf1c75 6305 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
6306 return resultobj;
6307 fail:
6308 return NULL;
6309}
6310
6311
6312static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj;
6314 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6315 bool result;
6316 PyObject * obj0 = 0 ;
6317 char *kwnames[] = {
6318 (char *) "self", NULL
6319 };
6320
6321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6323 {
6324 PyThreadState* __tstate = wxPyBeginAllowThreads();
6325 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6326
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
02a34c4c 6330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6331 return resultobj;
6332 fail:
6333 return NULL;
6334}
6335
6336
0f774bef
RD
6337static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj;
6339 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6340 int result;
6341 PyObject * obj0 = 0 ;
6342 char *kwnames[] = {
6343 (char *) "self", NULL
6344 };
6345
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6348 {
6349 PyThreadState* __tstate = wxPyBeginAllowThreads();
6350 result = (int)((wxPyTimer const *)arg1)->GetId();
6351
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
8edf1c75 6355 resultobj = SWIG_PyObj_FromInt((int)result);
0f774bef
RD
6356 return resultobj;
6357 fail:
6358 return NULL;
6359}
6360
6361
d14a1e28
RD
6362static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6363 PyObject *obj;
6364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6365 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6366 Py_INCREF(obj);
6367 return Py_BuildValue((char *)"");
6368}
6369static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6370 PyObject *resultobj;
6371 int arg1 = (int) 0 ;
6372 int arg2 = (int) 0 ;
6373 wxTimerEvent *result;
8edf1c75
RD
6374 PyObject * obj0 = 0 ;
6375 PyObject * obj1 = 0 ;
d14a1e28
RD
6376 char *kwnames[] = {
6377 (char *) "timerid",(char *) "interval", NULL
6378 };
6379
8edf1c75
RD
6380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6381 if (obj0) {
6382 {
6383 arg1 = (int) SWIG_PyObj_AsInt(obj0);
6384 if (PyErr_Occurred()) SWIG_fail;
6385 }
6386 }
6387 if (obj1) {
6388 {
6389 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 }
d14a1e28
RD
6393 {
6394 PyThreadState* __tstate = wxPyBeginAllowThreads();
6395 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6396
6397 wxPyEndAllowThreads(__tstate);
6398 if (PyErr_Occurred()) SWIG_fail;
6399 }
6400 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1);
6401 return resultobj;
6402 fail:
6403 return NULL;
6404}
6405
6406
6407static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6408 PyObject *resultobj;
6409 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6410 int result;
6411 PyObject * obj0 = 0 ;
6412 char *kwnames[] = {
6413 (char *) "self", NULL
6414 };
6415
6416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
8edf1c75 6425 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
6426 return resultobj;
6427 fail:
6428 return NULL;
6429}
6430
6431
6432static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6433 PyObject *obj;
6434 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6435 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6436 Py_INCREF(obj);
6437 return Py_BuildValue((char *)"");
6438}
6439static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6440 PyObject *resultobj;
6441 wxTimer *arg1 = 0 ;
6442 wxTimerRunner *result;
6443 PyObject * obj0 = 0 ;
6444
6445 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6447 if (arg1 == NULL) {
6448 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6449 }
6450 {
6451 PyThreadState* __tstate = wxPyBeginAllowThreads();
6452 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6453
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1);
6458 return resultobj;
6459 fail:
6460 return NULL;
6461}
6462
6463
6464static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6465 PyObject *resultobj;
6466 wxTimer *arg1 = 0 ;
6467 int arg2 ;
423f194a 6468 bool arg3 = (bool) False ;
d14a1e28
RD
6469 wxTimerRunner *result;
6470 PyObject * obj0 = 0 ;
8edf1c75 6471 PyObject * obj1 = 0 ;
d14a1e28
RD
6472 PyObject * obj2 = 0 ;
6473
8edf1c75 6474 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
6475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6476 if (arg1 == NULL) {
6477 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6478 }
8edf1c75
RD
6479 {
6480 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
d14a1e28 6483 if (obj2) {
2dbef272 6484 {
8edf1c75 6485 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
6486 if (PyErr_Occurred()) SWIG_fail;
6487 }
d14a1e28
RD
6488 }
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6492
6493 wxPyEndAllowThreads(__tstate);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1);
6497 return resultobj;
6498 fail:
6499 return NULL;
6500}
6501
6502
6503static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6504 int argc;
6505 PyObject *argv[4];
6506 int ii;
6507
6508 argc = PyObject_Length(args);
6509 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6510 argv[ii] = PyTuple_GetItem(args,ii);
6511 }
6512 if (argc == 1) {
6513 int _v;
6514 {
6515 void *ptr;
6516 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6517 _v = 0;
6518 PyErr_Clear();
6519 } else {
6520 _v = 1;
6521 }
6522 }
6523 if (_v) {
6524 return _wrap_new_TimerRunner__SWIG_0(self,args);
6525 }
6526 }
6527 if ((argc >= 2) && (argc <= 3)) {
6528 int _v;
6529 {
6530 void *ptr;
6531 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6532 _v = 0;
6533 PyErr_Clear();
6534 } else {
6535 _v = 1;
6536 }
6537 }
6538 if (_v) {
6539 {
8edf1c75 6540 SWIG_PyObj_AsInt(argv[1]);
2dbef272
RD
6541 if (PyErr_Occurred()) {
6542 _v = 0;
6543 PyErr_Clear();
6544 } else {
6545 _v = 1;
6546 }
d14a1e28
RD
6547 }
6548 if (_v) {
6549 if (argc <= 2) {
6550 return _wrap_new_TimerRunner__SWIG_1(self,args);
6551 }
6552 {
8edf1c75 6553 SWIG_PyObj_AsBool(argv[2]);
2dbef272
RD
6554 if (PyErr_Occurred()) {
6555 _v = 0;
6556 PyErr_Clear();
6557 } else {
6558 _v = 1;
6559 }
d14a1e28
RD
6560 }
6561 if (_v) {
6562 return _wrap_new_TimerRunner__SWIG_1(self,args);
6563 }
6564 }
6565 }
6566 }
6567
6568 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6569 return NULL;
6570}
6571
6572
6573static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6574 PyObject *resultobj;
6575 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6576 PyObject * obj0 = 0 ;
6577 char *kwnames[] = {
6578 (char *) "self", NULL
6579 };
6580
6581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6583 {
6584 PyThreadState* __tstate = wxPyBeginAllowThreads();
6585 delete arg1;
6586
6587 wxPyEndAllowThreads(__tstate);
6588 if (PyErr_Occurred()) SWIG_fail;
6589 }
6590 Py_INCREF(Py_None); resultobj = Py_None;
6591 return resultobj;
6592 fail:
6593 return NULL;
6594}
6595
6596
6597static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj;
6599 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6600 int arg2 ;
423f194a 6601 bool arg3 = (bool) False ;
d14a1e28 6602 PyObject * obj0 = 0 ;
8edf1c75 6603 PyObject * obj1 = 0 ;
d14a1e28
RD
6604 PyObject * obj2 = 0 ;
6605 char *kwnames[] = {
6606 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6607 };
6608
8edf1c75 6609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 6610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
6611 {
6612 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 }
d14a1e28 6615 if (obj2) {
2dbef272 6616 {
8edf1c75 6617 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
6618 if (PyErr_Occurred()) SWIG_fail;
6619 }
d14a1e28
RD
6620 }
6621 {
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 (arg1)->Start(arg2,arg3);
6624
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 Py_INCREF(Py_None); resultobj = Py_None;
6629 return resultobj;
6630 fail:
6631 return NULL;
6632}
6633
6634
6635static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6636 PyObject *obj;
6637 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6638 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6639 Py_INCREF(obj);
6640 return Py_BuildValue((char *)"");
6641}
6642static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6643 PyObject *resultobj;
6644 wxLog *result;
6645 char *kwnames[] = {
6646 NULL
6647 };
6648
6649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6650 {
6651 PyThreadState* __tstate = wxPyBeginAllowThreads();
6652 result = (wxLog *)new wxLog();
6653
6654 wxPyEndAllowThreads(__tstate);
6655 if (PyErr_Occurred()) SWIG_fail;
6656 }
6657 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1);
6658 return resultobj;
6659 fail:
6660 return NULL;
6661}
6662
6663
6664static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6665 PyObject *resultobj;
6666 bool result;
6667 char *kwnames[] = {
6668 NULL
6669 };
6670
6671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6672 {
6673 PyThreadState* __tstate = wxPyBeginAllowThreads();
6674 result = (bool)wxLog::IsEnabled();
6675
6676 wxPyEndAllowThreads(__tstate);
6677 if (PyErr_Occurred()) SWIG_fail;
6678 }
02a34c4c 6679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6680 return resultobj;
6681 fail:
6682 return NULL;
6683}
6684
6685
6686static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6687 PyObject *resultobj;
423f194a 6688 bool arg1 = (bool) True ;
d14a1e28
RD
6689 bool result;
6690 PyObject * obj0 = 0 ;
6691 char *kwnames[] = {
6692 (char *) "doIt", NULL
6693 };
6694
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6696 if (obj0) {
2dbef272 6697 {
8edf1c75 6698 arg1 = (bool) SWIG_PyObj_AsBool(obj0);
2dbef272
RD
6699 if (PyErr_Occurred()) SWIG_fail;
6700 }
d14a1e28
RD
6701 }
6702 {
6703 PyThreadState* __tstate = wxPyBeginAllowThreads();
6704 result = (bool)wxLog::EnableLogging(arg1);
6705
6706 wxPyEndAllowThreads(__tstate);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
02a34c4c 6709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6710 return resultobj;
6711 fail:
6712 return NULL;
6713}
6714
6715
6716static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6717 PyObject *resultobj;
6718 wxLogLevel arg1 ;
6719 wxChar *arg2 = (wxChar *) 0 ;
6720 time_t arg3 ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 PyObject * obj2 = 0 ;
6724 char *kwnames[] = {
6725 (char *) "level",(char *) "szString",(char *) "t", NULL
6726 };
6727
6728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
2dbef272 6729 {
8edf1c75 6730 arg1 = (wxLogLevel) SWIG_PyObj_AsUnsignedLong(obj0);
2dbef272
RD
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
d14a1e28 6733 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2dbef272 6734 {
8edf1c75 6735 arg3 = (time_t) SWIG_PyObj_AsUnsignedInt(obj2);
2dbef272
RD
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
d14a1e28
RD
6738 {
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 wxLog::OnLog(arg1,(wxChar const *)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 *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj;
6754 wxLog *arg1 = (wxLog *) 0 ;
6755 PyObject * obj0 = 0 ;
6756 char *kwnames[] = {
6757 (char *) "self", NULL
6758 };
6759
6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6762 {
6763 PyThreadState* __tstate = wxPyBeginAllowThreads();
6764 (arg1)->Flush();
6765
6766 wxPyEndAllowThreads(__tstate);
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 Py_INCREF(Py_None); resultobj = Py_None;
6770 return resultobj;
6771 fail:
6772 return NULL;
6773}
6774
6775
6776static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
6777 PyObject *resultobj;
6778 char *kwnames[] = {
6779 NULL
6780 };
6781
6782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6783 {
6784 PyThreadState* __tstate = wxPyBeginAllowThreads();
6785 wxLog::FlushActive();
6786
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 Py_INCREF(Py_None); resultobj = Py_None;
6791 return resultobj;
6792 fail:
6793 return NULL;
6794}
6795
6796
6797static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj;
6799 wxLog *result;
6800 char *kwnames[] = {
6801 NULL
6802 };
6803
6804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6805 {
6806 PyThreadState* __tstate = wxPyBeginAllowThreads();
6807 result = (wxLog *)wxLog::GetActiveTarget();
6808
6809 wxPyEndAllowThreads(__tstate);
6810 if (PyErr_Occurred()) SWIG_fail;
6811 }
6812 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
6813 return resultobj;
6814 fail:
6815 return NULL;
6816}
6817
6818
6819static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6820 PyObject *resultobj;
6821 wxLog *arg1 = (wxLog *) 0 ;
6822 wxLog *result;
6823 PyObject * obj0 = 0 ;
6824 char *kwnames[] = {
6825 (char *) "pLogger", NULL
6826 };
6827
6828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
6829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6830 {
6831 PyThreadState* __tstate = wxPyBeginAllowThreads();
6832 result = (wxLog *)wxLog::SetActiveTarget(arg1);
6833
6834 wxPyEndAllowThreads(__tstate);
6835 if (PyErr_Occurred()) SWIG_fail;
6836 }
6837 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
6838 return resultobj;
6839 fail:
6840 return NULL;
6841}
6842
6843
6844static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
6845 PyObject *resultobj;
6846 char *kwnames[] = {
6847 NULL
6848 };
6849
6850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
6851 {
6852 PyThreadState* __tstate = wxPyBeginAllowThreads();
6853 wxLog::Suspend();
6854
6855 wxPyEndAllowThreads(__tstate);
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 Py_INCREF(Py_None); resultobj = Py_None;
6859 return resultobj;
6860 fail:
6861 return NULL;
6862}
6863
6864
6865static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
6866 PyObject *resultobj;
6867 char *kwnames[] = {
6868 NULL
6869 };
6870
6871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
6872 {
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 wxLog::Resume();
6875
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 Py_INCREF(Py_None); resultobj = Py_None;
6880 return resultobj;
6881 fail:
6882 return NULL;
6883}
6884
6885
6886static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
6887 PyObject *resultobj;
423f194a 6888 bool arg1 = (bool) True ;
d14a1e28
RD
6889 PyObject * obj0 = 0 ;
6890 char *kwnames[] = {
6891 (char *) "bVerbose", NULL
6892 };
6893
6894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
6895 if (obj0) {
2dbef272 6896 {
8edf1c75 6897 arg1 = (bool) SWIG_PyObj_AsBool(obj0);
2dbef272
RD
6898 if (PyErr_Occurred()) SWIG_fail;
6899 }
d14a1e28
RD
6900 }
6901 {
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 wxLog::SetVerbose(arg1);
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 Py_INCREF(Py_None); resultobj = Py_None;
6909 return resultobj;
6910 fail:
6911 return NULL;
6912}
6913
6914
6915static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
6916 PyObject *resultobj;
6917 wxLogLevel arg1 ;
6918 PyObject * obj0 = 0 ;
6919 char *kwnames[] = {
6920 (char *) "logLevel", NULL
6921 };
6922
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
2dbef272 6924 {
8edf1c75 6925 arg1 = (wxLogLevel) SWIG_PyObj_AsUnsignedLong(obj0);
2dbef272
RD
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
d14a1e28
RD
6928 {
6929 PyThreadState* __tstate = wxPyBeginAllowThreads();
6930 wxLog::SetLogLevel(arg1);
6931
6932 wxPyEndAllowThreads(__tstate);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 Py_INCREF(Py_None); resultobj = Py_None;
6936 return resultobj;
6937 fail:
6938 return NULL;
6939}
6940
6941
6942static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
6943 PyObject *resultobj;
6944 char *kwnames[] = {
6945 NULL
6946 };
6947
6948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
6949 {
6950 PyThreadState* __tstate = wxPyBeginAllowThreads();
6951 wxLog::DontCreateOnDemand();
6952
6953 wxPyEndAllowThreads(__tstate);
6954 if (PyErr_Occurred()) SWIG_fail;
6955 }
6956 Py_INCREF(Py_None); resultobj = Py_None;
6957 return resultobj;
6958 fail:
6959 return NULL;
6960}
6961
6962
6963static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6964 PyObject *resultobj;
6965 wxTraceMask arg1 ;
6966 PyObject * obj0 = 0 ;
6967 char *kwnames[] = {
6968 (char *) "ulMask", NULL
6969 };
6970
6971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
2dbef272 6972 {
8edf1c75 6973 arg1 = (wxTraceMask) SWIG_PyObj_AsUnsignedLong(obj0);
2dbef272
RD
6974 if (PyErr_Occurred()) SWIG_fail;
6975 }
d14a1e28
RD
6976 {
6977 PyThreadState* __tstate = wxPyBeginAllowThreads();
6978 wxLog::SetTraceMask(arg1);
6979
6980 wxPyEndAllowThreads(__tstate);
6981 if (PyErr_Occurred()) SWIG_fail;
6982 }
6983 Py_INCREF(Py_None); resultobj = Py_None;
6984 return resultobj;
6985 fail:
6986 return NULL;
6987}
6988
6989
6990static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6991 PyObject *resultobj;
6992 wxString *arg1 = 0 ;
423f194a 6993 bool temp1 = False ;
d14a1e28
RD
6994 PyObject * obj0 = 0 ;
6995 char *kwnames[] = {
6996 (char *) "str", NULL
6997 };
6998
6999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7000 {
7001 arg1 = wxString_in_helper(obj0);
7002 if (arg1 == NULL) SWIG_fail;
423f194a 7003 temp1 = True;
d14a1e28
RD
7004 }
7005 {
7006 PyThreadState* __tstate = wxPyBeginAllowThreads();
7007 wxLog::AddTraceMask((wxString const &)*arg1);
7008
7009 wxPyEndAllowThreads(__tstate);
7010 if (PyErr_Occurred()) SWIG_fail;
7011 }
7012 Py_INCREF(Py_None); resultobj = Py_None;
7013 {
7014 if (temp1)
7015 delete arg1;
7016 }
7017 return resultobj;
7018 fail:
7019 {
7020 if (temp1)
7021 delete arg1;
7022 }
7023 return NULL;
7024}
7025
7026
7027static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7028 PyObject *resultobj;
7029 wxString *arg1 = 0 ;
423f194a 7030 bool temp1 = False ;
d14a1e28
RD
7031 PyObject * obj0 = 0 ;
7032 char *kwnames[] = {
7033 (char *) "str", NULL
7034 };
7035
7036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7037 {
7038 arg1 = wxString_in_helper(obj0);
7039 if (arg1 == NULL) SWIG_fail;
423f194a 7040 temp1 = True;
d14a1e28
RD
7041 }
7042 {
7043 PyThreadState* __tstate = wxPyBeginAllowThreads();
7044 wxLog::RemoveTraceMask((wxString const &)*arg1);
7045
7046 wxPyEndAllowThreads(__tstate);
7047 if (PyErr_Occurred()) SWIG_fail;
7048 }
7049 Py_INCREF(Py_None); resultobj = Py_None;
7050 {
7051 if (temp1)
7052 delete arg1;
7053 }
7054 return resultobj;
7055 fail:
7056 {
7057 if (temp1)
7058 delete arg1;
7059 }
7060 return NULL;
7061}
7062
7063
7064static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7065 PyObject *resultobj;
7066 char *kwnames[] = {
7067 NULL
7068 };
7069
7070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7071 {
7072 PyThreadState* __tstate = wxPyBeginAllowThreads();
7073 wxLog::ClearTraceMasks();
7074
7075 wxPyEndAllowThreads(__tstate);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 Py_INCREF(Py_None); resultobj = Py_None;
7079 return resultobj;
7080 fail:
7081 return NULL;
7082}
7083
7084
7085static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7086 PyObject *resultobj;
7087 wxArrayString *result;
7088 char *kwnames[] = {
7089 NULL
7090 };
7091
7092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 {
7096 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7097 result = (wxArrayString *) &_result_ref;
7098 }
7099
7100 wxPyEndAllowThreads(__tstate);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 {
7104 resultobj = wxArrayString2PyList_helper(*result);
7105 }
7106 return resultobj;
7107 fail:
7108 return NULL;
7109}
7110
7111
7112static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7113 PyObject *resultobj;
7114 wxChar *arg1 = (wxChar *) 0 ;
7115 PyObject * obj0 = 0 ;
7116 char *kwnames[] = {
7117 (char *) "ts", NULL
7118 };
7119
7120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7122 {
7123 PyThreadState* __tstate = wxPyBeginAllowThreads();
7124 wxLog::SetTimestamp((wxChar const *)arg1);
7125
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 Py_INCREF(Py_None); resultobj = Py_None;
7130 return resultobj;
7131 fail:
7132 return NULL;
7133}
7134
7135
7136static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj;
7138 bool result;
7139 char *kwnames[] = {
7140 NULL
7141 };
7142
7143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 result = (bool)wxLog::GetVerbose();
7147
7148 wxPyEndAllowThreads(__tstate);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
02a34c4c 7151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7152 return resultobj;
7153 fail:
7154 return NULL;
7155}
7156
7157
7158static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7159 PyObject *resultobj;
7160 wxTraceMask result;
7161 char *kwnames[] = {
7162 NULL
7163 };
7164
7165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 result = (wxTraceMask)wxLog::GetTraceMask();
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
8edf1c75 7173 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7174 return resultobj;
7175 fail:
7176 return NULL;
7177}
7178
7179
7180static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7181 PyObject *resultobj;
7182 wxChar *arg1 = (wxChar *) 0 ;
7183 bool result;
7184 PyObject * obj0 = 0 ;
7185 char *kwnames[] = {
7186 (char *) "mask", NULL
7187 };
7188
7189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7191 {
7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
7193 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7194
7195 wxPyEndAllowThreads(__tstate);
7196 if (PyErr_Occurred()) SWIG_fail;
7197 }
02a34c4c 7198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7199 return resultobj;
7200 fail:
7201 return NULL;
7202}
7203
7204
7205static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7206 PyObject *resultobj;
7207 wxLogLevel result;
7208 char *kwnames[] = {
7209 NULL
7210 };
7211
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7213 {
7214 PyThreadState* __tstate = wxPyBeginAllowThreads();
7215 result = (wxLogLevel)wxLog::GetLogLevel();
7216
7217 wxPyEndAllowThreads(__tstate);
7218 if (PyErr_Occurred()) SWIG_fail;
7219 }
8edf1c75 7220 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7221 return resultobj;
7222 fail:
7223 return NULL;
7224}
7225
7226
7227static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7228 PyObject *resultobj;
7229 wxChar *result;
7230 char *kwnames[] = {
7231 NULL
7232 };
7233
7234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7235 {
7236 PyThreadState* __tstate = wxPyBeginAllowThreads();
7237 result = (wxChar *)wxLog::GetTimestamp();
7238
7239 wxPyEndAllowThreads(__tstate);
7240 if (PyErr_Occurred()) SWIG_fail;
7241 }
7242 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0);
7243 return resultobj;
7244 fail:
7245 return NULL;
7246}
7247
7248
7249static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 wxString result;
7252 char *kwnames[] = {
7253 NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 result = Log_TimeStamp();
7260
7261 wxPyEndAllowThreads(__tstate);
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 {
7265#if wxUSE_UNICODE
7266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7267#else
7268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7269#endif
7270 }
7271 return resultobj;
7272 fail:
7273 return NULL;
7274}
7275
7276
7277static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7278 PyObject *resultobj;
7279 wxLog *arg1 = (wxLog *) 0 ;
7280 PyObject * obj0 = 0 ;
7281 char *kwnames[] = {
7282 (char *) "self", NULL
7283 };
7284
7285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 wxLog_Destroy(arg1);
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 Py_INCREF(Py_None); resultobj = Py_None;
7295 return resultobj;
7296 fail:
7297 return NULL;
7298}
7299
7300
7301static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7302 PyObject *obj;
7303 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7304 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7305 Py_INCREF(obj);
7306 return Py_BuildValue((char *)"");
7307}
7308static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7309 PyObject *resultobj;
7310 wxLogStderr *result;
7311 char *kwnames[] = {
7312 NULL
7313 };
7314
7315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7316 {
7317 PyThreadState* __tstate = wxPyBeginAllowThreads();
7318 result = (wxLogStderr *)new wxLogStderr();
7319
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1);
7324 return resultobj;
7325 fail:
7326 return NULL;
7327}
7328
7329
7330static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7331 PyObject *obj;
7332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7333 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7334 Py_INCREF(obj);
7335 return Py_BuildValue((char *)"");
7336}
7337static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7338 PyObject *resultobj;
7339 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7340 wxLogTextCtrl *result;
7341 PyObject * obj0 = 0 ;
7342 char *kwnames[] = {
7343 (char *) "pTextCtrl", NULL
7344 };
7345
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7348 {
7349 PyThreadState* __tstate = wxPyBeginAllowThreads();
7350 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7351
7352 wxPyEndAllowThreads(__tstate);
7353 if (PyErr_Occurred()) SWIG_fail;
7354 }
7355 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1);
7356 return resultobj;
7357 fail:
7358 return NULL;
7359}
7360
7361
7362static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7363 PyObject *obj;
7364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7365 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7366 Py_INCREF(obj);
7367 return Py_BuildValue((char *)"");
7368}
7369static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7370 PyObject *resultobj;
7371 wxLogGui *result;
7372 char *kwnames[] = {
7373 NULL
7374 };
7375
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7377 {
7378 PyThreadState* __tstate = wxPyBeginAllowThreads();
7379 result = (wxLogGui *)new wxLogGui();
7380
7381 wxPyEndAllowThreads(__tstate);
7382 if (PyErr_Occurred()) SWIG_fail;
7383 }
7384 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1);
7385 return resultobj;
7386 fail:
7387 return NULL;
7388}
7389
7390
7391static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7392 PyObject *obj;
7393 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7394 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7395 Py_INCREF(obj);
7396 return Py_BuildValue((char *)"");
7397}
7398static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7399 PyObject *resultobj;
7400 wxFrame *arg1 = (wxFrame *) 0 ;
7401 wxString *arg2 = 0 ;
423f194a
RD
7402 bool arg3 = (bool) True ;
7403 bool arg4 = (bool) True ;
d14a1e28 7404 wxLogWindow *result;
423f194a 7405 bool temp2 = False ;
d14a1e28
RD
7406 PyObject * obj0 = 0 ;
7407 PyObject * obj1 = 0 ;
7408 PyObject * obj2 = 0 ;
7409 PyObject * obj3 = 0 ;
7410 char *kwnames[] = {
7411 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7412 };
7413
7414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7416 {
7417 arg2 = wxString_in_helper(obj1);
7418 if (arg2 == NULL) SWIG_fail;
423f194a 7419 temp2 = True;
d14a1e28
RD
7420 }
7421 if (obj2) {
2dbef272 7422 {
8edf1c75 7423 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
d14a1e28
RD
7426 }
7427 if (obj3) {
2dbef272 7428 {
8edf1c75 7429 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
2dbef272
RD
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
d14a1e28
RD
7432 }
7433 {
7434 PyThreadState* __tstate = wxPyBeginAllowThreads();
7435 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7436
7437 wxPyEndAllowThreads(__tstate);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1);
7441 {
7442 if (temp2)
7443 delete arg2;
7444 }
7445 return resultobj;
7446 fail:
7447 {
7448 if (temp2)
7449 delete arg2;
7450 }
7451 return NULL;
7452}
7453
7454
7455static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7456 PyObject *resultobj;
7457 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
423f194a 7458 bool arg2 = (bool) True ;
d14a1e28
RD
7459 PyObject * obj0 = 0 ;
7460 PyObject * obj1 = 0 ;
7461 char *kwnames[] = {
7462 (char *) "self",(char *) "bShow", NULL
7463 };
7464
7465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7467 if (obj1) {
2dbef272 7468 {
8edf1c75 7469 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
d14a1e28
RD
7472 }
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 (arg1)->Show(arg2);
7476
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 Py_INCREF(Py_None); resultobj = Py_None;
7481 return resultobj;
7482 fail:
7483 return NULL;
7484}
7485
7486
7487static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7488 PyObject *resultobj;
7489 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7490 wxFrame *result;
7491 PyObject * obj0 = 0 ;
7492 char *kwnames[] = {
7493 (char *) "self", NULL
7494 };
7495
7496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
7500 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 {
7506 resultobj = wxPyMake_wxObject(result);
7507 }
7508 return resultobj;
7509 fail:
7510 return NULL;
7511}
7512
7513
7514static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7515 PyObject *resultobj;
7516 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7517 wxLog *result;
7518 PyObject * obj0 = 0 ;
7519 char *kwnames[] = {
7520 (char *) "self", NULL
7521 };
7522
7523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7525 {
7526 PyThreadState* __tstate = wxPyBeginAllowThreads();
7527 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7528
7529 wxPyEndAllowThreads(__tstate);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
7533 return resultobj;
7534 fail:
7535 return NULL;
7536}
7537
7538
7539static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7540 PyObject *resultobj;
7541 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7542 bool result;
7543 PyObject * obj0 = 0 ;
7544 char *kwnames[] = {
7545 (char *) "self", NULL
7546 };
7547
7548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7550 {
7551 PyThreadState* __tstate = wxPyBeginAllowThreads();
7552 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7553
7554 wxPyEndAllowThreads(__tstate);
7555 if (PyErr_Occurred()) SWIG_fail;
7556 }
02a34c4c 7557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7558 return resultobj;
7559 fail:
7560 return NULL;
7561}
7562
7563
7564static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7565 PyObject *resultobj;
7566 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7567 bool arg2 ;
7568 PyObject * obj0 = 0 ;
7569 PyObject * obj1 = 0 ;
7570 char *kwnames[] = {
7571 (char *) "self",(char *) "bDoPass", NULL
7572 };
7573
7574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2dbef272 7576 {
8edf1c75 7577 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
d14a1e28
RD
7580 {
7581 PyThreadState* __tstate = wxPyBeginAllowThreads();
7582 (arg1)->PassMessages(arg2);
7583
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 Py_INCREF(Py_None); resultobj = Py_None;
7588 return resultobj;
7589 fail:
7590 return NULL;
7591}
7592
7593
7594static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7595 PyObject *obj;
7596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7597 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7598 Py_INCREF(obj);
7599 return Py_BuildValue((char *)"");
7600}
7601static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7602 PyObject *resultobj;
7603 wxLog *arg1 = (wxLog *) 0 ;
7604 wxLogChain *result;
7605 PyObject * obj0 = 0 ;
7606 char *kwnames[] = {
7607 (char *) "logger", NULL
7608 };
7609
7610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 result = (wxLogChain *)new wxLogChain(arg1);
7615
7616 wxPyEndAllowThreads(__tstate);
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1);
7620 return resultobj;
7621 fail:
7622 return NULL;
7623}
7624
7625
7626static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7627 PyObject *resultobj;
7628 wxLogChain *arg1 = (wxLogChain *) 0 ;
7629 wxLog *arg2 = (wxLog *) 0 ;
7630 PyObject * obj0 = 0 ;
7631 PyObject * obj1 = 0 ;
7632 char *kwnames[] = {
7633 (char *) "self",(char *) "logger", NULL
7634 };
7635
7636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7638 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7639 {
7640 PyThreadState* __tstate = wxPyBeginAllowThreads();
7641 (arg1)->SetLog(arg2);
7642
7643 wxPyEndAllowThreads(__tstate);
7644 if (PyErr_Occurred()) SWIG_fail;
7645 }
7646 Py_INCREF(Py_None); resultobj = Py_None;
7647 return resultobj;
7648 fail:
7649 return NULL;
7650}
7651
7652
7653static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7654 PyObject *resultobj;
7655 wxLogChain *arg1 = (wxLogChain *) 0 ;
7656 bool arg2 ;
7657 PyObject * obj0 = 0 ;
7658 PyObject * obj1 = 0 ;
7659 char *kwnames[] = {
7660 (char *) "self",(char *) "bDoPass", NULL
7661 };
7662
7663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2dbef272 7665 {
8edf1c75 7666 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
d14a1e28
RD
7669 {
7670 PyThreadState* __tstate = wxPyBeginAllowThreads();
7671 (arg1)->PassMessages(arg2);
7672
7673 wxPyEndAllowThreads(__tstate);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 Py_INCREF(Py_None); resultobj = Py_None;
7677 return resultobj;
7678 fail:
7679 return NULL;
7680}
7681
7682
7683static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj;
7685 wxLogChain *arg1 = (wxLogChain *) 0 ;
7686 bool result;
7687 PyObject * obj0 = 0 ;
7688 char *kwnames[] = {
7689 (char *) "self", NULL
7690 };
7691
7692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7694 {
7695 PyThreadState* __tstate = wxPyBeginAllowThreads();
7696 result = (bool)(arg1)->IsPassingMessages();
7697
7698 wxPyEndAllowThreads(__tstate);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
02a34c4c 7701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7702 return resultobj;
7703 fail:
7704 return NULL;
7705}
7706
7707
7708static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7709 PyObject *resultobj;
7710 wxLogChain *arg1 = (wxLogChain *) 0 ;
7711 wxLog *result;
7712 PyObject * obj0 = 0 ;
7713 char *kwnames[] = {
7714 (char *) "self", NULL
7715 };
7716
7717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7719 {
7720 PyThreadState* __tstate = wxPyBeginAllowThreads();
7721 result = (wxLog *)(arg1)->GetOldLog();
7722
7723 wxPyEndAllowThreads(__tstate);
7724 if (PyErr_Occurred()) SWIG_fail;
7725 }
7726 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
7727 return resultobj;
7728 fail:
7729 return NULL;
7730}
7731
7732
7733static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
7734 PyObject *obj;
7735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7736 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7737 Py_INCREF(obj);
7738 return Py_BuildValue((char *)"");
7739}
7740static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
7741 PyObject *resultobj;
7742 unsigned long result;
7743 char *kwnames[] = {
7744 NULL
7745 };
7746
7747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7748 {
7749 PyThreadState* __tstate = wxPyBeginAllowThreads();
7750 result = (unsigned long)wxSysErrorCode();
7751
7752 wxPyEndAllowThreads(__tstate);
7753 if (PyErr_Occurred()) SWIG_fail;
7754 }
8edf1c75 7755 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
7756 return resultobj;
7757 fail:
7758 return NULL;
7759}
7760
7761
7762static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
7763 PyObject *resultobj;
7764 unsigned long arg1 = (unsigned long) 0 ;
7765 wxString result;
7766 PyObject * obj0 = 0 ;
7767 char *kwnames[] = {
7768 (char *) "nErrCode", NULL
7769 };
7770
7771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7772 if (obj0) {
2dbef272 7773 {
8edf1c75 7774 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
2dbef272
RD
7775 if (PyErr_Occurred()) SWIG_fail;
7776 }
d14a1e28
RD
7777 }
7778 {
7779 PyThreadState* __tstate = wxPyBeginAllowThreads();
7780 result = wxSysErrorMsg(arg1);
7781
7782 wxPyEndAllowThreads(__tstate);
7783 if (PyErr_Occurred()) SWIG_fail;
7784 }
7785 {
7786#if wxUSE_UNICODE
7787 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7788#else
7789 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7790#endif
7791 }
7792 return resultobj;
7793 fail:
7794 return NULL;
7795}
7796
7797
7798static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
7799 PyObject *resultobj;
7800 wxString *arg1 = 0 ;
423f194a 7801 bool temp1 = False ;
d14a1e28
RD
7802 PyObject * obj0 = 0 ;
7803 char *kwnames[] = {
7804 (char *) "msg", NULL
7805 };
7806
7807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
7808 {
7809 arg1 = wxString_in_helper(obj0);
7810 if (arg1 == NULL) SWIG_fail;
423f194a 7811 temp1 = True;
d14a1e28
RD
7812 }
7813 {
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 wxLogFatalError((wxString const &)*arg1);
7816
7817 wxPyEndAllowThreads(__tstate);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 Py_INCREF(Py_None); resultobj = Py_None;
7821 {
7822 if (temp1)
7823 delete arg1;
7824 }
7825 return resultobj;
7826 fail:
7827 {
7828 if (temp1)
7829 delete arg1;
7830 }
7831 return NULL;
7832}
7833
7834
7835static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
7836 PyObject *resultobj;
7837 wxString *arg1 = 0 ;
423f194a 7838 bool temp1 = False ;
d14a1e28
RD
7839 PyObject * obj0 = 0 ;
7840 char *kwnames[] = {
7841 (char *) "msg", NULL
7842 };
7843
7844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
7845 {
7846 arg1 = wxString_in_helper(obj0);
7847 if (arg1 == NULL) SWIG_fail;
423f194a 7848 temp1 = True;
d14a1e28
RD
7849 }
7850 {
7851 PyThreadState* __tstate = wxPyBeginAllowThreads();
7852 wxLogError((wxString const &)*arg1);
7853
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 Py_INCREF(Py_None); resultobj = Py_None;
7858 {
7859 if (temp1)
7860 delete arg1;
7861 }
7862 return resultobj;
7863 fail:
7864 {
7865 if (temp1)
7866 delete arg1;
7867 }
7868 return NULL;
7869}
7870
7871
7872static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
7873 PyObject *resultobj;
7874 wxString *arg1 = 0 ;
423f194a 7875 bool temp1 = False ;
d14a1e28
RD
7876 PyObject * obj0 = 0 ;
7877 char *kwnames[] = {
7878 (char *) "msg", NULL
7879 };
7880
7881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
7882 {
7883 arg1 = wxString_in_helper(obj0);
7884 if (arg1 == NULL) SWIG_fail;
423f194a 7885 temp1 = True;
d14a1e28
RD
7886 }
7887 {
7888 PyThreadState* __tstate = wxPyBeginAllowThreads();
7889 wxLogWarning((wxString const &)*arg1);
7890
7891 wxPyEndAllowThreads(__tstate);
7892 if (PyErr_Occurred()) SWIG_fail;
7893 }
7894 Py_INCREF(Py_None); resultobj = Py_None;
7895 {
7896 if (temp1)
7897 delete arg1;
7898 }
7899 return resultobj;
7900 fail:
7901 {
7902 if (temp1)
7903 delete arg1;
7904 }
7905 return NULL;
7906}
7907
7908
7909static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7910 PyObject *resultobj;
7911 wxString *arg1 = 0 ;
423f194a 7912 bool temp1 = False ;
d14a1e28
RD
7913 PyObject * obj0 = 0 ;
7914 char *kwnames[] = {
7915 (char *) "msg", NULL
7916 };
7917
7918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
7919 {
7920 arg1 = wxString_in_helper(obj0);
7921 if (arg1 == NULL) SWIG_fail;
423f194a 7922 temp1 = True;
d14a1e28
RD
7923 }
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 wxLogMessage((wxString const &)*arg1);
7927
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 Py_INCREF(Py_None); resultobj = Py_None;
7932 {
7933 if (temp1)
7934 delete arg1;
7935 }
7936 return resultobj;
7937 fail:
7938 {
7939 if (temp1)
7940 delete arg1;
7941 }
7942 return NULL;
7943}
7944
7945
7946static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7947 PyObject *resultobj;
7948 wxString *arg1 = 0 ;
423f194a 7949 bool temp1 = False ;
d14a1e28
RD
7950 PyObject * obj0 = 0 ;
7951 char *kwnames[] = {
7952 (char *) "msg", NULL
7953 };
7954
7955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
7956 {
7957 arg1 = wxString_in_helper(obj0);
7958 if (arg1 == NULL) SWIG_fail;
423f194a 7959 temp1 = True;
d14a1e28
RD
7960 }
7961 {
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 wxLogInfo((wxString const &)*arg1);
7964
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 Py_INCREF(Py_None); resultobj = Py_None;
7969 {
7970 if (temp1)
7971 delete arg1;
7972 }
7973 return resultobj;
7974 fail:
7975 {
7976 if (temp1)
7977 delete arg1;
7978 }
7979 return NULL;
7980}
7981
7982
7983static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
7984 PyObject *resultobj;
7985 wxString *arg1 = 0 ;
423f194a 7986 bool temp1 = False ;
d14a1e28
RD
7987 PyObject * obj0 = 0 ;
7988 char *kwnames[] = {
7989 (char *) "msg", NULL
7990 };
7991
7992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
7993 {
7994 arg1 = wxString_in_helper(obj0);
7995 if (arg1 == NULL) SWIG_fail;
423f194a 7996 temp1 = True;
d14a1e28
RD
7997 }
7998 {
7999 PyThreadState* __tstate = wxPyBeginAllowThreads();
8000 wxLogDebug((wxString const &)*arg1);
8001
8002 wxPyEndAllowThreads(__tstate);
8003 if (PyErr_Occurred()) SWIG_fail;
8004 }
8005 Py_INCREF(Py_None); resultobj = Py_None;
8006 {
8007 if (temp1)
8008 delete arg1;
8009 }
8010 return resultobj;
8011 fail:
8012 {
8013 if (temp1)
8014 delete arg1;
8015 }
8016 return NULL;
8017}
8018
8019
8020static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8021 PyObject *resultobj;
8022 wxString *arg1 = 0 ;
423f194a 8023 bool temp1 = False ;
d14a1e28
RD
8024 PyObject * obj0 = 0 ;
8025 char *kwnames[] = {
8026 (char *) "msg", NULL
8027 };
8028
8029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8030 {
8031 arg1 = wxString_in_helper(obj0);
8032 if (arg1 == NULL) SWIG_fail;
423f194a 8033 temp1 = True;
d14a1e28
RD
8034 }
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 wxLogVerbose((wxString const &)*arg1);
8038
8039 wxPyEndAllowThreads(__tstate);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 Py_INCREF(Py_None); resultobj = Py_None;
8043 {
8044 if (temp1)
8045 delete arg1;
8046 }
8047 return resultobj;
8048 fail:
8049 {
8050 if (temp1)
8051 delete arg1;
8052 }
8053 return NULL;
8054}
8055
8056
8057static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8058 PyObject *resultobj;
8059 wxString *arg1 = 0 ;
423f194a 8060 bool temp1 = False ;
d14a1e28
RD
8061 PyObject * obj0 = 0 ;
8062 char *kwnames[] = {
8063 (char *) "msg", NULL
8064 };
8065
8066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8067 {
8068 arg1 = wxString_in_helper(obj0);
8069 if (arg1 == NULL) SWIG_fail;
423f194a 8070 temp1 = True;
d14a1e28
RD
8071 }
8072 {
8073 PyThreadState* __tstate = wxPyBeginAllowThreads();
8074 wxLogStatus((wxString const &)*arg1);
8075
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 Py_INCREF(Py_None); resultobj = Py_None;
8080 {
8081 if (temp1)
8082 delete arg1;
8083 }
8084 return resultobj;
8085 fail:
8086 {
8087 if (temp1)
8088 delete arg1;
8089 }
8090 return NULL;
8091}
8092
8093
8094static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8095 PyObject *resultobj;
8096 wxFrame *arg1 = (wxFrame *) 0 ;
8097 wxString *arg2 = 0 ;
423f194a 8098 bool temp2 = False ;
d14a1e28
RD
8099 PyObject * obj0 = 0 ;
8100 PyObject * obj1 = 0 ;
8101 char *kwnames[] = {
8102 (char *) "pFrame",(char *) "msg", NULL
8103 };
8104
8105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8107 {
8108 arg2 = wxString_in_helper(obj1);
8109 if (arg2 == NULL) SWIG_fail;
423f194a 8110 temp2 = True;
d14a1e28
RD
8111 }
8112 {
8113 PyThreadState* __tstate = wxPyBeginAllowThreads();
8114 wxLogStatus(arg1,(wxString const &)*arg2);
8115
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 Py_INCREF(Py_None); resultobj = Py_None;
8120 {
8121 if (temp2)
8122 delete arg2;
8123 }
8124 return resultobj;
8125 fail:
8126 {
8127 if (temp2)
8128 delete arg2;
8129 }
8130 return NULL;
8131}
8132
8133
8134static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8135 PyObject *resultobj;
8136 wxString *arg1 = 0 ;
423f194a 8137 bool temp1 = False ;
d14a1e28
RD
8138 PyObject * obj0 = 0 ;
8139 char *kwnames[] = {
8140 (char *) "msg", NULL
8141 };
8142
8143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8144 {
8145 arg1 = wxString_in_helper(obj0);
8146 if (arg1 == NULL) SWIG_fail;
423f194a 8147 temp1 = True;
d14a1e28
RD
8148 }
8149 {
8150 PyThreadState* __tstate = wxPyBeginAllowThreads();
8151 wxLogSysError((wxString const &)*arg1);
8152
8153 wxPyEndAllowThreads(__tstate);
8154 if (PyErr_Occurred()) SWIG_fail;
8155 }
8156 Py_INCREF(Py_None); resultobj = Py_None;
8157 {
8158 if (temp1)
8159 delete arg1;
8160 }
8161 return resultobj;
8162 fail:
8163 {
8164 if (temp1)
8165 delete arg1;
8166 }
8167 return NULL;
8168}
8169
8170
0f774bef 8171static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28 8172 PyObject *resultobj;
0f774bef
RD
8173 unsigned long arg1 ;
8174 wxString *arg2 = 0 ;
8175 bool temp2 = False ;
d14a1e28 8176 PyObject * obj0 = 0 ;
0f774bef 8177 PyObject * obj1 = 0 ;
d14a1e28 8178
0f774bef 8179 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
2dbef272 8180 {
8edf1c75 8181 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
2dbef272
RD
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
d14a1e28 8184 {
0f774bef
RD
8185 arg2 = wxString_in_helper(obj1);
8186 if (arg2 == NULL) SWIG_fail;
8187 temp2 = True;
d14a1e28
RD
8188 }
8189 {
8190 PyThreadState* __tstate = wxPyBeginAllowThreads();
0f774bef 8191 wxLogTrace(arg1,(wxString const &)*arg2);
d14a1e28
RD
8192
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 Py_INCREF(Py_None); resultobj = Py_None;
8197 {
0f774bef
RD
8198 if (temp2)
8199 delete arg2;
d14a1e28
RD
8200 }
8201 return resultobj;
8202 fail:
8203 {
0f774bef
RD
8204 if (temp2)
8205 delete arg2;
d14a1e28
RD
8206 }
8207 return NULL;
8208}
8209
8210
0f774bef 8211static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
8212 PyObject *resultobj;
8213 wxString *arg1 = 0 ;
8214 wxString *arg2 = 0 ;
423f194a
RD
8215 bool temp1 = False ;
8216 bool temp2 = False ;
d14a1e28
RD
8217 PyObject * obj0 = 0 ;
8218 PyObject * obj1 = 0 ;
d14a1e28 8219
0f774bef 8220 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
d14a1e28
RD
8221 {
8222 arg1 = wxString_in_helper(obj0);
8223 if (arg1 == NULL) SWIG_fail;
423f194a 8224 temp1 = True;
d14a1e28
RD
8225 }
8226 {
8227 arg2 = wxString_in_helper(obj1);
8228 if (arg2 == NULL) SWIG_fail;
423f194a 8229 temp2 = True;
d14a1e28
RD
8230 }
8231 {
8232 PyThreadState* __tstate = wxPyBeginAllowThreads();
8233 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8234
8235 wxPyEndAllowThreads(__tstate);
8236 if (PyErr_Occurred()) SWIG_fail;
8237 }
8238 Py_INCREF(Py_None); resultobj = Py_None;
8239 {
8240 if (temp1)
8241 delete arg1;
8242 }
8243 {
8244 if (temp2)
8245 delete arg2;
8246 }
8247 return resultobj;
8248 fail:
8249 {
8250 if (temp1)
8251 delete arg1;
8252 }
8253 {
8254 if (temp2)
8255 delete arg2;
8256 }
8257 return NULL;
8258}
8259
8260
0f774bef
RD
8261static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8262 int argc;
8263 PyObject *argv[3];
8264 int ii;
8265
8266 argc = PyObject_Length(args);
8267 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8268 argv[ii] = PyTuple_GetItem(args,ii);
8269 }
8270 if (argc == 2) {
8271 int _v;
8272 {
02a34c4c 8273 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
0f774bef
RD
8274 }
8275 if (_v) {
8276 {
02a34c4c 8277 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
0f774bef
RD
8278 }
8279 if (_v) {
8280 return _wrap_LogTrace__SWIG_1(self,args);
8281 }
8282 }
8283 }
8284 if (argc == 2) {
8285 int _v;
8286 {
8edf1c75 8287 SWIG_PyObj_AsUnsignedLong(argv[0]);
2dbef272
RD
8288 if (PyErr_Occurred()) {
8289 _v = 0;
8290 PyErr_Clear();
8291 } else {
8292 _v = 1;
8293 }
0f774bef
RD
8294 }
8295 if (_v) {
8296 {
02a34c4c 8297 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
0f774bef
RD
8298 }
8299 if (_v) {
8300 return _wrap_LogTrace__SWIG_0(self,args);
8301 }
8302 }
8303 }
8304
8305 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8306 return NULL;
8307}
8308
8309
d14a1e28
RD
8310static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8311 PyObject *resultobj;
8312 unsigned long arg1 ;
8313 wxString *arg2 = 0 ;
423f194a 8314 bool temp2 = False ;
d14a1e28
RD
8315 PyObject * obj0 = 0 ;
8316 PyObject * obj1 = 0 ;
8317 char *kwnames[] = {
8318 (char *) "level",(char *) "msg", NULL
8319 };
8320
8321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
2dbef272 8322 {
8edf1c75 8323 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
2dbef272
RD
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
d14a1e28
RD
8326 {
8327 arg2 = wxString_in_helper(obj1);
8328 if (arg2 == NULL) SWIG_fail;
423f194a 8329 temp2 = True;
d14a1e28
RD
8330 }
8331 {
8332 PyThreadState* __tstate = wxPyBeginAllowThreads();
8333 wxLogGeneric(arg1,(wxString const &)*arg2);
8334
8335 wxPyEndAllowThreads(__tstate);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 Py_INCREF(Py_None); resultobj = Py_None;
8339 {
8340 if (temp2)
8341 delete arg2;
8342 }
8343 return resultobj;
8344 fail:
8345 {
8346 if (temp2)
8347 delete arg2;
8348 }
8349 return NULL;
8350}
8351
8352
8353static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8354 PyObject *resultobj;
8355 wxString *arg1 = 0 ;
8356 wxString *arg2 = 0 ;
423f194a
RD
8357 bool temp1 = False ;
8358 bool temp2 = False ;
d14a1e28
RD
8359 PyObject * obj0 = 0 ;
8360 PyObject * obj1 = 0 ;
8361 char *kwnames[] = {
8362 (char *) "title",(char *) "text", NULL
8363 };
8364
8365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8366 {
8367 arg1 = wxString_in_helper(obj0);
8368 if (arg1 == NULL) SWIG_fail;
423f194a 8369 temp1 = True;
d14a1e28
RD
8370 }
8371 {
8372 arg2 = wxString_in_helper(obj1);
8373 if (arg2 == NULL) SWIG_fail;
423f194a 8374 temp2 = True;
d14a1e28
RD
8375 }
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8379
8380 wxPyEndAllowThreads(__tstate);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 Py_INCREF(Py_None); resultobj = Py_None;
8384 {
8385 if (temp1)
8386 delete arg1;
8387 }
8388 {
8389 if (temp2)
8390 delete arg2;
8391 }
8392 return resultobj;
8393 fail:
8394 {
8395 if (temp1)
8396 delete arg1;
8397 }
8398 {
8399 if (temp2)
8400 delete arg2;
8401 }
8402 return NULL;
8403}
8404
8405
8406static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8407 PyObject *resultobj;
8408 wxLogNull *result;
8409 char *kwnames[] = {
8410 NULL
8411 };
8412
8413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8414 {
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 result = (wxLogNull *)new wxLogNull();
8417
8418 wxPyEndAllowThreads(__tstate);
8419 if (PyErr_Occurred()) SWIG_fail;
8420 }
8421 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1);
8422 return resultobj;
8423 fail:
8424 return NULL;
8425}
8426
8427
8428static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8429 PyObject *resultobj;
8430 wxLogNull *arg1 = (wxLogNull *) 0 ;
8431 PyObject * obj0 = 0 ;
8432 char *kwnames[] = {
8433 (char *) "self", NULL
8434 };
8435
8436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 delete arg1;
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 Py_INCREF(Py_None); resultobj = Py_None;
8446 return resultobj;
8447 fail:
8448 return NULL;
8449}
8450
8451
8452static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8453 PyObject *obj;
8454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8455 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8456 Py_INCREF(obj);
8457 return Py_BuildValue((char *)"");
8458}
8459static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8460 PyObject *resultobj;
8461 wxPyLog *result;
8462 char *kwnames[] = {
8463 NULL
8464 };
8465
8466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 result = (wxPyLog *)new wxPyLog();
8470
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1);
8475 return resultobj;
8476 fail:
8477 return NULL;
8478}
8479
8480
8481static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj;
8483 wxPyLog *arg1 = (wxPyLog *) 0 ;
8484 PyObject *arg2 = (PyObject *) 0 ;
8485 PyObject *arg3 = (PyObject *) 0 ;
8486 PyObject * obj0 = 0 ;
8487 PyObject * obj1 = 0 ;
8488 PyObject * obj2 = 0 ;
8489 char *kwnames[] = {
8490 (char *) "self",(char *) "self",(char *) "_class", NULL
8491 };
8492
8493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8495 arg2 = obj1;
8496 arg3 = obj2;
8497 {
8498 PyThreadState* __tstate = wxPyBeginAllowThreads();
8499 (arg1)->_setCallbackInfo(arg2,arg3);
8500
8501 wxPyEndAllowThreads(__tstate);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
8504 Py_INCREF(Py_None); resultobj = Py_None;
8505 return resultobj;
8506 fail:
8507 return NULL;
8508}
8509
8510
8511static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8512 PyObject *obj;
8513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8514 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8515 Py_INCREF(obj);
8516 return Py_BuildValue((char *)"");
8517}
8518static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8519 PyObject *resultobj;
8520 int arg1 ;
8521 int arg2 = (int) wxSIGTERM ;
8522 int result;
8edf1c75
RD
8523 PyObject * obj0 = 0 ;
8524 PyObject * obj1 = 0 ;
d14a1e28
RD
8525 char *kwnames[] = {
8526 (char *) "pid",(char *) "sig", NULL
8527 };
8528
8edf1c75
RD
8529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8530 {
8531 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8532 if (PyErr_Occurred()) SWIG_fail;
8533 }
8534 if (obj1) {
8535 {
8536 arg2 = (wxSignal) SWIG_PyObj_AsInt(obj1);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 }
d14a1e28
RD
8540 {
8541 PyThreadState* __tstate = wxPyBeginAllowThreads();
8542 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8543
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8edf1c75 8547 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
8548 return resultobj;
8549 fail:
8550 return NULL;
8551}
8552
8553
8554static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8555 PyObject *resultobj;
8556 int arg1 ;
8557 bool result;
8edf1c75 8558 PyObject * obj0 = 0 ;
d14a1e28
RD
8559 char *kwnames[] = {
8560 (char *) "pid", NULL
8561 };
8562
8edf1c75
RD
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8564 {
8565 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8566 if (PyErr_Occurred()) SWIG_fail;
8567 }
d14a1e28
RD
8568 {
8569 PyThreadState* __tstate = wxPyBeginAllowThreads();
8570 result = (bool)wxPyProcess::Exists(arg1);
8571
8572 wxPyEndAllowThreads(__tstate);
8573 if (PyErr_Occurred()) SWIG_fail;
8574 }
02a34c4c 8575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8576 return resultobj;
8577 fail:
8578 return NULL;
8579}
8580
8581
8582static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8583 PyObject *resultobj;
8584 wxString *arg1 = 0 ;
8585 int arg2 = (int) wxEXEC_ASYNC ;
8586 wxPyProcess *result;
423f194a 8587 bool temp1 = False ;
d14a1e28 8588 PyObject * obj0 = 0 ;
8edf1c75 8589 PyObject * obj1 = 0 ;
d14a1e28
RD
8590 char *kwnames[] = {
8591 (char *) "cmd",(char *) "flags", NULL
8592 };
8593
8edf1c75 8594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
8595 {
8596 arg1 = wxString_in_helper(obj0);
8597 if (arg1 == NULL) SWIG_fail;
423f194a 8598 temp1 = True;
d14a1e28 8599 }
8edf1c75
RD
8600 if (obj1) {
8601 {
8602 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8603 if (PyErr_Occurred()) SWIG_fail;
8604 }
8605 }
d14a1e28
RD
8606 {
8607 PyThreadState* __tstate = wxPyBeginAllowThreads();
8608 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8609
8610 wxPyEndAllowThreads(__tstate);
8611 if (PyErr_Occurred()) SWIG_fail;
8612 }
8613 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0);
8614 {
8615 if (temp1)
8616 delete arg1;
8617 }
8618 return resultobj;
8619 fail:
8620 {
8621 if (temp1)
8622 delete arg1;
8623 }
8624 return NULL;
8625}
8626
8627
8628static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8629 PyObject *resultobj;
8630 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8631 int arg2 = (int) -1 ;
8632 wxPyProcess *result;
8633 PyObject * obj0 = 0 ;
8edf1c75 8634 PyObject * obj1 = 0 ;
d14a1e28
RD
8635 char *kwnames[] = {
8636 (char *) "parent",(char *) "id", NULL
8637 };
8638
8edf1c75 8639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
8640 if (obj0) {
8641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8642 }
8edf1c75
RD
8643 if (obj1) {
8644 {
8645 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 }
d14a1e28
RD
8649 {
8650 PyThreadState* __tstate = wxPyBeginAllowThreads();
8651 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8652
8653 wxPyEndAllowThreads(__tstate);
8654 if (PyErr_Occurred()) SWIG_fail;
8655 }
8656 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1);
8657 return resultobj;
8658 fail:
8659 return NULL;
8660}
8661
8662
8663static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8664 PyObject *resultobj;
8665 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8666 PyObject *arg2 = (PyObject *) 0 ;
8667 PyObject *arg3 = (PyObject *) 0 ;
8668 PyObject * obj0 = 0 ;
8669 PyObject * obj1 = 0 ;
8670 PyObject * obj2 = 0 ;
8671 char *kwnames[] = {
8672 (char *) "self",(char *) "self",(char *) "_class", NULL
8673 };
8674
8675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8677 arg2 = obj1;
8678 arg3 = obj2;
8679 {
8680 PyThreadState* __tstate = wxPyBeginAllowThreads();
8681 (arg1)->_setCallbackInfo(arg2,arg3);
8682
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 Py_INCREF(Py_None); resultobj = Py_None;
8687 return resultobj;
8688 fail:
8689 return NULL;
8690}
8691
8692
8693static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj;
8695 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8696 int arg2 ;
8697 int arg3 ;
8698 PyObject * obj0 = 0 ;
8edf1c75
RD
8699 PyObject * obj1 = 0 ;
8700 PyObject * obj2 = 0 ;
d14a1e28
RD
8701 char *kwnames[] = {
8702 (char *) "self",(char *) "pid",(char *) "status", NULL
8703 };
8704
8edf1c75 8705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8707 {
8708 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 {
8712 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8713 if (PyErr_Occurred()) SWIG_fail;
8714 }
d14a1e28
RD
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 (arg1)->base_OnTerminate(arg2,arg3);
8718
8719 wxPyEndAllowThreads(__tstate);
8720 if (PyErr_Occurred()) SWIG_fail;
8721 }
8722 Py_INCREF(Py_None); resultobj = Py_None;
8723 return resultobj;
8724 fail:
8725 return NULL;
8726}
8727
8728
8729static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8730 PyObject *resultobj;
8731 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8732 PyObject * obj0 = 0 ;
8733 char *kwnames[] = {
8734 (char *) "self", NULL
8735 };
8736
8737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8739 {
8740 PyThreadState* __tstate = wxPyBeginAllowThreads();
8741 (arg1)->Redirect();
8742
8743 wxPyEndAllowThreads(__tstate);
8744 if (PyErr_Occurred()) SWIG_fail;
8745 }
8746 Py_INCREF(Py_None); resultobj = Py_None;
8747 return resultobj;
8748 fail:
8749 return NULL;
8750}
8751
8752
8753static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj;
8755 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8756 bool result;
8757 PyObject * obj0 = 0 ;
8758 char *kwnames[] = {
8759 (char *) "self", NULL
8760 };
8761
8762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8764 {
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 result = (bool)(arg1)->IsRedirected();
8767
8768 wxPyEndAllowThreads(__tstate);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
02a34c4c 8771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8772 return resultobj;
8773 fail:
8774 return NULL;
8775}
8776
8777
8778static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
8779 PyObject *resultobj;
8780 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8781 PyObject * obj0 = 0 ;
8782 char *kwnames[] = {
8783 (char *) "self", NULL
8784 };
8785
8786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8788 {
8789 PyThreadState* __tstate = wxPyBeginAllowThreads();
8790 (arg1)->Detach();
8791
8792 wxPyEndAllowThreads(__tstate);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 }
8795 Py_INCREF(Py_None); resultobj = Py_None;
8796 return resultobj;
8797 fail:
8798 return NULL;
8799}
8800
8801
8802static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8803 PyObject *resultobj;
8804 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8805 wxInputStream *result;
8806 PyObject * obj0 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "self", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
8812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8813 {
8814 PyThreadState* __tstate = wxPyBeginAllowThreads();
8815 result = (wxInputStream *)(arg1)->GetInputStream();
8816
8817 wxPyEndAllowThreads(__tstate);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 {
8821 wxPyInputStream * _ptr = NULL;
8822
8823 if (result) {
8824 _ptr = new wxPyInputStream(result);
8825 }
423f194a 8826 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
8827 }
8828 return resultobj;
8829 fail:
8830 return NULL;
8831}
8832
8833
8834static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8835 PyObject *resultobj;
8836 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8837 wxInputStream *result;
8838 PyObject * obj0 = 0 ;
8839 char *kwnames[] = {
8840 (char *) "self", NULL
8841 };
8842
8843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
8844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8845 {
8846 PyThreadState* __tstate = wxPyBeginAllowThreads();
8847 result = (wxInputStream *)(arg1)->GetErrorStream();
8848
8849 wxPyEndAllowThreads(__tstate);
8850 if (PyErr_Occurred()) SWIG_fail;
8851 }
8852 {
8853 wxPyInputStream * _ptr = NULL;
8854
8855 if (result) {
8856 _ptr = new wxPyInputStream(result);
8857 }
423f194a 8858 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
8859 }
8860 return resultobj;
8861 fail:
8862 return NULL;
8863}
8864
8865
8866static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj;
8868 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8869 wxOutputStream *result;
8870 PyObject * obj0 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "self", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
8876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8877 {
8878 PyThreadState* __tstate = wxPyBeginAllowThreads();
8879 result = (wxOutputStream *)(arg1)->GetOutputStream();
8880
8881 wxPyEndAllowThreads(__tstate);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 }
8884 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0);
8885 return resultobj;
8886 fail:
8887 return NULL;
8888}
8889
8890
8891static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
8892 PyObject *resultobj;
8893 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8894 PyObject * obj0 = 0 ;
8895 char *kwnames[] = {
8896 (char *) "self", NULL
8897 };
8898
8899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
8900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8901 {
8902 PyThreadState* __tstate = wxPyBeginAllowThreads();
8903 (arg1)->CloseOutput();
8904
8905 wxPyEndAllowThreads(__tstate);
8906 if (PyErr_Occurred()) SWIG_fail;
8907 }
8908 Py_INCREF(Py_None); resultobj = Py_None;
8909 return resultobj;
8910 fail:
8911 return NULL;
8912}
8913
8914
8915static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj;
8917 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8918 bool result;
8919 PyObject * obj0 = 0 ;
8920 char *kwnames[] = {
8921 (char *) "self", NULL
8922 };
8923
8924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
8925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8926 {
8927 PyThreadState* __tstate = wxPyBeginAllowThreads();
8928 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
8929
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
02a34c4c 8933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8934 return resultobj;
8935 fail:
8936 return NULL;
8937}
8938
8939
8940static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8941 PyObject *resultobj;
8942 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8943 bool result;
8944 PyObject * obj0 = 0 ;
8945 char *kwnames[] = {
8946 (char *) "self", NULL
8947 };
8948
8949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
8950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8951 {
8952 PyThreadState* __tstate = wxPyBeginAllowThreads();
8953 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
8954
8955 wxPyEndAllowThreads(__tstate);
8956 if (PyErr_Occurred()) SWIG_fail;
8957 }
02a34c4c 8958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8959 return resultobj;
8960 fail:
8961 return NULL;
8962}
8963
8964
8965static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj;
8967 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8968 bool result;
8969 PyObject * obj0 = 0 ;
8970 char *kwnames[] = {
8971 (char *) "self", NULL
8972 };
8973
8974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
8975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8976 {
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
8979
8980 wxPyEndAllowThreads(__tstate);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 }
02a34c4c 8983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8984 return resultobj;
8985 fail:
8986 return NULL;
8987}
8988
8989
8990static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
8991 PyObject *obj;
8992 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8993 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
8994 Py_INCREF(obj);
8995 return Py_BuildValue((char *)"");
8996}
8997static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj;
8999 int arg1 = (int) 0 ;
9000 int arg2 = (int) 0 ;
9001 int arg3 = (int) 0 ;
9002 wxProcessEvent *result;
8edf1c75
RD
9003 PyObject * obj0 = 0 ;
9004 PyObject * obj1 = 0 ;
9005 PyObject * obj2 = 0 ;
d14a1e28
RD
9006 char *kwnames[] = {
9007 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9008 };
9009
8edf1c75
RD
9010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9011 if (obj0) {
9012 {
9013 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9014 if (PyErr_Occurred()) SWIG_fail;
9015 }
9016 }
9017 if (obj1) {
9018 {
9019 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 }
9023 if (obj2) {
9024 {
9025 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9026 if (PyErr_Occurred()) SWIG_fail;
9027 }
9028 }
d14a1e28
RD
9029 {
9030 PyThreadState* __tstate = wxPyBeginAllowThreads();
9031 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9032
9033 wxPyEndAllowThreads(__tstate);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 }
9036 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1);
9037 return resultobj;
9038 fail:
9039 return NULL;
9040}
9041
9042
9043static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9044 PyObject *resultobj;
9045 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9046 int result;
9047 PyObject * obj0 = 0 ;
9048 char *kwnames[] = {
9049 (char *) "self", NULL
9050 };
9051
9052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9054 {
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 result = (int)(arg1)->GetPid();
9057
9058 wxPyEndAllowThreads(__tstate);
9059 if (PyErr_Occurred()) SWIG_fail;
9060 }
8edf1c75 9061 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9062 return resultobj;
9063 fail:
9064 return NULL;
9065}
9066
9067
9068static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj;
9070 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9071 int result;
9072 PyObject * obj0 = 0 ;
9073 char *kwnames[] = {
9074 (char *) "self", NULL
9075 };
9076
9077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9079 {
9080 PyThreadState* __tstate = wxPyBeginAllowThreads();
9081 result = (int)(arg1)->GetExitCode();
9082
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 }
8edf1c75 9086 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9087 return resultobj;
9088 fail:
9089 return NULL;
9090}
9091
9092
9093static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9096 int arg2 ;
9097 PyObject * obj0 = 0 ;
8edf1c75 9098 PyObject * obj1 = 0 ;
d14a1e28
RD
9099 char *kwnames[] = {
9100 (char *) "self",(char *) "m_pid", NULL
9101 };
9102
8edf1c75 9103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 9104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
9105 {
9106 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
d14a1e28
RD
9109 if (arg1) (arg1)->m_pid = arg2;
9110
9111 Py_INCREF(Py_None); resultobj = Py_None;
9112 return resultobj;
9113 fail:
9114 return NULL;
9115}
9116
9117
9118static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9119 PyObject *resultobj;
9120 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9121 int result;
9122 PyObject * obj0 = 0 ;
9123 char *kwnames[] = {
9124 (char *) "self", NULL
9125 };
9126
9127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9129 result = (int) ((arg1)->m_pid);
9130
8edf1c75 9131 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9132 return resultobj;
9133 fail:
9134 return NULL;
9135}
9136
9137
9138static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9139 PyObject *resultobj;
9140 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9141 int arg2 ;
9142 PyObject * obj0 = 0 ;
8edf1c75 9143 PyObject * obj1 = 0 ;
d14a1e28
RD
9144 char *kwnames[] = {
9145 (char *) "self",(char *) "m_exitcode", NULL
9146 };
9147
8edf1c75 9148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 9149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
9150 {
9151 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
d14a1e28
RD
9154 if (arg1) (arg1)->m_exitcode = arg2;
9155
9156 Py_INCREF(Py_None); resultobj = Py_None;
9157 return resultobj;
9158 fail:
9159 return NULL;
9160}
9161
9162
9163static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9164 PyObject *resultobj;
9165 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9166 int result;
9167 PyObject * obj0 = 0 ;
9168 char *kwnames[] = {
9169 (char *) "self", NULL
9170 };
9171
9172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9174 result = (int) ((arg1)->m_exitcode);
9175
8edf1c75 9176 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9177 return resultobj;
9178 fail:
9179 return NULL;
9180}
9181
9182
9183static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9184 PyObject *obj;
9185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9186 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9187 Py_INCREF(obj);
9188 return Py_BuildValue((char *)"");
9189}
9190static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9191 PyObject *resultobj;
9192 wxString *arg1 = 0 ;
9193 int arg2 = (int) wxEXEC_ASYNC ;
9194 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9195 long result;
423f194a 9196 bool temp1 = False ;
d14a1e28 9197 PyObject * obj0 = 0 ;
8edf1c75 9198 PyObject * obj1 = 0 ;
d14a1e28
RD
9199 PyObject * obj2 = 0 ;
9200 char *kwnames[] = {
9201 (char *) "command",(char *) "flags",(char *) "process", NULL
9202 };
9203
8edf1c75 9204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
9205 {
9206 arg1 = wxString_in_helper(obj0);
9207 if (arg1 == NULL) SWIG_fail;
423f194a 9208 temp1 = True;
d14a1e28 9209 }
8edf1c75
RD
9210 if (obj1) {
9211 {
9212 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9213 if (PyErr_Occurred()) SWIG_fail;
9214 }
9215 }
d14a1e28
RD
9216 if (obj2) {
9217 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9218 }
9219 {
9220 PyThreadState* __tstate = wxPyBeginAllowThreads();
9221 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9222
9223 wxPyEndAllowThreads(__tstate);
9224 if (PyErr_Occurred()) SWIG_fail;
9225 }
8edf1c75 9226 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
9227 {
9228 if (temp1)
9229 delete arg1;
9230 }
9231 return resultobj;
9232 fail:
9233 {
9234 if (temp1)
9235 delete arg1;
9236 }
9237 return NULL;
9238}
9239
9240
9241static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9242 PyObject *resultobj;
9243 int arg1 = (int) wxJOYSTICK1 ;
9244 wxJoystick *result;
8edf1c75 9245 PyObject * obj0 = 0 ;
d14a1e28
RD
9246 char *kwnames[] = {
9247 (char *) "joystick", NULL
9248 };
9249
8edf1c75
RD
9250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9251 if (obj0) {
9252 {
9253 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 }
d14a1e28
RD
9257 {
9258 PyThreadState* __tstate = wxPyBeginAllowThreads();
9259 result = (wxJoystick *)new wxJoystick(arg1);
9260
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1);
9265 return resultobj;
9266 fail:
9267 return NULL;
9268}
9269
9270
9271static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9272 PyObject *resultobj;
9273 wxJoystick *arg1 = (wxJoystick *) 0 ;
9274 PyObject * obj0 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "self", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 delete arg1;
9284
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 Py_INCREF(Py_None); resultobj = Py_None;
9289 return resultobj;
9290 fail:
9291 return NULL;
9292}
9293
9294
9295static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9296 PyObject *resultobj;
9297 wxJoystick *arg1 = (wxJoystick *) 0 ;
9298 wxPoint result;
9299 PyObject * obj0 = 0 ;
9300 char *kwnames[] = {
9301 (char *) "self", NULL
9302 };
9303
9304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9306 {
9307 PyThreadState* __tstate = wxPyBeginAllowThreads();
9308 result = (arg1)->GetPosition();
9309
9310 wxPyEndAllowThreads(__tstate);
9311 if (PyErr_Occurred()) SWIG_fail;
9312 }
9313 {
9314 wxPoint * resultptr;
9315 resultptr = new wxPoint((wxPoint &) result);
9316 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
9317 }
9318 return resultobj;
9319 fail:
9320 return NULL;
9321}
9322
9323
9324static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj;
9326 wxJoystick *arg1 = (wxJoystick *) 0 ;
9327 int result;
9328 PyObject * obj0 = 0 ;
9329 char *kwnames[] = {
9330 (char *) "self", NULL
9331 };
9332
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9335 {
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 result = (int)(arg1)->GetZPosition();
9338
9339 wxPyEndAllowThreads(__tstate);
9340 if (PyErr_Occurred()) SWIG_fail;
9341 }
8edf1c75 9342 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9343 return resultobj;
9344 fail:
9345 return NULL;
9346}
9347
9348
9349static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9350 PyObject *resultobj;
9351 wxJoystick *arg1 = (wxJoystick *) 0 ;
9352 int result;
9353 PyObject * obj0 = 0 ;
9354 char *kwnames[] = {
9355 (char *) "self", NULL
9356 };
9357
9358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 result = (int)(arg1)->GetButtonState();
9363
9364 wxPyEndAllowThreads(__tstate);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
8edf1c75 9367 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9368 return resultobj;
9369 fail:
9370 return NULL;
9371}
9372
9373
9374static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj;
9376 wxJoystick *arg1 = (wxJoystick *) 0 ;
9377 int result;
9378 PyObject * obj0 = 0 ;
9379 char *kwnames[] = {
9380 (char *) "self", NULL
9381 };
9382
9383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9385 {
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 result = (int)(arg1)->GetPOVPosition();
9388
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
8edf1c75 9392 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9393 return resultobj;
9394 fail:
9395 return NULL;
9396}
9397
9398
9399static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj;
9401 wxJoystick *arg1 = (wxJoystick *) 0 ;
9402 int result;
9403 PyObject * obj0 = 0 ;
9404 char *kwnames[] = {
9405 (char *) "self", NULL
9406 };
9407
9408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9410 {
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 result = (int)(arg1)->GetPOVCTSPosition();
9413
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 }
8edf1c75 9417 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9418 return resultobj;
9419 fail:
9420 return NULL;
9421}
9422
9423
9424static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9425 PyObject *resultobj;
9426 wxJoystick *arg1 = (wxJoystick *) 0 ;
9427 int result;
9428 PyObject * obj0 = 0 ;
9429 char *kwnames[] = {
9430 (char *) "self", NULL
9431 };
9432
9433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 result = (int)(arg1)->GetRudderPosition();
9438
9439 wxPyEndAllowThreads(__tstate);
9440 if (PyErr_Occurred()) SWIG_fail;
9441 }
8edf1c75 9442 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9443 return resultobj;
9444 fail:
9445 return NULL;
9446}
9447
9448
9449static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj;
9451 wxJoystick *arg1 = (wxJoystick *) 0 ;
9452 int result;
9453 PyObject * obj0 = 0 ;
9454 char *kwnames[] = {
9455 (char *) "self", NULL
9456 };
9457
9458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 result = (int)(arg1)->GetUPosition();
9463
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
8edf1c75 9467 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9468 return resultobj;
9469 fail:
9470 return NULL;
9471}
9472
9473
9474static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9475 PyObject *resultobj;
9476 wxJoystick *arg1 = (wxJoystick *) 0 ;
9477 int result;
9478 PyObject * obj0 = 0 ;
9479 char *kwnames[] = {
9480 (char *) "self", NULL
9481 };
9482
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 result = (int)(arg1)->GetVPosition();
9488
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
8edf1c75 9492 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9493 return resultobj;
9494 fail:
9495 return NULL;
9496}
9497
9498
9499static PyObject *_wrap_Joystick_GetMovementThreshold(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_GetMovementThreshold",kwnames,&obj0)) goto fail;
9509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9510 {
9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
9512 result = (int)(arg1)->GetMovementThreshold();
9513
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
8edf1c75 9517 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9518 return resultobj;
9519 fail:
9520 return NULL;
9521}
9522
9523
9524static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj;
9526 wxJoystick *arg1 = (wxJoystick *) 0 ;
9527 int arg2 ;
9528 PyObject * obj0 = 0 ;
8edf1c75 9529 PyObject * obj1 = 0 ;
d14a1e28
RD
9530 char *kwnames[] = {
9531 (char *) "self",(char *) "threshold", NULL
9532 };
9533
8edf1c75 9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 9535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
9536 {
9537 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 }
d14a1e28
RD
9540 {
9541 PyThreadState* __tstate = wxPyBeginAllowThreads();
9542 (arg1)->SetMovementThreshold(arg2);
9543
9544 wxPyEndAllowThreads(__tstate);
9545 if (PyErr_Occurred()) SWIG_fail;
9546 }
9547 Py_INCREF(Py_None); resultobj = Py_None;
9548 return resultobj;
9549 fail:
9550 return NULL;
9551}
9552
9553
9554static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9555 PyObject *resultobj;
9556 wxJoystick *arg1 = (wxJoystick *) 0 ;
9557 bool result;
9558 PyObject * obj0 = 0 ;
9559 char *kwnames[] = {
9560 (char *) "self", NULL
9561 };
9562
9563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 result = (bool)(arg1)->IsOk();
9568
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
02a34c4c 9572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9573 return resultobj;
9574 fail:
9575 return NULL;
9576}
9577
9578
9579static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9580 PyObject *resultobj;
9581 wxJoystick *arg1 = (wxJoystick *) 0 ;
9582 int result;
9583 PyObject * obj0 = 0 ;
9584 char *kwnames[] = {
9585 (char *) "self", NULL
9586 };
9587
9588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9590 {
9591 PyThreadState* __tstate = wxPyBeginAllowThreads();
9592 result = (int)(arg1)->GetNumberJoysticks();
9593
9594 wxPyEndAllowThreads(__tstate);
9595 if (PyErr_Occurred()) SWIG_fail;
9596 }
8edf1c75 9597 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9598 return resultobj;
9599 fail:
9600 return NULL;
9601}
9602
9603
9604static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9605 PyObject *resultobj;
9606 wxJoystick *arg1 = (wxJoystick *) 0 ;
9607 int result;
9608 PyObject * obj0 = 0 ;
9609 char *kwnames[] = {
9610 (char *) "self", NULL
9611 };
9612
9613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 result = (int)(arg1)->GetManufacturerId();
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
8edf1c75 9622 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9623 return resultobj;
9624 fail:
9625 return NULL;
9626}
9627
9628
9629static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9630 PyObject *resultobj;
9631 wxJoystick *arg1 = (wxJoystick *) 0 ;
9632 int result;
9633 PyObject * obj0 = 0 ;
9634 char *kwnames[] = {
9635 (char *) "self", NULL
9636 };
9637
9638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9640 {
9641 PyThreadState* __tstate = wxPyBeginAllowThreads();
9642 result = (int)(arg1)->GetProductId();
9643
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
8edf1c75 9647 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9648 return resultobj;
9649 fail:
9650 return NULL;
9651}
9652
9653
9654static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9655 PyObject *resultobj;
9656 wxJoystick *arg1 = (wxJoystick *) 0 ;
9657 wxString result;
9658 PyObject * obj0 = 0 ;
9659 char *kwnames[] = {
9660 (char *) "self", NULL
9661 };
9662
9663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 result = (arg1)->GetProductName();
9668
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 {
9673#if wxUSE_UNICODE
9674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9675#else
9676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9677#endif
9678 }
9679 return resultobj;
9680 fail:
9681 return NULL;
9682}
9683
9684
9685static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj;
9687 wxJoystick *arg1 = (wxJoystick *) 0 ;
9688 int result;
9689 PyObject * obj0 = 0 ;
9690 char *kwnames[] = {
9691 (char *) "self", NULL
9692 };
9693
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (int)(arg1)->GetXMin();
9699
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
8edf1c75 9703 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9704 return resultobj;
9705 fail:
9706 return NULL;
9707}
9708
9709
9710static PyObject *_wrap_Joystick_GetYMin(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_GetYMin",kwnames,&obj0)) goto fail;
9720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9721 {
9722 PyThreadState* __tstate = wxPyBeginAllowThreads();
9723 result = (int)(arg1)->GetYMin();
9724
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
8edf1c75 9728 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9729 return resultobj;
9730 fail:
9731 return NULL;
9732}
9733
9734
9735static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj;
9737 wxJoystick *arg1 = (wxJoystick *) 0 ;
9738 int result;
9739 PyObject * obj0 = 0 ;
9740 char *kwnames[] = {
9741 (char *) "self", NULL
9742 };
9743
9744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9746 {
9747 PyThreadState* __tstate = wxPyBeginAllowThreads();
9748 result = (int)(arg1)->GetZMin();
9749
9750 wxPyEndAllowThreads(__tstate);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
8edf1c75 9753 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9754 return resultobj;
9755 fail:
9756 return NULL;
9757}
9758
9759
9760static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9761 PyObject *resultobj;
9762 wxJoystick *arg1 = (wxJoystick *) 0 ;
9763 int result;
9764 PyObject * obj0 = 0 ;
9765 char *kwnames[] = {
9766 (char *) "self", NULL
9767 };
9768
9769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9771 {
9772 PyThreadState* __tstate = wxPyBeginAllowThreads();
9773 result = (int)(arg1)->GetXMax();
9774
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
8edf1c75 9778 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9779 return resultobj;
9780 fail:
9781 return NULL;
9782}
9783
9784
9785static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9786 PyObject *resultobj;
9787 wxJoystick *arg1 = (wxJoystick *) 0 ;
9788 int result;
9789 PyObject * obj0 = 0 ;
9790 char *kwnames[] = {
9791 (char *) "self", NULL
9792 };
9793
9794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
9795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9796 {
9797 PyThreadState* __tstate = wxPyBeginAllowThreads();
9798 result = (int)(arg1)->GetYMax();
9799
9800 wxPyEndAllowThreads(__tstate);
9801 if (PyErr_Occurred()) SWIG_fail;
9802 }
8edf1c75 9803 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9804 return resultobj;
9805 fail:
9806 return NULL;
9807}
9808
9809
9810static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9811 PyObject *resultobj;
9812 wxJoystick *arg1 = (wxJoystick *) 0 ;
9813 int result;
9814 PyObject * obj0 = 0 ;
9815 char *kwnames[] = {
9816 (char *) "self", NULL
9817 };
9818
9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
9820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9821 {
9822 PyThreadState* __tstate = wxPyBeginAllowThreads();
9823 result = (int)(arg1)->GetZMax();
9824
9825 wxPyEndAllowThreads(__tstate);
9826 if (PyErr_Occurred()) SWIG_fail;
9827 }
8edf1c75 9828 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9829 return resultobj;
9830 fail:
9831 return NULL;
9832}
9833
9834
9835static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj;
9837 wxJoystick *arg1 = (wxJoystick *) 0 ;
9838 int result;
9839 PyObject * obj0 = 0 ;
9840 char *kwnames[] = {
9841 (char *) "self", NULL
9842 };
9843
9844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
9845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 result = (int)(arg1)->GetNumberButtons();
9849
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
8edf1c75 9853 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9854 return resultobj;
9855 fail:
9856 return NULL;
9857}
9858
9859
9860static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj;
9862 wxJoystick *arg1 = (wxJoystick *) 0 ;
9863 int result;
9864 PyObject * obj0 = 0 ;
9865 char *kwnames[] = {
9866 (char *) "self", NULL
9867 };
9868
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
9870 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9871 {
9872 PyThreadState* __tstate = wxPyBeginAllowThreads();
9873 result = (int)(arg1)->GetNumberAxes();
9874
9875 wxPyEndAllowThreads(__tstate);
9876 if (PyErr_Occurred()) SWIG_fail;
9877 }
8edf1c75 9878 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9879 return resultobj;
9880 fail:
9881 return NULL;
9882}
9883
9884
9885static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9886 PyObject *resultobj;
9887 wxJoystick *arg1 = (wxJoystick *) 0 ;
9888 int result;
9889 PyObject * obj0 = 0 ;
9890 char *kwnames[] = {
9891 (char *) "self", NULL
9892 };
9893
9894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
9895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9896 {
9897 PyThreadState* __tstate = wxPyBeginAllowThreads();
9898 result = (int)(arg1)->GetMaxButtons();
9899
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
8edf1c75 9903 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9904 return resultobj;
9905 fail:
9906 return NULL;
9907}
9908
9909
9910static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
9911 PyObject *resultobj;
9912 wxJoystick *arg1 = (wxJoystick *) 0 ;
9913 int result;
9914 PyObject * obj0 = 0 ;
9915 char *kwnames[] = {
9916 (char *) "self", NULL
9917 };
9918
9919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
9920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 result = (int)(arg1)->GetMaxAxes();
9924
9925 wxPyEndAllowThreads(__tstate);
9926 if (PyErr_Occurred()) SWIG_fail;
9927 }
8edf1c75 9928 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9929 return resultobj;
9930 fail:
9931 return NULL;
9932}
9933
9934
9935static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9936 PyObject *resultobj;
9937 wxJoystick *arg1 = (wxJoystick *) 0 ;
9938 int result;
9939 PyObject * obj0 = 0 ;
9940 char *kwnames[] = {
9941 (char *) "self", NULL
9942 };
9943
9944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
9945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9946 {
9947 PyThreadState* __tstate = wxPyBeginAllowThreads();
9948 result = (int)(arg1)->GetPollingMin();
9949
9950 wxPyEndAllowThreads(__tstate);
9951 if (PyErr_Occurred()) SWIG_fail;
9952 }
8edf1c75 9953 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9954 return resultobj;
9955 fail:
9956 return NULL;
9957}
9958
9959
9960static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj;
9962 wxJoystick *arg1 = (wxJoystick *) 0 ;
9963 int result;
9964 PyObject * obj0 = 0 ;
9965 char *kwnames[] = {
9966 (char *) "self", NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
9970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9971 {
9972 PyThreadState* __tstate = wxPyBeginAllowThreads();
9973 result = (int)(arg1)->GetPollingMax();
9974
9975 wxPyEndAllowThreads(__tstate);
9976 if (PyErr_Occurred()) SWIG_fail;
9977 }
8edf1c75 9978 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9979 return resultobj;
9980 fail:
9981 return NULL;
9982}
9983
9984
9985static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9986 PyObject *resultobj;
9987 wxJoystick *arg1 = (wxJoystick *) 0 ;
9988 int result;
9989 PyObject * obj0 = 0 ;
9990 char *kwnames[] = {
9991 (char *) "self", NULL
9992 };
9993
9994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
9995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 result = (int)(arg1)->GetRudderMin();
9999
10000 wxPyEndAllowThreads(__tstate);
10001 if (PyErr_Occurred()) SWIG_fail;
10002 }
8edf1c75 10003 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10004 return resultobj;
10005 fail:
10006 return NULL;
10007}
10008
10009
10010static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10011 PyObject *resultobj;
10012 wxJoystick *arg1 = (wxJoystick *) 0 ;
10013 int result;
10014 PyObject * obj0 = 0 ;
10015 char *kwnames[] = {
10016 (char *) "self", NULL
10017 };
10018
10019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10021 {
10022 PyThreadState* __tstate = wxPyBeginAllowThreads();
10023 result = (int)(arg1)->GetRudderMax();
10024
10025 wxPyEndAllowThreads(__tstate);
10026 if (PyErr_Occurred()) SWIG_fail;
10027 }
8edf1c75 10028 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10029 return resultobj;
10030 fail:
10031 return NULL;
10032}
10033
10034
10035static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10036 PyObject *resultobj;
10037 wxJoystick *arg1 = (wxJoystick *) 0 ;
10038 int result;
10039 PyObject * obj0 = 0 ;
10040 char *kwnames[] = {
10041 (char *) "self", NULL
10042 };
10043
10044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10046 {
10047 PyThreadState* __tstate = wxPyBeginAllowThreads();
10048 result = (int)(arg1)->GetUMin();
10049
10050 wxPyEndAllowThreads(__tstate);
10051 if (PyErr_Occurred()) SWIG_fail;
10052 }
8edf1c75 10053 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10054 return resultobj;
10055 fail:
10056 return NULL;
10057}
10058
10059
10060static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10061 PyObject *resultobj;
10062 wxJoystick *arg1 = (wxJoystick *) 0 ;
10063 int result;
10064 PyObject * obj0 = 0 ;
10065 char *kwnames[] = {
10066 (char *) "self", NULL
10067 };
10068
10069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10071 {
10072 PyThreadState* __tstate = wxPyBeginAllowThreads();
10073 result = (int)(arg1)->GetUMax();
10074
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
8edf1c75 10078 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10079 return resultobj;
10080 fail:
10081 return NULL;
10082}
10083
10084
10085static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj;
10087 wxJoystick *arg1 = (wxJoystick *) 0 ;
10088 int result;
10089 PyObject * obj0 = 0 ;
10090 char *kwnames[] = {
10091 (char *) "self", NULL
10092 };
10093
10094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10096 {
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 result = (int)(arg1)->GetVMin();
10099
10100 wxPyEndAllowThreads(__tstate);
10101 if (PyErr_Occurred()) SWIG_fail;
10102 }
8edf1c75 10103 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10104 return resultobj;
10105 fail:
10106 return NULL;
10107}
10108
10109
10110static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10111 PyObject *resultobj;
10112 wxJoystick *arg1 = (wxJoystick *) 0 ;
10113 int result;
10114 PyObject * obj0 = 0 ;
10115 char *kwnames[] = {
10116 (char *) "self", NULL
10117 };
10118
10119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10121 {
10122 PyThreadState* __tstate = wxPyBeginAllowThreads();
10123 result = (int)(arg1)->GetVMax();
10124
10125 wxPyEndAllowThreads(__tstate);
10126 if (PyErr_Occurred()) SWIG_fail;
10127 }
8edf1c75 10128 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10129 return resultobj;
10130 fail:
10131 return NULL;
10132}
10133
10134
10135static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10136 PyObject *resultobj;
10137 wxJoystick *arg1 = (wxJoystick *) 0 ;
10138 bool result;
10139 PyObject * obj0 = 0 ;
10140 char *kwnames[] = {
10141 (char *) "self", NULL
10142 };
10143
10144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10146 {
10147 PyThreadState* __tstate = wxPyBeginAllowThreads();
10148 result = (bool)(arg1)->HasRudder();
10149
10150 wxPyEndAllowThreads(__tstate);
10151 if (PyErr_Occurred()) SWIG_fail;
10152 }
02a34c4c 10153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10154 return resultobj;
10155 fail:
10156 return NULL;
10157}
10158
10159
10160static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10161 PyObject *resultobj;
10162 wxJoystick *arg1 = (wxJoystick *) 0 ;
10163 bool result;
10164 PyObject * obj0 = 0 ;
10165 char *kwnames[] = {
10166 (char *) "self", NULL
10167 };
10168
10169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10171 {
10172 PyThreadState* __tstate = wxPyBeginAllowThreads();
10173 result = (bool)(arg1)->HasZ();
10174
10175 wxPyEndAllowThreads(__tstate);
10176 if (PyErr_Occurred()) SWIG_fail;
10177 }
02a34c4c 10178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10179 return resultobj;
10180 fail:
10181 return NULL;
10182}
10183
10184
10185static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10186 PyObject *resultobj;
10187 wxJoystick *arg1 = (wxJoystick *) 0 ;
10188 bool result;
10189 PyObject * obj0 = 0 ;
10190 char *kwnames[] = {
10191 (char *) "self", NULL
10192 };
10193
10194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 result = (bool)(arg1)->HasU();
10199
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
02a34c4c 10203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10204 return resultobj;
10205 fail:
10206 return NULL;
10207}
10208
10209
10210static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj;
10212 wxJoystick *arg1 = (wxJoystick *) 0 ;
10213 bool result;
10214 PyObject * obj0 = 0 ;
10215 char *kwnames[] = {
10216 (char *) "self", NULL
10217 };
10218
10219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10221 {
10222 PyThreadState* __tstate = wxPyBeginAllowThreads();
10223 result = (bool)(arg1)->HasV();
10224
10225 wxPyEndAllowThreads(__tstate);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
02a34c4c 10228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10229 return resultobj;
10230 fail:
10231 return NULL;
10232}
10233
10234
10235static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10236 PyObject *resultobj;
10237 wxJoystick *arg1 = (wxJoystick *) 0 ;
10238 bool result;
10239 PyObject * obj0 = 0 ;
10240 char *kwnames[] = {
10241 (char *) "self", NULL
10242 };
10243
10244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = (bool)(arg1)->HasPOV();
10249
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
02a34c4c 10253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10254 return resultobj;
10255 fail:
10256 return NULL;
10257}
10258
10259
10260static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj;
10262 wxJoystick *arg1 = (wxJoystick *) 0 ;
10263 bool result;
10264 PyObject * obj0 = 0 ;
10265 char *kwnames[] = {
10266 (char *) "self", NULL
10267 };
10268
10269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10271 {
10272 PyThreadState* __tstate = wxPyBeginAllowThreads();
10273 result = (bool)(arg1)->HasPOV4Dir();
10274
10275 wxPyEndAllowThreads(__tstate);
10276 if (PyErr_Occurred()) SWIG_fail;
10277 }
02a34c4c 10278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10279 return resultobj;
10280 fail:
10281 return NULL;
10282}
10283
10284
10285static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10286 PyObject *resultobj;
10287 wxJoystick *arg1 = (wxJoystick *) 0 ;
10288 bool result;
10289 PyObject * obj0 = 0 ;
10290 char *kwnames[] = {
10291 (char *) "self", NULL
10292 };
10293
10294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10296 {
10297 PyThreadState* __tstate = wxPyBeginAllowThreads();
10298 result = (bool)(arg1)->HasPOVCTS();
10299
10300 wxPyEndAllowThreads(__tstate);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
02a34c4c 10303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10304 return resultobj;
10305 fail:
10306 return NULL;
10307}
10308
10309
10310static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10311 PyObject *resultobj;
10312 wxJoystick *arg1 = (wxJoystick *) 0 ;
10313 wxWindow *arg2 = (wxWindow *) 0 ;
10314 int arg3 = (int) 0 ;
10315 bool result;
10316 PyObject * obj0 = 0 ;
10317 PyObject * obj1 = 0 ;
8edf1c75 10318 PyObject * obj2 = 0 ;
d14a1e28
RD
10319 char *kwnames[] = {
10320 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10321 };
10322
8edf1c75 10323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
10324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10325 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10326 if (obj2) {
10327 {
10328 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10329 if (PyErr_Occurred()) SWIG_fail;
10330 }
10331 }
d14a1e28
RD
10332 {
10333 PyThreadState* __tstate = wxPyBeginAllowThreads();
10334 result = (bool)(arg1)->SetCapture(arg2,arg3);
10335
10336 wxPyEndAllowThreads(__tstate);
10337 if (PyErr_Occurred()) SWIG_fail;
10338 }
02a34c4c 10339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10340 return resultobj;
10341 fail:
10342 return NULL;
10343}
10344
10345
10346static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10347 PyObject *resultobj;
10348 wxJoystick *arg1 = (wxJoystick *) 0 ;
10349 bool result;
10350 PyObject * obj0 = 0 ;
10351 char *kwnames[] = {
10352 (char *) "self", NULL
10353 };
10354
10355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10357 {
10358 PyThreadState* __tstate = wxPyBeginAllowThreads();
10359 result = (bool)(arg1)->ReleaseCapture();
10360
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
02a34c4c 10364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10365 return resultobj;
10366 fail:
10367 return NULL;
10368}
10369
10370
10371static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10372 PyObject *obj;
10373 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10374 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10375 Py_INCREF(obj);
10376 return Py_BuildValue((char *)"");
10377}
10378static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10379 PyObject *resultobj;
10380 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10381 wxPoint *arg2 = (wxPoint *) 0 ;
10382 PyObject * obj0 = 0 ;
10383 PyObject * obj1 = 0 ;
10384 char *kwnames[] = {
10385 (char *) "self",(char *) "m_pos", NULL
10386 };
10387
10388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10390 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10391 if (arg1) (arg1)->m_pos = *arg2;
10392
10393 Py_INCREF(Py_None); resultobj = Py_None;
10394 return resultobj;
10395 fail:
10396 return NULL;
10397}
10398
10399
10400static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10401 PyObject *resultobj;
10402 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10403 wxPoint *result;
10404 PyObject * obj0 = 0 ;
10405 char *kwnames[] = {
10406 (char *) "self", NULL
10407 };
10408
10409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10411 result = (wxPoint *)& ((arg1)->m_pos);
10412
10413 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
10414 return resultobj;
10415 fail:
10416 return NULL;
10417}
10418
10419
10420static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj;
10422 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10423 int arg2 ;
10424 PyObject * obj0 = 0 ;
8edf1c75 10425 PyObject * obj1 = 0 ;
d14a1e28
RD
10426 char *kwnames[] = {
10427 (char *) "self",(char *) "m_zPosition", NULL
10428 };
10429
8edf1c75 10430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 10431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10432 {
10433 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 }
d14a1e28
RD
10436 if (arg1) (arg1)->m_zPosition = arg2;
10437
10438 Py_INCREF(Py_None); resultobj = Py_None;
10439 return resultobj;
10440 fail:
10441 return NULL;
10442}
10443
10444
10445static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10446 PyObject *resultobj;
10447 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10448 int result;
10449 PyObject * obj0 = 0 ;
10450 char *kwnames[] = {
10451 (char *) "self", NULL
10452 };
10453
10454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10456 result = (int) ((arg1)->m_zPosition);
10457
8edf1c75 10458 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10459 return resultobj;
10460 fail:
10461 return NULL;
10462}
10463
10464
10465static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10466 PyObject *resultobj;
10467 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10468 int arg2 ;
10469 PyObject * obj0 = 0 ;
8edf1c75 10470 PyObject * obj1 = 0 ;
d14a1e28
RD
10471 char *kwnames[] = {
10472 (char *) "self",(char *) "m_buttonChange", NULL
10473 };
10474
8edf1c75 10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 10476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10477 {
10478 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
d14a1e28
RD
10481 if (arg1) (arg1)->m_buttonChange = arg2;
10482
10483 Py_INCREF(Py_None); resultobj = Py_None;
10484 return resultobj;
10485 fail:
10486 return NULL;
10487}
10488
10489
10490static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10491 PyObject *resultobj;
10492 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10493 int result;
10494 PyObject * obj0 = 0 ;
10495 char *kwnames[] = {
10496 (char *) "self", NULL
10497 };
10498
10499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10501 result = (int) ((arg1)->m_buttonChange);
10502
8edf1c75 10503 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10504 return resultobj;
10505 fail:
10506 return NULL;
10507}
10508
10509
10510static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10511 PyObject *resultobj;
10512 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10513 int arg2 ;
10514 PyObject * obj0 = 0 ;
8edf1c75 10515 PyObject * obj1 = 0 ;
d14a1e28
RD
10516 char *kwnames[] = {
10517 (char *) "self",(char *) "m_buttonState", NULL
10518 };
10519
8edf1c75 10520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 10521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10522 {
10523 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
d14a1e28
RD
10526 if (arg1) (arg1)->m_buttonState = arg2;
10527
10528 Py_INCREF(Py_None); resultobj = Py_None;
10529 return resultobj;
10530 fail:
10531 return NULL;
10532}
10533
10534
10535static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10536 PyObject *resultobj;
10537 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10538 int result;
10539 PyObject * obj0 = 0 ;
10540 char *kwnames[] = {
10541 (char *) "self", NULL
10542 };
10543
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10546 result = (int) ((arg1)->m_buttonState);
10547
8edf1c75 10548 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10549 return resultobj;
10550 fail:
10551 return NULL;
10552}
10553
10554
10555static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10556 PyObject *resultobj;
10557 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10558 int arg2 ;
10559 PyObject * obj0 = 0 ;
8edf1c75 10560 PyObject * obj1 = 0 ;
d14a1e28
RD
10561 char *kwnames[] = {
10562 (char *) "self",(char *) "m_joyStick", NULL
10563 };
10564
8edf1c75 10565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 10566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10567 {
10568 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
d14a1e28
RD
10571 if (arg1) (arg1)->m_joyStick = arg2;
10572
10573 Py_INCREF(Py_None); resultobj = Py_None;
10574 return resultobj;
10575 fail:
10576 return NULL;
10577}
10578
10579
10580static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10581 PyObject *resultobj;
10582 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10583 int result;
10584 PyObject * obj0 = 0 ;
10585 char *kwnames[] = {
10586 (char *) "self", NULL
10587 };
10588
10589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10591 result = (int) ((arg1)->m_joyStick);
10592
8edf1c75 10593 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10594 return resultobj;
10595 fail:
10596 return NULL;
10597}
10598
10599
10600static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10601 PyObject *resultobj;
10602 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10603 int arg2 = (int) 0 ;
10604 int arg3 = (int) wxJOYSTICK1 ;
10605 int arg4 = (int) 0 ;
10606 wxJoystickEvent *result;
8edf1c75
RD
10607 PyObject * obj0 = 0 ;
10608 PyObject * obj1 = 0 ;
10609 PyObject * obj2 = 0 ;
10610 PyObject * obj3 = 0 ;
d14a1e28
RD
10611 char *kwnames[] = {
10612 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10613 };
10614
8edf1c75
RD
10615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10616 if (obj0) {
10617 {
10618 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 }
10622 if (obj1) {
10623 {
10624 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10625 if (PyErr_Occurred()) SWIG_fail;
10626 }
10627 }
10628 if (obj2) {
10629 {
10630 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10631 if (PyErr_Occurred()) SWIG_fail;
10632 }
10633 }
10634 if (obj3) {
10635 {
10636 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10637 if (PyErr_Occurred()) SWIG_fail;
10638 }
10639 }
d14a1e28
RD
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10643
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1);
10648 return resultobj;
10649 fail:
10650 return NULL;
10651}
10652
10653
10654static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj;
10656 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10657 wxPoint result;
10658 PyObject * obj0 = 0 ;
10659 char *kwnames[] = {
10660 (char *) "self", NULL
10661 };
10662
10663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
10664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10665 {
10666 PyThreadState* __tstate = wxPyBeginAllowThreads();
10667 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10668
10669 wxPyEndAllowThreads(__tstate);
10670 if (PyErr_Occurred()) SWIG_fail;
10671 }
10672 {
10673 wxPoint * resultptr;
10674 resultptr = new wxPoint((wxPoint &) result);
10675 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
10676 }
10677 return resultobj;
10678 fail:
10679 return NULL;
10680}
10681
10682
10683static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10684 PyObject *resultobj;
10685 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10686 int result;
10687 PyObject * obj0 = 0 ;
10688 char *kwnames[] = {
10689 (char *) "self", NULL
10690 };
10691
10692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
10693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
10697
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
8edf1c75 10701 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10702 return resultobj;
10703 fail:
10704 return NULL;
10705}
10706
10707
10708static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj;
10710 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10711 int result;
10712 PyObject * obj0 = 0 ;
10713 char *kwnames[] = {
10714 (char *) "self", NULL
10715 };
10716
10717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10722
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
8edf1c75 10726 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10727 return resultobj;
10728 fail:
10729 return NULL;
10730}
10731
10732
10733static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj;
10735 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10736 int result;
10737 PyObject * obj0 = 0 ;
10738 char *kwnames[] = {
10739 (char *) "self", NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10744 {
10745 PyThreadState* __tstate = wxPyBeginAllowThreads();
10746 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10747
10748 wxPyEndAllowThreads(__tstate);
10749 if (PyErr_Occurred()) SWIG_fail;
10750 }
8edf1c75 10751 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10752 return resultobj;
10753 fail:
10754 return NULL;
10755}
10756
10757
10758static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj;
10760 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10761 int result;
10762 PyObject * obj0 = 0 ;
10763 char *kwnames[] = {
10764 (char *) "self", NULL
10765 };
10766
10767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
10768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
10772
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
8edf1c75 10776 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10777 return resultobj;
10778 fail:
10779 return NULL;
10780}
10781
10782
10783static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10784 PyObject *resultobj;
10785 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10786 int arg2 ;
10787 PyObject * obj0 = 0 ;
8edf1c75 10788 PyObject * obj1 = 0 ;
d14a1e28
RD
10789 char *kwnames[] = {
10790 (char *) "self",(char *) "stick", NULL
10791 };
10792
8edf1c75 10793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 10794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10795 {
10796 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 }
d14a1e28
RD
10799 {
10800 PyThreadState* __tstate = wxPyBeginAllowThreads();
10801 (arg1)->SetJoystick(arg2);
10802
10803 wxPyEndAllowThreads(__tstate);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 Py_INCREF(Py_None); resultobj = Py_None;
10807 return resultobj;
10808 fail:
10809 return NULL;
10810}
10811
10812
10813static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj;
10815 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10816 int arg2 ;
10817 PyObject * obj0 = 0 ;
8edf1c75 10818 PyObject * obj1 = 0 ;
d14a1e28
RD
10819 char *kwnames[] = {
10820 (char *) "self",(char *) "state", NULL
10821 };
10822
8edf1c75 10823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 10824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10825 {
10826 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10827 if (PyErr_Occurred()) SWIG_fail;
10828 }
d14a1e28
RD
10829 {
10830 PyThreadState* __tstate = wxPyBeginAllowThreads();
10831 (arg1)->SetButtonState(arg2);
10832
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 Py_INCREF(Py_None); resultobj = Py_None;
10837 return resultobj;
10838 fail:
10839 return NULL;
10840}
10841
10842
10843static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10844 PyObject *resultobj;
10845 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10846 int arg2 ;
10847 PyObject * obj0 = 0 ;
8edf1c75 10848 PyObject * obj1 = 0 ;
d14a1e28
RD
10849 char *kwnames[] = {
10850 (char *) "self",(char *) "change", NULL
10851 };
10852
8edf1c75 10853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 10854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10855 {
10856 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10857 if (PyErr_Occurred()) SWIG_fail;
10858 }
d14a1e28
RD
10859 {
10860 PyThreadState* __tstate = wxPyBeginAllowThreads();
10861 (arg1)->SetButtonChange(arg2);
10862
10863 wxPyEndAllowThreads(__tstate);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 }
10866 Py_INCREF(Py_None); resultobj = Py_None;
10867 return resultobj;
10868 fail:
10869 return NULL;
10870}
10871
10872
10873static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10874 PyObject *resultobj;
10875 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10876 wxPoint *arg2 = 0 ;
10877 wxPoint temp2 ;
10878 PyObject * obj0 = 0 ;
10879 PyObject * obj1 = 0 ;
10880 char *kwnames[] = {
10881 (char *) "self",(char *) "pos", NULL
10882 };
10883
10884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
10885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10886 {
10887 arg2 = &temp2;
10888 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10889 }
10890 {
10891 PyThreadState* __tstate = wxPyBeginAllowThreads();
10892 (arg1)->SetPosition((wxPoint const &)*arg2);
10893
10894 wxPyEndAllowThreads(__tstate);
10895 if (PyErr_Occurred()) SWIG_fail;
10896 }
10897 Py_INCREF(Py_None); resultobj = Py_None;
10898 return resultobj;
10899 fail:
10900 return NULL;
10901}
10902
10903
10904static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10905 PyObject *resultobj;
10906 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10907 int arg2 ;
10908 PyObject * obj0 = 0 ;
8edf1c75 10909 PyObject * obj1 = 0 ;
d14a1e28
RD
10910 char *kwnames[] = {
10911 (char *) "self",(char *) "zPos", NULL
10912 };
10913
8edf1c75 10914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 10915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10916 {
10917 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10918 if (PyErr_Occurred()) SWIG_fail;
10919 }
d14a1e28
RD
10920 {
10921 PyThreadState* __tstate = wxPyBeginAllowThreads();
10922 (arg1)->SetZPosition(arg2);
10923
10924 wxPyEndAllowThreads(__tstate);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 Py_INCREF(Py_None); resultobj = Py_None;
10928 return resultobj;
10929 fail:
10930 return NULL;
10931}
10932
10933
10934static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10935 PyObject *resultobj;
10936 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10937 bool result;
10938 PyObject * obj0 = 0 ;
10939 char *kwnames[] = {
10940 (char *) "self", NULL
10941 };
10942
10943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
10944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
10948
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
02a34c4c 10952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10953 return resultobj;
10954 fail:
10955 return NULL;
10956}
10957
10958
10959static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj;
10961 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10962 bool result;
10963 PyObject * obj0 = 0 ;
10964 char *kwnames[] = {
10965 (char *) "self", NULL
10966 };
10967
10968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
10969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
10973
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
02a34c4c 10977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10978 return resultobj;
10979 fail:
10980 return NULL;
10981}
10982
10983
10984static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10987 bool result;
10988 PyObject * obj0 = 0 ;
10989 char *kwnames[] = {
10990 (char *) "self", NULL
10991 };
10992
10993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
10994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
02a34c4c 11002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11003 return resultobj;
11004 fail:
11005 return NULL;
11006}
11007
11008
11009static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11010 PyObject *resultobj;
11011 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11012 int arg2 = (int) wxJOY_BUTTON_ANY ;
11013 bool result;
11014 PyObject * obj0 = 0 ;
8edf1c75 11015 PyObject * obj1 = 0 ;
d14a1e28
RD
11016 char *kwnames[] = {
11017 (char *) "self",(char *) "but", NULL
11018 };
11019
8edf1c75 11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 11021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
11022 if (obj1) {
11023 {
11024 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 }
d14a1e28
RD
11028 {
11029 PyThreadState* __tstate = wxPyBeginAllowThreads();
11030 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11031
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
02a34c4c 11035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11036 return resultobj;
11037 fail:
11038 return NULL;
11039}
11040
11041
11042static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11043 PyObject *resultobj;
11044 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11045 int arg2 = (int) wxJOY_BUTTON_ANY ;
11046 bool result;
11047 PyObject * obj0 = 0 ;
8edf1c75 11048 PyObject * obj1 = 0 ;
d14a1e28
RD
11049 char *kwnames[] = {
11050 (char *) "self",(char *) "but", NULL
11051 };
11052
8edf1c75 11053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 11054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
11055 if (obj1) {
11056 {
11057 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11058 if (PyErr_Occurred()) SWIG_fail;
11059 }
11060 }
d14a1e28
RD
11061 {
11062 PyThreadState* __tstate = wxPyBeginAllowThreads();
11063 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11064
11065 wxPyEndAllowThreads(__tstate);
11066 if (PyErr_Occurred()) SWIG_fail;
11067 }
02a34c4c 11068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11069 return resultobj;
11070 fail:
11071 return NULL;
11072}
11073
11074
11075static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11076 PyObject *resultobj;
11077 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11078 int arg2 = (int) wxJOY_BUTTON_ANY ;
11079 bool result;
11080 PyObject * obj0 = 0 ;
8edf1c75 11081 PyObject * obj1 = 0 ;
d14a1e28
RD
11082 char *kwnames[] = {
11083 (char *) "self",(char *) "but", NULL
11084 };
11085
8edf1c75 11086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 11087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
11088 if (obj1) {
11089 {
11090 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11091 if (PyErr_Occurred()) SWIG_fail;
11092 }
11093 }
d14a1e28
RD
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11097
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 }
02a34c4c 11101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11102 return resultobj;
11103 fail:
11104 return NULL;
11105}
11106
11107
11108static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11109 PyObject *obj;
11110 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11111 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11112 Py_INCREF(obj);
11113 return Py_BuildValue((char *)"");
11114}
02a34c4c
RD
11115static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) {
11116 PyObject *resultobj;
11117 wxSound *result;
11118
11119 if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail;
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 result = (wxSound *)new wxSound();
11123
11124 wxPyEndAllowThreads(__tstate);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1);
11128 return resultobj;
11129 fail:
11130 return NULL;
11131}
11132
11133
11134static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
11135 PyObject *resultobj;
11136 wxString *arg1 = 0 ;
02a34c4c
RD
11137 bool arg2 = (bool) false ;
11138 wxSound *result;
423f194a 11139 bool temp1 = False ;
d14a1e28
RD
11140 PyObject * obj0 = 0 ;
11141 PyObject * obj1 = 0 ;
d14a1e28 11142
02a34c4c 11143 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail;
d14a1e28
RD
11144 {
11145 arg1 = wxString_in_helper(obj0);
11146 if (arg1 == NULL) SWIG_fail;
423f194a 11147 temp1 = True;
d14a1e28
RD
11148 }
11149 if (obj1) {
2dbef272 11150 {
8edf1c75 11151 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
11152 if (PyErr_Occurred()) SWIG_fail;
11153 }
d14a1e28
RD
11154 }
11155 {
11156 PyThreadState* __tstate = wxPyBeginAllowThreads();
02a34c4c 11157 result = (wxSound *)new wxSound((wxString const &)*arg1,arg2);
d14a1e28
RD
11158
11159 wxPyEndAllowThreads(__tstate);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
02a34c4c 11162 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1);
d14a1e28
RD
11163 {
11164 if (temp1)
11165 delete arg1;
11166 }
11167 return resultobj;
11168 fail:
11169 {
11170 if (temp1)
11171 delete arg1;
11172 }
11173 return NULL;
11174}
11175
11176
02a34c4c 11177static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) {
d14a1e28 11178 PyObject *resultobj;
02a34c4c
RD
11179 int arg1 ;
11180 wxByte *arg2 = (wxByte *) 0 ;
11181 wxSound *result;
d14a1e28 11182 PyObject * obj0 = 0 ;
02a34c4c 11183 PyObject * obj1 = 0 ;
d14a1e28 11184
02a34c4c 11185 if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail;
d14a1e28 11186 {
02a34c4c
RD
11187 arg1 = (int) SWIG_PyObj_AsInt(obj0);
11188 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 11189 }
02a34c4c 11190 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxByte,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
11191 {
11192 PyThreadState* __tstate = wxPyBeginAllowThreads();
02a34c4c 11193 result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2);
d14a1e28
RD
11194
11195 wxPyEndAllowThreads(__tstate);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 }
02a34c4c 11198 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSound, 1);
d14a1e28
RD
11199 return resultobj;
11200 fail:
02a34c4c
RD
11201 return NULL;
11202}
11203
11204
11205static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) {
11206 int argc;
11207 PyObject *argv[3];
11208 int ii;
11209
11210 argc = PyObject_Length(args);
11211 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11212 argv[ii] = PyTuple_GetItem(args,ii);
11213 }
11214 if (argc == 0) {
11215 return _wrap_new_Sound__SWIG_0(self,args);
d14a1e28 11216 }
02a34c4c
RD
11217 if ((argc >= 1) && (argc <= 2)) {
11218 int _v;
11219 {
11220 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11221 }
11222 if (_v) {
11223 if (argc <= 1) {
11224 return _wrap_new_Sound__SWIG_1(self,args);
11225 }
11226 {
11227 SWIG_PyObj_AsBool(argv[1]);
11228 if (PyErr_Occurred()) {
11229 _v = 0;
11230 PyErr_Clear();
11231 } else {
11232 _v = 1;
11233 }
11234 }
11235 if (_v) {
11236 return _wrap_new_Sound__SWIG_1(self,args);
11237 }
11238 }
11239 }
11240 if (argc == 2) {
11241 int _v;
11242 {
11243 SWIG_PyObj_AsInt(argv[0]);
11244 if (PyErr_Occurred()) {
11245 _v = 0;
11246 PyErr_Clear();
11247 } else {
11248 _v = 1;
11249 }
11250 }
11251 if (_v) {
11252 {
11253 void *ptr;
11254 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11255 _v = 0;
11256 PyErr_Clear();
11257 } else {
11258 _v = 1;
11259 }
11260 }
11261 if (_v) {
11262 return _wrap_new_Sound__SWIG_2(self,args);
11263 }
11264 }
11265 }
11266
11267 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'");
d14a1e28
RD
11268 return NULL;
11269}
11270
11271
02a34c4c 11272static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28 11273 PyObject *resultobj;
02a34c4c 11274 wxSound *arg1 = (wxSound *) 0 ;
d14a1e28
RD
11275 PyObject * obj0 = 0 ;
11276 char *kwnames[] = {
11277 (char *) "self", NULL
11278 };
11279
02a34c4c
RD
11280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
11282 {
11283 PyThreadState* __tstate = wxPyBeginAllowThreads();
11284 delete arg1;
11285
11286 wxPyEndAllowThreads(__tstate);
11287 if (PyErr_Occurred()) SWIG_fail;
11288 }
11289 Py_INCREF(Py_None); resultobj = Py_None;
11290 return resultobj;
11291 fail:
11292 return NULL;
11293}
11294
11295
02a34c4c 11296static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28 11297 PyObject *resultobj;
02a34c4c
RD
11298 wxSound *arg1 = (wxSound *) 0 ;
11299 wxString *arg2 = 0 ;
11300 bool arg3 = (bool) false ;
d14a1e28 11301 bool result;
02a34c4c 11302 bool temp2 = False ;
d14a1e28 11303 PyObject * obj0 = 0 ;
02a34c4c
RD
11304 PyObject * obj1 = 0 ;
11305 PyObject * obj2 = 0 ;
d14a1e28 11306
02a34c4c
RD
11307 if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11309 {
11310 arg2 = wxString_in_helper(obj1);
11311 if (arg2 == NULL) SWIG_fail;
11312 temp2 = True;
11313 }
11314 if (obj2) {
11315 {
11316 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 }
11319 }
d14a1e28
RD
11320 {
11321 PyThreadState* __tstate = wxPyBeginAllowThreads();
02a34c4c 11322 result = (bool)(arg1)->Create((wxString const &)*arg2,arg3);
d14a1e28
RD
11323
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
02a34c4c
RD
11327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11328 {
11329 if (temp2)
11330 delete arg2;
11331 }
d14a1e28
RD
11332 return resultobj;
11333 fail:
02a34c4c
RD
11334 {
11335 if (temp2)
11336 delete arg2;
11337 }
d14a1e28
RD
11338 return NULL;
11339}
11340
11341
02a34c4c 11342static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28 11343 PyObject *resultobj;
02a34c4c
RD
11344 wxSound *arg1 = (wxSound *) 0 ;
11345 int arg2 ;
11346 wxByte *arg3 = (wxByte *) 0 ;
d14a1e28
RD
11347 bool result;
11348 PyObject * obj0 = 0 ;
11349 PyObject * obj1 = 0 ;
11350 PyObject * obj2 = 0 ;
02a34c4c
RD
11351
11352 if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11354 {
11355 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxByte,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11359 {
11360 PyThreadState* __tstate = wxPyBeginAllowThreads();
11361 result = (bool)wxSound_Create__SWIG_1(arg1,arg2,(wxByte const *)arg3);
11362
11363 wxPyEndAllowThreads(__tstate);
11364 if (PyErr_Occurred()) SWIG_fail;
11365 }
11366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11367 return resultobj;
11368 fail:
11369 return NULL;
11370}
11371
11372
11373static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) {
11374 int argc;
11375 PyObject *argv[4];
11376 int ii;
11377
11378 argc = PyObject_Length(args);
11379 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11380 argv[ii] = PyTuple_GetItem(args,ii);
11381 }
11382 if ((argc >= 2) && (argc <= 3)) {
11383 int _v;
11384 {
11385 void *ptr;
11386 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11387 _v = 0;
11388 PyErr_Clear();
11389 } else {
11390 _v = 1;
11391 }
11392 }
11393 if (_v) {
11394 {
11395 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11396 }
11397 if (_v) {
11398 if (argc <= 2) {
11399 return _wrap_Sound_Create__SWIG_0(self,args);
11400 }
11401 {
11402 SWIG_PyObj_AsBool(argv[2]);
11403 if (PyErr_Occurred()) {
11404 _v = 0;
11405 PyErr_Clear();
11406 } else {
11407 _v = 1;
11408 }
11409 }
11410 if (_v) {
11411 return _wrap_Sound_Create__SWIG_0(self,args);
11412 }
11413 }
11414 }
11415 }
11416 if (argc == 3) {
11417 int _v;
11418 {
11419 void *ptr;
11420 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11421 _v = 0;
11422 PyErr_Clear();
11423 } else {
11424 _v = 1;
11425 }
11426 }
11427 if (_v) {
11428 {
11429 SWIG_PyObj_AsInt(argv[1]);
11430 if (PyErr_Occurred()) {
11431 _v = 0;
11432 PyErr_Clear();
11433 } else {
11434 _v = 1;
11435 }
11436 }
11437 if (_v) {
11438 {
11439 void *ptr;
11440 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11441 _v = 0;
11442 PyErr_Clear();
11443 } else {
11444 _v = 1;
11445 }
11446 }
11447 if (_v) {
11448 return _wrap_Sound_Create__SWIG_1(self,args);
11449 }
11450 }
11451 }
11452 }
11453
11454 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'");
11455 return NULL;
11456}
11457
11458
11459static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11460 PyObject *resultobj;
11461 wxSound *arg1 = (wxSound *) 0 ;
11462 bool result;
11463 PyObject * obj0 = 0 ;
d14a1e28 11464 char *kwnames[] = {
02a34c4c 11465 (char *) "self", NULL
d14a1e28
RD
11466 };
11467
02a34c4c
RD
11468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11470 {
11471 PyThreadState* __tstate = wxPyBeginAllowThreads();
11472 result = (bool)(arg1)->IsOk();
11473
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11478 return resultobj;
11479 fail:
11480 return NULL;
11481}
11482
11483
11484static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) {
11485 PyObject *resultobj;
11486 wxSound *arg1 = (wxSound *) 0 ;
11487 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11488 bool result;
11489 PyObject * obj0 = 0 ;
11490 PyObject * obj1 = 0 ;
11491
11492 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail;
11493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSound,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28 11494 if (obj1) {
2dbef272 11495 {
02a34c4c 11496 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
2dbef272
RD
11497 if (PyErr_Occurred()) SWIG_fail;
11498 }
d14a1e28 11499 }
02a34c4c
RD
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)((wxSound const *)arg1)->Play(arg2);
11503
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11508 return resultobj;
11509 fail:
11510 return NULL;
11511}
11512
11513
11514static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) {
11515 PyObject *resultobj;
11516 wxString *arg1 = 0 ;
11517 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11518 bool result;
11519 bool temp1 = False ;
11520 PyObject * obj0 = 0 ;
11521 PyObject * obj1 = 0 ;
11522
11523 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail;
11524 {
11525 arg1 = wxString_in_helper(obj0);
11526 if (arg1 == NULL) SWIG_fail;
11527 temp1 = True;
11528 }
11529 if (obj1) {
2dbef272 11530 {
02a34c4c 11531 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
2dbef272
RD
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
d14a1e28
RD
11534 }
11535 {
11536 PyThreadState* __tstate = wxPyBeginAllowThreads();
02a34c4c 11537 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
d14a1e28
RD
11538
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
02a34c4c
RD
11542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11543 {
11544 if (temp1)
11545 delete arg1;
11546 }
d14a1e28
RD
11547 return resultobj;
11548 fail:
02a34c4c
RD
11549 {
11550 if (temp1)
11551 delete arg1;
11552 }
d14a1e28
RD
11553 return NULL;
11554}
11555
11556
02a34c4c
RD
11557static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11558 PyObject *resultobj;
11559 char *kwnames[] = {
11560 NULL
11561 };
11562
11563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11564 {
11565 PyThreadState* __tstate = wxPyBeginAllowThreads();
11566 Sound_Stop();
11567
11568 wxPyEndAllowThreads(__tstate);
11569 if (PyErr_Occurred()) SWIG_fail;
11570 }
11571 Py_INCREF(Py_None); resultobj = Py_None;
11572 return resultobj;
11573 fail:
11574 return NULL;
11575}
11576
11577
11578static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
d14a1e28
RD
11579 PyObject *obj;
11580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
02a34c4c 11581 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
d14a1e28
RD
11582 Py_INCREF(obj);
11583 return Py_BuildValue((char *)"");
11584}
11585static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj;
11587 wxString *arg1 = 0 ;
11588 wxString *arg2 = 0 ;
11589 wxString *arg3 = 0 ;
11590 wxString *arg4 = 0 ;
11591 wxFileTypeInfo *result;
423f194a
RD
11592 bool temp1 = False ;
11593 bool temp2 = False ;
11594 bool temp3 = False ;
11595 bool temp4 = False ;
d14a1e28
RD
11596 PyObject * obj0 = 0 ;
11597 PyObject * obj1 = 0 ;
11598 PyObject * obj2 = 0 ;
11599 PyObject * obj3 = 0 ;
11600 char *kwnames[] = {
11601 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11602 };
11603
11604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11605 {
11606 arg1 = wxString_in_helper(obj0);
11607 if (arg1 == NULL) SWIG_fail;
423f194a 11608 temp1 = True;
d14a1e28
RD
11609 }
11610 {
11611 arg2 = wxString_in_helper(obj1);
11612 if (arg2 == NULL) SWIG_fail;
423f194a 11613 temp2 = True;
d14a1e28
RD
11614 }
11615 {
11616 arg3 = wxString_in_helper(obj2);
11617 if (arg3 == NULL) SWIG_fail;
423f194a 11618 temp3 = True;
d14a1e28
RD
11619 }
11620 {
11621 arg4 = wxString_in_helper(obj3);
11622 if (arg4 == NULL) SWIG_fail;
423f194a 11623 temp4 = True;
d14a1e28
RD
11624 }
11625 {
11626 PyThreadState* __tstate = wxPyBeginAllowThreads();
11627 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11628
11629 wxPyEndAllowThreads(__tstate);
11630 if (PyErr_Occurred()) SWIG_fail;
11631 }
11632 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
11633 {
11634 if (temp1)
11635 delete arg1;
11636 }
11637 {
11638 if (temp2)
11639 delete arg2;
11640 }
11641 {
11642 if (temp3)
11643 delete arg3;
11644 }
11645 {
11646 if (temp4)
11647 delete arg4;
11648 }
11649 return resultobj;
11650 fail:
11651 {
11652 if (temp1)
11653 delete arg1;
11654 }
11655 {
11656 if (temp2)
11657 delete arg2;
11658 }
11659 {
11660 if (temp3)
11661 delete arg3;
11662 }
11663 {
11664 if (temp4)
11665 delete arg4;
11666 }
11667 return NULL;
11668}
11669
11670
11671static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11672 PyObject *resultobj;
11673 wxArrayString *arg1 = 0 ;
11674 wxFileTypeInfo *result;
0ffb2aa6 11675 bool temp1 = False ;
d14a1e28
RD
11676 PyObject * obj0 = 0 ;
11677 char *kwnames[] = {
11678 (char *) "sArray", NULL
11679 };
11680
11681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11682 {
11683 if (! PySequence_Check(obj0)) {
11684 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11685 SWIG_fail;
11686 }
11687 arg1 = new wxArrayString;
0ffb2aa6 11688 temp1 = True;
d14a1e28
RD
11689 int i, len=PySequence_Length(obj0);
11690 for (i=0; i<len; i++) {
11691 PyObject* item = PySequence_GetItem(obj0, i);
11692#if wxUSE_UNICODE
11693 PyObject* str = PyObject_Unicode(item);
11694#else
11695 PyObject* str = PyObject_Str(item);
11696#endif
11697 arg1->Add(Py2wxString(str));
11698 Py_DECREF(item);
11699 Py_DECREF(str);
11700 }
11701 }
11702 {
11703 PyThreadState* __tstate = wxPyBeginAllowThreads();
11704 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11705
11706 wxPyEndAllowThreads(__tstate);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 }
11709 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
11710 {
0ffb2aa6 11711 if (temp1) delete arg1;
d14a1e28
RD
11712 }
11713 return resultobj;
11714 fail:
11715 {
0ffb2aa6 11716 if (temp1) delete arg1;
d14a1e28
RD
11717 }
11718 return NULL;
11719}
11720
11721
11722static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11723 PyObject *resultobj;
11724 wxFileTypeInfo *result;
11725 char *kwnames[] = {
11726 NULL
11727 };
11728
11729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11730 {
11731 PyThreadState* __tstate = wxPyBeginAllowThreads();
11732 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11733
11734 wxPyEndAllowThreads(__tstate);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
11738 return resultobj;
11739 fail:
11740 return NULL;
11741}
11742
11743
11744static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11745 PyObject *resultobj;
11746 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11747 bool result;
11748 PyObject * obj0 = 0 ;
11749 char *kwnames[] = {
11750 (char *) "self", NULL
11751 };
11752
11753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11755 {
11756 PyThreadState* __tstate = wxPyBeginAllowThreads();
11757 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11758
11759 wxPyEndAllowThreads(__tstate);
11760 if (PyErr_Occurred()) SWIG_fail;
11761 }
02a34c4c 11762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11763 return resultobj;
11764 fail:
11765 return NULL;
11766}
11767
11768
11769static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11770 PyObject *resultobj;
11771 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11772 wxString *arg2 = 0 ;
11773 int arg3 = (int) 0 ;
423f194a 11774 bool temp2 = False ;
d14a1e28
RD
11775 PyObject * obj0 = 0 ;
11776 PyObject * obj1 = 0 ;
8edf1c75 11777 PyObject * obj2 = 0 ;
d14a1e28
RD
11778 char *kwnames[] = {
11779 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
11780 };
11781
8edf1c75 11782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
11783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11784 {
11785 arg2 = wxString_in_helper(obj1);
11786 if (arg2 == NULL) SWIG_fail;
423f194a 11787 temp2 = True;
d14a1e28 11788 }
8edf1c75
RD
11789 if (obj2) {
11790 {
11791 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 }
11794 }
d14a1e28
RD
11795 {
11796 PyThreadState* __tstate = wxPyBeginAllowThreads();
11797 (arg1)->SetIcon((wxString const &)*arg2,arg3);
11798
11799 wxPyEndAllowThreads(__tstate);
11800 if (PyErr_Occurred()) SWIG_fail;
11801 }
11802 Py_INCREF(Py_None); resultobj = Py_None;
11803 {
11804 if (temp2)
11805 delete arg2;
11806 }
11807 return resultobj;
11808 fail:
11809 {
11810 if (temp2)
11811 delete arg2;
11812 }
11813 return NULL;
11814}
11815
11816
11817static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
11818 PyObject *resultobj;
11819 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11820 wxString *arg2 = 0 ;
423f194a 11821 bool temp2 = False ;
d14a1e28
RD
11822 PyObject * obj0 = 0 ;
11823 PyObject * obj1 = 0 ;
11824 char *kwnames[] = {
11825 (char *) "self",(char *) "shortDesc", NULL
11826 };
11827
11828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
11829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11830 {
11831 arg2 = wxString_in_helper(obj1);
11832 if (arg2 == NULL) SWIG_fail;
423f194a 11833 temp2 = True;
d14a1e28
RD
11834 }
11835 {
11836 PyThreadState* __tstate = wxPyBeginAllowThreads();
11837 (arg1)->SetShortDesc((wxString const &)*arg2);
11838
11839 wxPyEndAllowThreads(__tstate);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 }
11842 Py_INCREF(Py_None); resultobj = Py_None;
11843 {
11844 if (temp2)
11845 delete arg2;
11846 }
11847 return resultobj;
11848 fail:
11849 {
11850 if (temp2)
11851 delete arg2;
11852 }
11853 return NULL;
11854}
11855
11856
11857static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
11858 PyObject *resultobj;
11859 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11860 wxString *result;
11861 PyObject * obj0 = 0 ;
11862 char *kwnames[] = {
11863 (char *) "self", NULL
11864 };
11865
11866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
11867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11868 {
11869 PyThreadState* __tstate = wxPyBeginAllowThreads();
11870 {
11871 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
11872 result = (wxString *) &_result_ref;
11873 }
11874
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
0f774bef
RD
11878 {
11879#if wxUSE_UNICODE
11880 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11881#else
11882 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11883#endif
11884 }
d14a1e28
RD
11885 return resultobj;
11886 fail:
11887 return NULL;
11888}
11889
11890
11891static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj;
11893 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11894 wxString *result;
11895 PyObject * obj0 = 0 ;
11896 char *kwnames[] = {
11897 (char *) "self", NULL
11898 };
11899
11900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
11901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11902 {
11903 PyThreadState* __tstate = wxPyBeginAllowThreads();
11904 {
11905 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
11906 result = (wxString *) &_result_ref;
11907 }
11908
11909 wxPyEndAllowThreads(__tstate);
11910 if (PyErr_Occurred()) SWIG_fail;
11911 }
0f774bef
RD
11912 {
11913#if wxUSE_UNICODE
11914 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11915#else
11916 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11917#endif
11918 }
d14a1e28
RD
11919 return resultobj;
11920 fail:
11921 return NULL;
11922}
11923
11924
11925static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11926 PyObject *resultobj;
11927 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11928 wxString *result;
11929 PyObject * obj0 = 0 ;
11930 char *kwnames[] = {
11931 (char *) "self", NULL
11932 };
11933
11934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
11935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11936 {
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 {
11939 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
11940 result = (wxString *) &_result_ref;
11941 }
11942
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
0f774bef
RD
11946 {
11947#if wxUSE_UNICODE
11948 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11949#else
11950 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11951#endif
11952 }
d14a1e28
RD
11953 return resultobj;
11954 fail:
11955 return NULL;
11956}
11957
11958
11959static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
11960 PyObject *resultobj;
11961 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11962 wxString *result;
11963 PyObject * obj0 = 0 ;
11964 char *kwnames[] = {
11965 (char *) "self", NULL
11966 };
11967
11968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
11969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11970 {
11971 PyThreadState* __tstate = wxPyBeginAllowThreads();
11972 {
11973 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
11974 result = (wxString *) &_result_ref;
11975 }
11976
11977 wxPyEndAllowThreads(__tstate);
11978 if (PyErr_Occurred()) SWIG_fail;
11979 }
0f774bef
RD
11980 {
11981#if wxUSE_UNICODE
11982 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11983#else
11984 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11985#endif
11986 }
d14a1e28
RD
11987 return resultobj;
11988 fail:
11989 return NULL;
11990}
11991
11992
11993static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
11994 PyObject *resultobj;
11995 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11996 wxString *result;
11997 PyObject * obj0 = 0 ;
11998 char *kwnames[] = {
11999 (char *) "self", NULL
12000 };
12001
12002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12004 {
12005 PyThreadState* __tstate = wxPyBeginAllowThreads();
12006 {
12007 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12008 result = (wxString *) &_result_ref;
12009 }
12010
12011 wxPyEndAllowThreads(__tstate);
12012 if (PyErr_Occurred()) SWIG_fail;
12013 }
0f774bef
RD
12014 {
12015#if wxUSE_UNICODE
12016 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12017#else
12018 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12019#endif
12020 }
d14a1e28
RD
12021 return resultobj;
12022 fail:
12023 return NULL;
12024}
12025
12026
12027static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12028 PyObject *resultobj;
12029 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12030 wxArrayString *result;
12031 PyObject * obj0 = 0 ;
12032 char *kwnames[] = {
12033 (char *) "self", NULL
12034 };
12035
12036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 {
12041 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12042 result = (wxArrayString *) &_result_ref;
12043 }
12044
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 {
12049 resultobj = wxArrayString2PyList_helper(*result);
12050 }
12051 return resultobj;
12052 fail:
12053 return NULL;
12054}
12055
12056
12057static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12058 PyObject *resultobj;
12059 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12060 int result;
12061 PyObject * obj0 = 0 ;
12062 char *kwnames[] = {
12063 (char *) "self", NULL
12064 };
12065
12066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12068 {
12069 PyThreadState* __tstate = wxPyBeginAllowThreads();
12070 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12071
12072 wxPyEndAllowThreads(__tstate);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
8edf1c75 12075 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
12076 return resultobj;
12077 fail:
12078 return NULL;
12079}
12080
12081
12082static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj;
12084 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12085 wxString *result;
12086 PyObject * obj0 = 0 ;
12087 char *kwnames[] = {
12088 (char *) "self", NULL
12089 };
12090
12091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12093 {
12094 PyThreadState* __tstate = wxPyBeginAllowThreads();
12095 {
12096 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12097 result = (wxString *) &_result_ref;
12098 }
12099
12100 wxPyEndAllowThreads(__tstate);
12101 if (PyErr_Occurred()) SWIG_fail;
12102 }
0f774bef
RD
12103 {
12104#if wxUSE_UNICODE
12105 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12106#else
12107 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12108#endif
12109 }
d14a1e28
RD
12110 return resultobj;
12111 fail:
12112 return NULL;
12113}
12114
12115
12116static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12117 PyObject *resultobj;
12118 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12119 int result;
12120 PyObject * obj0 = 0 ;
12121 char *kwnames[] = {
12122 (char *) "self", NULL
12123 };
12124
12125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12130
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
8edf1c75 12134 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
12135 return resultobj;
12136 fail:
12137 return NULL;
12138}
12139
12140
12141static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12142 PyObject *obj;
12143 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12144 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12145 Py_INCREF(obj);
12146 return Py_BuildValue((char *)"");
12147}
12148static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12149 PyObject *resultobj;
12150 wxFileTypeInfo *arg1 = 0 ;
12151 wxFileType *result;
12152 PyObject * obj0 = 0 ;
12153 char *kwnames[] = {
12154 (char *) "ftInfo", NULL
12155 };
12156
12157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12159 if (arg1 == NULL) {
12160 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12161 }
12162 {
12163 PyThreadState* __tstate = wxPyBeginAllowThreads();
12164 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12165
12166 wxPyEndAllowThreads(__tstate);
12167 if (PyErr_Occurred()) SWIG_fail;
12168 }
12169 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
12170 return resultobj;
12171 fail:
12172 return NULL;
12173}
12174
12175
12176static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12177 PyObject *resultobj;
12178 wxFileType *arg1 = (wxFileType *) 0 ;
12179 PyObject * obj0 = 0 ;
12180 char *kwnames[] = {
12181 (char *) "self", NULL
12182 };
12183
12184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 delete arg1;
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 Py_INCREF(Py_None); resultobj = Py_None;
12194 return resultobj;
12195 fail:
12196 return NULL;
12197}
12198
12199
12200static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj;
12202 wxFileType *arg1 = (wxFileType *) 0 ;
12203 PyObject *result;
12204 PyObject * obj0 = 0 ;
12205 char *kwnames[] = {
12206 (char *) "self", NULL
12207 };
12208
12209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 result = (PyObject *)wxFileType_GetMimeType(arg1);
12214
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 resultobj = result;
12219 return resultobj;
12220 fail:
12221 return NULL;
12222}
12223
12224
12225static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12226 PyObject *resultobj;
12227 wxFileType *arg1 = (wxFileType *) 0 ;
12228 PyObject *result;
12229 PyObject * obj0 = 0 ;
12230 char *kwnames[] = {
12231 (char *) "self", NULL
12232 };
12233
12234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12239
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 resultobj = result;
12244 return resultobj;
12245 fail:
12246 return NULL;
12247}
12248
12249
12250static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12251 PyObject *resultobj;
12252 wxFileType *arg1 = (wxFileType *) 0 ;
12253 PyObject *result;
12254 PyObject * obj0 = 0 ;
12255 char *kwnames[] = {
12256 (char *) "self", NULL
12257 };
12258
12259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12261 {
12262 PyThreadState* __tstate = wxPyBeginAllowThreads();
12263 result = (PyObject *)wxFileType_GetExtensions(arg1);
12264
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 resultobj = result;
12269 return resultobj;
12270 fail:
12271 return NULL;
12272}
12273
12274
12275static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12276 PyObject *resultobj;
12277 wxFileType *arg1 = (wxFileType *) 0 ;
12278 wxIcon *result;
12279 PyObject * obj0 = 0 ;
12280 char *kwnames[] = {
12281 (char *) "self", NULL
12282 };
12283
12284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12286 {
12287 PyThreadState* __tstate = wxPyBeginAllowThreads();
12288 result = (wxIcon *)wxFileType_GetIcon(arg1);
12289
12290 wxPyEndAllowThreads(__tstate);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
12294 return resultobj;
12295 fail:
12296 return NULL;
12297}
12298
12299
12300static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12301 PyObject *resultobj;
12302 wxFileType *arg1 = (wxFileType *) 0 ;
12303 PyObject *result;
12304 PyObject * obj0 = 0 ;
12305 char *kwnames[] = {
12306 (char *) "self", NULL
12307 };
12308
12309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12311 {
12312 PyThreadState* __tstate = wxPyBeginAllowThreads();
12313 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12314
12315 wxPyEndAllowThreads(__tstate);
12316 if (PyErr_Occurred()) SWIG_fail;
12317 }
12318 resultobj = result;
12319 return resultobj;
12320 fail:
12321 return NULL;
12322}
12323
12324
12325static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12326 PyObject *resultobj;
12327 wxFileType *arg1 = (wxFileType *) 0 ;
12328 PyObject *result;
12329 PyObject * obj0 = 0 ;
12330 char *kwnames[] = {
12331 (char *) "self", NULL
12332 };
12333
12334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 result = (PyObject *)wxFileType_GetDescription(arg1);
12339
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 resultobj = result;
12344 return resultobj;
12345 fail:
12346 return NULL;
12347}
12348
12349
12350static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12351 PyObject *resultobj;
12352 wxFileType *arg1 = (wxFileType *) 0 ;
12353 wxString *arg2 = 0 ;
12354 wxString const &arg3_defvalue = wxPyEmptyString ;
12355 wxString *arg3 = (wxString *) &arg3_defvalue ;
12356 PyObject *result;
423f194a
RD
12357 bool temp2 = False ;
12358 bool temp3 = False ;
d14a1e28
RD
12359 PyObject * obj0 = 0 ;
12360 PyObject * obj1 = 0 ;
12361 PyObject * obj2 = 0 ;
12362 char *kwnames[] = {
12363 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12364 };
12365
12366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12368 {
12369 arg2 = wxString_in_helper(obj1);
12370 if (arg2 == NULL) SWIG_fail;
423f194a 12371 temp2 = True;
d14a1e28
RD
12372 }
12373 if (obj2) {
12374 {
12375 arg3 = wxString_in_helper(obj2);
12376 if (arg3 == NULL) SWIG_fail;
423f194a 12377 temp3 = True;
d14a1e28
RD
12378 }
12379 }
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12383
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 resultobj = result;
12388 {
12389 if (temp2)
12390 delete arg2;
12391 }
12392 {
12393 if (temp3)
12394 delete arg3;
12395 }
12396 return resultobj;
12397 fail:
12398 {
12399 if (temp2)
12400 delete arg2;
12401 }
12402 {
12403 if (temp3)
12404 delete arg3;
12405 }
12406 return NULL;
12407}
12408
12409
12410static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12411 PyObject *resultobj;
12412 wxFileType *arg1 = (wxFileType *) 0 ;
12413 wxString *arg2 = 0 ;
12414 wxString const &arg3_defvalue = wxPyEmptyString ;
12415 wxString *arg3 = (wxString *) &arg3_defvalue ;
12416 PyObject *result;
423f194a
RD
12417 bool temp2 = False ;
12418 bool temp3 = False ;
d14a1e28
RD
12419 PyObject * obj0 = 0 ;
12420 PyObject * obj1 = 0 ;
12421 PyObject * obj2 = 0 ;
12422 char *kwnames[] = {
12423 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12424 };
12425
12426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12428 {
12429 arg2 = wxString_in_helper(obj1);
12430 if (arg2 == NULL) SWIG_fail;
423f194a 12431 temp2 = True;
d14a1e28
RD
12432 }
12433 if (obj2) {
12434 {
12435 arg3 = wxString_in_helper(obj2);
12436 if (arg3 == NULL) SWIG_fail;
423f194a 12437 temp3 = True;
d14a1e28
RD
12438 }
12439 }
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12443
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 resultobj = result;
12448 {
12449 if (temp2)
12450 delete arg2;
12451 }
12452 {
12453 if (temp3)
12454 delete arg3;
12455 }
12456 return resultobj;
12457 fail:
12458 {
12459 if (temp2)
12460 delete arg2;
12461 }
12462 {
12463 if (temp3)
12464 delete arg3;
12465 }
12466 return NULL;
12467}
12468
12469
12470static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12471 PyObject *resultobj;
12472 wxFileType *arg1 = (wxFileType *) 0 ;
12473 wxString *arg2 = 0 ;
12474 wxString const &arg3_defvalue = wxPyEmptyString ;
12475 wxString *arg3 = (wxString *) &arg3_defvalue ;
12476 PyObject *result;
423f194a
RD
12477 bool temp2 = False ;
12478 bool temp3 = False ;
d14a1e28
RD
12479 PyObject * obj0 = 0 ;
12480 PyObject * obj1 = 0 ;
12481 PyObject * obj2 = 0 ;
12482 char *kwnames[] = {
12483 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12484 };
12485
12486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12488 {
12489 arg2 = wxString_in_helper(obj1);
12490 if (arg2 == NULL) SWIG_fail;
423f194a 12491 temp2 = True;
d14a1e28
RD
12492 }
12493 if (obj2) {
12494 {
12495 arg3 = wxString_in_helper(obj2);
12496 if (arg3 == NULL) SWIG_fail;
423f194a 12497 temp3 = True;
d14a1e28
RD
12498 }
12499 }
12500 {
12501 PyThreadState* __tstate = wxPyBeginAllowThreads();
12502 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12503
12504 wxPyEndAllowThreads(__tstate);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 resultobj = result;
12508 {
12509 if (temp2)
12510 delete arg2;
12511 }
12512 {
12513 if (temp3)
12514 delete arg3;
12515 }
12516 return resultobj;
12517 fail:
12518 {
12519 if (temp2)
12520 delete arg2;
12521 }
12522 {
12523 if (temp3)
12524 delete arg3;
12525 }
12526 return NULL;
12527}
12528
12529
12530static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12531 PyObject *resultobj;
12532 wxFileType *arg1 = (wxFileType *) 0 ;
12533 wxString *arg2 = 0 ;
12534 wxString *arg3 = 0 ;
423f194a 12535 bool arg4 = (bool) True ;
d14a1e28 12536 bool result;
423f194a
RD
12537 bool temp2 = False ;
12538 bool temp3 = False ;
d14a1e28
RD
12539 PyObject * obj0 = 0 ;
12540 PyObject * obj1 = 0 ;
12541 PyObject * obj2 = 0 ;
12542 PyObject * obj3 = 0 ;
12543 char *kwnames[] = {
12544 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12545 };
12546
12547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12549 {
12550 arg2 = wxString_in_helper(obj1);
12551 if (arg2 == NULL) SWIG_fail;
423f194a 12552 temp2 = True;
d14a1e28
RD
12553 }
12554 {
12555 arg3 = wxString_in_helper(obj2);
12556 if (arg3 == NULL) SWIG_fail;
423f194a 12557 temp3 = True;
d14a1e28
RD
12558 }
12559 if (obj3) {
2dbef272 12560 {
8edf1c75 12561 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
2dbef272
RD
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
d14a1e28
RD
12564 }
12565 {
12566 PyThreadState* __tstate = wxPyBeginAllowThreads();
12567 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12568
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
02a34c4c 12572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12573 {
12574 if (temp2)
12575 delete arg2;
12576 }
12577 {
12578 if (temp3)
12579 delete arg3;
12580 }
12581 return resultobj;
12582 fail:
12583 {
12584 if (temp2)
12585 delete arg2;
12586 }
12587 {
12588 if (temp3)
12589 delete arg3;
12590 }
12591 return NULL;
12592}
12593
12594
12595static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj;
12597 wxFileType *arg1 = (wxFileType *) 0 ;
12598 wxString const &arg2_defvalue = wxPyEmptyString ;
12599 wxString *arg2 = (wxString *) &arg2_defvalue ;
12600 int arg3 = (int) 0 ;
12601 bool result;
423f194a 12602 bool temp2 = False ;
d14a1e28
RD
12603 PyObject * obj0 = 0 ;
12604 PyObject * obj1 = 0 ;
8edf1c75 12605 PyObject * obj2 = 0 ;
d14a1e28
RD
12606 char *kwnames[] = {
12607 (char *) "self",(char *) "cmd",(char *) "index", NULL
12608 };
12609
8edf1c75 12610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
12611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12612 if (obj1) {
12613 {
12614 arg2 = wxString_in_helper(obj1);
12615 if (arg2 == NULL) SWIG_fail;
423f194a 12616 temp2 = True;
d14a1e28
RD
12617 }
12618 }
8edf1c75
RD
12619 if (obj2) {
12620 {
12621 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 }
d14a1e28
RD
12625 {
12626 PyThreadState* __tstate = wxPyBeginAllowThreads();
12627 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12628
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
02a34c4c 12632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12633 {
12634 if (temp2)
12635 delete arg2;
12636 }
12637 return resultobj;
12638 fail:
12639 {
12640 if (temp2)
12641 delete arg2;
12642 }
12643 return NULL;
12644}
12645
12646
12647static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 wxFileType *arg1 = (wxFileType *) 0 ;
12650 bool result;
12651 PyObject * obj0 = 0 ;
12652 char *kwnames[] = {
12653 (char *) "self", NULL
12654 };
12655
12656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 result = (bool)(arg1)->Unassociate();
12661
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
02a34c4c 12665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12666 return resultobj;
12667 fail:
12668 return NULL;
12669}
12670
12671
12672static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj;
12674 wxString *arg1 = 0 ;
12675 wxString *arg2 = 0 ;
12676 wxString const &arg3_defvalue = wxPyEmptyString ;
12677 wxString *arg3 = (wxString *) &arg3_defvalue ;
12678 wxString result;
423f194a
RD
12679 bool temp1 = False ;
12680 bool temp2 = False ;
12681 bool temp3 = False ;
d14a1e28
RD
12682 PyObject * obj0 = 0 ;
12683 PyObject * obj1 = 0 ;
12684 PyObject * obj2 = 0 ;
12685 char *kwnames[] = {
12686 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12687 };
12688
12689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12690 {
12691 arg1 = wxString_in_helper(obj0);
12692 if (arg1 == NULL) SWIG_fail;
423f194a 12693 temp1 = True;
d14a1e28
RD
12694 }
12695 {
12696 arg2 = wxString_in_helper(obj1);
12697 if (arg2 == NULL) SWIG_fail;
423f194a 12698 temp2 = True;
d14a1e28
RD
12699 }
12700 if (obj2) {
12701 {
12702 arg3 = wxString_in_helper(obj2);
12703 if (arg3 == NULL) SWIG_fail;
423f194a 12704 temp3 = True;
d14a1e28
RD
12705 }
12706 }
12707 {
12708 PyThreadState* __tstate = wxPyBeginAllowThreads();
12709 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12710
12711 wxPyEndAllowThreads(__tstate);
12712 if (PyErr_Occurred()) SWIG_fail;
12713 }
12714 {
12715#if wxUSE_UNICODE
12716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12717#else
12718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12719#endif
12720 }
12721 {
12722 if (temp1)
12723 delete arg1;
12724 }
12725 {
12726 if (temp2)
12727 delete arg2;
12728 }
12729 {
12730 if (temp3)
12731 delete arg3;
12732 }
12733 return resultobj;
12734 fail:
12735 {
12736 if (temp1)
12737 delete arg1;
12738 }
12739 {
12740 if (temp2)
12741 delete arg2;
12742 }
12743 {
12744 if (temp3)
12745 delete arg3;
12746 }
12747 return NULL;
12748}
12749
12750
12751static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
12752 PyObject *obj;
12753 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12754 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
12755 Py_INCREF(obj);
12756 return Py_BuildValue((char *)"");
12757}
8edf1c75 12758static int _wrap_TheMimeTypesManager_set(PyObject *) {
d14a1e28
RD
12759 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
12760 return 1;
12761}
12762
12763
12764static PyObject *_wrap_TheMimeTypesManager_get() {
12765 PyObject *pyobj;
12766
12767 pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0);
12768 return pyobj;
12769}
12770
12771
12772static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
12773 PyObject *resultobj;
12774 wxString *arg1 = 0 ;
12775 wxString *arg2 = 0 ;
12776 bool result;
423f194a
RD
12777 bool temp1 = False ;
12778 bool temp2 = False ;
d14a1e28
RD
12779 PyObject * obj0 = 0 ;
12780 PyObject * obj1 = 0 ;
12781 char *kwnames[] = {
12782 (char *) "mimeType",(char *) "wildcard", NULL
12783 };
12784
12785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
12786 {
12787 arg1 = wxString_in_helper(obj0);
12788 if (arg1 == NULL) SWIG_fail;
423f194a 12789 temp1 = True;
d14a1e28
RD
12790 }
12791 {
12792 arg2 = wxString_in_helper(obj1);
12793 if (arg2 == NULL) SWIG_fail;
423f194a 12794 temp2 = True;
d14a1e28
RD
12795 }
12796 {
12797 PyThreadState* __tstate = wxPyBeginAllowThreads();
12798 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
12799
12800 wxPyEndAllowThreads(__tstate);
12801 if (PyErr_Occurred()) SWIG_fail;
12802 }
02a34c4c 12803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12804 {
12805 if (temp1)
12806 delete arg1;
12807 }
12808 {
12809 if (temp2)
12810 delete arg2;
12811 }
12812 return resultobj;
12813 fail:
12814 {
12815 if (temp1)
12816 delete arg1;
12817 }
12818 {
12819 if (temp2)
12820 delete arg2;
12821 }
12822 return NULL;
12823}
12824
12825
12826static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
12827 PyObject *resultobj;
12828 wxMimeTypesManager *result;
12829 char *kwnames[] = {
12830 NULL
12831 };
12832
12833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
12834 {
12835 PyThreadState* __tstate = wxPyBeginAllowThreads();
12836 result = (wxMimeTypesManager *)new wxMimeTypesManager();
12837
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1);
12842 return resultobj;
12843 fail:
12844 return NULL;
12845}
12846
12847
12848static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
12849 PyObject *resultobj;
12850 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12851 int arg2 = (int) wxMAILCAP_ALL ;
12852 wxString const &arg3_defvalue = wxPyEmptyString ;
12853 wxString *arg3 = (wxString *) &arg3_defvalue ;
423f194a 12854 bool temp3 = False ;
d14a1e28 12855 PyObject * obj0 = 0 ;
8edf1c75 12856 PyObject * obj1 = 0 ;
d14a1e28
RD
12857 PyObject * obj2 = 0 ;
12858 char *kwnames[] = {
12859 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
12860 };
12861
8edf1c75 12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 12863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
12864 if (obj1) {
12865 {
12866 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12867 if (PyErr_Occurred()) SWIG_fail;
12868 }
12869 }
d14a1e28
RD
12870 if (obj2) {
12871 {
12872 arg3 = wxString_in_helper(obj2);
12873 if (arg3 == NULL) SWIG_fail;
423f194a 12874 temp3 = True;
d14a1e28
RD
12875 }
12876 }
12877 {
12878 PyThreadState* __tstate = wxPyBeginAllowThreads();
12879 (arg1)->Initialize(arg2,(wxString const &)*arg3);
12880
12881 wxPyEndAllowThreads(__tstate);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 }
12884 Py_INCREF(Py_None); resultobj = Py_None;
12885 {
12886 if (temp3)
12887 delete arg3;
12888 }
12889 return resultobj;
12890 fail:
12891 {
12892 if (temp3)
12893 delete arg3;
12894 }
12895 return NULL;
12896}
12897
12898
12899static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
12900 PyObject *resultobj;
12901 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12902 PyObject * obj0 = 0 ;
12903 char *kwnames[] = {
12904 (char *) "self", NULL
12905 };
12906
12907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
12908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12909 {
12910 PyThreadState* __tstate = wxPyBeginAllowThreads();
12911 (arg1)->ClearData();
12912
12913 wxPyEndAllowThreads(__tstate);
12914 if (PyErr_Occurred()) SWIG_fail;
12915 }
12916 Py_INCREF(Py_None); resultobj = Py_None;
12917 return resultobj;
12918 fail:
12919 return NULL;
12920}
12921
12922
12923static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
12924 PyObject *resultobj;
12925 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12926 wxString *arg2 = 0 ;
12927 wxFileType *result;
423f194a 12928 bool temp2 = False ;
d14a1e28
RD
12929 PyObject * obj0 = 0 ;
12930 PyObject * obj1 = 0 ;
12931 char *kwnames[] = {
12932 (char *) "self",(char *) "ext", NULL
12933 };
12934
12935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
12936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12937 {
12938 arg2 = wxString_in_helper(obj1);
12939 if (arg2 == NULL) SWIG_fail;
423f194a 12940 temp2 = True;
d14a1e28
RD
12941 }
12942 {
12943 PyThreadState* __tstate = wxPyBeginAllowThreads();
12944 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
12945
12946 wxPyEndAllowThreads(__tstate);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
12950 {
12951 if (temp2)
12952 delete arg2;
12953 }
12954 return resultobj;
12955 fail:
12956 {
12957 if (temp2)
12958 delete arg2;
12959 }
12960 return NULL;
12961}
12962
12963
12964static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj;
12966 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12967 wxString *arg2 = 0 ;
12968 wxFileType *result;
423f194a 12969 bool temp2 = False ;
d14a1e28
RD
12970 PyObject * obj0 = 0 ;
12971 PyObject * obj1 = 0 ;
12972 char *kwnames[] = {
12973 (char *) "self",(char *) "mimeType", NULL
12974 };
12975
12976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
12977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12978 {
12979 arg2 = wxString_in_helper(obj1);
12980 if (arg2 == NULL) SWIG_fail;
423f194a 12981 temp2 = True;
d14a1e28
RD
12982 }
12983 {
12984 PyThreadState* __tstate = wxPyBeginAllowThreads();
12985 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
12986
12987 wxPyEndAllowThreads(__tstate);
12988 if (PyErr_Occurred()) SWIG_fail;
12989 }
12990 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
12991 {
12992 if (temp2)
12993 delete arg2;
12994 }
12995 return resultobj;
12996 fail:
12997 {
12998 if (temp2)
12999 delete arg2;
13000 }
13001 return NULL;
13002}
13003
13004
13005static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13006 PyObject *resultobj;
13007 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13008 wxString *arg2 = 0 ;
423f194a 13009 bool arg3 = (bool) False ;
d14a1e28 13010 bool result;
423f194a 13011 bool temp2 = False ;
d14a1e28
RD
13012 PyObject * obj0 = 0 ;
13013 PyObject * obj1 = 0 ;
13014 PyObject * obj2 = 0 ;
13015 char *kwnames[] = {
13016 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13017 };
13018
13019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13021 {
13022 arg2 = wxString_in_helper(obj1);
13023 if (arg2 == NULL) SWIG_fail;
423f194a 13024 temp2 = True;
d14a1e28
RD
13025 }
13026 if (obj2) {
2dbef272 13027 {
8edf1c75 13028 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
13029 if (PyErr_Occurred()) SWIG_fail;
13030 }
d14a1e28
RD
13031 }
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13035
13036 wxPyEndAllowThreads(__tstate);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 }
02a34c4c 13039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13040 {
13041 if (temp2)
13042 delete arg2;
13043 }
13044 return resultobj;
13045 fail:
13046 {
13047 if (temp2)
13048 delete arg2;
13049 }
13050 return NULL;
13051}
13052
13053
13054static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13055 PyObject *resultobj;
13056 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13057 wxString *arg2 = 0 ;
13058 bool result;
423f194a 13059 bool temp2 = False ;
d14a1e28
RD
13060 PyObject * obj0 = 0 ;
13061 PyObject * obj1 = 0 ;
13062 char *kwnames[] = {
13063 (char *) "self",(char *) "filename", NULL
13064 };
13065
13066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13068 {
13069 arg2 = wxString_in_helper(obj1);
13070 if (arg2 == NULL) SWIG_fail;
423f194a 13071 temp2 = True;
d14a1e28
RD
13072 }
13073 {
13074 PyThreadState* __tstate = wxPyBeginAllowThreads();
13075 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13076
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
02a34c4c 13080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13081 {
13082 if (temp2)
13083 delete arg2;
13084 }
13085 return resultobj;
13086 fail:
13087 {
13088 if (temp2)
13089 delete arg2;
13090 }
13091 return NULL;
13092}
13093
13094
13095static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13096 PyObject *resultobj;
13097 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13098 PyObject *result;
13099 PyObject * obj0 = 0 ;
13100 char *kwnames[] = {
13101 (char *) "self", NULL
13102 };
13103
13104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13106 {
13107 PyThreadState* __tstate = wxPyBeginAllowThreads();
13108 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13109
13110 wxPyEndAllowThreads(__tstate);
13111 if (PyErr_Occurred()) SWIG_fail;
13112 }
13113 resultobj = result;
13114 return resultobj;
13115 fail:
13116 return NULL;
13117}
13118
13119
13120static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13121 PyObject *resultobj;
13122 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13123 wxFileTypeInfo *arg2 = 0 ;
13124 PyObject * obj0 = 0 ;
13125 PyObject * obj1 = 0 ;
13126 char *kwnames[] = {
13127 (char *) "self",(char *) "ft", NULL
13128 };
13129
13130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13132 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13133 if (arg2 == NULL) {
13134 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13135 }
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13139
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 Py_INCREF(Py_None); resultobj = Py_None;
13144 return resultobj;
13145 fail:
13146 return NULL;
13147}
13148
13149
13150static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13151 PyObject *resultobj;
13152 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13153 wxFileTypeInfo *arg2 = 0 ;
13154 wxFileType *result;
13155 PyObject * obj0 = 0 ;
13156 PyObject * obj1 = 0 ;
13157 char *kwnames[] = {
13158 (char *) "self",(char *) "ftInfo", NULL
13159 };
13160
13161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13163 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13164 if (arg2 == NULL) {
13165 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13166 }
13167 {
13168 PyThreadState* __tstate = wxPyBeginAllowThreads();
13169 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13170
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
13175 return resultobj;
13176 fail:
13177 return NULL;
13178}
13179
13180
13181static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13182 PyObject *resultobj;
13183 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13184 wxFileType *arg2 = (wxFileType *) 0 ;
13185 bool result;
13186 PyObject * obj0 = 0 ;
13187 PyObject * obj1 = 0 ;
13188 char *kwnames[] = {
13189 (char *) "self",(char *) "ft", NULL
13190 };
13191
13192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13194 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13195 {
13196 PyThreadState* __tstate = wxPyBeginAllowThreads();
13197 result = (bool)(arg1)->Unassociate(arg2);
13198
13199 wxPyEndAllowThreads(__tstate);
13200 if (PyErr_Occurred()) SWIG_fail;
13201 }
02a34c4c 13202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13203 return resultobj;
13204 fail:
13205 return NULL;
13206}
13207
13208
13209static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13210 PyObject *resultobj;
13211 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13212 PyObject * obj0 = 0 ;
13213 char *kwnames[] = {
13214 (char *) "self", NULL
13215 };
13216
13217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13219 {
13220 PyThreadState* __tstate = wxPyBeginAllowThreads();
13221 delete arg1;
13222
13223 wxPyEndAllowThreads(__tstate);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 }
13226 Py_INCREF(Py_None); resultobj = Py_None;
13227 return resultobj;
13228 fail:
13229 return NULL;
13230}
13231
13232
13233static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13234 PyObject *obj;
13235 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13236 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13237 Py_INCREF(obj);
13238 return Py_BuildValue((char *)"");
13239}
8edf1c75 13240static int _wrap_ART_TOOLBAR_set(PyObject *) {
d14a1e28
RD
13241 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13242 return 1;
13243}
13244
13245
13246static PyObject *_wrap_ART_TOOLBAR_get() {
13247 PyObject *pyobj;
13248
13249 {
13250#if wxUSE_UNICODE
13251 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13252#else
13253 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13254#endif
13255 }
13256 return pyobj;
13257}
13258
13259
8edf1c75 13260static int _wrap_ART_MENU_set(PyObject *) {
d14a1e28
RD
13261 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13262 return 1;
13263}
13264
13265
13266static PyObject *_wrap_ART_MENU_get() {
13267 PyObject *pyobj;
13268
13269 {
13270#if wxUSE_UNICODE
13271 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13272#else
13273 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13274#endif
13275 }
13276 return pyobj;
13277}
13278
13279
8edf1c75 13280static int _wrap_ART_FRAME_ICON_set(PyObject *) {
d14a1e28
RD
13281 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13282 return 1;
13283}
13284
13285
13286static PyObject *_wrap_ART_FRAME_ICON_get() {
13287 PyObject *pyobj;
13288
13289 {
13290#if wxUSE_UNICODE
13291 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13292#else
13293 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13294#endif
13295 }
13296 return pyobj;
13297}
13298
13299
8edf1c75 13300static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
d14a1e28
RD
13301 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13302 return 1;
13303}
13304
13305
13306static PyObject *_wrap_ART_CMN_DIALOG_get() {
13307 PyObject *pyobj;
13308
13309 {
13310#if wxUSE_UNICODE
13311 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13312#else
13313 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13314#endif
13315 }
13316 return pyobj;
13317}
13318
13319
8edf1c75 13320static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
d14a1e28
RD
13321 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13322 return 1;
13323}
13324
13325
13326static PyObject *_wrap_ART_HELP_BROWSER_get() {
13327 PyObject *pyobj;
13328
13329 {
13330#if wxUSE_UNICODE
13331 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13332#else
13333 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13334#endif
13335 }
13336 return pyobj;
13337}
13338
13339
8edf1c75 13340static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
d14a1e28
RD
13341 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13342 return 1;
13343}
13344
13345
13346static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13347 PyObject *pyobj;
13348
13349 {
13350#if wxUSE_UNICODE
13351 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13352#else
13353 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13354#endif
13355 }
13356 return pyobj;
13357}
13358
13359
8edf1c75 13360static int _wrap_ART_OTHER_set(PyObject *) {
d14a1e28
RD
13361 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13362 return 1;
13363}
13364
13365
13366static PyObject *_wrap_ART_OTHER_get() {
13367 PyObject *pyobj;
13368
13369 {
13370#if wxUSE_UNICODE
13371 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13372#else
13373 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13374#endif
13375 }
13376 return pyobj;
13377}
13378
13379
8edf1c75 13380static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
d14a1e28
RD
13381 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13382 return 1;
13383}
13384
13385
13386static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13387 PyObject *pyobj;
13388
13389 {
13390#if wxUSE_UNICODE
13391 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13392#else
13393 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13394#endif
13395 }
13396 return pyobj;
13397}
13398
13399
8edf1c75 13400static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
d14a1e28
RD
13401 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13402 return 1;
13403}
13404
13405
13406static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13407 PyObject *pyobj;
13408
13409 {
13410#if wxUSE_UNICODE
13411 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13412#else
13413 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13414#endif
13415 }
13416 return pyobj;
13417}
13418
13419
8edf1c75 13420static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
d14a1e28
RD
13421 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13422 return 1;
13423}
13424
13425
13426static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13427 PyObject *pyobj;
13428
13429 {
13430#if wxUSE_UNICODE
13431 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13432#else
13433 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13434#endif
13435 }
13436 return pyobj;
13437}
13438
13439
8edf1c75 13440static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
d14a1e28
RD
13441 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13442 return 1;
13443}
13444
13445
13446static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13447 PyObject *pyobj;
13448
13449 {
13450#if wxUSE_UNICODE
13451 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13452#else
13453 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13454#endif
13455 }
13456 return pyobj;
13457}
13458
13459
8edf1c75 13460static int _wrap_ART_HELP_BOOK_set(PyObject *) {
d14a1e28
RD
13461 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13462 return 1;
13463}
13464
13465
13466static PyObject *_wrap_ART_HELP_BOOK_get() {
13467 PyObject *pyobj;
13468
13469 {
13470#if wxUSE_UNICODE
13471 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13472#else
13473 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13474#endif
13475 }
13476 return pyobj;
13477}
13478
13479
8edf1c75 13480static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
d14a1e28
RD
13481 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13482 return 1;
13483}
13484
13485
13486static PyObject *_wrap_ART_HELP_FOLDER_get() {
13487 PyObject *pyobj;
13488
13489 {
13490#if wxUSE_UNICODE
13491 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13492#else
13493 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13494#endif
13495 }
13496 return pyobj;
13497}
13498
13499
8edf1c75 13500static int _wrap_ART_HELP_PAGE_set(PyObject *) {
d14a1e28
RD
13501 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13502 return 1;
13503}
13504
13505
13506static PyObject *_wrap_ART_HELP_PAGE_get() {
13507 PyObject *pyobj;
13508
13509 {
13510#if wxUSE_UNICODE
13511 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13512#else
13513 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13514#endif
13515 }
13516 return pyobj;
13517}
13518
13519
8edf1c75 13520static int _wrap_ART_GO_BACK_set(PyObject *) {
d14a1e28
RD
13521 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13522 return 1;
13523}
13524
13525
13526static PyObject *_wrap_ART_GO_BACK_get() {
13527 PyObject *pyobj;
13528
13529 {
13530#if wxUSE_UNICODE
13531 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13532#else
13533 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13534#endif
13535 }
13536 return pyobj;
13537}
13538
13539
8edf1c75 13540static int _wrap_ART_GO_FORWARD_set(PyObject *) {
d14a1e28
RD
13541 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13542 return 1;
13543}
13544
13545
13546static PyObject *_wrap_ART_GO_FORWARD_get() {
13547 PyObject *pyobj;
13548
13549 {
13550#if wxUSE_UNICODE
13551 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13552#else
13553 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13554#endif
13555 }
13556 return pyobj;
13557}
13558
13559
8edf1c75 13560static int _wrap_ART_GO_UP_set(PyObject *) {
d14a1e28
RD
13561 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13562 return 1;
13563}
13564
13565
13566static PyObject *_wrap_ART_GO_UP_get() {
13567 PyObject *pyobj;
13568
13569 {
13570#if wxUSE_UNICODE
13571 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13572#else
13573 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13574#endif
13575 }
13576 return pyobj;
13577}
13578
13579
8edf1c75 13580static int _wrap_ART_GO_DOWN_set(PyObject *) {
d14a1e28
RD
13581 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13582 return 1;
13583}
13584
13585
13586static PyObject *_wrap_ART_GO_DOWN_get() {
13587 PyObject *pyobj;
13588
13589 {
13590#if wxUSE_UNICODE
13591 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13592#else
13593 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13594#endif
13595 }
13596 return pyobj;
13597}
13598
13599
8edf1c75 13600static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
d14a1e28
RD
13601 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13602 return 1;
13603}
13604
13605
13606static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13607 PyObject *pyobj;
13608
13609 {
13610#if wxUSE_UNICODE
13611 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13612#else
13613 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13614#endif
13615 }
13616 return pyobj;
13617}
13618
13619
8edf1c75 13620static int _wrap_ART_GO_HOME_set(PyObject *) {
d14a1e28
RD
13621 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13622 return 1;
13623}
13624
13625
13626static PyObject *_wrap_ART_GO_HOME_get() {
13627 PyObject *pyobj;
13628
13629 {
13630#if wxUSE_UNICODE
13631 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13632#else
13633 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13634#endif
13635 }
13636 return pyobj;
13637}
13638
13639
8edf1c75 13640static int _wrap_ART_FILE_OPEN_set(PyObject *) {
d14a1e28
RD
13641 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13642 return 1;
13643}
13644
13645
13646static PyObject *_wrap_ART_FILE_OPEN_get() {
13647 PyObject *pyobj;
13648
13649 {
13650#if wxUSE_UNICODE
13651 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13652#else
13653 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13654#endif
13655 }
13656 return pyobj;
13657}
13658
13659
8edf1c75 13660static int _wrap_ART_PRINT_set(PyObject *) {
d14a1e28
RD
13661 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13662 return 1;
13663}
13664
13665
13666static PyObject *_wrap_ART_PRINT_get() {
13667 PyObject *pyobj;
13668
13669 {
13670#if wxUSE_UNICODE
13671 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13672#else
13673 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13674#endif
13675 }
13676 return pyobj;
13677}
13678
13679
8edf1c75 13680static int _wrap_ART_HELP_set(PyObject *) {
d14a1e28
RD
13681 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13682 return 1;
13683}
13684
13685
13686static PyObject *_wrap_ART_HELP_get() {
13687 PyObject *pyobj;
13688
13689 {
13690#if wxUSE_UNICODE
13691 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13692#else
13693 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13694#endif
13695 }
13696 return pyobj;
13697}
13698
13699
8edf1c75 13700static int _wrap_ART_TIP_set(PyObject *) {
d14a1e28
RD
13701 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13702 return 1;
13703}
13704
13705
13706static PyObject *_wrap_ART_TIP_get() {
13707 PyObject *pyobj;
13708
13709 {
13710#if wxUSE_UNICODE
13711 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13712#else
13713 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13714#endif
13715 }
13716 return pyobj;
13717}
13718
13719
8edf1c75 13720static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
d14a1e28
RD
13721 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
13722 return 1;
13723}
13724
13725
13726static PyObject *_wrap_ART_REPORT_VIEW_get() {
13727 PyObject *pyobj;
13728
13729 {
13730#if wxUSE_UNICODE
13731 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13732#else
13733 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13734#endif
13735 }
13736 return pyobj;
13737}
13738
13739
8edf1c75 13740static int _wrap_ART_LIST_VIEW_set(PyObject *) {
d14a1e28
RD
13741 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
13742 return 1;
13743}
13744
13745
13746static PyObject *_wrap_ART_LIST_VIEW_get() {
13747 PyObject *pyobj;
13748
13749 {
13750#if wxUSE_UNICODE
13751 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13752#else
13753 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13754#endif
13755 }
13756 return pyobj;
13757}
13758
13759
8edf1c75 13760static int _wrap_ART_NEW_DIR_set(PyObject *) {
d14a1e28
RD
13761 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
13762 return 1;
13763}
13764
13765
13766static PyObject *_wrap_ART_NEW_DIR_get() {
13767 PyObject *pyobj;
13768
13769 {
13770#if wxUSE_UNICODE
13771 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13772#else
13773 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13774#endif
13775 }
13776 return pyobj;
13777}
13778
13779
8edf1c75 13780static int _wrap_ART_FOLDER_set(PyObject *) {
d14a1e28
RD
13781 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
13782 return 1;
13783}
13784
13785
13786static PyObject *_wrap_ART_FOLDER_get() {
13787 PyObject *pyobj;
13788
13789 {
13790#if wxUSE_UNICODE
13791 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13792#else
13793 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13794#endif
13795 }
13796 return pyobj;
13797}
13798
13799
8edf1c75 13800static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
d14a1e28
RD
13801 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
13802 return 1;
13803}
13804
13805
13806static PyObject *_wrap_ART_GO_DIR_UP_get() {
13807 PyObject *pyobj;
13808
13809 {
13810#if wxUSE_UNICODE
13811 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13812#else
13813 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13814#endif
13815 }
13816 return pyobj;
13817}
13818
13819
8edf1c75 13820static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
d14a1e28
RD
13821 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
13822 return 1;
13823}
13824
13825
13826static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
13827 PyObject *pyobj;
13828
13829 {
13830#if wxUSE_UNICODE
13831 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
13832#else
13833 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
13834#endif
13835 }
13836 return pyobj;
13837}
13838
13839
8edf1c75 13840static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
d14a1e28
RD
13841 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
13842 return 1;
13843}
13844
13845
13846static PyObject *_wrap_ART_NORMAL_FILE_get() {
13847 PyObject *pyobj;
13848
13849 {
13850#if wxUSE_UNICODE
13851 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
13852#else
13853 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
13854#endif
13855 }
13856 return pyobj;
13857}
13858
13859
8edf1c75 13860static int _wrap_ART_TICK_MARK_set(PyObject *) {
d14a1e28
RD
13861 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
13862 return 1;
13863}
13864
13865
13866static PyObject *_wrap_ART_TICK_MARK_get() {
13867 PyObject *pyobj;
13868
13869 {
13870#if wxUSE_UNICODE
13871 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
13872#else
13873 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
13874#endif
13875 }
13876 return pyobj;
13877}
13878
13879
8edf1c75 13880static int _wrap_ART_CROSS_MARK_set(PyObject *) {
d14a1e28
RD
13881 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
13882 return 1;
13883}
13884
13885
13886static PyObject *_wrap_ART_CROSS_MARK_get() {
13887 PyObject *pyobj;
13888
13889 {
13890#if wxUSE_UNICODE
13891 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
13892#else
13893 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
13894#endif
13895 }
13896 return pyobj;
13897}
13898
13899
8edf1c75 13900static int _wrap_ART_ERROR_set(PyObject *) {
d14a1e28
RD
13901 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
13902 return 1;
13903}
13904
13905
13906static PyObject *_wrap_ART_ERROR_get() {
13907 PyObject *pyobj;
13908
13909 {
13910#if wxUSE_UNICODE
13911 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
13912#else
13913 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
13914#endif
13915 }
13916 return pyobj;
13917}
13918
13919
8edf1c75 13920static int _wrap_ART_QUESTION_set(PyObject *) {
d14a1e28
RD
13921 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
13922 return 1;
13923}
13924
13925
13926static PyObject *_wrap_ART_QUESTION_get() {
13927 PyObject *pyobj;
13928
13929 {
13930#if wxUSE_UNICODE
13931 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
13932#else
13933 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
13934#endif
13935 }
13936 return pyobj;
13937}
13938
13939
8edf1c75 13940static int _wrap_ART_WARNING_set(PyObject *) {
d14a1e28
RD
13941 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
13942 return 1;
13943}
13944
13945
13946static PyObject *_wrap_ART_WARNING_get() {
13947 PyObject *pyobj;
13948
13949 {
13950#if wxUSE_UNICODE
13951 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
13952#else
13953 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
13954#endif
13955 }
13956 return pyobj;
13957}
13958
13959
8edf1c75 13960static int _wrap_ART_INFORMATION_set(PyObject *) {
d14a1e28
RD
13961 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
13962 return 1;
13963}
13964
13965
13966static PyObject *_wrap_ART_INFORMATION_get() {
13967 PyObject *pyobj;
13968
13969 {
13970#if wxUSE_UNICODE
13971 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
13972#else
13973 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
13974#endif
13975 }
13976 return pyobj;
13977}
13978
13979
8edf1c75 13980static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
d14a1e28
RD
13981 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
13982 return 1;
13983}
13984
13985
13986static PyObject *_wrap_ART_MISSING_IMAGE_get() {
13987 PyObject *pyobj;
13988
13989 {
13990#if wxUSE_UNICODE
13991 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
13992#else
13993 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
13994#endif
13995 }
13996 return pyobj;
13997}
13998
13999
14000static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14001 PyObject *resultobj;
14002 wxPyArtProvider *result;
14003 char *kwnames[] = {
14004 NULL
14005 };
14006
14007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
14010 result = (wxPyArtProvider *)new wxPyArtProvider();
14011
14012 wxPyEndAllowThreads(__tstate);
14013 if (PyErr_Occurred()) SWIG_fail;
14014 }
14015 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1);
14016 return resultobj;
14017 fail:
14018 return NULL;
14019}
14020
14021
d14a1e28
RD
14022static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14023 PyObject *resultobj;
14024 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14025 PyObject *arg2 = (PyObject *) 0 ;
14026 PyObject *arg3 = (PyObject *) 0 ;
14027 PyObject * obj0 = 0 ;
14028 PyObject * obj1 = 0 ;
14029 PyObject * obj2 = 0 ;
14030 char *kwnames[] = {
14031 (char *) "self",(char *) "self",(char *) "_class", NULL
14032 };
14033
14034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14035 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14036 arg2 = obj1;
14037 arg3 = obj2;
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 (arg1)->_setCallbackInfo(arg2,arg3);
14041
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 Py_INCREF(Py_None); resultobj = Py_None;
14046 return resultobj;
14047 fail:
14048 return NULL;
14049}
14050
14051
14052static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14053 PyObject *resultobj;
14054 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14055 PyObject * obj0 = 0 ;
14056 char *kwnames[] = {
14057 (char *) "provider", NULL
14058 };
14059
14060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14062 {
14063 PyThreadState* __tstate = wxPyBeginAllowThreads();
14064 wxPyArtProvider::PushProvider(arg1);
14065
14066 wxPyEndAllowThreads(__tstate);
14067 if (PyErr_Occurred()) SWIG_fail;
14068 }
14069 Py_INCREF(Py_None); resultobj = Py_None;
14070 return resultobj;
14071 fail:
14072 return NULL;
14073}
14074
14075
14076static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14077 PyObject *resultobj;
14078 bool result;
14079 char *kwnames[] = {
14080 NULL
14081 };
14082
14083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14084 {
14085 PyThreadState* __tstate = wxPyBeginAllowThreads();
14086 result = (bool)wxPyArtProvider::PopProvider();
14087
14088 wxPyEndAllowThreads(__tstate);
14089 if (PyErr_Occurred()) SWIG_fail;
14090 }
02a34c4c 14091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14092 return resultobj;
14093 fail:
14094 return NULL;
14095}
14096
14097
14098static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14099 PyObject *resultobj;
14100 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14101 bool result;
14102 PyObject * obj0 = 0 ;
14103 char *kwnames[] = {
14104 (char *) "provider", NULL
14105 };
14106
14107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14109 {
14110 PyThreadState* __tstate = wxPyBeginAllowThreads();
14111 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14112
14113 wxPyEndAllowThreads(__tstate);
14114 if (PyErr_Occurred()) SWIG_fail;
14115 }
02a34c4c 14116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14117 return resultobj;
14118 fail:
14119 return NULL;
14120}
14121
14122
14123static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14124 PyObject *resultobj;
14125 wxString *arg1 = 0 ;
14126 wxString const &arg2_defvalue = wxPyART_OTHER ;
14127 wxString *arg2 = (wxString *) &arg2_defvalue ;
14128 wxSize const &arg3_defvalue = wxDefaultSize ;
14129 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14130 wxBitmap result;
423f194a
RD
14131 bool temp1 = False ;
14132 bool temp2 = False ;
d14a1e28
RD
14133 wxSize temp3 ;
14134 PyObject * obj0 = 0 ;
14135 PyObject * obj1 = 0 ;
14136 PyObject * obj2 = 0 ;
14137 char *kwnames[] = {
14138 (char *) "id",(char *) "client",(char *) "size", NULL
14139 };
14140
14141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14142 {
14143 arg1 = wxString_in_helper(obj0);
14144 if (arg1 == NULL) SWIG_fail;
423f194a 14145 temp1 = True;
d14a1e28
RD
14146 }
14147 if (obj1) {
14148 {
14149 arg2 = wxString_in_helper(obj1);
14150 if (arg2 == NULL) SWIG_fail;
423f194a 14151 temp2 = True;
d14a1e28
RD
14152 }
14153 }
14154 if (obj2) {
14155 {
14156 arg3 = &temp3;
14157 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14158 }
14159 }
14160 {
14161 PyThreadState* __tstate = wxPyBeginAllowThreads();
14162 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14163
14164 wxPyEndAllowThreads(__tstate);
14165 if (PyErr_Occurred()) SWIG_fail;
14166 }
14167 {
14168 wxBitmap * resultptr;
14169 resultptr = new wxBitmap((wxBitmap &) result);
14170 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
14171 }
14172 {
14173 if (temp1)
14174 delete arg1;
14175 }
14176 {
14177 if (temp2)
14178 delete arg2;
14179 }
14180 return resultobj;
14181 fail:
14182 {
14183 if (temp1)
14184 delete arg1;
14185 }
14186 {
14187 if (temp2)
14188 delete arg2;
14189 }
14190 return NULL;
14191}
14192
14193
14194static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14195 PyObject *resultobj;
14196 wxString *arg1 = 0 ;
14197 wxString const &arg2_defvalue = wxPyART_OTHER ;
14198 wxString *arg2 = (wxString *) &arg2_defvalue ;
14199 wxSize const &arg3_defvalue = wxDefaultSize ;
14200 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14201 wxIcon result;
423f194a
RD
14202 bool temp1 = False ;
14203 bool temp2 = False ;
d14a1e28
RD
14204 wxSize temp3 ;
14205 PyObject * obj0 = 0 ;
14206 PyObject * obj1 = 0 ;
14207 PyObject * obj2 = 0 ;
14208 char *kwnames[] = {
14209 (char *) "id",(char *) "client",(char *) "size", NULL
14210 };
14211
14212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14213 {
14214 arg1 = wxString_in_helper(obj0);
14215 if (arg1 == NULL) SWIG_fail;
423f194a 14216 temp1 = True;
d14a1e28
RD
14217 }
14218 if (obj1) {
14219 {
14220 arg2 = wxString_in_helper(obj1);
14221 if (arg2 == NULL) SWIG_fail;
423f194a 14222 temp2 = True;
d14a1e28
RD
14223 }
14224 }
14225 if (obj2) {
14226 {
14227 arg3 = &temp3;
14228 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14229 }
14230 }
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14234
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 {
14239 wxIcon * resultptr;
14240 resultptr = new wxIcon((wxIcon &) result);
14241 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1);
14242 }
14243 {
14244 if (temp1)
14245 delete arg1;
14246 }
14247 {
14248 if (temp2)
14249 delete arg2;
14250 }
14251 return resultobj;
14252 fail:
14253 {
14254 if (temp1)
14255 delete arg1;
14256 }
14257 {
14258 if (temp2)
14259 delete arg2;
14260 }
14261 return NULL;
14262}
14263
14264
41f1cec7
RD
14265static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14266 PyObject *resultobj;
14267 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14268 PyObject * obj0 = 0 ;
14269 char *kwnames[] = {
14270 (char *) "self", NULL
14271 };
14272
14273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 wxPyArtProvider_Destroy(arg1);
14278
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 Py_INCREF(Py_None); resultobj = Py_None;
14283 return resultobj;
14284 fail:
14285 return NULL;
14286}
14287
14288
d14a1e28
RD
14289static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14290 PyObject *obj;
14291 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14292 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14293 Py_INCREF(obj);
14294 return Py_BuildValue((char *)"");
14295}
14296static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14297 PyObject *resultobj;
14298 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14299 PyObject * obj0 = 0 ;
14300 char *kwnames[] = {
14301 (char *) "self", NULL
14302 };
14303
14304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 delete arg1;
14309
14310 wxPyEndAllowThreads(__tstate);
14311 if (PyErr_Occurred()) SWIG_fail;
14312 }
14313 Py_INCREF(Py_None); resultobj = Py_None;
14314 return resultobj;
14315 fail:
14316 return NULL;
14317}
14318
14319
14320static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14321 PyObject *resultobj;
14322 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14323 wxConfigBase *result;
14324 PyObject * obj0 = 0 ;
14325 char *kwnames[] = {
14326 (char *) "pConfig", NULL
14327 };
14328
14329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14334
14335 wxPyEndAllowThreads(__tstate);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 }
14338 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
14339 return resultobj;
14340 fail:
14341 return NULL;
14342}
14343
14344
14345static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14346 PyObject *resultobj;
423f194a 14347 bool arg1 = (bool) True ;
d14a1e28
RD
14348 wxConfigBase *result;
14349 PyObject * obj0 = 0 ;
14350 char *kwnames[] = {
14351 (char *) "createOnDemand", NULL
14352 };
14353
14354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14355 if (obj0) {
2dbef272 14356 {
8edf1c75 14357 arg1 = (bool) SWIG_PyObj_AsBool(obj0);
2dbef272
RD
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
d14a1e28
RD
14360 }
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14364
14365 wxPyEndAllowThreads(__tstate);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 }
14368 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
14369 return resultobj;
14370 fail:
14371 return NULL;
14372}
14373
14374
14375static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj;
14377 wxConfigBase *result;
14378 char *kwnames[] = {
14379 NULL
14380 };
14381
14382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14383 {
14384 PyThreadState* __tstate = wxPyBeginAllowThreads();
14385 result = (wxConfigBase *)wxConfigBase::Create();
14386
14387 wxPyEndAllowThreads(__tstate);
14388 if (PyErr_Occurred()) SWIG_fail;
14389 }
14390 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
14391 return resultobj;
14392 fail:
14393 return NULL;
14394}
14395
14396
14397static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj;
14399 char *kwnames[] = {
14400 NULL
14401 };
14402
14403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14404 {
14405 PyThreadState* __tstate = wxPyBeginAllowThreads();
14406 wxConfigBase::DontCreateOnDemand();
14407
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 Py_INCREF(Py_None); resultobj = Py_None;
14412 return resultobj;
14413 fail:
14414 return NULL;
14415}
14416
14417
14418static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14419 PyObject *resultobj;
14420 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14421 wxString *arg2 = 0 ;
423f194a 14422 bool temp2 = False ;
d14a1e28
RD
14423 PyObject * obj0 = 0 ;
14424 PyObject * obj1 = 0 ;
14425 char *kwnames[] = {
14426 (char *) "self",(char *) "strPath", NULL
14427 };
14428
14429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14431 {
14432 arg2 = wxString_in_helper(obj1);
14433 if (arg2 == NULL) SWIG_fail;
423f194a 14434 temp2 = True;
d14a1e28
RD
14435 }
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 (arg1)->SetPath((wxString const &)*arg2);
14439
14440 wxPyEndAllowThreads(__tstate);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 }
14443 Py_INCREF(Py_None); resultobj = Py_None;
14444 {
14445 if (temp2)
14446 delete arg2;
14447 }
14448 return resultobj;
14449 fail:
14450 {
14451 if (temp2)
14452 delete arg2;
14453 }
14454 return NULL;
14455}
14456
14457
14458static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14459 PyObject *resultobj;
14460 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14461 wxString *result;
14462 PyObject * obj0 = 0 ;
14463 char *kwnames[] = {
14464 (char *) "self", NULL
14465 };
14466
14467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14469 {
14470 PyThreadState* __tstate = wxPyBeginAllowThreads();
14471 {
14472 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14473 result = (wxString *) &_result_ref;
14474 }
14475
14476 wxPyEndAllowThreads(__tstate);
14477 if (PyErr_Occurred()) SWIG_fail;
14478 }
0f774bef
RD
14479 {
14480#if wxUSE_UNICODE
14481 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14482#else
14483 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14484#endif
14485 }
d14a1e28
RD
14486 return resultobj;
14487 fail:
14488 return NULL;
14489}
14490
14491
14492static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14493 PyObject *resultobj;
14494 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14495 PyObject *result;
14496 PyObject * obj0 = 0 ;
14497 char *kwnames[] = {
14498 (char *) "self", NULL
14499 };
14500
14501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14503 {
14504 PyThreadState* __tstate = wxPyBeginAllowThreads();
14505 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14506
14507 wxPyEndAllowThreads(__tstate);
14508 if (PyErr_Occurred()) SWIG_fail;
14509 }
14510 resultobj = result;
14511 return resultobj;
14512 fail:
14513 return NULL;
14514}
14515
14516
14517static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14518 PyObject *resultobj;
14519 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14520 long arg2 ;
14521 PyObject *result;
14522 PyObject * obj0 = 0 ;
8edf1c75 14523 PyObject * obj1 = 0 ;
d14a1e28
RD
14524 char *kwnames[] = {
14525 (char *) "self",(char *) "index", NULL
14526 };
14527
8edf1c75 14528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 14529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
14530 {
14531 arg2 = (long) SWIG_PyObj_AsLong(obj1);
14532 if (PyErr_Occurred()) SWIG_fail;
14533 }
d14a1e28
RD
14534 {
14535 PyThreadState* __tstate = wxPyBeginAllowThreads();
14536 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14537
14538 wxPyEndAllowThreads(__tstate);
14539 if (PyErr_Occurred()) SWIG_fail;
14540 }
14541 resultobj = result;
14542 return resultobj;
14543 fail:
14544 return NULL;
14545}
14546
14547
14548static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14549 PyObject *resultobj;
14550 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14551 PyObject *result;
14552 PyObject * obj0 = 0 ;
14553 char *kwnames[] = {
14554 (char *) "self", NULL
14555 };
14556
14557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14562
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 resultobj = result;
14567 return resultobj;
14568 fail:
14569 return NULL;
14570}
14571
14572
14573static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14574 PyObject *resultobj;
14575 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14576 long arg2 ;
14577 PyObject *result;
14578 PyObject * obj0 = 0 ;
8edf1c75 14579 PyObject * obj1 = 0 ;
d14a1e28
RD
14580 char *kwnames[] = {
14581 (char *) "self",(char *) "index", NULL
14582 };
14583
8edf1c75 14584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 14585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
14586 {
14587 arg2 = (long) SWIG_PyObj_AsLong(obj1);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
d14a1e28
RD
14590 {
14591 PyThreadState* __tstate = wxPyBeginAllowThreads();
14592 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14593
14594 wxPyEndAllowThreads(__tstate);
14595 if (PyErr_Occurred()) SWIG_fail;
14596 }
14597 resultobj = result;
14598 return resultobj;
14599 fail:
14600 return NULL;
14601}
14602
14603
14604static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14605 PyObject *resultobj;
14606 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
423f194a 14607 bool arg2 = (bool) False ;
d14a1e28
RD
14608 size_t result;
14609 PyObject * obj0 = 0 ;
14610 PyObject * obj1 = 0 ;
14611 char *kwnames[] = {
14612 (char *) "self",(char *) "bRecursive", NULL
14613 };
14614
14615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14617 if (obj1) {
2dbef272 14618 {
8edf1c75 14619 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
d14a1e28
RD
14622 }
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14626
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
8edf1c75 14630 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
14631 return resultobj;
14632 fail:
14633 return NULL;
14634}
14635
14636
14637static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj;
14639 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
423f194a 14640 bool arg2 = (bool) False ;
d14a1e28
RD
14641 size_t result;
14642 PyObject * obj0 = 0 ;
14643 PyObject * obj1 = 0 ;
14644 char *kwnames[] = {
14645 (char *) "self",(char *) "bRecursive", NULL
14646 };
14647
14648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14650 if (obj1) {
2dbef272 14651 {
8edf1c75 14652 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
d14a1e28
RD
14655 }
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14659
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
8edf1c75 14663 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
14664 return resultobj;
14665 fail:
14666 return NULL;
14667}
14668
14669
14670static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14671 PyObject *resultobj;
14672 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14673 wxString *arg2 = 0 ;
14674 bool result;
423f194a 14675 bool temp2 = False ;
d14a1e28
RD
14676 PyObject * obj0 = 0 ;
14677 PyObject * obj1 = 0 ;
14678 char *kwnames[] = {
14679 (char *) "self",(char *) "strName", NULL
14680 };
14681
14682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14684 {
14685 arg2 = wxString_in_helper(obj1);
14686 if (arg2 == NULL) SWIG_fail;
423f194a 14687 temp2 = True;
d14a1e28
RD
14688 }
14689 {
14690 PyThreadState* __tstate = wxPyBeginAllowThreads();
14691 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14692
14693 wxPyEndAllowThreads(__tstate);
14694 if (PyErr_Occurred()) SWIG_fail;
14695 }
02a34c4c 14696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14697 {
14698 if (temp2)
14699 delete arg2;
14700 }
14701 return resultobj;
14702 fail:
14703 {
14704 if (temp2)
14705 delete arg2;
14706 }
14707 return NULL;
14708}
14709
14710
14711static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14712 PyObject *resultobj;
14713 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14714 wxString *arg2 = 0 ;
14715 bool result;
423f194a 14716 bool temp2 = False ;
d14a1e28
RD
14717 PyObject * obj0 = 0 ;
14718 PyObject * obj1 = 0 ;
14719 char *kwnames[] = {
14720 (char *) "self",(char *) "strName", NULL
14721 };
14722
14723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
14724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14725 {
14726 arg2 = wxString_in_helper(obj1);
14727 if (arg2 == NULL) SWIG_fail;
423f194a 14728 temp2 = True;
d14a1e28
RD
14729 }
14730 {
14731 PyThreadState* __tstate = wxPyBeginAllowThreads();
14732 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
14733
14734 wxPyEndAllowThreads(__tstate);
14735 if (PyErr_Occurred()) SWIG_fail;
14736 }
02a34c4c 14737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14738 {
14739 if (temp2)
14740 delete arg2;
14741 }
14742 return resultobj;
14743 fail:
14744 {
14745 if (temp2)
14746 delete arg2;
14747 }
14748 return NULL;
14749}
14750
14751
14752static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj;
14754 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14755 wxString *arg2 = 0 ;
14756 bool result;
423f194a 14757 bool temp2 = False ;
d14a1e28
RD
14758 PyObject * obj0 = 0 ;
14759 PyObject * obj1 = 0 ;
14760 char *kwnames[] = {
14761 (char *) "self",(char *) "strName", NULL
14762 };
14763
14764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
14765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14766 {
14767 arg2 = wxString_in_helper(obj1);
14768 if (arg2 == NULL) SWIG_fail;
423f194a 14769 temp2 = True;
d14a1e28
RD
14770 }
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
14774
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
02a34c4c 14778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14779 {
14780 if (temp2)
14781 delete arg2;
14782 }
14783 return resultobj;
14784 fail:
14785 {
14786 if (temp2)
14787 delete arg2;
14788 }
14789 return NULL;
14790}
14791
14792
14793static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
14794 PyObject *resultobj;
14795 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14796 wxString *arg2 = 0 ;
14797 int result;
423f194a 14798 bool temp2 = False ;
d14a1e28
RD
14799 PyObject * obj0 = 0 ;
14800 PyObject * obj1 = 0 ;
14801 char *kwnames[] = {
14802 (char *) "self",(char *) "name", NULL
14803 };
14804
14805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
14806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14807 {
14808 arg2 = wxString_in_helper(obj1);
14809 if (arg2 == NULL) SWIG_fail;
423f194a 14810 temp2 = True;
d14a1e28
RD
14811 }
14812 {
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
14814 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
14815
14816 wxPyEndAllowThreads(__tstate);
14817 if (PyErr_Occurred()) SWIG_fail;
14818 }
8edf1c75 14819 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14820 {
14821 if (temp2)
14822 delete arg2;
14823 }
14824 return resultobj;
14825 fail:
14826 {
14827 if (temp2)
14828 delete arg2;
14829 }
14830 return NULL;
14831}
14832
14833
14834static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
14835 PyObject *resultobj;
14836 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14837 wxString *arg2 = 0 ;
14838 wxString const &arg3_defvalue = wxPyEmptyString ;
14839 wxString *arg3 = (wxString *) &arg3_defvalue ;
14840 wxString result;
423f194a
RD
14841 bool temp2 = False ;
14842 bool temp3 = False ;
d14a1e28
RD
14843 PyObject * obj0 = 0 ;
14844 PyObject * obj1 = 0 ;
14845 PyObject * obj2 = 0 ;
14846 char *kwnames[] = {
14847 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
14848 };
14849
14850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
14851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14852 {
14853 arg2 = wxString_in_helper(obj1);
14854 if (arg2 == NULL) SWIG_fail;
423f194a 14855 temp2 = True;
d14a1e28
RD
14856 }
14857 if (obj2) {
14858 {
14859 arg3 = wxString_in_helper(obj2);
14860 if (arg3 == NULL) SWIG_fail;
423f194a 14861 temp3 = True;
d14a1e28
RD
14862 }
14863 }
14864 {
14865 PyThreadState* __tstate = wxPyBeginAllowThreads();
14866 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
14867
14868 wxPyEndAllowThreads(__tstate);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 {
14872#if wxUSE_UNICODE
14873 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14874#else
14875 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14876#endif
14877 }
14878 {
14879 if (temp2)
14880 delete arg2;
14881 }
14882 {
14883 if (temp3)
14884 delete arg3;
14885 }
14886 return resultobj;
14887 fail:
14888 {
14889 if (temp2)
14890 delete arg2;
14891 }
14892 {
14893 if (temp3)
14894 delete arg3;
14895 }
14896 return NULL;
14897}
14898
14899
14900static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
14901 PyObject *resultobj;
14902 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14903 wxString *arg2 = 0 ;
14904 long arg3 = (long) 0 ;
14905 long result;
423f194a 14906 bool temp2 = False ;
d14a1e28
RD
14907 PyObject * obj0 = 0 ;
14908 PyObject * obj1 = 0 ;
8edf1c75 14909 PyObject * obj2 = 0 ;
d14a1e28
RD
14910 char *kwnames[] = {
14911 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
14912 };
14913
8edf1c75 14914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
14915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14916 {
14917 arg2 = wxString_in_helper(obj1);
14918 if (arg2 == NULL) SWIG_fail;
423f194a 14919 temp2 = True;
d14a1e28 14920 }
8edf1c75
RD
14921 if (obj2) {
14922 {
14923 arg3 = (long) SWIG_PyObj_AsLong(obj2);
14924 if (PyErr_Occurred()) SWIG_fail;
14925 }
14926 }
d14a1e28
RD
14927 {
14928 PyThreadState* __tstate = wxPyBeginAllowThreads();
14929 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
14930
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
8edf1c75 14934 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
14935 {
14936 if (temp2)
14937 delete arg2;
14938 }
14939 return resultobj;
14940 fail:
14941 {
14942 if (temp2)
14943 delete arg2;
14944 }
14945 return NULL;
14946}
14947
14948
14949static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj;
14951 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14952 wxString *arg2 = 0 ;
14953 double arg3 = (double) 0.0 ;
14954 double result;
423f194a 14955 bool temp2 = False ;
d14a1e28
RD
14956 PyObject * obj0 = 0 ;
14957 PyObject * obj1 = 0 ;
8edf1c75 14958 PyObject * obj2 = 0 ;
d14a1e28
RD
14959 char *kwnames[] = {
14960 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
14961 };
14962
8edf1c75 14963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
14964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14965 {
14966 arg2 = wxString_in_helper(obj1);
14967 if (arg2 == NULL) SWIG_fail;
423f194a 14968 temp2 = True;
d14a1e28 14969 }
8edf1c75
RD
14970 if (obj2) {
14971 {
14972 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14973 if (PyErr_Occurred()) SWIG_fail;
14974 }
14975 }
d14a1e28
RD
14976 {
14977 PyThreadState* __tstate = wxPyBeginAllowThreads();
14978 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
14979
14980 wxPyEndAllowThreads(__tstate);
14981 if (PyErr_Occurred()) SWIG_fail;
14982 }
8edf1c75 14983 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
14984 {
14985 if (temp2)
14986 delete arg2;
14987 }
14988 return resultobj;
14989 fail:
14990 {
14991 if (temp2)
14992 delete arg2;
14993 }
14994 return NULL;
14995}
14996
14997
14998static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
14999 PyObject *resultobj;
15000 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15001 wxString *arg2 = 0 ;
423f194a 15002 bool arg3 = (bool) False ;
d14a1e28 15003 bool result;
423f194a 15004 bool temp2 = False ;
d14a1e28
RD
15005 PyObject * obj0 = 0 ;
15006 PyObject * obj1 = 0 ;
15007 PyObject * obj2 = 0 ;
15008 char *kwnames[] = {
15009 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15010 };
15011
15012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15014 {
15015 arg2 = wxString_in_helper(obj1);
15016 if (arg2 == NULL) SWIG_fail;
423f194a 15017 temp2 = True;
d14a1e28
RD
15018 }
15019 if (obj2) {
2dbef272 15020 {
8edf1c75 15021 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
d14a1e28
RD
15024 }
15025 {
15026 PyThreadState* __tstate = wxPyBeginAllowThreads();
15027 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15028
15029 wxPyEndAllowThreads(__tstate);
15030 if (PyErr_Occurred()) SWIG_fail;
15031 }
02a34c4c 15032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15033 {
15034 if (temp2)
15035 delete arg2;
15036 }
15037 return resultobj;
15038 fail:
15039 {
15040 if (temp2)
15041 delete arg2;
15042 }
15043 return NULL;
15044}
15045
15046
15047static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15048 PyObject *resultobj;
15049 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15050 wxString *arg2 = 0 ;
15051 wxString *arg3 = 0 ;
15052 bool result;
423f194a
RD
15053 bool temp2 = False ;
15054 bool temp3 = False ;
d14a1e28
RD
15055 PyObject * obj0 = 0 ;
15056 PyObject * obj1 = 0 ;
15057 PyObject * obj2 = 0 ;
15058 char *kwnames[] = {
15059 (char *) "self",(char *) "key",(char *) "value", NULL
15060 };
15061
15062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15064 {
15065 arg2 = wxString_in_helper(obj1);
15066 if (arg2 == NULL) SWIG_fail;
423f194a 15067 temp2 = True;
d14a1e28
RD
15068 }
15069 {
15070 arg3 = wxString_in_helper(obj2);
15071 if (arg3 == NULL) SWIG_fail;
423f194a 15072 temp3 = True;
d14a1e28
RD
15073 }
15074 {
15075 PyThreadState* __tstate = wxPyBeginAllowThreads();
15076 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15077
15078 wxPyEndAllowThreads(__tstate);
15079 if (PyErr_Occurred()) SWIG_fail;
15080 }
02a34c4c 15081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15082 {
15083 if (temp2)
15084 delete arg2;
15085 }
15086 {
15087 if (temp3)
15088 delete arg3;
15089 }
15090 return resultobj;
15091 fail:
15092 {
15093 if (temp2)
15094 delete arg2;
15095 }
15096 {
15097 if (temp3)
15098 delete arg3;
15099 }
15100 return NULL;
15101}
15102
15103
15104static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15105 PyObject *resultobj;
15106 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15107 wxString *arg2 = 0 ;
15108 long arg3 ;
15109 bool result;
423f194a 15110 bool temp2 = False ;
d14a1e28
RD
15111 PyObject * obj0 = 0 ;
15112 PyObject * obj1 = 0 ;
8edf1c75 15113 PyObject * obj2 = 0 ;
d14a1e28
RD
15114 char *kwnames[] = {
15115 (char *) "self",(char *) "key",(char *) "value", NULL
15116 };
15117
8edf1c75 15118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
15119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15120 {
15121 arg2 = wxString_in_helper(obj1);
15122 if (arg2 == NULL) SWIG_fail;
423f194a 15123 temp2 = True;
d14a1e28 15124 }
8edf1c75
RD
15125 {
15126 arg3 = (long) SWIG_PyObj_AsLong(obj2);
15127 if (PyErr_Occurred()) SWIG_fail;
15128 }
d14a1e28
RD
15129 {
15130 PyThreadState* __tstate = wxPyBeginAllowThreads();
15131 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15132
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
02a34c4c 15136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15137 {
15138 if (temp2)
15139 delete arg2;
15140 }
15141 return resultobj;
15142 fail:
15143 {
15144 if (temp2)
15145 delete arg2;
15146 }
15147 return NULL;
15148}
15149
15150
15151static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15152 PyObject *resultobj;
15153 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15154 wxString *arg2 = 0 ;
15155 double arg3 ;
15156 bool result;
423f194a 15157 bool temp2 = False ;
d14a1e28
RD
15158 PyObject * obj0 = 0 ;
15159 PyObject * obj1 = 0 ;
8edf1c75 15160 PyObject * obj2 = 0 ;
d14a1e28
RD
15161 char *kwnames[] = {
15162 (char *) "self",(char *) "key",(char *) "value", NULL
15163 };
15164
8edf1c75 15165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
15166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15167 {
15168 arg2 = wxString_in_helper(obj1);
15169 if (arg2 == NULL) SWIG_fail;
423f194a 15170 temp2 = True;
d14a1e28 15171 }
8edf1c75
RD
15172 {
15173 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
15174 if (PyErr_Occurred()) SWIG_fail;
15175 }
d14a1e28
RD
15176 {
15177 PyThreadState* __tstate = wxPyBeginAllowThreads();
15178 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15179
15180 wxPyEndAllowThreads(__tstate);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 }
02a34c4c 15183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15184 {
15185 if (temp2)
15186 delete arg2;
15187 }
15188 return resultobj;
15189 fail:
15190 {
15191 if (temp2)
15192 delete arg2;
15193 }
15194 return NULL;
15195}
15196
15197
15198static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15199 PyObject *resultobj;
15200 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15201 wxString *arg2 = 0 ;
15202 bool arg3 ;
15203 bool result;
423f194a 15204 bool temp2 = False ;
d14a1e28
RD
15205 PyObject * obj0 = 0 ;
15206 PyObject * obj1 = 0 ;
15207 PyObject * obj2 = 0 ;
15208 char *kwnames[] = {
15209 (char *) "self",(char *) "key",(char *) "value", NULL
15210 };
15211
15212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15214 {
15215 arg2 = wxString_in_helper(obj1);
15216 if (arg2 == NULL) SWIG_fail;
423f194a 15217 temp2 = True;
d14a1e28 15218 }
2dbef272 15219 {
8edf1c75 15220 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
d14a1e28
RD
15223 {
15224 PyThreadState* __tstate = wxPyBeginAllowThreads();
15225 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15226
15227 wxPyEndAllowThreads(__tstate);
15228 if (PyErr_Occurred()) SWIG_fail;
15229 }
02a34c4c 15230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15231 {
15232 if (temp2)
15233 delete arg2;
15234 }
15235 return resultobj;
15236 fail:
15237 {
15238 if (temp2)
15239 delete arg2;
15240 }
15241 return NULL;
15242}
15243
15244
15245static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15246 PyObject *resultobj;
15247 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
423f194a 15248 bool arg2 = (bool) False ;
d14a1e28
RD
15249 bool result;
15250 PyObject * obj0 = 0 ;
15251 PyObject * obj1 = 0 ;
15252 char *kwnames[] = {
15253 (char *) "self",(char *) "bCurrentOnly", NULL
15254 };
15255
15256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15258 if (obj1) {
2dbef272 15259 {
8edf1c75 15260 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
15261 if (PyErr_Occurred()) SWIG_fail;
15262 }
d14a1e28
RD
15263 }
15264 {
15265 PyThreadState* __tstate = wxPyBeginAllowThreads();
15266 result = (bool)(arg1)->Flush(arg2);
15267
15268 wxPyEndAllowThreads(__tstate);
15269 if (PyErr_Occurred()) SWIG_fail;
15270 }
02a34c4c 15271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15272 return resultobj;
15273 fail:
15274 return NULL;
15275}
15276
15277
15278static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15279 PyObject *resultobj;
15280 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15281 wxString *arg2 = 0 ;
15282 wxString *arg3 = 0 ;
15283 bool result;
423f194a
RD
15284 bool temp2 = False ;
15285 bool temp3 = False ;
d14a1e28
RD
15286 PyObject * obj0 = 0 ;
15287 PyObject * obj1 = 0 ;
15288 PyObject * obj2 = 0 ;
15289 char *kwnames[] = {
15290 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15291 };
15292
15293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15295 {
15296 arg2 = wxString_in_helper(obj1);
15297 if (arg2 == NULL) SWIG_fail;
423f194a 15298 temp2 = True;
d14a1e28
RD
15299 }
15300 {
15301 arg3 = wxString_in_helper(obj2);
15302 if (arg3 == NULL) SWIG_fail;
423f194a 15303 temp3 = True;
d14a1e28
RD
15304 }
15305 {
15306 PyThreadState* __tstate = wxPyBeginAllowThreads();
15307 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15308
15309 wxPyEndAllowThreads(__tstate);
15310 if (PyErr_Occurred()) SWIG_fail;
15311 }
02a34c4c 15312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15313 {
15314 if (temp2)
15315 delete arg2;
15316 }
15317 {
15318 if (temp3)
15319 delete arg3;
15320 }
15321 return resultobj;
15322 fail:
15323 {
15324 if (temp2)
15325 delete arg2;
15326 }
15327 {
15328 if (temp3)
15329 delete arg3;
15330 }
15331 return NULL;
15332}
15333
15334
15335static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj;
15337 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15338 wxString *arg2 = 0 ;
15339 wxString *arg3 = 0 ;
15340 bool result;
423f194a
RD
15341 bool temp2 = False ;
15342 bool temp3 = False ;
d14a1e28
RD
15343 PyObject * obj0 = 0 ;
15344 PyObject * obj1 = 0 ;
15345 PyObject * obj2 = 0 ;
15346 char *kwnames[] = {
15347 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15348 };
15349
15350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15352 {
15353 arg2 = wxString_in_helper(obj1);
15354 if (arg2 == NULL) SWIG_fail;
423f194a 15355 temp2 = True;
d14a1e28
RD
15356 }
15357 {
15358 arg3 = wxString_in_helper(obj2);
15359 if (arg3 == NULL) SWIG_fail;
423f194a 15360 temp3 = True;
d14a1e28
RD
15361 }
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15365
15366 wxPyEndAllowThreads(__tstate);
15367 if (PyErr_Occurred()) SWIG_fail;
15368 }
02a34c4c 15369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15370 {
15371 if (temp2)
15372 delete arg2;
15373 }
15374 {
15375 if (temp3)
15376 delete arg3;
15377 }
15378 return resultobj;
15379 fail:
15380 {
15381 if (temp2)
15382 delete arg2;
15383 }
15384 {
15385 if (temp3)
15386 delete arg3;
15387 }
15388 return NULL;
15389}
15390
15391
15392static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15393 PyObject *resultobj;
15394 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15395 wxString *arg2 = 0 ;
423f194a 15396 bool arg3 = (bool) True ;
d14a1e28 15397 bool result;
423f194a 15398 bool temp2 = False ;
d14a1e28
RD
15399 PyObject * obj0 = 0 ;
15400 PyObject * obj1 = 0 ;
15401 PyObject * obj2 = 0 ;
15402 char *kwnames[] = {
15403 (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL
15404 };
15405
15406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15408 {
15409 arg2 = wxString_in_helper(obj1);
15410 if (arg2 == NULL) SWIG_fail;
423f194a 15411 temp2 = True;
d14a1e28
RD
15412 }
15413 if (obj2) {
2dbef272 15414 {
8edf1c75 15415 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
15416 if (PyErr_Occurred()) SWIG_fail;
15417 }
d14a1e28
RD
15418 }
15419 {
15420 PyThreadState* __tstate = wxPyBeginAllowThreads();
15421 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15422
15423 wxPyEndAllowThreads(__tstate);
15424 if (PyErr_Occurred()) SWIG_fail;
15425 }
02a34c4c 15426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15427 {
15428 if (temp2)
15429 delete arg2;
15430 }
15431 return resultobj;
15432 fail:
15433 {
15434 if (temp2)
15435 delete arg2;
15436 }
15437 return NULL;
15438}
15439
15440
15441static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15442 PyObject *resultobj;
15443 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15444 wxString *arg2 = 0 ;
15445 bool result;
423f194a 15446 bool temp2 = False ;
d14a1e28
RD
15447 PyObject * obj0 = 0 ;
15448 PyObject * obj1 = 0 ;
15449 char *kwnames[] = {
15450 (char *) "self",(char *) "key", NULL
15451 };
15452
15453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15455 {
15456 arg2 = wxString_in_helper(obj1);
15457 if (arg2 == NULL) SWIG_fail;
423f194a 15458 temp2 = True;
d14a1e28
RD
15459 }
15460 {
15461 PyThreadState* __tstate = wxPyBeginAllowThreads();
15462 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15463
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
02a34c4c 15467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15468 {
15469 if (temp2)
15470 delete arg2;
15471 }
15472 return resultobj;
15473 fail:
15474 {
15475 if (temp2)
15476 delete arg2;
15477 }
15478 return NULL;
15479}
15480
15481
15482static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15483 PyObject *resultobj;
15484 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15485 bool result;
15486 PyObject * obj0 = 0 ;
15487 char *kwnames[] = {
15488 (char *) "self", NULL
15489 };
15490
15491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 result = (bool)(arg1)->DeleteAll();
15496
15497 wxPyEndAllowThreads(__tstate);
15498 if (PyErr_Occurred()) SWIG_fail;
15499 }
02a34c4c 15500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15501 return resultobj;
15502 fail:
15503 return NULL;
15504}
15505
15506
15507static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15508 PyObject *resultobj;
15509 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15510 bool result;
15511 PyObject * obj0 = 0 ;
15512 char *kwnames[] = {
15513 (char *) "self", NULL
15514 };
15515
15516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15518 {
15519 PyThreadState* __tstate = wxPyBeginAllowThreads();
15520 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15521
15522 wxPyEndAllowThreads(__tstate);
15523 if (PyErr_Occurred()) SWIG_fail;
15524 }
02a34c4c 15525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15526 return resultobj;
15527 fail:
15528 return NULL;
15529}
15530
15531
15532static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15533 PyObject *resultobj;
15534 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
423f194a 15535 bool arg2 = (bool) True ;
d14a1e28
RD
15536 PyObject * obj0 = 0 ;
15537 PyObject * obj1 = 0 ;
15538 char *kwnames[] = {
15539 (char *) "self",(char *) "bDoIt", NULL
15540 };
15541
15542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15544 if (obj1) {
2dbef272 15545 {
8edf1c75 15546 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
15547 if (PyErr_Occurred()) SWIG_fail;
15548 }
d14a1e28
RD
15549 }
15550 {
15551 PyThreadState* __tstate = wxPyBeginAllowThreads();
15552 (arg1)->SetExpandEnvVars(arg2);
15553
15554 wxPyEndAllowThreads(__tstate);
15555 if (PyErr_Occurred()) SWIG_fail;
15556 }
15557 Py_INCREF(Py_None); resultobj = Py_None;
15558 return resultobj;
15559 fail:
15560 return NULL;
15561}
15562
15563
15564static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15565 PyObject *resultobj;
15566 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
423f194a 15567 bool arg2 = (bool) True ;
d14a1e28
RD
15568 PyObject * obj0 = 0 ;
15569 PyObject * obj1 = 0 ;
15570 char *kwnames[] = {
15571 (char *) "self",(char *) "bDoIt", NULL
15572 };
15573
15574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15576 if (obj1) {
2dbef272 15577 {
8edf1c75 15578 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
15579 if (PyErr_Occurred()) SWIG_fail;
15580 }
d14a1e28
RD
15581 }
15582 {
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 (arg1)->SetRecordDefaults(arg2);
15585
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 Py_INCREF(Py_None); resultobj = Py_None;
15590 return resultobj;
15591 fail:
15592 return NULL;
15593}
15594
15595
15596static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15597 PyObject *resultobj;
15598 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15599 bool result;
15600 PyObject * obj0 = 0 ;
15601 char *kwnames[] = {
15602 (char *) "self", NULL
15603 };
15604
15605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
02a34c4c 15614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15615 return resultobj;
15616 fail:
15617 return NULL;
15618}
15619
15620
15621static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15622 PyObject *resultobj;
15623 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15624 wxString *arg2 = 0 ;
15625 wxString result;
423f194a 15626 bool temp2 = False ;
d14a1e28
RD
15627 PyObject * obj0 = 0 ;
15628 PyObject * obj1 = 0 ;
15629 char *kwnames[] = {
15630 (char *) "self",(char *) "str", NULL
15631 };
15632
15633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15635 {
15636 arg2 = wxString_in_helper(obj1);
15637 if (arg2 == NULL) SWIG_fail;
423f194a 15638 temp2 = True;
d14a1e28
RD
15639 }
15640 {
15641 PyThreadState* __tstate = wxPyBeginAllowThreads();
15642 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15643
15644 wxPyEndAllowThreads(__tstate);
15645 if (PyErr_Occurred()) SWIG_fail;
15646 }
15647 {
15648#if wxUSE_UNICODE
15649 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15650#else
15651 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15652#endif
15653 }
15654 {
15655 if (temp2)
15656 delete arg2;
15657 }
15658 return resultobj;
15659 fail:
15660 {
15661 if (temp2)
15662 delete arg2;
15663 }
15664 return NULL;
15665}
15666
15667
15668static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15669 PyObject *resultobj;
15670 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15671 wxString result;
15672 PyObject * obj0 = 0 ;
15673 char *kwnames[] = {
15674 (char *) "self", NULL
15675 };
15676
15677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
15678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15679 {
15680 PyThreadState* __tstate = wxPyBeginAllowThreads();
15681 result = ((wxConfigBase const *)arg1)->GetAppName();
15682
15683 wxPyEndAllowThreads(__tstate);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 {
15687#if wxUSE_UNICODE
15688 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15689#else
15690 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15691#endif
15692 }
15693 return resultobj;
15694 fail:
15695 return NULL;
15696}
15697
15698
15699static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15700 PyObject *resultobj;
15701 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15702 wxString result;
15703 PyObject * obj0 = 0 ;
15704 char *kwnames[] = {
15705 (char *) "self", NULL
15706 };
15707
15708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
15709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15710 {
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = ((wxConfigBase const *)arg1)->GetVendorName();
15713
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 {
15718#if wxUSE_UNICODE
15719 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15720#else
15721 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15722#endif
15723 }
15724 return resultobj;
15725 fail:
15726 return NULL;
15727}
15728
15729
15730static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15731 PyObject *resultobj;
15732 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15733 wxString *arg2 = 0 ;
423f194a 15734 bool temp2 = False ;
d14a1e28
RD
15735 PyObject * obj0 = 0 ;
15736 PyObject * obj1 = 0 ;
15737 char *kwnames[] = {
15738 (char *) "self",(char *) "appName", NULL
15739 };
15740
15741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
15742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15743 {
15744 arg2 = wxString_in_helper(obj1);
15745 if (arg2 == NULL) SWIG_fail;
423f194a 15746 temp2 = True;
d14a1e28
RD
15747 }
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 (arg1)->SetAppName((wxString const &)*arg2);
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 Py_INCREF(Py_None); resultobj = Py_None;
15756 {
15757 if (temp2)
15758 delete arg2;
15759 }
15760 return resultobj;
15761 fail:
15762 {
15763 if (temp2)
15764 delete arg2;
15765 }
15766 return NULL;
15767}
15768
15769
15770static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15771 PyObject *resultobj;
15772 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15773 wxString *arg2 = 0 ;
423f194a 15774 bool temp2 = False ;
d14a1e28
RD
15775 PyObject * obj0 = 0 ;
15776 PyObject * obj1 = 0 ;
15777 char *kwnames[] = {
15778 (char *) "self",(char *) "vendorName", NULL
15779 };
15780
15781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
15782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15783 {
15784 arg2 = wxString_in_helper(obj1);
15785 if (arg2 == NULL) SWIG_fail;
423f194a 15786 temp2 = True;
d14a1e28
RD
15787 }
15788 {
15789 PyThreadState* __tstate = wxPyBeginAllowThreads();
15790 (arg1)->SetVendorName((wxString const &)*arg2);
15791
15792 wxPyEndAllowThreads(__tstate);
15793 if (PyErr_Occurred()) SWIG_fail;
15794 }
15795 Py_INCREF(Py_None); resultobj = Py_None;
15796 {
15797 if (temp2)
15798 delete arg2;
15799 }
15800 return resultobj;
15801 fail:
15802 {
15803 if (temp2)
15804 delete arg2;
15805 }
15806 return NULL;
15807}
15808
15809
15810static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15811 PyObject *resultobj;
15812 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15813 long arg2 ;
15814 PyObject * obj0 = 0 ;
8edf1c75 15815 PyObject * obj1 = 0 ;
d14a1e28
RD
15816 char *kwnames[] = {
15817 (char *) "self",(char *) "style", NULL
15818 };
15819
8edf1c75 15820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 15821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
15822 {
15823 arg2 = (long) SWIG_PyObj_AsLong(obj1);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
d14a1e28
RD
15826 {
15827 PyThreadState* __tstate = wxPyBeginAllowThreads();
15828 (arg1)->SetStyle(arg2);
15829
15830 wxPyEndAllowThreads(__tstate);
15831 if (PyErr_Occurred()) SWIG_fail;
15832 }
15833 Py_INCREF(Py_None); resultobj = Py_None;
15834 return resultobj;
15835 fail:
15836 return NULL;
15837}
15838
15839
15840static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15841 PyObject *resultobj;
15842 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15843 long result;
15844 PyObject * obj0 = 0 ;
15845 char *kwnames[] = {
15846 (char *) "self", NULL
15847 };
15848
15849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
15850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = (long)((wxConfigBase const *)arg1)->GetStyle();
15854
15855 wxPyEndAllowThreads(__tstate);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 }
8edf1c75 15858 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
15859 return resultobj;
15860 fail:
15861 return NULL;
15862}
15863
15864
15865static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
15866 PyObject *obj;
15867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15868 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
15869 Py_INCREF(obj);
15870 return Py_BuildValue((char *)"");
15871}
15872static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
15873 PyObject *resultobj;
15874 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15875 wxString *arg2 = 0 ;
15876 wxConfigPathChanger *result;
423f194a 15877 bool temp2 = False ;
d14a1e28
RD
15878 PyObject * obj0 = 0 ;
15879 PyObject * obj1 = 0 ;
15880 char *kwnames[] = {
15881 (char *) "pContainer",(char *) "strEntry", NULL
15882 };
15883
15884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
15885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15886 {
15887 arg2 = wxString_in_helper(obj1);
15888 if (arg2 == NULL) SWIG_fail;
423f194a 15889 temp2 = True;
d14a1e28
RD
15890 }
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
15894
15895 wxPyEndAllowThreads(__tstate);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1);
15899 {
15900 if (temp2)
15901 delete arg2;
15902 }
15903 return resultobj;
15904 fail:
15905 {
15906 if (temp2)
15907 delete arg2;
15908 }
15909 return NULL;
15910}
15911
15912
15913static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
15914 PyObject *resultobj;
15915 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
15916 PyObject * obj0 = 0 ;
15917 char *kwnames[] = {
15918 (char *) "self", NULL
15919 };
15920
15921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
15922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15923 {
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 delete arg1;
15926
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 Py_INCREF(Py_None); resultobj = Py_None;
15931 return resultobj;
15932 fail:
15933 return NULL;
15934}
15935
15936
15937static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
15938 PyObject *resultobj;
15939 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
15940 wxString *result;
15941 PyObject * obj0 = 0 ;
15942 char *kwnames[] = {
15943 (char *) "self", NULL
15944 };
15945
15946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
15947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15948 {
15949 PyThreadState* __tstate = wxPyBeginAllowThreads();
15950 {
15951 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
15952 result = (wxString *) &_result_ref;
15953 }
15954
15955 wxPyEndAllowThreads(__tstate);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
0f774bef
RD
15958 {
15959#if wxUSE_UNICODE
15960 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15961#else
15962 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15963#endif
15964 }
d14a1e28
RD
15965 return resultobj;
15966 fail:
15967 return NULL;
15968}
15969
15970
15971static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
15972 PyObject *obj;
15973 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15974 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
15975 Py_INCREF(obj);
15976 return Py_BuildValue((char *)"");
15977}
15978static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
15979 PyObject *resultobj;
15980 wxString const &arg1_defvalue = wxPyEmptyString ;
15981 wxString *arg1 = (wxString *) &arg1_defvalue ;
15982 wxString const &arg2_defvalue = wxPyEmptyString ;
15983 wxString *arg2 = (wxString *) &arg2_defvalue ;
15984 wxString const &arg3_defvalue = wxPyEmptyString ;
15985 wxString *arg3 = (wxString *) &arg3_defvalue ;
15986 wxString const &arg4_defvalue = wxPyEmptyString ;
15987 wxString *arg4 = (wxString *) &arg4_defvalue ;
15988 long arg5 = (long) 0 ;
15989 wxConfig *result;
423f194a
RD
15990 bool temp1 = False ;
15991 bool temp2 = False ;
15992 bool temp3 = False ;
15993 bool temp4 = False ;
d14a1e28
RD
15994 PyObject * obj0 = 0 ;
15995 PyObject * obj1 = 0 ;
15996 PyObject * obj2 = 0 ;
15997 PyObject * obj3 = 0 ;
8edf1c75 15998 PyObject * obj4 = 0 ;
d14a1e28
RD
15999 char *kwnames[] = {
16000 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16001 };
16002
8edf1c75 16003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28
RD
16004 if (obj0) {
16005 {
16006 arg1 = wxString_in_helper(obj0);
16007 if (arg1 == NULL) SWIG_fail;
423f194a 16008 temp1 = True;
d14a1e28
RD
16009 }
16010 }
16011 if (obj1) {
16012 {
16013 arg2 = wxString_in_helper(obj1);
16014 if (arg2 == NULL) SWIG_fail;
423f194a 16015 temp2 = True;
d14a1e28
RD
16016 }
16017 }
16018 if (obj2) {
16019 {
16020 arg3 = wxString_in_helper(obj2);
16021 if (arg3 == NULL) SWIG_fail;
423f194a 16022 temp3 = True;
d14a1e28
RD
16023 }
16024 }
16025 if (obj3) {
16026 {
16027 arg4 = wxString_in_helper(obj3);
16028 if (arg4 == NULL) SWIG_fail;
423f194a 16029 temp4 = True;
d14a1e28
RD
16030 }
16031 }
8edf1c75
RD
16032 if (obj4) {
16033 {
16034 arg5 = (long) SWIG_PyObj_AsLong(obj4);
16035 if (PyErr_Occurred()) SWIG_fail;
16036 }
16037 }
d14a1e28
RD
16038 {
16039 PyThreadState* __tstate = wxPyBeginAllowThreads();
16040 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16041
16042 wxPyEndAllowThreads(__tstate);
16043 if (PyErr_Occurred()) SWIG_fail;
16044 }
16045 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1);
16046 {
16047 if (temp1)
16048 delete arg1;
16049 }
16050 {
16051 if (temp2)
16052 delete arg2;
16053 }
16054 {
16055 if (temp3)
16056 delete arg3;
16057 }
16058 {
16059 if (temp4)
16060 delete arg4;
16061 }
16062 return resultobj;
16063 fail:
16064 {
16065 if (temp1)
16066 delete arg1;
16067 }
16068 {
16069 if (temp2)
16070 delete arg2;
16071 }
16072 {
16073 if (temp3)
16074 delete arg3;
16075 }
16076 {
16077 if (temp4)
16078 delete arg4;
16079 }
16080 return NULL;
16081}
16082
16083
16084static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16085 PyObject *resultobj;
16086 wxConfig *arg1 = (wxConfig *) 0 ;
16087 PyObject * obj0 = 0 ;
16088 char *kwnames[] = {
16089 (char *) "self", NULL
16090 };
16091
16092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16094 {
16095 PyThreadState* __tstate = wxPyBeginAllowThreads();
16096 delete arg1;
16097
16098 wxPyEndAllowThreads(__tstate);
16099 if (PyErr_Occurred()) SWIG_fail;
16100 }
16101 Py_INCREF(Py_None); resultobj = Py_None;
16102 return resultobj;
16103 fail:
16104 return NULL;
16105}
16106
16107
16108static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16109 PyObject *obj;
16110 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16111 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16112 Py_INCREF(obj);
16113 return Py_BuildValue((char *)"");
16114}
16115static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16116 PyObject *resultobj;
16117 wxString const &arg1_defvalue = wxPyEmptyString ;
16118 wxString *arg1 = (wxString *) &arg1_defvalue ;
16119 wxString const &arg2_defvalue = wxPyEmptyString ;
16120 wxString *arg2 = (wxString *) &arg2_defvalue ;
16121 wxString const &arg3_defvalue = wxPyEmptyString ;
16122 wxString *arg3 = (wxString *) &arg3_defvalue ;
16123 wxString const &arg4_defvalue = wxPyEmptyString ;
16124 wxString *arg4 = (wxString *) &arg4_defvalue ;
16125 long arg5 = (long) 0 ;
16126 wxFileConfig *result;
423f194a
RD
16127 bool temp1 = False ;
16128 bool temp2 = False ;
16129 bool temp3 = False ;
16130 bool temp4 = False ;
d14a1e28
RD
16131 PyObject * obj0 = 0 ;
16132 PyObject * obj1 = 0 ;
16133 PyObject * obj2 = 0 ;
16134 PyObject * obj3 = 0 ;
8edf1c75 16135 PyObject * obj4 = 0 ;
d14a1e28
RD
16136 char *kwnames[] = {
16137 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16138 };
16139
8edf1c75 16140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28
RD
16141 if (obj0) {
16142 {
16143 arg1 = wxString_in_helper(obj0);
16144 if (arg1 == NULL) SWIG_fail;
423f194a 16145 temp1 = True;
d14a1e28
RD
16146 }
16147 }
16148 if (obj1) {
16149 {
16150 arg2 = wxString_in_helper(obj1);
16151 if (arg2 == NULL) SWIG_fail;
423f194a 16152 temp2 = True;
d14a1e28
RD
16153 }
16154 }
16155 if (obj2) {
16156 {
16157 arg3 = wxString_in_helper(obj2);
16158 if (arg3 == NULL) SWIG_fail;
423f194a 16159 temp3 = True;
d14a1e28
RD
16160 }
16161 }
16162 if (obj3) {
16163 {
16164 arg4 = wxString_in_helper(obj3);
16165 if (arg4 == NULL) SWIG_fail;
423f194a 16166 temp4 = True;
d14a1e28
RD
16167 }
16168 }
8edf1c75
RD
16169 if (obj4) {
16170 {
16171 arg5 = (long) SWIG_PyObj_AsLong(obj4);
16172 if (PyErr_Occurred()) SWIG_fail;
16173 }
16174 }
d14a1e28
RD
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16178
16179 wxPyEndAllowThreads(__tstate);
16180 if (PyErr_Occurred()) SWIG_fail;
16181 }
16182 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1);
16183 {
16184 if (temp1)
16185 delete arg1;
16186 }
16187 {
16188 if (temp2)
16189 delete arg2;
16190 }
16191 {
16192 if (temp3)
16193 delete arg3;
16194 }
16195 {
16196 if (temp4)
16197 delete arg4;
16198 }
16199 return resultobj;
16200 fail:
16201 {
16202 if (temp1)
16203 delete arg1;
16204 }
16205 {
16206 if (temp2)
16207 delete arg2;
16208 }
16209 {
16210 if (temp3)
16211 delete arg3;
16212 }
16213 {
16214 if (temp4)
16215 delete arg4;
16216 }
16217 return NULL;
16218}
16219
16220
16221static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16222 PyObject *resultobj;
16223 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16224 PyObject * obj0 = 0 ;
16225 char *kwnames[] = {
16226 (char *) "self", NULL
16227 };
16228
16229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16231 {
16232 PyThreadState* __tstate = wxPyBeginAllowThreads();
16233 delete arg1;
16234
16235 wxPyEndAllowThreads(__tstate);
16236 if (PyErr_Occurred()) SWIG_fail;
16237 }
16238 Py_INCREF(Py_None); resultobj = Py_None;
16239 return resultobj;
16240 fail:
16241 return NULL;
16242}
16243
16244
16245static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16246 PyObject *obj;
16247 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16248 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16249 Py_INCREF(obj);
16250 return Py_BuildValue((char *)"");
16251}
16252static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16253 PyObject *resultobj;
16254 wxString *arg1 = 0 ;
16255 wxString result;
423f194a 16256 bool temp1 = False ;
d14a1e28
RD
16257 PyObject * obj0 = 0 ;
16258 char *kwnames[] = {
16259 (char *) "sz", NULL
16260 };
16261
16262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16263 {
16264 arg1 = wxString_in_helper(obj0);
16265 if (arg1 == NULL) SWIG_fail;
423f194a 16266 temp1 = True;
d14a1e28
RD
16267 }
16268 {
16269 PyThreadState* __tstate = wxPyBeginAllowThreads();
16270 result = wxExpandEnvVars((wxString const &)*arg1);
16271
16272 wxPyEndAllowThreads(__tstate);
16273 if (PyErr_Occurred()) SWIG_fail;
16274 }
16275 {
16276#if wxUSE_UNICODE
16277 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16278#else
16279 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16280#endif
16281 }
16282 {
16283 if (temp1)
16284 delete arg1;
16285 }
16286 return resultobj;
16287 fail:
16288 {
16289 if (temp1)
16290 delete arg1;
16291 }
16292 return NULL;
16293}
16294
16295
8edf1c75 16296static int _wrap_DateFormatStr_set(PyObject *) {
cbd72d4f
RD
16297 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16298 return 1;
16299}
16300
16301
16302static PyObject *_wrap_DateFormatStr_get() {
16303 PyObject *pyobj;
16304
16305 {
16306#if wxUSE_UNICODE
16307 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16308#else
16309 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16310#endif
16311 }
16312 return pyobj;
16313}
16314
16315
8edf1c75 16316static int _wrap_TimeSpanFormatStr_set(PyObject *) {
cbd72d4f
RD
16317 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16318 return 1;
16319}
16320
16321
16322static PyObject *_wrap_TimeSpanFormatStr_get() {
16323 PyObject *pyobj;
16324
16325 {
16326#if wxUSE_UNICODE
16327 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16328#else
16329 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16330#endif
16331 }
16332 return pyobj;
16333}
16334
16335
d14a1e28
RD
16336static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16337 PyObject *resultobj;
16338 int arg1 ;
8edf1c75 16339 PyObject * obj0 = 0 ;
d14a1e28
RD
16340 char *kwnames[] = {
16341 (char *) "country", NULL
16342 };
16343
8edf1c75
RD
16344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16345 {
16346 arg1 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj0);
16347 if (PyErr_Occurred()) SWIG_fail;
16348 }
d14a1e28
RD
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16352
16353 wxPyEndAllowThreads(__tstate);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
16356 Py_INCREF(Py_None); resultobj = Py_None;
16357 return resultobj;
16358 fail:
16359 return NULL;
16360}
16361
16362
16363static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16364 PyObject *resultobj;
16365 int result;
16366 char *kwnames[] = {
16367 NULL
16368 };
16369
16370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16371 {
16372 PyThreadState* __tstate = wxPyBeginAllowThreads();
16373 result = (int)wxDateTime::GetCountry();
16374
16375 wxPyEndAllowThreads(__tstate);
16376 if (PyErr_Occurred()) SWIG_fail;
16377 }
8edf1c75 16378 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
16379 return resultobj;
16380 fail:
16381 return NULL;
16382}
16383
16384
16385static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16386 PyObject *resultobj;
16387 int arg1 = (int) wxDateTime::Country_Default ;
16388 bool result;
8edf1c75 16389 PyObject * obj0 = 0 ;
d14a1e28
RD
16390 char *kwnames[] = {
16391 (char *) "country", NULL
16392 };
16393
8edf1c75
RD
16394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16395 if (obj0) {
16396 {
16397 arg1 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj0);
16398 if (PyErr_Occurred()) SWIG_fail;
16399 }
16400 }
d14a1e28
RD
16401 {
16402 PyThreadState* __tstate = wxPyBeginAllowThreads();
16403 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16404
16405 wxPyEndAllowThreads(__tstate);
16406 if (PyErr_Occurred()) SWIG_fail;
16407 }
02a34c4c 16408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16409 return resultobj;
16410 fail:
16411 return NULL;
16412}
16413
16414
16415static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16416 PyObject *resultobj;
16417 int arg1 = (int) wxDateTime::Gregorian ;
16418 int result;
8edf1c75 16419 PyObject * obj0 = 0 ;
d14a1e28
RD
16420 char *kwnames[] = {
16421 (char *) "cal", NULL
16422 };
16423
8edf1c75
RD
16424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16425 if (obj0) {
16426 {
16427 arg1 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj0);
16428 if (PyErr_Occurred()) SWIG_fail;
16429 }
16430 }
d14a1e28
RD
16431 {
16432 PyThreadState* __tstate = wxPyBeginAllowThreads();
16433 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16434
16435 wxPyEndAllowThreads(__tstate);
16436 if (PyErr_Occurred()) SWIG_fail;
16437 }
8edf1c75 16438 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
16439 return resultobj;
16440 fail:
16441 return NULL;
16442}
16443
16444
16445static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16446 PyObject *resultobj;
16447 int arg1 ;
16448 int result;
8edf1c75 16449 PyObject * obj0 = 0 ;
d14a1e28
RD
16450 char *kwnames[] = {
16451 (char *) "year", NULL
16452 };
16453
8edf1c75
RD
16454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16455 {
16456 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16457 if (PyErr_Occurred()) SWIG_fail;
16458 }
d14a1e28
RD
16459 {
16460 PyThreadState* __tstate = wxPyBeginAllowThreads();
16461 result = (int)wxDateTime::ConvertYearToBC(arg1);
16462
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
8edf1c75 16466 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
16467 return resultobj;
16468 fail:
16469 return NULL;
16470}
16471
16472
16473static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj;
16475 int arg1 = (int) wxDateTime::Gregorian ;
16476 int result;
8edf1c75 16477 PyObject * obj0 = 0 ;
d14a1e28
RD
16478 char *kwnames[] = {
16479 (char *) "cal", NULL
16480 };
16481
8edf1c75
RD
16482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16483 if (obj0) {
16484 {
16485 arg1 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj0);
16486 if (PyErr_Occurred()) SWIG_fail;
16487 }
16488 }
d14a1e28
RD
16489 {
16490 PyThreadState* __tstate = wxPyBeginAllowThreads();
16491 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16492
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
8edf1c75 16496 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
16497 return resultobj;
16498 fail:
16499 return NULL;
16500}
16501
16502
16503static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16504 PyObject *resultobj;
16505 int arg1 = (int) wxDateTime::Inv_Year ;
16506 int arg2 = (int) wxDateTime::Gregorian ;
16507 bool result;
8edf1c75
RD
16508 PyObject * obj0 = 0 ;
16509 PyObject * obj1 = 0 ;
d14a1e28
RD
16510 char *kwnames[] = {
16511 (char *) "year",(char *) "cal", NULL
16512 };
16513
8edf1c75
RD
16514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16515 if (obj0) {
16516 {
16517 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16518 if (PyErr_Occurred()) SWIG_fail;
16519 }
16520 }
16521 if (obj1) {
16522 {
16523 arg2 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj1);
16524 if (PyErr_Occurred()) SWIG_fail;
16525 }
16526 }
d14a1e28
RD
16527 {
16528 PyThreadState* __tstate = wxPyBeginAllowThreads();
16529 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16530
16531 wxPyEndAllowThreads(__tstate);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
02a34c4c 16534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16535 return resultobj;
16536 fail:
16537 return NULL;
16538}
16539
16540
16541static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16542 PyObject *resultobj;
16543 int arg1 = (int) wxDateTime::Inv_Year ;
16544 int result;
8edf1c75 16545 PyObject * obj0 = 0 ;
d14a1e28
RD
16546 char *kwnames[] = {
16547 (char *) "year", NULL
16548 };
16549
8edf1c75
RD
16550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16551 if (obj0) {
16552 {
16553 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16554 if (PyErr_Occurred()) SWIG_fail;
16555 }
16556 }
d14a1e28
RD
16557 {
16558 PyThreadState* __tstate = wxPyBeginAllowThreads();
16559 result = (int)wxDateTime::GetCentury(arg1);
16560
16561 wxPyEndAllowThreads(__tstate);
16562 if (PyErr_Occurred()) SWIG_fail;
16563 }
8edf1c75 16564 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
16565 return resultobj;
16566 fail:
16567 return NULL;
16568}
16569
16570
16571static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16572 PyObject *resultobj;
16573 int arg1 ;
16574 int arg2 = (int) wxDateTime::Gregorian ;
44127b65 16575 int result;
8edf1c75
RD
16576 PyObject * obj0 = 0 ;
16577 PyObject * obj1 = 0 ;
d14a1e28
RD
16578 char *kwnames[] = {
16579 (char *) "year",(char *) "cal", NULL
16580 };
16581
8edf1c75
RD
16582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16583 {
16584 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 if (obj1) {
16588 {
16589 arg2 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj1);
16590 if (PyErr_Occurred()) SWIG_fail;
16591 }
16592 }
d14a1e28
RD
16593 {
16594 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 16595 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
d14a1e28
RD
16596
16597 wxPyEndAllowThreads(__tstate);
16598 if (PyErr_Occurred()) SWIG_fail;
16599 }
8edf1c75 16600 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
16601 return resultobj;
16602 fail:
16603 return NULL;
16604}
16605
16606
16607static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16608 PyObject *resultobj;
16609 int arg1 ;
16610 int arg2 = (int) wxDateTime::Inv_Year ;
16611 int arg3 = (int) wxDateTime::Gregorian ;
44127b65 16612 int result;
8edf1c75
RD
16613 PyObject * obj0 = 0 ;
16614 PyObject * obj1 = 0 ;
16615 PyObject * obj2 = 0 ;
d14a1e28
RD
16616 char *kwnames[] = {
16617 (char *) "month",(char *) "year",(char *) "cal", NULL
16618 };
16619
8edf1c75
RD
16620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16621 {
16622 arg1 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj0);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 if (obj1) {
16626 {
16627 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16628 if (PyErr_Occurred()) SWIG_fail;
16629 }
16630 }
16631 if (obj2) {
16632 {
16633 arg3 = (wxDateTime::Calendar) SWIG_PyObj_AsInt(obj2);
16634 if (PyErr_Occurred()) SWIG_fail;
16635 }
16636 }
d14a1e28
RD
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 16639 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
d14a1e28
RD
16640
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
8edf1c75 16644 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
16645 return resultobj;
16646 fail:
16647 return NULL;
16648}
16649
16650
16651static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16652 PyObject *resultobj;
16653 int arg1 ;
16654 int arg2 = (int) wxDateTime::Name_Full ;
16655 wxString result;
8edf1c75
RD
16656 PyObject * obj0 = 0 ;
16657 PyObject * obj1 = 0 ;
d14a1e28
RD
16658 char *kwnames[] = {
16659 (char *) "month",(char *) "flags", NULL
16660 };
16661
8edf1c75
RD
16662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16663 {
16664 arg1 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj0);
16665 if (PyErr_Occurred()) SWIG_fail;
16666 }
16667 if (obj1) {
16668 {
16669 arg2 = (wxDateTime::NameFlags) SWIG_PyObj_AsInt(obj1);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 }
16672 }
d14a1e28
RD
16673 {
16674 PyThreadState* __tstate = wxPyBeginAllowThreads();
16675 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16676
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 {
16681#if wxUSE_UNICODE
16682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16683#else
16684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16685#endif
16686 }
16687 return resultobj;
16688 fail:
16689 return NULL;
16690}
16691
16692
16693static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
16694 PyObject *resultobj;
16695 int arg1 ;
16696 int arg2 = (int) wxDateTime::Name_Full ;
16697 wxString result;
8edf1c75
RD
16698 PyObject * obj0 = 0 ;
16699 PyObject * obj1 = 0 ;
d14a1e28
RD
16700 char *kwnames[] = {
16701 (char *) "weekday",(char *) "flags", NULL
16702 };
16703
8edf1c75
RD
16704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
16705 {
16706 arg1 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj0);
16707 if (PyErr_Occurred()) SWIG_fail;
16708 }
16709 if (obj1) {
16710 {
16711 arg2 = (wxDateTime::NameFlags) SWIG_PyObj_AsInt(obj1);
16712 if (PyErr_Occurred()) SWIG_fail;
16713 }
16714 }
d14a1e28
RD
16715 {
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
16718
16719 wxPyEndAllowThreads(__tstate);
16720 if (PyErr_Occurred()) SWIG_fail;
16721 }
16722 {
16723#if wxUSE_UNICODE
16724 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16725#else
16726 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16727#endif
16728 }
16729 return resultobj;
16730 fail:
16731 return NULL;
16732}
16733
16734
16735static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
16736 PyObject *resultobj;
16737 wxString *arg1 = (wxString *) 0 ;
16738 wxString *arg2 = (wxString *) 0 ;
dae0faa6
RD
16739 bool temp1 = False ;
16740 bool temp2 = False ;
d14a1e28
RD
16741 PyObject * obj0 = 0 ;
16742 PyObject * obj1 = 0 ;
16743 char *kwnames[] = {
16744 (char *) "OUTPUT",(char *) "OUTPUT", NULL
16745 };
16746
16747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
dae0faa6
RD
16748 {
16749 arg1 = wxString_in_helper(obj0);
16750 if (arg1 == NULL) SWIG_fail;
16751 temp1 = True;
16752 }
16753 {
16754 arg2 = wxString_in_helper(obj1);
16755 if (arg2 == NULL) SWIG_fail;
16756 temp2 = True;
16757 }
d14a1e28
RD
16758 {
16759 PyThreadState* __tstate = wxPyBeginAllowThreads();
16760 wxDateTime::GetAmPmStrings(arg1,arg2);
16761
16762 wxPyEndAllowThreads(__tstate);
16763 if (PyErr_Occurred()) SWIG_fail;
16764 }
16765 Py_INCREF(Py_None); resultobj = Py_None;
dae0faa6
RD
16766 {
16767 if (temp1)
16768 delete arg1;
16769 }
16770 {
16771 if (temp2)
16772 delete arg2;
16773 }
d14a1e28
RD
16774 return resultobj;
16775 fail:
dae0faa6
RD
16776 {
16777 if (temp1)
16778 delete arg1;
16779 }
16780 {
16781 if (temp2)
16782 delete arg2;
16783 }
d14a1e28
RD
16784 return NULL;
16785}
16786
16787
16788static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
16789 PyObject *resultobj;
16790 int arg1 = (int) wxDateTime::Inv_Year ;
16791 int arg2 = (int) wxDateTime::Country_Default ;
16792 bool result;
8edf1c75
RD
16793 PyObject * obj0 = 0 ;
16794 PyObject * obj1 = 0 ;
d14a1e28
RD
16795 char *kwnames[] = {
16796 (char *) "year",(char *) "country", NULL
16797 };
16798
8edf1c75
RD
16799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
16800 if (obj0) {
16801 {
16802 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16803 if (PyErr_Occurred()) SWIG_fail;
16804 }
16805 }
16806 if (obj1) {
16807 {
16808 arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1);
16809 if (PyErr_Occurred()) SWIG_fail;
16810 }
16811 }
d14a1e28
RD
16812 {
16813 PyThreadState* __tstate = wxPyBeginAllowThreads();
16814 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
16815
16816 wxPyEndAllowThreads(__tstate);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
02a34c4c 16819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16820 return resultobj;
16821 fail:
16822 return NULL;
16823}
16824
16825
16826static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16827 PyObject *resultobj;
16828 int arg1 = (int) wxDateTime::Inv_Year ;
16829 int arg2 = (int) wxDateTime::Country_Default ;
16830 wxDateTime result;
8edf1c75
RD
16831 PyObject * obj0 = 0 ;
16832 PyObject * obj1 = 0 ;
d14a1e28
RD
16833 char *kwnames[] = {
16834 (char *) "year",(char *) "country", NULL
16835 };
16836
8edf1c75
RD
16837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
16838 if (obj0) {
16839 {
16840 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 }
16844 if (obj1) {
16845 {
16846 arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1);
16847 if (PyErr_Occurred()) SWIG_fail;
16848 }
16849 }
d14a1e28
RD
16850 {
16851 PyThreadState* __tstate = wxPyBeginAllowThreads();
16852 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
16853
16854 wxPyEndAllowThreads(__tstate);
16855 if (PyErr_Occurred()) SWIG_fail;
16856 }
16857 {
16858 wxDateTime * resultptr;
16859 resultptr = new wxDateTime((wxDateTime &) result);
16860 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16861 }
16862 return resultobj;
16863 fail:
16864 return NULL;
16865}
16866
16867
16868static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16869 PyObject *resultobj;
16870 int arg1 = (int) wxDateTime::Inv_Year ;
16871 int arg2 = (int) wxDateTime::Country_Default ;
16872 wxDateTime result;
8edf1c75
RD
16873 PyObject * obj0 = 0 ;
16874 PyObject * obj1 = 0 ;
d14a1e28
RD
16875 char *kwnames[] = {
16876 (char *) "year",(char *) "country", NULL
16877 };
16878
8edf1c75
RD
16879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
16880 if (obj0) {
16881 {
16882 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
16885 }
16886 if (obj1) {
16887 {
16888 arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 }
d14a1e28
RD
16892 {
16893 PyThreadState* __tstate = wxPyBeginAllowThreads();
16894 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
16895
16896 wxPyEndAllowThreads(__tstate);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 {
16900 wxDateTime * resultptr;
16901 resultptr = new wxDateTime((wxDateTime &) result);
16902 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16903 }
16904 return resultobj;
16905 fail:
16906 return NULL;
16907}
16908
16909
16910static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
16911 PyObject *resultobj;
16912 wxDateTime result;
16913 char *kwnames[] = {
16914 NULL
16915 };
16916
16917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
16918 {
16919 PyThreadState* __tstate = wxPyBeginAllowThreads();
16920 result = wxDateTime::Now();
16921
16922 wxPyEndAllowThreads(__tstate);
16923 if (PyErr_Occurred()) SWIG_fail;
16924 }
16925 {
16926 wxDateTime * resultptr;
16927 resultptr = new wxDateTime((wxDateTime &) result);
16928 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16929 }
16930 return resultobj;
16931 fail:
16932 return NULL;
16933}
16934
16935
16936static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
16937 PyObject *resultobj;
16938 wxDateTime result;
16939 char *kwnames[] = {
16940 NULL
16941 };
16942
16943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
16944 {
16945 PyThreadState* __tstate = wxPyBeginAllowThreads();
16946 result = wxDateTime::UNow();
16947
16948 wxPyEndAllowThreads(__tstate);
16949 if (PyErr_Occurred()) SWIG_fail;
16950 }
16951 {
16952 wxDateTime * resultptr;
16953 resultptr = new wxDateTime((wxDateTime &) result);
16954 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16955 }
16956 return resultobj;
16957 fail:
16958 return NULL;
16959}
16960
16961
16962static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
16963 PyObject *resultobj;
16964 wxDateTime result;
16965 char *kwnames[] = {
16966 NULL
16967 };
16968
16969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
16970 {
16971 PyThreadState* __tstate = wxPyBeginAllowThreads();
16972 result = wxDateTime::Today();
16973
16974 wxPyEndAllowThreads(__tstate);
16975 if (PyErr_Occurred()) SWIG_fail;
16976 }
16977 {
16978 wxDateTime * resultptr;
16979 resultptr = new wxDateTime((wxDateTime &) result);
16980 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16981 }
16982 return resultobj;
16983 fail:
16984 return NULL;
16985}
16986
16987
16988static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
16989 PyObject *resultobj;
16990 wxDateTime *result;
16991 char *kwnames[] = {
16992 NULL
16993 };
16994
16995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
16996 {
16997 PyThreadState* __tstate = wxPyBeginAllowThreads();
16998 result = (wxDateTime *)new wxDateTime();
16999
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
17004 return resultobj;
17005 fail:
17006 return NULL;
17007}
17008
17009
17010static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17011 PyObject *resultobj;
17012 time_t arg1 ;
17013 wxDateTime *result;
17014 PyObject * obj0 = 0 ;
17015 char *kwnames[] = {
17016 (char *) "timet", NULL
17017 };
17018
17019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
2dbef272 17020 {
8edf1c75 17021 arg1 = (time_t) SWIG_PyObj_AsUnsignedInt(obj0);
2dbef272
RD
17022 if (PyErr_Occurred()) SWIG_fail;
17023 }
d14a1e28
RD
17024 {
17025 PyThreadState* __tstate = wxPyBeginAllowThreads();
17026 result = (wxDateTime *)new wxDateTime(arg1);
17027
17028 wxPyEndAllowThreads(__tstate);
17029 if (PyErr_Occurred()) SWIG_fail;
17030 }
17031 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
17032 return resultobj;
17033 fail:
17034 return NULL;
17035}
17036
17037
17038static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17039 PyObject *resultobj;
17040 double arg1 ;
17041 wxDateTime *result;
8edf1c75 17042 PyObject * obj0 = 0 ;
d14a1e28
RD
17043 char *kwnames[] = {
17044 (char *) "jdn", NULL
17045 };
17046
8edf1c75
RD
17047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17048 {
17049 arg1 = (double) SWIG_PyObj_AsDouble(obj0);
17050 if (PyErr_Occurred()) SWIG_fail;
17051 }
d14a1e28
RD
17052 {
17053 PyThreadState* __tstate = wxPyBeginAllowThreads();
17054 result = (wxDateTime *)new wxDateTime(arg1);
17055
17056 wxPyEndAllowThreads(__tstate);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 }
17059 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
17060 return resultobj;
17061 fail:
17062 return NULL;
17063}
17064
17065
17066static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17067 PyObject *resultobj;
44127b65
RD
17068 int arg1 ;
17069 int arg2 = (int) 0 ;
17070 int arg3 = (int) 0 ;
17071 int arg4 = (int) 0 ;
d14a1e28 17072 wxDateTime *result;
8edf1c75
RD
17073 PyObject * obj0 = 0 ;
17074 PyObject * obj1 = 0 ;
17075 PyObject * obj2 = 0 ;
17076 PyObject * obj3 = 0 ;
d14a1e28
RD
17077 char *kwnames[] = {
17078 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17079 };
17080
8edf1c75
RD
17081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17082 {
17083 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17084 if (PyErr_Occurred()) SWIG_fail;
17085 }
17086 if (obj1) {
17087 {
17088 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17089 if (PyErr_Occurred()) SWIG_fail;
17090 }
17091 }
17092 if (obj2) {
17093 {
17094 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17095 if (PyErr_Occurred()) SWIG_fail;
17096 }
17097 }
17098 if (obj3) {
17099 {
17100 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17101 if (PyErr_Occurred()) SWIG_fail;
17102 }
17103 }
d14a1e28
RD
17104 {
17105 PyThreadState* __tstate = wxPyBeginAllowThreads();
17106 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17107
17108 wxPyEndAllowThreads(__tstate);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 }
17111 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
17112 return resultobj;
17113 fail:
17114 return NULL;
17115}
17116
17117
17118static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17119 PyObject *resultobj;
44127b65 17120 int arg1 ;
d14a1e28
RD
17121 int arg2 = (int) wxDateTime::Inv_Month ;
17122 int arg3 = (int) wxDateTime::Inv_Year ;
44127b65
RD
17123 int arg4 = (int) 0 ;
17124 int arg5 = (int) 0 ;
17125 int arg6 = (int) 0 ;
17126 int arg7 = (int) 0 ;
d14a1e28 17127 wxDateTime *result;
8edf1c75
RD
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 PyObject * obj2 = 0 ;
17131 PyObject * obj3 = 0 ;
17132 PyObject * obj4 = 0 ;
17133 PyObject * obj5 = 0 ;
17134 PyObject * obj6 = 0 ;
d14a1e28
RD
17135 char *kwnames[] = {
17136 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17137 };
17138
8edf1c75
RD
17139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17140 {
17141 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 if (obj1) {
17145 {
17146 arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1);
17147 if (PyErr_Occurred()) SWIG_fail;
17148 }
17149 }
17150 if (obj2) {
17151 {
17152 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17153 if (PyErr_Occurred()) SWIG_fail;
17154 }
17155 }
17156 if (obj3) {
17157 {
17158 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 }
17161 }
17162 if (obj4) {
17163 {
17164 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17165 if (PyErr_Occurred()) SWIG_fail;
17166 }
17167 }
17168 if (obj5) {
17169 {
17170 arg6 = (int) SWIG_PyObj_AsInt(obj5);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 }
17174 if (obj6) {
17175 {
17176 arg7 = (int) SWIG_PyObj_AsInt(obj6);
17177 if (PyErr_Occurred()) SWIG_fail;
17178 }
17179 }
d14a1e28
RD
17180 {
17181 PyThreadState* __tstate = wxPyBeginAllowThreads();
17182 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17183
17184 wxPyEndAllowThreads(__tstate);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
17188 return resultobj;
17189 fail:
17190 return NULL;
17191}
17192
17193
17194static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17195 PyObject *resultobj;
17196 wxDateTime *arg1 = (wxDateTime *) 0 ;
17197 PyObject * obj0 = 0 ;
17198 char *kwnames[] = {
17199 (char *) "self", NULL
17200 };
17201
17202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17204 {
17205 PyThreadState* __tstate = wxPyBeginAllowThreads();
17206 delete arg1;
17207
17208 wxPyEndAllowThreads(__tstate);
17209 if (PyErr_Occurred()) SWIG_fail;
17210 }
17211 Py_INCREF(Py_None); resultobj = Py_None;
17212 return resultobj;
17213 fail:
17214 return NULL;
17215}
17216
17217
17218static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17219 PyObject *resultobj;
17220 wxDateTime *arg1 = (wxDateTime *) 0 ;
17221 wxDateTime *result;
17222 PyObject * obj0 = 0 ;
17223 char *kwnames[] = {
17224 (char *) "self", NULL
17225 };
17226
17227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17229 {
17230 PyThreadState* __tstate = wxPyBeginAllowThreads();
17231 {
17232 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17233 result = (wxDateTime *) &_result_ref;
17234 }
17235
17236 wxPyEndAllowThreads(__tstate);
17237 if (PyErr_Occurred()) SWIG_fail;
17238 }
17239 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17240 return resultobj;
17241 fail:
17242 return NULL;
17243}
17244
17245
17246static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17247 PyObject *resultobj;
17248 wxDateTime *arg1 = (wxDateTime *) 0 ;
17249 time_t arg2 ;
17250 wxDateTime *result;
17251 PyObject * obj0 = 0 ;
17252 PyObject * obj1 = 0 ;
17253 char *kwnames[] = {
17254 (char *) "self",(char *) "timet", NULL
17255 };
17256
17257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2dbef272 17259 {
8edf1c75 17260 arg2 = (time_t) SWIG_PyObj_AsUnsignedInt(obj1);
2dbef272
RD
17261 if (PyErr_Occurred()) SWIG_fail;
17262 }
d14a1e28
RD
17263 {
17264 PyThreadState* __tstate = wxPyBeginAllowThreads();
17265 {
17266 wxDateTime &_result_ref = (arg1)->Set(arg2);
17267 result = (wxDateTime *) &_result_ref;
17268 }
17269
17270 wxPyEndAllowThreads(__tstate);
17271 if (PyErr_Occurred()) SWIG_fail;
17272 }
17273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17274 return resultobj;
17275 fail:
17276 return NULL;
17277}
17278
17279
17280static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17281 PyObject *resultobj;
17282 wxDateTime *arg1 = (wxDateTime *) 0 ;
17283 double arg2 ;
17284 wxDateTime *result;
17285 PyObject * obj0 = 0 ;
8edf1c75 17286 PyObject * obj1 = 0 ;
d14a1e28
RD
17287 char *kwnames[] = {
17288 (char *) "self",(char *) "jdn", NULL
17289 };
17290
8edf1c75 17291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17293 {
17294 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
17295 if (PyErr_Occurred()) SWIG_fail;
17296 }
d14a1e28
RD
17297 {
17298 PyThreadState* __tstate = wxPyBeginAllowThreads();
17299 {
17300 wxDateTime &_result_ref = (arg1)->Set(arg2);
17301 result = (wxDateTime *) &_result_ref;
17302 }
17303
17304 wxPyEndAllowThreads(__tstate);
17305 if (PyErr_Occurred()) SWIG_fail;
17306 }
17307 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17308 return resultobj;
17309 fail:
17310 return NULL;
17311}
17312
17313
17314static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17315 PyObject *resultobj;
17316 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65
RD
17317 int arg2 ;
17318 int arg3 = (int) 0 ;
17319 int arg4 = (int) 0 ;
17320 int arg5 = (int) 0 ;
d14a1e28
RD
17321 wxDateTime *result;
17322 PyObject * obj0 = 0 ;
8edf1c75
RD
17323 PyObject * obj1 = 0 ;
17324 PyObject * obj2 = 0 ;
17325 PyObject * obj3 = 0 ;
17326 PyObject * obj4 = 0 ;
d14a1e28
RD
17327 char *kwnames[] = {
17328 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17329 };
17330
8edf1c75 17331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 17332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17333 {
17334 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 }
17337 if (obj2) {
17338 {
17339 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17340 if (PyErr_Occurred()) SWIG_fail;
17341 }
17342 }
17343 if (obj3) {
17344 {
17345 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 }
17349 if (obj4) {
17350 {
17351 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 }
d14a1e28
RD
17355 {
17356 PyThreadState* __tstate = wxPyBeginAllowThreads();
17357 {
17358 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17359 result = (wxDateTime *) &_result_ref;
17360 }
17361
17362 wxPyEndAllowThreads(__tstate);
17363 if (PyErr_Occurred()) SWIG_fail;
17364 }
17365 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17366 return resultobj;
17367 fail:
17368 return NULL;
17369}
17370
17371
17372static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17373 PyObject *resultobj;
17374 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 17375 int arg2 ;
d14a1e28
RD
17376 int arg3 = (int) wxDateTime::Inv_Month ;
17377 int arg4 = (int) wxDateTime::Inv_Year ;
44127b65
RD
17378 int arg5 = (int) 0 ;
17379 int arg6 = (int) 0 ;
17380 int arg7 = (int) 0 ;
17381 int arg8 = (int) 0 ;
d14a1e28
RD
17382 wxDateTime *result;
17383 PyObject * obj0 = 0 ;
8edf1c75
RD
17384 PyObject * obj1 = 0 ;
17385 PyObject * obj2 = 0 ;
17386 PyObject * obj3 = 0 ;
17387 PyObject * obj4 = 0 ;
17388 PyObject * obj5 = 0 ;
17389 PyObject * obj6 = 0 ;
17390 PyObject * obj7 = 0 ;
d14a1e28
RD
17391 char *kwnames[] = {
17392 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17393 };
17394
8edf1c75 17395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d14a1e28 17396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17397 {
17398 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 if (obj2) {
17402 {
17403 arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 }
17407 if (obj3) {
17408 {
17409 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17410 if (PyErr_Occurred()) SWIG_fail;
17411 }
17412 }
17413 if (obj4) {
17414 {
17415 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 }
17419 if (obj5) {
17420 {
17421 arg6 = (int) SWIG_PyObj_AsInt(obj5);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 }
17425 if (obj6) {
17426 {
17427 arg7 = (int) SWIG_PyObj_AsInt(obj6);
17428 if (PyErr_Occurred()) SWIG_fail;
17429 }
17430 }
17431 if (obj7) {
17432 {
17433 arg8 = (int) SWIG_PyObj_AsInt(obj7);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 }
17436 }
d14a1e28
RD
17437 {
17438 PyThreadState* __tstate = wxPyBeginAllowThreads();
17439 {
17440 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17441 result = (wxDateTime *) &_result_ref;
17442 }
17443
17444 wxPyEndAllowThreads(__tstate);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17448 return resultobj;
17449 fail:
17450 return NULL;
17451}
17452
17453
17454static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17455 PyObject *resultobj;
17456 wxDateTime *arg1 = (wxDateTime *) 0 ;
17457 wxDateTime *result;
17458 PyObject * obj0 = 0 ;
17459 char *kwnames[] = {
17460 (char *) "self", NULL
17461 };
17462
17463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17465 {
17466 PyThreadState* __tstate = wxPyBeginAllowThreads();
17467 {
17468 wxDateTime &_result_ref = (arg1)->ResetTime();
17469 result = (wxDateTime *) &_result_ref;
17470 }
17471
17472 wxPyEndAllowThreads(__tstate);
17473 if (PyErr_Occurred()) SWIG_fail;
17474 }
17475 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17476 return resultobj;
17477 fail:
17478 return NULL;
17479}
17480
17481
17482static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17483 PyObject *resultobj;
17484 wxDateTime *arg1 = (wxDateTime *) 0 ;
17485 int arg2 ;
17486 wxDateTime *result;
17487 PyObject * obj0 = 0 ;
8edf1c75 17488 PyObject * obj1 = 0 ;
d14a1e28
RD
17489 char *kwnames[] = {
17490 (char *) "self",(char *) "year", NULL
17491 };
17492
8edf1c75 17493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17495 {
17496 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17497 if (PyErr_Occurred()) SWIG_fail;
17498 }
d14a1e28
RD
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 {
17502 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17503 result = (wxDateTime *) &_result_ref;
17504 }
17505
17506 wxPyEndAllowThreads(__tstate);
17507 if (PyErr_Occurred()) SWIG_fail;
17508 }
17509 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17510 return resultobj;
17511 fail:
17512 return NULL;
17513}
17514
17515
17516static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17517 PyObject *resultobj;
17518 wxDateTime *arg1 = (wxDateTime *) 0 ;
17519 int arg2 ;
17520 wxDateTime *result;
17521 PyObject * obj0 = 0 ;
8edf1c75 17522 PyObject * obj1 = 0 ;
d14a1e28
RD
17523 char *kwnames[] = {
17524 (char *) "self",(char *) "month", NULL
17525 };
17526
8edf1c75 17527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17529 {
17530 arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
d14a1e28
RD
17533 {
17534 PyThreadState* __tstate = wxPyBeginAllowThreads();
17535 {
17536 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17537 result = (wxDateTime *) &_result_ref;
17538 }
17539
17540 wxPyEndAllowThreads(__tstate);
17541 if (PyErr_Occurred()) SWIG_fail;
17542 }
17543 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17544 return resultobj;
17545 fail:
17546 return NULL;
17547}
17548
17549
17550static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17551 PyObject *resultobj;
17552 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 17553 int arg2 ;
d14a1e28
RD
17554 wxDateTime *result;
17555 PyObject * obj0 = 0 ;
8edf1c75 17556 PyObject * obj1 = 0 ;
d14a1e28
RD
17557 char *kwnames[] = {
17558 (char *) "self",(char *) "day", NULL
17559 };
17560
8edf1c75 17561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17563 {
17564 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17565 if (PyErr_Occurred()) SWIG_fail;
17566 }
d14a1e28
RD
17567 {
17568 PyThreadState* __tstate = wxPyBeginAllowThreads();
17569 {
17570 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17571 result = (wxDateTime *) &_result_ref;
17572 }
17573
17574 wxPyEndAllowThreads(__tstate);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 }
17577 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17578 return resultobj;
17579 fail:
17580 return NULL;
17581}
17582
17583
17584static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17585 PyObject *resultobj;
17586 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 17587 int arg2 ;
d14a1e28
RD
17588 wxDateTime *result;
17589 PyObject * obj0 = 0 ;
8edf1c75 17590 PyObject * obj1 = 0 ;
d14a1e28
RD
17591 char *kwnames[] = {
17592 (char *) "self",(char *) "hour", NULL
17593 };
17594
8edf1c75 17595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17597 {
17598 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17599 if (PyErr_Occurred()) SWIG_fail;
17600 }
d14a1e28
RD
17601 {
17602 PyThreadState* __tstate = wxPyBeginAllowThreads();
17603 {
17604 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17605 result = (wxDateTime *) &_result_ref;
17606 }
17607
17608 wxPyEndAllowThreads(__tstate);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 }
17611 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17612 return resultobj;
17613 fail:
17614 return NULL;
17615}
17616
17617
17618static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17619 PyObject *resultobj;
17620 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 17621 int arg2 ;
d14a1e28
RD
17622 wxDateTime *result;
17623 PyObject * obj0 = 0 ;
8edf1c75 17624 PyObject * obj1 = 0 ;
d14a1e28
RD
17625 char *kwnames[] = {
17626 (char *) "self",(char *) "minute", NULL
17627 };
17628
8edf1c75 17629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17631 {
17632 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17633 if (PyErr_Occurred()) SWIG_fail;
17634 }
d14a1e28
RD
17635 {
17636 PyThreadState* __tstate = wxPyBeginAllowThreads();
17637 {
17638 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17639 result = (wxDateTime *) &_result_ref;
17640 }
17641
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17646 return resultobj;
17647 fail:
17648 return NULL;
17649}
17650
17651
17652static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj;
17654 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 17655 int arg2 ;
d14a1e28
RD
17656 wxDateTime *result;
17657 PyObject * obj0 = 0 ;
8edf1c75 17658 PyObject * obj1 = 0 ;
d14a1e28
RD
17659 char *kwnames[] = {
17660 (char *) "self",(char *) "second", NULL
17661 };
17662
8edf1c75 17663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17665 {
17666 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
d14a1e28
RD
17669 {
17670 PyThreadState* __tstate = wxPyBeginAllowThreads();
17671 {
17672 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17673 result = (wxDateTime *) &_result_ref;
17674 }
17675
17676 wxPyEndAllowThreads(__tstate);
17677 if (PyErr_Occurred()) SWIG_fail;
17678 }
17679 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17680 return resultobj;
17681 fail:
17682 return NULL;
17683}
17684
17685
17686static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17687 PyObject *resultobj;
17688 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 17689 int arg2 ;
d14a1e28
RD
17690 wxDateTime *result;
17691 PyObject * obj0 = 0 ;
8edf1c75 17692 PyObject * obj1 = 0 ;
d14a1e28
RD
17693 char *kwnames[] = {
17694 (char *) "self",(char *) "millisecond", NULL
17695 };
17696
8edf1c75 17697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17699 {
17700 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17701 if (PyErr_Occurred()) SWIG_fail;
17702 }
d14a1e28
RD
17703 {
17704 PyThreadState* __tstate = wxPyBeginAllowThreads();
17705 {
17706 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17707 result = (wxDateTime *) &_result_ref;
17708 }
17709
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17714 return resultobj;
17715 fail:
17716 return NULL;
17717}
17718
17719
17720static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17721 PyObject *resultobj;
17722 wxDateTime *arg1 = (wxDateTime *) 0 ;
17723 int arg2 ;
17724 int arg3 = (int) wxDateTime::Monday_First ;
17725 wxDateTime *result;
17726 PyObject * obj0 = 0 ;
8edf1c75
RD
17727 PyObject * obj1 = 0 ;
17728 PyObject * obj2 = 0 ;
d14a1e28
RD
17729 char *kwnames[] = {
17730 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17731 };
17732
8edf1c75 17733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 17734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17735 {
17736 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 if (obj2) {
17740 {
17741 arg3 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj2);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 }
d14a1e28
RD
17745 {
17746 PyThreadState* __tstate = wxPyBeginAllowThreads();
17747 {
17748 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17749 result = (wxDateTime *) &_result_ref;
17750 }
17751
17752 wxPyEndAllowThreads(__tstate);
17753 if (PyErr_Occurred()) SWIG_fail;
17754 }
17755 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17756 return resultobj;
17757 fail:
17758 return NULL;
17759}
17760
17761
17762static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17763 PyObject *resultobj;
17764 wxDateTime *arg1 = (wxDateTime *) 0 ;
17765 int arg2 ;
17766 int arg3 = (int) wxDateTime::Monday_First ;
17767 wxDateTime result;
17768 PyObject * obj0 = 0 ;
8edf1c75
RD
17769 PyObject * obj1 = 0 ;
17770 PyObject * obj2 = 0 ;
d14a1e28
RD
17771 char *kwnames[] = {
17772 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17773 };
17774
8edf1c75 17775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 17776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17777 {
17778 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
17779 if (PyErr_Occurred()) SWIG_fail;
17780 }
17781 if (obj2) {
17782 {
17783 arg3 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj2);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 }
d14a1e28
RD
17787 {
17788 PyThreadState* __tstate = wxPyBeginAllowThreads();
17789 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17790
17791 wxPyEndAllowThreads(__tstate);
17792 if (PyErr_Occurred()) SWIG_fail;
17793 }
17794 {
17795 wxDateTime * resultptr;
17796 resultptr = new wxDateTime((wxDateTime &) result);
17797 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
17798 }
17799 return resultobj;
17800 fail:
17801 return NULL;
17802}
17803
17804
17805static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17806 PyObject *resultobj;
17807 wxDateTime *arg1 = (wxDateTime *) 0 ;
17808 int arg2 ;
17809 wxDateTime *result;
17810 PyObject * obj0 = 0 ;
8edf1c75 17811 PyObject * obj1 = 0 ;
d14a1e28
RD
17812 char *kwnames[] = {
17813 (char *) "self",(char *) "weekday", NULL
17814 };
17815
8edf1c75 17816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17818 {
17819 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
d14a1e28
RD
17822 {
17823 PyThreadState* __tstate = wxPyBeginAllowThreads();
17824 {
17825 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
17826 result = (wxDateTime *) &_result_ref;
17827 }
17828
17829 wxPyEndAllowThreads(__tstate);
17830 if (PyErr_Occurred()) SWIG_fail;
17831 }
17832 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17833 return resultobj;
17834 fail:
17835 return NULL;
17836}
17837
17838
17839static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17840 PyObject *resultobj;
17841 wxDateTime *arg1 = (wxDateTime *) 0 ;
17842 int arg2 ;
17843 wxDateTime result;
17844 PyObject * obj0 = 0 ;
8edf1c75 17845 PyObject * obj1 = 0 ;
d14a1e28
RD
17846 char *kwnames[] = {
17847 (char *) "self",(char *) "weekday", NULL
17848 };
17849
8edf1c75 17850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17852 {
17853 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
17854 if (PyErr_Occurred()) SWIG_fail;
17855 }
d14a1e28
RD
17856 {
17857 PyThreadState* __tstate = wxPyBeginAllowThreads();
17858 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
17859
17860 wxPyEndAllowThreads(__tstate);
17861 if (PyErr_Occurred()) SWIG_fail;
17862 }
17863 {
17864 wxDateTime * resultptr;
17865 resultptr = new wxDateTime((wxDateTime &) result);
17866 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
17867 }
17868 return resultobj;
17869 fail:
17870 return NULL;
17871}
17872
17873
17874static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17875 PyObject *resultobj;
17876 wxDateTime *arg1 = (wxDateTime *) 0 ;
17877 int arg2 ;
17878 wxDateTime *result;
17879 PyObject * obj0 = 0 ;
8edf1c75 17880 PyObject * obj1 = 0 ;
d14a1e28
RD
17881 char *kwnames[] = {
17882 (char *) "self",(char *) "weekday", NULL
17883 };
17884
8edf1c75 17885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17887 {
17888 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
17889 if (PyErr_Occurred()) SWIG_fail;
17890 }
d14a1e28
RD
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 {
17894 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
17895 result = (wxDateTime *) &_result_ref;
17896 }
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17902 return resultobj;
17903 fail:
17904 return NULL;
17905}
17906
17907
17908static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxDateTime *arg1 = (wxDateTime *) 0 ;
17911 int arg2 ;
17912 wxDateTime result;
17913 PyObject * obj0 = 0 ;
8edf1c75 17914 PyObject * obj1 = 0 ;
d14a1e28
RD
17915 char *kwnames[] = {
17916 (char *) "self",(char *) "weekday", NULL
17917 };
17918
8edf1c75 17919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 17920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17921 {
17922 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
17923 if (PyErr_Occurred()) SWIG_fail;
17924 }
d14a1e28
RD
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
17928
17929 wxPyEndAllowThreads(__tstate);
17930 if (PyErr_Occurred()) SWIG_fail;
17931 }
17932 {
17933 wxDateTime * resultptr;
17934 resultptr = new wxDateTime((wxDateTime &) result);
17935 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
17936 }
17937 return resultobj;
17938 fail:
17939 return NULL;
17940}
17941
17942
17943static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17944 PyObject *resultobj;
17945 wxDateTime *arg1 = (wxDateTime *) 0 ;
17946 int arg2 ;
17947 int arg3 = (int) 1 ;
17948 int arg4 = (int) wxDateTime::Inv_Month ;
17949 int arg5 = (int) wxDateTime::Inv_Year ;
17950 bool result;
17951 PyObject * obj0 = 0 ;
8edf1c75
RD
17952 PyObject * obj1 = 0 ;
17953 PyObject * obj2 = 0 ;
17954 PyObject * obj3 = 0 ;
17955 PyObject * obj4 = 0 ;
d14a1e28
RD
17956 char *kwnames[] = {
17957 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
17958 };
17959
8edf1c75 17960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 17961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
17962 {
17963 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
17964 if (PyErr_Occurred()) SWIG_fail;
17965 }
17966 if (obj2) {
17967 {
17968 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17969 if (PyErr_Occurred()) SWIG_fail;
17970 }
17971 }
17972 if (obj3) {
17973 {
17974 arg4 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj3);
17975 if (PyErr_Occurred()) SWIG_fail;
17976 }
17977 }
17978 if (obj4) {
17979 {
17980 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 }
d14a1e28
RD
17984 {
17985 PyThreadState* __tstate = wxPyBeginAllowThreads();
17986 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
17987
17988 wxPyEndAllowThreads(__tstate);
17989 if (PyErr_Occurred()) SWIG_fail;
17990 }
02a34c4c 17991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17992 return resultobj;
17993 fail:
17994 return NULL;
17995}
17996
17997
17998static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17999 PyObject *resultobj;
18000 wxDateTime *arg1 = (wxDateTime *) 0 ;
18001 int arg2 ;
18002 int arg3 = (int) wxDateTime::Inv_Month ;
18003 int arg4 = (int) wxDateTime::Inv_Year ;
18004 bool result;
18005 PyObject * obj0 = 0 ;
8edf1c75
RD
18006 PyObject * obj1 = 0 ;
18007 PyObject * obj2 = 0 ;
18008 PyObject * obj3 = 0 ;
d14a1e28
RD
18009 char *kwnames[] = {
18010 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18011 };
18012
8edf1c75 18013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 18014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18015 {
18016 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 if (obj2) {
18020 {
18021 arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 }
18025 if (obj3) {
18026 {
18027 arg4 = (int) SWIG_PyObj_AsInt(obj3);
18028 if (PyErr_Occurred()) SWIG_fail;
18029 }
18030 }
d14a1e28
RD
18031 {
18032 PyThreadState* __tstate = wxPyBeginAllowThreads();
18033 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18034
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
02a34c4c 18038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18039 return resultobj;
18040 fail:
18041 return NULL;
18042}
18043
18044
18045static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj;
18047 wxDateTime *arg1 = (wxDateTime *) 0 ;
18048 int arg2 ;
18049 int arg3 = (int) wxDateTime::Inv_Month ;
18050 int arg4 = (int) wxDateTime::Inv_Year ;
18051 wxDateTime result;
18052 PyObject * obj0 = 0 ;
8edf1c75
RD
18053 PyObject * obj1 = 0 ;
18054 PyObject * obj2 = 0 ;
18055 PyObject * obj3 = 0 ;
d14a1e28
RD
18056 char *kwnames[] = {
18057 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18058 };
18059
8edf1c75 18060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 18061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18062 {
18063 arg2 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj1);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 if (obj2) {
18067 {
18068 arg3 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj2);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 }
18072 if (obj3) {
18073 {
18074 arg4 = (int) SWIG_PyObj_AsInt(obj3);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 }
d14a1e28
RD
18078 {
18079 PyThreadState* __tstate = wxPyBeginAllowThreads();
18080 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18081
18082 wxPyEndAllowThreads(__tstate);
18083 if (PyErr_Occurred()) SWIG_fail;
18084 }
18085 {
18086 wxDateTime * resultptr;
18087 resultptr = new wxDateTime((wxDateTime &) result);
18088 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18089 }
18090 return resultobj;
18091 fail:
18092 return NULL;
18093}
18094
18095
18096static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18097 PyObject *resultobj;
18098 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 18099 int arg2 ;
d14a1e28
RD
18100 int arg3 = (int) wxDateTime::Mon ;
18101 int arg4 = (int) wxDateTime::Monday_First ;
18102 bool result;
18103 PyObject * obj0 = 0 ;
8edf1c75
RD
18104 PyObject * obj1 = 0 ;
18105 PyObject * obj2 = 0 ;
18106 PyObject * obj3 = 0 ;
d14a1e28
RD
18107 char *kwnames[] = {
18108 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18109 };
18110
8edf1c75 18111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 18112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18113 {
18114 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18115 if (PyErr_Occurred()) SWIG_fail;
18116 }
18117 if (obj2) {
18118 {
18119 arg3 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj2);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 }
18123 if (obj3) {
18124 {
18125 arg4 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj3);
18126 if (PyErr_Occurred()) SWIG_fail;
18127 }
18128 }
d14a1e28
RD
18129 {
18130 PyThreadState* __tstate = wxPyBeginAllowThreads();
18131 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18132
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
02a34c4c 18136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18137 return resultobj;
18138 fail:
18139 return NULL;
18140}
18141
18142
18143static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18144 PyObject *resultobj;
18145 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 18146 int arg2 ;
d14a1e28
RD
18147 int arg3 = (int) wxDateTime::Mon ;
18148 int arg4 = (int) wxDateTime::Monday_First ;
18149 wxDateTime result;
18150 PyObject * obj0 = 0 ;
8edf1c75
RD
18151 PyObject * obj1 = 0 ;
18152 PyObject * obj2 = 0 ;
18153 PyObject * obj3 = 0 ;
d14a1e28
RD
18154 char *kwnames[] = {
18155 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18156 };
18157
8edf1c75 18158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 18159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18160 {
18161 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 if (obj2) {
18165 {
18166 arg3 = (wxDateTime::WeekDay) SWIG_PyObj_AsInt(obj2);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 }
18170 if (obj3) {
18171 {
18172 arg4 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj3);
18173 if (PyErr_Occurred()) SWIG_fail;
18174 }
18175 }
d14a1e28
RD
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18179
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 {
18184 wxDateTime * resultptr;
18185 resultptr = new wxDateTime((wxDateTime &) result);
18186 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18187 }
18188 return resultobj;
18189 fail:
18190 return NULL;
18191}
18192
18193
18194static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18195 PyObject *resultobj;
18196 wxDateTime *arg1 = (wxDateTime *) 0 ;
18197 int arg2 = (int) wxDateTime::Inv_Month ;
18198 int arg3 = (int) wxDateTime::Inv_Year ;
18199 wxDateTime *result;
18200 PyObject * obj0 = 0 ;
8edf1c75
RD
18201 PyObject * obj1 = 0 ;
18202 PyObject * obj2 = 0 ;
d14a1e28
RD
18203 char *kwnames[] = {
18204 (char *) "self",(char *) "month",(char *) "year", NULL
18205 };
18206
8edf1c75 18207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 18208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18209 if (obj1) {
18210 {
18211 arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 }
18215 if (obj2) {
18216 {
18217 arg3 = (int) SWIG_PyObj_AsInt(obj2);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 }
d14a1e28
RD
18221 {
18222 PyThreadState* __tstate = wxPyBeginAllowThreads();
18223 {
18224 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18225 result = (wxDateTime *) &_result_ref;
18226 }
18227
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
18232 return resultobj;
18233 fail:
18234 return NULL;
18235}
18236
18237
18238static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18239 PyObject *resultobj;
18240 wxDateTime *arg1 = (wxDateTime *) 0 ;
18241 int arg2 = (int) wxDateTime::Inv_Month ;
18242 int arg3 = (int) wxDateTime::Inv_Year ;
18243 wxDateTime result;
18244 PyObject * obj0 = 0 ;
8edf1c75
RD
18245 PyObject * obj1 = 0 ;
18246 PyObject * obj2 = 0 ;
d14a1e28
RD
18247 char *kwnames[] = {
18248 (char *) "self",(char *) "month",(char *) "year", NULL
18249 };
18250
8edf1c75 18251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 18252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18253 if (obj1) {
18254 {
18255 arg2 = (wxDateTime::Month) SWIG_PyObj_AsInt(obj1);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 }
18258 }
18259 if (obj2) {
18260 {
18261 arg3 = (int) SWIG_PyObj_AsInt(obj2);
18262 if (PyErr_Occurred()) SWIG_fail;
18263 }
18264 }
d14a1e28
RD
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18268
18269 wxPyEndAllowThreads(__tstate);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 }
18272 {
18273 wxDateTime * resultptr;
18274 resultptr = new wxDateTime((wxDateTime &) result);
18275 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18276 }
18277 return resultobj;
18278 fail:
18279 return NULL;
18280}
18281
18282
18283static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18284 PyObject *resultobj;
18285 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 18286 int arg2 ;
d14a1e28
RD
18287 wxDateTime *result;
18288 PyObject * obj0 = 0 ;
8edf1c75 18289 PyObject * obj1 = 0 ;
d14a1e28
RD
18290 char *kwnames[] = {
18291 (char *) "self",(char *) "yday", NULL
18292 };
18293
8edf1c75 18294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 18295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18296 {
18297 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18298 if (PyErr_Occurred()) SWIG_fail;
18299 }
d14a1e28
RD
18300 {
18301 PyThreadState* __tstate = wxPyBeginAllowThreads();
18302 {
18303 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18304 result = (wxDateTime *) &_result_ref;
18305 }
18306
18307 wxPyEndAllowThreads(__tstate);
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
18311 return resultobj;
18312 fail:
18313 return NULL;
18314}
18315
18316
18317static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18318 PyObject *resultobj;
18319 wxDateTime *arg1 = (wxDateTime *) 0 ;
44127b65 18320 int arg2 ;
d14a1e28
RD
18321 wxDateTime result;
18322 PyObject * obj0 = 0 ;
8edf1c75 18323 PyObject * obj1 = 0 ;
d14a1e28
RD
18324 char *kwnames[] = {
18325 (char *) "self",(char *) "yday", NULL
18326 };
18327
8edf1c75 18328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 18329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18330 {
18331 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
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);
18344 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
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;
18362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18363 {
18364 PyThreadState* __tstate = wxPyBeginAllowThreads();
18365 result = (double)(arg1)->GetJulianDayNumber();
18366
18367 wxPyEndAllowThreads(__tstate);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
8edf1c75 18370 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
18371 return resultobj;
18372 fail:
18373 return NULL;
18374}
18375
18376
18377static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18378 PyObject *resultobj;
18379 wxDateTime *arg1 = (wxDateTime *) 0 ;
18380 double result;
18381 PyObject * obj0 = 0 ;
18382 char *kwnames[] = {
18383 (char *) "self", NULL
18384 };
18385
18386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18388 {
18389 PyThreadState* __tstate = wxPyBeginAllowThreads();
18390 result = (double)(arg1)->GetJDN();
18391
18392 wxPyEndAllowThreads(__tstate);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 }
8edf1c75 18395 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
18396 return resultobj;
18397 fail:
18398 return NULL;
18399}
18400
18401
18402static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18403 PyObject *resultobj;
18404 wxDateTime *arg1 = (wxDateTime *) 0 ;
18405 double result;
18406 PyObject * obj0 = 0 ;
18407 char *kwnames[] = {
18408 (char *) "self", NULL
18409 };
18410
18411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18413 {
18414 PyThreadState* __tstate = wxPyBeginAllowThreads();
18415 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18416
18417 wxPyEndAllowThreads(__tstate);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
8edf1c75 18420 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
18421 return resultobj;
18422 fail:
18423 return NULL;
18424}
18425
18426
18427static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18428 PyObject *resultobj;
18429 wxDateTime *arg1 = (wxDateTime *) 0 ;
18430 double result;
18431 PyObject * obj0 = 0 ;
18432 char *kwnames[] = {
18433 (char *) "self", NULL
18434 };
18435
18436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18438 {
18439 PyThreadState* __tstate = wxPyBeginAllowThreads();
18440 result = (double)(arg1)->GetMJD();
18441
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
8edf1c75 18445 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
18446 return resultobj;
18447 fail:
18448 return NULL;
18449}
18450
18451
18452static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj;
18454 wxDateTime *arg1 = (wxDateTime *) 0 ;
18455 double result;
18456 PyObject * obj0 = 0 ;
18457 char *kwnames[] = {
18458 (char *) "self", NULL
18459 };
18460
18461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18463 {
18464 PyThreadState* __tstate = wxPyBeginAllowThreads();
18465 result = (double)(arg1)->GetRataDie();
18466
18467 wxPyEndAllowThreads(__tstate);
18468 if (PyErr_Occurred()) SWIG_fail;
18469 }
8edf1c75 18470 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
18471 return resultobj;
18472 fail:
18473 return NULL;
18474}
18475
18476
18477static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18478 PyObject *resultobj;
18479 wxDateTime *arg1 = (wxDateTime *) 0 ;
18480 wxDateTime::TimeZone *arg2 = 0 ;
423f194a 18481 bool arg3 = (bool) False ;
d14a1e28 18482 wxDateTime result;
44127b65 18483 bool temp2 = False ;
d14a1e28
RD
18484 PyObject * obj0 = 0 ;
18485 PyObject * obj1 = 0 ;
18486 PyObject * obj2 = 0 ;
18487 char *kwnames[] = {
18488 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18489 };
18490
18491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18493 {
18494 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18495 temp2 = True;
d14a1e28
RD
18496 }
18497 if (obj2) {
2dbef272 18498 {
8edf1c75 18499 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
18500 if (PyErr_Occurred()) SWIG_fail;
18501 }
d14a1e28
RD
18502 }
18503 {
18504 PyThreadState* __tstate = wxPyBeginAllowThreads();
18505 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18506
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 {
18511 wxDateTime * resultptr;
18512 resultptr = new wxDateTime((wxDateTime &) result);
18513 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18514 }
18515 {
44127b65 18516 if (temp2) delete arg2;
d14a1e28
RD
18517 }
18518 return resultobj;
18519 fail:
18520 {
44127b65 18521 if (temp2) delete arg2;
d14a1e28
RD
18522 }
18523 return NULL;
18524}
18525
18526
18527static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18528 PyObject *resultobj;
18529 wxDateTime *arg1 = (wxDateTime *) 0 ;
18530 wxDateTime::TimeZone *arg2 = 0 ;
423f194a 18531 bool arg3 = (bool) False ;
d14a1e28 18532 wxDateTime *result;
44127b65 18533 bool temp2 = False ;
d14a1e28
RD
18534 PyObject * obj0 = 0 ;
18535 PyObject * obj1 = 0 ;
18536 PyObject * obj2 = 0 ;
18537 char *kwnames[] = {
18538 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18539 };
18540
18541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18543 {
18544 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18545 temp2 = True;
d14a1e28
RD
18546 }
18547 if (obj2) {
2dbef272 18548 {
8edf1c75 18549 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
2dbef272
RD
18550 if (PyErr_Occurred()) SWIG_fail;
18551 }
d14a1e28
RD
18552 }
18553 {
18554 PyThreadState* __tstate = wxPyBeginAllowThreads();
18555 {
18556 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18557 result = (wxDateTime *) &_result_ref;
18558 }
18559
18560 wxPyEndAllowThreads(__tstate);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 }
18563 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
18564 {
44127b65 18565 if (temp2) delete arg2;
d14a1e28
RD
18566 }
18567 return resultobj;
18568 fail:
18569 {
44127b65 18570 if (temp2) delete arg2;
d14a1e28
RD
18571 }
18572 return NULL;
18573}
18574
18575
18576static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18577 PyObject *resultobj;
18578 wxDateTime *arg1 = (wxDateTime *) 0 ;
423f194a 18579 bool arg2 = (bool) False ;
d14a1e28
RD
18580 wxDateTime result;
18581 PyObject * obj0 = 0 ;
18582 PyObject * obj1 = 0 ;
18583 char *kwnames[] = {
18584 (char *) "self",(char *) "noDST", NULL
18585 };
18586
18587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18589 if (obj1) {
2dbef272 18590 {
8edf1c75 18591 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
18592 if (PyErr_Occurred()) SWIG_fail;
18593 }
d14a1e28
RD
18594 }
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 result = (arg1)->ToGMT(arg2);
18598
18599 wxPyEndAllowThreads(__tstate);
18600 if (PyErr_Occurred()) SWIG_fail;
18601 }
18602 {
18603 wxDateTime * resultptr;
18604 resultptr = new wxDateTime((wxDateTime &) result);
18605 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18606 }
18607 return resultobj;
18608 fail:
18609 return NULL;
18610}
18611
18612
18613static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj;
18615 wxDateTime *arg1 = (wxDateTime *) 0 ;
423f194a 18616 bool arg2 = (bool) False ;
d14a1e28
RD
18617 wxDateTime *result;
18618 PyObject * obj0 = 0 ;
18619 PyObject * obj1 = 0 ;
18620 char *kwnames[] = {
18621 (char *) "self",(char *) "noDST", NULL
18622 };
18623
18624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18626 if (obj1) {
2dbef272 18627 {
8edf1c75 18628 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
d14a1e28
RD
18631 }
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 {
18635 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18636 result = (wxDateTime *) &_result_ref;
18637 }
18638
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
18643 return resultobj;
18644 fail:
18645 return NULL;
18646}
18647
18648
18649static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj;
18651 wxDateTime *arg1 = (wxDateTime *) 0 ;
18652 int arg2 = (int) wxDateTime::Country_Default ;
18653 int result;
18654 PyObject * obj0 = 0 ;
8edf1c75 18655 PyObject * obj1 = 0 ;
d14a1e28
RD
18656 char *kwnames[] = {
18657 (char *) "self",(char *) "country", NULL
18658 };
18659
8edf1c75 18660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 18661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
18662 if (obj1) {
18663 {
18664 arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1);
18665 if (PyErr_Occurred()) SWIG_fail;
18666 }
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 }
8edf1c75 18675 resultobj = SWIG_PyObj_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;
18692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18693 {
18694 PyThreadState* __tstate = wxPyBeginAllowThreads();
18695 result = (bool)((wxDateTime const *)arg1)->IsValid();
18696
18697 wxPyEndAllowThreads(__tstate);
18698 if (PyErr_Occurred()) SWIG_fail;
18699 }
02a34c4c 18700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18701 return resultobj;
18702 fail:
18703 return NULL;
18704}
18705
18706
18707static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18708 PyObject *resultobj;
18709 wxDateTime *arg1 = (wxDateTime *) 0 ;
18710 time_t result;
18711 PyObject * obj0 = 0 ;
18712 char *kwnames[] = {
18713 (char *) "self", NULL
18714 };
18715
18716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18718 {
18719 PyThreadState* __tstate = wxPyBeginAllowThreads();
18720 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18721
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
8edf1c75 18725 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
d14a1e28
RD
18726 return resultobj;
18727 fail:
18728 return NULL;
18729}
18730
18731
18732static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj;
18734 wxDateTime *arg1 = (wxDateTime *) 0 ;
18735 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18736 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18737 int result;
44127b65 18738 bool temp2 = False ;
d14a1e28
RD
18739 PyObject * obj0 = 0 ;
18740 PyObject * obj1 = 0 ;
18741 char *kwnames[] = {
18742 (char *) "self",(char *) "tz", NULL
18743 };
18744
18745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18747 if (obj1) {
18748 {
18749 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18750 temp2 = True;
d14a1e28
RD
18751 }
18752 }
18753 {
18754 PyThreadState* __tstate = wxPyBeginAllowThreads();
18755 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18756
18757 wxPyEndAllowThreads(__tstate);
18758 if (PyErr_Occurred()) SWIG_fail;
18759 }
8edf1c75 18760 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 18761 {
44127b65 18762 if (temp2) delete arg2;
d14a1e28
RD
18763 }
18764 return resultobj;
18765 fail:
18766 {
44127b65 18767 if (temp2) delete arg2;
d14a1e28
RD
18768 }
18769 return NULL;
18770}
18771
18772
18773static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18774 PyObject *resultobj;
18775 wxDateTime *arg1 = (wxDateTime *) 0 ;
18776 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18777 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18778 int result;
44127b65 18779 bool temp2 = False ;
d14a1e28
RD
18780 PyObject * obj0 = 0 ;
18781 PyObject * obj1 = 0 ;
18782 char *kwnames[] = {
18783 (char *) "self",(char *) "tz", NULL
18784 };
18785
18786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18788 if (obj1) {
18789 {
18790 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18791 temp2 = True;
d14a1e28
RD
18792 }
18793 }
18794 {
18795 PyThreadState* __tstate = wxPyBeginAllowThreads();
18796 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
18797
18798 wxPyEndAllowThreads(__tstate);
18799 if (PyErr_Occurred()) SWIG_fail;
18800 }
8edf1c75 18801 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 18802 {
44127b65 18803 if (temp2) delete arg2;
d14a1e28
RD
18804 }
18805 return resultobj;
18806 fail:
18807 {
44127b65 18808 if (temp2) delete arg2;
d14a1e28
RD
18809 }
18810 return NULL;
18811}
18812
18813
18814static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18815 PyObject *resultobj;
18816 wxDateTime *arg1 = (wxDateTime *) 0 ;
18817 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18818 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
44127b65
RD
18819 int result;
18820 bool temp2 = False ;
d14a1e28
RD
18821 PyObject * obj0 = 0 ;
18822 PyObject * obj1 = 0 ;
18823 char *kwnames[] = {
18824 (char *) "self",(char *) "tz", NULL
18825 };
18826
18827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
18828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18829 if (obj1) {
18830 {
18831 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18832 temp2 = True;
d14a1e28
RD
18833 }
18834 }
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 18837 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
18838
18839 wxPyEndAllowThreads(__tstate);
18840 if (PyErr_Occurred()) SWIG_fail;
18841 }
8edf1c75 18842 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 18843 {
44127b65 18844 if (temp2) delete arg2;
d14a1e28
RD
18845 }
18846 return resultobj;
18847 fail:
18848 {
44127b65 18849 if (temp2) delete arg2;
d14a1e28
RD
18850 }
18851 return NULL;
18852}
18853
18854
18855static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18856 PyObject *resultobj;
18857 wxDateTime *arg1 = (wxDateTime *) 0 ;
18858 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18859 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18860 int result;
44127b65 18861 bool temp2 = False ;
d14a1e28
RD
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 char *kwnames[] = {
18865 (char *) "self",(char *) "tz", NULL
18866 };
18867
18868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
18869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18870 if (obj1) {
18871 {
18872 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18873 temp2 = True;
d14a1e28
RD
18874 }
18875 }
18876 {
18877 PyThreadState* __tstate = wxPyBeginAllowThreads();
18878 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
18879
18880 wxPyEndAllowThreads(__tstate);
18881 if (PyErr_Occurred()) SWIG_fail;
18882 }
8edf1c75 18883 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 18884 {
44127b65 18885 if (temp2) delete arg2;
d14a1e28
RD
18886 }
18887 return resultobj;
18888 fail:
18889 {
44127b65 18890 if (temp2) delete arg2;
d14a1e28
RD
18891 }
18892 return NULL;
18893}
18894
18895
18896static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18897 PyObject *resultobj;
18898 wxDateTime *arg1 = (wxDateTime *) 0 ;
18899 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18900 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
44127b65
RD
18901 int result;
18902 bool temp2 = False ;
d14a1e28
RD
18903 PyObject * obj0 = 0 ;
18904 PyObject * obj1 = 0 ;
18905 char *kwnames[] = {
18906 (char *) "self",(char *) "tz", NULL
18907 };
18908
18909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
18910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18911 if (obj1) {
18912 {
18913 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18914 temp2 = True;
d14a1e28
RD
18915 }
18916 }
18917 {
18918 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 18919 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
18920
18921 wxPyEndAllowThreads(__tstate);
18922 if (PyErr_Occurred()) SWIG_fail;
18923 }
8edf1c75 18924 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 18925 {
44127b65 18926 if (temp2) delete arg2;
d14a1e28
RD
18927 }
18928 return resultobj;
18929 fail:
18930 {
44127b65 18931 if (temp2) delete arg2;
d14a1e28
RD
18932 }
18933 return NULL;
18934}
18935
18936
18937static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18938 PyObject *resultobj;
18939 wxDateTime *arg1 = (wxDateTime *) 0 ;
18940 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18941 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
44127b65
RD
18942 int result;
18943 bool temp2 = False ;
d14a1e28
RD
18944 PyObject * obj0 = 0 ;
18945 PyObject * obj1 = 0 ;
18946 char *kwnames[] = {
18947 (char *) "self",(char *) "tz", NULL
18948 };
18949
18950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
18951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18952 if (obj1) {
18953 {
18954 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18955 temp2 = True;
d14a1e28
RD
18956 }
18957 }
18958 {
18959 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 18960 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
18961
18962 wxPyEndAllowThreads(__tstate);
18963 if (PyErr_Occurred()) SWIG_fail;
18964 }
8edf1c75 18965 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 18966 {
44127b65 18967 if (temp2) delete arg2;
d14a1e28
RD
18968 }
18969 return resultobj;
18970 fail:
18971 {
44127b65 18972 if (temp2) delete arg2;
d14a1e28
RD
18973 }
18974 return NULL;
18975}
18976
18977
18978static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18979 PyObject *resultobj;
18980 wxDateTime *arg1 = (wxDateTime *) 0 ;
18981 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18982 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
44127b65
RD
18983 int result;
18984 bool temp2 = False ;
d14a1e28
RD
18985 PyObject * obj0 = 0 ;
18986 PyObject * obj1 = 0 ;
18987 char *kwnames[] = {
18988 (char *) "self",(char *) "tz", NULL
18989 };
18990
18991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
18992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18993 if (obj1) {
18994 {
18995 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 18996 temp2 = True;
d14a1e28
RD
18997 }
18998 }
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 19001 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
19002
19003 wxPyEndAllowThreads(__tstate);
19004 if (PyErr_Occurred()) SWIG_fail;
19005 }
8edf1c75 19006 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 19007 {
44127b65 19008 if (temp2) delete arg2;
d14a1e28
RD
19009 }
19010 return resultobj;
19011 fail:
19012 {
44127b65 19013 if (temp2) delete arg2;
d14a1e28
RD
19014 }
19015 return NULL;
19016}
19017
19018
19019static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19020 PyObject *resultobj;
19021 wxDateTime *arg1 = (wxDateTime *) 0 ;
19022 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19023 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
44127b65
RD
19024 int result;
19025 bool temp2 = False ;
d14a1e28
RD
19026 PyObject * obj0 = 0 ;
19027 PyObject * obj1 = 0 ;
19028 char *kwnames[] = {
19029 (char *) "self",(char *) "tz", NULL
19030 };
19031
19032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19034 if (obj1) {
19035 {
19036 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 19037 temp2 = True;
d14a1e28
RD
19038 }
19039 }
19040 {
19041 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 19042 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
19043
19044 wxPyEndAllowThreads(__tstate);
19045 if (PyErr_Occurred()) SWIG_fail;
19046 }
8edf1c75 19047 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 19048 {
44127b65 19049 if (temp2) delete arg2;
d14a1e28
RD
19050 }
19051 return resultobj;
19052 fail:
19053 {
44127b65 19054 if (temp2) delete arg2;
d14a1e28
RD
19055 }
19056 return NULL;
19057}
19058
19059
19060static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19061 PyObject *resultobj;
19062 wxDateTime *arg1 = (wxDateTime *) 0 ;
19063 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19064 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
44127b65
RD
19065 int result;
19066 bool temp2 = False ;
d14a1e28
RD
19067 PyObject * obj0 = 0 ;
19068 PyObject * obj1 = 0 ;
19069 char *kwnames[] = {
19070 (char *) "self",(char *) "tz", NULL
19071 };
19072
19073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19075 if (obj1) {
19076 {
19077 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
44127b65 19078 temp2 = True;
d14a1e28
RD
19079 }
19080 }
19081 {
19082 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 19083 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
19084
19085 wxPyEndAllowThreads(__tstate);
19086 if (PyErr_Occurred()) SWIG_fail;
19087 }
8edf1c75 19088 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 19089 {
44127b65 19090 if (temp2) delete arg2;
d14a1e28
RD
19091 }
19092 return resultobj;
19093 fail:
19094 {
44127b65 19095 if (temp2) delete arg2;
d14a1e28
RD
19096 }
19097 return NULL;
19098}
19099
19100
19101static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19102 PyObject *resultobj;
19103 wxDateTime *arg1 = (wxDateTime *) 0 ;
19104 int arg2 = (int) wxDateTime::Monday_First ;
19105 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19106 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
44127b65
RD
19107 int result;
19108 bool temp3 = False ;
d14a1e28 19109 PyObject * obj0 = 0 ;
8edf1c75 19110 PyObject * obj1 = 0 ;
d14a1e28
RD
19111 PyObject * obj2 = 0 ;
19112 char *kwnames[] = {
19113 (char *) "self",(char *) "flags",(char *) "tz", NULL
19114 };
19115
8edf1c75 19116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 19117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
19118 if (obj1) {
19119 {
19120 arg2 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj1);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 }
19123 }
d14a1e28
RD
19124 if (obj2) {
19125 {
19126 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
44127b65 19127 temp3 = True;
d14a1e28
RD
19128 }
19129 }
19130 {
19131 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 19132 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
d14a1e28
RD
19133
19134 wxPyEndAllowThreads(__tstate);
19135 if (PyErr_Occurred()) SWIG_fail;
19136 }
8edf1c75 19137 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 19138 {
44127b65 19139 if (temp3) delete arg3;
d14a1e28
RD
19140 }
19141 return resultobj;
19142 fail:
19143 {
44127b65 19144 if (temp3) delete arg3;
d14a1e28
RD
19145 }
19146 return NULL;
19147}
19148
19149
19150static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19151 PyObject *resultobj;
19152 wxDateTime *arg1 = (wxDateTime *) 0 ;
19153 int arg2 = (int) wxDateTime::Monday_First ;
19154 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19155 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
44127b65
RD
19156 int result;
19157 bool temp3 = False ;
d14a1e28 19158 PyObject * obj0 = 0 ;
8edf1c75 19159 PyObject * obj1 = 0 ;
d14a1e28
RD
19160 PyObject * obj2 = 0 ;
19161 char *kwnames[] = {
19162 (char *) "self",(char *) "flags",(char *) "tz", NULL
19163 };
19164
8edf1c75 19165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 19166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
19167 if (obj1) {
19168 {
19169 arg2 = (wxDateTime::WeekFlags) SWIG_PyObj_AsInt(obj1);
19170 if (PyErr_Occurred()) SWIG_fail;
19171 }
19172 }
d14a1e28
RD
19173 if (obj2) {
19174 {
19175 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
44127b65 19176 temp3 = True;
d14a1e28
RD
19177 }
19178 }
19179 {
19180 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 19181 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
d14a1e28
RD
19182
19183 wxPyEndAllowThreads(__tstate);
19184 if (PyErr_Occurred()) SWIG_fail;
19185 }
8edf1c75 19186 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28 19187 {
44127b65 19188 if (temp3) delete arg3;
d14a1e28
RD
19189 }
19190 return resultobj;
19191 fail:
19192 {
44127b65 19193 if (temp3) delete arg3;
d14a1e28
RD
19194 }
19195 return NULL;
19196}
19197
19198
19199static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19200 PyObject *resultobj;
19201 wxDateTime *arg1 = (wxDateTime *) 0 ;
19202 int arg2 = (int) wxDateTime::Country_Default ;
19203 bool result;
19204 PyObject * obj0 = 0 ;
8edf1c75 19205 PyObject * obj1 = 0 ;
d14a1e28
RD
19206 char *kwnames[] = {
19207 (char *) "self",(char *) "country", NULL
19208 };
19209
8edf1c75 19210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 19211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
19212 if (obj1) {
19213 {
19214 arg2 = (wxDateTime::Country) SWIG_PyObj_AsInt(obj1);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 }
d14a1e28
RD
19218 {
19219 PyThreadState* __tstate = wxPyBeginAllowThreads();
19220 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19221
19222 wxPyEndAllowThreads(__tstate);
19223 if (PyErr_Occurred()) SWIG_fail;
19224 }
02a34c4c 19225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19226 return resultobj;
19227 fail:
19228 return NULL;
19229}
19230
19231
19232static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19233 PyObject *resultobj;
19234 wxDateTime *arg1 = (wxDateTime *) 0 ;
19235 wxDateTime *arg2 = 0 ;
19236 bool result;
19237 PyObject * obj0 = 0 ;
19238 PyObject * obj1 = 0 ;
19239 char *kwnames[] = {
19240 (char *) "self",(char *) "datetime", NULL
19241 };
19242
19243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19245 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19246 if (arg2 == NULL) {
19247 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19248 }
19249 {
19250 PyThreadState* __tstate = wxPyBeginAllowThreads();
19251 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19252
19253 wxPyEndAllowThreads(__tstate);
19254 if (PyErr_Occurred()) SWIG_fail;
19255 }
02a34c4c 19256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19257 return resultobj;
19258 fail:
19259 return NULL;
19260}
19261
19262
19263static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19264 PyObject *resultobj;
19265 wxDateTime *arg1 = (wxDateTime *) 0 ;
19266 wxDateTime *arg2 = 0 ;
19267 bool result;
19268 PyObject * obj0 = 0 ;
19269 PyObject * obj1 = 0 ;
19270 char *kwnames[] = {
19271 (char *) "self",(char *) "datetime", NULL
19272 };
19273
19274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19276 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19277 if (arg2 == NULL) {
19278 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19279 }
19280 {
19281 PyThreadState* __tstate = wxPyBeginAllowThreads();
19282 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19283
19284 wxPyEndAllowThreads(__tstate);
19285 if (PyErr_Occurred()) SWIG_fail;
19286 }
02a34c4c 19287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19288 return resultobj;
19289 fail:
19290 return NULL;
19291}
19292
19293
19294static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19295 PyObject *resultobj;
19296 wxDateTime *arg1 = (wxDateTime *) 0 ;
19297 wxDateTime *arg2 = 0 ;
19298 bool result;
19299 PyObject * obj0 = 0 ;
19300 PyObject * obj1 = 0 ;
19301 char *kwnames[] = {
19302 (char *) "self",(char *) "datetime", NULL
19303 };
19304
19305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19307 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19308 if (arg2 == NULL) {
19309 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19310 }
19311 {
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
19313 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19314
19315 wxPyEndAllowThreads(__tstate);
19316 if (PyErr_Occurred()) SWIG_fail;
19317 }
02a34c4c 19318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19319 return resultobj;
19320 fail:
19321 return NULL;
19322}
19323
19324
19325static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19326 PyObject *resultobj;
19327 wxDateTime *arg1 = (wxDateTime *) 0 ;
19328 wxDateTime *arg2 = 0 ;
19329 wxDateTime *arg3 = 0 ;
19330 bool result;
19331 PyObject * obj0 = 0 ;
19332 PyObject * obj1 = 0 ;
19333 PyObject * obj2 = 0 ;
19334 char *kwnames[] = {
19335 (char *) "self",(char *) "t1",(char *) "t2", NULL
19336 };
19337
19338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19340 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19341 if (arg2 == NULL) {
19342 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19343 }
19344 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19345 if (arg3 == NULL) {
19346 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19347 }
19348 {
19349 PyThreadState* __tstate = wxPyBeginAllowThreads();
19350 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19351
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
02a34c4c 19355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19356 return resultobj;
19357 fail:
19358 return NULL;
19359}
19360
19361
19362static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19363 PyObject *resultobj;
19364 wxDateTime *arg1 = (wxDateTime *) 0 ;
19365 wxDateTime *arg2 = 0 ;
19366 wxDateTime *arg3 = 0 ;
19367 bool result;
19368 PyObject * obj0 = 0 ;
19369 PyObject * obj1 = 0 ;
19370 PyObject * obj2 = 0 ;
19371 char *kwnames[] = {
19372 (char *) "self",(char *) "t1",(char *) "t2", NULL
19373 };
19374
19375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19377 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19378 if (arg2 == NULL) {
19379 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19380 }
19381 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19382 if (arg3 == NULL) {
19383 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19384 }
19385 {
19386 PyThreadState* __tstate = wxPyBeginAllowThreads();
19387 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19388
19389 wxPyEndAllowThreads(__tstate);
19390 if (PyErr_Occurred()) SWIG_fail;
19391 }
02a34c4c 19392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19393 return resultobj;
19394 fail:
19395 return NULL;
19396}
19397
19398
19399static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19400 PyObject *resultobj;
19401 wxDateTime *arg1 = (wxDateTime *) 0 ;
19402 wxDateTime *arg2 = 0 ;
19403 bool result;
19404 PyObject * obj0 = 0 ;
19405 PyObject * obj1 = 0 ;
19406 char *kwnames[] = {
19407 (char *) "self",(char *) "dt", NULL
19408 };
19409
19410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19412 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19413 if (arg2 == NULL) {
19414 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19415 }
19416 {
19417 PyThreadState* __tstate = wxPyBeginAllowThreads();
19418 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19419
19420 wxPyEndAllowThreads(__tstate);
19421 if (PyErr_Occurred()) SWIG_fail;
19422 }
02a34c4c 19423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19424 return resultobj;
19425 fail:
19426 return NULL;
19427}
19428
19429
19430static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19431 PyObject *resultobj;
19432 wxDateTime *arg1 = (wxDateTime *) 0 ;
19433 wxDateTime *arg2 = 0 ;
19434 bool result;
19435 PyObject * obj0 = 0 ;
19436 PyObject * obj1 = 0 ;
19437 char *kwnames[] = {
19438 (char *) "self",(char *) "dt", NULL
19439 };
19440
19441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19443 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19444 if (arg2 == NULL) {
19445 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19446 }
19447 {
19448 PyThreadState* __tstate = wxPyBeginAllowThreads();
19449 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19450
19451 wxPyEndAllowThreads(__tstate);
19452 if (PyErr_Occurred()) SWIG_fail;
19453 }
02a34c4c 19454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19455 return resultobj;
19456 fail:
19457 return NULL;
19458}
19459
19460
19461static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19462 PyObject *resultobj;
19463 wxDateTime *arg1 = (wxDateTime *) 0 ;
19464 wxDateTime *arg2 = 0 ;
19465 wxTimeSpan *arg3 = 0 ;
19466 bool result;
19467 PyObject * obj0 = 0 ;
19468 PyObject * obj1 = 0 ;
19469 PyObject * obj2 = 0 ;
19470 char *kwnames[] = {
19471 (char *) "self",(char *) "dt",(char *) "ts", NULL
19472 };
19473
19474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19476 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19477 if (arg2 == NULL) {
19478 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19479 }
19480 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19481 if (arg3 == NULL) {
19482 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19483 }
19484 {
19485 PyThreadState* __tstate = wxPyBeginAllowThreads();
19486 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19487
19488 wxPyEndAllowThreads(__tstate);
19489 if (PyErr_Occurred()) SWIG_fail;
19490 }
02a34c4c 19491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19492 return resultobj;
19493 fail:
19494 return NULL;
19495}
19496
19497
19498static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19499 PyObject *resultobj;
19500 wxDateTime *arg1 = (wxDateTime *) 0 ;
19501 wxTimeSpan *arg2 = 0 ;
19502 wxDateTime *result;
19503 PyObject * obj0 = 0 ;
19504 PyObject * obj1 = 0 ;
19505 char *kwnames[] = {
19506 (char *) "self",(char *) "diff", NULL
19507 };
19508
19509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19511 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19512 if (arg2 == NULL) {
19513 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19514 }
19515 {
19516 PyThreadState* __tstate = wxPyBeginAllowThreads();
19517 {
19518 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19519 result = (wxDateTime *) &_result_ref;
19520 }
19521
19522 wxPyEndAllowThreads(__tstate);
19523 if (PyErr_Occurred()) SWIG_fail;
19524 }
19525 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
19526 return resultobj;
19527 fail:
19528 return NULL;
19529}
19530
19531
19532static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19533 PyObject *resultobj;
19534 wxDateTime *arg1 = (wxDateTime *) 0 ;
19535 wxDateSpan *arg2 = 0 ;
19536 wxDateTime *result;
19537 PyObject * obj0 = 0 ;
19538 PyObject * obj1 = 0 ;
19539 char *kwnames[] = {
19540 (char *) "self",(char *) "diff", NULL
19541 };
19542
19543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19545 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19546 if (arg2 == NULL) {
19547 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19548 }
19549 {
19550 PyThreadState* __tstate = wxPyBeginAllowThreads();
19551 {
19552 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19553 result = (wxDateTime *) &_result_ref;
19554 }
19555
19556 wxPyEndAllowThreads(__tstate);
19557 if (PyErr_Occurred()) SWIG_fail;
19558 }
19559 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
19560 return resultobj;
19561 fail:
19562 return NULL;
19563}
19564
19565
19566static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19567 PyObject *resultobj;
19568 wxDateTime *arg1 = (wxDateTime *) 0 ;
19569 wxTimeSpan *arg2 = 0 ;
19570 wxDateTime *result;
19571 PyObject * obj0 = 0 ;
19572 PyObject * obj1 = 0 ;
19573 char *kwnames[] = {
19574 (char *) "self",(char *) "diff", NULL
19575 };
19576
19577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19579 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19580 if (arg2 == NULL) {
19581 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19582 }
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 {
19586 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19587 result = (wxDateTime *) &_result_ref;
19588 }
19589
19590 wxPyEndAllowThreads(__tstate);
19591 if (PyErr_Occurred()) SWIG_fail;
19592 }
19593 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
19594 return resultobj;
19595 fail:
19596 return NULL;
19597}
19598
19599
19600static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19601 PyObject *resultobj;
19602 wxDateTime *arg1 = (wxDateTime *) 0 ;
19603 wxDateSpan *arg2 = 0 ;
19604 wxDateTime *result;
19605 PyObject * obj0 = 0 ;
19606 PyObject * obj1 = 0 ;
19607 char *kwnames[] = {
19608 (char *) "self",(char *) "diff", NULL
19609 };
19610
19611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19613 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19614 if (arg2 == NULL) {
19615 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19616 }
19617 {
19618 PyThreadState* __tstate = wxPyBeginAllowThreads();
19619 {
19620 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19621 result = (wxDateTime *) &_result_ref;
19622 }
19623
19624 wxPyEndAllowThreads(__tstate);
19625 if (PyErr_Occurred()) SWIG_fail;
19626 }
19627 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
19628 return resultobj;
19629 fail:
19630 return NULL;
19631}
19632
19633
19634static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19635 PyObject *resultobj;
19636 wxDateTime *arg1 = (wxDateTime *) 0 ;
19637 wxDateTime *arg2 = 0 ;
19638 wxTimeSpan result;
19639 PyObject * obj0 = 0 ;
19640 PyObject * obj1 = 0 ;
19641 char *kwnames[] = {
19642 (char *) "self",(char *) "dt", NULL
19643 };
19644
19645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19646 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19647 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19648 if (arg2 == NULL) {
19649 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19650 }
19651 {
19652 PyThreadState* __tstate = wxPyBeginAllowThreads();
19653 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19654
19655 wxPyEndAllowThreads(__tstate);
19656 if (PyErr_Occurred()) SWIG_fail;
19657 }
19658 {
19659 wxTimeSpan * resultptr;
19660 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19661 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19662 }
19663 return resultobj;
19664 fail:
19665 return NULL;
19666}
19667
19668
19669static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19670 PyObject *resultobj;
19671 wxDateTime *arg1 = (wxDateTime *) 0 ;
19672 wxTimeSpan *arg2 = 0 ;
19673 wxDateTime *result;
19674 PyObject * obj0 = 0 ;
19675 PyObject * obj1 = 0 ;
19676
19677 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19679 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19680 if (arg2 == NULL) {
19681 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19682 }
19683 {
19684 PyThreadState* __tstate = wxPyBeginAllowThreads();
19685 {
19686 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19687 result = (wxDateTime *) &_result_ref;
19688 }
19689
19690 wxPyEndAllowThreads(__tstate);
19691 if (PyErr_Occurred()) SWIG_fail;
19692 }
19693 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
19694 return resultobj;
19695 fail:
19696 return NULL;
19697}
19698
19699
19700static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
19701 PyObject *resultobj;
19702 wxDateTime *arg1 = (wxDateTime *) 0 ;
19703 wxDateSpan *arg2 = 0 ;
19704 wxDateTime *result;
19705 PyObject * obj0 = 0 ;
19706 PyObject * obj1 = 0 ;
19707
19708 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19710 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19711 if (arg2 == NULL) {
19712 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19713 }
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 {
19717 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
19718 result = (wxDateTime *) &_result_ref;
19719 }
19720
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
19725 return resultobj;
19726 fail:
19727 return NULL;
19728}
19729
19730
19731static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
19732 int argc;
19733 PyObject *argv[3];
19734 int ii;
19735
19736 argc = PyObject_Length(args);
19737 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19738 argv[ii] = PyTuple_GetItem(args,ii);
19739 }
19740 if (argc == 2) {
19741 int _v;
19742 {
19743 void *ptr;
19744 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19745 _v = 0;
19746 PyErr_Clear();
19747 } else {
19748 _v = 1;
19749 }
19750 }
19751 if (_v) {
19752 {
19753 void *ptr;
19754 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
19755 _v = 0;
19756 PyErr_Clear();
19757 } else {
19758 _v = 1;
19759 }
19760 }
19761 if (_v) {
19762 return _wrap_DateTime___iadd____SWIG_0(self,args);
19763 }
19764 }
19765 }
19766 if (argc == 2) {
19767 int _v;
19768 {
19769 void *ptr;
19770 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19771 _v = 0;
19772 PyErr_Clear();
19773 } else {
19774 _v = 1;
19775 }
19776 }
19777 if (_v) {
19778 {
19779 void *ptr;
19780 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
19781 _v = 0;
19782 PyErr_Clear();
19783 } else {
19784 _v = 1;
19785 }
19786 }
19787 if (_v) {
19788 return _wrap_DateTime___iadd____SWIG_1(self,args);
19789 }
19790 }
19791 }
19792
19793 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
19794 return NULL;
19795}
19796
19797
19798static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
19799 PyObject *resultobj;
19800 wxDateTime *arg1 = (wxDateTime *) 0 ;
19801 wxTimeSpan *arg2 = 0 ;
19802 wxDateTime *result;
19803 PyObject * obj0 = 0 ;
19804 PyObject * obj1 = 0 ;
19805
19806 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
19807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19808 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19809 if (arg2 == NULL) {
19810 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19811 }
19812 {
19813 PyThreadState* __tstate = wxPyBeginAllowThreads();
19814 {
19815 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
19816 result = (wxDateTime *) &_result_ref;
19817 }
19818
19819 wxPyEndAllowThreads(__tstate);
19820 if (PyErr_Occurred()) SWIG_fail;
19821 }
19822 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
19823 return resultobj;
19824 fail:
19825 return NULL;
19826}
19827
19828
19829static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
19830 PyObject *resultobj;
19831 wxDateTime *arg1 = (wxDateTime *) 0 ;
19832 wxDateSpan *arg2 = 0 ;
19833 wxDateTime *result;
19834 PyObject * obj0 = 0 ;
19835 PyObject * obj1 = 0 ;
19836
19837 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
19838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19839 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19840 if (arg2 == NULL) {
19841 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19842 }
19843 {
19844 PyThreadState* __tstate = wxPyBeginAllowThreads();
19845 {
19846 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
19847 result = (wxDateTime *) &_result_ref;
19848 }
19849
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
19854 return resultobj;
19855 fail:
19856 return NULL;
19857}
19858
19859
19860static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
19861 int argc;
19862 PyObject *argv[3];
19863 int ii;
19864
19865 argc = PyObject_Length(args);
19866 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19867 argv[ii] = PyTuple_GetItem(args,ii);
19868 }
19869 if (argc == 2) {
19870 int _v;
19871 {
19872 void *ptr;
19873 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19874 _v = 0;
19875 PyErr_Clear();
19876 } else {
19877 _v = 1;
19878 }
19879 }
19880 if (_v) {
19881 {
19882 void *ptr;
19883 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
19884 _v = 0;
19885 PyErr_Clear();
19886 } else {
19887 _v = 1;
19888 }
19889 }
19890 if (_v) {
19891 return _wrap_DateTime___isub____SWIG_0(self,args);
19892 }
19893 }
19894 }
19895 if (argc == 2) {
19896 int _v;
19897 {
19898 void *ptr;
19899 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19900 _v = 0;
19901 PyErr_Clear();
19902 } else {
19903 _v = 1;
19904 }
19905 }
19906 if (_v) {
19907 {
19908 void *ptr;
19909 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
19910 _v = 0;
19911 PyErr_Clear();
19912 } else {
19913 _v = 1;
19914 }
19915 }
19916 if (_v) {
19917 return _wrap_DateTime___isub____SWIG_1(self,args);
19918 }
19919 }
19920 }
19921
19922 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
19923 return NULL;
19924}
19925
19926
19927static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
19928 PyObject *resultobj;
19929 wxDateTime *arg1 = (wxDateTime *) 0 ;
19930 wxTimeSpan *arg2 = 0 ;
19931 wxDateTime result;
19932 PyObject * obj0 = 0 ;
19933 PyObject * obj1 = 0 ;
19934
19935 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
19936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19937 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19938 if (arg2 == NULL) {
19939 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19940 }
19941 {
19942 PyThreadState* __tstate = wxPyBeginAllowThreads();
19943 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
19944
19945 wxPyEndAllowThreads(__tstate);
19946 if (PyErr_Occurred()) SWIG_fail;
19947 }
19948 {
19949 wxDateTime * resultptr;
19950 resultptr = new wxDateTime((wxDateTime &) result);
19951 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
19952 }
19953 return resultobj;
19954 fail:
19955 return NULL;
19956}
19957
19958
19959static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
19960 PyObject *resultobj;
19961 wxDateTime *arg1 = (wxDateTime *) 0 ;
19962 wxDateSpan *arg2 = 0 ;
19963 wxDateTime result;
19964 PyObject * obj0 = 0 ;
19965 PyObject * obj1 = 0 ;
19966
19967 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
19968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19969 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19970 if (arg2 == NULL) {
19971 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19972 }
19973 {
19974 PyThreadState* __tstate = wxPyBeginAllowThreads();
19975 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
19976
19977 wxPyEndAllowThreads(__tstate);
19978 if (PyErr_Occurred()) SWIG_fail;
19979 }
19980 {
19981 wxDateTime * resultptr;
19982 resultptr = new wxDateTime((wxDateTime &) result);
19983 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
19984 }
19985 return resultobj;
19986 fail:
19987 return NULL;
19988}
19989
19990
19991static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
19992 int argc;
19993 PyObject *argv[3];
19994 int ii;
19995
19996 argc = PyObject_Length(args);
19997 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19998 argv[ii] = PyTuple_GetItem(args,ii);
19999 }
20000 if (argc == 2) {
20001 int _v;
20002 {
20003 void *ptr;
20004 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20005 _v = 0;
20006 PyErr_Clear();
20007 } else {
20008 _v = 1;
20009 }
20010 }
20011 if (_v) {
20012 {
20013 void *ptr;
20014 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20015 _v = 0;
20016 PyErr_Clear();
20017 } else {
20018 _v = 1;
20019 }
20020 }
20021 if (_v) {
20022 return _wrap_DateTime___add____SWIG_0(self,args);
20023 }
20024 }
20025 }
20026 if (argc == 2) {
20027 int _v;
20028 {
20029 void *ptr;
20030 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20031 _v = 0;
20032 PyErr_Clear();
20033 } else {
20034 _v = 1;
20035 }
20036 }
20037 if (_v) {
20038 {
20039 void *ptr;
20040 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20041 _v = 0;
20042 PyErr_Clear();
20043 } else {
20044 _v = 1;
20045 }
20046 }
20047 if (_v) {
20048 return _wrap_DateTime___add____SWIG_1(self,args);
20049 }
20050 }
20051 }
20052
20053 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20054 return NULL;
20055}
20056
20057
20058static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20059 PyObject *resultobj;
20060 wxDateTime *arg1 = (wxDateTime *) 0 ;
20061 wxDateTime *arg2 = 0 ;
20062 wxTimeSpan result;
20063 PyObject * obj0 = 0 ;
20064 PyObject * obj1 = 0 ;
20065
20066 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20068 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20069 if (arg2 == NULL) {
20070 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20071 }
20072 {
20073 PyThreadState* __tstate = wxPyBeginAllowThreads();
20074 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20075
20076 wxPyEndAllowThreads(__tstate);
20077 if (PyErr_Occurred()) SWIG_fail;
20078 }
20079 {
20080 wxTimeSpan * resultptr;
20081 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20082 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
20083 }
20084 return resultobj;
20085 fail:
20086 return NULL;
20087}
20088
20089
20090static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20091 PyObject *resultobj;
20092 wxDateTime *arg1 = (wxDateTime *) 0 ;
20093 wxTimeSpan *arg2 = 0 ;
20094 wxDateTime result;
20095 PyObject * obj0 = 0 ;
20096 PyObject * obj1 = 0 ;
20097
20098 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20100 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20101 if (arg2 == NULL) {
20102 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20103 }
20104 {
20105 PyThreadState* __tstate = wxPyBeginAllowThreads();
20106 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20107
20108 wxPyEndAllowThreads(__tstate);
20109 if (PyErr_Occurred()) SWIG_fail;
20110 }
20111 {
20112 wxDateTime * resultptr;
20113 resultptr = new wxDateTime((wxDateTime &) result);
20114 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
20115 }
20116 return resultobj;
20117 fail:
20118 return NULL;
20119}
20120
20121
20122static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20123 PyObject *resultobj;
20124 wxDateTime *arg1 = (wxDateTime *) 0 ;
20125 wxDateSpan *arg2 = 0 ;
20126 wxDateTime result;
20127 PyObject * obj0 = 0 ;
20128 PyObject * obj1 = 0 ;
20129
20130 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20132 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20133 if (arg2 == NULL) {
20134 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20135 }
20136 {
20137 PyThreadState* __tstate = wxPyBeginAllowThreads();
20138 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20139
20140 wxPyEndAllowThreads(__tstate);
20141 if (PyErr_Occurred()) SWIG_fail;
20142 }
20143 {
20144 wxDateTime * resultptr;
20145 resultptr = new wxDateTime((wxDateTime &) result);
20146 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
20147 }
20148 return resultobj;
20149 fail:
20150 return NULL;
20151}
20152
20153
20154static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20155 int argc;
20156 PyObject *argv[3];
20157 int ii;
20158
20159 argc = PyObject_Length(args);
20160 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20161 argv[ii] = PyTuple_GetItem(args,ii);
20162 }
20163 if (argc == 2) {
20164 int _v;
20165 {
20166 void *ptr;
20167 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20168 _v = 0;
20169 PyErr_Clear();
20170 } else {
20171 _v = 1;
20172 }
20173 }
20174 if (_v) {
20175 {
20176 void *ptr;
20177 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20178 _v = 0;
20179 PyErr_Clear();
20180 } else {
20181 _v = 1;
20182 }
20183 }
20184 if (_v) {
20185 return _wrap_DateTime___sub____SWIG_0(self,args);
20186 }
20187 }
20188 }
20189 if (argc == 2) {
20190 int _v;
20191 {
20192 void *ptr;
20193 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20194 _v = 0;
20195 PyErr_Clear();
20196 } else {
20197 _v = 1;
20198 }
20199 }
20200 if (_v) {
20201 {
20202 void *ptr;
20203 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20204 _v = 0;
20205 PyErr_Clear();
20206 } else {
20207 _v = 1;
20208 }
20209 }
20210 if (_v) {
20211 return _wrap_DateTime___sub____SWIG_1(self,args);
20212 }
20213 }
20214 }
20215 if (argc == 2) {
20216 int _v;
20217 {
20218 void *ptr;
20219 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20220 _v = 0;
20221 PyErr_Clear();
20222 } else {
20223 _v = 1;
20224 }
20225 }
20226 if (_v) {
20227 {
20228 void *ptr;
20229 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20230 _v = 0;
20231 PyErr_Clear();
20232 } else {
20233 _v = 1;
20234 }
20235 }
20236 if (_v) {
20237 return _wrap_DateTime___sub____SWIG_2(self,args);
20238 }
20239 }
20240 }
20241
20242 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20243 return NULL;
20244}
20245
20246
20247static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20248 PyObject *resultobj;
20249 wxDateTime *arg1 = (wxDateTime *) 0 ;
20250 wxDateTime *arg2 = 0 ;
20251 bool result;
20252 PyObject * obj0 = 0 ;
20253 PyObject * obj1 = 0 ;
20254
20255 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20257 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20258 if (arg2 == NULL) {
20259 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20260 }
20261 {
20262 PyThreadState* __tstate = wxPyBeginAllowThreads();
20263 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2);
20264
20265 wxPyEndAllowThreads(__tstate);
20266 if (PyErr_Occurred()) SWIG_fail;
20267 }
02a34c4c 20268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20269 return resultobj;
20270 fail:
20271 return NULL;
20272}
20273
20274
20275static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20276 PyObject *resultobj;
20277 wxDateTime *arg1 = (wxDateTime *) 0 ;
20278 wxDateTime *arg2 = 0 ;
20279 bool result;
20280 PyObject * obj0 = 0 ;
20281 PyObject * obj1 = 0 ;
20282
20283 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20285 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20286 if (arg2 == NULL) {
20287 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20288 }
20289 {
20290 PyThreadState* __tstate = wxPyBeginAllowThreads();
20291 result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2);
20292
20293 wxPyEndAllowThreads(__tstate);
20294 if (PyErr_Occurred()) SWIG_fail;
20295 }
02a34c4c 20296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20297 return resultobj;
20298 fail:
20299 return NULL;
20300}
20301
20302
20303static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20304 PyObject *resultobj;
20305 wxDateTime *arg1 = (wxDateTime *) 0 ;
20306 wxDateTime *arg2 = 0 ;
20307 bool result;
20308 PyObject * obj0 = 0 ;
20309 PyObject * obj1 = 0 ;
20310
20311 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20313 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20314 if (arg2 == NULL) {
20315 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20316 }
20317 {
20318 PyThreadState* __tstate = wxPyBeginAllowThreads();
20319 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2);
20320
20321 wxPyEndAllowThreads(__tstate);
20322 if (PyErr_Occurred()) SWIG_fail;
20323 }
02a34c4c 20324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20325 return resultobj;
20326 fail:
20327 return NULL;
20328}
20329
20330
20331static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20332 PyObject *resultobj;
20333 wxDateTime *arg1 = (wxDateTime *) 0 ;
20334 wxDateTime *arg2 = 0 ;
20335 bool result;
20336 PyObject * obj0 = 0 ;
20337 PyObject * obj1 = 0 ;
20338
20339 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20341 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20342 if (arg2 == NULL) {
20343 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20344 }
20345 {
20346 PyThreadState* __tstate = wxPyBeginAllowThreads();
20347 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2);
20348
20349 wxPyEndAllowThreads(__tstate);
20350 if (PyErr_Occurred()) SWIG_fail;
20351 }
02a34c4c 20352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20353 return resultobj;
20354 fail:
20355 return NULL;
20356}
20357
20358
20359static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20360 PyObject *resultobj;
20361 wxDateTime *arg1 = (wxDateTime *) 0 ;
20362 wxDateTime *arg2 = 0 ;
20363 bool result;
20364 PyObject * obj0 = 0 ;
20365 PyObject * obj1 = 0 ;
20366
20367 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20369 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20370 if (arg2 == NULL) {
20371 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20372 }
20373 {
20374 PyThreadState* __tstate = wxPyBeginAllowThreads();
20375 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2);
20376
20377 wxPyEndAllowThreads(__tstate);
20378 if (PyErr_Occurred()) SWIG_fail;
20379 }
02a34c4c 20380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20381 return resultobj;
20382 fail:
20383 return NULL;
20384}
20385
20386
20387static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20388 PyObject *resultobj;
20389 wxDateTime *arg1 = (wxDateTime *) 0 ;
20390 wxDateTime *arg2 = 0 ;
20391 bool result;
20392 PyObject * obj0 = 0 ;
20393 PyObject * obj1 = 0 ;
20394
20395 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20397 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20398 if (arg2 == NULL) {
20399 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20400 }
20401 {
20402 PyThreadState* __tstate = wxPyBeginAllowThreads();
20403 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2);
20404
20405 wxPyEndAllowThreads(__tstate);
20406 if (PyErr_Occurred()) SWIG_fail;
20407 }
02a34c4c 20408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20409 return resultobj;
20410 fail:
20411 return NULL;
20412}
20413
20414
20415static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20416 PyObject *resultobj;
20417 wxDateTime *arg1 = (wxDateTime *) 0 ;
20418 wxString *arg2 = 0 ;
20419 int result;
423f194a 20420 bool temp2 = False ;
d14a1e28
RD
20421 PyObject * obj0 = 0 ;
20422 PyObject * obj1 = 0 ;
20423 char *kwnames[] = {
20424 (char *) "self",(char *) "date", NULL
20425 };
20426
20427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20429 {
20430 arg2 = wxString_in_helper(obj1);
20431 if (arg2 == NULL) SWIG_fail;
423f194a 20432 temp2 = True;
d14a1e28
RD
20433 }
20434 {
20435 PyThreadState* __tstate = wxPyBeginAllowThreads();
20436 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20437
20438 wxPyEndAllowThreads(__tstate);
20439 if (PyErr_Occurred()) SWIG_fail;
20440 }
8edf1c75 20441 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
20442 {
20443 if (temp2)
20444 delete arg2;
20445 }
20446 return resultobj;
20447 fail:
20448 {
20449 if (temp2)
20450 delete arg2;
20451 }
20452 return NULL;
20453}
20454
20455
20456static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20457 PyObject *resultobj;
20458 wxDateTime *arg1 = (wxDateTime *) 0 ;
20459 wxString *arg2 = 0 ;
20460 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20461 wxString *arg3 = (wxString *) &arg3_defvalue ;
20462 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20463 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20464 int result;
423f194a
RD
20465 bool temp2 = False ;
20466 bool temp3 = False ;
d14a1e28
RD
20467 PyObject * obj0 = 0 ;
20468 PyObject * obj1 = 0 ;
20469 PyObject * obj2 = 0 ;
20470 PyObject * obj3 = 0 ;
20471 char *kwnames[] = {
20472 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20473 };
20474
20475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20477 {
20478 arg2 = wxString_in_helper(obj1);
20479 if (arg2 == NULL) SWIG_fail;
423f194a 20480 temp2 = True;
d14a1e28
RD
20481 }
20482 if (obj2) {
20483 {
20484 arg3 = wxString_in_helper(obj2);
20485 if (arg3 == NULL) SWIG_fail;
423f194a 20486 temp3 = True;
d14a1e28
RD
20487 }
20488 }
20489 if (obj3) {
20490 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20491 if (arg4 == NULL) {
20492 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20493 }
20494 }
20495 {
20496 PyThreadState* __tstate = wxPyBeginAllowThreads();
20497 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20498
20499 wxPyEndAllowThreads(__tstate);
20500 if (PyErr_Occurred()) SWIG_fail;
20501 }
8edf1c75 20502 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
20503 {
20504 if (temp2)
20505 delete arg2;
20506 }
20507 {
20508 if (temp3)
20509 delete arg3;
20510 }
20511 return resultobj;
20512 fail:
20513 {
20514 if (temp2)
20515 delete arg2;
20516 }
20517 {
20518 if (temp3)
20519 delete arg3;
20520 }
20521 return NULL;
20522}
20523
20524
20525static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20526 PyObject *resultobj;
20527 wxDateTime *arg1 = (wxDateTime *) 0 ;
20528 wxString *arg2 = 0 ;
20529 int result;
423f194a 20530 bool temp2 = False ;
d14a1e28
RD
20531 PyObject * obj0 = 0 ;
20532 PyObject * obj1 = 0 ;
20533 char *kwnames[] = {
20534 (char *) "self",(char *) "datetime", NULL
20535 };
20536
20537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20539 {
20540 arg2 = wxString_in_helper(obj1);
20541 if (arg2 == NULL) SWIG_fail;
423f194a 20542 temp2 = True;
d14a1e28
RD
20543 }
20544 {
20545 PyThreadState* __tstate = wxPyBeginAllowThreads();
20546 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20547
20548 wxPyEndAllowThreads(__tstate);
20549 if (PyErr_Occurred()) SWIG_fail;
20550 }
8edf1c75 20551 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
20552 {
20553 if (temp2)
20554 delete arg2;
20555 }
20556 return resultobj;
20557 fail:
20558 {
20559 if (temp2)
20560 delete arg2;
20561 }
20562 return NULL;
20563}
20564
20565
20566static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20567 PyObject *resultobj;
20568 wxDateTime *arg1 = (wxDateTime *) 0 ;
20569 wxString *arg2 = 0 ;
20570 int result;
423f194a 20571 bool temp2 = False ;
d14a1e28
RD
20572 PyObject * obj0 = 0 ;
20573 PyObject * obj1 = 0 ;
20574 char *kwnames[] = {
20575 (char *) "self",(char *) "date", NULL
20576 };
20577
20578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20580 {
20581 arg2 = wxString_in_helper(obj1);
20582 if (arg2 == NULL) SWIG_fail;
423f194a 20583 temp2 = True;
d14a1e28
RD
20584 }
20585 {
20586 PyThreadState* __tstate = wxPyBeginAllowThreads();
20587 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20588
20589 wxPyEndAllowThreads(__tstate);
20590 if (PyErr_Occurred()) SWIG_fail;
20591 }
8edf1c75 20592 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
20593 {
20594 if (temp2)
20595 delete arg2;
20596 }
20597 return resultobj;
20598 fail:
20599 {
20600 if (temp2)
20601 delete arg2;
20602 }
20603 return NULL;
20604}
20605
20606
20607static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20608 PyObject *resultobj;
20609 wxDateTime *arg1 = (wxDateTime *) 0 ;
20610 wxString *arg2 = 0 ;
20611 int result;
423f194a 20612 bool temp2 = False ;
d14a1e28
RD
20613 PyObject * obj0 = 0 ;
20614 PyObject * obj1 = 0 ;
20615 char *kwnames[] = {
20616 (char *) "self",(char *) "time", NULL
20617 };
20618
20619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20621 {
20622 arg2 = wxString_in_helper(obj1);
20623 if (arg2 == NULL) SWIG_fail;
423f194a 20624 temp2 = True;
d14a1e28
RD
20625 }
20626 {
20627 PyThreadState* __tstate = wxPyBeginAllowThreads();
20628 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20629
20630 wxPyEndAllowThreads(__tstate);
20631 if (PyErr_Occurred()) SWIG_fail;
20632 }
8edf1c75 20633 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
20634 {
20635 if (temp2)
20636 delete arg2;
20637 }
20638 return resultobj;
20639 fail:
20640 {
20641 if (temp2)
20642 delete arg2;
20643 }
20644 return NULL;
20645}
20646
20647
20648static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20649 PyObject *resultobj;
20650 wxDateTime *arg1 = (wxDateTime *) 0 ;
20651 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20652 wxString *arg2 = (wxString *) &arg2_defvalue ;
20653 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20654 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20655 wxString result;
423f194a 20656 bool temp2 = False ;
44127b65 20657 bool temp3 = False ;
d14a1e28
RD
20658 PyObject * obj0 = 0 ;
20659 PyObject * obj1 = 0 ;
20660 PyObject * obj2 = 0 ;
20661 char *kwnames[] = {
20662 (char *) "self",(char *) "format",(char *) "tz", NULL
20663 };
20664
20665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
20666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20667 if (obj1) {
20668 {
20669 arg2 = wxString_in_helper(obj1);
20670 if (arg2 == NULL) SWIG_fail;
423f194a 20671 temp2 = True;
d14a1e28
RD
20672 }
20673 }
20674 if (obj2) {
20675 {
20676 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
44127b65 20677 temp3 = True;
d14a1e28
RD
20678 }
20679 }
20680 {
20681 PyThreadState* __tstate = wxPyBeginAllowThreads();
20682 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
20683
20684 wxPyEndAllowThreads(__tstate);
20685 if (PyErr_Occurred()) SWIG_fail;
20686 }
20687 {
20688#if wxUSE_UNICODE
20689 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20690#else
20691 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20692#endif
20693 }
20694 {
20695 if (temp2)
20696 delete arg2;
20697 }
20698 {
44127b65 20699 if (temp3) delete arg3;
d14a1e28
RD
20700 }
20701 return resultobj;
20702 fail:
20703 {
20704 if (temp2)
20705 delete arg2;
20706 }
20707 {
44127b65 20708 if (temp3) delete arg3;
d14a1e28
RD
20709 }
20710 return NULL;
20711}
20712
20713
20714static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20715 PyObject *resultobj;
20716 wxDateTime *arg1 = (wxDateTime *) 0 ;
20717 wxString result;
20718 PyObject * obj0 = 0 ;
20719 char *kwnames[] = {
20720 (char *) "self", NULL
20721 };
20722
20723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
20724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20725 {
20726 PyThreadState* __tstate = wxPyBeginAllowThreads();
20727 result = ((wxDateTime const *)arg1)->FormatDate();
20728
20729 wxPyEndAllowThreads(__tstate);
20730 if (PyErr_Occurred()) SWIG_fail;
20731 }
20732 {
20733#if wxUSE_UNICODE
20734 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20735#else
20736 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20737#endif
20738 }
20739 return resultobj;
20740 fail:
20741 return NULL;
20742}
20743
20744
20745static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20746 PyObject *resultobj;
20747 wxDateTime *arg1 = (wxDateTime *) 0 ;
20748 wxString result;
20749 PyObject * obj0 = 0 ;
20750 char *kwnames[] = {
20751 (char *) "self", NULL
20752 };
20753
20754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
20755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20756 {
20757 PyThreadState* __tstate = wxPyBeginAllowThreads();
20758 result = ((wxDateTime const *)arg1)->FormatTime();
20759
20760 wxPyEndAllowThreads(__tstate);
20761 if (PyErr_Occurred()) SWIG_fail;
20762 }
20763 {
20764#if wxUSE_UNICODE
20765 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20766#else
20767 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20768#endif
20769 }
20770 return resultobj;
20771 fail:
20772 return NULL;
20773}
20774
20775
20776static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
20777 PyObject *resultobj;
20778 wxDateTime *arg1 = (wxDateTime *) 0 ;
20779 wxString result;
20780 PyObject * obj0 = 0 ;
20781 char *kwnames[] = {
20782 (char *) "self", NULL
20783 };
20784
20785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
20786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20787 {
20788 PyThreadState* __tstate = wxPyBeginAllowThreads();
20789 result = ((wxDateTime const *)arg1)->FormatISODate();
20790
20791 wxPyEndAllowThreads(__tstate);
20792 if (PyErr_Occurred()) SWIG_fail;
20793 }
20794 {
20795#if wxUSE_UNICODE
20796 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20797#else
20798 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20799#endif
20800 }
20801 return resultobj;
20802 fail:
20803 return NULL;
20804}
20805
20806
20807static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20808 PyObject *resultobj;
20809 wxDateTime *arg1 = (wxDateTime *) 0 ;
20810 wxString result;
20811 PyObject * obj0 = 0 ;
20812 char *kwnames[] = {
20813 (char *) "self", NULL
20814 };
20815
20816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
20817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20818 {
20819 PyThreadState* __tstate = wxPyBeginAllowThreads();
20820 result = ((wxDateTime const *)arg1)->FormatISOTime();
20821
20822 wxPyEndAllowThreads(__tstate);
20823 if (PyErr_Occurred()) SWIG_fail;
20824 }
20825 {
20826#if wxUSE_UNICODE
20827 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20828#else
20829 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20830#endif
20831 }
20832 return resultobj;
20833 fail:
20834 return NULL;
20835}
20836
20837
20838static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
20839 PyObject *obj;
20840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20841 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
20842 Py_INCREF(obj);
20843 return Py_BuildValue((char *)"");
20844}
20845static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
20846 PyObject *resultobj;
20847 long arg1 ;
20848 wxTimeSpan result;
8edf1c75 20849 PyObject * obj0 = 0 ;
d14a1e28
RD
20850 char *kwnames[] = {
20851 (char *) "sec", NULL
20852 };
20853
8edf1c75
RD
20854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
20855 {
20856 arg1 = (long) SWIG_PyObj_AsLong(obj0);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
d14a1e28
RD
20859 {
20860 PyThreadState* __tstate = wxPyBeginAllowThreads();
20861 result = wxTimeSpan::Seconds(arg1);
20862
20863 wxPyEndAllowThreads(__tstate);
20864 if (PyErr_Occurred()) SWIG_fail;
20865 }
20866 {
20867 wxTimeSpan * resultptr;
20868 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20869 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
20870 }
20871 return resultobj;
20872 fail:
20873 return NULL;
20874}
20875
20876
20877static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
20878 PyObject *resultobj;
20879 wxTimeSpan result;
20880 char *kwnames[] = {
20881 NULL
20882 };
20883
20884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
20885 {
20886 PyThreadState* __tstate = wxPyBeginAllowThreads();
20887 result = wxTimeSpan::Second();
20888
20889 wxPyEndAllowThreads(__tstate);
20890 if (PyErr_Occurred()) SWIG_fail;
20891 }
20892 {
20893 wxTimeSpan * resultptr;
20894 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20895 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
20896 }
20897 return resultobj;
20898 fail:
20899 return NULL;
20900}
20901
20902
20903static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
20904 PyObject *resultobj;
20905 long arg1 ;
20906 wxTimeSpan result;
8edf1c75 20907 PyObject * obj0 = 0 ;
d14a1e28
RD
20908 char *kwnames[] = {
20909 (char *) "min", NULL
20910 };
20911
8edf1c75
RD
20912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
20913 {
20914 arg1 = (long) SWIG_PyObj_AsLong(obj0);
20915 if (PyErr_Occurred()) SWIG_fail;
20916 }
d14a1e28
RD
20917 {
20918 PyThreadState* __tstate = wxPyBeginAllowThreads();
20919 result = wxTimeSpan::Minutes(arg1);
20920
20921 wxPyEndAllowThreads(__tstate);
20922 if (PyErr_Occurred()) SWIG_fail;
20923 }
20924 {
20925 wxTimeSpan * resultptr;
20926 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20927 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
20928 }
20929 return resultobj;
20930 fail:
20931 return NULL;
20932}
20933
20934
20935static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
20936 PyObject *resultobj;
20937 wxTimeSpan result;
20938 char *kwnames[] = {
20939 NULL
20940 };
20941
20942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
20943 {
20944 PyThreadState* __tstate = wxPyBeginAllowThreads();
20945 result = wxTimeSpan::Minute();
20946
20947 wxPyEndAllowThreads(__tstate);
20948 if (PyErr_Occurred()) SWIG_fail;
20949 }
20950 {
20951 wxTimeSpan * resultptr;
20952 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20953 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
20954 }
20955 return resultobj;
20956 fail:
20957 return NULL;
20958}
20959
20960
20961static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
20962 PyObject *resultobj;
20963 long arg1 ;
20964 wxTimeSpan result;
8edf1c75 20965 PyObject * obj0 = 0 ;
d14a1e28
RD
20966 char *kwnames[] = {
20967 (char *) "hours", NULL
20968 };
20969
8edf1c75
RD
20970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
20971 {
20972 arg1 = (long) SWIG_PyObj_AsLong(obj0);
20973 if (PyErr_Occurred()) SWIG_fail;
20974 }
d14a1e28
RD
20975 {
20976 PyThreadState* __tstate = wxPyBeginAllowThreads();
20977 result = wxTimeSpan::Hours(arg1);
20978
20979 wxPyEndAllowThreads(__tstate);
20980 if (PyErr_Occurred()) SWIG_fail;
20981 }
20982 {
20983 wxTimeSpan * resultptr;
20984 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20985 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
20986 }
20987 return resultobj;
20988 fail:
20989 return NULL;
20990}
20991
20992
20993static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
20994 PyObject *resultobj;
20995 wxTimeSpan result;
20996 char *kwnames[] = {
20997 NULL
20998 };
20999
21000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21001 {
21002 PyThreadState* __tstate = wxPyBeginAllowThreads();
21003 result = wxTimeSpan::Hour();
21004
21005 wxPyEndAllowThreads(__tstate);
21006 if (PyErr_Occurred()) SWIG_fail;
21007 }
21008 {
21009 wxTimeSpan * resultptr;
21010 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21011 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21012 }
21013 return resultobj;
21014 fail:
21015 return NULL;
21016}
21017
21018
21019static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21020 PyObject *resultobj;
21021 long arg1 ;
21022 wxTimeSpan result;
8edf1c75 21023 PyObject * obj0 = 0 ;
d14a1e28
RD
21024 char *kwnames[] = {
21025 (char *) "days", NULL
21026 };
21027
8edf1c75
RD
21028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21029 {
21030 arg1 = (long) SWIG_PyObj_AsLong(obj0);
21031 if (PyErr_Occurred()) SWIG_fail;
21032 }
d14a1e28
RD
21033 {
21034 PyThreadState* __tstate = wxPyBeginAllowThreads();
21035 result = wxTimeSpan::Days(arg1);
21036
21037 wxPyEndAllowThreads(__tstate);
21038 if (PyErr_Occurred()) SWIG_fail;
21039 }
21040 {
21041 wxTimeSpan * resultptr;
21042 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21043 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21044 }
21045 return resultobj;
21046 fail:
21047 return NULL;
21048}
21049
21050
21051static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21052 PyObject *resultobj;
21053 wxTimeSpan result;
21054 char *kwnames[] = {
21055 NULL
21056 };
21057
21058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21059 {
21060 PyThreadState* __tstate = wxPyBeginAllowThreads();
21061 result = wxTimeSpan::Day();
21062
21063 wxPyEndAllowThreads(__tstate);
21064 if (PyErr_Occurred()) SWIG_fail;
21065 }
21066 {
21067 wxTimeSpan * resultptr;
21068 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21069 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21070 }
21071 return resultobj;
21072 fail:
21073 return NULL;
21074}
21075
21076
21077static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21078 PyObject *resultobj;
21079 long arg1 ;
21080 wxTimeSpan result;
8edf1c75 21081 PyObject * obj0 = 0 ;
d14a1e28
RD
21082 char *kwnames[] = {
21083 (char *) "days", NULL
21084 };
21085
8edf1c75
RD
21086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21087 {
21088 arg1 = (long) SWIG_PyObj_AsLong(obj0);
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
d14a1e28
RD
21091 {
21092 PyThreadState* __tstate = wxPyBeginAllowThreads();
21093 result = wxTimeSpan::Weeks(arg1);
21094
21095 wxPyEndAllowThreads(__tstate);
21096 if (PyErr_Occurred()) SWIG_fail;
21097 }
21098 {
21099 wxTimeSpan * resultptr;
21100 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21101 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21102 }
21103 return resultobj;
21104 fail:
21105 return NULL;
21106}
21107
21108
21109static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21110 PyObject *resultobj;
21111 wxTimeSpan result;
21112 char *kwnames[] = {
21113 NULL
21114 };
21115
21116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21117 {
21118 PyThreadState* __tstate = wxPyBeginAllowThreads();
21119 result = wxTimeSpan::Week();
21120
21121 wxPyEndAllowThreads(__tstate);
21122 if (PyErr_Occurred()) SWIG_fail;
21123 }
21124 {
21125 wxTimeSpan * resultptr;
21126 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21127 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21128 }
21129 return resultobj;
21130 fail:
21131 return NULL;
21132}
21133
21134
21135static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21136 PyObject *resultobj;
21137 long arg1 = (long) 0 ;
21138 long arg2 = (long) 0 ;
21139 long arg3 = (long) 0 ;
21140 long arg4 = (long) 0 ;
21141 wxTimeSpan *result;
8edf1c75
RD
21142 PyObject * obj0 = 0 ;
21143 PyObject * obj1 = 0 ;
21144 PyObject * obj2 = 0 ;
21145 PyObject * obj3 = 0 ;
d14a1e28
RD
21146 char *kwnames[] = {
21147 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21148 };
21149
8edf1c75
RD
21150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21151 if (obj0) {
21152 {
21153 arg1 = (long) SWIG_PyObj_AsLong(obj0);
21154 if (PyErr_Occurred()) SWIG_fail;
21155 }
21156 }
21157 if (obj1) {
21158 {
21159 arg2 = (long) SWIG_PyObj_AsLong(obj1);
21160 if (PyErr_Occurred()) SWIG_fail;
21161 }
21162 }
21163 if (obj2) {
21164 {
21165 arg3 = (long) SWIG_PyObj_AsLong(obj2);
21166 if (PyErr_Occurred()) SWIG_fail;
21167 }
21168 }
21169 if (obj3) {
21170 {
21171 arg4 = (long) SWIG_PyObj_AsLong(obj3);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 }
21174 }
d14a1e28
RD
21175 {
21176 PyThreadState* __tstate = wxPyBeginAllowThreads();
21177 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21178
21179 wxPyEndAllowThreads(__tstate);
21180 if (PyErr_Occurred()) SWIG_fail;
21181 }
21182 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1);
21183 return resultobj;
21184 fail:
21185 return NULL;
21186}
21187
21188
21189static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21190 PyObject *resultobj;
21191 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21192 PyObject * obj0 = 0 ;
21193 char *kwnames[] = {
21194 (char *) "self", NULL
21195 };
21196
21197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21199 {
21200 PyThreadState* __tstate = wxPyBeginAllowThreads();
21201 delete arg1;
21202
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 Py_INCREF(Py_None); resultobj = Py_None;
21207 return resultobj;
21208 fail:
21209 return NULL;
21210}
21211
21212
21213static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21214 PyObject *resultobj;
21215 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21216 wxTimeSpan *arg2 = 0 ;
21217 wxTimeSpan *result;
21218 PyObject * obj0 = 0 ;
21219 PyObject * obj1 = 0 ;
21220 char *kwnames[] = {
21221 (char *) "self",(char *) "diff", NULL
21222 };
21223
21224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21226 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21227 if (arg2 == NULL) {
21228 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21229 }
21230 {
21231 PyThreadState* __tstate = wxPyBeginAllowThreads();
21232 {
21233 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21234 result = (wxTimeSpan *) &_result_ref;
21235 }
21236
21237 wxPyEndAllowThreads(__tstate);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
21241 return resultobj;
21242 fail:
21243 return NULL;
21244}
21245
21246
21247static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21248 PyObject *resultobj;
21249 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21250 wxTimeSpan *arg2 = 0 ;
21251 wxTimeSpan *result;
21252 PyObject * obj0 = 0 ;
21253 PyObject * obj1 = 0 ;
21254 char *kwnames[] = {
21255 (char *) "self",(char *) "diff", NULL
21256 };
21257
21258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21260 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21261 if (arg2 == NULL) {
21262 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21263 }
21264 {
21265 PyThreadState* __tstate = wxPyBeginAllowThreads();
21266 {
21267 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21268 result = (wxTimeSpan *) &_result_ref;
21269 }
21270
21271 wxPyEndAllowThreads(__tstate);
21272 if (PyErr_Occurred()) SWIG_fail;
21273 }
21274 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
21275 return resultobj;
21276 fail:
21277 return NULL;
21278}
21279
21280
21281static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21282 PyObject *resultobj;
21283 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21284 int arg2 ;
21285 wxTimeSpan *result;
21286 PyObject * obj0 = 0 ;
8edf1c75 21287 PyObject * obj1 = 0 ;
d14a1e28
RD
21288 char *kwnames[] = {
21289 (char *) "self",(char *) "n", NULL
21290 };
21291
8edf1c75 21292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 21293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21294 {
21295 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21296 if (PyErr_Occurred()) SWIG_fail;
21297 }
d14a1e28
RD
21298 {
21299 PyThreadState* __tstate = wxPyBeginAllowThreads();
21300 {
21301 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21302 result = (wxTimeSpan *) &_result_ref;
21303 }
21304
21305 wxPyEndAllowThreads(__tstate);
21306 if (PyErr_Occurred()) SWIG_fail;
21307 }
21308 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
21309 return resultobj;
21310 fail:
21311 return NULL;
21312}
21313
21314
21315static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21316 PyObject *resultobj;
21317 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21318 wxTimeSpan *result;
21319 PyObject * obj0 = 0 ;
21320 char *kwnames[] = {
21321 (char *) "self", NULL
21322 };
21323
21324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21326 {
21327 PyThreadState* __tstate = wxPyBeginAllowThreads();
21328 {
21329 wxTimeSpan &_result_ref = (arg1)->Neg();
21330 result = (wxTimeSpan *) &_result_ref;
21331 }
21332
21333 wxPyEndAllowThreads(__tstate);
21334 if (PyErr_Occurred()) SWIG_fail;
21335 }
21336 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
21337 return resultobj;
21338 fail:
21339 return NULL;
21340}
21341
21342
21343static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21344 PyObject *resultobj;
21345 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21346 wxTimeSpan result;
21347 PyObject * obj0 = 0 ;
21348 char *kwnames[] = {
21349 (char *) "self", NULL
21350 };
21351
21352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21354 {
21355 PyThreadState* __tstate = wxPyBeginAllowThreads();
21356 result = ((wxTimeSpan const *)arg1)->Abs();
21357
21358 wxPyEndAllowThreads(__tstate);
21359 if (PyErr_Occurred()) SWIG_fail;
21360 }
21361 {
21362 wxTimeSpan * resultptr;
21363 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21364 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21365 }
21366 return resultobj;
21367 fail:
21368 return NULL;
21369}
21370
21371
21372static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21373 PyObject *resultobj;
21374 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21375 wxTimeSpan *arg2 = 0 ;
21376 wxTimeSpan *result;
21377 PyObject * obj0 = 0 ;
21378 PyObject * obj1 = 0 ;
21379 char *kwnames[] = {
21380 (char *) "self",(char *) "diff", NULL
21381 };
21382
21383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21385 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21386 if (arg2 == NULL) {
21387 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21388 }
21389 {
21390 PyThreadState* __tstate = wxPyBeginAllowThreads();
21391 {
21392 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21393 result = (wxTimeSpan *) &_result_ref;
21394 }
21395
21396 wxPyEndAllowThreads(__tstate);
21397 if (PyErr_Occurred()) SWIG_fail;
21398 }
21399 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
21400 return resultobj;
21401 fail:
21402 return NULL;
21403}
21404
21405
21406static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21407 PyObject *resultobj;
21408 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21409 wxTimeSpan *arg2 = 0 ;
21410 wxTimeSpan *result;
21411 PyObject * obj0 = 0 ;
21412 PyObject * obj1 = 0 ;
21413 char *kwnames[] = {
21414 (char *) "self",(char *) "diff", NULL
21415 };
21416
21417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21419 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21420 if (arg2 == NULL) {
21421 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21422 }
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 {
21426 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21427 result = (wxTimeSpan *) &_result_ref;
21428 }
21429
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
21434 return resultobj;
21435 fail:
21436 return NULL;
21437}
21438
21439
21440static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21441 PyObject *resultobj;
21442 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21443 int arg2 ;
21444 wxTimeSpan *result;
21445 PyObject * obj0 = 0 ;
8edf1c75 21446 PyObject * obj1 = 0 ;
d14a1e28
RD
21447 char *kwnames[] = {
21448 (char *) "self",(char *) "n", NULL
21449 };
21450
8edf1c75 21451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 21452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21453 {
21454 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21455 if (PyErr_Occurred()) SWIG_fail;
21456 }
d14a1e28
RD
21457 {
21458 PyThreadState* __tstate = wxPyBeginAllowThreads();
21459 {
21460 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21461 result = (wxTimeSpan *) &_result_ref;
21462 }
21463
21464 wxPyEndAllowThreads(__tstate);
21465 if (PyErr_Occurred()) SWIG_fail;
21466 }
21467 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
21468 return resultobj;
21469 fail:
21470 return NULL;
21471}
21472
21473
21474static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21475 PyObject *resultobj;
21476 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21477 wxTimeSpan *result;
21478 PyObject * obj0 = 0 ;
21479 char *kwnames[] = {
21480 (char *) "self", NULL
21481 };
21482
21483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21485 {
21486 PyThreadState* __tstate = wxPyBeginAllowThreads();
21487 {
21488 wxTimeSpan &_result_ref = (arg1)->operator -();
21489 result = (wxTimeSpan *) &_result_ref;
21490 }
21491
21492 wxPyEndAllowThreads(__tstate);
21493 if (PyErr_Occurred()) SWIG_fail;
21494 }
21495 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
21496 return resultobj;
21497 fail:
21498 return NULL;
21499}
21500
21501
21502static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21503 PyObject *resultobj;
21504 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21505 wxTimeSpan *arg2 = 0 ;
21506 wxTimeSpan result;
21507 PyObject * obj0 = 0 ;
21508 PyObject * obj1 = 0 ;
21509 char *kwnames[] = {
21510 (char *) "self",(char *) "other", NULL
21511 };
21512
21513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21515 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21516 if (arg2 == NULL) {
21517 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21518 }
21519 {
21520 PyThreadState* __tstate = wxPyBeginAllowThreads();
21521 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21522
21523 wxPyEndAllowThreads(__tstate);
21524 if (PyErr_Occurred()) SWIG_fail;
21525 }
21526 {
21527 wxTimeSpan * resultptr;
21528 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21529 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21530 }
21531 return resultobj;
21532 fail:
21533 return NULL;
21534}
21535
21536
21537static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21538 PyObject *resultobj;
21539 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21540 wxTimeSpan *arg2 = 0 ;
21541 wxTimeSpan result;
21542 PyObject * obj0 = 0 ;
21543 PyObject * obj1 = 0 ;
21544 char *kwnames[] = {
21545 (char *) "self",(char *) "other", NULL
21546 };
21547
21548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21550 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21551 if (arg2 == NULL) {
21552 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21553 }
21554 {
21555 PyThreadState* __tstate = wxPyBeginAllowThreads();
21556 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21557
21558 wxPyEndAllowThreads(__tstate);
21559 if (PyErr_Occurred()) SWIG_fail;
21560 }
21561 {
21562 wxTimeSpan * resultptr;
21563 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21564 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21565 }
21566 return resultobj;
21567 fail:
21568 return NULL;
21569}
21570
21571
21572static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21573 PyObject *resultobj;
21574 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21575 int arg2 ;
21576 wxTimeSpan result;
21577 PyObject * obj0 = 0 ;
8edf1c75 21578 PyObject * obj1 = 0 ;
d14a1e28
RD
21579 char *kwnames[] = {
21580 (char *) "self",(char *) "n", NULL
21581 };
21582
8edf1c75 21583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 21584 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21585 {
21586 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
d14a1e28
RD
21589 {
21590 PyThreadState* __tstate = wxPyBeginAllowThreads();
21591 result = wxTimeSpan___mul__(arg1,arg2);
21592
21593 wxPyEndAllowThreads(__tstate);
21594 if (PyErr_Occurred()) SWIG_fail;
21595 }
21596 {
21597 wxTimeSpan * resultptr;
21598 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21599 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21600 }
21601 return resultobj;
21602 fail:
21603 return NULL;
21604}
21605
21606
21607static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21608 PyObject *resultobj;
21609 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21610 int arg2 ;
21611 wxTimeSpan result;
21612 PyObject * obj0 = 0 ;
8edf1c75 21613 PyObject * obj1 = 0 ;
d14a1e28
RD
21614 char *kwnames[] = {
21615 (char *) "self",(char *) "n", NULL
21616 };
21617
8edf1c75 21618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 21619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21620 {
21621 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21622 if (PyErr_Occurred()) SWIG_fail;
21623 }
d14a1e28
RD
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = wxTimeSpan___rmul__(arg1,arg2);
21627
21628 wxPyEndAllowThreads(__tstate);
21629 if (PyErr_Occurred()) SWIG_fail;
21630 }
21631 {
21632 wxTimeSpan * resultptr;
21633 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21634 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
21635 }
21636 return resultobj;
21637 fail:
21638 return NULL;
21639}
21640
21641
21642static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21643 PyObject *resultobj;
21644 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21645 wxTimeSpan *arg2 = 0 ;
21646 bool result;
21647 PyObject * obj0 = 0 ;
21648 PyObject * obj1 = 0 ;
21649 char *kwnames[] = {
21650 (char *) "self",(char *) "other", NULL
21651 };
21652
21653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
21654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21655 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21656 if (arg2 == NULL) {
21657 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21658 }
21659 {
21660 PyThreadState* __tstate = wxPyBeginAllowThreads();
21661 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2);
21662
21663 wxPyEndAllowThreads(__tstate);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
02a34c4c 21666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21667 return resultobj;
21668 fail:
21669 return NULL;
21670}
21671
21672
21673static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
21674 PyObject *resultobj;
21675 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21676 wxTimeSpan *arg2 = 0 ;
21677 bool result;
21678 PyObject * obj0 = 0 ;
21679 PyObject * obj1 = 0 ;
21680 char *kwnames[] = {
21681 (char *) "self",(char *) "other", NULL
21682 };
21683
21684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
21685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21686 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21687 if (arg2 == NULL) {
21688 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21689 }
21690 {
21691 PyThreadState* __tstate = wxPyBeginAllowThreads();
21692 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2);
21693
21694 wxPyEndAllowThreads(__tstate);
21695 if (PyErr_Occurred()) SWIG_fail;
21696 }
02a34c4c 21697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21698 return resultobj;
21699 fail:
21700 return NULL;
21701}
21702
21703
21704static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21705 PyObject *resultobj;
21706 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21707 wxTimeSpan *arg2 = 0 ;
21708 bool result;
21709 PyObject * obj0 = 0 ;
21710 PyObject * obj1 = 0 ;
21711 char *kwnames[] = {
21712 (char *) "self",(char *) "other", NULL
21713 };
21714
21715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
21716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21717 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21718 if (arg2 == NULL) {
21719 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21720 }
21721 {
21722 PyThreadState* __tstate = wxPyBeginAllowThreads();
21723 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2);
21724
21725 wxPyEndAllowThreads(__tstate);
21726 if (PyErr_Occurred()) SWIG_fail;
21727 }
02a34c4c 21728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21729 return resultobj;
21730 fail:
21731 return NULL;
21732}
21733
21734
21735static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
21736 PyObject *resultobj;
21737 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21738 wxTimeSpan *arg2 = 0 ;
21739 bool result;
21740 PyObject * obj0 = 0 ;
21741 PyObject * obj1 = 0 ;
21742 char *kwnames[] = {
21743 (char *) "self",(char *) "other", NULL
21744 };
21745
21746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
21747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21748 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21749 if (arg2 == NULL) {
21750 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21751 }
21752 {
21753 PyThreadState* __tstate = wxPyBeginAllowThreads();
21754 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2);
21755
21756 wxPyEndAllowThreads(__tstate);
21757 if (PyErr_Occurred()) SWIG_fail;
21758 }
02a34c4c 21759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21760 return resultobj;
21761 fail:
21762 return NULL;
21763}
21764
21765
21766static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
21767 PyObject *resultobj;
21768 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21769 wxTimeSpan *arg2 = 0 ;
21770 bool result;
21771 PyObject * obj0 = 0 ;
21772 PyObject * obj1 = 0 ;
21773 char *kwnames[] = {
21774 (char *) "self",(char *) "other", NULL
21775 };
21776
21777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
21778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21779 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21780 if (arg2 == NULL) {
21781 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21782 }
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2);
21786
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
02a34c4c 21790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21791 return resultobj;
21792 fail:
21793 return NULL;
21794}
21795
21796
21797static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
21798 PyObject *resultobj;
21799 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21800 wxTimeSpan *arg2 = 0 ;
21801 bool result;
21802 PyObject * obj0 = 0 ;
21803 PyObject * obj1 = 0 ;
21804 char *kwnames[] = {
21805 (char *) "self",(char *) "other", NULL
21806 };
21807
21808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
21809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21810 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21811 if (arg2 == NULL) {
21812 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21813 }
21814 {
21815 PyThreadState* __tstate = wxPyBeginAllowThreads();
21816 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2);
21817
21818 wxPyEndAllowThreads(__tstate);
21819 if (PyErr_Occurred()) SWIG_fail;
21820 }
02a34c4c 21821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21822 return resultobj;
21823 fail:
21824 return NULL;
21825}
21826
21827
21828static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
21829 PyObject *resultobj;
21830 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21831 bool result;
21832 PyObject * obj0 = 0 ;
21833 char *kwnames[] = {
21834 (char *) "self", NULL
21835 };
21836
21837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
21838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21839 {
21840 PyThreadState* __tstate = wxPyBeginAllowThreads();
21841 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
21842
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
02a34c4c 21846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21847 return resultobj;
21848 fail:
21849 return NULL;
21850}
21851
21852
21853static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
21854 PyObject *resultobj;
21855 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21856 bool result;
21857 PyObject * obj0 = 0 ;
21858 char *kwnames[] = {
21859 (char *) "self", NULL
21860 };
21861
21862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
21863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21864 {
21865 PyThreadState* __tstate = wxPyBeginAllowThreads();
21866 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
21867
21868 wxPyEndAllowThreads(__tstate);
21869 if (PyErr_Occurred()) SWIG_fail;
21870 }
02a34c4c 21871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21872 return resultobj;
21873 fail:
21874 return NULL;
21875}
21876
21877
21878static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj;
21880 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21881 bool result;
21882 PyObject * obj0 = 0 ;
21883 char *kwnames[] = {
21884 (char *) "self", NULL
21885 };
21886
21887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
21888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21889 {
21890 PyThreadState* __tstate = wxPyBeginAllowThreads();
21891 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
21892
21893 wxPyEndAllowThreads(__tstate);
21894 if (PyErr_Occurred()) SWIG_fail;
21895 }
02a34c4c 21896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21897 return resultobj;
21898 fail:
21899 return NULL;
21900}
21901
21902
21903static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj;
21905 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21906 wxTimeSpan *arg2 = 0 ;
21907 bool result;
21908 PyObject * obj0 = 0 ;
21909 PyObject * obj1 = 0 ;
21910 char *kwnames[] = {
21911 (char *) "self",(char *) "ts", NULL
21912 };
21913
21914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
21915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21916 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21917 if (arg2 == NULL) {
21918 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21919 }
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
21922 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
21923
21924 wxPyEndAllowThreads(__tstate);
21925 if (PyErr_Occurred()) SWIG_fail;
21926 }
02a34c4c 21927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21928 return resultobj;
21929 fail:
21930 return NULL;
21931}
21932
21933
21934static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
21935 PyObject *resultobj;
21936 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21937 wxTimeSpan *arg2 = 0 ;
21938 bool result;
21939 PyObject * obj0 = 0 ;
21940 PyObject * obj1 = 0 ;
21941 char *kwnames[] = {
21942 (char *) "self",(char *) "ts", NULL
21943 };
21944
21945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
21946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21947 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21948 if (arg2 == NULL) {
21949 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21950 }
21951 {
21952 PyThreadState* __tstate = wxPyBeginAllowThreads();
21953 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
21954
21955 wxPyEndAllowThreads(__tstate);
21956 if (PyErr_Occurred()) SWIG_fail;
21957 }
02a34c4c 21958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21959 return resultobj;
21960 fail:
21961 return NULL;
21962}
21963
21964
21965static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
21966 PyObject *resultobj;
21967 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21968 wxTimeSpan *arg2 = 0 ;
21969 bool result;
21970 PyObject * obj0 = 0 ;
21971 PyObject * obj1 = 0 ;
21972 char *kwnames[] = {
21973 (char *) "self",(char *) "t", NULL
21974 };
21975
21976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
21977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21978 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21979 if (arg2 == NULL) {
21980 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21981 }
21982 {
21983 PyThreadState* __tstate = wxPyBeginAllowThreads();
21984 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
21985
21986 wxPyEndAllowThreads(__tstate);
21987 if (PyErr_Occurred()) SWIG_fail;
21988 }
02a34c4c 21989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
21990 return resultobj;
21991 fail:
21992 return NULL;
21993}
21994
21995
21996static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21997 PyObject *resultobj;
21998 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21999 int result;
22000 PyObject * obj0 = 0 ;
22001 char *kwnames[] = {
22002 (char *) "self", NULL
22003 };
22004
22005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22007 {
22008 PyThreadState* __tstate = wxPyBeginAllowThreads();
22009 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22010
22011 wxPyEndAllowThreads(__tstate);
22012 if (PyErr_Occurred()) SWIG_fail;
22013 }
8edf1c75 22014 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22015 return resultobj;
22016 fail:
22017 return NULL;
22018}
22019
22020
22021static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22022 PyObject *resultobj;
22023 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22024 int result;
22025 PyObject * obj0 = 0 ;
22026 char *kwnames[] = {
22027 (char *) "self", NULL
22028 };
22029
22030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22032 {
22033 PyThreadState* __tstate = wxPyBeginAllowThreads();
22034 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22035
22036 wxPyEndAllowThreads(__tstate);
22037 if (PyErr_Occurred()) SWIG_fail;
22038 }
8edf1c75 22039 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22040 return resultobj;
22041 fail:
22042 return NULL;
22043}
22044
22045
22046static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22047 PyObject *resultobj;
22048 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22049 int result;
22050 PyObject * obj0 = 0 ;
22051 char *kwnames[] = {
22052 (char *) "self", NULL
22053 };
22054
22055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22057 {
22058 PyThreadState* __tstate = wxPyBeginAllowThreads();
22059 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22060
22061 wxPyEndAllowThreads(__tstate);
22062 if (PyErr_Occurred()) SWIG_fail;
22063 }
8edf1c75 22064 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22065 return resultobj;
22066 fail:
22067 return NULL;
22068}
22069
22070
22071static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22072 PyObject *resultobj;
22073 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22074 int result;
22075 PyObject * obj0 = 0 ;
22076 char *kwnames[] = {
22077 (char *) "self", NULL
22078 };
22079
22080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22081 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22082 {
22083 PyThreadState* __tstate = wxPyBeginAllowThreads();
22084 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22085
22086 wxPyEndAllowThreads(__tstate);
22087 if (PyErr_Occurred()) SWIG_fail;
22088 }
8edf1c75 22089 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22090 return resultobj;
22091 fail:
22092 return NULL;
22093}
22094
22095
22096static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22097 PyObject *resultobj;
22098 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22099 wxLongLong result;
22100 PyObject * obj0 = 0 ;
22101 char *kwnames[] = {
22102 (char *) "self", NULL
22103 };
22104
22105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22107 {
22108 PyThreadState* __tstate = wxPyBeginAllowThreads();
22109 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22110
22111 wxPyEndAllowThreads(__tstate);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 }
22114 {
22115 PyObject *hi, *lo, *shifter, *shifted;
22116 hi = PyLong_FromLong( (&result)->GetHi() );
22117 lo = PyLong_FromLong( (&result)->GetLo() );
22118 shifter = PyLong_FromLong(32);
22119 shifted = PyNumber_Lshift(hi, shifter);
22120 resultobj = PyNumber_Or(shifted, lo);
22121 Py_DECREF(hi);
22122 Py_DECREF(lo);
22123 Py_DECREF(shifter);
22124 Py_DECREF(shifted);
22125 }
22126 return resultobj;
22127 fail:
22128 return NULL;
22129}
22130
22131
22132static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22133 PyObject *resultobj;
22134 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22135 wxLongLong result;
22136 PyObject * obj0 = 0 ;
22137 char *kwnames[] = {
22138 (char *) "self", NULL
22139 };
22140
22141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22143 {
22144 PyThreadState* __tstate = wxPyBeginAllowThreads();
22145 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22146
22147 wxPyEndAllowThreads(__tstate);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 }
22150 {
22151 PyObject *hi, *lo, *shifter, *shifted;
22152 hi = PyLong_FromLong( (&result)->GetHi() );
22153 lo = PyLong_FromLong( (&result)->GetLo() );
22154 shifter = PyLong_FromLong(32);
22155 shifted = PyNumber_Lshift(hi, shifter);
22156 resultobj = PyNumber_Or(shifted, lo);
22157 Py_DECREF(hi);
22158 Py_DECREF(lo);
22159 Py_DECREF(shifter);
22160 Py_DECREF(shifted);
22161 }
22162 return resultobj;
22163 fail:
22164 return NULL;
22165}
22166
22167
22168static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22169 PyObject *resultobj;
22170 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22171 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22172 wxString *arg2 = (wxString *) &arg2_defvalue ;
22173 wxString result;
423f194a 22174 bool temp2 = False ;
d14a1e28
RD
22175 PyObject * obj0 = 0 ;
22176 PyObject * obj1 = 0 ;
22177 char *kwnames[] = {
22178 (char *) "self",(char *) "format", NULL
22179 };
22180
22181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22183 if (obj1) {
22184 {
22185 arg2 = wxString_in_helper(obj1);
22186 if (arg2 == NULL) SWIG_fail;
423f194a 22187 temp2 = True;
d14a1e28
RD
22188 }
22189 }
22190 {
22191 PyThreadState* __tstate = wxPyBeginAllowThreads();
22192 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22193
22194 wxPyEndAllowThreads(__tstate);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 {
22198#if wxUSE_UNICODE
22199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22200#else
22201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22202#endif
22203 }
22204 {
22205 if (temp2)
22206 delete arg2;
22207 }
22208 return resultobj;
22209 fail:
22210 {
22211 if (temp2)
22212 delete arg2;
22213 }
22214 return NULL;
22215}
22216
22217
22218static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22219 PyObject *obj;
22220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22221 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22222 Py_INCREF(obj);
22223 return Py_BuildValue((char *)"");
22224}
22225static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22226 PyObject *resultobj;
22227 int arg1 = (int) 0 ;
22228 int arg2 = (int) 0 ;
22229 int arg3 = (int) 0 ;
22230 int arg4 = (int) 0 ;
22231 wxDateSpan *result;
8edf1c75
RD
22232 PyObject * obj0 = 0 ;
22233 PyObject * obj1 = 0 ;
22234 PyObject * obj2 = 0 ;
22235 PyObject * obj3 = 0 ;
d14a1e28
RD
22236 char *kwnames[] = {
22237 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22238 };
22239
8edf1c75
RD
22240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22241 if (obj0) {
22242 {
22243 arg1 = (int) SWIG_PyObj_AsInt(obj0);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 }
22247 if (obj1) {
22248 {
22249 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 }
22253 if (obj2) {
22254 {
22255 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22256 if (PyErr_Occurred()) SWIG_fail;
22257 }
22258 }
22259 if (obj3) {
22260 {
22261 arg4 = (int) SWIG_PyObj_AsInt(obj3);
22262 if (PyErr_Occurred()) SWIG_fail;
22263 }
22264 }
d14a1e28
RD
22265 {
22266 PyThreadState* __tstate = wxPyBeginAllowThreads();
22267 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22268
22269 wxPyEndAllowThreads(__tstate);
22270 if (PyErr_Occurred()) SWIG_fail;
22271 }
22272 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1);
22273 return resultobj;
22274 fail:
22275 return NULL;
22276}
22277
22278
22279static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22280 PyObject *resultobj;
22281 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22282 PyObject * obj0 = 0 ;
22283 char *kwnames[] = {
22284 (char *) "self", NULL
22285 };
22286
22287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22289 {
22290 PyThreadState* __tstate = wxPyBeginAllowThreads();
22291 delete arg1;
22292
22293 wxPyEndAllowThreads(__tstate);
22294 if (PyErr_Occurred()) SWIG_fail;
22295 }
22296 Py_INCREF(Py_None); resultobj = Py_None;
22297 return resultobj;
22298 fail:
22299 return NULL;
22300}
22301
22302
22303static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22304 PyObject *resultobj;
22305 int arg1 ;
22306 wxDateSpan result;
8edf1c75 22307 PyObject * obj0 = 0 ;
d14a1e28
RD
22308 char *kwnames[] = {
22309 (char *) "days", NULL
22310 };
22311
8edf1c75
RD
22312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22313 {
22314 arg1 = (int) SWIG_PyObj_AsInt(obj0);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
d14a1e28
RD
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 result = wxDateSpan::Days(arg1);
22320
22321 wxPyEndAllowThreads(__tstate);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 }
22324 {
22325 wxDateSpan * resultptr;
22326 resultptr = new wxDateSpan((wxDateSpan &) result);
22327 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
22328 }
22329 return resultobj;
22330 fail:
22331 return NULL;
22332}
22333
22334
22335static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj;
22337 wxDateSpan result;
22338 char *kwnames[] = {
22339 NULL
22340 };
22341
22342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22343 {
22344 PyThreadState* __tstate = wxPyBeginAllowThreads();
22345 result = wxDateSpan::Day();
22346
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 {
22351 wxDateSpan * resultptr;
22352 resultptr = new wxDateSpan((wxDateSpan &) result);
22353 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
22354 }
22355 return resultobj;
22356 fail:
22357 return NULL;
22358}
22359
22360
22361static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22362 PyObject *resultobj;
22363 int arg1 ;
22364 wxDateSpan result;
8edf1c75 22365 PyObject * obj0 = 0 ;
d14a1e28
RD
22366 char *kwnames[] = {
22367 (char *) "weeks", NULL
22368 };
22369
8edf1c75
RD
22370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22371 {
22372 arg1 = (int) SWIG_PyObj_AsInt(obj0);
22373 if (PyErr_Occurred()) SWIG_fail;
22374 }
d14a1e28
RD
22375 {
22376 PyThreadState* __tstate = wxPyBeginAllowThreads();
22377 result = wxDateSpan::Weeks(arg1);
22378
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 {
22383 wxDateSpan * resultptr;
22384 resultptr = new wxDateSpan((wxDateSpan &) result);
22385 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
22386 }
22387 return resultobj;
22388 fail:
22389 return NULL;
22390}
22391
22392
22393static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22394 PyObject *resultobj;
22395 wxDateSpan result;
22396 char *kwnames[] = {
22397 NULL
22398 };
22399
22400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22401 {
22402 PyThreadState* __tstate = wxPyBeginAllowThreads();
22403 result = wxDateSpan::Week();
22404
22405 wxPyEndAllowThreads(__tstate);
22406 if (PyErr_Occurred()) SWIG_fail;
22407 }
22408 {
22409 wxDateSpan * resultptr;
22410 resultptr = new wxDateSpan((wxDateSpan &) result);
22411 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
22412 }
22413 return resultobj;
22414 fail:
22415 return NULL;
22416}
22417
22418
22419static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22420 PyObject *resultobj;
22421 int arg1 ;
22422 wxDateSpan result;
8edf1c75 22423 PyObject * obj0 = 0 ;
d14a1e28
RD
22424 char *kwnames[] = {
22425 (char *) "mon", NULL
22426 };
22427
8edf1c75
RD
22428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22429 {
22430 arg1 = (int) SWIG_PyObj_AsInt(obj0);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
d14a1e28
RD
22433 {
22434 PyThreadState* __tstate = wxPyBeginAllowThreads();
22435 result = wxDateSpan::Months(arg1);
22436
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 {
22441 wxDateSpan * resultptr;
22442 resultptr = new wxDateSpan((wxDateSpan &) result);
22443 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
22444 }
22445 return resultobj;
22446 fail:
22447 return NULL;
22448}
22449
22450
22451static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22452 PyObject *resultobj;
22453 wxDateSpan result;
22454 char *kwnames[] = {
22455 NULL
22456 };
22457
22458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22459 {
22460 PyThreadState* __tstate = wxPyBeginAllowThreads();
22461 result = wxDateSpan::Month();
22462
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 {
22467 wxDateSpan * resultptr;
22468 resultptr = new wxDateSpan((wxDateSpan &) result);
22469 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
22470 }
22471 return resultobj;
22472 fail:
22473 return NULL;
22474}
22475
22476
22477static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22478 PyObject *resultobj;
22479 int arg1 ;
22480 wxDateSpan result;
8edf1c75 22481 PyObject * obj0 = 0 ;
d14a1e28
RD
22482 char *kwnames[] = {
22483 (char *) "years", NULL
22484 };
22485
8edf1c75
RD
22486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22487 {
22488 arg1 = (int) SWIG_PyObj_AsInt(obj0);
22489 if (PyErr_Occurred()) SWIG_fail;
22490 }
d14a1e28
RD
22491 {
22492 PyThreadState* __tstate = wxPyBeginAllowThreads();
22493 result = wxDateSpan::Years(arg1);
22494
22495 wxPyEndAllowThreads(__tstate);
22496 if (PyErr_Occurred()) SWIG_fail;
22497 }
22498 {
22499 wxDateSpan * resultptr;
22500 resultptr = new wxDateSpan((wxDateSpan &) result);
22501 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
22502 }
22503 return resultobj;
22504 fail:
22505 return NULL;
22506}
22507
22508
22509static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22510 PyObject *resultobj;
22511 wxDateSpan result;
22512 char *kwnames[] = {
22513 NULL
22514 };
22515
22516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22517 {
22518 PyThreadState* __tstate = wxPyBeginAllowThreads();
22519 result = wxDateSpan::Year();
22520
22521 wxPyEndAllowThreads(__tstate);
22522 if (PyErr_Occurred()) SWIG_fail;
22523 }
22524 {
22525 wxDateSpan * resultptr;
22526 resultptr = new wxDateSpan((wxDateSpan &) result);
22527 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
22528 }
22529 return resultobj;
22530 fail:
22531 return NULL;
22532}
22533
22534
22535static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22536 PyObject *resultobj;
22537 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22538 int arg2 ;
22539 wxDateSpan *result;
22540 PyObject * obj0 = 0 ;
8edf1c75 22541 PyObject * obj1 = 0 ;
d14a1e28
RD
22542 char *kwnames[] = {
22543 (char *) "self",(char *) "n", NULL
22544 };
22545
8edf1c75 22546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22548 {
22549 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
d14a1e28
RD
22552 {
22553 PyThreadState* __tstate = wxPyBeginAllowThreads();
22554 {
22555 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22556 result = (wxDateSpan *) &_result_ref;
22557 }
22558
22559 wxPyEndAllowThreads(__tstate);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 }
22562 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22563 return resultobj;
22564 fail:
22565 return NULL;
22566}
22567
22568
22569static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22570 PyObject *resultobj;
22571 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22572 int arg2 ;
22573 wxDateSpan *result;
22574 PyObject * obj0 = 0 ;
8edf1c75 22575 PyObject * obj1 = 0 ;
d14a1e28
RD
22576 char *kwnames[] = {
22577 (char *) "self",(char *) "n", NULL
22578 };
22579
8edf1c75 22580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22582 {
22583 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
d14a1e28
RD
22586 {
22587 PyThreadState* __tstate = wxPyBeginAllowThreads();
22588 {
22589 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22590 result = (wxDateSpan *) &_result_ref;
22591 }
22592
22593 wxPyEndAllowThreads(__tstate);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 }
22596 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22597 return resultobj;
22598 fail:
22599 return NULL;
22600}
22601
22602
22603static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22604 PyObject *resultobj;
22605 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22606 int arg2 ;
22607 wxDateSpan *result;
22608 PyObject * obj0 = 0 ;
8edf1c75 22609 PyObject * obj1 = 0 ;
d14a1e28
RD
22610 char *kwnames[] = {
22611 (char *) "self",(char *) "n", NULL
22612 };
22613
8edf1c75 22614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22616 {
22617 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22618 if (PyErr_Occurred()) SWIG_fail;
22619 }
d14a1e28
RD
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 {
22623 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22624 result = (wxDateSpan *) &_result_ref;
22625 }
22626
22627 wxPyEndAllowThreads(__tstate);
22628 if (PyErr_Occurred()) SWIG_fail;
22629 }
22630 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22631 return resultobj;
22632 fail:
22633 return NULL;
22634}
22635
22636
22637static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22638 PyObject *resultobj;
22639 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22640 int arg2 ;
22641 wxDateSpan *result;
22642 PyObject * obj0 = 0 ;
8edf1c75 22643 PyObject * obj1 = 0 ;
d14a1e28
RD
22644 char *kwnames[] = {
22645 (char *) "self",(char *) "n", NULL
22646 };
22647
8edf1c75 22648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22650 {
22651 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
d14a1e28
RD
22654 {
22655 PyThreadState* __tstate = wxPyBeginAllowThreads();
22656 {
22657 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
22658 result = (wxDateSpan *) &_result_ref;
22659 }
22660
22661 wxPyEndAllowThreads(__tstate);
22662 if (PyErr_Occurred()) SWIG_fail;
22663 }
22664 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22665 return resultobj;
22666 fail:
22667 return NULL;
22668}
22669
22670
22671static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22672 PyObject *resultobj;
22673 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22674 int result;
22675 PyObject * obj0 = 0 ;
22676 char *kwnames[] = {
22677 (char *) "self", NULL
22678 };
22679
22680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
22681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22682 {
22683 PyThreadState* __tstate = wxPyBeginAllowThreads();
22684 result = (int)((wxDateSpan const *)arg1)->GetYears();
22685
22686 wxPyEndAllowThreads(__tstate);
22687 if (PyErr_Occurred()) SWIG_fail;
22688 }
8edf1c75 22689 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22690 return resultobj;
22691 fail:
22692 return NULL;
22693}
22694
22695
22696static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22697 PyObject *resultobj;
22698 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22699 int result;
22700 PyObject * obj0 = 0 ;
22701 char *kwnames[] = {
22702 (char *) "self", NULL
22703 };
22704
22705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
22706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 result = (int)((wxDateSpan const *)arg1)->GetMonths();
22710
22711 wxPyEndAllowThreads(__tstate);
22712 if (PyErr_Occurred()) SWIG_fail;
22713 }
8edf1c75 22714 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22715 return resultobj;
22716 fail:
22717 return NULL;
22718}
22719
22720
22721static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22722 PyObject *resultobj;
22723 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22724 int result;
22725 PyObject * obj0 = 0 ;
22726 char *kwnames[] = {
22727 (char *) "self", NULL
22728 };
22729
22730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
22731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22732 {
22733 PyThreadState* __tstate = wxPyBeginAllowThreads();
22734 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
22735
22736 wxPyEndAllowThreads(__tstate);
22737 if (PyErr_Occurred()) SWIG_fail;
22738 }
8edf1c75 22739 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22740 return resultobj;
22741 fail:
22742 return NULL;
22743}
22744
22745
22746static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22747 PyObject *resultobj;
22748 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22749 int result;
22750 PyObject * obj0 = 0 ;
22751 char *kwnames[] = {
22752 (char *) "self", NULL
22753 };
22754
22755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
22756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22757 {
22758 PyThreadState* __tstate = wxPyBeginAllowThreads();
22759 result = (int)((wxDateSpan const *)arg1)->GetDays();
22760
22761 wxPyEndAllowThreads(__tstate);
22762 if (PyErr_Occurred()) SWIG_fail;
22763 }
8edf1c75 22764 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22765 return resultobj;
22766 fail:
22767 return NULL;
22768}
22769
22770
22771static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22772 PyObject *resultobj;
22773 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22774 int result;
22775 PyObject * obj0 = 0 ;
22776 char *kwnames[] = {
22777 (char *) "self", NULL
22778 };
22779
22780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
22781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22782 {
22783 PyThreadState* __tstate = wxPyBeginAllowThreads();
22784 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
22785
22786 wxPyEndAllowThreads(__tstate);
22787 if (PyErr_Occurred()) SWIG_fail;
22788 }
8edf1c75 22789 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22790 return resultobj;
22791 fail:
22792 return NULL;
22793}
22794
22795
22796static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
22797 PyObject *resultobj;
22798 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22799 wxDateSpan *arg2 = 0 ;
22800 wxDateSpan *result;
22801 PyObject * obj0 = 0 ;
22802 PyObject * obj1 = 0 ;
22803 char *kwnames[] = {
22804 (char *) "self",(char *) "other", NULL
22805 };
22806
22807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
22808 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22809 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22810 if (arg2 == NULL) {
22811 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22812 }
22813 {
22814 PyThreadState* __tstate = wxPyBeginAllowThreads();
22815 {
22816 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
22817 result = (wxDateSpan *) &_result_ref;
22818 }
22819
22820 wxPyEndAllowThreads(__tstate);
22821 if (PyErr_Occurred()) SWIG_fail;
22822 }
22823 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22824 return resultobj;
22825 fail:
22826 return NULL;
22827}
22828
22829
22830static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
22831 PyObject *resultobj;
22832 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22833 wxDateSpan *arg2 = 0 ;
22834 wxDateSpan *result;
22835 PyObject * obj0 = 0 ;
22836 PyObject * obj1 = 0 ;
22837 char *kwnames[] = {
22838 (char *) "self",(char *) "other", NULL
22839 };
22840
22841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
22842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22843 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22844 if (arg2 == NULL) {
22845 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22846 }
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 {
22850 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
22851 result = (wxDateSpan *) &_result_ref;
22852 }
22853
22854 wxPyEndAllowThreads(__tstate);
22855 if (PyErr_Occurred()) SWIG_fail;
22856 }
22857 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22858 return resultobj;
22859 fail:
22860 return NULL;
22861}
22862
22863
22864static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
22865 PyObject *resultobj;
22866 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22867 wxDateSpan *result;
22868 PyObject * obj0 = 0 ;
22869 char *kwnames[] = {
22870 (char *) "self", NULL
22871 };
22872
22873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
22874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22875 {
22876 PyThreadState* __tstate = wxPyBeginAllowThreads();
22877 {
22878 wxDateSpan &_result_ref = (arg1)->Neg();
22879 result = (wxDateSpan *) &_result_ref;
22880 }
22881
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22886 return resultobj;
22887 fail:
22888 return NULL;
22889}
22890
22891
22892static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj;
22894 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22895 int arg2 ;
22896 wxDateSpan *result;
22897 PyObject * obj0 = 0 ;
8edf1c75 22898 PyObject * obj1 = 0 ;
d14a1e28
RD
22899 char *kwnames[] = {
22900 (char *) "self",(char *) "factor", NULL
22901 };
22902
8edf1c75 22903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22905 {
22906 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
d14a1e28
RD
22909 {
22910 PyThreadState* __tstate = wxPyBeginAllowThreads();
22911 {
22912 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
22913 result = (wxDateSpan *) &_result_ref;
22914 }
22915
22916 wxPyEndAllowThreads(__tstate);
22917 if (PyErr_Occurred()) SWIG_fail;
22918 }
22919 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22920 return resultobj;
22921 fail:
22922 return NULL;
22923}
22924
22925
22926static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj;
22928 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22929 wxDateSpan *arg2 = 0 ;
22930 wxDateSpan *result;
22931 PyObject * obj0 = 0 ;
22932 PyObject * obj1 = 0 ;
22933 char *kwnames[] = {
22934 (char *) "self",(char *) "other", NULL
22935 };
22936
22937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
22938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22939 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22940 if (arg2 == NULL) {
22941 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22942 }
22943 {
22944 PyThreadState* __tstate = wxPyBeginAllowThreads();
22945 {
22946 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
22947 result = (wxDateSpan *) &_result_ref;
22948 }
22949
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22954 return resultobj;
22955 fail:
22956 return NULL;
22957}
22958
22959
22960static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22961 PyObject *resultobj;
22962 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22963 wxDateSpan *arg2 = 0 ;
22964 wxDateSpan *result;
22965 PyObject * obj0 = 0 ;
22966 PyObject * obj1 = 0 ;
22967 char *kwnames[] = {
22968 (char *) "self",(char *) "other", NULL
22969 };
22970
22971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22973 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22974 if (arg2 == NULL) {
22975 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22976 }
22977 {
22978 PyThreadState* __tstate = wxPyBeginAllowThreads();
22979 {
22980 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
22981 result = (wxDateSpan *) &_result_ref;
22982 }
22983
22984 wxPyEndAllowThreads(__tstate);
22985 if (PyErr_Occurred()) SWIG_fail;
22986 }
22987 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
22988 return resultobj;
22989 fail:
22990 return NULL;
22991}
22992
22993
22994static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
22995 PyObject *resultobj;
22996 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22997 wxDateSpan *result;
22998 PyObject * obj0 = 0 ;
22999 char *kwnames[] = {
23000 (char *) "self", NULL
23001 };
23002
23003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23005 {
23006 PyThreadState* __tstate = wxPyBeginAllowThreads();
23007 {
23008 wxDateSpan &_result_ref = (arg1)->operator -();
23009 result = (wxDateSpan *) &_result_ref;
23010 }
23011
23012 wxPyEndAllowThreads(__tstate);
23013 if (PyErr_Occurred()) SWIG_fail;
23014 }
23015 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
23016 return resultobj;
23017 fail:
23018 return NULL;
23019}
23020
23021
23022static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23023 PyObject *resultobj;
23024 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23025 int arg2 ;
23026 wxDateSpan *result;
23027 PyObject * obj0 = 0 ;
8edf1c75 23028 PyObject * obj1 = 0 ;
d14a1e28
RD
23029 char *kwnames[] = {
23030 (char *) "self",(char *) "factor", NULL
23031 };
23032
8edf1c75 23033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 23034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23035 {
23036 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
d14a1e28
RD
23039 {
23040 PyThreadState* __tstate = wxPyBeginAllowThreads();
23041 {
23042 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23043 result = (wxDateSpan *) &_result_ref;
23044 }
23045
23046 wxPyEndAllowThreads(__tstate);
23047 if (PyErr_Occurred()) SWIG_fail;
23048 }
23049 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
23050 return resultobj;
23051 fail:
23052 return NULL;
23053}
23054
23055
23056static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23057 PyObject *resultobj;
23058 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23059 wxDateSpan *arg2 = 0 ;
23060 wxDateSpan result;
23061 PyObject * obj0 = 0 ;
23062 PyObject * obj1 = 0 ;
23063 char *kwnames[] = {
23064 (char *) "self",(char *) "other", NULL
23065 };
23066
23067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23069 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23070 if (arg2 == NULL) {
23071 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23072 }
23073 {
23074 PyThreadState* __tstate = wxPyBeginAllowThreads();
23075 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23076
23077 wxPyEndAllowThreads(__tstate);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 }
23080 {
23081 wxDateSpan * resultptr;
23082 resultptr = new wxDateSpan((wxDateSpan &) result);
23083 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
23084 }
23085 return resultobj;
23086 fail:
23087 return NULL;
23088}
23089
23090
23091static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23092 PyObject *resultobj;
23093 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23094 wxDateSpan *arg2 = 0 ;
23095 wxDateSpan result;
23096 PyObject * obj0 = 0 ;
23097 PyObject * obj1 = 0 ;
23098 char *kwnames[] = {
23099 (char *) "self",(char *) "other", NULL
23100 };
23101
23102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23104 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23105 if (arg2 == NULL) {
23106 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23107 }
23108 {
23109 PyThreadState* __tstate = wxPyBeginAllowThreads();
23110 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23111
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 {
23116 wxDateSpan * resultptr;
23117 resultptr = new wxDateSpan((wxDateSpan &) result);
23118 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
23119 }
23120 return resultobj;
23121 fail:
23122 return NULL;
23123}
23124
23125
23126static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23127 PyObject *resultobj;
23128 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23129 int arg2 ;
23130 wxDateSpan result;
23131 PyObject * obj0 = 0 ;
8edf1c75 23132 PyObject * obj1 = 0 ;
d14a1e28
RD
23133 char *kwnames[] = {
23134 (char *) "self",(char *) "n", NULL
23135 };
23136
8edf1c75 23137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 23138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23139 {
23140 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 }
d14a1e28
RD
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = wxDateSpan___mul__(arg1,arg2);
23146
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 {
23151 wxDateSpan * resultptr;
23152 resultptr = new wxDateSpan((wxDateSpan &) result);
23153 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
23154 }
23155 return resultobj;
23156 fail:
23157 return NULL;
23158}
23159
23160
23161static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23162 PyObject *resultobj;
23163 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23164 int arg2 ;
23165 wxDateSpan result;
23166 PyObject * obj0 = 0 ;
8edf1c75 23167 PyObject * obj1 = 0 ;
d14a1e28
RD
23168 char *kwnames[] = {
23169 (char *) "self",(char *) "n", NULL
23170 };
23171
8edf1c75 23172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 23173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23174 {
23175 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
d14a1e28
RD
23178 {
23179 PyThreadState* __tstate = wxPyBeginAllowThreads();
23180 result = wxDateSpan___rmul__(arg1,arg2);
23181
23182 wxPyEndAllowThreads(__tstate);
23183 if (PyErr_Occurred()) SWIG_fail;
23184 }
23185 {
23186 wxDateSpan * resultptr;
23187 resultptr = new wxDateSpan((wxDateSpan &) result);
23188 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
23189 }
23190 return resultobj;
23191 fail:
23192 return NULL;
23193}
23194
23195
23196static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23197 PyObject *resultobj;
23198 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23199 wxDateSpan *arg2 = 0 ;
23200 bool result;
23201 PyObject * obj0 = 0 ;
23202 PyObject * obj1 = 0 ;
23203 char *kwnames[] = {
23204 (char *) "self",(char *) "other", NULL
23205 };
23206
23207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23209 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23210 if (arg2 == NULL) {
23211 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23212 }
23213 {
23214 PyThreadState* __tstate = wxPyBeginAllowThreads();
23215 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2);
23216
23217 wxPyEndAllowThreads(__tstate);
23218 if (PyErr_Occurred()) SWIG_fail;
23219 }
02a34c4c 23220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23221 return resultobj;
23222 fail:
23223 return NULL;
23224}
23225
23226
23227static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23228 PyObject *resultobj;
23229 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23230 wxDateSpan *arg2 = 0 ;
23231 bool result;
23232 PyObject * obj0 = 0 ;
23233 PyObject * obj1 = 0 ;
23234 char *kwnames[] = {
23235 (char *) "self",(char *) "other", NULL
23236 };
23237
23238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23240 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23241 if (arg2 == NULL) {
23242 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23243 }
23244 {
23245 PyThreadState* __tstate = wxPyBeginAllowThreads();
23246 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2);
23247
23248 wxPyEndAllowThreads(__tstate);
23249 if (PyErr_Occurred()) SWIG_fail;
23250 }
02a34c4c 23251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23252 return resultobj;
23253 fail:
23254 return NULL;
23255}
23256
23257
23258static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23259 PyObject *obj;
23260 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23261 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23262 Py_INCREF(obj);
23263 return Py_BuildValue((char *)"");
23264}
23265static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23266 PyObject *resultobj;
23267 long result;
23268 char *kwnames[] = {
23269 NULL
23270 };
23271
23272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23273 {
23274 PyThreadState* __tstate = wxPyBeginAllowThreads();
23275 result = (long)wxGetLocalTime();
23276
23277 wxPyEndAllowThreads(__tstate);
23278 if (PyErr_Occurred()) SWIG_fail;
23279 }
8edf1c75 23280 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
23281 return resultobj;
23282 fail:
23283 return NULL;
23284}
23285
23286
23287static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23288 PyObject *resultobj;
23289 long result;
23290 char *kwnames[] = {
23291 NULL
23292 };
23293
23294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23295 {
23296 PyThreadState* __tstate = wxPyBeginAllowThreads();
23297 result = (long)wxGetUTCTime();
23298
23299 wxPyEndAllowThreads(__tstate);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 }
8edf1c75 23302 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
23303 return resultobj;
23304 fail:
23305 return NULL;
23306}
23307
23308
23309static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23310 PyObject *resultobj;
23311 long result;
23312 char *kwnames[] = {
23313 NULL
23314 };
23315
23316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23317 {
23318 PyThreadState* __tstate = wxPyBeginAllowThreads();
23319 result = (long)wxGetCurrentTime();
23320
23321 wxPyEndAllowThreads(__tstate);
23322 if (PyErr_Occurred()) SWIG_fail;
23323 }
8edf1c75 23324 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
23325 return resultobj;
23326 fail:
23327 return NULL;
23328}
23329
23330
23331static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23332 PyObject *resultobj;
23333 wxLongLong result;
23334 char *kwnames[] = {
23335 NULL
23336 };
23337
23338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23339 {
23340 PyThreadState* __tstate = wxPyBeginAllowThreads();
23341 result = wxGetLocalTimeMillis();
23342
23343 wxPyEndAllowThreads(__tstate);
23344 if (PyErr_Occurred()) SWIG_fail;
23345 }
23346 {
23347 PyObject *hi, *lo, *shifter, *shifted;
23348 hi = PyLong_FromLong( (&result)->GetHi() );
23349 lo = PyLong_FromLong( (&result)->GetLo() );
23350 shifter = PyLong_FromLong(32);
23351 shifted = PyNumber_Lshift(hi, shifter);
23352 resultobj = PyNumber_Or(shifted, lo);
23353 Py_DECREF(hi);
23354 Py_DECREF(lo);
23355 Py_DECREF(shifter);
23356 Py_DECREF(shifted);
23357 }
23358 return resultobj;
23359 fail:
23360 return NULL;
23361}
23362
23363
98e665d3
RD
23364static int _wrap_DefaultDateTime_set(PyObject *) {
23365 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23366 return 1;
23367}
23368
23369
23370static PyObject *_wrap_DefaultDateTime_get() {
23371 PyObject *pyobj;
23372
23373 pyobj = SWIG_NewPointerObj((void *) &wxDefaultDateTime, SWIGTYPE_p_wxDateTime, 0);
23374 return pyobj;
23375}
23376
23377
d14a1e28
RD
23378static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23379 PyObject *resultobj;
23380 int arg1 ;
23381 wxDataFormat *result;
8edf1c75 23382 PyObject * obj0 = 0 ;
d14a1e28
RD
23383 char *kwnames[] = {
23384 (char *) "type", NULL
23385 };
23386
8edf1c75
RD
23387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23388 {
23389 arg1 = (wxDataFormatId) SWIG_PyObj_AsInt(obj0);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
d14a1e28
RD
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23395
23396 wxPyEndAllowThreads(__tstate);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 }
23399 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1);
23400 return resultobj;
23401 fail:
23402 return NULL;
23403}
23404
23405
23406static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23407 PyObject *resultobj;
23408 wxString *arg1 = 0 ;
23409 wxDataFormat *result;
423f194a 23410 bool temp1 = False ;
d14a1e28
RD
23411 PyObject * obj0 = 0 ;
23412 char *kwnames[] = {
23413 (char *) "format", NULL
23414 };
23415
23416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23417 {
23418 arg1 = wxString_in_helper(obj0);
23419 if (arg1 == NULL) SWIG_fail;
423f194a 23420 temp1 = True;
d14a1e28
RD
23421 }
23422 {
23423 PyThreadState* __tstate = wxPyBeginAllowThreads();
23424 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23425
23426 wxPyEndAllowThreads(__tstate);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 }
23429 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1);
23430 {
23431 if (temp1)
23432 delete arg1;
23433 }
23434 return resultobj;
23435 fail:
23436 {
23437 if (temp1)
23438 delete arg1;
23439 }
23440 return NULL;
23441}
23442
23443
23444static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23445 PyObject *resultobj;
23446 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23447 PyObject * obj0 = 0 ;
23448 char *kwnames[] = {
23449 (char *) "self", NULL
23450 };
23451
23452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23454 {
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 delete arg1;
23457
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 Py_INCREF(Py_None); resultobj = Py_None;
23462 return resultobj;
23463 fail:
23464 return NULL;
23465}
23466
23467
23468static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23469 PyObject *resultobj;
23470 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23471 int arg2 ;
23472 bool result;
23473 PyObject * obj0 = 0 ;
8edf1c75 23474 PyObject * obj1 = 0 ;
d14a1e28 23475
8edf1c75 23476 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
d14a1e28 23477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75 23478 {
0ffb2aa6 23479 arg2 = (wxDataFormatId) SWIG_PyObj_AsInt(obj1);
8edf1c75
RD
23480 if (PyErr_Occurred()) SWIG_fail;
23481 }
d14a1e28
RD
23482 {
23483 PyThreadState* __tstate = wxPyBeginAllowThreads();
0ffb2aa6 23484 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
d14a1e28
RD
23485
23486 wxPyEndAllowThreads(__tstate);
23487 if (PyErr_Occurred()) SWIG_fail;
23488 }
02a34c4c 23489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23490 return resultobj;
23491 fail:
23492 return NULL;
23493}
23494
23495
23496static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23497 PyObject *resultobj;
23498 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23499 int arg2 ;
23500 bool result;
23501 PyObject * obj0 = 0 ;
8edf1c75 23502 PyObject * obj1 = 0 ;
d14a1e28 23503
8edf1c75 23504 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
d14a1e28 23505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75 23506 {
0ffb2aa6 23507 arg2 = (wxDataFormatId) SWIG_PyObj_AsInt(obj1);
8edf1c75
RD
23508 if (PyErr_Occurred()) SWIG_fail;
23509 }
d14a1e28
RD
23510 {
23511 PyThreadState* __tstate = wxPyBeginAllowThreads();
0ffb2aa6 23512 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
d14a1e28
RD
23513
23514 wxPyEndAllowThreads(__tstate);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 }
02a34c4c 23517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23518 return resultobj;
23519 fail:
23520 return NULL;
23521}
23522
23523
23524static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23525 PyObject *resultobj;
23526 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23527 wxDataFormat *arg2 = 0 ;
23528 bool result;
23529 PyObject * obj0 = 0 ;
23530 PyObject * obj1 = 0 ;
23531
23532 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23534 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23535 if (arg2 == NULL) {
23536 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23537 }
23538 {
23539 PyThreadState* __tstate = wxPyBeginAllowThreads();
23540 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23541
23542 wxPyEndAllowThreads(__tstate);
23543 if (PyErr_Occurred()) SWIG_fail;
23544 }
02a34c4c 23545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23546 return resultobj;
23547 fail:
23548 return NULL;
23549}
23550
23551
23552static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23553 int argc;
23554 PyObject *argv[3];
23555 int ii;
23556
23557 argc = PyObject_Length(args);
23558 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23559 argv[ii] = PyTuple_GetItem(args,ii);
23560 }
23561 if (argc == 2) {
23562 int _v;
23563 {
23564 void *ptr;
23565 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23566 _v = 0;
23567 PyErr_Clear();
23568 } else {
23569 _v = 1;
23570 }
23571 }
23572 if (_v) {
23573 {
23574 void *ptr;
23575 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23576 _v = 0;
23577 PyErr_Clear();
23578 } else {
23579 _v = 1;
23580 }
23581 }
23582 if (_v) {
23583 return _wrap_DataFormat___eq____SWIG_1(self,args);
23584 }
23585 }
23586 }
23587 if (argc == 2) {
23588 int _v;
23589 {
23590 void *ptr;
23591 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23592 _v = 0;
23593 PyErr_Clear();
23594 } else {
23595 _v = 1;
23596 }
23597 }
23598 if (_v) {
23599 {
8edf1c75 23600 SWIG_PyObj_AsInt(argv[1]);
2dbef272
RD
23601 if (PyErr_Occurred()) {
23602 _v = 0;
23603 PyErr_Clear();
23604 } else {
23605 _v = 1;
23606 }
d14a1e28
RD
23607 }
23608 if (_v) {
23609 return _wrap_DataFormat___eq____SWIG_0(self,args);
23610 }
23611 }
23612 }
23613
23614 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
23615 return NULL;
23616}
23617
23618
23619static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
23620 PyObject *resultobj;
23621 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23622 wxDataFormat *arg2 = 0 ;
23623 bool result;
23624 PyObject * obj0 = 0 ;
23625 PyObject * obj1 = 0 ;
23626
23627 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23629 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23630 if (arg2 == NULL) {
23631 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23632 }
23633 {
23634 PyThreadState* __tstate = wxPyBeginAllowThreads();
23635 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
23636
23637 wxPyEndAllowThreads(__tstate);
23638 if (PyErr_Occurred()) SWIG_fail;
23639 }
02a34c4c 23640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23641 return resultobj;
23642 fail:
23643 return NULL;
23644}
23645
23646
23647static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
23648 int argc;
23649 PyObject *argv[3];
23650 int ii;
23651
23652 argc = PyObject_Length(args);
23653 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23654 argv[ii] = PyTuple_GetItem(args,ii);
23655 }
23656 if (argc == 2) {
23657 int _v;
23658 {
23659 void *ptr;
23660 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23661 _v = 0;
23662 PyErr_Clear();
23663 } else {
23664 _v = 1;
23665 }
23666 }
23667 if (_v) {
23668 {
23669 void *ptr;
23670 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23671 _v = 0;
23672 PyErr_Clear();
23673 } else {
23674 _v = 1;
23675 }
23676 }
23677 if (_v) {
23678 return _wrap_DataFormat___ne____SWIG_1(self,args);
23679 }
23680 }
23681 }
23682 if (argc == 2) {
23683 int _v;
23684 {
23685 void *ptr;
23686 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23687 _v = 0;
23688 PyErr_Clear();
23689 } else {
23690 _v = 1;
23691 }
23692 }
23693 if (_v) {
23694 {
8edf1c75 23695 SWIG_PyObj_AsInt(argv[1]);
2dbef272
RD
23696 if (PyErr_Occurred()) {
23697 _v = 0;
23698 PyErr_Clear();
23699 } else {
23700 _v = 1;
23701 }
d14a1e28
RD
23702 }
23703 if (_v) {
23704 return _wrap_DataFormat___ne____SWIG_0(self,args);
23705 }
23706 }
23707 }
23708
23709 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
23710 return NULL;
23711}
23712
23713
23714static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
23715 PyObject *resultobj;
23716 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23717 int arg2 ;
23718 PyObject * obj0 = 0 ;
8edf1c75 23719 PyObject * obj1 = 0 ;
d14a1e28
RD
23720 char *kwnames[] = {
23721 (char *) "self",(char *) "format", NULL
23722 };
23723
8edf1c75 23724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 23725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23726 {
23727 arg2 = (wxDataFormatId) SWIG_PyObj_AsInt(obj1);
23728 if (PyErr_Occurred()) SWIG_fail;
23729 }
d14a1e28
RD
23730 {
23731 PyThreadState* __tstate = wxPyBeginAllowThreads();
23732 (arg1)->SetType((wxDataFormatId )arg2);
23733
23734 wxPyEndAllowThreads(__tstate);
23735 if (PyErr_Occurred()) SWIG_fail;
23736 }
23737 Py_INCREF(Py_None); resultobj = Py_None;
23738 return resultobj;
23739 fail:
23740 return NULL;
23741}
23742
23743
23744static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
23745 PyObject *resultobj;
23746 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23747 int result;
23748 PyObject * obj0 = 0 ;
23749 char *kwnames[] = {
23750 (char *) "self", NULL
23751 };
23752
23753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
23754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23755 {
23756 PyThreadState* __tstate = wxPyBeginAllowThreads();
23757 result = (int)((wxDataFormat const *)arg1)->GetType();
23758
23759 wxPyEndAllowThreads(__tstate);
23760 if (PyErr_Occurred()) SWIG_fail;
23761 }
8edf1c75 23762 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
23763 return resultobj;
23764 fail:
23765 return NULL;
23766}
23767
23768
23769static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23770 PyObject *resultobj;
23771 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23772 wxString result;
23773 PyObject * obj0 = 0 ;
23774 char *kwnames[] = {
23775 (char *) "self", NULL
23776 };
23777
23778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
23779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23780 {
23781 PyThreadState* __tstate = wxPyBeginAllowThreads();
23782 result = ((wxDataFormat const *)arg1)->GetId();
23783
23784 wxPyEndAllowThreads(__tstate);
23785 if (PyErr_Occurred()) SWIG_fail;
23786 }
23787 {
23788#if wxUSE_UNICODE
23789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23790#else
23791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23792#endif
23793 }
23794 return resultobj;
23795 fail:
23796 return NULL;
23797}
23798
23799
23800static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23801 PyObject *resultobj;
23802 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23803 wxString *arg2 = 0 ;
423f194a 23804 bool temp2 = False ;
d14a1e28
RD
23805 PyObject * obj0 = 0 ;
23806 PyObject * obj1 = 0 ;
23807 char *kwnames[] = {
23808 (char *) "self",(char *) "format", NULL
23809 };
23810
23811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
23812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23813 {
23814 arg2 = wxString_in_helper(obj1);
23815 if (arg2 == NULL) SWIG_fail;
423f194a 23816 temp2 = True;
d14a1e28
RD
23817 }
23818 {
23819 PyThreadState* __tstate = wxPyBeginAllowThreads();
23820 (arg1)->SetId((wxString const &)*arg2);
23821
23822 wxPyEndAllowThreads(__tstate);
23823 if (PyErr_Occurred()) SWIG_fail;
23824 }
23825 Py_INCREF(Py_None); resultobj = Py_None;
23826 {
23827 if (temp2)
23828 delete arg2;
23829 }
23830 return resultobj;
23831 fail:
23832 {
23833 if (temp2)
23834 delete arg2;
23835 }
23836 return NULL;
23837}
23838
23839
23840static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
23841 PyObject *obj;
23842 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23843 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
23844 Py_INCREF(obj);
23845 return Py_BuildValue((char *)"");
23846}
8edf1c75 23847static int _wrap_FormatInvalid_set(PyObject *) {
d14a1e28
RD
23848 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
23849 return 1;
23850}
23851
23852
23853static PyObject *_wrap_FormatInvalid_get() {
23854 PyObject *pyobj;
23855
23856 pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0);
23857 return pyobj;
23858}
23859
23860
23861static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23862 PyObject *resultobj;
23863 wxDataObject *arg1 = (wxDataObject *) 0 ;
23864 PyObject * obj0 = 0 ;
23865 char *kwnames[] = {
23866 (char *) "self", NULL
23867 };
23868
23869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
23870 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23871 {
23872 PyThreadState* __tstate = wxPyBeginAllowThreads();
23873 delete arg1;
23874
23875 wxPyEndAllowThreads(__tstate);
23876 if (PyErr_Occurred()) SWIG_fail;
23877 }
23878 Py_INCREF(Py_None); resultobj = Py_None;
23879 return resultobj;
23880 fail:
23881 return NULL;
23882}
23883
23884
23885static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23886 PyObject *resultobj;
23887 wxDataObject *arg1 = (wxDataObject *) 0 ;
23888 int arg2 = (int) wxDataObject::Get ;
23889 SwigValueWrapper< wxDataFormat > result;
23890 PyObject * obj0 = 0 ;
8edf1c75 23891 PyObject * obj1 = 0 ;
d14a1e28
RD
23892 char *kwnames[] = {
23893 (char *) "self",(char *) "dir", NULL
23894 };
23895
8edf1c75 23896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 23897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23898 if (obj1) {
23899 {
23900 arg2 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj1);
23901 if (PyErr_Occurred()) SWIG_fail;
23902 }
23903 }
d14a1e28
RD
23904 {
23905 PyThreadState* __tstate = wxPyBeginAllowThreads();
23906 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
23907
23908 wxPyEndAllowThreads(__tstate);
23909 if (PyErr_Occurred()) SWIG_fail;
23910 }
23911 {
23912 wxDataFormat * resultptr;
23913 resultptr = new wxDataFormat((wxDataFormat &) result);
23914 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1);
23915 }
23916 return resultobj;
23917 fail:
23918 return NULL;
23919}
23920
23921
23922static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
23923 PyObject *resultobj;
23924 wxDataObject *arg1 = (wxDataObject *) 0 ;
23925 int arg2 = (int) wxDataObject::Get ;
23926 size_t result;
23927 PyObject * obj0 = 0 ;
8edf1c75 23928 PyObject * obj1 = 0 ;
d14a1e28
RD
23929 char *kwnames[] = {
23930 (char *) "self",(char *) "dir", NULL
23931 };
23932
8edf1c75 23933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 23934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23935 if (obj1) {
23936 {
23937 arg2 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj1);
23938 if (PyErr_Occurred()) SWIG_fail;
23939 }
23940 }
d14a1e28
RD
23941 {
23942 PyThreadState* __tstate = wxPyBeginAllowThreads();
23943 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
23944
23945 wxPyEndAllowThreads(__tstate);
23946 if (PyErr_Occurred()) SWIG_fail;
23947 }
8edf1c75 23948 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
23949 return resultobj;
23950 fail:
23951 return NULL;
23952}
23953
23954
23955static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
23956 PyObject *resultobj;
23957 wxDataObject *arg1 = (wxDataObject *) 0 ;
23958 wxDataFormat *arg2 = 0 ;
23959 int arg3 = (int) wxDataObject::Get ;
23960 bool result;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
8edf1c75 23963 PyObject * obj2 = 0 ;
d14a1e28
RD
23964 char *kwnames[] = {
23965 (char *) "self",(char *) "format",(char *) "dir", NULL
23966 };
23967
8edf1c75 23968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
23969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23970 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23971 if (arg2 == NULL) {
23972 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23973 }
8edf1c75
RD
23974 if (obj2) {
23975 {
23976 arg3 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj2);
23977 if (PyErr_Occurred()) SWIG_fail;
23978 }
23979 }
d14a1e28
RD
23980 {
23981 PyThreadState* __tstate = wxPyBeginAllowThreads();
23982 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
23983
23984 wxPyEndAllowThreads(__tstate);
23985 if (PyErr_Occurred()) SWIG_fail;
23986 }
02a34c4c 23987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23988 return resultobj;
23989 fail:
23990 return NULL;
23991}
23992
23993
23994static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23995 PyObject *resultobj;
23996 wxDataObject *arg1 = (wxDataObject *) 0 ;
23997 wxDataFormat *arg2 = 0 ;
23998 size_t result;
23999 PyObject * obj0 = 0 ;
24000 PyObject * obj1 = 0 ;
24001 char *kwnames[] = {
24002 (char *) "self",(char *) "format", NULL
24003 };
24004
24005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24007 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24008 if (arg2 == NULL) {
24009 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24010 }
24011 {
24012 PyThreadState* __tstate = wxPyBeginAllowThreads();
24013 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24014
24015 wxPyEndAllowThreads(__tstate);
24016 if (PyErr_Occurred()) SWIG_fail;
24017 }
8edf1c75 24018 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
24019 return resultobj;
24020 fail:
24021 return NULL;
24022}
24023
24024
24025static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24026 PyObject *resultobj;
24027 wxDataObject *arg1 = (wxDataObject *) 0 ;
24028 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24029 int arg3 = (int) wxDataObject::Get ;
24030 PyObject * obj0 = 0 ;
24031 PyObject * obj1 = 0 ;
8edf1c75 24032 PyObject * obj2 = 0 ;
d14a1e28
RD
24033 char *kwnames[] = {
24034 (char *) "self",(char *) "formats",(char *) "dir", NULL
24035 };
24036
8edf1c75 24037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
24038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24039 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
24040 if (obj2) {
24041 {
24042 arg3 = (wxDataObject::Direction) SWIG_PyObj_AsInt(obj2);
24043 if (PyErr_Occurred()) SWIG_fail;
24044 }
24045 }
d14a1e28
RD
24046 {
24047 PyThreadState* __tstate = wxPyBeginAllowThreads();
24048 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24049
24050 wxPyEndAllowThreads(__tstate);
24051 if (PyErr_Occurred()) SWIG_fail;
24052 }
24053 Py_INCREF(Py_None); resultobj = Py_None;
24054 return resultobj;
24055 fail:
24056 return NULL;
24057}
24058
24059
24060static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24061 PyObject *resultobj;
24062 wxDataObject *arg1 = (wxDataObject *) 0 ;
24063 wxDataFormat *arg2 = 0 ;
24064 void *arg3 = (void *) 0 ;
24065 bool result;
24066 PyObject * obj0 = 0 ;
24067 PyObject * obj1 = 0 ;
24068 PyObject * obj2 = 0 ;
24069 char *kwnames[] = {
24070 (char *) "self",(char *) "format",(char *) "buf", NULL
24071 };
24072
24073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24075 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24076 if (arg2 == NULL) {
24077 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24078 }
24079 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24083
24084 wxPyEndAllowThreads(__tstate);
24085 if (PyErr_Occurred()) SWIG_fail;
24086 }
02a34c4c 24087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24088 return resultobj;
24089 fail:
24090 return NULL;
24091}
24092
24093
24094static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24095 PyObject *resultobj;
24096 wxDataObject *arg1 = (wxDataObject *) 0 ;
24097 wxDataFormat *arg2 = 0 ;
24098 size_t arg3 ;
24099 void *arg4 = (void *) 0 ;
24100 bool result;
24101 PyObject * obj0 = 0 ;
24102 PyObject * obj1 = 0 ;
24103 PyObject * obj2 = 0 ;
24104 PyObject * obj3 = 0 ;
24105 char *kwnames[] = {
24106 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24107 };
24108
24109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24111 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24112 if (arg2 == NULL) {
24113 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24114 }
2dbef272 24115 {
8edf1c75 24116 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
2dbef272
RD
24117 if (PyErr_Occurred()) SWIG_fail;
24118 }
d14a1e28
RD
24119 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24123
24124 wxPyEndAllowThreads(__tstate);
24125 if (PyErr_Occurred()) SWIG_fail;
24126 }
02a34c4c 24127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24128 return resultobj;
24129 fail:
24130 return NULL;
24131}
24132
24133
24134static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24135 PyObject *obj;
24136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24137 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24138 Py_INCREF(obj);
24139 return Py_BuildValue((char *)"");
24140}
24141static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24142 PyObject *resultobj;
24143 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24144 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24145 wxDataObjectSimple *result;
24146 PyObject * obj0 = 0 ;
24147 char *kwnames[] = {
24148 (char *) "format", NULL
24149 };
24150
24151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24152 if (obj0) {
24153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24154 if (arg1 == NULL) {
24155 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24156 }
24157 }
24158 {
24159 PyThreadState* __tstate = wxPyBeginAllowThreads();
24160 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24161
24162 wxPyEndAllowThreads(__tstate);
24163 if (PyErr_Occurred()) SWIG_fail;
24164 }
24165 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1);
24166 return resultobj;
24167 fail:
24168 return NULL;
24169}
24170
24171
24172static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24173 PyObject *resultobj;
24174 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24175 wxDataFormat *result;
24176 PyObject * obj0 = 0 ;
24177 char *kwnames[] = {
24178 (char *) "self", NULL
24179 };
24180
24181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24183 {
24184 PyThreadState* __tstate = wxPyBeginAllowThreads();
24185 {
24186 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24187 result = (wxDataFormat *) &_result_ref;
24188 }
24189
24190 wxPyEndAllowThreads(__tstate);
24191 if (PyErr_Occurred()) SWIG_fail;
24192 }
24193 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0);
24194 return resultobj;
24195 fail:
24196 return NULL;
24197}
24198
24199
24200static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24201 PyObject *resultobj;
24202 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24203 wxDataFormat *arg2 = 0 ;
24204 PyObject * obj0 = 0 ;
24205 PyObject * obj1 = 0 ;
24206 char *kwnames[] = {
24207 (char *) "self",(char *) "format", NULL
24208 };
24209
24210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24212 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24213 if (arg2 == NULL) {
24214 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24215 }
24216 {
24217 PyThreadState* __tstate = wxPyBeginAllowThreads();
24218 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24219
24220 wxPyEndAllowThreads(__tstate);
24221 if (PyErr_Occurred()) SWIG_fail;
24222 }
24223 Py_INCREF(Py_None); resultobj = Py_None;
24224 return resultobj;
24225 fail:
24226 return NULL;
24227}
24228
24229
24230static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24231 PyObject *obj;
24232 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24233 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24234 Py_INCREF(obj);
24235 return Py_BuildValue((char *)"");
24236}
24237static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24238 PyObject *resultobj;
24239 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24240 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24241 wxPyDataObjectSimple *result;
24242 PyObject * obj0 = 0 ;
24243 char *kwnames[] = {
24244 (char *) "format", NULL
24245 };
24246
24247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24248 if (obj0) {
24249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24250 if (arg1 == NULL) {
24251 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24252 }
24253 }
24254 {
24255 PyThreadState* __tstate = wxPyBeginAllowThreads();
24256 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24257
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1);
24262 return resultobj;
24263 fail:
24264 return NULL;
24265}
24266
24267
24268static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24269 PyObject *resultobj;
24270 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24271 PyObject *arg2 = (PyObject *) 0 ;
24272 PyObject *arg3 = (PyObject *) 0 ;
24273 PyObject * obj0 = 0 ;
24274 PyObject * obj1 = 0 ;
24275 PyObject * obj2 = 0 ;
24276 char *kwnames[] = {
24277 (char *) "self",(char *) "self",(char *) "_class", NULL
24278 };
24279
24280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24282 arg2 = obj1;
24283 arg3 = obj2;
24284 {
24285 PyThreadState* __tstate = wxPyBeginAllowThreads();
24286 (arg1)->_setCallbackInfo(arg2,arg3);
24287
24288 wxPyEndAllowThreads(__tstate);
24289 if (PyErr_Occurred()) SWIG_fail;
24290 }
24291 Py_INCREF(Py_None); resultobj = Py_None;
24292 return resultobj;
24293 fail:
24294 return NULL;
24295}
24296
24297
24298static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24299 PyObject *obj;
24300 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24301 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24302 Py_INCREF(obj);
24303 return Py_BuildValue((char *)"");
24304}
24305static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj;
24307 wxDataObjectComposite *result;
24308 char *kwnames[] = {
24309 NULL
24310 };
24311
24312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24313 {
24314 PyThreadState* __tstate = wxPyBeginAllowThreads();
24315 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24316
24317 wxPyEndAllowThreads(__tstate);
24318 if (PyErr_Occurred()) SWIG_fail;
24319 }
24320 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1);
24321 return resultobj;
24322 fail:
24323 return NULL;
24324}
24325
24326
24327static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24328 PyObject *resultobj;
24329 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24330 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
423f194a 24331 int arg3 = (int) False ;
d14a1e28
RD
24332 PyObject * obj0 = 0 ;
24333 PyObject * obj1 = 0 ;
8edf1c75 24334 PyObject * obj2 = 0 ;
d14a1e28
RD
24335 char *kwnames[] = {
24336 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24337 };
24338
8edf1c75 24339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 24340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
58203fa6 24341 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
8edf1c75
RD
24342 if (obj2) {
24343 {
24344 arg3 = (int) SWIG_PyObj_AsInt(obj2);
24345 if (PyErr_Occurred()) SWIG_fail;
24346 }
24347 }
d14a1e28
RD
24348 {
24349 PyThreadState* __tstate = wxPyBeginAllowThreads();
24350 (arg1)->Add(arg2,arg3);
24351
24352 wxPyEndAllowThreads(__tstate);
24353 if (PyErr_Occurred()) SWIG_fail;
24354 }
24355 Py_INCREF(Py_None); resultobj = Py_None;
24356 return resultobj;
24357 fail:
24358 return NULL;
24359}
24360
24361
24362static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24363 PyObject *obj;
24364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24365 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24366 Py_INCREF(obj);
24367 return Py_BuildValue((char *)"");
24368}
24369static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24370 PyObject *resultobj;
24371 wxString const &arg1_defvalue = wxPyEmptyString ;
24372 wxString *arg1 = (wxString *) &arg1_defvalue ;
24373 wxTextDataObject *result;
423f194a 24374 bool temp1 = False ;
d14a1e28
RD
24375 PyObject * obj0 = 0 ;
24376 char *kwnames[] = {
24377 (char *) "text", NULL
24378 };
24379
24380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24381 if (obj0) {
24382 {
24383 arg1 = wxString_in_helper(obj0);
24384 if (arg1 == NULL) SWIG_fail;
423f194a 24385 temp1 = True;
d14a1e28
RD
24386 }
24387 }
24388 {
24389 PyThreadState* __tstate = wxPyBeginAllowThreads();
24390 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24391
24392 wxPyEndAllowThreads(__tstate);
24393 if (PyErr_Occurred()) SWIG_fail;
24394 }
24395 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1);
24396 {
24397 if (temp1)
24398 delete arg1;
24399 }
24400 return resultobj;
24401 fail:
24402 {
24403 if (temp1)
24404 delete arg1;
24405 }
24406 return NULL;
24407}
24408
24409
24410static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24411 PyObject *resultobj;
24412 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24413 size_t result;
24414 PyObject * obj0 = 0 ;
24415 char *kwnames[] = {
24416 (char *) "self", NULL
24417 };
24418
24419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24421 {
24422 PyThreadState* __tstate = wxPyBeginAllowThreads();
24423 result = (size_t)(arg1)->GetTextLength();
24424
24425 wxPyEndAllowThreads(__tstate);
24426 if (PyErr_Occurred()) SWIG_fail;
24427 }
8edf1c75 24428 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
24429 return resultobj;
24430 fail:
24431 return NULL;
24432}
24433
24434
24435static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24436 PyObject *resultobj;
24437 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24438 wxString result;
24439 PyObject * obj0 = 0 ;
24440 char *kwnames[] = {
24441 (char *) "self", NULL
24442 };
24443
24444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24446 {
24447 PyThreadState* __tstate = wxPyBeginAllowThreads();
24448 result = (arg1)->GetText();
24449
24450 wxPyEndAllowThreads(__tstate);
24451 if (PyErr_Occurred()) SWIG_fail;
24452 }
24453 {
24454#if wxUSE_UNICODE
24455 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24456#else
24457 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24458#endif
24459 }
24460 return resultobj;
24461 fail:
24462 return NULL;
24463}
24464
24465
24466static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24467 PyObject *resultobj;
24468 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24469 wxString *arg2 = 0 ;
423f194a 24470 bool temp2 = False ;
d14a1e28
RD
24471 PyObject * obj0 = 0 ;
24472 PyObject * obj1 = 0 ;
24473 char *kwnames[] = {
24474 (char *) "self",(char *) "text", NULL
24475 };
24476
24477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24479 {
24480 arg2 = wxString_in_helper(obj1);
24481 if (arg2 == NULL) SWIG_fail;
423f194a 24482 temp2 = True;
d14a1e28
RD
24483 }
24484 {
24485 PyThreadState* __tstate = wxPyBeginAllowThreads();
24486 (arg1)->SetText((wxString const &)*arg2);
24487
24488 wxPyEndAllowThreads(__tstate);
24489 if (PyErr_Occurred()) SWIG_fail;
24490 }
24491 Py_INCREF(Py_None); resultobj = Py_None;
24492 {
24493 if (temp2)
24494 delete arg2;
24495 }
24496 return resultobj;
24497 fail:
24498 {
24499 if (temp2)
24500 delete arg2;
24501 }
24502 return NULL;
24503}
24504
24505
24506static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
24507 PyObject *obj;
24508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24509 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24510 Py_INCREF(obj);
24511 return Py_BuildValue((char *)"");
24512}
24513static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24514 PyObject *resultobj;
24515 wxString const &arg1_defvalue = wxPyEmptyString ;
24516 wxString *arg1 = (wxString *) &arg1_defvalue ;
24517 wxPyTextDataObject *result;
423f194a 24518 bool temp1 = False ;
d14a1e28
RD
24519 PyObject * obj0 = 0 ;
24520 char *kwnames[] = {
24521 (char *) "text", NULL
24522 };
24523
24524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24525 if (obj0) {
24526 {
24527 arg1 = wxString_in_helper(obj0);
24528 if (arg1 == NULL) SWIG_fail;
423f194a 24529 temp1 = True;
d14a1e28
RD
24530 }
24531 }
24532 {
24533 PyThreadState* __tstate = wxPyBeginAllowThreads();
24534 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24535
24536 wxPyEndAllowThreads(__tstate);
24537 if (PyErr_Occurred()) SWIG_fail;
24538 }
24539 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1);
24540 {
24541 if (temp1)
24542 delete arg1;
24543 }
24544 return resultobj;
24545 fail:
24546 {
24547 if (temp1)
24548 delete arg1;
24549 }
24550 return NULL;
24551}
24552
24553
24554static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24555 PyObject *resultobj;
24556 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24557 PyObject *arg2 = (PyObject *) 0 ;
24558 PyObject *arg3 = (PyObject *) 0 ;
24559 PyObject * obj0 = 0 ;
24560 PyObject * obj1 = 0 ;
24561 PyObject * obj2 = 0 ;
24562 char *kwnames[] = {
24563 (char *) "self",(char *) "self",(char *) "_class", NULL
24564 };
24565
24566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24568 arg2 = obj1;
24569 arg3 = obj2;
24570 {
24571 PyThreadState* __tstate = wxPyBeginAllowThreads();
24572 (arg1)->_setCallbackInfo(arg2,arg3);
24573
24574 wxPyEndAllowThreads(__tstate);
24575 if (PyErr_Occurred()) SWIG_fail;
24576 }
24577 Py_INCREF(Py_None); resultobj = Py_None;
24578 return resultobj;
24579 fail:
24580 return NULL;
24581}
24582
24583
24584static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
24585 PyObject *obj;
24586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24587 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
24588 Py_INCREF(obj);
24589 return Py_BuildValue((char *)"");
24590}
24591static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24592 PyObject *resultobj;
24593 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24594 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24595 wxBitmapDataObject *result;
24596 PyObject * obj0 = 0 ;
24597 char *kwnames[] = {
24598 (char *) "bitmap", NULL
24599 };
24600
24601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
24602 if (obj0) {
24603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24604 if (arg1 == NULL) {
24605 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24606 }
24607 }
24608 {
24609 PyThreadState* __tstate = wxPyBeginAllowThreads();
24610 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
24611
24612 wxPyEndAllowThreads(__tstate);
24613 if (PyErr_Occurred()) SWIG_fail;
24614 }
24615 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1);
24616 return resultobj;
24617 fail:
24618 return NULL;
24619}
24620
24621
24622static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24623 PyObject *resultobj;
24624 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24625 wxBitmap result;
24626 PyObject * obj0 = 0 ;
24627 char *kwnames[] = {
24628 (char *) "self", NULL
24629 };
24630
24631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
24632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24633 {
24634 PyThreadState* __tstate = wxPyBeginAllowThreads();
24635 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
24636
24637 wxPyEndAllowThreads(__tstate);
24638 if (PyErr_Occurred()) SWIG_fail;
24639 }
24640 {
24641 wxBitmap * resultptr;
24642 resultptr = new wxBitmap((wxBitmap &) result);
24643 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
24644 }
24645 return resultobj;
24646 fail:
24647 return NULL;
24648}
24649
24650
24651static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24652 PyObject *resultobj;
24653 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24654 wxBitmap *arg2 = 0 ;
24655 PyObject * obj0 = 0 ;
24656 PyObject * obj1 = 0 ;
24657 char *kwnames[] = {
24658 (char *) "self",(char *) "bitmap", NULL
24659 };
24660
24661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
24662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24663 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24664 if (arg2 == NULL) {
24665 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24666 }
24667 {
24668 PyThreadState* __tstate = wxPyBeginAllowThreads();
24669 (arg1)->SetBitmap((wxBitmap const &)*arg2);
24670
24671 wxPyEndAllowThreads(__tstate);
24672 if (PyErr_Occurred()) SWIG_fail;
24673 }
24674 Py_INCREF(Py_None); resultobj = Py_None;
24675 return resultobj;
24676 fail:
24677 return NULL;
24678}
24679
24680
24681static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
24682 PyObject *obj;
24683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24684 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
24685 Py_INCREF(obj);
24686 return Py_BuildValue((char *)"");
24687}
24688static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24689 PyObject *resultobj;
24690 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24691 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24692 wxPyBitmapDataObject *result;
24693 PyObject * obj0 = 0 ;
24694 char *kwnames[] = {
24695 (char *) "bitmap", NULL
24696 };
24697
24698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
24699 if (obj0) {
24700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24701 if (arg1 == NULL) {
24702 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24703 }
24704 }
24705 {
24706 PyThreadState* __tstate = wxPyBeginAllowThreads();
24707 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
24708
24709 wxPyEndAllowThreads(__tstate);
24710 if (PyErr_Occurred()) SWIG_fail;
24711 }
24712 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1);
24713 return resultobj;
24714 fail:
24715 return NULL;
24716}
24717
24718
24719static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24720 PyObject *resultobj;
24721 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
24722 PyObject *arg2 = (PyObject *) 0 ;
24723 PyObject *arg3 = (PyObject *) 0 ;
24724 PyObject * obj0 = 0 ;
24725 PyObject * obj1 = 0 ;
24726 PyObject * obj2 = 0 ;
24727 char *kwnames[] = {
24728 (char *) "self",(char *) "self",(char *) "_class", NULL
24729 };
24730
24731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24733 arg2 = obj1;
24734 arg3 = obj2;
24735 {
24736 PyThreadState* __tstate = wxPyBeginAllowThreads();
24737 (arg1)->_setCallbackInfo(arg2,arg3);
24738
24739 wxPyEndAllowThreads(__tstate);
24740 if (PyErr_Occurred()) SWIG_fail;
24741 }
24742 Py_INCREF(Py_None); resultobj = Py_None;
24743 return resultobj;
24744 fail:
24745 return NULL;
24746}
24747
24748
24749static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
24750 PyObject *obj;
24751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24752 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
24753 Py_INCREF(obj);
24754 return Py_BuildValue((char *)"");
24755}
24756static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24757 PyObject *resultobj;
24758 wxFileDataObject *result;
24759 char *kwnames[] = {
24760 NULL
24761 };
24762
24763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
24764 {
24765 PyThreadState* __tstate = wxPyBeginAllowThreads();
24766 result = (wxFileDataObject *)new wxFileDataObject();
24767
24768 wxPyEndAllowThreads(__tstate);
24769 if (PyErr_Occurred()) SWIG_fail;
24770 }
24771 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1);
24772 return resultobj;
24773 fail:
24774 return NULL;
24775}
24776
24777
24778static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
24779 PyObject *resultobj;
24780 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
24781 wxArrayString *result;
24782 PyObject * obj0 = 0 ;
24783 char *kwnames[] = {
24784 (char *) "self", NULL
24785 };
24786
24787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
24788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24789 {
24790 PyThreadState* __tstate = wxPyBeginAllowThreads();
24791 {
24792 wxArrayString const &_result_ref = (arg1)->GetFilenames();
24793 result = (wxArrayString *) &_result_ref;
24794 }
24795
24796 wxPyEndAllowThreads(__tstate);
24797 if (PyErr_Occurred()) SWIG_fail;
24798 }
24799 {
24800 resultobj = wxArrayString2PyList_helper(*result);
24801 }
24802 return resultobj;
24803 fail:
24804 return NULL;
24805}
24806
24807
24808static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
24809 PyObject *obj;
24810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24811 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
24812 Py_INCREF(obj);
24813 return Py_BuildValue((char *)"");
24814}
24815static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24816 PyObject *resultobj;
24817 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24818 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24819 wxCustomDataObject *result;
24820 PyObject * obj0 = 0 ;
24821 char *kwnames[] = {
24822 (char *) "format", NULL
24823 };
24824
24825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
24826 if (obj0) {
24827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24828 if (arg1 == NULL) {
24829 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24830 }
24831 }
24832 {
24833 PyThreadState* __tstate = wxPyBeginAllowThreads();
24834 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
24835
24836 wxPyEndAllowThreads(__tstate);
24837 if (PyErr_Occurred()) SWIG_fail;
24838 }
24839 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1);
24840 return resultobj;
24841 fail:
24842 return NULL;
24843}
24844
24845
24846static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
24847 PyObject *resultobj;
24848 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
24849 PyObject *arg2 = (PyObject *) 0 ;
24850 PyObject * obj0 = 0 ;
24851 PyObject * obj1 = 0 ;
24852 char *kwnames[] = {
24853 (char *) "self",(char *) "data", NULL
24854 };
24855
24856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
24857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24858 arg2 = obj1;
24859 {
24860 PyThreadState* __tstate = wxPyBeginAllowThreads();
24861 wxCustomDataObject_TakeData(arg1,arg2);
24862
24863 wxPyEndAllowThreads(__tstate);
24864 if (PyErr_Occurred()) SWIG_fail;
24865 }
24866 Py_INCREF(Py_None); resultobj = Py_None;
24867 return resultobj;
24868 fail:
24869 return NULL;
24870}
24871
24872
24873static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24874 PyObject *resultobj;
24875 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
24876 PyObject *arg2 = (PyObject *) 0 ;
24877 bool result;
24878 PyObject * obj0 = 0 ;
24879 PyObject * obj1 = 0 ;
24880 char *kwnames[] = {
24881 (char *) "self",(char *) "data", NULL
24882 };
24883
24884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
24885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24886 arg2 = obj1;
24887 {
24888 PyThreadState* __tstate = wxPyBeginAllowThreads();
24889 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
24890
24891 wxPyEndAllowThreads(__tstate);
24892 if (PyErr_Occurred()) SWIG_fail;
24893 }
02a34c4c 24894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24895 return resultobj;
24896 fail:
24897 return NULL;
24898}
24899
24900
24901static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24902 PyObject *resultobj;
24903 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
24904 size_t result;
24905 PyObject * obj0 = 0 ;
24906 char *kwnames[] = {
24907 (char *) "self", NULL
24908 };
24909
24910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
24911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24912 {
24913 PyThreadState* __tstate = wxPyBeginAllowThreads();
24914 result = (size_t)(arg1)->GetSize();
24915
24916 wxPyEndAllowThreads(__tstate);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
8edf1c75 24919 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
24920 return resultobj;
24921 fail:
24922 return NULL;
24923}
24924
24925
24926static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24927 PyObject *resultobj;
24928 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
24929 PyObject *result;
24930 PyObject * obj0 = 0 ;
24931 char *kwnames[] = {
24932 (char *) "self", NULL
24933 };
24934
24935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
24936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24937 {
24938 PyThreadState* __tstate = wxPyBeginAllowThreads();
24939 result = (PyObject *)wxCustomDataObject_GetData(arg1);
24940
24941 wxPyEndAllowThreads(__tstate);
24942 if (PyErr_Occurred()) SWIG_fail;
24943 }
24944 resultobj = result;
24945 return resultobj;
24946 fail:
24947 return NULL;
24948}
24949
24950
24951static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
24952 PyObject *obj;
24953 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24954 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
24955 Py_INCREF(obj);
24956 return Py_BuildValue((char *)"");
24957}
24958static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24959 PyObject *resultobj;
24960 wxURLDataObject *result;
24961 char *kwnames[] = {
24962 NULL
24963 };
24964
24965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
24966 {
24967 PyThreadState* __tstate = wxPyBeginAllowThreads();
24968 result = (wxURLDataObject *)new wxURLDataObject();
24969
24970 wxPyEndAllowThreads(__tstate);
24971 if (PyErr_Occurred()) SWIG_fail;
24972 }
24973 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1);
24974 return resultobj;
24975 fail:
24976 return NULL;
24977}
24978
24979
24980static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
24981 PyObject *resultobj;
24982 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
24983 wxString result;
24984 PyObject * obj0 = 0 ;
24985 char *kwnames[] = {
24986 (char *) "self", NULL
24987 };
24988
24989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
24990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24991 {
24992 PyThreadState* __tstate = wxPyBeginAllowThreads();
24993 result = (arg1)->GetURL();
24994
24995 wxPyEndAllowThreads(__tstate);
24996 if (PyErr_Occurred()) SWIG_fail;
24997 }
24998 {
24999#if wxUSE_UNICODE
25000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25001#else
25002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25003#endif
25004 }
25005 return resultobj;
25006 fail:
25007 return NULL;
25008}
25009
25010
25011static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25012 PyObject *resultobj;
25013 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25014 wxString *arg2 = 0 ;
423f194a 25015 bool temp2 = False ;
d14a1e28
RD
25016 PyObject * obj0 = 0 ;
25017 PyObject * obj1 = 0 ;
25018 char *kwnames[] = {
25019 (char *) "self",(char *) "url", NULL
25020 };
25021
25022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25024 {
25025 arg2 = wxString_in_helper(obj1);
25026 if (arg2 == NULL) SWIG_fail;
423f194a 25027 temp2 = True;
d14a1e28
RD
25028 }
25029 {
25030 PyThreadState* __tstate = wxPyBeginAllowThreads();
25031 (arg1)->SetURL((wxString const &)*arg2);
25032
25033 wxPyEndAllowThreads(__tstate);
25034 if (PyErr_Occurred()) SWIG_fail;
25035 }
25036 Py_INCREF(Py_None); resultobj = Py_None;
25037 {
25038 if (temp2)
25039 delete arg2;
25040 }
25041 return resultobj;
25042 fail:
25043 {
25044 if (temp2)
25045 delete arg2;
25046 }
25047 return NULL;
25048}
25049
25050
25051static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25052 PyObject *obj;
25053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25054 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25055 Py_INCREF(obj);
25056 return Py_BuildValue((char *)"");
25057}
25058static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25059 PyObject *resultobj;
25060 wxMetafileDataObject *result;
25061 char *kwnames[] = {
25062 NULL
25063 };
25064
25065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25066 {
25067 PyThreadState* __tstate = wxPyBeginAllowThreads();
25068 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25069
25070 wxPyEndAllowThreads(__tstate);
25071 if (PyErr_Occurred()) SWIG_fail;
25072 }
25073 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1);
25074 return resultobj;
25075 fail:
25076 return NULL;
25077}
25078
25079
25080static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25081 PyObject *resultobj;
25082 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25083 wxMetafile *arg2 = 0 ;
25084 PyObject * obj0 = 0 ;
25085 PyObject * obj1 = 0 ;
25086 char *kwnames[] = {
25087 (char *) "self",(char *) "metafile", NULL
25088 };
25089
25090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25092 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMetafile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25093 if (arg2 == NULL) {
25094 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25095 }
25096 {
25097 PyThreadState* __tstate = wxPyBeginAllowThreads();
25098 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25099
25100 wxPyEndAllowThreads(__tstate);
25101 if (PyErr_Occurred()) SWIG_fail;
25102 }
25103 Py_INCREF(Py_None); resultobj = Py_None;
25104 return resultobj;
25105 fail:
25106 return NULL;
25107}
25108
25109
25110static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj;
25112 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25113 wxMetafile result;
25114 PyObject * obj0 = 0 ;
25115 char *kwnames[] = {
25116 (char *) "self", NULL
25117 };
25118
25119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25121 {
25122 PyThreadState* __tstate = wxPyBeginAllowThreads();
25123 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25124
25125 wxPyEndAllowThreads(__tstate);
25126 if (PyErr_Occurred()) SWIG_fail;
25127 }
25128 {
25129 wxMetafile * resultptr;
25130 resultptr = new wxMetafile((wxMetafile &) result);
25131 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxMetafile, 1);
25132 }
25133 return resultobj;
25134 fail:
25135 return NULL;
25136}
25137
25138
25139static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25140 PyObject *obj;
25141 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25142 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25143 Py_INCREF(obj);
25144 return Py_BuildValue((char *)"");
25145}
25146static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25147 PyObject *resultobj;
25148 int arg1 ;
25149 bool result;
8edf1c75 25150 PyObject * obj0 = 0 ;
d14a1e28
RD
25151 char *kwnames[] = {
25152 (char *) "res", NULL
25153 };
25154
8edf1c75
RD
25155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25156 {
25157 arg1 = (wxDragResult) SWIG_PyObj_AsInt(obj0);
25158 if (PyErr_Occurred()) SWIG_fail;
25159 }
d14a1e28
RD
25160 {
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25163
25164 wxPyEndAllowThreads(__tstate);
25165 if (PyErr_Occurred()) SWIG_fail;
25166 }
02a34c4c 25167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25168 return resultobj;
25169 fail:
25170 return NULL;
25171}
25172
25173
25174static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25175 PyObject *resultobj;
d896a793 25176 wxWindow *arg1 = (wxWindow *) 0 ;
d14a1e28
RD
25177 wxCursor const &arg2_defvalue = wxNullCursor ;
25178 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25179 wxCursor const &arg3_defvalue = wxNullCursor ;
25180 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25181 wxCursor const &arg4_defvalue = wxNullCursor ;
25182 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25183 wxPyDropSource *result;
25184 PyObject * obj0 = 0 ;
25185 PyObject * obj1 = 0 ;
25186 PyObject * obj2 = 0 ;
25187 PyObject * obj3 = 0 ;
25188 char *kwnames[] = {
25189 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25190 };
25191
d896a793
RD
25192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
25194 if (obj1) {
25195 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25196 if (arg2 == NULL) {
25197 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25198 }
25199 }
25200 if (obj2) {
25201 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25202 if (arg3 == NULL) {
25203 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25204 }
25205 }
25206 if (obj3) {
25207 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25208 if (arg4 == NULL) {
25209 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25210 }
25211 }
25212 {
25213 PyThreadState* __tstate = wxPyBeginAllowThreads();
25214 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25215
25216 wxPyEndAllowThreads(__tstate);
25217 if (PyErr_Occurred()) SWIG_fail;
25218 }
25219 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1);
25220 return resultobj;
25221 fail:
25222 return NULL;
25223}
25224
25225
25226static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25227 PyObject *resultobj;
25228 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25229 PyObject *arg2 = (PyObject *) 0 ;
25230 PyObject *arg3 = (PyObject *) 0 ;
25231 int arg4 ;
25232 PyObject * obj0 = 0 ;
25233 PyObject * obj1 = 0 ;
25234 PyObject * obj2 = 0 ;
8edf1c75 25235 PyObject * obj3 = 0 ;
d14a1e28
RD
25236 char *kwnames[] = {
25237 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25238 };
25239
8edf1c75 25240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
25241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25242 arg2 = obj1;
25243 arg3 = obj2;
8edf1c75
RD
25244 {
25245 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
d14a1e28
RD
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25251
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 Py_INCREF(Py_None); resultobj = Py_None;
25256 return resultobj;
25257 fail:
25258 return NULL;
25259}
25260
25261
25262static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25263 PyObject *resultobj;
25264 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25265 PyObject * obj0 = 0 ;
25266 char *kwnames[] = {
25267 (char *) "self", NULL
25268 };
25269
25270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25272 {
25273 PyThreadState* __tstate = wxPyBeginAllowThreads();
25274 delete arg1;
25275
25276 wxPyEndAllowThreads(__tstate);
25277 if (PyErr_Occurred()) SWIG_fail;
25278 }
25279 Py_INCREF(Py_None); resultobj = Py_None;
25280 return resultobj;
25281 fail:
25282 return NULL;
25283}
25284
25285
25286static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25287 PyObject *resultobj;
25288 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25289 wxDataObject *arg2 = 0 ;
25290 PyObject * obj0 = 0 ;
25291 PyObject * obj1 = 0 ;
25292 char *kwnames[] = {
25293 (char *) "self",(char *) "data", NULL
25294 };
25295
25296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25298 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25299 if (arg2 == NULL) {
25300 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25301 }
25302 {
25303 PyThreadState* __tstate = wxPyBeginAllowThreads();
25304 (arg1)->SetData(*arg2);
25305
25306 wxPyEndAllowThreads(__tstate);
25307 if (PyErr_Occurred()) SWIG_fail;
25308 }
25309 Py_INCREF(Py_None); resultobj = Py_None;
25310 return resultobj;
25311 fail:
25312 return NULL;
25313}
25314
25315
25316static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25317 PyObject *resultobj;
25318 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25319 wxDataObject *result;
25320 PyObject * obj0 = 0 ;
25321 char *kwnames[] = {
25322 (char *) "self", NULL
25323 };
25324
25325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25327 {
25328 PyThreadState* __tstate = wxPyBeginAllowThreads();
25329 result = (wxDataObject *)(arg1)->GetDataObject();
25330
25331 wxPyEndAllowThreads(__tstate);
25332 if (PyErr_Occurred()) SWIG_fail;
25333 }
25334 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0);
25335 return resultobj;
25336 fail:
25337 return NULL;
25338}
25339
25340
25341static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25342 PyObject *resultobj;
25343 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25344 int arg2 ;
25345 wxCursor *arg3 = 0 ;
25346 PyObject * obj0 = 0 ;
8edf1c75 25347 PyObject * obj1 = 0 ;
d14a1e28
RD
25348 PyObject * obj2 = 0 ;
25349 char *kwnames[] = {
25350 (char *) "self",(char *) "res",(char *) "cursor", NULL
25351 };
25352
8edf1c75 25353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 25354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25355 {
25356 arg2 = (wxDragResult) SWIG_PyObj_AsInt(obj1);
25357 if (PyErr_Occurred()) SWIG_fail;
25358 }
d14a1e28
RD
25359 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25360 if (arg3 == NULL) {
25361 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25362 }
25363 {
25364 PyThreadState* __tstate = wxPyBeginAllowThreads();
25365 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25366
25367 wxPyEndAllowThreads(__tstate);
25368 if (PyErr_Occurred()) SWIG_fail;
25369 }
25370 Py_INCREF(Py_None); resultobj = Py_None;
25371 return resultobj;
25372 fail:
25373 return NULL;
25374}
25375
25376
25377static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25378 PyObject *resultobj;
25379 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25380 int arg2 = (int) wxDrag_CopyOnly ;
25381 int result;
25382 PyObject * obj0 = 0 ;
8edf1c75 25383 PyObject * obj1 = 0 ;
d14a1e28
RD
25384 char *kwnames[] = {
25385 (char *) "self",(char *) "flags", NULL
25386 };
25387
8edf1c75 25388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25390 if (obj1) {
25391 {
25392 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25393 if (PyErr_Occurred()) SWIG_fail;
25394 }
25395 }
d14a1e28
RD
25396 {
25397 PyThreadState* __tstate = wxPyBeginAllowThreads();
25398 result = (int)(arg1)->DoDragDrop(arg2);
25399
25400 wxPyEndAllowThreads(__tstate);
25401 if (PyErr_Occurred()) SWIG_fail;
25402 }
8edf1c75 25403 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25404 return resultobj;
25405 fail:
25406 return NULL;
25407}
25408
25409
25410static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25411 PyObject *resultobj;
25412 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25413 int arg2 ;
25414 bool result;
25415 PyObject * obj0 = 0 ;
8edf1c75 25416 PyObject * obj1 = 0 ;
d14a1e28
RD
25417 char *kwnames[] = {
25418 (char *) "self",(char *) "effect", NULL
25419 };
25420
8edf1c75 25421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25423 {
25424 arg2 = (wxDragResult) SWIG_PyObj_AsInt(obj1);
25425 if (PyErr_Occurred()) SWIG_fail;
25426 }
d14a1e28
RD
25427 {
25428 PyThreadState* __tstate = wxPyBeginAllowThreads();
25429 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25430
25431 wxPyEndAllowThreads(__tstate);
25432 if (PyErr_Occurred()) SWIG_fail;
25433 }
02a34c4c 25434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25435 return resultobj;
25436 fail:
25437 return NULL;
25438}
25439
25440
25441static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
25442 PyObject *obj;
25443 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25444 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25445 Py_INCREF(obj);
25446 return Py_BuildValue((char *)"");
25447}
cbd72d4f 25448static PyObject *_wrap_new_PyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
25449 PyObject *resultobj;
25450 wxDataObject *arg1 = (wxDataObject *) NULL ;
25451 wxPyDropTarget *result;
25452 PyObject * obj0 = 0 ;
25453 char *kwnames[] = {
25454 (char *) "dataObject", NULL
25455 };
25456
cbd72d4f 25457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDropTarget",kwnames,&obj0)) goto fail;
d14a1e28 25458 if (obj0) {
58203fa6 25459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
d14a1e28
RD
25460 }
25461 {
25462 PyThreadState* __tstate = wxPyBeginAllowThreads();
25463 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25464
25465 wxPyEndAllowThreads(__tstate);
25466 if (PyErr_Occurred()) SWIG_fail;
25467 }
25468 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1);
25469 return resultobj;
25470 fail:
25471 return NULL;
25472}
25473
25474
25475static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25476 PyObject *resultobj;
25477 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25478 PyObject *arg2 = (PyObject *) 0 ;
25479 PyObject *arg3 = (PyObject *) 0 ;
25480 PyObject * obj0 = 0 ;
25481 PyObject * obj1 = 0 ;
25482 PyObject * obj2 = 0 ;
25483 char *kwnames[] = {
25484 (char *) "self",(char *) "self",(char *) "_class", NULL
25485 };
25486
25487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25489 arg2 = obj1;
25490 arg3 = obj2;
25491 {
25492 PyThreadState* __tstate = wxPyBeginAllowThreads();
25493 (arg1)->_setCallbackInfo(arg2,arg3);
25494
25495 wxPyEndAllowThreads(__tstate);
25496 if (PyErr_Occurred()) SWIG_fail;
25497 }
25498 Py_INCREF(Py_None); resultobj = Py_None;
25499 return resultobj;
25500 fail:
25501 return NULL;
25502}
25503
25504
25505static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25506 PyObject *resultobj;
25507 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25508 PyObject * obj0 = 0 ;
25509 char *kwnames[] = {
25510 (char *) "self", NULL
25511 };
25512
25513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
25514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25515 {
25516 PyThreadState* __tstate = wxPyBeginAllowThreads();
25517 delete arg1;
25518
25519 wxPyEndAllowThreads(__tstate);
25520 if (PyErr_Occurred()) SWIG_fail;
25521 }
25522 Py_INCREF(Py_None); resultobj = Py_None;
25523 return resultobj;
25524 fail:
25525 return NULL;
25526}
25527
25528
25529static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25530 PyObject *resultobj;
25531 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25532 wxDataObject *result;
25533 PyObject * obj0 = 0 ;
25534 char *kwnames[] = {
25535 (char *) "self", NULL
25536 };
25537
25538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
25539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25540 {
25541 PyThreadState* __tstate = wxPyBeginAllowThreads();
25542 result = (wxDataObject *)(arg1)->GetDataObject();
25543
25544 wxPyEndAllowThreads(__tstate);
25545 if (PyErr_Occurred()) SWIG_fail;
25546 }
25547 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0);
25548 return resultobj;
25549 fail:
25550 return NULL;
25551}
25552
25553
25554static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25555 PyObject *resultobj;
25556 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25557 wxDataObject *arg2 = (wxDataObject *) 0 ;
25558 PyObject * obj0 = 0 ;
25559 PyObject * obj1 = 0 ;
25560 char *kwnames[] = {
25561 (char *) "self",(char *) "dataObject", NULL
25562 };
25563
25564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
25565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
58203fa6 25566 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
d14a1e28
RD
25567 {
25568 PyThreadState* __tstate = wxPyBeginAllowThreads();
25569 (arg1)->SetDataObject(arg2);
25570
25571 wxPyEndAllowThreads(__tstate);
25572 if (PyErr_Occurred()) SWIG_fail;
25573 }
25574 Py_INCREF(Py_None); resultobj = Py_None;
25575 return resultobj;
25576 fail:
25577 return NULL;
25578}
25579
25580
25581static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
25582 PyObject *resultobj;
25583 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
423f194a
RD
25584 int arg2 ;
25585 int arg3 ;
d14a1e28
RD
25586 int arg4 ;
25587 int result;
25588 PyObject * obj0 = 0 ;
8edf1c75
RD
25589 PyObject * obj1 = 0 ;
25590 PyObject * obj2 = 0 ;
25591 PyObject * obj3 = 0 ;
d14a1e28
RD
25592 char *kwnames[] = {
25593 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25594 };
25595
8edf1c75 25596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 25597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25598 {
25599 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25600 if (PyErr_Occurred()) SWIG_fail;
25601 }
25602 {
25603 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25604 if (PyErr_Occurred()) SWIG_fail;
25605 }
25606 {
25607 arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
d14a1e28
RD
25610 {
25611 PyThreadState* __tstate = wxPyBeginAllowThreads();
25612 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
25613
25614 wxPyEndAllowThreads(__tstate);
25615 if (PyErr_Occurred()) SWIG_fail;
25616 }
8edf1c75 25617 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25618 return resultobj;
25619 fail:
25620 return NULL;
25621}
25622
25623
25624static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
25625 PyObject *resultobj;
25626 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
423f194a
RD
25627 int arg2 ;
25628 int arg3 ;
d14a1e28
RD
25629 int arg4 ;
25630 int result;
25631 PyObject * obj0 = 0 ;
8edf1c75
RD
25632 PyObject * obj1 = 0 ;
25633 PyObject * obj2 = 0 ;
25634 PyObject * obj3 = 0 ;
d14a1e28
RD
25635 char *kwnames[] = {
25636 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25637 };
25638
8edf1c75 25639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 25640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25641 {
25642 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25643 if (PyErr_Occurred()) SWIG_fail;
25644 }
25645 {
25646 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25647 if (PyErr_Occurred()) SWIG_fail;
25648 }
25649 {
25650 arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 }
d14a1e28
RD
25653 {
25654 PyThreadState* __tstate = wxPyBeginAllowThreads();
25655 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
25656
25657 wxPyEndAllowThreads(__tstate);
25658 if (PyErr_Occurred()) SWIG_fail;
25659 }
8edf1c75 25660 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25661 return resultobj;
25662 fail:
25663 return NULL;
25664}
25665
25666
25667static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
25668 PyObject *resultobj;
25669 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25670 PyObject * obj0 = 0 ;
25671 char *kwnames[] = {
25672 (char *) "self", NULL
25673 };
25674
25675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
25676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25677 {
25678 PyThreadState* __tstate = wxPyBeginAllowThreads();
25679 (arg1)->base_OnLeave();
25680
25681 wxPyEndAllowThreads(__tstate);
25682 if (PyErr_Occurred()) SWIG_fail;
25683 }
25684 Py_INCREF(Py_None); resultobj = Py_None;
25685 return resultobj;
25686 fail:
25687 return NULL;
25688}
25689
25690
25691static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25692 PyObject *resultobj;
25693 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
423f194a
RD
25694 int arg2 ;
25695 int arg3 ;
d14a1e28
RD
25696 bool result;
25697 PyObject * obj0 = 0 ;
8edf1c75
RD
25698 PyObject * obj1 = 0 ;
25699 PyObject * obj2 = 0 ;
d14a1e28
RD
25700 char *kwnames[] = {
25701 (char *) "self",(char *) "x",(char *) "y", NULL
25702 };
25703
8edf1c75 25704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 25705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25706 {
25707 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25708 if (PyErr_Occurred()) SWIG_fail;
25709 }
25710 {
25711 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25712 if (PyErr_Occurred()) SWIG_fail;
25713 }
d14a1e28
RD
25714 {
25715 PyThreadState* __tstate = wxPyBeginAllowThreads();
25716 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
25717
25718 wxPyEndAllowThreads(__tstate);
25719 if (PyErr_Occurred()) SWIG_fail;
25720 }
02a34c4c 25721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25722 return resultobj;
25723 fail:
25724 return NULL;
25725}
25726
25727
25728static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25729 PyObject *resultobj;
25730 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25731 bool result;
25732 PyObject * obj0 = 0 ;
25733 char *kwnames[] = {
25734 (char *) "self", NULL
25735 };
25736
25737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
25738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25739 {
25740 PyThreadState* __tstate = wxPyBeginAllowThreads();
25741 result = (bool)(arg1)->GetData();
25742
25743 wxPyEndAllowThreads(__tstate);
25744 if (PyErr_Occurred()) SWIG_fail;
25745 }
02a34c4c 25746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25747 return resultobj;
25748 fail:
25749 return NULL;
25750}
25751
25752
25753static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
25754 PyObject *obj;
25755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25756 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
25757 Py_INCREF(obj);
25758 return Py_BuildValue((char *)"");
25759}
25760static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25761 PyObject *resultobj;
25762 wxPyTextDropTarget *result;
25763 char *kwnames[] = {
25764 NULL
25765 };
25766
25767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
25768 {
25769 PyThreadState* __tstate = wxPyBeginAllowThreads();
25770 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
25771
25772 wxPyEndAllowThreads(__tstate);
25773 if (PyErr_Occurred()) SWIG_fail;
25774 }
25775 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1);
25776 return resultobj;
25777 fail:
25778 return NULL;
25779}
25780
25781
25782static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25783 PyObject *resultobj;
25784 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
25785 PyObject *arg2 = (PyObject *) 0 ;
25786 PyObject *arg3 = (PyObject *) 0 ;
25787 PyObject * obj0 = 0 ;
25788 PyObject * obj1 = 0 ;
25789 PyObject * obj2 = 0 ;
25790 char *kwnames[] = {
25791 (char *) "self",(char *) "self",(char *) "_class", NULL
25792 };
25793
25794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25796 arg2 = obj1;
25797 arg3 = obj2;
25798 {
25799 PyThreadState* __tstate = wxPyBeginAllowThreads();
25800 (arg1)->_setCallbackInfo(arg2,arg3);
25801
25802 wxPyEndAllowThreads(__tstate);
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
25805 Py_INCREF(Py_None); resultobj = Py_None;
25806 return resultobj;
25807 fail:
25808 return NULL;
25809}
25810
25811
25812static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
25813 PyObject *resultobj;
25814 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
423f194a
RD
25815 int arg2 ;
25816 int arg3 ;
d14a1e28
RD
25817 int arg4 ;
25818 int result;
25819 PyObject * obj0 = 0 ;
8edf1c75
RD
25820 PyObject * obj1 = 0 ;
25821 PyObject * obj2 = 0 ;
25822 PyObject * obj3 = 0 ;
d14a1e28
RD
25823 char *kwnames[] = {
25824 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25825 };
25826
8edf1c75 25827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 25828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25829 {
25830 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25831 if (PyErr_Occurred()) SWIG_fail;
25832 }
25833 {
25834 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25835 if (PyErr_Occurred()) SWIG_fail;
25836 }
25837 {
25838 arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3);
25839 if (PyErr_Occurred()) SWIG_fail;
25840 }
d14a1e28
RD
25841 {
25842 PyThreadState* __tstate = wxPyBeginAllowThreads();
25843 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
25844
25845 wxPyEndAllowThreads(__tstate);
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
8edf1c75 25848 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25849 return resultobj;
25850 fail:
25851 return NULL;
25852}
25853
25854
25855static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
25856 PyObject *resultobj;
25857 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
423f194a
RD
25858 int arg2 ;
25859 int arg3 ;
d14a1e28
RD
25860 int arg4 ;
25861 int result;
25862 PyObject * obj0 = 0 ;
8edf1c75
RD
25863 PyObject * obj1 = 0 ;
25864 PyObject * obj2 = 0 ;
25865 PyObject * obj3 = 0 ;
d14a1e28
RD
25866 char *kwnames[] = {
25867 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25868 };
25869
8edf1c75 25870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 25871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25872 {
25873 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25874 if (PyErr_Occurred()) SWIG_fail;
25875 }
25876 {
25877 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25878 if (PyErr_Occurred()) SWIG_fail;
25879 }
25880 {
25881 arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3);
25882 if (PyErr_Occurred()) SWIG_fail;
25883 }
d14a1e28
RD
25884 {
25885 PyThreadState* __tstate = wxPyBeginAllowThreads();
25886 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
25887
25888 wxPyEndAllowThreads(__tstate);
25889 if (PyErr_Occurred()) SWIG_fail;
25890 }
8edf1c75 25891 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25892 return resultobj;
25893 fail:
25894 return NULL;
25895}
25896
25897
25898static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
25899 PyObject *resultobj;
25900 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
25901 PyObject * obj0 = 0 ;
25902 char *kwnames[] = {
25903 (char *) "self", NULL
25904 };
25905
25906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
25907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25908 {
25909 PyThreadState* __tstate = wxPyBeginAllowThreads();
25910 (arg1)->base_OnLeave();
25911
25912 wxPyEndAllowThreads(__tstate);
25913 if (PyErr_Occurred()) SWIG_fail;
25914 }
25915 Py_INCREF(Py_None); resultobj = Py_None;
25916 return resultobj;
25917 fail:
25918 return NULL;
25919}
25920
25921
25922static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25923 PyObject *resultobj;
25924 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
423f194a
RD
25925 int arg2 ;
25926 int arg3 ;
d14a1e28
RD
25927 bool result;
25928 PyObject * obj0 = 0 ;
8edf1c75
RD
25929 PyObject * obj1 = 0 ;
25930 PyObject * obj2 = 0 ;
d14a1e28
RD
25931 char *kwnames[] = {
25932 (char *) "self",(char *) "x",(char *) "y", NULL
25933 };
25934
8edf1c75 25935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 25936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25937 {
25938 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25939 if (PyErr_Occurred()) SWIG_fail;
25940 }
25941 {
25942 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25943 if (PyErr_Occurred()) SWIG_fail;
25944 }
d14a1e28
RD
25945 {
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
25948
25949 wxPyEndAllowThreads(__tstate);
25950 if (PyErr_Occurred()) SWIG_fail;
25951 }
02a34c4c 25952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25953 return resultobj;
25954 fail:
25955 return NULL;
25956}
25957
25958
25959static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
25960 PyObject *resultobj;
25961 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
423f194a
RD
25962 int arg2 ;
25963 int arg3 ;
d14a1e28
RD
25964 int arg4 ;
25965 int result;
25966 PyObject * obj0 = 0 ;
8edf1c75
RD
25967 PyObject * obj1 = 0 ;
25968 PyObject * obj2 = 0 ;
25969 PyObject * obj3 = 0 ;
d14a1e28
RD
25970 char *kwnames[] = {
25971 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25972 };
25973
8edf1c75 25974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 25975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25976 {
25977 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25978 if (PyErr_Occurred()) SWIG_fail;
25979 }
25980 {
25981 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25982 if (PyErr_Occurred()) SWIG_fail;
25983 }
25984 {
25985 arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
d14a1e28
RD
25988 {
25989 PyThreadState* __tstate = wxPyBeginAllowThreads();
25990 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
25991
25992 wxPyEndAllowThreads(__tstate);
25993 if (PyErr_Occurred()) SWIG_fail;
25994 }
8edf1c75 25995 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25996 return resultobj;
25997 fail:
25998 return NULL;
25999}
26000
26001
26002static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26003 PyObject *obj;
26004 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26005 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26006 Py_INCREF(obj);
26007 return Py_BuildValue((char *)"");
26008}
26009static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26010 PyObject *resultobj;
26011 wxPyFileDropTarget *result;
26012 char *kwnames[] = {
26013 NULL
26014 };
26015
26016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26017 {
26018 PyThreadState* __tstate = wxPyBeginAllowThreads();
26019 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26020
26021 wxPyEndAllowThreads(__tstate);
26022 if (PyErr_Occurred()) SWIG_fail;
26023 }
26024 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1);
26025 return resultobj;
26026 fail:
26027 return NULL;
26028}
26029
26030
26031static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26032 PyObject *resultobj;
26033 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26034 PyObject *arg2 = (PyObject *) 0 ;
26035 PyObject *arg3 = (PyObject *) 0 ;
26036 PyObject * obj0 = 0 ;
26037 PyObject * obj1 = 0 ;
26038 PyObject * obj2 = 0 ;
26039 char *kwnames[] = {
26040 (char *) "self",(char *) "self",(char *) "_class", NULL
26041 };
26042
26043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26045 arg2 = obj1;
26046 arg3 = obj2;
26047 {
26048 PyThreadState* __tstate = wxPyBeginAllowThreads();
26049 (arg1)->_setCallbackInfo(arg2,arg3);
26050
26051 wxPyEndAllowThreads(__tstate);
26052 if (PyErr_Occurred()) SWIG_fail;
26053 }
26054 Py_INCREF(Py_None); resultobj = Py_None;
26055 return resultobj;
26056 fail:
26057 return NULL;
26058}
26059
26060
26061static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26062 PyObject *resultobj;
26063 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
423f194a
RD
26064 int arg2 ;
26065 int arg3 ;
d14a1e28
RD
26066 int arg4 ;
26067 int result;
26068 PyObject * obj0 = 0 ;
8edf1c75
RD
26069 PyObject * obj1 = 0 ;
26070 PyObject * obj2 = 0 ;
26071 PyObject * obj3 = 0 ;
d14a1e28
RD
26072 char *kwnames[] = {
26073 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26074 };
26075
8edf1c75 26076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 26077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
26078 {
26079 arg2 = (int) SWIG_PyObj_AsInt(obj1);
26080 if (PyErr_Occurred()) SWIG_fail;
26081 }
26082 {
26083 arg3 = (int) SWIG_PyObj_AsInt(obj2);
26084 if (PyErr_Occurred()) SWIG_fail;
26085 }
26086 {
26087 arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3);
26088 if (PyErr_Occurred()) SWIG_fail;
26089 }
d14a1e28
RD
26090 {
26091 PyThreadState* __tstate = wxPyBeginAllowThreads();
26092 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26093
26094 wxPyEndAllowThreads(__tstate);
26095 if (PyErr_Occurred()) SWIG_fail;
26096 }
8edf1c75 26097 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
26098 return resultobj;
26099 fail:
26100 return NULL;
26101}
26102
26103
26104static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26105 PyObject *resultobj;
26106 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
423f194a
RD
26107 int arg2 ;
26108 int arg3 ;
d14a1e28
RD
26109 int arg4 ;
26110 int result;
26111 PyObject * obj0 = 0 ;
8edf1c75
RD
26112 PyObject * obj1 = 0 ;
26113 PyObject * obj2 = 0 ;
26114 PyObject * obj3 = 0 ;
d14a1e28
RD
26115 char *kwnames[] = {
26116 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26117 };
26118
8edf1c75 26119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 26120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
26121 {
26122 arg2 = (int) SWIG_PyObj_AsInt(obj1);
26123 if (PyErr_Occurred()) SWIG_fail;
26124 }
26125 {
26126 arg3 = (int) SWIG_PyObj_AsInt(obj2);
26127 if (PyErr_Occurred()) SWIG_fail;
26128 }
26129 {
26130 arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3);
26131 if (PyErr_Occurred()) SWIG_fail;
26132 }
d14a1e28
RD
26133 {
26134 PyThreadState* __tstate = wxPyBeginAllowThreads();
26135 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26136
26137 wxPyEndAllowThreads(__tstate);
26138 if (PyErr_Occurred()) SWIG_fail;
26139 }
8edf1c75 26140 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
26141 return resultobj;
26142 fail:
26143 return NULL;
26144}
26145
26146
26147static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26148 PyObject *resultobj;
26149 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26150 PyObject * obj0 = 0 ;
26151 char *kwnames[] = {
26152 (char *) "self", NULL
26153 };
26154
26155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26157 {
26158 PyThreadState* __tstate = wxPyBeginAllowThreads();
26159 (arg1)->base_OnLeave();
26160
26161 wxPyEndAllowThreads(__tstate);
26162 if (PyErr_Occurred()) SWIG_fail;
26163 }
26164 Py_INCREF(Py_None); resultobj = Py_None;
26165 return resultobj;
26166 fail:
26167 return NULL;
26168}
26169
26170
26171static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26172 PyObject *resultobj;
26173 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
423f194a
RD
26174 int arg2 ;
26175 int arg3 ;
d14a1e28
RD
26176 bool result;
26177 PyObject * obj0 = 0 ;
8edf1c75
RD
26178 PyObject * obj1 = 0 ;
26179 PyObject * obj2 = 0 ;
d14a1e28
RD
26180 char *kwnames[] = {
26181 (char *) "self",(char *) "x",(char *) "y", NULL
26182 };
26183
8edf1c75 26184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 26185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
26186 {
26187 arg2 = (int) SWIG_PyObj_AsInt(obj1);
26188 if (PyErr_Occurred()) SWIG_fail;
26189 }
26190 {
26191 arg3 = (int) SWIG_PyObj_AsInt(obj2);
26192 if (PyErr_Occurred()) SWIG_fail;
26193 }
d14a1e28
RD
26194 {
26195 PyThreadState* __tstate = wxPyBeginAllowThreads();
26196 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26197
26198 wxPyEndAllowThreads(__tstate);
26199 if (PyErr_Occurred()) SWIG_fail;
26200 }
02a34c4c 26201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26202 return resultobj;
26203 fail:
26204 return NULL;
26205}
26206
26207
26208static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26209 PyObject *resultobj;
26210 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
423f194a
RD
26211 int arg2 ;
26212 int arg3 ;
d14a1e28
RD
26213 int arg4 ;
26214 int result;
26215 PyObject * obj0 = 0 ;
8edf1c75
RD
26216 PyObject * obj1 = 0 ;
26217 PyObject * obj2 = 0 ;
26218 PyObject * obj3 = 0 ;
d14a1e28
RD
26219 char *kwnames[] = {
26220 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26221 };
26222
8edf1c75 26223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 26224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
26225 {
26226 arg2 = (int) SWIG_PyObj_AsInt(obj1);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 {
26230 arg3 = (int) SWIG_PyObj_AsInt(obj2);
26231 if (PyErr_Occurred()) SWIG_fail;
26232 }
26233 {
26234 arg4 = (wxDragResult) SWIG_PyObj_AsInt(obj3);
26235 if (PyErr_Occurred()) SWIG_fail;
26236 }
d14a1e28
RD
26237 {
26238 PyThreadState* __tstate = wxPyBeginAllowThreads();
26239 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26240
26241 wxPyEndAllowThreads(__tstate);
26242 if (PyErr_Occurred()) SWIG_fail;
26243 }
8edf1c75 26244 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
26245 return resultobj;
26246 fail:
26247 return NULL;
26248}
26249
26250
26251static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26252 PyObject *obj;
26253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26254 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26255 Py_INCREF(obj);
26256 return Py_BuildValue((char *)"");
26257}
26258static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26259 PyObject *resultobj;
26260 wxClipboard *result;
26261 char *kwnames[] = {
26262 NULL
26263 };
26264
26265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26266 {
26267 PyThreadState* __tstate = wxPyBeginAllowThreads();
26268 result = (wxClipboard *)new wxClipboard();
26269
26270 wxPyEndAllowThreads(__tstate);
26271 if (PyErr_Occurred()) SWIG_fail;
26272 }
26273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1);
26274 return resultobj;
26275 fail:
26276 return NULL;
26277}
26278
26279
26280static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26281 PyObject *resultobj;
26282 wxClipboard *arg1 = (wxClipboard *) 0 ;
26283 PyObject * obj0 = 0 ;
26284 char *kwnames[] = {
26285 (char *) "self", NULL
26286 };
26287
26288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26290 {
26291 PyThreadState* __tstate = wxPyBeginAllowThreads();
26292 delete arg1;
26293
26294 wxPyEndAllowThreads(__tstate);
26295 if (PyErr_Occurred()) SWIG_fail;
26296 }
26297 Py_INCREF(Py_None); resultobj = Py_None;
26298 return resultobj;
26299 fail:
26300 return NULL;
26301}
26302
26303
26304static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26305 PyObject *resultobj;
26306 wxClipboard *arg1 = (wxClipboard *) 0 ;
26307 bool result;
26308 PyObject * obj0 = 0 ;
26309 char *kwnames[] = {
26310 (char *) "self", NULL
26311 };
26312
26313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 result = (bool)(arg1)->Open();
26318
26319 wxPyEndAllowThreads(__tstate);
26320 if (PyErr_Occurred()) SWIG_fail;
26321 }
02a34c4c 26322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26323 return resultobj;
26324 fail:
26325 return NULL;
26326}
26327
26328
26329static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26330 PyObject *resultobj;
26331 wxClipboard *arg1 = (wxClipboard *) 0 ;
26332 PyObject * obj0 = 0 ;
26333 char *kwnames[] = {
26334 (char *) "self", NULL
26335 };
26336
26337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26339 {
26340 PyThreadState* __tstate = wxPyBeginAllowThreads();
26341 (arg1)->Close();
26342
26343 wxPyEndAllowThreads(__tstate);
26344 if (PyErr_Occurred()) SWIG_fail;
26345 }
26346 Py_INCREF(Py_None); resultobj = Py_None;
26347 return resultobj;
26348 fail:
26349 return NULL;
26350}
26351
26352
26353static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26354 PyObject *resultobj;
26355 wxClipboard *arg1 = (wxClipboard *) 0 ;
26356 bool result;
26357 PyObject * obj0 = 0 ;
26358 char *kwnames[] = {
26359 (char *) "self", NULL
26360 };
26361
26362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26364 {
26365 PyThreadState* __tstate = wxPyBeginAllowThreads();
26366 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26367
26368 wxPyEndAllowThreads(__tstate);
26369 if (PyErr_Occurred()) SWIG_fail;
26370 }
02a34c4c 26371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26372 return resultobj;
26373 fail:
26374 return NULL;
26375}
26376
26377
26378static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26379 PyObject *resultobj;
26380 wxClipboard *arg1 = (wxClipboard *) 0 ;
26381 wxDataObject *arg2 = (wxDataObject *) 0 ;
26382 bool result;
26383 PyObject * obj0 = 0 ;
26384 PyObject * obj1 = 0 ;
26385 char *kwnames[] = {
26386 (char *) "self",(char *) "data", NULL
26387 };
26388
26389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
58203fa6 26391 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
d14a1e28
RD
26392 {
26393 PyThreadState* __tstate = wxPyBeginAllowThreads();
26394 result = (bool)(arg1)->AddData(arg2);
26395
26396 wxPyEndAllowThreads(__tstate);
26397 if (PyErr_Occurred()) SWIG_fail;
26398 }
02a34c4c 26399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26400 return resultobj;
26401 fail:
26402 return NULL;
26403}
26404
26405
26406static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26407 PyObject *resultobj;
26408 wxClipboard *arg1 = (wxClipboard *) 0 ;
26409 wxDataObject *arg2 = (wxDataObject *) 0 ;
26410 bool result;
26411 PyObject * obj0 = 0 ;
26412 PyObject * obj1 = 0 ;
26413 char *kwnames[] = {
26414 (char *) "self",(char *) "data", NULL
26415 };
26416
26417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
58203fa6 26419 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
d14a1e28
RD
26420 {
26421 PyThreadState* __tstate = wxPyBeginAllowThreads();
26422 result = (bool)(arg1)->SetData(arg2);
26423
26424 wxPyEndAllowThreads(__tstate);
26425 if (PyErr_Occurred()) SWIG_fail;
26426 }
02a34c4c 26427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26428 return resultobj;
26429 fail:
26430 return NULL;
26431}
26432
26433
26434static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
26435 PyObject *resultobj;
26436 wxClipboard *arg1 = (wxClipboard *) 0 ;
26437 wxDataFormat *arg2 = 0 ;
26438 bool result;
26439 PyObject * obj0 = 0 ;
26440 PyObject * obj1 = 0 ;
26441 char *kwnames[] = {
26442 (char *) "self",(char *) "format", NULL
26443 };
26444
26445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26447 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26448 if (arg2 == NULL) {
26449 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26450 }
26451 {
26452 PyThreadState* __tstate = wxPyBeginAllowThreads();
26453 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26454
26455 wxPyEndAllowThreads(__tstate);
26456 if (PyErr_Occurred()) SWIG_fail;
26457 }
02a34c4c 26458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26459 return resultobj;
26460 fail:
26461 return NULL;
26462}
26463
26464
26465static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26466 PyObject *resultobj;
26467 wxClipboard *arg1 = (wxClipboard *) 0 ;
26468 wxDataObject *arg2 = 0 ;
26469 bool result;
26470 PyObject * obj0 = 0 ;
26471 PyObject * obj1 = 0 ;
26472 char *kwnames[] = {
26473 (char *) "self",(char *) "data", NULL
26474 };
26475
26476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26478 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26479 if (arg2 == NULL) {
26480 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
26481 }
26482 {
26483 PyThreadState* __tstate = wxPyBeginAllowThreads();
26484 result = (bool)(arg1)->GetData(*arg2);
26485
26486 wxPyEndAllowThreads(__tstate);
26487 if (PyErr_Occurred()) SWIG_fail;
26488 }
02a34c4c 26489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26490 return resultobj;
26491 fail:
26492 return NULL;
26493}
26494
26495
26496static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
26497 PyObject *resultobj;
26498 wxClipboard *arg1 = (wxClipboard *) 0 ;
26499 PyObject * obj0 = 0 ;
26500 char *kwnames[] = {
26501 (char *) "self", NULL
26502 };
26503
26504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
26505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26506 {
26507 PyThreadState* __tstate = wxPyBeginAllowThreads();
26508 (arg1)->Clear();
26509
26510 wxPyEndAllowThreads(__tstate);
26511 if (PyErr_Occurred()) SWIG_fail;
26512 }
26513 Py_INCREF(Py_None); resultobj = Py_None;
26514 return resultobj;
26515 fail:
26516 return NULL;
26517}
26518
26519
26520static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
26521 PyObject *resultobj;
26522 wxClipboard *arg1 = (wxClipboard *) 0 ;
26523 bool result;
26524 PyObject * obj0 = 0 ;
26525 char *kwnames[] = {
26526 (char *) "self", NULL
26527 };
26528
26529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
26530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26531 {
26532 PyThreadState* __tstate = wxPyBeginAllowThreads();
26533 result = (bool)(arg1)->Flush();
26534
26535 wxPyEndAllowThreads(__tstate);
26536 if (PyErr_Occurred()) SWIG_fail;
26537 }
02a34c4c 26538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26539 return resultobj;
26540 fail:
26541 return NULL;
26542}
26543
26544
26545static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26546 PyObject *resultobj;
26547 wxClipboard *arg1 = (wxClipboard *) 0 ;
423f194a 26548 bool arg2 = (bool) False ;
d14a1e28
RD
26549 PyObject * obj0 = 0 ;
26550 PyObject * obj1 = 0 ;
26551 char *kwnames[] = {
26552 (char *) "self",(char *) "primary", NULL
26553 };
26554
26555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
26556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26557 if (obj1) {
2dbef272 26558 {
8edf1c75 26559 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2dbef272
RD
26560 if (PyErr_Occurred()) SWIG_fail;
26561 }
d14a1e28
RD
26562 }
26563 {
26564 PyThreadState* __tstate = wxPyBeginAllowThreads();
26565 (arg1)->UsePrimarySelection(arg2);
26566
26567 wxPyEndAllowThreads(__tstate);
26568 if (PyErr_Occurred()) SWIG_fail;
26569 }
26570 Py_INCREF(Py_None); resultobj = Py_None;
26571 return resultobj;
26572 fail:
26573 return NULL;
26574}
26575
26576
26577static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
26578 PyObject *obj;
26579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26580 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
26581 Py_INCREF(obj);
26582 return Py_BuildValue((char *)"");
26583}
8edf1c75 26584static int _wrap_TheClipboard_set(PyObject *) {
d14a1e28
RD
26585 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
26586 return 1;
26587}
26588
26589
26590static PyObject *_wrap_TheClipboard_get() {
26591 PyObject *pyobj;
26592
26593 pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0);
26594 return pyobj;
26595}
26596
26597
26598static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
26599 PyObject *resultobj;
26600 wxClipboard *arg1 = (wxClipboard *) NULL ;
26601 wxClipboardLocker *result;
26602 PyObject * obj0 = 0 ;
26603 char *kwnames[] = {
26604 (char *) "clipboard", NULL
26605 };
26606
26607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
26608 if (obj0) {
26609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26610 }
26611 {
26612 PyThreadState* __tstate = wxPyBeginAllowThreads();
26613 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
26614
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1);
26619 return resultobj;
26620 fail:
26621 return NULL;
26622}
26623
26624
26625static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
26626 PyObject *resultobj;
26627 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26628 PyObject * obj0 = 0 ;
26629 char *kwnames[] = {
26630 (char *) "self", NULL
26631 };
26632
26633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
26634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26635 {
26636 PyThreadState* __tstate = wxPyBeginAllowThreads();
26637 delete arg1;
26638
26639 wxPyEndAllowThreads(__tstate);
26640 if (PyErr_Occurred()) SWIG_fail;
26641 }
26642 Py_INCREF(Py_None); resultobj = Py_None;
26643 return resultobj;
26644 fail:
26645 return NULL;
26646}
26647
26648
26649static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
26650 PyObject *resultobj;
26651 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26652 bool result;
26653 PyObject * obj0 = 0 ;
26654 char *kwnames[] = {
26655 (char *) "self", NULL
26656 };
26657
26658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
26659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26660 {
26661 PyThreadState* __tstate = wxPyBeginAllowThreads();
26662 result = (bool)wxClipboardLocker___nonzero__(arg1);
26663
26664 wxPyEndAllowThreads(__tstate);
26665 if (PyErr_Occurred()) SWIG_fail;
26666 }
02a34c4c 26667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26668 return resultobj;
26669 fail:
26670 return NULL;
26671}
26672
26673
26674static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
26675 PyObject *obj;
26676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26677 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
26678 Py_INCREF(obj);
26679 return Py_BuildValue((char *)"");
26680}
26681static PyMethodDef SwigMethods[] = {
26682 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
26683 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
26684 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
26685 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
26686 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
26687 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
26688 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
26689 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
26690 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
26691 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
26692 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
26693 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
26694 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
26695 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
26696 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
26697 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
26698 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
26699 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
26700 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
26701 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
26702 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
26703 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
26704 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
26705 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
26706 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
26707 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
26708 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
26709 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
26710 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
26711 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
26712 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
26713 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
26714 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
26715 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
26716 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
26717 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
26718 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
26719 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
26720 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
26721 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
26722 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
26723 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
26724 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
26725 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
26726 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
26727 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
26728 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
26729 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
26730 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
26731 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
26732 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
26733 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
26734 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
26735 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
26736 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
26737 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
26738 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
26739 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
26740 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
26741 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
26742 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
26743 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
26744 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
26745 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
26746 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
26747 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
26748 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
cbd72d4f 26749 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26750 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
26751 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
26752 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
26753 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
26754 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
26755 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
26756 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
26757 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
26758 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
26759 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
26760 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
26761 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
26762 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
26763 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
26764 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
26765 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
26766 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
26767 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
d14a1e28 26768 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
44127b65 26769 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 26770 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
44127b65 26771 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26772 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
26773 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
26774 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
26775 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
26776 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
26777 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
26778 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
26779 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
26780 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
26781 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
26782 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
26783 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
26784 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
26785 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
26786 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
26787 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
26788 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
26789 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
26790 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
26791 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
26792 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
26793 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
26794 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
26795 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
26796 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
26797 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
26798 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
26799 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
26800 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
26801 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
26802 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
26803 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
26804 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
26805 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
26806 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
26807 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
26808 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
26809 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
26810 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
26811 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
26812 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
26813 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
26814 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
26815 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
26816 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
26817 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
26818 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
26819 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
26820 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
26821 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
26822 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
26823 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
26824 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
26825 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
26826 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
26827 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
26828 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
26829 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
44127b65 26830 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26831 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
26832 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
26833 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26834 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
26835 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
26836 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
0f774bef 26837 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
26838 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
26839 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
26840 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
26841 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
26842 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
26843 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
26844 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
26845 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
26846 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
26847 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
26848 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
26849 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
26850 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
26851 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
26852 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
26853 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
26854 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
26855 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
26856 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
26857 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
26858 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
26859 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
26860 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
26861 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
26862 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
26863 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
26864 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
26865 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
26866 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
26867 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
26868 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
26869 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
26870 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
26871 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
26872 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
26873 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
26874 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
26875 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
26876 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
26877 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
26878 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
26879 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
26880 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
26881 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
26882 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
26883 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
26884 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
26885 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
26886 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
26887 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
26888 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
26889 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
26890 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
26891 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
26892 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
26893 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
26894 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
26895 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
26896 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
26897 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
26898 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
26899 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
26900 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
26901 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
26902 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
26903 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
0f774bef 26904 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
d14a1e28
RD
26905 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
26906 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
26907 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
26908 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
26909 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
26910 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
26911 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
26912 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
26913 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
26914 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
26915 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
26916 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
26917 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
26918 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
26919 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
26920 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
26921 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
26922 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
26923 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
26924 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
26925 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
26926 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
26927 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
26928 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
26929 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
26930 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
26931 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
26932 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
26933 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
26934 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
26935 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
26936 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
26937 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
26938 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
26939 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
26940 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
26941 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
26942 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
26943 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
26944 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
26945 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
26946 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
26947 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
26948 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
26949 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
26950 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
26951 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
26952 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
26953 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
26954 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
26955 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
26956 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
26957 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
26958 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
26959 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
26960 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
26961 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
26962 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
26963 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
26964 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
26965 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
26966 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
26967 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
26968 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
26969 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
26970 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
26971 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
26972 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
26973 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
26974 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
26975 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
26976 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
26977 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
26978 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
26979 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
26980 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
26981 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
26982 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
26983 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
26984 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
26985 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
26986 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
26987 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
26988 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
26989 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
26990 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
26991 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
26992 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
26993 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
26994 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
26995 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
26996 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
26997 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
26998 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
26999 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
27000 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
27001 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
27002 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
27003 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
27004 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
27005 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
27006 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
27007 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
27008 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
27009 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
27010 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
27011 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
02a34c4c
RD
27012 { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS },
27013 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
27014 { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS },
27015 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
27016 { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS },
27017 { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS },
27018 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
27019 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
d14a1e28
RD
27020 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
27021 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
27022 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
27023 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
27024 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
27025 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
27026 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
27027 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
27028 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
27029 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
27030 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
27031 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
27032 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
27033 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
27034 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
27035 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
27036 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
27037 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
27038 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
27039 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
27040 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
27041 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
27042 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
27043 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
27044 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
27045 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
27046 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
27047 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
27048 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
27049 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
27050 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
27051 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
27052 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
27053 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
27054 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
27055 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
27056 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
27057 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
27058 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
27059 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
27060 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
27061 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
27062 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
27063 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
27064 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
27065 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
27066 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
27067 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27068 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
27069 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
27070 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
27071 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
27072 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
41f1cec7 27073 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
27074 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
27075 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
27076 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
27077 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
27078 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
27079 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
27080 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
27081 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
27082 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
27083 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
27084 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
27085 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
27086 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
27087 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
27088 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
27089 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
27090 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
27091 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
27092 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
27093 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
27094 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
27095 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
27096 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
27097 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
27098 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
27099 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
27100 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
27101 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
27102 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
27103 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
27104 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
27105 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
27106 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
27107 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
27108 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
27109 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
27110 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
27111 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
27112 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
27113 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
27114 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
27115 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
27116 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
27117 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
27118 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
27119 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
27120 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
27121 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
27122 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
27123 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
27124 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
27125 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
27126 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
27127 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
27128 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
27129 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
27130 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
27131 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
27132 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
27133 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
27134 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
27135 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
27136 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
27137 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
27138 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
27139 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
27140 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
27141 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
27142 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
27143 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
27144 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
27145 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
27146 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
27147 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
27148 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
27149 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
27150 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
27151 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
27152 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
27153 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
27154 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
27155 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
27156 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
27157 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
27158 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
27159 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
27160 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
27161 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
27162 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
27163 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
27164 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
27165 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
27166 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
27167 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
27168 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
27169 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
27170 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
27171 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
27172 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
27173 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
27174 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
27175 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
27176 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
27177 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
27178 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
27179 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
27180 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
27181 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
27182 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
27183 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
27184 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
27185 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
27186 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
27187 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
27188 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
27189 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
27190 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
27191 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
27192 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
27193 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
27194 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
27195 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
27196 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
27197 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
27198 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
27199 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
27200 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
27201 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
27202 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
27203 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
27204 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
27205 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
27206 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
27207 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
27208 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
27209 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
27210 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
27211 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
27212 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
27213 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
27214 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
27215 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
27216 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
27217 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
27218 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
27219 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
27220 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
27221 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
27222 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
27223 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
27224 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
27225 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
27226 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
27227 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
27228 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
27229 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
27230 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
27231 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
27232 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
27233 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
27234 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
27235 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
27236 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
27237 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
27238 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
27239 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
27240 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
27241 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
27242 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
27243 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
27244 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
27245 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
27246 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
27247 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
27248 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
27249 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
27250 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
27251 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
27252 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
27253 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
27254 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
27255 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
27256 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
27257 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
27258 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
27259 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
27260 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
27261 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
27262 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
27263 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
27264 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
27265 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
27266 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
27267 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
27268 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
27269 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
27270 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
27271 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
27272 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
27273 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
27274 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
27275 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
27276 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
27277 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
27278 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
27279 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
27280 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
27281 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
27282 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
27283 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
27284 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
27285 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
27286 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
27287 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
27288 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
27289 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
27290 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
27291 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
27292 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
27293 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
27294 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
27295 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
27296 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
27297 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
27298 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
27299 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
27300 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
27301 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
27302 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
27303 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
27304 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
27305 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
27306 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
27307 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
27308 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
27309 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
27310 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
27311 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
27312 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
27313 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
27314 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
27315 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
27316 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
27317 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
27318 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
27319 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
27320 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
27321 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
27322 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
27323 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
27324 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
27325 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
27326 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
27327 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
27328 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
27329 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
27330 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
27331 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
27332 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
27333 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
27334 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
27335 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
27336 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
27337 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
27338 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
27339 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
27340 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
27341 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
27342 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
27343 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
27344 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
27345 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
27346 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
27347 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27348 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
27349 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
27350 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
27351 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
27352 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
27353 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
27354 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
27355 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
27356 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
27357 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
27358 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27359 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
27360 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
27361 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
27362 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
27363 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
27364 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
27365 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27366 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
27367 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
27368 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
27369 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
27370 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
27371 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
27372 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
27373 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
27374 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
27375 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
27376 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
27377 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
27378 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
27379 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
27380 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
27381 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
27382 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
27383 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
27384 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
27385 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
27386 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27387 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
27388 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
27389 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
27390 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
27391 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
27392 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
27393 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
cbd72d4f 27394 { (char *)"new_PyDropTarget", (PyCFunction) _wrap_new_PyDropTarget, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
27395 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27396 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
27397 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
27398 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
27399 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27400 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27401 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27402 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27403 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
27404 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
27405 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
27406 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27407 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27408 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27409 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27410 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27411 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
27412 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
27413 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
27414 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27415 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27416 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27417 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27418 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27419 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
27420 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
27421 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
27422 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
27423 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
27424 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
27425 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
27426 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
27427 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
27428 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
27429 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
27430 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
27431 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
27432 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
27433 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
27434 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
27435 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
27436 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
27437 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
27438 { NULL, NULL }
27439};
27440
27441
27442/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
27443
27444static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
27445 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
27446}
27447static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
27448 return (void *)((wxEvent *) ((wxMenuEvent *) x));
27449}
27450static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
27451 return (void *)((wxEvent *) ((wxCloseEvent *) x));
27452}
27453static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
27454 return (void *)((wxEvent *) ((wxMouseEvent *) x));
27455}
27456static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
27457 return (void *)((wxEvent *) ((wxEraseEvent *) x));
27458}
27459static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
27460 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
27461}
27462static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
27463 return (void *)((wxEvent *) ((wxTimerEvent *) x));
27464}
27465static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
27466 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
27467}
27468static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
27469 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
27470}
27471static void *_p_wxPyEventTo_p_wxEvent(void *x) {
27472 return (void *)((wxEvent *) ((wxPyEvent *) x));
27473}
27474static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
27475 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
27476}
27477static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
27478 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
27479}
27480static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
27481 return (void *)((wxEvent *) ((wxIdleEvent *) x));
27482}
27483static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
27484 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
27485}
27486static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
27487 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
27488}
27489static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
27490 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
27491}
27492static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
27493 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
27494}
27495static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
27496 return (void *)((wxEvent *) ((wxActivateEvent *) x));
27497}
27498static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
27499 return (void *)((wxEvent *) ((wxSizeEvent *) x));
27500}
27501static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
27502 return (void *)((wxEvent *) ((wxMoveEvent *) x));
27503}
27504static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
27505 return (void *)((wxEvent *) ((wxPaintEvent *) x));
27506}
27507static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
27508 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
27509}
27510static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
27511 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
27512}
27513static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
27514 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
27515}
27516static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
27517 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
27518}
27519static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
27520 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
27521}
27522static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
27523 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
27524}
27525static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
27526 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
27527}
27528static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
27529 return (void *)((wxEvent *) ((wxFocusEvent *) x));
27530}
27531static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
27532 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
27533}
27534static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
27535 return (void *)((wxEvent *) ((wxProcessEvent *) x));
27536}
27537static void *_p_wxShowEventTo_p_wxEvent(void *x) {
27538 return (void *)((wxEvent *) ((wxShowEvent *) x));
27539}
27540static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
27541 return (void *)((wxEvent *) ((wxCommandEvent *) x));
27542}
27543static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
27544 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
27545}
27546static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
27547 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
27548}
27549static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
27550 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
27551}
27552static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
27553 return (void *)((wxEvent *) ((wxKeyEvent *) x));
27554}
27555static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
27556 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
27557}
27558static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
27559 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
27560}
27561static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
27562 return (void *)((wxConfigBase *) ((wxConfig *) x));
27563}
27564static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
27565 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27566}
27567static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
27568 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
27569}
27570static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
27571 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
27572}
27573static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
27574 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
27575}
27576static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
27577 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
27578}
27579static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
27580 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
27581}
27582static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
27583 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
27584}
27585static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
27586 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
27587}
27588static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
27589 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27590}
27591static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
27592 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
27593}
27594static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
27595 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
27596}
27597static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
27598 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
27599}
27600static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
27601 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
27602}
27603static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
27604 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
27605}
27606static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
27607 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
27608}
27609static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
27610 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
27611}
27612static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
27613 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
27614}
27615static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
27616 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
27617}
27618static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
27619 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27620}
27621static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
27622 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
27623}
27624static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
27625 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
27626}
27627static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
27628 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
27629}
27630static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
27631 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
27632}
27633static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
27634 return (void *)((wxEvtHandler *) ((wxWindow *) x));
27635}
27636static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
27637 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
27638}
27639static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
27640 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
27641}
27642static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
27643 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
27644}
27645static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
27646 return (void *)((wxEvtHandler *) ((wxValidator *) x));
27647}
27648static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
27649 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
27650}
27651static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
27652 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
27653}
27654static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
27655 return (void *)((wxEvtHandler *) ((wxMenu *) x));
27656}
27657static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
27658 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
27659}
27660static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
27661 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
27662}
27663static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
27664 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
27665}
27666static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
27667 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
27668}
27669static void *_p_wxSizerItemTo_p_wxObject(void *x) {
27670 return (void *)((wxObject *) ((wxSizerItem *) x));
27671}
27672static void *_p_wxScrollEventTo_p_wxObject(void *x) {
27673 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
27674}
27675static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
27676 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
27677}
27678static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
27679 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
27680}
27681static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
27682 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
27683}
27684static void *_p_wxSizerTo_p_wxObject(void *x) {
27685 return (void *)((wxObject *) ((wxSizer *) x));
27686}
27687static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
27688 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
27689}
27690static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
27691 return (void *)((wxObject *) ((wxFileHistory *) x));
27692}
27693static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
27694 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
27695}
27696static void *_p_wxEventTo_p_wxObject(void *x) {
27697 return (void *)((wxObject *) ((wxEvent *) x));
27698}
27699static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
27700 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
27701}
27702static void *_p_wxGridSizerTo_p_wxObject(void *x) {
27703 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
27704}
27705static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
27706 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
27707}
27708static void *_p_wxPaintEventTo_p_wxObject(void *x) {
27709 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
27710}
27711static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
27712 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
27713}
27714static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
27715 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
27716}
27717static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
27718 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
27719}
27720static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
27721 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
27722}
27723static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
27724 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
27725}
27726static void *_p_wxControlTo_p_wxObject(void *x) {
27727 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
27728}
27729static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
27730 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
27731}
27732static void *_p_wxTimerEventTo_p_wxObject(void *x) {
27733 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
27734}
27735static void *_p_wxFSFileTo_p_wxObject(void *x) {
27736 return (void *)((wxObject *) ((wxFSFile *) x));
27737}
27738static void *_p_wxClipboardTo_p_wxObject(void *x) {
27739 return (void *)((wxObject *) ((wxClipboard *) x));
27740}
27741static void *_p_wxPySizerTo_p_wxObject(void *x) {
27742 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
27743}
27744static void *_p_wxPyEventTo_p_wxObject(void *x) {
27745 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
27746}
27747static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
27748 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
27749}
27750static void *_p_wxShowEventTo_p_wxObject(void *x) {
27751 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
27752}
27753static void *_p_wxToolTipTo_p_wxObject(void *x) {
27754 return (void *)((wxObject *) ((wxToolTip *) x));
27755}
27756static void *_p_wxMenuItemTo_p_wxObject(void *x) {
27757 return (void *)((wxObject *) ((wxMenuItem *) x));
27758}
27759static void *_p_wxIdleEventTo_p_wxObject(void *x) {
27760 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
27761}
27762static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
27763 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
27764}
27765static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
27766 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
27767}
27768static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
27769 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
27770}
27771static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
27772 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
27773}
27774static void *_p_wxSizeEventTo_p_wxObject(void *x) {
27775 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
27776}
27777static void *_p_wxMoveEventTo_p_wxObject(void *x) {
27778 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
27779}
27780static void *_p_wxActivateEventTo_p_wxObject(void *x) {
27781 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
27782}
27783static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
27784 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
27785}
27786static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
27787 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
27788}
27789static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
27790 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
27791}
27792static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
27793 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
27794}
27795static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
27796 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
27797}
27798static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
27799 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
27800}
27801static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
27802 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
27803}
27804static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
27805 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
27806}
27807static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
27808 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
27809}
27810static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
27811 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
27812}
27813static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
27814 return (void *)((wxObject *) ((wxImageHandler *) x));
27815}
27816static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
27817 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
27818}
27819static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
27820 return (void *)((wxObject *) ((wxEvtHandler *) x));
27821}
41f1cec7
RD
27822static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
27823 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
27824}
d14a1e28
RD
27825static void *_p_wxImageTo_p_wxObject(void *x) {
27826 return (void *)((wxObject *) ((wxImage *) x));
27827}
27828static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
27829 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
27830}
27831static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
27832 return (void *)((wxObject *) ((wxSystemOptions *) x));
27833}
27834static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
27835 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
27836}
27837static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
27838 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
27839}
27840static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
27841 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
27842}
27843static void *_p_wxKeyEventTo_p_wxObject(void *x) {
27844 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
27845}
27846static void *_p_wxWindowTo_p_wxObject(void *x) {
27847 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
27848}
27849static void *_p_wxMenuTo_p_wxObject(void *x) {
27850 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
27851}
27852static void *_p_wxMenuBarTo_p_wxObject(void *x) {
27853 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
27854}
27855static void *_p_wxPyProcessTo_p_wxObject(void *x) {
27856 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
27857}
27858static void *_p_wxFileSystemTo_p_wxObject(void *x) {
27859 return (void *)((wxObject *) ((wxFileSystem *) x));
27860}
27861static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
27862 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
27863}
27864static void *_p_wxMenuEventTo_p_wxObject(void *x) {
27865 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
27866}
27867static void *_p_wxPyAppTo_p_wxObject(void *x) {
27868 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
27869}
27870static void *_p_wxCloseEventTo_p_wxObject(void *x) {
27871 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
27872}
27873static void *_p_wxMouseEventTo_p_wxObject(void *x) {
27874 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
27875}
27876static void *_p_wxEraseEventTo_p_wxObject(void *x) {
27877 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
27878}
27879static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
27880 return (void *)((wxObject *) ((wxBusyInfo *) x));
27881}
27882static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
27883 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
27884}
27885static void *_p_wxCommandEventTo_p_wxObject(void *x) {
27886 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
27887}
27888static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
27889 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
27890}
27891static void *_p_wxFocusEventTo_p_wxObject(void *x) {
27892 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
27893}
27894static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
27895 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
27896}
27897static void *_p_wxProcessEventTo_p_wxObject(void *x) {
27898 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
27899}
27900static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
27901 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
27902}
27903static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
27904 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
27905}
27906static void *_p_wxValidatorTo_p_wxObject(void *x) {
27907 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
27908}
27909static void *_p_wxPyTimerTo_p_wxObject(void *x) {
27910 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
27911}
27912static void *_p_wxLogStderrTo_p_wxLog(void *x) {
27913 return (void *)((wxLog *) ((wxLogStderr *) x));
27914}
27915static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
27916 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
27917}
27918static void *_p_wxLogWindowTo_p_wxLog(void *x) {
27919 return (void *)((wxLog *) ((wxLogWindow *) x));
27920}
27921static void *_p_wxLogChainTo_p_wxLog(void *x) {
27922 return (void *)((wxLog *) ((wxLogChain *) x));
27923}
27924static void *_p_wxLogGuiTo_p_wxLog(void *x) {
27925 return (void *)((wxLog *) ((wxLogGui *) x));
27926}
27927static void *_p_wxPyLogTo_p_wxLog(void *x) {
27928 return (void *)((wxLog *) ((wxPyLog *) x));
27929}
27930static void *_p_wxControlTo_p_wxWindow(void *x) {
27931 return (void *)((wxWindow *) ((wxControl *) x));
27932}
27933static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
27934 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
27935}
27936static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
27937 return (void *)((wxWindow *) ((wxMenuBar *) x));
27938}
27939static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
27940 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
27941}
27942static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
27943 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
27944}
27945static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}};
27946static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}};
27947static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0},{"_p_wxMetafile"},{0}};
27948static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}};
27949static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog},{"_p_wxLog"},{0}};
27950static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}};
27951static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}};
27952static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}};
27953static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase},{"_p_wxConfigBase"},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase},{0}};
d14a1e28
RD
27954static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}};
27955static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}};
27956static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
27957static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}};
27958static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}};
27959static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}};
27960static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
27961static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
27962static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}};
27963static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}};
27964static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
27965static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}};
27966static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
27967static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}};
27968static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}};
27969static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}};
27970static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}};
d14a1e28
RD
27971static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}};
27972static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}};
27973static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}};
27974static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject},{"_p_wxDataObject"},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject},{0}};
02a34c4c 27975static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}};
8edf1c75 27976static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}};
d14a1e28
RD
27977static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}};
27978static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}};
27979static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}};
02a34c4c 27980static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0},{"_p_wxSound"},{0}};
d14a1e28
RD
27981static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}};
27982static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}};
27983static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}};
27984static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
27985static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}};
27986static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}};
27987static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}};
27988static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}};
27989static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}};
27990static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}};
27991static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0},{"_p_wxDataObjectSimple"},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple},{0}};
27992static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler},{0}};
27993static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
8edf1c75 27994static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
d14a1e28
RD
27995static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}};
27996static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}};
27997static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
27998static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}};
27999static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}};
28000static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}};
28001static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}};
28002static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}};
28003static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}};
28004static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}};
28005static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
28006static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}};
28007static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
41f1cec7 28008static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject},{0}};
d14a1e28
RD
28009static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
28010static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}};
28011static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}};
28012static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}};
28013static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
28014static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}};
28015static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
28016static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}};
28017static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}};
28018static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}};
28019static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget},{0}};
28020static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}};
28021static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}};
28022static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}};
28023static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}};
28024static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}};
28025static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
02a34c4c 28026static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0},{"_p_wxByte"},{0}};
d14a1e28
RD
28027static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}};
28028static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}};
28029static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}};
28030
28031static swig_type_info *swig_types_initial[] = {
28032_swigt__p_wxLogChain,
28033_swigt__p_wxMutexGuiLocker,
28034_swigt__p_wxMetafile,
28035_swigt__p_wxFileHistory,
28036_swigt__p_wxLog,
28037_swigt__p_wxDateTime__TimeZone,
28038_swigt__p_wxMenu,
28039_swigt__p_wxEvent,
28040_swigt__p_wxConfigBase,
d14a1e28
RD
28041_swigt__p_wxFileType,
28042_swigt__p_wxLogGui,
28043_swigt__p_wxFont,
28044_swigt__p_wxDataFormat,
28045_swigt__p_wxTimerEvent,
28046_swigt__p_wxCaret,
28047_swigt__p_int,
28048_swigt__p_wxSize,
28049_swigt__p_wxClipboard,
28050_swigt__p_wxStopWatch,
28051_swigt__p_wxDC,
28052_swigt__p_wxClipboardLocker,
28053_swigt__p_wxIcon,
28054_swigt__p_wxLogStderr,
28055_swigt__p_wxLogTextCtrl,
28056_swigt__p_wxTextCtrl,
28057_swigt__p_wxBusyCursor,
d14a1e28
RD
28058_swigt__p_wxPyTextDataObject,
28059_swigt__p_wxBitmapDataObject,
28060_swigt__p_wxTextDataObject,
28061_swigt__p_wxDataObject,
02a34c4c 28062_swigt__p_wxPyBitmapDataObject,
8edf1c75 28063_swigt__p_wxFileDataObject,
d14a1e28
RD
28064_swigt__p_wxCustomDataObject,
28065_swigt__p_wxURLDataObject,
28066_swigt__p_wxMetafileDataObject,
02a34c4c 28067_swigt__p_wxSound,
d14a1e28
RD
28068_swigt__p_wxTimerRunner,
28069_swigt__p_wxLogWindow,
28070_swigt__p_wxTimeSpan,
28071_swigt__p_wxArrayString,
28072_swigt__p_wxWindowDisabler,
28073_swigt__p_wxToolTip,
28074_swigt__p_wxDataObjectComposite,
28075_swigt__p_wxFileConfig,
28076_swigt__p_wxSystemSettings,
28077_swigt__p_wxPyDataObjectSimple,
28078_swigt__p_wxDataObjectSimple,
28079_swigt__p_wxEvtHandler,
28080_swigt__p_wxRect,
8edf1c75 28081_swigt__p_char,
d14a1e28
RD
28082_swigt__p_wxSingleInstanceChecker,
28083_swigt__p_wxFileTypeInfo,
28084_swigt__p_wxFrame,
28085_swigt__p_wxTimer,
28086_swigt__p_wxMimeTypesManager,
28087_swigt__p_wxPyArtProvider,
28088_swigt__p_wxPyTipProvider,
28089_swigt__p_wxTipProvider,
28090_swigt__p_wxJoystick,
28091_swigt__p_wxSystemOptions,
28092_swigt__p_wxPoint,
28093_swigt__p_wxJoystickEvent,
28094_swigt__p_wxCursor,
28095_swigt__p_wxObject,
28096_swigt__p_wxOutputStream,
28097_swigt__p_wxDateTime,
28098_swigt__p_wxPyDropSource,
28099_swigt__p_wxWindow,
28100_swigt__p_wxString,
28101_swigt__p_wxPyProcess,
28102_swigt__p_wxBitmap,
28103_swigt__p_wxConfig,
28104_swigt__p_wxChar,
28105_swigt__p_wxBusyInfo,
28106_swigt__p_wxPyDropTarget,
28107_swigt__p_wxPyTextDropTarget,
28108_swigt__p_wxPyFileDropTarget,
28109_swigt__p_wxProcessEvent,
28110_swigt__p_wxPyLog,
28111_swigt__p_wxLogNull,
28112_swigt__p_wxColour,
02a34c4c 28113_swigt__p_wxByte,
d14a1e28
RD
28114_swigt__p_wxConfigPathChanger,
28115_swigt__p_wxPyTimer,
28116_swigt__p_wxDateSpan,
281170
28118};
28119
28120
28121/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
28122
28123static swig_const_info swig_const_table[] = {
d14a1e28
RD
28124{ SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0},
28125{ SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0},
28126{ SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0},
28127{ SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0},
28128{ SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0},
d14a1e28
RD
28129{0}};
28130
28131#ifdef __cplusplus
28132}
28133#endif
28134
28135#ifdef __cplusplus
28136extern "C"
28137#endif
28138SWIGEXPORT(void) SWIG_init(void) {
28139 static PyObject *SWIG_globals = 0;
28140 static int typeinit = 0;
28141 PyObject *m, *d;
28142 int i;
28143 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
28144 m = Py_InitModule((char *) SWIG_name, SwigMethods);
28145 d = PyModule_GetDict(m);
28146
28147 if (!typeinit) {
28148 for (i = 0; swig_types_initial[i]; i++) {
28149 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
28150 }
28151 typeinit = 1;
28152 }
28153 SWIG_InstallConstants(d,swig_const_table);
28154
8edf1c75
RD
28155 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_OEM_FIXED_FONT));
28156 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_ANSI_FIXED_FONT));
28157 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_PyObj_FromInt((int)wxSYS_ANSI_VAR_FONT));
28158 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_PyObj_FromInt((int)wxSYS_SYSTEM_FONT));
28159 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_PyObj_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
28160 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_PyObj_FromInt((int)wxSYS_DEFAULT_PALETTE));
28161 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_PyObj_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
28162 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_PyObj_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
28163 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_PyObj_FromInt((int)wxSYS_ICONTITLE_FONT));
28164 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
28165 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BACKGROUND));
28166 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_DESKTOP));
28167 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
28168 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
28169 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENU));
28170 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOW));
28171 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
28172 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUTEXT));
28173 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
28174 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
28175 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
28176 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
28177 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
28178 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
28179 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
28180 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNFACE));
28181 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DFACE));
28182 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
28183 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DSHADOW));
28184 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
28185 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNTEXT));
28186 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
28187 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
28188 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
28189 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
28190 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
28191 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
28192 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_3DLIGHT));
28193 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INFOTEXT));
28194 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_INFOBK));
28195 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_LISTBOX));
28196 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
28197 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
28198 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
28199 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
28200 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MENUBAR));
28201 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_PyObj_FromInt((int)wxSYS_COLOUR_MAX));
28202 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_PyObj_FromInt((int)wxSYS_MOUSE_BUTTONS));
28203 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_PyObj_FromInt((int)wxSYS_BORDER_X));
28204 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_PyObj_FromInt((int)wxSYS_BORDER_Y));
28205 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_PyObj_FromInt((int)wxSYS_CURSOR_X));
28206 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_PyObj_FromInt((int)wxSYS_CURSOR_Y));
28207 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_PyObj_FromInt((int)wxSYS_DCLICK_X));
28208 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_PyObj_FromInt((int)wxSYS_DCLICK_Y));
28209 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_PyObj_FromInt((int)wxSYS_DRAG_X));
28210 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_PyObj_FromInt((int)wxSYS_DRAG_Y));
28211 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_PyObj_FromInt((int)wxSYS_EDGE_X));
28212 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_PyObj_FromInt((int)wxSYS_EDGE_Y));
28213 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_ARROW_X));
28214 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
28215 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_PyObj_FromInt((int)wxSYS_HTHUMB_X));
28216 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_PyObj_FromInt((int)wxSYS_ICON_X));
28217 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_PyObj_FromInt((int)wxSYS_ICON_Y));
28218 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_PyObj_FromInt((int)wxSYS_ICONSPACING_X));
28219 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_PyObj_FromInt((int)wxSYS_ICONSPACING_Y));
28220 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_PyObj_FromInt((int)wxSYS_WINDOWMIN_X));
28221 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_PyObj_FromInt((int)wxSYS_WINDOWMIN_Y));
28222 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_X));
28223 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_Y));
28224 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_PyObj_FromInt((int)wxSYS_FRAMESIZE_X));
28225 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_PyObj_FromInt((int)wxSYS_FRAMESIZE_Y));
28226 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_PyObj_FromInt((int)wxSYS_SMALLICON_X));
28227 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_PyObj_FromInt((int)wxSYS_SMALLICON_Y));
28228 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_PyObj_FromInt((int)wxSYS_HSCROLL_Y));
28229 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_X));
28230 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_ARROW_X));
28231 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_PyObj_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
28232 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_PyObj_FromInt((int)wxSYS_VTHUMB_Y));
28233 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_PyObj_FromInt((int)wxSYS_CAPTION_Y));
28234 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_PyObj_FromInt((int)wxSYS_MENU_Y));
28235 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_PyObj_FromInt((int)wxSYS_NETWORK_PRESENT));
28236 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_PyObj_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
28237 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_PyObj_FromInt((int)wxSYS_SHOW_SOUNDS));
28238 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_PyObj_FromInt((int)wxSYS_SWAP_BUTTONS));
28239 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_PyObj_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
28240 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_PyObj_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
28241 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_NONE));
28242 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_TINY));
28243 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_PDA));
28244 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_SMALL));
28245 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_PyObj_FromInt((int)wxSYS_SCREEN_DESKTOP));
cbd72d4f
RD
28246 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
28247 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
28248 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
28249 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
8edf1c75
RD
28250 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_PyObj_FromInt((int)wxSHUTDOWN_POWEROFF));
28251 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_PyObj_FromInt((int)wxSHUTDOWN_REBOOT));
28252 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_PyObj_FromInt((int)wxTIMER_CONTINUOUS));
28253 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_PyObj_FromInt((int)wxTIMER_ONE_SHOT));
d14a1e28 28254 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
8edf1c75
RD
28255 PyDict_SetItemString(d,"LOG_FatalError", SWIG_PyObj_FromInt((int)wxLOG_FatalError));
28256 PyDict_SetItemString(d,"LOG_Error", SWIG_PyObj_FromInt((int)wxLOG_Error));
28257 PyDict_SetItemString(d,"LOG_Warning", SWIG_PyObj_FromInt((int)wxLOG_Warning));
28258 PyDict_SetItemString(d,"LOG_Message", SWIG_PyObj_FromInt((int)wxLOG_Message));
28259 PyDict_SetItemString(d,"LOG_Status", SWIG_PyObj_FromInt((int)wxLOG_Status));
28260 PyDict_SetItemString(d,"LOG_Info", SWIG_PyObj_FromInt((int)wxLOG_Info));
28261 PyDict_SetItemString(d,"LOG_Debug", SWIG_PyObj_FromInt((int)wxLOG_Debug));
28262 PyDict_SetItemString(d,"LOG_Trace", SWIG_PyObj_FromInt((int)wxLOG_Trace));
28263 PyDict_SetItemString(d,"LOG_Progress", SWIG_PyObj_FromInt((int)wxLOG_Progress));
28264 PyDict_SetItemString(d,"LOG_User", SWIG_PyObj_FromInt((int)wxLOG_User));
28265 PyDict_SetItemString(d,"LOG_Max", SWIG_PyObj_FromInt((int)wxLOG_Max));
28266 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_PyObj_FromInt((int)0x0001));
28267 PyDict_SetItemString(d,"TraceMessages", SWIG_PyObj_FromInt((int)0x0002));
28268 PyDict_SetItemString(d,"TraceResAlloc", SWIG_PyObj_FromInt((int)0x0004));
28269 PyDict_SetItemString(d,"TraceRefCount", SWIG_PyObj_FromInt((int)0x0008));
28270 PyDict_SetItemString(d,"TraceOleCalls", SWIG_PyObj_FromInt((int)0x0100));
28271 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_PyObj_FromInt((int)wxPROCESS_DEFAULT));
28272 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_PyObj_FromInt((int)wxPROCESS_REDIRECT));
28273 PyDict_SetItemString(d,"KILL_OK", SWIG_PyObj_FromInt((int)wxKILL_OK));
28274 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_PyObj_FromInt((int)wxKILL_BAD_SIGNAL));
28275 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_PyObj_FromInt((int)wxKILL_ACCESS_DENIED));
28276 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_PyObj_FromInt((int)wxKILL_NO_PROCESS));
28277 PyDict_SetItemString(d,"KILL_ERROR", SWIG_PyObj_FromInt((int)wxKILL_ERROR));
28278 PyDict_SetItemString(d,"SIGNONE", SWIG_PyObj_FromInt((int)wxSIGNONE));
28279 PyDict_SetItemString(d,"SIGHUP", SWIG_PyObj_FromInt((int)wxSIGHUP));
28280 PyDict_SetItemString(d,"SIGINT", SWIG_PyObj_FromInt((int)wxSIGINT));
28281 PyDict_SetItemString(d,"SIGQUIT", SWIG_PyObj_FromInt((int)wxSIGQUIT));
28282 PyDict_SetItemString(d,"SIGILL", SWIG_PyObj_FromInt((int)wxSIGILL));
28283 PyDict_SetItemString(d,"SIGTRAP", SWIG_PyObj_FromInt((int)wxSIGTRAP));
28284 PyDict_SetItemString(d,"SIGABRT", SWIG_PyObj_FromInt((int)wxSIGABRT));
28285 PyDict_SetItemString(d,"SIGIOT", SWIG_PyObj_FromInt((int)wxSIGIOT));
28286 PyDict_SetItemString(d,"SIGEMT", SWIG_PyObj_FromInt((int)wxSIGEMT));
28287 PyDict_SetItemString(d,"SIGFPE", SWIG_PyObj_FromInt((int)wxSIGFPE));
28288 PyDict_SetItemString(d,"SIGKILL", SWIG_PyObj_FromInt((int)wxSIGKILL));
28289 PyDict_SetItemString(d,"SIGBUS", SWIG_PyObj_FromInt((int)wxSIGBUS));
28290 PyDict_SetItemString(d,"SIGSEGV", SWIG_PyObj_FromInt((int)wxSIGSEGV));
28291 PyDict_SetItemString(d,"SIGSYS", SWIG_PyObj_FromInt((int)wxSIGSYS));
28292 PyDict_SetItemString(d,"SIGPIPE", SWIG_PyObj_FromInt((int)wxSIGPIPE));
28293 PyDict_SetItemString(d,"SIGALRM", SWIG_PyObj_FromInt((int)wxSIGALRM));
28294 PyDict_SetItemString(d,"SIGTERM", SWIG_PyObj_FromInt((int)wxSIGTERM));
d14a1e28 28295 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
8edf1c75
RD
28296 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_PyObj_FromInt((int)wxEXEC_ASYNC));
28297 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_PyObj_FromInt((int)wxEXEC_SYNC));
28298 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_PyObj_FromInt((int)wxEXEC_NOHIDE));
28299 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_PyObj_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
d14a1e28
RD
28300
28301 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
28302
8edf1c75
RD
28303 PyDict_SetItemString(d,"JOYSTICK1", SWIG_PyObj_FromInt((int)wxJOYSTICK1));
28304 PyDict_SetItemString(d,"JOYSTICK2", SWIG_PyObj_FromInt((int)wxJOYSTICK2));
28305 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_PyObj_FromInt((int)wxJOY_BUTTON_ANY));
28306 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_PyObj_FromInt((int)wxJOY_BUTTON1));
28307 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_PyObj_FromInt((int)wxJOY_BUTTON2));
28308 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_PyObj_FromInt((int)wxJOY_BUTTON3));
28309 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_PyObj_FromInt((int)wxJOY_BUTTON4));
d14a1e28
RD
28310 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
28311 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
28312 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
28313 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
02a34c4c
RD
28314 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_PyObj_FromInt((int)wxSOUND_SYNC));
28315 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_PyObj_FromInt((int)wxSOUND_ASYNC));
28316 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_PyObj_FromInt((int)wxSOUND_LOOP));
8edf1c75
RD
28317 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_PyObj_FromInt((int)wxMAILCAP_STANDARD));
28318 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_PyObj_FromInt((int)wxMAILCAP_NETSCAPE));
28319 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_PyObj_FromInt((int)wxMAILCAP_KDE));
28320 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_PyObj_FromInt((int)wxMAILCAP_GNOME));
28321 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_PyObj_FromInt((int)wxMAILCAP_ALL));
d14a1e28
RD
28322 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
28323 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
28324 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
28325 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
28326 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
28327 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
28328 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
28329 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
28330 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
28331 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
28332 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
28333 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
28334 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
28335 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
28336 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
28337 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
28338 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
28339 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
28340 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
28341 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
28342 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
28343 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
28344 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
28345 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
28346 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
28347 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
28348 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
28349 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
28350 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
28351 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
28352 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
28353 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
28354 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
28355 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
28356 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
28357 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
28358 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
28359 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
28360 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
28361
28362 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
28363
8edf1c75
RD
28364 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_PyObj_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
28365 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_PyObj_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
28366 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_PyObj_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
28367 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_PyObj_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
28368 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Unknown));
28369 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_PyObj_FromInt((int)wxConfigBase::Type_String));
28370 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Boolean));
28371 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Integer));
28372 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_PyObj_FromInt((int)wxConfigBase::Type_Float));
cbd72d4f
RD
28373 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
28374 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
8edf1c75
RD
28375 PyDict_SetItemString(d,"DateTime_Local", SWIG_PyObj_FromInt((int)wxDateTime::Local));
28376 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_PyObj_FromInt((int)wxDateTime::GMT_12));
28377 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_PyObj_FromInt((int)wxDateTime::GMT_11));
28378 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_PyObj_FromInt((int)wxDateTime::GMT_10));
28379 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_PyObj_FromInt((int)wxDateTime::GMT_9));
28380 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_PyObj_FromInt((int)wxDateTime::GMT_8));
28381 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_PyObj_FromInt((int)wxDateTime::GMT_7));
28382 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_PyObj_FromInt((int)wxDateTime::GMT_6));
28383 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_PyObj_FromInt((int)wxDateTime::GMT_5));
28384 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_PyObj_FromInt((int)wxDateTime::GMT_4));
28385 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_PyObj_FromInt((int)wxDateTime::GMT_3));
28386 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_PyObj_FromInt((int)wxDateTime::GMT_2));
28387 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_PyObj_FromInt((int)wxDateTime::GMT_1));
28388 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_PyObj_FromInt((int)wxDateTime::GMT0));
28389 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_PyObj_FromInt((int)wxDateTime::GMT1));
28390 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_PyObj_FromInt((int)wxDateTime::GMT2));
28391 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_PyObj_FromInt((int)wxDateTime::GMT3));
28392 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_PyObj_FromInt((int)wxDateTime::GMT4));
28393 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_PyObj_FromInt((int)wxDateTime::GMT5));
28394 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_PyObj_FromInt((int)wxDateTime::GMT6));
28395 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_PyObj_FromInt((int)wxDateTime::GMT7));
28396 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_PyObj_FromInt((int)wxDateTime::GMT8));
28397 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_PyObj_FromInt((int)wxDateTime::GMT9));
28398 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_PyObj_FromInt((int)wxDateTime::GMT10));
28399 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_PyObj_FromInt((int)wxDateTime::GMT11));
28400 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_PyObj_FromInt((int)wxDateTime::GMT12));
28401 PyDict_SetItemString(d,"DateTime_WET", SWIG_PyObj_FromInt((int)wxDateTime::WET));
28402 PyDict_SetItemString(d,"DateTime_WEST", SWIG_PyObj_FromInt((int)wxDateTime::WEST));
28403 PyDict_SetItemString(d,"DateTime_CET", SWIG_PyObj_FromInt((int)wxDateTime::CET));
28404 PyDict_SetItemString(d,"DateTime_CEST", SWIG_PyObj_FromInt((int)wxDateTime::CEST));
28405 PyDict_SetItemString(d,"DateTime_EET", SWIG_PyObj_FromInt((int)wxDateTime::EET));
28406 PyDict_SetItemString(d,"DateTime_EEST", SWIG_PyObj_FromInt((int)wxDateTime::EEST));
28407 PyDict_SetItemString(d,"DateTime_MSK", SWIG_PyObj_FromInt((int)wxDateTime::MSK));
28408 PyDict_SetItemString(d,"DateTime_MSD", SWIG_PyObj_FromInt((int)wxDateTime::MSD));
28409 PyDict_SetItemString(d,"DateTime_AST", SWIG_PyObj_FromInt((int)wxDateTime::AST));
28410 PyDict_SetItemString(d,"DateTime_ADT", SWIG_PyObj_FromInt((int)wxDateTime::ADT));
28411 PyDict_SetItemString(d,"DateTime_EST", SWIG_PyObj_FromInt((int)wxDateTime::EST));
28412 PyDict_SetItemString(d,"DateTime_EDT", SWIG_PyObj_FromInt((int)wxDateTime::EDT));
28413 PyDict_SetItemString(d,"DateTime_CST", SWIG_PyObj_FromInt((int)wxDateTime::CST));
28414 PyDict_SetItemString(d,"DateTime_CDT", SWIG_PyObj_FromInt((int)wxDateTime::CDT));
28415 PyDict_SetItemString(d,"DateTime_MST", SWIG_PyObj_FromInt((int)wxDateTime::MST));
28416 PyDict_SetItemString(d,"DateTime_MDT", SWIG_PyObj_FromInt((int)wxDateTime::MDT));
28417 PyDict_SetItemString(d,"DateTime_PST", SWIG_PyObj_FromInt((int)wxDateTime::PST));
28418 PyDict_SetItemString(d,"DateTime_PDT", SWIG_PyObj_FromInt((int)wxDateTime::PDT));
28419 PyDict_SetItemString(d,"DateTime_HST", SWIG_PyObj_FromInt((int)wxDateTime::HST));
28420 PyDict_SetItemString(d,"DateTime_AKST", SWIG_PyObj_FromInt((int)wxDateTime::AKST));
28421 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_PyObj_FromInt((int)wxDateTime::AKDT));
28422 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_PyObj_FromInt((int)wxDateTime::A_WST));
28423 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_PyObj_FromInt((int)wxDateTime::A_CST));
28424 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_PyObj_FromInt((int)wxDateTime::A_EST));
28425 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_PyObj_FromInt((int)wxDateTime::A_ESST));
28426 PyDict_SetItemString(d,"DateTime_UTC", SWIG_PyObj_FromInt((int)wxDateTime::UTC));
28427 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_PyObj_FromInt((int)wxDateTime::Gregorian));
28428 PyDict_SetItemString(d,"DateTime_Julian", SWIG_PyObj_FromInt((int)wxDateTime::Julian));
28429 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Unknown));
28430 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Standard));
28431 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Alaska));
28432 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Albania));
28433 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria));
28434 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Brixen));
28435 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
28436 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
28437 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
28438 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Austria_Styria));
28439 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Belgium));
28440 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria));
28441 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_1));
28442 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_2));
28443 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Bulgaria_3));
28444 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Canada));
28445 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China));
28446 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China_1));
28447 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_China_2));
28448 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Czechoslovakia));
28449 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Denmark));
28450 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Egypt));
28451 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Estonia));
28452 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Finland));
28453 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France));
28454 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Alsace));
28455 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Lorraine));
28456 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_France_Strasbourg));
28457 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany));
28458 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Catholic));
28459 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Prussia));
28460 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Germany_Protestant));
28461 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_PyObj_FromInt((int)wxDateTime::Gr_GreatBritain));
28462 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Greece));
28463 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Hungary));
28464 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Ireland));
28465 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Italy));
28466 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan));
28467 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_1));
28468 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_2));
28469 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Japan_3));
28470 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Latvia));
28471 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Lithuania));
28472 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Luxemburg));
28473 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands));
28474 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
28475 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
28476 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
28477 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
28478 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Norway));
28479 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Poland));
28480 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Portugal));
28481 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Romania));
28482 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Russia));
28483 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Scotland));
28484 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Spain));
28485 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Sweden));
28486 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland));
28487 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
28488 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
28489 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Turkey));
28490 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_PyObj_FromInt((int)wxDateTime::Gr_USA));
28491 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Wales));
28492 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_PyObj_FromInt((int)wxDateTime::Gr_Yugoslavia));
28493 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_PyObj_FromInt((int)wxDateTime::Country_Unknown));
28494 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_PyObj_FromInt((int)wxDateTime::Country_Default));
28495 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_PyObj_FromInt((int)wxDateTime::Country_WesternEurope_Start));
28496 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_PyObj_FromInt((int)wxDateTime::Country_EEC));
28497 PyDict_SetItemString(d,"DateTime_France", SWIG_PyObj_FromInt((int)wxDateTime::France));
28498 PyDict_SetItemString(d,"DateTime_Germany", SWIG_PyObj_FromInt((int)wxDateTime::Germany));
28499 PyDict_SetItemString(d,"DateTime_UK", SWIG_PyObj_FromInt((int)wxDateTime::UK));
28500 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_PyObj_FromInt((int)wxDateTime::Country_WesternEurope_End));
28501 PyDict_SetItemString(d,"DateTime_Russia", SWIG_PyObj_FromInt((int)wxDateTime::Russia));
28502 PyDict_SetItemString(d,"DateTime_USA", SWIG_PyObj_FromInt((int)wxDateTime::USA));
28503 PyDict_SetItemString(d,"DateTime_Jan", SWIG_PyObj_FromInt((int)wxDateTime::Jan));
28504 PyDict_SetItemString(d,"DateTime_Feb", SWIG_PyObj_FromInt((int)wxDateTime::Feb));
28505 PyDict_SetItemString(d,"DateTime_Mar", SWIG_PyObj_FromInt((int)wxDateTime::Mar));
28506 PyDict_SetItemString(d,"DateTime_Apr", SWIG_PyObj_FromInt((int)wxDateTime::Apr));
28507 PyDict_SetItemString(d,"DateTime_May", SWIG_PyObj_FromInt((int)wxDateTime::May));
28508 PyDict_SetItemString(d,"DateTime_Jun", SWIG_PyObj_FromInt((int)wxDateTime::Jun));
28509 PyDict_SetItemString(d,"DateTime_Jul", SWIG_PyObj_FromInt((int)wxDateTime::Jul));
28510 PyDict_SetItemString(d,"DateTime_Aug", SWIG_PyObj_FromInt((int)wxDateTime::Aug));
28511 PyDict_SetItemString(d,"DateTime_Sep", SWIG_PyObj_FromInt((int)wxDateTime::Sep));
28512 PyDict_SetItemString(d,"DateTime_Oct", SWIG_PyObj_FromInt((int)wxDateTime::Oct));
28513 PyDict_SetItemString(d,"DateTime_Nov", SWIG_PyObj_FromInt((int)wxDateTime::Nov));
28514 PyDict_SetItemString(d,"DateTime_Dec", SWIG_PyObj_FromInt((int)wxDateTime::Dec));
28515 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_PyObj_FromInt((int)wxDateTime::Inv_Month));
28516 PyDict_SetItemString(d,"DateTime_Sun", SWIG_PyObj_FromInt((int)wxDateTime::Sun));
28517 PyDict_SetItemString(d,"DateTime_Mon", SWIG_PyObj_FromInt((int)wxDateTime::Mon));
28518 PyDict_SetItemString(d,"DateTime_Tue", SWIG_PyObj_FromInt((int)wxDateTime::Tue));
28519 PyDict_SetItemString(d,"DateTime_Wed", SWIG_PyObj_FromInt((int)wxDateTime::Wed));
28520 PyDict_SetItemString(d,"DateTime_Thu", SWIG_PyObj_FromInt((int)wxDateTime::Thu));
28521 PyDict_SetItemString(d,"DateTime_Fri", SWIG_PyObj_FromInt((int)wxDateTime::Fri));
28522 PyDict_SetItemString(d,"DateTime_Sat", SWIG_PyObj_FromInt((int)wxDateTime::Sat));
28523 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_PyObj_FromInt((int)wxDateTime::Inv_WeekDay));
28524 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_PyObj_FromInt((int)wxDateTime::Inv_Year));
28525 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_PyObj_FromInt((int)wxDateTime::Name_Full));
28526 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_PyObj_FromInt((int)wxDateTime::Name_Abbr));
28527 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_PyObj_FromInt((int)wxDateTime::Default_First));
28528 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_PyObj_FromInt((int)wxDateTime::Monday_First));
28529 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_PyObj_FromInt((int)wxDateTime::Sunday_First));
98e665d3 28530 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
8edf1c75
RD
28531 PyDict_SetItemString(d,"DF_INVALID", SWIG_PyObj_FromInt((int)wxDF_INVALID));
28532 PyDict_SetItemString(d,"DF_TEXT", SWIG_PyObj_FromInt((int)wxDF_TEXT));
28533 PyDict_SetItemString(d,"DF_BITMAP", SWIG_PyObj_FromInt((int)wxDF_BITMAP));
28534 PyDict_SetItemString(d,"DF_METAFILE", SWIG_PyObj_FromInt((int)wxDF_METAFILE));
28535 PyDict_SetItemString(d,"DF_SYLK", SWIG_PyObj_FromInt((int)wxDF_SYLK));
28536 PyDict_SetItemString(d,"DF_DIF", SWIG_PyObj_FromInt((int)wxDF_DIF));
28537 PyDict_SetItemString(d,"DF_TIFF", SWIG_PyObj_FromInt((int)wxDF_TIFF));
28538 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_PyObj_FromInt((int)wxDF_OEMTEXT));
28539 PyDict_SetItemString(d,"DF_DIB", SWIG_PyObj_FromInt((int)wxDF_DIB));
28540 PyDict_SetItemString(d,"DF_PALETTE", SWIG_PyObj_FromInt((int)wxDF_PALETTE));
28541 PyDict_SetItemString(d,"DF_PENDATA", SWIG_PyObj_FromInt((int)wxDF_PENDATA));
28542 PyDict_SetItemString(d,"DF_RIFF", SWIG_PyObj_FromInt((int)wxDF_RIFF));
28543 PyDict_SetItemString(d,"DF_WAVE", SWIG_PyObj_FromInt((int)wxDF_WAVE));
28544 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_PyObj_FromInt((int)wxDF_UNICODETEXT));
28545 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_PyObj_FromInt((int)wxDF_ENHMETAFILE));
28546 PyDict_SetItemString(d,"DF_FILENAME", SWIG_PyObj_FromInt((int)wxDF_FILENAME));
28547 PyDict_SetItemString(d,"DF_LOCALE", SWIG_PyObj_FromInt((int)wxDF_LOCALE));
28548 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_PyObj_FromInt((int)wxDF_PRIVATE));
28549 PyDict_SetItemString(d,"DF_HTML", SWIG_PyObj_FromInt((int)wxDF_HTML));
28550 PyDict_SetItemString(d,"DF_MAX", SWIG_PyObj_FromInt((int)wxDF_MAX));
d14a1e28 28551 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
8edf1c75
RD
28552 PyDict_SetItemString(d,"DataObject_Get", SWIG_PyObj_FromInt((int)wxDataObject::Get));
28553 PyDict_SetItemString(d,"DataObject_Set", SWIG_PyObj_FromInt((int)wxDataObject::Set));
28554 PyDict_SetItemString(d,"DataObject_Both", SWIG_PyObj_FromInt((int)wxDataObject::Both));
28555 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_PyObj_FromInt((int)wxDrag_CopyOnly));
28556 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_PyObj_FromInt((int)wxDrag_AllowMove));
28557 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_PyObj_FromInt((int)wxDrag_DefaultMove));
28558 PyDict_SetItemString(d,"DragError", SWIG_PyObj_FromInt((int)wxDragError));
28559 PyDict_SetItemString(d,"DragNone", SWIG_PyObj_FromInt((int)wxDragNone));
28560 PyDict_SetItemString(d,"DragCopy", SWIG_PyObj_FromInt((int)wxDragCopy));
28561 PyDict_SetItemString(d,"DragMove", SWIG_PyObj_FromInt((int)wxDragMove));
28562 PyDict_SetItemString(d,"DragLink", SWIG_PyObj_FromInt((int)wxDragLink));
28563 PyDict_SetItemString(d,"DragCancel", SWIG_PyObj_FromInt((int)wxDragCancel));
d14a1e28
RD
28564
28565 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
28566 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
28567 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
28568 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
28569
28570 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
28571}
28572