]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/misc_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / misc_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.20
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
c9c7117a
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
d14a1e28
RD
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
cc6dd355
RD
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
d14a1e28 82#else
cc6dd355
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
cc6dd355 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
cc6dd355 90# define SWIGRUNTIME(a) static a
d14a1e28
RD
91#endif
92
d14a1e28
RD
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
cc6dd355 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
cc6dd355 104 void *clientdata;
d14a1e28
RD
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
cc6dd355
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
9d1d5697 124
d14a1e28
RD
125#endif
126
cc6dd355 127
d14a1e28
RD
128/***********************************************************************
129 * pyrun.swg for wxPython
130 *
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 * anyway.
135 *
136 ************************************************************************/
137
d14a1e28
RD
138#include "Python.h"
139
140#ifdef __cplusplus
141extern "C" {
142#endif
143
144#define SWIG_PY_INT 1
145#define SWIG_PY_FLOAT 2
146#define SWIG_PY_STRING 3
147#define SWIG_PY_POINTER 4
148#define SWIG_PY_BINARY 5
149
150/* Flags for pointer conversion */
151
152#define SWIG_POINTER_EXCEPTION 0x1
153#define SWIG_POINTER_DISOWN 0x2
154
155/* Exception handling in wrappers */
156#define SWIG_fail goto fail
157
158/* Constant information structure */
159typedef struct swig_const_info {
160 int type;
161 char *name;
162 long lvalue;
163 double dvalue;
164 void *pvalue;
165 swig_type_info **ptype;
166} swig_const_info;
167
d14a1e28
RD
168/* Common SWIG API */
169#define SWIG_ConvertPtr(obj, pp, type, flags) \
170 SWIG_Python_ConvertPtr(obj, pp, type, flags)
171#define SWIG_NewPointerObj(p, type, flags) \
172 SWIG_Python_NewPointerObj(p, type, flags)
173#define SWIG_MustGetPtr(p, type, argnum, flags) \
174 SWIG_Python_MustGetPtr(p, type, argnum, flags)
175
176/* Python-specific SWIG API */
177#define SWIG_newvarlink() \
178 SWIG_Python_newvarlink()
179#define SWIG_addvarlink(p, name, get_attr, set_attr) \
180 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
181#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
182 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
183#define SWIG_NewPackedObj(ptr, sz, type) \
184 SWIG_Python_NewPackedObj(ptr, sz, type)
185#define SWIG_InstallConstants(d, constants) \
186 SWIG_Python_InstallConstants(d, constants)
187
188
cc6dd355
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
d14a1e28
RD
198
199
200/* Contract support */
201
9d1d5697 202#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 203
d14a1e28
RD
204#ifdef __cplusplus
205}
206#endif
207
208
209
210/* -------- TYPES TABLE (BEGIN) -------- */
211
212#define SWIGTYPE_p_wxLogChain swig_types[0]
213#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
214#define SWIGTYPE_p_wxFileHistory swig_types[2]
215#define SWIGTYPE_p_wxLog swig_types[3]
216#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4]
217#define SWIGTYPE_p_wxMenu swig_types[5]
218#define SWIGTYPE_p_wxEvent swig_types[6]
219#define SWIGTYPE_p_wxConfigBase swig_types[7]
220#define SWIGTYPE_p_wxWave swig_types[8]
221#define SWIGTYPE_p_wxFileType swig_types[9]
222#define SWIGTYPE_p_wxLogGui swig_types[10]
223#define SWIGTYPE_p_wxFont swig_types[11]
224#define SWIGTYPE_p_wxDataFormat swig_types[12]
225#define SWIGTYPE_p_wxTimerEvent swig_types[13]
226#define SWIGTYPE_p_wxCaret swig_types[14]
227#define SWIGTYPE_p_int swig_types[15]
228#define SWIGTYPE_p_wxSize swig_types[16]
229#define SWIGTYPE_p_wxClipboard swig_types[17]
230#define SWIGTYPE_p_wxStopWatch swig_types[18]
231#define SWIGTYPE_p_wxDC swig_types[19]
232#define SWIGTYPE_p_wxClipboardLocker swig_types[20]
233#define SWIGTYPE_p_wxIcon swig_types[21]
234#define SWIGTYPE_p_wxLogStderr swig_types[22]
235#define SWIGTYPE_p_wxLogTextCtrl swig_types[23]
236#define SWIGTYPE_p_wxTextCtrl swig_types[24]
237#define SWIGTYPE_p_wxBusyCursor swig_types[25]
238#define SWIGTYPE_p_wxFileDataObject swig_types[26]
239#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
240#define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
241#define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
242#define SWIGTYPE_p_wxTextDataObject swig_types[30]
243#define SWIGTYPE_p_wxDataObject swig_types[31]
244#define SWIGTYPE_p_wxCustomDataObject swig_types[32]
245#define SWIGTYPE_p_wxURLDataObject swig_types[33]
246#define SWIGTYPE_p_wxMetafileDataObject swig_types[34]
247#define SWIGTYPE_p_wxTimerRunner swig_types[35]
248#define SWIGTYPE_p_wxLogWindow swig_types[36]
249#define SWIGTYPE_p_wxTimeSpan swig_types[37]
250#define SWIGTYPE_p_wxArrayString swig_types[38]
251#define SWIGTYPE_p_wxWindowDisabler swig_types[39]
252#define SWIGTYPE_p_wxToolTip swig_types[40]
253#define SWIGTYPE_p_wxDataObjectComposite swig_types[41]
254#define SWIGTYPE_p_wxFileConfig swig_types[42]
255#define SWIGTYPE_p_wxSystemSettings swig_types[43]
256#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[44]
257#define SWIGTYPE_p_wxDataObjectSimple swig_types[45]
258#define SWIGTYPE_p_wxEvtHandler swig_types[46]
259#define SWIGTYPE_p_wxRect swig_types[47]
260#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[48]
261#define SWIGTYPE_p_wxFileTypeInfo swig_types[49]
262#define SWIGTYPE_p_wxFrame swig_types[50]
263#define SWIGTYPE_p_wxTimer swig_types[51]
264#define SWIGTYPE_p_wxMimeTypesManager swig_types[52]
265#define SWIGTYPE_p_wxPyArtProvider swig_types[53]
266#define SWIGTYPE_p_wxPyTipProvider swig_types[54]
267#define SWIGTYPE_p_wxTipProvider swig_types[55]
268#define SWIGTYPE_p_wxJoystick swig_types[56]
269#define SWIGTYPE_p_wxSystemOptions swig_types[57]
270#define SWIGTYPE_p_wxPoint swig_types[58]
271#define SWIGTYPE_p_wxJoystickEvent swig_types[59]
272#define SWIGTYPE_p_wxCursor swig_types[60]
273#define SWIGTYPE_p_wxObject swig_types[61]
274#define SWIGTYPE_p_wxOutputStream swig_types[62]
275#define SWIGTYPE_p_wxDateTime swig_types[63]
276#define SWIGTYPE_p_wxPyDropSource swig_types[64]
277#define SWIGTYPE_p_wxWindow swig_types[65]
278#define SWIGTYPE_p_wxString swig_types[66]
279#define SWIGTYPE_p_wxPyProcess swig_types[67]
280#define SWIGTYPE_p_wxBitmap swig_types[68]
281#define SWIGTYPE_p_wxConfig swig_types[69]
282#define SWIGTYPE_p_wxChar swig_types[70]
283#define SWIGTYPE_p_wxBusyInfo swig_types[71]
284#define SWIGTYPE_p_wxPyDropTarget swig_types[72]
285#define SWIGTYPE_p_wxPyTextDropTarget swig_types[73]
286#define SWIGTYPE_p_wxPyFileDropTarget swig_types[74]
287#define SWIGTYPE_p_wxProcessEvent swig_types[75]
288#define SWIGTYPE_p_wxPyLog swig_types[76]
289#define SWIGTYPE_p_wxLogNull swig_types[77]
290#define SWIGTYPE_p_wxColour swig_types[78]
291#define SWIGTYPE_p_wxConfigPathChanger swig_types[79]
292#define SWIGTYPE_p_wxPyTimer swig_types[80]
293#define SWIGTYPE_p_wxDateSpan swig_types[81]
294static swig_type_info *swig_types[83];
295
296/* -------- TYPES TABLE (END) -------- */
297
298
299/*-----------------------------------------------
300 @(target):= _misc.so
301 ------------------------------------------------*/
302#define SWIG_init init_misc
303
304#define SWIG_name "_misc"
305
306#include "wx/wxPython/wxPython.h"
307#include "wx/wxPython/pyclasses.h"
308#include "wx/wxPython/pyistream.h"
309
310 DECLARE_DEF_STRING(EmptyString);
311
312
313
314
315
316 DECLARE_DEF_STRING(FileSelectorPromptStr);
317 DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr);
318 DECLARE_DEF_STRING(DirSelectorPromptStr);
319
320
321static PyObject* t_output_helper(PyObject* target, PyObject* o) {
322 PyObject* o2;
323 PyObject* o3;
324
325 if (!target) {
326 target = o;
327 } else if (target == Py_None) {
328 Py_DECREF(Py_None);
329 target = o;
330 } else {
331 if (!PyTuple_Check(target)) {
332 o2 = target;
333 target = PyTuple_New(1);
334 PyTuple_SetItem(target, 0, o2);
335 }
336 o3 = PyTuple_New(1);
337 PyTuple_SetItem(o3, 0, o);
338
339 o2 = target;
340 target = PySequence_Concat(o2, o3);
341 Py_DECREF(o2);
342 Py_DECREF(o3);
343 }
344 return target;
345}
346
347
348 long wxGetFreeMemory()
349 { PyErr_SetNone(PyExc_NotImplementedError); return 0; }
350
351
352 void wxWakeUpMainThread() {}
353
354
355 bool wxThread_IsMain() {
356#ifdef WXP_WITH_THREAD
357 return wxThread::IsMain();
358#else
e811c8ce 359 return True;
d14a1e28
RD
360#endif
361 }
362
363
364 int wxCaret_GetBlinkTime() {
365 return wxCaret::GetBlinkTime();
366 }
367
368 void wxCaret_SetBlinkTime(int milliseconds) {
369 wxCaret::SetBlinkTime(milliseconds);
370 }
371
372
373#include <wx/snglinst.h>
374
375
376#ifdef __WXMSW__
377#include <wx/msw/private.h>
378#include <wx/dynload.h>
379#endif
380
381
382
383void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
384{
385#ifdef __WXMSW__
386
387 switch (method)
388 {
389 case 1:
390 // This one only partially works. Appears to be an undocumented
391 // "standard" convention that not all widgets adhear to. For
392 // example, for some widgets backgrounds or non-client areas may
393 // not be painted.
394 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
395 break;
396
397 case 2:
398 // This one works much better, except for on XP. On Win2k nearly
399 // all widgets and their children are captured correctly[**]. On
400 // XP with Themes activated most native widgets draw only
401 // partially, if at all. Without themes it works just like on
402 // Win2k.
403 //
404 // ** For example the radio buttons in a wxRadioBox are not its
405 // children by default, but you can capture it via the panel
406 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
407 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
408 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
409 PRF_ERASEBKGND | PRF_OWNED );
410 break;
411
412 case 3:
413 // This one is only defined in the latest SDK and is only
414 // available on XP. MSDN says it is similar to sending WM_PRINT
415 // so I expect that it will work similar to the above. Since it
416 // is avaialble only on XP, it can't be compiled like this and
417 // will have to be loaded dynamically.
418 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
419
420 // fall through
421
422 case 4:
423 // Use PrintWindow if available, or fallback to WM_PRINT
424 // otherwise. Unfortunately using PrintWindow is even worse than
425 // WM_PRINT. For most native widgets nothing is drawn to the dc
426 // at all, with or without Themes.
427 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
e811c8ce 428 static bool s_triedToLoad = False;
d14a1e28
RD
429 static PrintWindow_t pfnPrintWindow = NULL;
430 if ( !s_triedToLoad )
431 {
432
e811c8ce 433 s_triedToLoad = True;
d14a1e28
RD
434 wxDynamicLibrary dllUser32(_T("user32.dll"));
435 if ( dllUser32.IsLoaded() )
436 {
437 wxLogNull nolog; // Don't report errors here
438 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
439 }
440 }
441 if (pfnPrintWindow)
442 {
443 printf("Using PrintWindow\n");
444 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
445 }
446 else
447 {
448 printf("Using WM_PRINT\n");
449 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
450 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
451 }
452 }
453#endif
454}
455
456
457
458#include <wx/tipdlg.h>
459
460
461class wxPyTipProvider : public wxTipProvider {
462public:
463 wxPyTipProvider(size_t currentTip)
464 : wxTipProvider(currentTip) {}
465
466 DEC_PYCALLBACK_STRING__pure(GetTip);
467 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
468 PYPRIVATE;
469};
470
471IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
472IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
473
474
475IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
476
477wxString Log_TimeStamp(){
478 wxString msg;
479 wxLog::TimeStamp(&msg);
480 return msg;
481 }
482void wxLog_Destroy(wxLog *self){ delete self; }
483
484// A wxLog class that can be derived from in wxPython
485class wxPyLog : public wxLog {
486public:
487 wxPyLog() : wxLog() {}
488
489 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
490 bool found;
491 wxPyBeginBlockThreads();
492 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
493 PyObject* s = wx2PyString(szString);
494 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
495 Py_DECREF(s);
496 }
497 wxPyEndBlockThreads();
498 if (! found)
499 wxLog::DoLog(level, szString, t);
500 }
501
502 virtual void DoLogString(const wxChar *szString, time_t t) {
503 bool found;
504 wxPyBeginBlockThreads();
505 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
506 PyObject* s = wx2PyString(szString);
507 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
508 Py_DECREF(s);
509 }
510 wxPyEndBlockThreads();
511 if (! found)
512 wxLog::DoLogString(szString, t);
513 }
514
515 PYPRIVATE;
516};
517
518
519
520
521IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
522
523
524#include <wx/joystick.h>
525
526
527#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
528// A C++ stub class for wxJoystick for platforms that don't have it.
529class wxJoystick : public wxObject {
530public:
531 wxJoystick(int joystick = wxJOYSTICK1) {
532 wxPyBeginBlockThreads();
533 PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform.");
534 wxPyEndBlockThreads();
535 }
536 wxPoint GetPosition() { return wxPoint(-1,-1); }
537 int GetZPosition() { return -1; }
538 int GetButtonState() { return -1; }
539 int GetPOVPosition() { return -1; }
540 int GetPOVCTSPosition() { return -1; }
541 int GetRudderPosition() { return -1; }
542 int GetUPosition() { return -1; }
543 int GetVPosition() { return -1; }
544 int GetMovementThreshold() { return -1; }
545 void SetMovementThreshold(int threshold) {}
546
e811c8ce 547 bool IsOk(void) { return False; }
d14a1e28
RD
548 int GetNumberJoysticks() { return -1; }
549 int GetManufacturerId() { return -1; }
550 int GetProductId() { return -1; }
551 wxString GetProductName() { return ""; }
552 int GetXMin() { return -1; }
553 int GetYMin() { return -1; }
554 int GetZMin() { return -1; }
555 int GetXMax() { return -1; }
556 int GetYMax() { return -1; }
557 int GetZMax() { return -1; }
558 int GetNumberButtons() { return -1; }
559 int GetNumberAxes() { return -1; }
560 int GetMaxButtons() { return -1; }
561 int GetMaxAxes() { return -1; }
562 int GetPollingMin() { return -1; }
563 int GetPollingMax() { return -1; }
564 int GetRudderMin() { return -1; }
565 int GetRudderMax() { return -1; }
566 int GetUMin() { return -1; }
567 int GetUMax() { return -1; }
568 int GetVMin() { return -1; }
569 int GetVMax() { return -1; }
570
e811c8ce
RD
571 bool HasRudder() { return False; }
572 bool HasZ() { return False; }
573 bool HasU() { return False; }
574 bool HasV() { return False; }
575 bool HasPOV() { return False; }
576 bool HasPOV4Dir() { return False; }
577 bool HasPOVCTS() { return False; }
d14a1e28 578
e811c8ce
RD
579 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
580 bool ReleaseCapture() { return False; }
d14a1e28
RD
581};
582#endif
583
584
585#include <wx/wave.h>
586
587
588#if !wxUSE_WAVE
589// A C++ stub class for wxWave for platforms that don't have it.
590class wxWave : public wxObject
591{
592public:
e811c8ce 593 wxWave(const wxString& fileName, bool isResource = False) {
d14a1e28
RD
594 wxPyBeginBlockThreads();
595 PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
596 wxPyEndBlockThreads();
597 }
598 wxWave(int size, const wxByte* data) {
599 wxPyBeginBlockThreads();
600 PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
601 wxPyEndBlockThreads();
602 }
603
604 ~wxWave() {}
605
e811c8ce
RD
606 bool IsOk() const { return False; }
607 bool Play(bool async = True, bool looped = False) const { return False; }
d14a1e28
RD
608};
609
610#endif
611
612wxWave *new_wxWave(wxString const &data){
613 return new wxWave(data.Len(), (wxByte*)data.c_str());
614 }
615
616#include <wx/mimetype.h>
617
618PyObject *wxFileType_GetMimeType(wxFileType *self){
619 wxString str;
620 if (self->GetMimeType(&str))
621 return wx2PyString(str);
622 else
623 RETURN_NONE();
624 }
625PyObject *wxFileType_GetMimeTypes(wxFileType *self){
626 wxArrayString arr;
627 if (self->GetMimeTypes(arr))
628 return wxArrayString2PyList_helper(arr);
629 else
630 RETURN_NONE();
631 }
632PyObject *wxFileType_GetExtensions(wxFileType *self){
633 wxArrayString arr;
634 if (self->GetExtensions(arr))
635 return wxArrayString2PyList_helper(arr);
636 else
637 RETURN_NONE();
638 }
639wxIcon *wxFileType_GetIcon(wxFileType *self){
640 wxIconLocation loc;
641 if (self->GetIcon(&loc))
642 return new wxIcon(loc);
643 else
644 return NULL;
645 }
646PyObject *wxFileType_GetIconInfo(wxFileType *self){
647 wxIconLocation loc;
648 if (self->GetIcon(&loc)) {
649 wxString iconFile = loc.GetFileName();
650 int iconIndex = -1;
651
652
653
654 // Make a tuple and put the values in it
655 wxPyBeginBlockThreads();
656 PyObject* tuple = PyTuple_New(3);
657 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
e811c8ce 658 wxT("wxIcon"), True));
d14a1e28
RD
659 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
660 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
661 wxPyEndBlockThreads();
662 return tuple;
663 }
664 else
665 RETURN_NONE();
666 }
667PyObject *wxFileType_GetDescription(wxFileType *self){
668 wxString str;
669 if (self->GetDescription(&str))
670 return wx2PyString(str);
671 else
672 RETURN_NONE();
673 }
674PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
675 wxString str;
676 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
677 return wx2PyString(str);
678 else
679 RETURN_NONE();
680 }
681PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
682 wxString str;
683 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
684 return wx2PyString(str);
685 else
686 RETURN_NONE();
687 }
688PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
689 wxArrayString verbs;
690 wxArrayString commands;
691 if (self->GetAllCommands(&verbs, &commands,
692 wxFileType::MessageParameters(filename, mimetype))) {
693 wxPyBeginBlockThreads();
694 PyObject* tuple = PyTuple_New(2);
695 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
696 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
697 wxPyEndBlockThreads();
698 return tuple;
699 }
700 else
701 RETURN_NONE();
702 }
703wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
704 return wxFileType::ExpandCommand(command,
705 wxFileType::MessageParameters(filename, mimetype));
706 }
707PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
708 wxArrayString arr;
709 self->EnumAllFileTypes(arr);
710 return wxArrayString2PyList_helper(arr);
711 }
712
713#include <wx/artprov.h>
714
715 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
716 static const wxString wxPyART_MENU(wxART_MENU);
717 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
718 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
719 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
720 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
721 static const wxString wxPyART_OTHER(wxART_OTHER);
722 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
723 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
724 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
725 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
726 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
727 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
728 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
729 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
730 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
731 static const wxString wxPyART_GO_UP(wxART_GO_UP);
732 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
733 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
734 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
735 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
736 static const wxString wxPyART_PRINT(wxART_PRINT);
737 static const wxString wxPyART_HELP(wxART_HELP);
738 static const wxString wxPyART_TIP(wxART_TIP);
739 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
740 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
741 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
742 static const wxString wxPyART_FOLDER(wxART_FOLDER);
743 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
744 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
745 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
746 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
747 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
748 static const wxString wxPyART_ERROR(wxART_ERROR);
749 static const wxString wxPyART_QUESTION(wxART_QUESTION);
750 static const wxString wxPyART_WARNING(wxART_WARNING);
751 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
752 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
753 // Python aware wxArtProvider
754class wxPyArtProvider : public wxArtProvider {
755public:
756
757 virtual wxBitmap CreateBitmap(const wxArtID& id,
758 const wxArtClient& client,
759 const wxSize& size) {
760 wxBitmap rval = wxNullBitmap;
761 wxPyBeginBlockThreads();
762 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
763 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
764 PyObject* ro;
765 wxBitmap* ptr;
766 PyObject* s1, *s2;
767 s1 = wx2PyString(id);
768 s2 = wx2PyString(client);
769 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
770 Py_DECREF(so);
771 Py_DECREF(s1);
772 Py_DECREF(s2);
773 if (ro) {
774 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
775 rval = *ptr;
776 Py_DECREF(ro);
777 }
778 }
779 wxPyEndBlockThreads();
780 return rval;
781 }
782
783 PYPRIVATE;
784};
785
1e0c8722 786void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
d14a1e28
RD
787
788
789
790 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
791 PyObject* ret = PyTuple_New(3);
792 if (ret) {
793 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
794 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
795 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
796 }
797 return ret;
798 }
799
800PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
801 bool cont;
802 long index = 0;
803 wxString value;
804
805 cont = self->GetFirstGroup(value, index);
806 return __EnumerationHelper(cont, value, index);
807 }
808PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
809 bool cont;
810 wxString value;
811
812 cont = self->GetNextGroup(value, index);
813 return __EnumerationHelper(cont, value, index);
814 }
815PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
816 bool cont;
817 long index = 0;
818 wxString value;
819
820 cont = self->GetFirstEntry(value, index);
821 return __EnumerationHelper(cont, value, index);
822 }
823PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
824 bool cont;
825 wxString value;
826
827 cont = self->GetNextEntry(value, index);
828 return __EnumerationHelper(cont, value, index);
829 }
830long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
831 long rv;
832 self->Read(key, &rv, defaultVal);
833 return rv;
834 }
835double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
836 double rv;
837 self->Read(key, &rv, defaultVal);
838 return rv;
839 }
840bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
841 bool rv;
842 self->Read(key, &rv, defaultVal);
843 return rv;
844 }
845
846#include <wx/datetime.h>
847
848 DECLARE_DEF_STRING2(DateFormatStr, wxT("%c"));
849 DECLARE_DEF_STRING2(TimeSpanFormatStr, wxT("%H:%M:%S"));
850
851
852
853#define LOCAL_TZ wxDateTime::Local
854
855wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
856wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
857wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
858wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
859wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
860bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; }
861bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; }
862bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; }
863bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; }
864bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; }
865bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; }
866int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
867 const wxChar* rv;
868 const wxChar* _date = date;
869 rv = self->ParseRfc822Date(_date);
870 if (rv == NULL) return -1;
871 return rv - _date;
872 }
873int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
874 const wxChar* rv;
875 const wxChar* _date = date;
876 rv = self->ParseFormat(_date, format, dateDef);
877 if (rv == NULL) return -1;
878 return rv - _date;
879 }
880int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
881 const wxChar* rv;
882 const wxChar* _datetime = datetime;
883 rv = self->ParseDateTime(_datetime);
884 if (rv == NULL) return -1;
885 return rv - _datetime;
886 }
887int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
888 const wxChar* rv;
889 const wxChar* _date = date;
890 rv = self->ParseDate(_date);
891 if (rv == NULL) return -1;
892 return rv - _date;
893 }
894int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
895 const wxChar* rv;
896 const wxChar* _time = time;
897 rv = self->ParseTime(_time);
898 if (rv == NULL) return -1;
899 return rv - _time;
900 }
901wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
902wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
903wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
904wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
905bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; }
906bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; }
907bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; }
908bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; }
909bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; }
910bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; }
911wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
912wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
913wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
914wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
915bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; }
916bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; }
917
918#include <wx/dataobj.h>
919
920 // Create a new class for wxPython to use
921class wxPyDataObjectSimple : public wxDataObjectSimple {
922public:
923 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
924 : wxDataObjectSimple(format) {}
925
926 DEC_PYCALLBACK_SIZET__const(GetDataSize);
927 bool GetDataHere(void *buf) const;
928 bool SetData(size_t len, const void *buf) const;
929 PYPRIVATE;
930};
931
932IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
933
934bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
935 // We need to get the data for this object and write it to buf. I think
936 // the best way to do this for wxPython is to have the Python method
937 // return either a string or None and then act appropriately with the
938 // C++ version.
939
e811c8ce 940 bool rval = False;
d14a1e28
RD
941 wxPyBeginBlockThreads();
942 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
943 PyObject* ro;
944 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
945 if (ro) {
946 rval = (ro != Py_None && PyString_Check(ro));
947 if (rval)
948 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
949 Py_DECREF(ro);
950 }
951 }
952 wxPyEndBlockThreads();
953 return rval;
954}
955
956bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
957 // For this one we simply need to make a string from buf and len
958 // and send it to the Python method.
e811c8ce 959 bool rval = False;
d14a1e28
RD
960 wxPyBeginBlockThreads();
961 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
962 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
963 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
964 Py_DECREF(data);
965 }
966 wxPyEndBlockThreads();
967 return rval;
968}
969
970 // Create a new class for wxPython to use
971class wxPyTextDataObject : public wxTextDataObject {
972public:
973 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
974 : wxTextDataObject(text) {}
975
976 DEC_PYCALLBACK_SIZET__const(GetTextLength);
977 DEC_PYCALLBACK_STRING__const(GetText);
978 DEC_PYCALLBACK__STRING(SetText);
979 PYPRIVATE;
980};
981
982IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
983IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
984IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
985
986
987 // Create a new class for wxPython to use
988class wxPyBitmapDataObject : public wxBitmapDataObject {
989public:
990 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
991 : wxBitmapDataObject(bitmap) {}
992
993 wxBitmap GetBitmap() const;
994 void SetBitmap(const wxBitmap& bitmap);
995 PYPRIVATE;
996};
997
998wxBitmap wxPyBitmapDataObject::GetBitmap() const {
999 wxBitmap* rval = &wxNullBitmap;
1000 wxPyBeginBlockThreads();
1001 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1002 PyObject* ro;
1003 wxBitmap* ptr;
1004 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1005 if (ro) {
1006 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1007 rval = ptr;
1008 Py_DECREF(ro);
1009 }
1010 }
1011 wxPyEndBlockThreads();
1012 return *rval;
1013}
1014
1015void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1016 wxPyBeginBlockThreads();
1017 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
e811c8ce 1018 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
d14a1e28
RD
1019 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1020 Py_DECREF(bo);
1021 }
1022 wxPyEndBlockThreads();
1023}
1024
1025void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1026 if (PyString_Check(data)) {
1027 // for Python we just call SetData here since we always need it to make a copy.
1028 self->SetData(PyString_Size(data), PyString_AsString(data));
1029 }
1030 else {
1031 // raise a TypeError if not a string
1032 PyErr_SetString(PyExc_TypeError, "String expected.");
1033 }
1034 }
1035bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1036 if (PyString_Check(data)) {
1037 return self->SetData(PyString_Size(data), PyString_AsString(data));
1038 }
1039 else {
1040 // raise a TypeError if not a string
1041 PyErr_SetString(PyExc_TypeError, "String expected.");
e811c8ce 1042 return False;
d14a1e28
RD
1043 }
1044 }
1045PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1046 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1047 }
1048
1049class wxMetafileDataObject : public wxDataObjectSimple
1050{
1051public:
1052 wxMetafileDataObject() { PyErr_SetNone(PyExc_NotImplementedError); }
1053};
1054
1055
d14a1e28
RD
1056
1057
d14a1e28
RD
1058IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1059
1060
d14a1e28
RD
1061IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1062IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1063IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1064IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1065IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1066
1067
d14a1e28
RD
1068class wxPyTextDropTarget : public wxTextDropTarget {
1069public:
1070 wxPyTextDropTarget() {}
1071
1072 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1073
1074 DEC_PYCALLBACK__(OnLeave);
1075 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1076 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1077 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1078 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1079
1080 PYPRIVATE;
1081};
1082
1083IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1084IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1085IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1086IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1087IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1088IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1089
1090
1091
1092class wxPyFileDropTarget : public wxFileDropTarget {
1093public:
1094 wxPyFileDropTarget() {}
1095
1096 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1097
1098 DEC_PYCALLBACK__(OnLeave);
1099 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1100 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1101 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1102 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1103
1104 PYPRIVATE;
1105};
1106
1107bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1108 const wxArrayString& filenames) {
e811c8ce 1109 bool rval = False;
d14a1e28
RD
1110 wxPyBeginBlockThreads();
1111 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1112 PyObject* list = wxArrayString2PyList_helper(filenames);
1113 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1114 Py_DECREF(list);
1115 }
1116 wxPyEndBlockThreads();
1117 return rval;
1118}
1119
1120
1121
1122IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1123IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1124IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1125IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1126IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1127
1128
1129
1130
1131bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1132#ifdef __cplusplus
1133extern "C" {
1134#endif
1135static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1136 PyObject *resultobj;
1137 int arg1 ;
1138 wxColour result;
1139 char *kwnames[] = {
1140 (char *) "index", NULL
1141 };
1142
1143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetColour",kwnames,&arg1)) goto fail;
1144 {
1145 PyThreadState* __tstate = wxPyBeginAllowThreads();
1146 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1147
1148 wxPyEndAllowThreads(__tstate);
1149 if (PyErr_Occurred()) SWIG_fail;
1150 }
1151 {
1152 wxColour * resultptr;
1153 resultptr = new wxColour((wxColour &) result);
1154 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1155 }
1156 return resultobj;
1157 fail:
1158 return NULL;
1159}
1160
1161
1162static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1163 PyObject *resultobj;
1164 int arg1 ;
1165 wxFont result;
1166 char *kwnames[] = {
1167 (char *) "index", NULL
1168 };
1169
1170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetFont",kwnames,&arg1)) goto fail;
1171 {
1172 PyThreadState* __tstate = wxPyBeginAllowThreads();
1173 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1174
1175 wxPyEndAllowThreads(__tstate);
1176 if (PyErr_Occurred()) SWIG_fail;
1177 }
1178 {
1179 wxFont * resultptr;
1180 resultptr = new wxFont((wxFont &) result);
1181 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
1182 }
1183 return resultobj;
1184 fail:
1185 return NULL;
1186}
1187
1188
1189static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1190 PyObject *resultobj;
1191 int arg1 ;
1192 int result;
1193 char *kwnames[] = {
1194 (char *) "index", NULL
1195 };
1196
1197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetMetric",kwnames,&arg1)) goto fail;
1198 {
1199 PyThreadState* __tstate = wxPyBeginAllowThreads();
1200 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1201
1202 wxPyEndAllowThreads(__tstate);
1203 if (PyErr_Occurred()) SWIG_fail;
1204 }
1205 resultobj = PyInt_FromLong((long)result);
1206 return resultobj;
1207 fail:
1208 return NULL;
1209}
1210
1211
1212static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1213 PyObject *resultobj;
1214 int arg1 ;
1215 bool result;
1216 char *kwnames[] = {
1217 (char *) "index", NULL
1218 };
1219
1220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_HasFeature",kwnames,&arg1)) goto fail;
1221 {
1222 PyThreadState* __tstate = wxPyBeginAllowThreads();
1223 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1224
1225 wxPyEndAllowThreads(__tstate);
1226 if (PyErr_Occurred()) SWIG_fail;
1227 }
1228 resultobj = PyInt_FromLong((long)result);
1229 return resultobj;
1230 fail:
1231 return NULL;
1232}
1233
1234
1235static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1236 PyObject *resultobj;
1237 int result;
1238 char *kwnames[] = {
1239 NULL
1240 };
1241
1242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1243 {
1244 PyThreadState* __tstate = wxPyBeginAllowThreads();
1245 result = (int)wxSystemSettings::GetScreenType();
1246
1247 wxPyEndAllowThreads(__tstate);
1248 if (PyErr_Occurred()) SWIG_fail;
1249 }
1250 resultobj = PyInt_FromLong((long)result);
1251 return resultobj;
1252 fail:
1253 return NULL;
1254}
1255
1256
1257static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1258 PyObject *resultobj;
1259 int arg1 ;
1260 char *kwnames[] = {
1261 (char *) "screen", NULL
1262 };
1263
1264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_SetScreenType",kwnames,&arg1)) goto fail;
1265 {
1266 PyThreadState* __tstate = wxPyBeginAllowThreads();
1267 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1268
1269 wxPyEndAllowThreads(__tstate);
1270 if (PyErr_Occurred()) SWIG_fail;
1271 }
1272 Py_INCREF(Py_None); resultobj = Py_None;
1273 return resultobj;
1274 fail:
1275 return NULL;
1276}
1277
1278
1279static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1280 PyObject *obj;
1281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1282 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1283 Py_INCREF(obj);
1284 return Py_BuildValue((char *)"");
1285}
1286static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1287 PyObject *resultobj;
1288 wxSystemOptions *result;
1289 char *kwnames[] = {
1290 NULL
1291 };
1292
1293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1294 {
1295 PyThreadState* __tstate = wxPyBeginAllowThreads();
1296 result = (wxSystemOptions *)new wxSystemOptions();
1297
1298 wxPyEndAllowThreads(__tstate);
1299 if (PyErr_Occurred()) SWIG_fail;
1300 }
1301 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1);
1302 return resultobj;
1303 fail:
1304 return NULL;
1305}
1306
1307
1308static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1309 PyObject *resultobj;
1310 wxString *arg1 = 0 ;
1311 wxString *arg2 = 0 ;
e811c8ce
RD
1312 bool temp1 = False ;
1313 bool temp2 = False ;
d14a1e28
RD
1314 PyObject * obj0 = 0 ;
1315 PyObject * obj1 = 0 ;
1316 char *kwnames[] = {
1317 (char *) "name",(char *) "value", NULL
1318 };
1319
1320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1321 {
1322 arg1 = wxString_in_helper(obj0);
1323 if (arg1 == NULL) SWIG_fail;
e811c8ce 1324 temp1 = True;
d14a1e28
RD
1325 }
1326 {
1327 arg2 = wxString_in_helper(obj1);
1328 if (arg2 == NULL) SWIG_fail;
e811c8ce 1329 temp2 = True;
d14a1e28
RD
1330 }
1331 {
1332 PyThreadState* __tstate = wxPyBeginAllowThreads();
1333 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1334
1335 wxPyEndAllowThreads(__tstate);
1336 if (PyErr_Occurred()) SWIG_fail;
1337 }
1338 Py_INCREF(Py_None); resultobj = Py_None;
1339 {
1340 if (temp1)
1341 delete arg1;
1342 }
1343 {
1344 if (temp2)
1345 delete arg2;
1346 }
1347 return resultobj;
1348 fail:
1349 {
1350 if (temp1)
1351 delete arg1;
1352 }
1353 {
1354 if (temp2)
1355 delete arg2;
1356 }
1357 return NULL;
1358}
1359
1360
1361static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1362 PyObject *resultobj;
1363 wxString *arg1 = 0 ;
1364 int arg2 ;
e811c8ce 1365 bool temp1 = False ;
d14a1e28
RD
1366 PyObject * obj0 = 0 ;
1367 char *kwnames[] = {
1368 (char *) "name",(char *) "value", NULL
1369 };
1370
1371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SystemOptions_SetOptionInt",kwnames,&obj0,&arg2)) goto fail;
1372 {
1373 arg1 = wxString_in_helper(obj0);
1374 if (arg1 == NULL) SWIG_fail;
e811c8ce 1375 temp1 = True;
d14a1e28
RD
1376 }
1377 {
1378 PyThreadState* __tstate = wxPyBeginAllowThreads();
1379 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1380
1381 wxPyEndAllowThreads(__tstate);
1382 if (PyErr_Occurred()) SWIG_fail;
1383 }
1384 Py_INCREF(Py_None); resultobj = Py_None;
1385 {
1386 if (temp1)
1387 delete arg1;
1388 }
1389 return resultobj;
1390 fail:
1391 {
1392 if (temp1)
1393 delete arg1;
1394 }
1395 return NULL;
1396}
1397
1398
1399static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1400 PyObject *resultobj;
1401 wxString *arg1 = 0 ;
1402 wxString result;
e811c8ce 1403 bool temp1 = False ;
d14a1e28
RD
1404 PyObject * obj0 = 0 ;
1405 char *kwnames[] = {
1406 (char *) "name", NULL
1407 };
1408
1409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1410 {
1411 arg1 = wxString_in_helper(obj0);
1412 if (arg1 == NULL) SWIG_fail;
e811c8ce 1413 temp1 = True;
d14a1e28
RD
1414 }
1415 {
1416 PyThreadState* __tstate = wxPyBeginAllowThreads();
1417 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1418
1419 wxPyEndAllowThreads(__tstate);
1420 if (PyErr_Occurred()) SWIG_fail;
1421 }
1422 {
1423#if wxUSE_UNICODE
1424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1425#else
1426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1427#endif
1428 }
1429 {
1430 if (temp1)
1431 delete arg1;
1432 }
1433 return resultobj;
1434 fail:
1435 {
1436 if (temp1)
1437 delete arg1;
1438 }
1439 return NULL;
1440}
1441
1442
1443static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject *resultobj;
1445 wxString *arg1 = 0 ;
1446 int result;
e811c8ce 1447 bool temp1 = False ;
d14a1e28
RD
1448 PyObject * obj0 = 0 ;
1449 char *kwnames[] = {
1450 (char *) "name", NULL
1451 };
1452
1453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1454 {
1455 arg1 = wxString_in_helper(obj0);
1456 if (arg1 == NULL) SWIG_fail;
e811c8ce 1457 temp1 = True;
d14a1e28
RD
1458 }
1459 {
1460 PyThreadState* __tstate = wxPyBeginAllowThreads();
1461 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1462
1463 wxPyEndAllowThreads(__tstate);
1464 if (PyErr_Occurred()) SWIG_fail;
1465 }
1466 resultobj = PyInt_FromLong((long)result);
1467 {
1468 if (temp1)
1469 delete arg1;
1470 }
1471 return resultobj;
1472 fail:
1473 {
1474 if (temp1)
1475 delete arg1;
1476 }
1477 return NULL;
1478}
1479
1480
1481static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1482 PyObject *resultobj;
1483 wxString *arg1 = 0 ;
1484 bool result;
e811c8ce 1485 bool temp1 = False ;
d14a1e28
RD
1486 PyObject * obj0 = 0 ;
1487 char *kwnames[] = {
1488 (char *) "name", NULL
1489 };
1490
1491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1492 {
1493 arg1 = wxString_in_helper(obj0);
1494 if (arg1 == NULL) SWIG_fail;
e811c8ce 1495 temp1 = True;
d14a1e28
RD
1496 }
1497 {
1498 PyThreadState* __tstate = wxPyBeginAllowThreads();
1499 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1500
1501 wxPyEndAllowThreads(__tstate);
1502 if (PyErr_Occurred()) SWIG_fail;
1503 }
1504 resultobj = PyInt_FromLong((long)result);
1505 {
1506 if (temp1)
1507 delete arg1;
1508 }
1509 return resultobj;
1510 fail:
1511 {
1512 if (temp1)
1513 delete arg1;
1514 }
1515 return NULL;
1516}
1517
1518
1519static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1520 PyObject *obj;
1521 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1522 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1523 Py_INCREF(obj);
1524 return Py_BuildValue((char *)"");
1525}
1526static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1527 PyObject *resultobj;
1528 long result;
1529 char *kwnames[] = {
1530 NULL
1531 };
1532
1533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1534 {
1535 PyThreadState* __tstate = wxPyBeginAllowThreads();
1536 result = (long)wxNewId();
1537
1538 wxPyEndAllowThreads(__tstate);
1539 if (PyErr_Occurred()) SWIG_fail;
1540 }
1541 resultobj = PyInt_FromLong((long)result);
1542 return resultobj;
1543 fail:
1544 return NULL;
1545}
1546
1547
1548static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1549 PyObject *resultobj;
1550 long arg1 ;
1551 char *kwnames[] = {
1552 (char *) "id", NULL
1553 };
1554
1555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:RegisterId",kwnames,&arg1)) goto fail;
1556 {
1557 PyThreadState* __tstate = wxPyBeginAllowThreads();
1558 wxRegisterId(arg1);
1559
1560 wxPyEndAllowThreads(__tstate);
1561 if (PyErr_Occurred()) SWIG_fail;
1562 }
1563 Py_INCREF(Py_None); resultobj = Py_None;
1564 return resultobj;
1565 fail:
1566 return NULL;
1567}
1568
1569
1570static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
1571 PyObject *resultobj;
1572 long result;
1573 char *kwnames[] = {
1574 NULL
1575 };
1576
1577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1578 {
1579 PyThreadState* __tstate = wxPyBeginAllowThreads();
1580 result = (long)wxGetCurrentId();
1581
1582 wxPyEndAllowThreads(__tstate);
1583 if (PyErr_Occurred()) SWIG_fail;
1584 }
1585 resultobj = PyInt_FromLong((long)result);
1586 return resultobj;
1587 fail:
1588 return NULL;
1589}
1590
1591
1592static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
1593 PyObject *resultobj;
1594 char *kwnames[] = {
1595 NULL
1596 };
1597
1598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1599 {
1600 PyThreadState* __tstate = wxPyBeginAllowThreads();
1601 wxBell();
1602
1603 wxPyEndAllowThreads(__tstate);
1604 if (PyErr_Occurred()) SWIG_fail;
1605 }
1606 Py_INCREF(Py_None); resultobj = Py_None;
1607 return resultobj;
1608 fail:
1609 return NULL;
1610}
1611
1612
1613static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
1614 PyObject *resultobj;
1615 char *kwnames[] = {
1616 NULL
1617 };
1618
1619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
1620 {
1621 PyThreadState* __tstate = wxPyBeginAllowThreads();
1622 wxEndBusyCursor();
1623
1624 wxPyEndAllowThreads(__tstate);
1625 if (PyErr_Occurred()) SWIG_fail;
1626 }
1627 Py_INCREF(Py_None); resultobj = Py_None;
1628 return resultobj;
1629 fail:
1630 return NULL;
1631}
1632
1633
1634static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1635 PyObject *resultobj;
e811c8ce 1636 bool arg1 = (bool) True ;
d14a1e28
RD
1637 long result;
1638 PyObject * obj0 = 0 ;
1639 char *kwnames[] = {
1640 (char *) "resetTimer", NULL
1641 };
1642
1643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
1644 if (obj0) {
1645 arg1 = PyInt_AsLong(obj0) ? true : false;
1646 if (PyErr_Occurred()) SWIG_fail;
1647 }
1648 {
1649 PyThreadState* __tstate = wxPyBeginAllowThreads();
1650 result = (long)wxGetElapsedTime(arg1);
1651
1652 wxPyEndAllowThreads(__tstate);
1653 if (PyErr_Occurred()) SWIG_fail;
1654 }
1655 resultobj = PyInt_FromLong((long)result);
1656 return resultobj;
1657 fail:
1658 return NULL;
1659}
1660
1661
1662static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1663 PyObject *resultobj;
1664 int *arg1 = (int *) 0 ;
1665 int *arg2 = (int *) 0 ;
1666 int temp1 ;
1667 int temp2 ;
1668 char *kwnames[] = {
1669 NULL
1670 };
1671
1672 arg1 = &temp1;
1673 arg2 = &temp2;
1674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
1675 {
1676 PyThreadState* __tstate = wxPyBeginAllowThreads();
1677 wxGetMousePosition(arg1,arg2);
1678
1679 wxPyEndAllowThreads(__tstate);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 Py_INCREF(Py_None); resultobj = Py_None;
1683 {
1684 PyObject *o = PyInt_FromLong((long) (*arg1));
1685 resultobj = t_output_helper(resultobj,o);
1686 }
1687 {
1688 PyObject *o = PyInt_FromLong((long) (*arg2));
1689 resultobj = t_output_helper(resultobj,o);
1690 }
1691 return resultobj;
1692 fail:
1693 return NULL;
1694}
1695
1696
1697static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
1698 PyObject *resultobj;
1699 bool result;
1700 char *kwnames[] = {
1701 NULL
1702 };
1703
1704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
1705 {
1706 PyThreadState* __tstate = wxPyBeginAllowThreads();
1707 result = (bool)wxIsBusy();
1708
1709 wxPyEndAllowThreads(__tstate);
1710 if (PyErr_Occurred()) SWIG_fail;
1711 }
1712 resultobj = PyInt_FromLong((long)result);
1713 return resultobj;
1714 fail:
1715 return NULL;
1716}
1717
1718
1719static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
1720 PyObject *resultobj;
1721 wxString result;
1722 char *kwnames[] = {
1723 NULL
1724 };
1725
1726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
1727 {
1728 PyThreadState* __tstate = wxPyBeginAllowThreads();
1729 result = wxNow();
1730
1731 wxPyEndAllowThreads(__tstate);
1732 if (PyErr_Occurred()) SWIG_fail;
1733 }
1734 {
1735#if wxUSE_UNICODE
1736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1737#else
1738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1739#endif
1740 }
1741 return resultobj;
1742 fail:
1743 return NULL;
1744}
1745
1746
1747static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
1748 PyObject *resultobj;
1749 wxString const &arg1_defvalue = wxPyEmptyString ;
1750 wxString *arg1 = (wxString *) &arg1_defvalue ;
1751 bool result;
e811c8ce 1752 bool temp1 = False ;
d14a1e28
RD
1753 PyObject * obj0 = 0 ;
1754 char *kwnames[] = {
1755 (char *) "command", NULL
1756 };
1757
1758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
1759 if (obj0) {
1760 {
1761 arg1 = wxString_in_helper(obj0);
1762 if (arg1 == NULL) SWIG_fail;
e811c8ce 1763 temp1 = True;
d14a1e28
RD
1764 }
1765 }
1766 {
1767 PyThreadState* __tstate = wxPyBeginAllowThreads();
1768 result = (bool)wxShell((wxString const &)*arg1);
1769
1770 wxPyEndAllowThreads(__tstate);
1771 if (PyErr_Occurred()) SWIG_fail;
1772 }
1773 resultobj = PyInt_FromLong((long)result);
1774 {
1775 if (temp1)
1776 delete arg1;
1777 }
1778 return resultobj;
1779 fail:
1780 {
1781 if (temp1)
1782 delete arg1;
1783 }
1784 return NULL;
1785}
1786
1787
1788static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
1789 PyObject *resultobj;
1790 char *kwnames[] = {
1791 NULL
1792 };
1793
1794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
1795 {
1796 PyThreadState* __tstate = wxPyBeginAllowThreads();
1797 wxStartTimer();
1798
1799 wxPyEndAllowThreads(__tstate);
1800 if (PyErr_Occurred()) SWIG_fail;
1801 }
1802 Py_INCREF(Py_None); resultobj = Py_None;
1803 return resultobj;
1804 fail:
1805 return NULL;
1806}
1807
1808
1809static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
1810 PyObject *resultobj;
1811 int *arg1 = (int *) 0 ;
1812 int *arg2 = (int *) 0 ;
1813 int result;
1814 int temp1 ;
1815 int temp2 ;
1816 char *kwnames[] = {
1817 NULL
1818 };
1819
1820 arg1 = &temp1;
1821 arg2 = &temp2;
1822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
1823 {
1824 PyThreadState* __tstate = wxPyBeginAllowThreads();
1825 result = (int)wxGetOsVersion(arg1,arg2);
1826
1827 wxPyEndAllowThreads(__tstate);
1828 if (PyErr_Occurred()) SWIG_fail;
1829 }
1830 resultobj = PyInt_FromLong((long)result);
1831 {
1832 PyObject *o = PyInt_FromLong((long) (*arg1));
1833 resultobj = t_output_helper(resultobj,o);
1834 }
1835 {
1836 PyObject *o = PyInt_FromLong((long) (*arg2));
1837 resultobj = t_output_helper(resultobj,o);
1838 }
1839 return resultobj;
1840 fail:
1841 return NULL;
1842}
1843
1844
1845static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxString result;
1848 char *kwnames[] = {
1849 NULL
1850 };
1851
1852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
1853 {
1854 PyThreadState* __tstate = wxPyBeginAllowThreads();
1855 result = wxGetOsDescription();
1856
1857 wxPyEndAllowThreads(__tstate);
1858 if (PyErr_Occurred()) SWIG_fail;
1859 }
1860 {
1861#if wxUSE_UNICODE
1862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1863#else
1864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1865#endif
1866 }
1867 return resultobj;
1868 fail:
1869 return NULL;
1870}
1871
1872
1873static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
1874 PyObject *resultobj;
1875 long result;
1876 char *kwnames[] = {
1877 NULL
1878 };
1879
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
1881 {
1882 PyThreadState* __tstate = wxPyBeginAllowThreads();
1883 result = (long)wxGetFreeMemory();
1884
1885 wxPyEndAllowThreads(__tstate);
1886 if (PyErr_Occurred()) SWIG_fail;
1887 }
1888 resultobj = PyInt_FromLong((long)result);
1889 return resultobj;
1890 fail:
1891 return NULL;
1892}
1893
1894
1895static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
1896 PyObject *resultobj;
1897 int arg1 ;
1898 bool result;
1899 char *kwnames[] = {
1900 (char *) "wFlags", NULL
1901 };
1902
1903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Shutdown",kwnames,&arg1)) goto fail;
1904 {
1905 PyThreadState* __tstate = wxPyBeginAllowThreads();
1906 result = (bool)wxShutdown((wxShutdownFlags )arg1);
1907
1908 wxPyEndAllowThreads(__tstate);
1909 if (PyErr_Occurred()) SWIG_fail;
1910 }
1911 resultobj = PyInt_FromLong((long)result);
1912 return resultobj;
1913 fail:
1914 return NULL;
1915}
1916
1917
1918static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
1919 PyObject *resultobj;
1920 int arg1 ;
1921 char *kwnames[] = {
1922 (char *) "secs", NULL
1923 };
1924
1925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Sleep",kwnames,&arg1)) goto fail;
1926 {
1927 PyThreadState* __tstate = wxPyBeginAllowThreads();
1928 wxSleep(arg1);
1929
1930 wxPyEndAllowThreads(__tstate);
1931 if (PyErr_Occurred()) SWIG_fail;
1932 }
1933 Py_INCREF(Py_None); resultobj = Py_None;
1934 return resultobj;
1935 fail:
1936 return NULL;
1937}
1938
1939
1940static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
1941 PyObject *resultobj;
1942 unsigned long arg1 ;
1943 PyObject * obj0 = 0 ;
1944 char *kwnames[] = {
1945 (char *) "milliseconds", NULL
1946 };
1947
1948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
1949 arg1 = (unsigned long) PyInt_AsLong(obj0);
1950 if (PyErr_Occurred()) SWIG_fail;
1951 {
1952 PyThreadState* __tstate = wxPyBeginAllowThreads();
1953 wxUsleep(arg1);
1954
1955 wxPyEndAllowThreads(__tstate);
1956 if (PyErr_Occurred()) SWIG_fail;
1957 }
1958 Py_INCREF(Py_None); resultobj = Py_None;
1959 return resultobj;
1960 fail:
1961 return NULL;
1962}
1963
1964
1965static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject *resultobj;
1967 bool arg1 ;
1968 PyObject * obj0 = 0 ;
1969 char *kwnames[] = {
1970 (char *) "enable", NULL
1971 };
1972
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
1974 arg1 = PyInt_AsLong(obj0) ? true : false;
1975 if (PyErr_Occurred()) SWIG_fail;
1976 {
1977 PyThreadState* __tstate = wxPyBeginAllowThreads();
1978 wxEnableTopLevelWindows(arg1);
1979
1980 wxPyEndAllowThreads(__tstate);
1981 if (PyErr_Occurred()) SWIG_fail;
1982 }
1983 Py_INCREF(Py_None); resultobj = Py_None;
1984 return resultobj;
1985 fail:
1986 return NULL;
1987}
1988
1989
1990static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
1991 PyObject *resultobj;
1992 wxString *arg1 = 0 ;
1993 wxString result;
e811c8ce 1994 bool temp1 = False ;
d14a1e28
RD
1995 PyObject * obj0 = 0 ;
1996 char *kwnames[] = {
1997 (char *) "in", NULL
1998 };
1999
2000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2001 {
2002 arg1 = wxString_in_helper(obj0);
2003 if (arg1 == NULL) SWIG_fail;
e811c8ce 2004 temp1 = True;
d14a1e28
RD
2005 }
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 result = wxStripMenuCodes((wxString const &)*arg1);
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 {
2014#if wxUSE_UNICODE
2015 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2016#else
2017 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2018#endif
2019 }
2020 {
2021 if (temp1)
2022 delete arg1;
2023 }
2024 return resultobj;
2025 fail:
2026 {
2027 if (temp1)
2028 delete arg1;
2029 }
2030 return NULL;
2031}
2032
2033
2034static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2035 PyObject *resultobj;
2036 wxString result;
2037 char *kwnames[] = {
2038 NULL
2039 };
2040
2041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2042 {
2043 PyThreadState* __tstate = wxPyBeginAllowThreads();
2044 result = wxGetEmailAddress();
2045
2046 wxPyEndAllowThreads(__tstate);
2047 if (PyErr_Occurred()) SWIG_fail;
2048 }
2049 {
2050#if wxUSE_UNICODE
2051 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2052#else
2053 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2054#endif
2055 }
2056 return resultobj;
2057 fail:
2058 return NULL;
2059}
2060
2061
2062static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2063 PyObject *resultobj;
2064 wxString result;
2065 char *kwnames[] = {
2066 NULL
2067 };
2068
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2070 {
2071 PyThreadState* __tstate = wxPyBeginAllowThreads();
2072 result = wxGetHostName();
2073
2074 wxPyEndAllowThreads(__tstate);
2075 if (PyErr_Occurred()) SWIG_fail;
2076 }
2077 {
2078#if wxUSE_UNICODE
2079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2080#else
2081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2082#endif
2083 }
2084 return resultobj;
2085 fail:
2086 return NULL;
2087}
2088
2089
2090static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2091 PyObject *resultobj;
2092 wxString result;
2093 char *kwnames[] = {
2094 NULL
2095 };
2096
2097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2098 {
2099 PyThreadState* __tstate = wxPyBeginAllowThreads();
2100 result = wxGetFullHostName();
2101
2102 wxPyEndAllowThreads(__tstate);
2103 if (PyErr_Occurred()) SWIG_fail;
2104 }
2105 {
2106#if wxUSE_UNICODE
2107 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2108#else
2109 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2110#endif
2111 }
2112 return resultobj;
2113 fail:
2114 return NULL;
2115}
2116
2117
2118static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2119 PyObject *resultobj;
2120 wxString result;
2121 char *kwnames[] = {
2122 NULL
2123 };
2124
2125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2126 {
2127 PyThreadState* __tstate = wxPyBeginAllowThreads();
2128 result = wxGetUserId();
2129
2130 wxPyEndAllowThreads(__tstate);
2131 if (PyErr_Occurred()) SWIG_fail;
2132 }
2133 {
2134#if wxUSE_UNICODE
2135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2136#else
2137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2138#endif
2139 }
2140 return resultobj;
2141 fail:
2142 return NULL;
2143}
2144
2145
2146static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2147 PyObject *resultobj;
2148 wxString result;
2149 char *kwnames[] = {
2150 NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2154 {
2155 PyThreadState* __tstate = wxPyBeginAllowThreads();
2156 result = wxGetUserName();
2157
2158 wxPyEndAllowThreads(__tstate);
2159 if (PyErr_Occurred()) SWIG_fail;
2160 }
2161 {
2162#if wxUSE_UNICODE
2163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2164#else
2165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2166#endif
2167 }
2168 return resultobj;
2169 fail:
2170 return NULL;
2171}
2172
2173
2174static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2175 PyObject *resultobj;
2176 wxString result;
2177 char *kwnames[] = {
2178 NULL
2179 };
2180
2181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2182 {
2183 PyThreadState* __tstate = wxPyBeginAllowThreads();
2184 result = wxGetHomeDir();
2185
2186 wxPyEndAllowThreads(__tstate);
2187 if (PyErr_Occurred()) SWIG_fail;
2188 }
2189 {
2190#if wxUSE_UNICODE
2191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2192#else
2193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2194#endif
2195 }
2196 return resultobj;
2197 fail:
2198 return NULL;
2199}
2200
2201
2202static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2203 PyObject *resultobj;
2204 wxString const &arg1_defvalue = wxPyEmptyString ;
2205 wxString *arg1 = (wxString *) &arg1_defvalue ;
2206 wxString result;
e811c8ce 2207 bool temp1 = False ;
d14a1e28
RD
2208 PyObject * obj0 = 0 ;
2209 char *kwnames[] = {
2210 (char *) "user", NULL
2211 };
2212
2213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2214 if (obj0) {
2215 {
2216 arg1 = wxString_in_helper(obj0);
2217 if (arg1 == NULL) SWIG_fail;
e811c8ce 2218 temp1 = True;
d14a1e28
RD
2219 }
2220 }
2221 {
2222 PyThreadState* __tstate = wxPyBeginAllowThreads();
2223 result = wxGetUserHome((wxString const &)*arg1);
2224
2225 wxPyEndAllowThreads(__tstate);
2226 if (PyErr_Occurred()) SWIG_fail;
2227 }
2228 {
2229#if wxUSE_UNICODE
2230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2231#else
2232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2233#endif
2234 }
2235 {
2236 if (temp1)
2237 delete arg1;
2238 }
2239 return resultobj;
2240 fail:
2241 {
2242 if (temp1)
2243 delete arg1;
2244 }
2245 return NULL;
2246}
2247
2248
2249static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2250 PyObject *resultobj;
2251 unsigned long result;
2252 char *kwnames[] = {
2253 NULL
2254 };
2255
2256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2257 {
2258 PyThreadState* __tstate = wxPyBeginAllowThreads();
2259 result = (unsigned long)wxGetProcessId();
2260
2261 wxPyEndAllowThreads(__tstate);
2262 if (PyErr_Occurred()) SWIG_fail;
2263 }
2264 resultobj = PyInt_FromLong((long)result);
2265 return resultobj;
2266 fail:
2267 return NULL;
2268}
2269
2270
2271static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2272 PyObject *resultobj;
2273 char *kwnames[] = {
2274 NULL
2275 };
2276
2277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2278 {
2279 PyThreadState* __tstate = wxPyBeginAllowThreads();
2280 wxTrap();
2281
2282 wxPyEndAllowThreads(__tstate);
2283 if (PyErr_Occurred()) SWIG_fail;
2284 }
2285 Py_INCREF(Py_None); resultobj = Py_None;
2286 return resultobj;
2287 fail:
2288 return NULL;
2289}
2290
2291
2292static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2293 PyObject *resultobj;
2294 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2295 wxString *arg1 = (wxString *) &arg1_defvalue ;
2296 wxString const &arg2_defvalue = wxPyEmptyString ;
2297 wxString *arg2 = (wxString *) &arg2_defvalue ;
2298 wxString const &arg3_defvalue = wxPyEmptyString ;
2299 wxString *arg3 = (wxString *) &arg3_defvalue ;
2300 wxString const &arg4_defvalue = wxPyEmptyString ;
2301 wxString *arg4 = (wxString *) &arg4_defvalue ;
2302 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2303 wxString *arg5 = (wxString *) &arg5_defvalue ;
2304 int arg6 = (int) 0 ;
2305 wxWindow *arg7 = (wxWindow *) NULL ;
2306 int arg8 = (int) -1 ;
2307 int arg9 = (int) -1 ;
2308 wxString result;
e811c8ce
RD
2309 bool temp1 = False ;
2310 bool temp2 = False ;
2311 bool temp3 = False ;
2312 bool temp4 = False ;
2313 bool temp5 = False ;
d14a1e28
RD
2314 PyObject * obj0 = 0 ;
2315 PyObject * obj1 = 0 ;
2316 PyObject * obj2 = 0 ;
2317 PyObject * obj3 = 0 ;
2318 PyObject * obj4 = 0 ;
2319 PyObject * obj6 = 0 ;
2320 char *kwnames[] = {
2321 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2322 };
2323
2324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOiOii:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&arg9)) goto fail;
2325 if (obj0) {
2326 {
2327 arg1 = wxString_in_helper(obj0);
2328 if (arg1 == NULL) SWIG_fail;
e811c8ce 2329 temp1 = True;
d14a1e28
RD
2330 }
2331 }
2332 if (obj1) {
2333 {
2334 arg2 = wxString_in_helper(obj1);
2335 if (arg2 == NULL) SWIG_fail;
e811c8ce 2336 temp2 = True;
d14a1e28
RD
2337 }
2338 }
2339 if (obj2) {
2340 {
2341 arg3 = wxString_in_helper(obj2);
2342 if (arg3 == NULL) SWIG_fail;
e811c8ce 2343 temp3 = True;
d14a1e28
RD
2344 }
2345 }
2346 if (obj3) {
2347 {
2348 arg4 = wxString_in_helper(obj3);
2349 if (arg4 == NULL) SWIG_fail;
e811c8ce 2350 temp4 = True;
d14a1e28
RD
2351 }
2352 }
2353 if (obj4) {
2354 {
2355 arg5 = wxString_in_helper(obj4);
2356 if (arg5 == NULL) SWIG_fail;
e811c8ce 2357 temp5 = True;
d14a1e28
RD
2358 }
2359 }
2360 if (obj6) {
2361 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2362 }
2363 {
2364 PyThreadState* __tstate = wxPyBeginAllowThreads();
2365 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2366
2367 wxPyEndAllowThreads(__tstate);
2368 if (PyErr_Occurred()) SWIG_fail;
2369 }
2370 {
2371#if wxUSE_UNICODE
2372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2373#else
2374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2375#endif
2376 }
2377 {
2378 if (temp1)
2379 delete arg1;
2380 }
2381 {
2382 if (temp2)
2383 delete arg2;
2384 }
2385 {
2386 if (temp3)
2387 delete arg3;
2388 }
2389 {
2390 if (temp4)
2391 delete arg4;
2392 }
2393 {
2394 if (temp5)
2395 delete arg5;
2396 }
2397 return resultobj;
2398 fail:
2399 {
2400 if (temp1)
2401 delete arg1;
2402 }
2403 {
2404 if (temp2)
2405 delete arg2;
2406 }
2407 {
2408 if (temp3)
2409 delete arg3;
2410 }
2411 {
2412 if (temp4)
2413 delete arg4;
2414 }
2415 {
2416 if (temp5)
2417 delete arg5;
2418 }
2419 return NULL;
2420}
2421
2422
2423static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2424 PyObject *resultobj;
2425 wxString *arg1 = 0 ;
2426 wxString *arg2 = 0 ;
2427 wxString const &arg3_defvalue = wxPyEmptyString ;
2428 wxString *arg3 = (wxString *) &arg3_defvalue ;
2429 wxWindow *arg4 = (wxWindow *) NULL ;
2430 wxString result;
e811c8ce
RD
2431 bool temp1 = False ;
2432 bool temp2 = False ;
2433 bool temp3 = False ;
d14a1e28
RD
2434 PyObject * obj0 = 0 ;
2435 PyObject * obj1 = 0 ;
2436 PyObject * obj2 = 0 ;
2437 PyObject * obj3 = 0 ;
2438 char *kwnames[] = {
2439 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2440 };
2441
2442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2443 {
2444 arg1 = wxString_in_helper(obj0);
2445 if (arg1 == NULL) SWIG_fail;
e811c8ce 2446 temp1 = True;
d14a1e28
RD
2447 }
2448 {
2449 arg2 = wxString_in_helper(obj1);
2450 if (arg2 == NULL) SWIG_fail;
e811c8ce 2451 temp2 = True;
d14a1e28
RD
2452 }
2453 if (obj2) {
2454 {
2455 arg3 = wxString_in_helper(obj2);
2456 if (arg3 == NULL) SWIG_fail;
e811c8ce 2457 temp3 = True;
d14a1e28
RD
2458 }
2459 }
2460 if (obj3) {
2461 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2462 }
2463 {
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
2465 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) SWIG_fail;
2469 }
2470 {
2471#if wxUSE_UNICODE
2472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2473#else
2474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2475#endif
2476 }
2477 {
2478 if (temp1)
2479 delete arg1;
2480 }
2481 {
2482 if (temp2)
2483 delete arg2;
2484 }
2485 {
2486 if (temp3)
2487 delete arg3;
2488 }
2489 return resultobj;
2490 fail:
2491 {
2492 if (temp1)
2493 delete arg1;
2494 }
2495 {
2496 if (temp2)
2497 delete arg2;
2498 }
2499 {
2500 if (temp3)
2501 delete arg3;
2502 }
2503 return NULL;
2504}
2505
2506
2507static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2508 PyObject *resultobj;
2509 wxString *arg1 = 0 ;
2510 wxString *arg2 = 0 ;
2511 wxString const &arg3_defvalue = wxPyEmptyString ;
2512 wxString *arg3 = (wxString *) &arg3_defvalue ;
2513 wxWindow *arg4 = (wxWindow *) NULL ;
2514 wxString result;
e811c8ce
RD
2515 bool temp1 = False ;
2516 bool temp2 = False ;
2517 bool temp3 = False ;
d14a1e28
RD
2518 PyObject * obj0 = 0 ;
2519 PyObject * obj1 = 0 ;
2520 PyObject * obj2 = 0 ;
2521 PyObject * obj3 = 0 ;
2522 char *kwnames[] = {
2523 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2524 };
2525
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2527 {
2528 arg1 = wxString_in_helper(obj0);
2529 if (arg1 == NULL) SWIG_fail;
e811c8ce 2530 temp1 = True;
d14a1e28
RD
2531 }
2532 {
2533 arg2 = wxString_in_helper(obj1);
2534 if (arg2 == NULL) SWIG_fail;
e811c8ce 2535 temp2 = True;
d14a1e28
RD
2536 }
2537 if (obj2) {
2538 {
2539 arg3 = wxString_in_helper(obj2);
2540 if (arg3 == NULL) SWIG_fail;
e811c8ce 2541 temp3 = True;
d14a1e28
RD
2542 }
2543 }
2544 if (obj3) {
2545 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2546 }
2547 {
2548 PyThreadState* __tstate = wxPyBeginAllowThreads();
2549 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2550
2551 wxPyEndAllowThreads(__tstate);
2552 if (PyErr_Occurred()) SWIG_fail;
2553 }
2554 {
2555#if wxUSE_UNICODE
2556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2557#else
2558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2559#endif
2560 }
2561 {
2562 if (temp1)
2563 delete arg1;
2564 }
2565 {
2566 if (temp2)
2567 delete arg2;
2568 }
2569 {
2570 if (temp3)
2571 delete arg3;
2572 }
2573 return resultobj;
2574 fail:
2575 {
2576 if (temp1)
2577 delete arg1;
2578 }
2579 {
2580 if (temp2)
2581 delete arg2;
2582 }
2583 {
2584 if (temp3)
2585 delete arg3;
2586 }
2587 return NULL;
2588}
2589
2590
2591static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject *resultobj;
2593 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
2594 wxString *arg1 = (wxString *) &arg1_defvalue ;
2595 wxString const &arg2_defvalue = wxPyEmptyString ;
2596 wxString *arg2 = (wxString *) &arg2_defvalue ;
2597 long arg3 = (long) wxDD_DEFAULT_STYLE ;
2598 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2599 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2600 wxWindow *arg5 = (wxWindow *) NULL ;
2601 wxString result;
e811c8ce
RD
2602 bool temp1 = False ;
2603 bool temp2 = False ;
d14a1e28
RD
2604 wxPoint temp4 ;
2605 PyObject * obj0 = 0 ;
2606 PyObject * obj1 = 0 ;
2607 PyObject * obj3 = 0 ;
2608 PyObject * obj4 = 0 ;
2609 char *kwnames[] = {
2610 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
2611 };
2612
2613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOlOO:DirSelector",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail;
2614 if (obj0) {
2615 {
2616 arg1 = wxString_in_helper(obj0);
2617 if (arg1 == NULL) SWIG_fail;
e811c8ce 2618 temp1 = True;
d14a1e28
RD
2619 }
2620 }
2621 if (obj1) {
2622 {
2623 arg2 = wxString_in_helper(obj1);
2624 if (arg2 == NULL) SWIG_fail;
e811c8ce 2625 temp2 = True;
d14a1e28
RD
2626 }
2627 }
2628 if (obj3) {
2629 {
2630 arg4 = &temp4;
2631 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2632 }
2633 }
2634 if (obj4) {
2635 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2636 }
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 {
2645#if wxUSE_UNICODE
2646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2647#else
2648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2649#endif
2650 }
2651 {
2652 if (temp1)
2653 delete arg1;
2654 }
2655 {
2656 if (temp2)
2657 delete arg2;
2658 }
2659 return resultobj;
2660 fail:
2661 {
2662 if (temp1)
2663 delete arg1;
2664 }
2665 {
2666 if (temp2)
2667 delete arg2;
2668 }
2669 return NULL;
2670}
2671
2672
2673static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2674 PyObject *resultobj;
2675 wxString *arg1 = 0 ;
2676 wxString const &arg2_defvalue = wxPyEmptyString ;
2677 wxString *arg2 = (wxString *) &arg2_defvalue ;
2678 wxString const &arg3_defvalue = wxPyEmptyString ;
2679 wxString *arg3 = (wxString *) &arg3_defvalue ;
2680 wxWindow *arg4 = (wxWindow *) NULL ;
2681 int arg5 = (int) -1 ;
2682 int arg6 = (int) -1 ;
e811c8ce 2683 bool arg7 = (bool) True ;
d14a1e28 2684 wxString result;
e811c8ce
RD
2685 bool temp1 = False ;
2686 bool temp2 = False ;
2687 bool temp3 = False ;
d14a1e28
RD
2688 PyObject * obj0 = 0 ;
2689 PyObject * obj1 = 0 ;
2690 PyObject * obj2 = 0 ;
2691 PyObject * obj3 = 0 ;
2692 PyObject * obj6 = 0 ;
2693 char *kwnames[] = {
2694 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
2695 };
2696
2697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOiiO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail;
2698 {
2699 arg1 = wxString_in_helper(obj0);
2700 if (arg1 == NULL) SWIG_fail;
e811c8ce 2701 temp1 = True;
d14a1e28
RD
2702 }
2703 if (obj1) {
2704 {
2705 arg2 = wxString_in_helper(obj1);
2706 if (arg2 == NULL) SWIG_fail;
e811c8ce 2707 temp2 = True;
d14a1e28
RD
2708 }
2709 }
2710 if (obj2) {
2711 {
2712 arg3 = wxString_in_helper(obj2);
2713 if (arg3 == NULL) SWIG_fail;
e811c8ce 2714 temp3 = True;
d14a1e28
RD
2715 }
2716 }
2717 if (obj3) {
2718 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2719 }
2720 if (obj6) {
2721 arg7 = PyInt_AsLong(obj6) ? true : false;
2722 if (PyErr_Occurred()) SWIG_fail;
2723 }
2724 {
2725 PyThreadState* __tstate = wxPyBeginAllowThreads();
2726 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
2727
2728 wxPyEndAllowThreads(__tstate);
2729 if (PyErr_Occurred()) SWIG_fail;
2730 }
2731 {
2732#if wxUSE_UNICODE
2733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2734#else
2735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2736#endif
2737 }
2738 {
2739 if (temp1)
2740 delete arg1;
2741 }
2742 {
2743 if (temp2)
2744 delete arg2;
2745 }
2746 {
2747 if (temp3)
2748 delete arg3;
2749 }
2750 return resultobj;
2751 fail:
2752 {
2753 if (temp1)
2754 delete arg1;
2755 }
2756 {
2757 if (temp2)
2758 delete arg2;
2759 }
2760 {
2761 if (temp3)
2762 delete arg3;
2763 }
2764 return NULL;
2765}
2766
2767
2768static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2769 PyObject *resultobj;
2770 wxString *arg1 = 0 ;
2771 wxString const &arg2_defvalue = wxPyEmptyString ;
2772 wxString *arg2 = (wxString *) &arg2_defvalue ;
2773 wxString const &arg3_defvalue = wxPyEmptyString ;
2774 wxString *arg3 = (wxString *) &arg3_defvalue ;
2775 wxWindow *arg4 = (wxWindow *) NULL ;
2776 wxString result;
e811c8ce
RD
2777 bool temp1 = False ;
2778 bool temp2 = False ;
2779 bool temp3 = False ;
d14a1e28
RD
2780 PyObject * obj0 = 0 ;
2781 PyObject * obj1 = 0 ;
2782 PyObject * obj2 = 0 ;
2783 PyObject * obj3 = 0 ;
2784 char *kwnames[] = {
2785 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
2786 };
2787
2788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2789 {
2790 arg1 = wxString_in_helper(obj0);
2791 if (arg1 == NULL) SWIG_fail;
e811c8ce 2792 temp1 = True;
d14a1e28
RD
2793 }
2794 if (obj1) {
2795 {
2796 arg2 = wxString_in_helper(obj1);
2797 if (arg2 == NULL) SWIG_fail;
e811c8ce 2798 temp2 = True;
d14a1e28
RD
2799 }
2800 }
2801 if (obj2) {
2802 {
2803 arg3 = wxString_in_helper(obj2);
2804 if (arg3 == NULL) SWIG_fail;
e811c8ce 2805 temp3 = True;
d14a1e28
RD
2806 }
2807 }
2808 if (obj3) {
2809 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2810 }
2811 {
2812 PyThreadState* __tstate = wxPyBeginAllowThreads();
2813 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2814
2815 wxPyEndAllowThreads(__tstate);
2816 if (PyErr_Occurred()) SWIG_fail;
2817 }
2818 {
2819#if wxUSE_UNICODE
2820 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2821#else
2822 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2823#endif
2824 }
2825 {
2826 if (temp1)
2827 delete arg1;
2828 }
2829 {
2830 if (temp2)
2831 delete arg2;
2832 }
2833 {
2834 if (temp3)
2835 delete arg3;
2836 }
2837 return resultobj;
2838 fail:
2839 {
2840 if (temp1)
2841 delete arg1;
2842 }
2843 {
2844 if (temp2)
2845 delete arg2;
2846 }
2847 {
2848 if (temp3)
2849 delete arg3;
2850 }
2851 return NULL;
2852}
2853
2854
2855static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2856 PyObject *resultobj;
2857 wxString *arg1 = 0 ;
2858 wxString *arg2 = 0 ;
2859 int arg3 ;
2860 wxString *arg4 = (wxString *) 0 ;
2861 wxWindow *arg5 = (wxWindow *) NULL ;
2862 int arg6 = (int) -1 ;
2863 int arg7 = (int) -1 ;
e811c8ce 2864 bool arg8 = (bool) True ;
d14a1e28
RD
2865 int arg9 = (int) 150 ;
2866 int arg10 = (int) 200 ;
2867 wxString result;
e811c8ce
RD
2868 bool temp1 = False ;
2869 bool temp2 = False ;
d14a1e28
RD
2870 PyObject * obj0 = 0 ;
2871 PyObject * obj1 = 0 ;
2872 PyObject * obj2 = 0 ;
2873 PyObject * obj3 = 0 ;
2874 PyObject * obj6 = 0 ;
2875 char *kwnames[] = {
2876 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
2877 };
2878
2879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail;
2880 {
2881 arg1 = wxString_in_helper(obj0);
2882 if (arg1 == NULL) SWIG_fail;
e811c8ce 2883 temp1 = True;
d14a1e28
RD
2884 }
2885 {
2886 arg2 = wxString_in_helper(obj1);
2887 if (arg2 == NULL) SWIG_fail;
e811c8ce 2888 temp2 = True;
d14a1e28
RD
2889 }
2890 {
2891 arg3 = PyList_Size(obj2);
2892 arg4 = wxString_LIST_helper(obj2);
2893 if (arg4 == NULL) SWIG_fail;
2894 }
2895 if (obj3) {
2896 if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2897 }
2898 if (obj6) {
2899 arg8 = PyInt_AsLong(obj6) ? true : false;
2900 if (PyErr_Occurred()) SWIG_fail;
2901 }
2902 {
2903 PyThreadState* __tstate = wxPyBeginAllowThreads();
2904 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
2905
2906 wxPyEndAllowThreads(__tstate);
2907 if (PyErr_Occurred()) SWIG_fail;
2908 }
2909 {
2910#if wxUSE_UNICODE
2911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2912#else
2913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2914#endif
2915 }
2916 {
2917 if (temp1)
2918 delete arg1;
2919 }
2920 {
2921 if (temp2)
2922 delete arg2;
2923 }
2924 {
2925 if (arg4) delete [] arg4;
2926 }
2927 return resultobj;
2928 fail:
2929 {
2930 if (temp1)
2931 delete arg1;
2932 }
2933 {
2934 if (temp2)
2935 delete arg2;
2936 }
2937 {
2938 if (arg4) delete [] arg4;
2939 }
2940 return NULL;
2941}
2942
2943
2944static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
2945 PyObject *resultobj;
2946 wxString *arg1 = 0 ;
2947 wxString *arg2 = 0 ;
2948 int arg3 ;
2949 wxString *arg4 = (wxString *) 0 ;
2950 wxWindow *arg5 = (wxWindow *) NULL ;
2951 int arg6 = (int) -1 ;
2952 int arg7 = (int) -1 ;
e811c8ce 2953 bool arg8 = (bool) True ;
d14a1e28
RD
2954 int arg9 = (int) 150 ;
2955 int arg10 = (int) 200 ;
2956 int result;
e811c8ce
RD
2957 bool temp1 = False ;
2958 bool temp2 = False ;
d14a1e28
RD
2959 PyObject * obj0 = 0 ;
2960 PyObject * obj1 = 0 ;
2961 PyObject * obj2 = 0 ;
2962 PyObject * obj3 = 0 ;
2963 PyObject * obj6 = 0 ;
2964 char *kwnames[] = {
2965 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
2966 };
2967
2968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail;
2969 {
2970 arg1 = wxString_in_helper(obj0);
2971 if (arg1 == NULL) SWIG_fail;
e811c8ce 2972 temp1 = True;
d14a1e28
RD
2973 }
2974 {
2975 arg2 = wxString_in_helper(obj1);
2976 if (arg2 == NULL) SWIG_fail;
e811c8ce 2977 temp2 = True;
d14a1e28
RD
2978 }
2979 {
2980 arg3 = PyList_Size(obj2);
2981 arg4 = wxString_LIST_helper(obj2);
2982 if (arg4 == NULL) SWIG_fail;
2983 }
2984 if (obj3) {
2985 if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2986 }
2987 if (obj6) {
2988 arg8 = PyInt_AsLong(obj6) ? true : false;
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 {
2992 PyThreadState* __tstate = wxPyBeginAllowThreads();
2993 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
2994
2995 wxPyEndAllowThreads(__tstate);
2996 if (PyErr_Occurred()) SWIG_fail;
2997 }
2998 resultobj = PyInt_FromLong((long)result);
2999 {
3000 if (temp1)
3001 delete arg1;
3002 }
3003 {
3004 if (temp2)
3005 delete arg2;
3006 }
3007 {
3008 if (arg4) delete [] arg4;
3009 }
3010 return resultobj;
3011 fail:
3012 {
3013 if (temp1)
3014 delete arg1;
3015 }
3016 {
3017 if (temp2)
3018 delete arg2;
3019 }
3020 {
3021 if (arg4) delete [] arg4;
3022 }
3023 return NULL;
3024}
3025
3026
3027static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3028 PyObject *resultobj;
3029 wxString *arg1 = 0 ;
3030 wxString const &arg2_defvalue = wxPyEmptyString ;
3031 wxString *arg2 = (wxString *) &arg2_defvalue ;
3032 int arg3 = (int) wxOK|wxCENTRE ;
3033 wxWindow *arg4 = (wxWindow *) NULL ;
3034 int arg5 = (int) -1 ;
3035 int arg6 = (int) -1 ;
3036 int result;
e811c8ce
RD
3037 bool temp1 = False ;
3038 bool temp2 = False ;
d14a1e28
RD
3039 PyObject * obj0 = 0 ;
3040 PyObject * obj1 = 0 ;
3041 PyObject * obj3 = 0 ;
3042 char *kwnames[] = {
3043 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3044 };
3045
3046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOii:MessageBox",kwnames,&obj0,&obj1,&arg3,&obj3,&arg5,&arg6)) goto fail;
3047 {
3048 arg1 = wxString_in_helper(obj0);
3049 if (arg1 == NULL) SWIG_fail;
e811c8ce 3050 temp1 = True;
d14a1e28
RD
3051 }
3052 if (obj1) {
3053 {
3054 arg2 = wxString_in_helper(obj1);
3055 if (arg2 == NULL) SWIG_fail;
e811c8ce 3056 temp2 = True;
d14a1e28
RD
3057 }
3058 }
3059 if (obj3) {
3060 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3061 }
3062 {
3063 PyThreadState* __tstate = wxPyBeginAllowThreads();
3064 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3065
3066 wxPyEndAllowThreads(__tstate);
3067 if (PyErr_Occurred()) SWIG_fail;
3068 }
3069 resultobj = PyInt_FromLong((long)result);
3070 {
3071 if (temp1)
3072 delete arg1;
3073 }
3074 {
3075 if (temp2)
3076 delete arg2;
3077 }
3078 return resultobj;
3079 fail:
3080 {
3081 if (temp1)
3082 delete arg1;
3083 }
3084 {
3085 if (temp2)
3086 delete arg2;
3087 }
3088 return NULL;
3089}
3090
3091
3092static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3093 PyObject *resultobj;
3094 wxString *arg1 = 0 ;
3095 wxString *arg2 = 0 ;
3096 wxString *arg3 = 0 ;
3097 long arg4 ;
3098 long arg5 = (long) 0 ;
3099 long arg6 = (long) 100 ;
3100 wxWindow *arg7 = (wxWindow *) NULL ;
3101 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3102 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3103 long result;
e811c8ce
RD
3104 bool temp1 = False ;
3105 bool temp2 = False ;
3106 bool temp3 = False ;
d14a1e28
RD
3107 wxPoint temp8 ;
3108 PyObject * obj0 = 0 ;
3109 PyObject * obj1 = 0 ;
3110 PyObject * obj2 = 0 ;
3111 PyObject * obj6 = 0 ;
3112 PyObject * obj7 = 0 ;
3113 char *kwnames[] = {
3114 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3115 };
3116
3117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOl|llOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7)) goto fail;
3118 {
3119 arg1 = wxString_in_helper(obj0);
3120 if (arg1 == NULL) SWIG_fail;
e811c8ce 3121 temp1 = True;
d14a1e28
RD
3122 }
3123 {
3124 arg2 = wxString_in_helper(obj1);
3125 if (arg2 == NULL) SWIG_fail;
e811c8ce 3126 temp2 = True;
d14a1e28
RD
3127 }
3128 {
3129 arg3 = wxString_in_helper(obj2);
3130 if (arg3 == NULL) SWIG_fail;
e811c8ce 3131 temp3 = True;
d14a1e28
RD
3132 }
3133 if (obj6) {
3134 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3135 }
3136 if (obj7) {
3137 {
3138 arg8 = &temp8;
3139 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3140 }
3141 }
3142 {
3143 PyThreadState* __tstate = wxPyBeginAllowThreads();
3144 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3145
3146 wxPyEndAllowThreads(__tstate);
3147 if (PyErr_Occurred()) SWIG_fail;
3148 }
3149 resultobj = PyInt_FromLong((long)result);
3150 {
3151 if (temp1)
3152 delete arg1;
3153 }
3154 {
3155 if (temp2)
3156 delete arg2;
3157 }
3158 {
3159 if (temp3)
3160 delete arg3;
3161 }
3162 return resultobj;
3163 fail:
3164 {
3165 if (temp1)
3166 delete arg1;
3167 }
3168 {
3169 if (temp2)
3170 delete arg2;
3171 }
3172 {
3173 if (temp3)
3174 delete arg3;
3175 }
3176 return NULL;
3177}
3178
3179
3180static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3181 PyObject *resultobj;
3182 bool result;
3183 char *kwnames[] = {
3184 NULL
3185 };
3186
3187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3188 {
3189 PyThreadState* __tstate = wxPyBeginAllowThreads();
3190 result = (bool)wxColourDisplay();
3191
3192 wxPyEndAllowThreads(__tstate);
3193 if (PyErr_Occurred()) SWIG_fail;
3194 }
3195 resultobj = PyInt_FromLong((long)result);
3196 return resultobj;
3197 fail:
3198 return NULL;
3199}
3200
3201
3202static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3203 PyObject *resultobj;
3204 int result;
3205 char *kwnames[] = {
3206 NULL
3207 };
3208
3209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3210 {
3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
3212 result = (int)wxDisplayDepth();
3213
3214 wxPyEndAllowThreads(__tstate);
3215 if (PyErr_Occurred()) SWIG_fail;
3216 }
3217 resultobj = PyInt_FromLong((long)result);
3218 return resultobj;
3219 fail:
3220 return NULL;
3221}
3222
3223
3224static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3225 PyObject *resultobj;
3226 int result;
3227 char *kwnames[] = {
3228 NULL
3229 };
3230
3231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3232 {
3233 PyThreadState* __tstate = wxPyBeginAllowThreads();
3234 result = (int)wxGetDisplayDepth();
3235
3236 wxPyEndAllowThreads(__tstate);
3237 if (PyErr_Occurred()) SWIG_fail;
3238 }
3239 resultobj = PyInt_FromLong((long)result);
3240 return resultobj;
3241 fail:
3242 return NULL;
3243}
3244
3245
3246static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3247 PyObject *resultobj;
3248 int *arg1 = (int *) 0 ;
3249 int *arg2 = (int *) 0 ;
3250 int temp1 ;
3251 int temp2 ;
3252 char *kwnames[] = {
3253 NULL
3254 };
3255
3256 arg1 = &temp1;
3257 arg2 = &temp2;
3258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3259 {
3260 PyThreadState* __tstate = wxPyBeginAllowThreads();
3261 wxDisplaySize(arg1,arg2);
3262
3263 wxPyEndAllowThreads(__tstate);
3264 if (PyErr_Occurred()) SWIG_fail;
3265 }
3266 Py_INCREF(Py_None); resultobj = Py_None;
3267 {
3268 PyObject *o = PyInt_FromLong((long) (*arg1));
3269 resultobj = t_output_helper(resultobj,o);
3270 }
3271 {
3272 PyObject *o = PyInt_FromLong((long) (*arg2));
3273 resultobj = t_output_helper(resultobj,o);
3274 }
3275 return resultobj;
3276 fail:
3277 return NULL;
3278}
3279
3280
3281static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject *resultobj;
3283 wxSize result;
3284 char *kwnames[] = {
3285 NULL
3286 };
3287
3288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3289 {
3290 PyThreadState* __tstate = wxPyBeginAllowThreads();
3291 result = wxGetDisplaySize();
3292
3293 wxPyEndAllowThreads(__tstate);
3294 if (PyErr_Occurred()) SWIG_fail;
3295 }
3296 {
3297 wxSize * resultptr;
3298 resultptr = new wxSize((wxSize &) result);
3299 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
3300 }
3301 return resultobj;
3302 fail:
3303 return NULL;
3304}
3305
3306
3307static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3308 PyObject *resultobj;
3309 int *arg1 = (int *) 0 ;
3310 int *arg2 = (int *) 0 ;
3311 int temp1 ;
3312 int temp2 ;
3313 char *kwnames[] = {
3314 NULL
3315 };
3316
3317 arg1 = &temp1;
3318 arg2 = &temp2;
3319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3320 {
3321 PyThreadState* __tstate = wxPyBeginAllowThreads();
3322 wxDisplaySizeMM(arg1,arg2);
3323
3324 wxPyEndAllowThreads(__tstate);
3325 if (PyErr_Occurred()) SWIG_fail;
3326 }
3327 Py_INCREF(Py_None); resultobj = Py_None;
3328 {
3329 PyObject *o = PyInt_FromLong((long) (*arg1));
3330 resultobj = t_output_helper(resultobj,o);
3331 }
3332 {
3333 PyObject *o = PyInt_FromLong((long) (*arg2));
3334 resultobj = t_output_helper(resultobj,o);
3335 }
3336 return resultobj;
3337 fail:
3338 return NULL;
3339}
3340
3341
3342static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3343 PyObject *resultobj;
3344 wxSize result;
3345 char *kwnames[] = {
3346 NULL
3347 };
3348
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3350 {
3351 PyThreadState* __tstate = wxPyBeginAllowThreads();
3352 result = wxGetDisplaySizeMM();
3353
3354 wxPyEndAllowThreads(__tstate);
3355 if (PyErr_Occurred()) SWIG_fail;
3356 }
3357 {
3358 wxSize * resultptr;
3359 resultptr = new wxSize((wxSize &) result);
3360 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
3361 }
3362 return resultobj;
3363 fail:
3364 return NULL;
3365}
3366
3367
3368static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3369 PyObject *resultobj;
3370 int *arg1 = (int *) 0 ;
3371 int *arg2 = (int *) 0 ;
3372 int *arg3 = (int *) 0 ;
3373 int *arg4 = (int *) 0 ;
3374 int temp1 ;
3375 int temp2 ;
3376 int temp3 ;
3377 int temp4 ;
3378 char *kwnames[] = {
3379 NULL
3380 };
3381
3382 arg1 = &temp1;
3383 arg2 = &temp2;
3384 arg3 = &temp3;
3385 arg4 = &temp4;
3386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3387 {
3388 PyThreadState* __tstate = wxPyBeginAllowThreads();
3389 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3390
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
3394 Py_INCREF(Py_None); resultobj = Py_None;
3395 {
3396 PyObject *o = PyInt_FromLong((long) (*arg1));
3397 resultobj = t_output_helper(resultobj,o);
3398 }
3399 {
3400 PyObject *o = PyInt_FromLong((long) (*arg2));
3401 resultobj = t_output_helper(resultobj,o);
3402 }
3403 {
3404 PyObject *o = PyInt_FromLong((long) (*arg3));
3405 resultobj = t_output_helper(resultobj,o);
3406 }
3407 {
3408 PyObject *o = PyInt_FromLong((long) (*arg4));
3409 resultobj = t_output_helper(resultobj,o);
3410 }
3411 return resultobj;
3412 fail:
3413 return NULL;
3414}
3415
3416
3417static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3418 PyObject *resultobj;
3419 wxRect result;
3420 char *kwnames[] = {
3421 NULL
3422 };
3423
3424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3425 {
3426 PyThreadState* __tstate = wxPyBeginAllowThreads();
3427 result = wxGetClientDisplayRect();
3428
3429 wxPyEndAllowThreads(__tstate);
3430 if (PyErr_Occurred()) SWIG_fail;
3431 }
3432 {
3433 wxRect * resultptr;
3434 resultptr = new wxRect((wxRect &) result);
3435 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
3436 }
3437 return resultobj;
3438 fail:
3439 return NULL;
3440}
3441
3442
3443static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3444 PyObject *resultobj;
3445 wxCursor *arg1 = 0 ;
3446 PyObject * obj0 = 0 ;
3447 char *kwnames[] = {
3448 (char *) "cursor", NULL
3449 };
3450
3451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3453 if (arg1 == NULL) {
3454 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3455 }
3456 {
3457 PyThreadState* __tstate = wxPyBeginAllowThreads();
3458 wxSetCursor(*arg1);
3459
3460 wxPyEndAllowThreads(__tstate);
3461 if (PyErr_Occurred()) SWIG_fail;
3462 }
3463 Py_INCREF(Py_None); resultobj = Py_None;
3464 return resultobj;
3465 fail:
3466 return NULL;
3467}
3468
3469
3470static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3471 PyObject *resultobj;
3472 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3473 PyObject * obj0 = 0 ;
3474 char *kwnames[] = {
3475 (char *) "cursor", NULL
3476 };
3477
3478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
3479 if (obj0) {
3480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3481 }
3482 {
3483 PyThreadState* __tstate = wxPyBeginAllowThreads();
3484 wxBeginBusyCursor(arg1);
3485
3486 wxPyEndAllowThreads(__tstate);
3487 if (PyErr_Occurred()) SWIG_fail;
3488 }
3489 Py_INCREF(Py_None); resultobj = Py_None;
3490 return resultobj;
3491 fail:
3492 return NULL;
3493}
3494
3495
3496static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject *resultobj;
3498 wxWindow *result;
3499 char *kwnames[] = {
3500 NULL
3501 };
3502
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
3504 {
3505 PyThreadState* __tstate = wxPyBeginAllowThreads();
3506 result = (wxWindow *)wxGetActiveWindow();
3507
3508 wxPyEndAllowThreads(__tstate);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 {
3512 resultobj = wxPyMake_wxObject(result);
3513 }
3514 return resultobj;
3515 fail:
3516 return NULL;
3517}
3518
3519
3520static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3521 PyObject *resultobj;
3522 wxPoint *arg1 = 0 ;
3523 wxWindow *result;
3524 wxPoint temp1 ;
3525 PyObject * obj0 = 0 ;
3526 char *kwnames[] = {
3527 (char *) "pt", NULL
3528 };
3529
3530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
3531 {
3532 arg1 = &temp1;
3533 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3534 }
3535 {
3536 PyThreadState* __tstate = wxPyBeginAllowThreads();
3537 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
3538
3539 wxPyEndAllowThreads(__tstate);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 {
3543 resultobj = wxPyMake_wxObject(result);
3544 }
3545 return resultobj;
3546 fail:
3547 return NULL;
3548}
3549
3550
3551static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3552 PyObject *resultobj;
3553 wxPoint *arg1 = 0 ;
3554 wxWindow *result;
3555 wxPoint temp1 ;
3556 PyObject * obj0 = 0 ;
3557 char *kwnames[] = {
3558 (char *) "pt", NULL
3559 };
3560
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
3562 {
3563 arg1 = &temp1;
3564 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3565 }
3566 {
3567 PyThreadState* __tstate = wxPyBeginAllowThreads();
3568 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
3569
3570 wxPyEndAllowThreads(__tstate);
3571 if (PyErr_Occurred()) SWIG_fail;
3572 }
3573 {
3574 resultobj = wxPyMake_wxObject(result);
3575 }
3576 return resultobj;
3577 fail:
3578 return NULL;
3579}
3580
3581
3582static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3583 PyObject *resultobj;
3584 wxWindow *arg1 = (wxWindow *) 0 ;
3585 wxWindow *result;
3586 PyObject * obj0 = 0 ;
3587 char *kwnames[] = {
3588 (char *) "win", NULL
3589 };
3590
3591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
3592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3593 {
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (wxWindow *)wxGetTopLevelParent(arg1);
3596
3597 wxPyEndAllowThreads(__tstate);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 {
3601 resultobj = wxPyMake_wxObject(result);
3602 }
3603 return resultobj;
3604 fail:
3605 return NULL;
3606}
3607
3608
3609static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
3610 PyObject *resultobj;
3611 char *kwnames[] = {
3612 NULL
3613 };
3614
3615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 wxWakeUpMainThread();
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 Py_INCREF(Py_None); resultobj = Py_None;
3624 return resultobj;
3625 fail:
3626 return NULL;
3627}
3628
3629
3630static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
3631 PyObject *resultobj;
3632 char *kwnames[] = {
3633 NULL
3634 };
3635
3636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
3637 {
3638 PyThreadState* __tstate = wxPyBeginAllowThreads();
3639 wxMutexGuiEnter();
3640
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) SWIG_fail;
3643 }
3644 Py_INCREF(Py_None); resultobj = Py_None;
3645 return resultobj;
3646 fail:
3647 return NULL;
3648}
3649
3650
3651static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
3652 PyObject *resultobj;
3653 char *kwnames[] = {
3654 NULL
3655 };
3656
3657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
3658 {
3659 PyThreadState* __tstate = wxPyBeginAllowThreads();
3660 wxMutexGuiLeave();
3661
3662 wxPyEndAllowThreads(__tstate);
3663 if (PyErr_Occurred()) SWIG_fail;
3664 }
3665 Py_INCREF(Py_None); resultobj = Py_None;
3666 return resultobj;
3667 fail:
3668 return NULL;
3669}
3670
3671
3672static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
3673 PyObject *resultobj;
3674 wxMutexGuiLocker *result;
3675 char *kwnames[] = {
3676 NULL
3677 };
3678
3679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
3683
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1);
3688 return resultobj;
3689 fail:
3690 return NULL;
3691}
3692
3693
3694static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
3695 PyObject *resultobj;
3696 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
3697 PyObject * obj0 = 0 ;
3698 char *kwnames[] = {
3699 (char *) "self", NULL
3700 };
3701
3702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
3703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 delete arg1;
3707
3708 wxPyEndAllowThreads(__tstate);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 Py_INCREF(Py_None); resultobj = Py_None;
3712 return resultobj;
3713 fail:
3714 return NULL;
3715}
3716
3717
3718static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
3719 PyObject *obj;
3720 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3721 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
3722 Py_INCREF(obj);
3723 return Py_BuildValue((char *)"");
3724}
3725static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
3726 PyObject *resultobj;
3727 bool result;
3728 char *kwnames[] = {
3729 NULL
3730 };
3731
3732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
3733 {
3734 PyThreadState* __tstate = wxPyBeginAllowThreads();
3735 result = (bool)wxThread_IsMain();
3736
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) SWIG_fail;
3739 }
3740 resultobj = PyInt_FromLong((long)result);
3741 return resultobj;
3742 fail:
3743 return NULL;
3744}
3745
3746
3747static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3748 PyObject *resultobj;
3749 wxString *arg1 = 0 ;
3750 wxToolTip *result;
e811c8ce 3751 bool temp1 = False ;
d14a1e28
RD
3752 PyObject * obj0 = 0 ;
3753 char *kwnames[] = {
3754 (char *) "tip", NULL
3755 };
3756
3757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
3758 {
3759 arg1 = wxString_in_helper(obj0);
3760 if (arg1 == NULL) SWIG_fail;
e811c8ce 3761 temp1 = True;
d14a1e28
RD
3762 }
3763 {
3764 PyThreadState* __tstate = wxPyBeginAllowThreads();
3765 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
3766
3767 wxPyEndAllowThreads(__tstate);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 }
3770 {
3771 resultobj = wxPyMake_wxObject(result);
3772 }
3773 {
3774 if (temp1)
3775 delete arg1;
3776 }
3777 return resultobj;
3778 fail:
3779 {
3780 if (temp1)
3781 delete arg1;
3782 }
3783 return NULL;
3784}
3785
3786
3787static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3788 PyObject *resultobj;
3789 wxToolTip *arg1 = (wxToolTip *) 0 ;
3790 wxString *arg2 = 0 ;
e811c8ce 3791 bool temp2 = False ;
d14a1e28
RD
3792 PyObject * obj0 = 0 ;
3793 PyObject * obj1 = 0 ;
3794 char *kwnames[] = {
3795 (char *) "self",(char *) "tip", NULL
3796 };
3797
3798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
3799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3800 {
3801 arg2 = wxString_in_helper(obj1);
3802 if (arg2 == NULL) SWIG_fail;
e811c8ce 3803 temp2 = True;
d14a1e28
RD
3804 }
3805 {
3806 PyThreadState* __tstate = wxPyBeginAllowThreads();
3807 (arg1)->SetTip((wxString const &)*arg2);
3808
3809 wxPyEndAllowThreads(__tstate);
3810 if (PyErr_Occurred()) SWIG_fail;
3811 }
3812 Py_INCREF(Py_None); resultobj = Py_None;
3813 {
3814 if (temp2)
3815 delete arg2;
3816 }
3817 return resultobj;
3818 fail:
3819 {
3820 if (temp2)
3821 delete arg2;
3822 }
3823 return NULL;
3824}
3825
3826
3827static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3828 PyObject *resultobj;
3829 wxToolTip *arg1 = (wxToolTip *) 0 ;
3830 wxString result;
3831 PyObject * obj0 = 0 ;
3832 char *kwnames[] = {
3833 (char *) "self", NULL
3834 };
3835
3836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
3837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3838 {
3839 PyThreadState* __tstate = wxPyBeginAllowThreads();
3840 result = (arg1)->GetTip();
3841
3842 wxPyEndAllowThreads(__tstate);
3843 if (PyErr_Occurred()) SWIG_fail;
3844 }
3845 {
3846#if wxUSE_UNICODE
3847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3848#else
3849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3850#endif
3851 }
3852 return resultobj;
3853 fail:
3854 return NULL;
3855}
3856
3857
3858static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3859 PyObject *resultobj;
3860 wxToolTip *arg1 = (wxToolTip *) 0 ;
3861 wxWindow *result;
3862 PyObject * obj0 = 0 ;
3863 char *kwnames[] = {
3864 (char *) "self", NULL
3865 };
3866
3867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
3868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3869 {
3870 PyThreadState* __tstate = wxPyBeginAllowThreads();
3871 result = (wxWindow *)(arg1)->GetWindow();
3872
3873 wxPyEndAllowThreads(__tstate);
3874 if (PyErr_Occurred()) SWIG_fail;
3875 }
3876 {
3877 resultobj = wxPyMake_wxObject(result);
3878 }
3879 return resultobj;
3880 fail:
3881 return NULL;
3882}
3883
3884
3885static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
3886 PyObject *resultobj;
3887 bool arg1 ;
3888 PyObject * obj0 = 0 ;
3889 char *kwnames[] = {
3890 (char *) "flag", NULL
3891 };
3892
3893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
3894 arg1 = PyInt_AsLong(obj0) ? true : false;
3895 if (PyErr_Occurred()) SWIG_fail;
3896 {
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 wxToolTip::Enable(arg1);
3899
3900 wxPyEndAllowThreads(__tstate);
3901 if (PyErr_Occurred()) SWIG_fail;
3902 }
3903 Py_INCREF(Py_None); resultobj = Py_None;
3904 return resultobj;
3905 fail:
3906 return NULL;
3907}
3908
3909
3910static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
3911 PyObject *resultobj;
3912 long arg1 ;
3913 char *kwnames[] = {
3914 (char *) "milliseconds", NULL
3915 };
3916
3917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:ToolTip_SetDelay",kwnames,&arg1)) goto fail;
3918 {
3919 PyThreadState* __tstate = wxPyBeginAllowThreads();
3920 wxToolTip::SetDelay(arg1);
3921
3922 wxPyEndAllowThreads(__tstate);
3923 if (PyErr_Occurred()) SWIG_fail;
3924 }
3925 Py_INCREF(Py_None); resultobj = Py_None;
3926 return resultobj;
3927 fail:
3928 return NULL;
3929}
3930
3931
3932static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
3933 PyObject *obj;
3934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3935 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
3936 Py_INCREF(obj);
3937 return Py_BuildValue((char *)"");
3938}
3939static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
3940 PyObject *resultobj;
3941 wxWindow *arg1 = (wxWindow *) 0 ;
3942 wxSize *arg2 = 0 ;
3943 wxCaret *result;
3944 wxSize temp2 ;
3945 PyObject * obj0 = 0 ;
3946 PyObject * obj1 = 0 ;
3947 char *kwnames[] = {
3948 (char *) "window",(char *) "size", NULL
3949 };
3950
3951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
3952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3953 {
3954 arg2 = &temp2;
3955 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3956 }
3957 {
3958 PyThreadState* __tstate = wxPyBeginAllowThreads();
3959 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
3960
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
3964 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1);
3965 return resultobj;
3966 fail:
3967 return NULL;
3968}
3969
3970
3971static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
3972 PyObject *resultobj;
3973 wxCaret *arg1 = (wxCaret *) 0 ;
3974 PyObject * obj0 = 0 ;
3975 char *kwnames[] = {
3976 (char *) "self", NULL
3977 };
3978
3979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
3980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3981 {
3982 PyThreadState* __tstate = wxPyBeginAllowThreads();
3983 delete arg1;
3984
3985 wxPyEndAllowThreads(__tstate);
3986 if (PyErr_Occurred()) SWIG_fail;
3987 }
3988 Py_INCREF(Py_None); resultobj = Py_None;
3989 return resultobj;
3990 fail:
3991 return NULL;
3992}
3993
3994
3995static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3996 PyObject *resultobj;
3997 wxCaret *arg1 = (wxCaret *) 0 ;
3998 bool result;
3999 PyObject * obj0 = 0 ;
4000 char *kwnames[] = {
4001 (char *) "self", NULL
4002 };
4003
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 result = (bool)(arg1)->IsOk();
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 resultobj = PyInt_FromLong((long)result);
4014 return resultobj;
4015 fail:
4016 return NULL;
4017}
4018
4019
4020static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4021 PyObject *resultobj;
4022 wxCaret *arg1 = (wxCaret *) 0 ;
4023 bool result;
4024 PyObject * obj0 = 0 ;
4025 char *kwnames[] = {
4026 (char *) "self", NULL
4027 };
4028
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (bool)(arg1)->IsVisible();
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 resultobj = PyInt_FromLong((long)result);
4039 return resultobj;
4040 fail:
4041 return NULL;
4042}
4043
4044
322913ce
RD
4045static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj;
4047 wxCaret *arg1 = (wxCaret *) 0 ;
4048 wxPoint result;
4049 PyObject * obj0 = 0 ;
4050 char *kwnames[] = {
4051 (char *) "self", NULL
4052 };
4053
4054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4056 {
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (arg1)->GetPosition();
4059
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 {
4064 wxPoint * resultptr;
4065 resultptr = new wxPoint((wxPoint &) result);
4066 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
4067 }
4068 return resultobj;
4069 fail:
4070 return NULL;
4071}
4072
4073
d14a1e28
RD
4074static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4075 PyObject *resultobj;
4076 wxCaret *arg1 = (wxCaret *) 0 ;
4077 int *arg2 = (int *) 0 ;
4078 int *arg3 = (int *) 0 ;
4079 int temp2 ;
4080 int temp3 ;
4081 PyObject * obj0 = 0 ;
4082 char *kwnames[] = {
4083 (char *) "self", NULL
4084 };
4085
4086 arg2 = &temp2;
4087 arg3 = &temp3;
4088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 (arg1)->GetPosition(arg2,arg3);
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 Py_INCREF(Py_None); resultobj = Py_None;
4098 {
4099 PyObject *o = PyInt_FromLong((long) (*arg2));
4100 resultobj = t_output_helper(resultobj,o);
4101 }
4102 {
4103 PyObject *o = PyInt_FromLong((long) (*arg3));
4104 resultobj = t_output_helper(resultobj,o);
4105 }
4106 return resultobj;
4107 fail:
4108 return NULL;
4109}
4110
4111
322913ce 4112static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4113 PyObject *resultobj;
4114 wxCaret *arg1 = (wxCaret *) 0 ;
322913ce 4115 wxSize result;
d14a1e28
RD
4116 PyObject * obj0 = 0 ;
4117 char *kwnames[] = {
4118 (char *) "self", NULL
4119 };
4120
322913ce 4121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
d14a1e28
RD
4122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 4125 result = (arg1)->GetSize();
d14a1e28
RD
4126
4127 wxPyEndAllowThreads(__tstate);
4128 if (PyErr_Occurred()) SWIG_fail;
4129 }
4130 {
322913ce
RD
4131 wxSize * resultptr;
4132 resultptr = new wxSize((wxSize &) result);
4133 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
4134 }
4135 return resultobj;
4136 fail:
4137 return NULL;
4138}
4139
4140
4141static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 wxCaret *arg1 = (wxCaret *) 0 ;
4144 int *arg2 = (int *) 0 ;
4145 int *arg3 = (int *) 0 ;
4146 int temp2 ;
4147 int temp3 ;
4148 PyObject * obj0 = 0 ;
4149 char *kwnames[] = {
4150 (char *) "self", NULL
4151 };
4152
4153 arg2 = &temp2;
4154 arg3 = &temp3;
4155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 (arg1)->GetSize(arg2,arg3);
4160
4161 wxPyEndAllowThreads(__tstate);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 }
4164 Py_INCREF(Py_None); resultobj = Py_None;
4165 {
4166 PyObject *o = PyInt_FromLong((long) (*arg2));
4167 resultobj = t_output_helper(resultobj,o);
4168 }
4169 {
4170 PyObject *o = PyInt_FromLong((long) (*arg3));
4171 resultobj = t_output_helper(resultobj,o);
4172 }
4173 return resultobj;
4174 fail:
4175 return NULL;
4176}
4177
4178
d14a1e28
RD
4179static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4180 PyObject *resultobj;
4181 wxCaret *arg1 = (wxCaret *) 0 ;
4182 wxWindow *result;
4183 PyObject * obj0 = 0 ;
4184 char *kwnames[] = {
4185 (char *) "self", NULL
4186 };
4187
4188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 result = (wxWindow *)(arg1)->GetWindow();
4193
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) SWIG_fail;
4196 }
4197 {
4198 resultobj = wxPyMake_wxObject(result);
4199 }
4200 return resultobj;
4201 fail:
4202 return NULL;
4203}
4204
4205
4206static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4207 PyObject *resultobj;
4208 wxCaret *arg1 = (wxCaret *) 0 ;
4209 int arg2 ;
4210 int arg3 ;
4211 PyObject * obj0 = 0 ;
4212 char *kwnames[] = {
4213 (char *) "self",(char *) "x",(char *) "y", NULL
4214 };
4215
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_MoveXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
4217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 (arg1)->Move(arg2,arg3);
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 Py_INCREF(Py_None); resultobj = Py_None;
4226 return resultobj;
4227 fail:
4228 return NULL;
4229}
4230
4231
4232static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj;
4234 wxCaret *arg1 = (wxCaret *) 0 ;
4235 wxPoint *arg2 = 0 ;
4236 wxPoint temp2 ;
4237 PyObject * obj0 = 0 ;
4238 PyObject * obj1 = 0 ;
4239 char *kwnames[] = {
4240 (char *) "self",(char *) "pt", NULL
4241 };
4242
4243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4245 {
4246 arg2 = &temp2;
4247 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4248 }
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 (arg1)->Move((wxPoint const &)*arg2);
4252
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 Py_INCREF(Py_None); resultobj = Py_None;
4257 return resultobj;
4258 fail:
4259 return NULL;
4260}
4261
4262
4263static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj;
4265 wxCaret *arg1 = (wxCaret *) 0 ;
4266 int arg2 ;
4267 int arg3 ;
4268 PyObject * obj0 = 0 ;
4269 char *kwnames[] = {
4270 (char *) "self",(char *) "width",(char *) "height", NULL
4271 };
4272
4273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail;
4274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4275 {
4276 PyThreadState* __tstate = wxPyBeginAllowThreads();
4277 (arg1)->SetSize(arg2,arg3);
4278
4279 wxPyEndAllowThreads(__tstate);
4280 if (PyErr_Occurred()) SWIG_fail;
4281 }
4282 Py_INCREF(Py_None); resultobj = Py_None;
4283 return resultobj;
4284 fail:
4285 return NULL;
4286}
4287
4288
4289static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4290 PyObject *resultobj;
4291 wxCaret *arg1 = (wxCaret *) 0 ;
4292 wxSize *arg2 = 0 ;
4293 wxSize temp2 ;
4294 PyObject * obj0 = 0 ;
4295 PyObject * obj1 = 0 ;
4296 char *kwnames[] = {
4297 (char *) "self",(char *) "size", NULL
4298 };
4299
4300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4302 {
4303 arg2 = &temp2;
4304 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4305 }
4306 {
4307 PyThreadState* __tstate = wxPyBeginAllowThreads();
4308 (arg1)->SetSize((wxSize const &)*arg2);
4309
4310 wxPyEndAllowThreads(__tstate);
4311 if (PyErr_Occurred()) SWIG_fail;
4312 }
4313 Py_INCREF(Py_None); resultobj = Py_None;
4314 return resultobj;
4315 fail:
4316 return NULL;
4317}
4318
4319
4320static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4321 PyObject *resultobj;
4322 wxCaret *arg1 = (wxCaret *) 0 ;
e811c8ce 4323 int arg2 = (int) True ;
d14a1e28
RD
4324 PyObject * obj0 = 0 ;
4325 char *kwnames[] = {
4326 (char *) "self",(char *) "show", NULL
4327 };
4328
4329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Caret_Show",kwnames,&obj0,&arg2)) goto fail;
4330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 (arg1)->Show(arg2);
4334
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 Py_INCREF(Py_None); resultobj = Py_None;
4339 return resultobj;
4340 fail:
4341 return NULL;
4342}
4343
4344
4345static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj;
4347 wxCaret *arg1 = (wxCaret *) 0 ;
4348 PyObject * obj0 = 0 ;
4349 char *kwnames[] = {
4350 (char *) "self", NULL
4351 };
4352
4353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4355 {
4356 PyThreadState* __tstate = wxPyBeginAllowThreads();
4357 (arg1)->Hide();
4358
4359 wxPyEndAllowThreads(__tstate);
4360 if (PyErr_Occurred()) SWIG_fail;
4361 }
4362 Py_INCREF(Py_None); resultobj = Py_None;
4363 return resultobj;
4364 fail:
4365 return NULL;
4366}
4367
4368
4369static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
4370 PyObject *obj;
4371 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4372 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4373 Py_INCREF(obj);
4374 return Py_BuildValue((char *)"");
4375}
4376static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4377 PyObject *resultobj;
4378 int result;
4379 char *kwnames[] = {
4380 NULL
4381 };
4382
4383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4384 {
4385 PyThreadState* __tstate = wxPyBeginAllowThreads();
4386 result = (int)wxCaret_GetBlinkTime();
4387
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 resultobj = PyInt_FromLong((long)result);
4392 return resultobj;
4393 fail:
4394 return NULL;
4395}
4396
4397
4398static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4399 PyObject *resultobj;
4400 int arg1 ;
4401 char *kwnames[] = {
4402 (char *) "milliseconds", NULL
4403 };
4404
4405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Caret_SetBlinkTime",kwnames,&arg1)) goto fail;
4406 {
4407 PyThreadState* __tstate = wxPyBeginAllowThreads();
4408 wxCaret_SetBlinkTime(arg1);
4409
4410 wxPyEndAllowThreads(__tstate);
4411 if (PyErr_Occurred()) SWIG_fail;
4412 }
4413 Py_INCREF(Py_None); resultobj = Py_None;
4414 return resultobj;
4415 fail:
4416 return NULL;
4417}
4418
4419
4420static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4421 PyObject *resultobj;
4422 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4423 wxBusyCursor *result;
4424 PyObject * obj0 = 0 ;
4425 char *kwnames[] = {
4426 (char *) "cursor", NULL
4427 };
4428
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
4430 if (obj0) {
4431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4432 }
4433 {
4434 PyThreadState* __tstate = wxPyBeginAllowThreads();
4435 result = (wxBusyCursor *)new wxBusyCursor(arg1);
4436
4437 wxPyEndAllowThreads(__tstate);
4438 if (PyErr_Occurred()) SWIG_fail;
4439 }
4440 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1);
4441 return resultobj;
4442 fail:
4443 return NULL;
4444}
4445
4446
4447static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4448 PyObject *resultobj;
4449 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
4450 PyObject * obj0 = 0 ;
4451 char *kwnames[] = {
4452 (char *) "self", NULL
4453 };
4454
4455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
4456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4457 {
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 delete arg1;
4460
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 Py_INCREF(Py_None); resultobj = Py_None;
4465 return resultobj;
4466 fail:
4467 return NULL;
4468}
4469
4470
4471static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
4472 PyObject *obj;
4473 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4474 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
4475 Py_INCREF(obj);
4476 return Py_BuildValue((char *)"");
4477}
4478static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
4479 PyObject *resultobj;
4480 wxWindow *arg1 = (wxWindow *) NULL ;
4481 wxWindowDisabler *result;
4482 PyObject * obj0 = 0 ;
4483 char *kwnames[] = {
4484 (char *) "winToSkip", NULL
4485 };
4486
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
4488 if (obj0) {
4489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4490 }
4491 {
4492 PyThreadState* __tstate = wxPyBeginAllowThreads();
4493 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
4494
4495 wxPyEndAllowThreads(__tstate);
4496 if (PyErr_Occurred()) SWIG_fail;
4497 }
4498 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1);
4499 return resultobj;
4500 fail:
4501 return NULL;
4502}
4503
4504
4505static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
4506 PyObject *resultobj;
4507 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
4508 PyObject * obj0 = 0 ;
4509 char *kwnames[] = {
4510 (char *) "self", NULL
4511 };
4512
4513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
4514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4515 {
4516 PyThreadState* __tstate = wxPyBeginAllowThreads();
4517 delete arg1;
4518
4519 wxPyEndAllowThreads(__tstate);
4520 if (PyErr_Occurred()) SWIG_fail;
4521 }
4522 Py_INCREF(Py_None); resultobj = Py_None;
4523 return resultobj;
4524 fail:
4525 return NULL;
4526}
4527
4528
4529static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
4530 PyObject *obj;
4531 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4532 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
4533 Py_INCREF(obj);
4534 return Py_BuildValue((char *)"");
4535}
4536static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4537 PyObject *resultobj;
4538 wxString *arg1 = 0 ;
4539 wxBusyInfo *result;
e811c8ce 4540 bool temp1 = False ;
d14a1e28
RD
4541 PyObject * obj0 = 0 ;
4542 char *kwnames[] = {
4543 (char *) "message", NULL
4544 };
4545
4546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
4547 {
4548 arg1 = wxString_in_helper(obj0);
4549 if (arg1 == NULL) SWIG_fail;
e811c8ce 4550 temp1 = True;
d14a1e28
RD
4551 }
4552 {
4553 PyThreadState* __tstate = wxPyBeginAllowThreads();
4554 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
4555
4556 wxPyEndAllowThreads(__tstate);
4557 if (PyErr_Occurred()) SWIG_fail;
4558 }
4559 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1);
4560 {
4561 if (temp1)
4562 delete arg1;
4563 }
4564 return resultobj;
4565 fail:
4566 {
4567 if (temp1)
4568 delete arg1;
4569 }
4570 return NULL;
4571}
4572
4573
4574static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj;
4576 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
4577 PyObject * obj0 = 0 ;
4578 char *kwnames[] = {
4579 (char *) "self", NULL
4580 };
4581
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
4583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 delete arg1;
4587
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 Py_INCREF(Py_None); resultobj = Py_None;
4592 return resultobj;
4593 fail:
4594 return NULL;
4595}
4596
4597
4598static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
4599 PyObject *obj;
4600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4601 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
4602 Py_INCREF(obj);
4603 return Py_BuildValue((char *)"");
4604}
4605static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
4606 PyObject *resultobj;
4607 wxStopWatch *result;
4608 char *kwnames[] = {
4609 NULL
4610 };
4611
4612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
4613 {
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 result = (wxStopWatch *)new wxStopWatch();
4616
4617 wxPyEndAllowThreads(__tstate);
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1);
4621 return resultobj;
4622 fail:
4623 return NULL;
4624}
4625
4626
4627static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj;
4629 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
4630 long arg2 = (long) 0 ;
4631 PyObject * obj0 = 0 ;
4632 char *kwnames[] = {
4633 (char *) "self",(char *) "t0", NULL
4634 };
4635
4636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:StopWatch_Start",kwnames,&obj0,&arg2)) goto fail;
4637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4638 {
4639 PyThreadState* __tstate = wxPyBeginAllowThreads();
4640 (arg1)->Start(arg2);
4641
4642 wxPyEndAllowThreads(__tstate);
4643 if (PyErr_Occurred()) SWIG_fail;
4644 }
4645 Py_INCREF(Py_None); resultobj = Py_None;
4646 return resultobj;
4647 fail:
4648 return NULL;
4649}
4650
4651
4652static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
4653 PyObject *resultobj;
4654 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
4655 PyObject * obj0 = 0 ;
4656 char *kwnames[] = {
4657 (char *) "self", NULL
4658 };
4659
4660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
4661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 (arg1)->Pause();
4665
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 Py_INCREF(Py_None); resultobj = Py_None;
4670 return resultobj;
4671 fail:
4672 return NULL;
4673}
4674
4675
4676static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
4677 PyObject *resultobj;
4678 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
4679 PyObject * obj0 = 0 ;
4680 char *kwnames[] = {
4681 (char *) "self", NULL
4682 };
4683
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
4685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4686 {
4687 PyThreadState* __tstate = wxPyBeginAllowThreads();
4688 (arg1)->Resume();
4689
4690 wxPyEndAllowThreads(__tstate);
4691 if (PyErr_Occurred()) SWIG_fail;
4692 }
4693 Py_INCREF(Py_None); resultobj = Py_None;
4694 return resultobj;
4695 fail:
4696 return NULL;
4697}
4698
4699
4700static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
4701 PyObject *resultobj;
4702 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
4703 long result;
4704 PyObject * obj0 = 0 ;
4705 char *kwnames[] = {
4706 (char *) "self", NULL
4707 };
4708
4709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
4710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4711 {
4712 PyThreadState* __tstate = wxPyBeginAllowThreads();
4713 result = (long)((wxStopWatch const *)arg1)->Time();
4714
4715 wxPyEndAllowThreads(__tstate);
4716 if (PyErr_Occurred()) SWIG_fail;
4717 }
4718 resultobj = PyInt_FromLong((long)result);
4719 return resultobj;
4720 fail:
4721 return NULL;
4722}
4723
4724
4725static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
4726 PyObject *obj;
4727 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4728 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
4729 Py_INCREF(obj);
4730 return Py_BuildValue((char *)"");
4731}
4732static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
4733 PyObject *resultobj;
4734 int arg1 = (int) 9 ;
4735 wxFileHistory *result;
4736 char *kwnames[] = {
4737 (char *) "maxFiles", NULL
4738 };
4739
4740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_FileHistory",kwnames,&arg1)) goto fail;
4741 {
4742 PyThreadState* __tstate = wxPyBeginAllowThreads();
4743 result = (wxFileHistory *)new wxFileHistory(arg1);
4744
4745 wxPyEndAllowThreads(__tstate);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1);
4749 return resultobj;
4750 fail:
4751 return NULL;
4752}
4753
4754
4755static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
4756 PyObject *resultobj;
4757 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4758 PyObject * obj0 = 0 ;
4759 char *kwnames[] = {
4760 (char *) "self", NULL
4761 };
4762
4763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
4764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4765 {
4766 PyThreadState* __tstate = wxPyBeginAllowThreads();
4767 delete arg1;
4768
4769 wxPyEndAllowThreads(__tstate);
4770 if (PyErr_Occurred()) SWIG_fail;
4771 }
4772 Py_INCREF(Py_None); resultobj = Py_None;
4773 return resultobj;
4774 fail:
4775 return NULL;
4776}
4777
4778
4779static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
4780 PyObject *resultobj;
4781 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4782 wxString *arg2 = 0 ;
e811c8ce 4783 bool temp2 = False ;
d14a1e28
RD
4784 PyObject * obj0 = 0 ;
4785 PyObject * obj1 = 0 ;
4786 char *kwnames[] = {
4787 (char *) "self",(char *) "file", NULL
4788 };
4789
4790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
4791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4792 {
4793 arg2 = wxString_in_helper(obj1);
4794 if (arg2 == NULL) SWIG_fail;
e811c8ce 4795 temp2 = True;
d14a1e28
RD
4796 }
4797 {
4798 PyThreadState* __tstate = wxPyBeginAllowThreads();
4799 (arg1)->AddFileToHistory((wxString const &)*arg2);
4800
4801 wxPyEndAllowThreads(__tstate);
4802 if (PyErr_Occurred()) SWIG_fail;
4803 }
4804 Py_INCREF(Py_None); resultobj = Py_None;
4805 {
4806 if (temp2)
4807 delete arg2;
4808 }
4809 return resultobj;
4810 fail:
4811 {
4812 if (temp2)
4813 delete arg2;
4814 }
4815 return NULL;
4816}
4817
4818
4819static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
4820 PyObject *resultobj;
4821 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4822 int arg2 ;
4823 PyObject * obj0 = 0 ;
4824 char *kwnames[] = {
4825 (char *) "self",(char *) "i", NULL
4826 };
4827
4828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&arg2)) goto fail;
4829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4830 {
4831 PyThreadState* __tstate = wxPyBeginAllowThreads();
4832 (arg1)->RemoveFileFromHistory(arg2);
4833
4834 wxPyEndAllowThreads(__tstate);
4835 if (PyErr_Occurred()) SWIG_fail;
4836 }
4837 Py_INCREF(Py_None); resultobj = Py_None;
4838 return resultobj;
4839 fail:
4840 return NULL;
4841}
4842
4843
4844static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
4845 PyObject *resultobj;
4846 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4847 int result;
4848 PyObject * obj0 = 0 ;
4849 char *kwnames[] = {
4850 (char *) "self", NULL
4851 };
4852
4853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
4854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4855 {
4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
4857 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
4858
4859 wxPyEndAllowThreads(__tstate);
4860 if (PyErr_Occurred()) SWIG_fail;
4861 }
4862 resultobj = PyInt_FromLong((long)result);
4863 return resultobj;
4864 fail:
4865 return NULL;
4866}
4867
4868
4869static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
4870 PyObject *resultobj;
4871 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4872 wxMenu *arg2 = (wxMenu *) 0 ;
4873 PyObject * obj0 = 0 ;
4874 PyObject * obj1 = 0 ;
4875 char *kwnames[] = {
4876 (char *) "self",(char *) "menu", NULL
4877 };
4878
4879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
4880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4881 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4882 {
4883 PyThreadState* __tstate = wxPyBeginAllowThreads();
4884 (arg1)->UseMenu(arg2);
4885
4886 wxPyEndAllowThreads(__tstate);
4887 if (PyErr_Occurred()) SWIG_fail;
4888 }
4889 Py_INCREF(Py_None); resultobj = Py_None;
4890 return resultobj;
4891 fail:
4892 return NULL;
4893}
4894
4895
4896static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj;
4898 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4899 wxMenu *arg2 = (wxMenu *) 0 ;
4900 PyObject * obj0 = 0 ;
4901 PyObject * obj1 = 0 ;
4902 char *kwnames[] = {
4903 (char *) "self",(char *) "menu", NULL
4904 };
4905
4906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
4907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4908 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4909 {
4910 PyThreadState* __tstate = wxPyBeginAllowThreads();
4911 (arg1)->RemoveMenu(arg2);
4912
4913 wxPyEndAllowThreads(__tstate);
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 Py_INCREF(Py_None); resultobj = Py_None;
4917 return resultobj;
4918 fail:
4919 return NULL;
4920}
4921
4922
4923static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
4924 PyObject *resultobj;
4925 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4926 wxConfigBase *arg2 = 0 ;
4927 PyObject * obj0 = 0 ;
4928 PyObject * obj1 = 0 ;
4929 char *kwnames[] = {
4930 (char *) "self",(char *) "config", NULL
4931 };
4932
4933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
4934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4935 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4936 if (arg2 == NULL) {
4937 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4938 }
4939 {
4940 PyThreadState* __tstate = wxPyBeginAllowThreads();
4941 (arg1)->Load(*arg2);
4942
4943 wxPyEndAllowThreads(__tstate);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 }
4946 Py_INCREF(Py_None); resultobj = Py_None;
4947 return resultobj;
4948 fail:
4949 return NULL;
4950}
4951
4952
4953static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
4954 PyObject *resultobj;
4955 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4956 wxConfigBase *arg2 = 0 ;
4957 PyObject * obj0 = 0 ;
4958 PyObject * obj1 = 0 ;
4959 char *kwnames[] = {
4960 (char *) "self",(char *) "config", NULL
4961 };
4962
4963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
4964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4965 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4966 if (arg2 == NULL) {
4967 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4968 }
4969 {
4970 PyThreadState* __tstate = wxPyBeginAllowThreads();
4971 (arg1)->Save(*arg2);
4972
4973 wxPyEndAllowThreads(__tstate);
4974 if (PyErr_Occurred()) SWIG_fail;
4975 }
4976 Py_INCREF(Py_None); resultobj = Py_None;
4977 return resultobj;
4978 fail:
4979 return NULL;
4980}
4981
4982
4983static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
4984 PyObject *resultobj;
4985 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4986 PyObject * obj0 = 0 ;
4987 char *kwnames[] = {
4988 (char *) "self", NULL
4989 };
4990
4991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
4992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4993 {
4994 PyThreadState* __tstate = wxPyBeginAllowThreads();
4995 (arg1)->AddFilesToMenu();
4996
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 Py_INCREF(Py_None); resultobj = Py_None;
5001 return resultobj;
5002 fail:
5003 return NULL;
5004}
5005
5006
5007static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5008 PyObject *resultobj;
5009 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5010 wxMenu *arg2 = (wxMenu *) 0 ;
5011 PyObject * obj0 = 0 ;
5012 PyObject * obj1 = 0 ;
5013 char *kwnames[] = {
5014 (char *) "self",(char *) "menu", NULL
5015 };
5016
5017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5019 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5020 {
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 (arg1)->AddFilesToMenu(arg2);
5023
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 Py_INCREF(Py_None); resultobj = Py_None;
5028 return resultobj;
5029 fail:
5030 return NULL;
5031}
5032
5033
5034static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj;
5036 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5037 int arg2 ;
5038 wxString result;
5039 PyObject * obj0 = 0 ;
5040 char *kwnames[] = {
5041 (char *) "self",(char *) "i", NULL
5042 };
5043
5044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_GetHistoryFile",kwnames,&obj0,&arg2)) goto fail;
5045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5046 {
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5049
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 {
5054#if wxUSE_UNICODE
5055 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5056#else
5057 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5058#endif
5059 }
5060 return resultobj;
5061 fail:
5062 return NULL;
5063}
5064
5065
5066static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5067 PyObject *resultobj;
5068 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5069 int result;
5070 PyObject * obj0 = 0 ;
5071 char *kwnames[] = {
5072 (char *) "self", NULL
5073 };
5074
5075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5077 {
5078 PyThreadState* __tstate = wxPyBeginAllowThreads();
5079 result = (int)((wxFileHistory const *)arg1)->GetCount();
5080
5081 wxPyEndAllowThreads(__tstate);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 resultobj = PyInt_FromLong((long)result);
5085 return resultobj;
5086 fail:
5087 return NULL;
5088}
5089
5090
5091static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5092 PyObject *obj;
5093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5094 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5095 Py_INCREF(obj);
5096 return Py_BuildValue((char *)"");
5097}
5098static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5099 PyObject *resultobj;
5100 wxString *arg1 = 0 ;
5101 wxString const &arg2_defvalue = wxPyEmptyString ;
5102 wxString *arg2 = (wxString *) &arg2_defvalue ;
5103 wxSingleInstanceChecker *result;
e811c8ce
RD
5104 bool temp1 = False ;
5105 bool temp2 = False ;
d14a1e28
RD
5106 PyObject * obj0 = 0 ;
5107 PyObject * obj1 = 0 ;
5108 char *kwnames[] = {
5109 (char *) "name",(char *) "path", NULL
5110 };
5111
5112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5113 {
5114 arg1 = wxString_in_helper(obj0);
5115 if (arg1 == NULL) SWIG_fail;
e811c8ce 5116 temp1 = True;
d14a1e28
RD
5117 }
5118 if (obj1) {
5119 {
5120 arg2 = wxString_in_helper(obj1);
5121 if (arg2 == NULL) SWIG_fail;
e811c8ce 5122 temp2 = True;
d14a1e28
RD
5123 }
5124 }
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1);
5133 {
5134 if (temp1)
5135 delete arg1;
5136 }
5137 {
5138 if (temp2)
5139 delete arg2;
5140 }
5141 return resultobj;
5142 fail:
5143 {
5144 if (temp1)
5145 delete arg1;
5146 }
5147 {
5148 if (temp2)
5149 delete arg2;
5150 }
5151 return NULL;
5152}
5153
5154
5155static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5156 PyObject *resultobj;
5157 wxSingleInstanceChecker *result;
5158 char *kwnames[] = {
5159 NULL
5160 };
5161
5162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5163 {
5164 PyThreadState* __tstate = wxPyBeginAllowThreads();
5165 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5166
5167 wxPyEndAllowThreads(__tstate);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1);
5171 return resultobj;
5172 fail:
5173 return NULL;
5174}
5175
5176
5177static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5178 PyObject *resultobj;
5179 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5180 PyObject * obj0 = 0 ;
5181 char *kwnames[] = {
5182 (char *) "self", NULL
5183 };
5184
5185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 delete arg1;
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 Py_INCREF(Py_None); resultobj = Py_None;
5195 return resultobj;
5196 fail:
5197 return NULL;
5198}
5199
5200
5201static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5202 PyObject *resultobj;
5203 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5204 wxString *arg2 = 0 ;
5205 wxString const &arg3_defvalue = wxPyEmptyString ;
5206 wxString *arg3 = (wxString *) &arg3_defvalue ;
5207 bool result;
e811c8ce
RD
5208 bool temp2 = False ;
5209 bool temp3 = False ;
d14a1e28
RD
5210 PyObject * obj0 = 0 ;
5211 PyObject * obj1 = 0 ;
5212 PyObject * obj2 = 0 ;
5213 char *kwnames[] = {
5214 (char *) "self",(char *) "name",(char *) "path", NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5219 {
5220 arg2 = wxString_in_helper(obj1);
5221 if (arg2 == NULL) SWIG_fail;
e811c8ce 5222 temp2 = True;
d14a1e28
RD
5223 }
5224 if (obj2) {
5225 {
5226 arg3 = wxString_in_helper(obj2);
5227 if (arg3 == NULL) SWIG_fail;
e811c8ce 5228 temp3 = True;
d14a1e28
RD
5229 }
5230 }
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5234
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 resultobj = PyInt_FromLong((long)result);
5239 {
5240 if (temp2)
5241 delete arg2;
5242 }
5243 {
5244 if (temp3)
5245 delete arg3;
5246 }
5247 return resultobj;
5248 fail:
5249 {
5250 if (temp2)
5251 delete arg2;
5252 }
5253 {
5254 if (temp3)
5255 delete arg3;
5256 }
5257 return NULL;
5258}
5259
5260
5261static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject *resultobj;
5263 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5264 bool result;
5265 PyObject * obj0 = 0 ;
5266 char *kwnames[] = {
5267 (char *) "self", NULL
5268 };
5269
5270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5272 {
5273 PyThreadState* __tstate = wxPyBeginAllowThreads();
5274 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5275
5276 wxPyEndAllowThreads(__tstate);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 resultobj = PyInt_FromLong((long)result);
5280 return resultobj;
5281 fail:
5282 return NULL;
5283}
5284
5285
5286static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5287 PyObject *obj;
5288 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5289 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5290 Py_INCREF(obj);
5291 return Py_BuildValue((char *)"");
5292}
5293static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj;
5295 wxWindow *arg1 = (wxWindow *) 0 ;
5296 wxDC *arg2 = 0 ;
5297 int arg3 ;
5298 PyObject * obj0 = 0 ;
5299 PyObject * obj1 = 0 ;
5300 char *kwnames[] = {
5301 (char *) "window",(char *) "dc",(char *) "method", NULL
5302 };
5303
5304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DrawWindowOnDC",kwnames,&obj0,&obj1,&arg3)) goto fail;
5305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5306 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5307 if (arg2 == NULL) {
5308 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5309 }
5310 {
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5313
5314 wxPyEndAllowThreads(__tstate);
5315 if (PyErr_Occurred()) SWIG_fail;
5316 }
5317 Py_INCREF(Py_None); resultobj = Py_None;
5318 return resultobj;
5319 fail:
5320 return NULL;
5321}
5322
5323
5324static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5325 PyObject *resultobj;
5326 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5327 PyObject * obj0 = 0 ;
5328 char *kwnames[] = {
5329 (char *) "self", NULL
5330 };
5331
5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
5333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 delete arg1;
5337
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 Py_INCREF(Py_None); resultobj = Py_None;
5342 return resultobj;
5343 fail:
5344 return NULL;
5345}
5346
5347
5348static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5349 PyObject *resultobj;
5350 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5351 wxString result;
5352 PyObject * obj0 = 0 ;
5353 char *kwnames[] = {
5354 (char *) "self", NULL
5355 };
5356
5357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
5358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5359 {
5360 PyThreadState* __tstate = wxPyBeginAllowThreads();
5361 result = (arg1)->GetTip();
5362
5363 wxPyEndAllowThreads(__tstate);
5364 if (PyErr_Occurred()) SWIG_fail;
5365 }
5366 {
5367#if wxUSE_UNICODE
5368 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5369#else
5370 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5371#endif
5372 }
5373 return resultobj;
5374 fail:
5375 return NULL;
5376}
5377
5378
5379static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5380 PyObject *resultobj;
5381 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5382 size_t result;
5383 PyObject * obj0 = 0 ;
5384 char *kwnames[] = {
5385 (char *) "self", NULL
5386 };
5387
5388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
5389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5390 {
5391 PyThreadState* __tstate = wxPyBeginAllowThreads();
5392 result = (size_t)(arg1)->GetCurrentTip();
5393
5394 wxPyEndAllowThreads(__tstate);
5395 if (PyErr_Occurred()) SWIG_fail;
5396 }
5397 resultobj = PyInt_FromLong((long)result);
5398 return resultobj;
5399 fail:
5400 return NULL;
5401}
5402
5403
5404static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5405 PyObject *resultobj;
5406 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5407 wxString *arg2 = 0 ;
5408 wxString result;
e811c8ce 5409 bool temp2 = False ;
d14a1e28
RD
5410 PyObject * obj0 = 0 ;
5411 PyObject * obj1 = 0 ;
5412 char *kwnames[] = {
5413 (char *) "self",(char *) "tip", NULL
5414 };
5415
5416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
5417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5418 {
5419 arg2 = wxString_in_helper(obj1);
5420 if (arg2 == NULL) SWIG_fail;
e811c8ce 5421 temp2 = True;
d14a1e28
RD
5422 }
5423 {
5424 PyThreadState* __tstate = wxPyBeginAllowThreads();
5425 result = (arg1)->PreprocessTip((wxString const &)*arg2);
5426
5427 wxPyEndAllowThreads(__tstate);
5428 if (PyErr_Occurred()) SWIG_fail;
5429 }
5430 {
5431#if wxUSE_UNICODE
5432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5433#else
5434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5435#endif
5436 }
5437 {
5438 if (temp2)
5439 delete arg2;
5440 }
5441 return resultobj;
5442 fail:
5443 {
5444 if (temp2)
5445 delete arg2;
5446 }
5447 return NULL;
5448}
5449
5450
5451static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
5452 PyObject *obj;
5453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5454 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
5455 Py_INCREF(obj);
5456 return Py_BuildValue((char *)"");
5457}
5458static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5459 PyObject *resultobj;
5460 size_t arg1 ;
5461 wxPyTipProvider *result;
5462 PyObject * obj0 = 0 ;
5463 char *kwnames[] = {
5464 (char *) "currentTip", NULL
5465 };
5466
5467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
5468 arg1 = (size_t) PyInt_AsLong(obj0);
5469 if (PyErr_Occurred()) SWIG_fail;
5470 {
5471 PyThreadState* __tstate = wxPyBeginAllowThreads();
5472 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
5473
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1);
5478 return resultobj;
5479 fail:
5480 return NULL;
5481}
5482
5483
5484static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5485 PyObject *resultobj;
5486 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
5487 PyObject *arg2 = (PyObject *) 0 ;
5488 PyObject *arg3 = (PyObject *) 0 ;
5489 PyObject * obj0 = 0 ;
5490 PyObject * obj1 = 0 ;
5491 PyObject * obj2 = 0 ;
5492 char *kwnames[] = {
5493 (char *) "self",(char *) "self",(char *) "_class", NULL
5494 };
5495
5496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5498 arg2 = obj1;
5499 arg3 = obj2;
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 (arg1)->_setCallbackInfo(arg2,arg3);
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 Py_INCREF(Py_None); resultobj = Py_None;
5508 return resultobj;
5509 fail:
5510 return NULL;
5511}
5512
5513
5514static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
5515 PyObject *obj;
5516 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5517 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
5518 Py_INCREF(obj);
5519 return Py_BuildValue((char *)"");
5520}
5521static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5522 PyObject *resultobj;
5523 wxWindow *arg1 = (wxWindow *) 0 ;
5524 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
e811c8ce 5525 bool arg3 = (bool) True ;
d14a1e28
RD
5526 bool result;
5527 PyObject * obj0 = 0 ;
5528 PyObject * obj1 = 0 ;
5529 PyObject * obj2 = 0 ;
5530 char *kwnames[] = {
5531 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
5532 };
5533
5534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
5535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5536 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5537 if (obj2) {
5538 arg3 = PyInt_AsLong(obj2) ? true : false;
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 {
5542 PyThreadState* __tstate = wxPyBeginAllowThreads();
5543 result = (bool)wxShowTip(arg1,arg2,arg3);
5544
5545 wxPyEndAllowThreads(__tstate);
5546 if (PyErr_Occurred()) SWIG_fail;
5547 }
5548 resultobj = PyInt_FromLong((long)result);
5549 return resultobj;
5550 fail:
5551 return NULL;
5552}
5553
5554
5555static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5556 PyObject *resultobj;
5557 wxString *arg1 = 0 ;
5558 size_t arg2 ;
5559 wxTipProvider *result;
e811c8ce 5560 bool temp1 = False ;
d14a1e28
RD
5561 PyObject * obj0 = 0 ;
5562 PyObject * obj1 = 0 ;
5563 char *kwnames[] = {
5564 (char *) "filename",(char *) "currentTip", NULL
5565 };
5566
5567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
5568 {
5569 arg1 = wxString_in_helper(obj0);
5570 if (arg1 == NULL) SWIG_fail;
e811c8ce 5571 temp1 = True;
d14a1e28
RD
5572 }
5573 arg2 = (size_t) PyInt_AsLong(obj1);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
5578
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1);
5583 {
5584 if (temp1)
5585 delete arg1;
5586 }
5587 return resultobj;
5588 fail:
5589 {
5590 if (temp1)
5591 delete arg1;
5592 }
5593 return NULL;
5594}
5595
5596
5597static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj;
5599 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
5600 int arg2 = (int) -1 ;
5601 wxPyTimer *result;
5602 PyObject * obj0 = 0 ;
5603 char *kwnames[] = {
5604 (char *) "owner",(char *) "id", NULL
5605 };
5606
5607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Timer",kwnames,&obj0,&arg2)) goto fail;
5608 if (obj0) {
5609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5610 }
5611 {
5612 PyThreadState* __tstate = wxPyBeginAllowThreads();
5613 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
5614
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1);
5619 return resultobj;
5620 fail:
5621 return NULL;
5622}
5623
5624
5625static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj;
5627 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5628 PyObject * obj0 = 0 ;
5629 char *kwnames[] = {
5630 (char *) "self", NULL
5631 };
5632
5633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
5634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 delete arg1;
5638
5639 wxPyEndAllowThreads(__tstate);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 }
5642 Py_INCREF(Py_None); resultobj = Py_None;
5643 return resultobj;
5644 fail:
5645 return NULL;
5646}
5647
5648
7722248d
RD
5649static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5650 PyObject *resultobj;
5651 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5652 PyObject *arg2 = (PyObject *) 0 ;
5653 PyObject *arg3 = (PyObject *) 0 ;
5654 PyObject * obj0 = 0 ;
5655 PyObject * obj1 = 0 ;
5656 PyObject * obj2 = 0 ;
5657 char *kwnames[] = {
5658 (char *) "self",(char *) "self",(char *) "_class", NULL
5659 };
5660
5661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5663 arg2 = obj1;
5664 arg3 = obj2;
5665 {
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 (arg1)->_setCallbackInfo(arg2,arg3);
5668
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 Py_INCREF(Py_None); resultobj = Py_None;
5673 return resultobj;
5674 fail:
5675 return NULL;
5676}
5677
5678
d14a1e28
RD
5679static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
5680 PyObject *resultobj;
5681 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5682 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
5683 int arg3 = (int) -1 ;
5684 PyObject * obj0 = 0 ;
5685 PyObject * obj1 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "self",(char *) "owner",(char *) "id", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Timer_SetOwner",kwnames,&obj0,&obj1,&arg3)) goto fail;
5691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5692 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 (arg1)->SetOwner(arg2,arg3);
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 Py_INCREF(Py_None); resultobj = Py_None;
5701 return resultobj;
5702 fail:
5703 return NULL;
5704}
5705
5706
5707static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5708 PyObject *resultobj;
5709 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5710 int arg2 = (int) -1 ;
e811c8ce 5711 bool arg3 = (bool) False ;
d14a1e28
RD
5712 bool result;
5713 PyObject * obj0 = 0 ;
5714 PyObject * obj2 = 0 ;
5715 char *kwnames[] = {
5716 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
5717 };
5718
5719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Timer_Start",kwnames,&obj0,&arg2,&obj2)) goto fail;
5720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5721 if (obj2) {
5722 arg3 = PyInt_AsLong(obj2) ? true : false;
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 {
5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
5727 result = (bool)(arg1)->Start(arg2,arg3);
5728
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 resultobj = PyInt_FromLong((long)result);
5733 return resultobj;
5734 fail:
5735 return NULL;
5736}
5737
5738
5739static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
5740 PyObject *resultobj;
5741 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5742 PyObject * obj0 = 0 ;
5743 char *kwnames[] = {
5744 (char *) "self", NULL
5745 };
5746
5747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
5748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 (arg1)->Stop();
5752
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 Py_INCREF(Py_None); resultobj = Py_None;
5757 return resultobj;
5758 fail:
5759 return NULL;
5760}
5761
5762
d14a1e28
RD
5763static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5766 bool result;
5767 PyObject * obj0 = 0 ;
5768 char *kwnames[] = {
5769 (char *) "self", NULL
5770 };
5771
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
5773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 resultobj = PyInt_FromLong((long)result);
5782 return resultobj;
5783 fail:
5784 return NULL;
5785}
5786
5787
5788static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
5789 PyObject *resultobj;
5790 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5791 int result;
5792 PyObject * obj0 = 0 ;
5793 char *kwnames[] = {
5794 (char *) "self", NULL
5795 };
5796
5797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
5798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5799 {
5800 PyThreadState* __tstate = wxPyBeginAllowThreads();
5801 result = (int)((wxPyTimer const *)arg1)->GetInterval();
5802
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 resultobj = PyInt_FromLong((long)result);
5807 return resultobj;
5808 fail:
5809 return NULL;
5810}
5811
5812
5813static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj;
5815 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5816 bool result;
5817 PyObject * obj0 = 0 ;
5818 char *kwnames[] = {
5819 (char *) "self", NULL
5820 };
5821
5822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
5823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
5827
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 resultobj = PyInt_FromLong((long)result);
5832 return resultobj;
5833 fail:
5834 return NULL;
5835}
5836
5837
cc6dd355
RD
5838static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
5839 PyObject *resultobj;
5840 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5841 int result;
5842 PyObject * obj0 = 0 ;
5843 char *kwnames[] = {
5844 (char *) "self", NULL
5845 };
5846
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
5848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5849 {
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 result = (int)((wxPyTimer const *)arg1)->GetId();
5852
5853 wxPyEndAllowThreads(__tstate);
5854 if (PyErr_Occurred()) SWIG_fail;
5855 }
5856 resultobj = PyInt_FromLong((long)result);
5857 return resultobj;
5858 fail:
5859 return NULL;
5860}
5861
5862
d14a1e28
RD
5863static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
5864 PyObject *obj;
5865 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5866 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
5867 Py_INCREF(obj);
5868 return Py_BuildValue((char *)"");
5869}
5870static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
5871 PyObject *resultobj;
5872 int arg1 = (int) 0 ;
5873 int arg2 = (int) 0 ;
5874 wxTimerEvent *result;
5875 char *kwnames[] = {
5876 (char *) "timerid",(char *) "interval", NULL
5877 };
5878
5879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TimerEvent",kwnames,&arg1,&arg2)) goto fail;
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1);
5888 return resultobj;
5889 fail:
5890 return NULL;
5891}
5892
5893
5894static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
5897 int result;
5898 PyObject * obj0 = 0 ;
5899 char *kwnames[] = {
5900 (char *) "self", NULL
5901 };
5902
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
5904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5905 {
5906 PyThreadState* __tstate = wxPyBeginAllowThreads();
5907 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
5908
5909 wxPyEndAllowThreads(__tstate);
5910 if (PyErr_Occurred()) SWIG_fail;
5911 }
5912 resultobj = PyInt_FromLong((long)result);
5913 return resultobj;
5914 fail:
5915 return NULL;
5916}
5917
5918
5919static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
5920 PyObject *obj;
5921 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5922 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
5923 Py_INCREF(obj);
5924 return Py_BuildValue((char *)"");
5925}
5926static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
5927 PyObject *resultobj;
5928 wxTimer *arg1 = 0 ;
5929 wxTimerRunner *result;
5930 PyObject * obj0 = 0 ;
5931
5932 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
5933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5934 if (arg1 == NULL) {
5935 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5936 }
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
5940
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1);
5945 return resultobj;
5946 fail:
5947 return NULL;
5948}
5949
5950
5951static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
5952 PyObject *resultobj;
5953 wxTimer *arg1 = 0 ;
5954 int arg2 ;
e811c8ce 5955 bool arg3 = (bool) False ;
d14a1e28
RD
5956 wxTimerRunner *result;
5957 PyObject * obj0 = 0 ;
5958 PyObject * obj2 = 0 ;
5959
5960 if(!PyArg_ParseTuple(args,(char *)"Oi|O:new_TimerRunner",&obj0,&arg2,&obj2)) goto fail;
5961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5962 if (arg1 == NULL) {
5963 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5964 }
5965 if (obj2) {
5966 arg3 = PyInt_AsLong(obj2) ? true : false;
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 {
5970 PyThreadState* __tstate = wxPyBeginAllowThreads();
5971 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
5972
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1);
5977 return resultobj;
5978 fail:
5979 return NULL;
5980}
5981
5982
5983static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
5984 int argc;
5985 PyObject *argv[4];
5986 int ii;
5987
5988 argc = PyObject_Length(args);
5989 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
5990 argv[ii] = PyTuple_GetItem(args,ii);
5991 }
5992 if (argc == 1) {
5993 int _v;
5994 {
5995 void *ptr;
5996 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
5997 _v = 0;
5998 PyErr_Clear();
5999 } else {
6000 _v = 1;
6001 }
6002 }
6003 if (_v) {
6004 return _wrap_new_TimerRunner__SWIG_0(self,args);
6005 }
6006 }
6007 if ((argc >= 2) && (argc <= 3)) {
6008 int _v;
6009 {
6010 void *ptr;
6011 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6012 _v = 0;
6013 PyErr_Clear();
6014 } else {
6015 _v = 1;
6016 }
6017 }
6018 if (_v) {
6019 {
6020 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
6021 }
6022 if (_v) {
6023 if (argc <= 2) {
6024 return _wrap_new_TimerRunner__SWIG_1(self,args);
6025 }
6026 {
6027 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
6028 }
6029 if (_v) {
6030 return _wrap_new_TimerRunner__SWIG_1(self,args);
6031 }
6032 }
6033 }
6034 }
6035
6036 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6037 return NULL;
6038}
6039
6040
6041static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6042 PyObject *resultobj;
6043 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6044 PyObject * obj0 = 0 ;
6045 char *kwnames[] = {
6046 (char *) "self", NULL
6047 };
6048
6049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6051 {
6052 PyThreadState* __tstate = wxPyBeginAllowThreads();
6053 delete arg1;
6054
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 Py_INCREF(Py_None); resultobj = Py_None;
6059 return resultobj;
6060 fail:
6061 return NULL;
6062}
6063
6064
6065static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6066 PyObject *resultobj;
6067 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6068 int arg2 ;
e811c8ce 6069 bool arg3 = (bool) False ;
d14a1e28
RD
6070 PyObject * obj0 = 0 ;
6071 PyObject * obj2 = 0 ;
6072 char *kwnames[] = {
6073 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6074 };
6075
6076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:TimerRunner_Start",kwnames,&obj0,&arg2,&obj2)) goto fail;
6077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6078 if (obj2) {
6079 arg3 = PyInt_AsLong(obj2) ? true : false;
6080 if (PyErr_Occurred()) SWIG_fail;
6081 }
6082 {
6083 PyThreadState* __tstate = wxPyBeginAllowThreads();
6084 (arg1)->Start(arg2,arg3);
6085
6086 wxPyEndAllowThreads(__tstate);
6087 if (PyErr_Occurred()) SWIG_fail;
6088 }
6089 Py_INCREF(Py_None); resultobj = Py_None;
6090 return resultobj;
6091 fail:
6092 return NULL;
6093}
6094
6095
6096static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6097 PyObject *obj;
6098 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6099 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6100 Py_INCREF(obj);
6101 return Py_BuildValue((char *)"");
6102}
6103static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6104 PyObject *resultobj;
6105 wxLog *result;
6106 char *kwnames[] = {
6107 NULL
6108 };
6109
6110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6111 {
6112 PyThreadState* __tstate = wxPyBeginAllowThreads();
6113 result = (wxLog *)new wxLog();
6114
6115 wxPyEndAllowThreads(__tstate);
6116 if (PyErr_Occurred()) SWIG_fail;
6117 }
6118 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1);
6119 return resultobj;
6120 fail:
6121 return NULL;
6122}
6123
6124
6125static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6126 PyObject *resultobj;
6127 bool result;
6128 char *kwnames[] = {
6129 NULL
6130 };
6131
6132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6133 {
6134 PyThreadState* __tstate = wxPyBeginAllowThreads();
6135 result = (bool)wxLog::IsEnabled();
6136
6137 wxPyEndAllowThreads(__tstate);
6138 if (PyErr_Occurred()) SWIG_fail;
6139 }
6140 resultobj = PyInt_FromLong((long)result);
6141 return resultobj;
6142 fail:
6143 return NULL;
6144}
6145
6146
6147static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6148 PyObject *resultobj;
e811c8ce 6149 bool arg1 = (bool) True ;
d14a1e28
RD
6150 bool result;
6151 PyObject * obj0 = 0 ;
6152 char *kwnames[] = {
6153 (char *) "doIt", NULL
6154 };
6155
6156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6157 if (obj0) {
6158 arg1 = PyInt_AsLong(obj0) ? true : false;
6159 if (PyErr_Occurred()) SWIG_fail;
6160 }
6161 {
6162 PyThreadState* __tstate = wxPyBeginAllowThreads();
6163 result = (bool)wxLog::EnableLogging(arg1);
6164
6165 wxPyEndAllowThreads(__tstate);
6166 if (PyErr_Occurred()) SWIG_fail;
6167 }
6168 resultobj = PyInt_FromLong((long)result);
6169 return resultobj;
6170 fail:
6171 return NULL;
6172}
6173
6174
6175static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6176 PyObject *resultobj;
6177 wxLogLevel arg1 ;
6178 wxChar *arg2 = (wxChar *) 0 ;
6179 time_t arg3 ;
6180 PyObject * obj0 = 0 ;
6181 PyObject * obj1 = 0 ;
6182 PyObject * obj2 = 0 ;
6183 char *kwnames[] = {
6184 (char *) "level",(char *) "szString",(char *) "t", NULL
6185 };
6186
6187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
6188 arg1 = (wxLogLevel) PyInt_AsLong(obj0);
6189 if (PyErr_Occurred()) SWIG_fail;
6190 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6191 arg3 = (time_t) PyInt_AsLong(obj2);
6192 if (PyErr_Occurred()) SWIG_fail;
6193 {
6194 PyThreadState* __tstate = wxPyBeginAllowThreads();
6195 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6196
6197 wxPyEndAllowThreads(__tstate);
6198 if (PyErr_Occurred()) SWIG_fail;
6199 }
6200 Py_INCREF(Py_None); resultobj = Py_None;
6201 return resultobj;
6202 fail:
6203 return NULL;
6204}
6205
6206
6207static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
6208 PyObject *resultobj;
6209 wxLog *arg1 = (wxLog *) 0 ;
6210 PyObject * obj0 = 0 ;
6211 char *kwnames[] = {
6212 (char *) "self", NULL
6213 };
6214
6215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6217 {
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 (arg1)->Flush();
6220
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 Py_INCREF(Py_None); resultobj = Py_None;
6225 return resultobj;
6226 fail:
6227 return NULL;
6228}
6229
6230
6231static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
6232 PyObject *resultobj;
6233 char *kwnames[] = {
6234 NULL
6235 };
6236
6237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 wxLog::FlushActive();
6241
6242 wxPyEndAllowThreads(__tstate);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 Py_INCREF(Py_None); resultobj = Py_None;
6246 return resultobj;
6247 fail:
6248 return NULL;
6249}
6250
6251
6252static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6253 PyObject *resultobj;
6254 wxLog *result;
6255 char *kwnames[] = {
6256 NULL
6257 };
6258
6259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6260 {
6261 PyThreadState* __tstate = wxPyBeginAllowThreads();
6262 result = (wxLog *)wxLog::GetActiveTarget();
6263
6264 wxPyEndAllowThreads(__tstate);
6265 if (PyErr_Occurred()) SWIG_fail;
6266 }
6267 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
6268 return resultobj;
6269 fail:
6270 return NULL;
6271}
6272
6273
6274static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6275 PyObject *resultobj;
6276 wxLog *arg1 = (wxLog *) 0 ;
6277 wxLog *result;
6278 PyObject * obj0 = 0 ;
6279 char *kwnames[] = {
6280 (char *) "pLogger", NULL
6281 };
6282
6283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
6284 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (wxLog *)wxLog::SetActiveTarget(arg1);
6288
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
6293 return resultobj;
6294 fail:
6295 return NULL;
6296}
6297
6298
6299static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj;
6301 char *kwnames[] = {
6302 NULL
6303 };
6304
6305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
6306 {
6307 PyThreadState* __tstate = wxPyBeginAllowThreads();
6308 wxLog::Suspend();
6309
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 Py_INCREF(Py_None); resultobj = Py_None;
6314 return resultobj;
6315 fail:
6316 return NULL;
6317}
6318
6319
6320static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
6321 PyObject *resultobj;
6322 char *kwnames[] = {
6323 NULL
6324 };
6325
6326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
6327 {
6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
6329 wxLog::Resume();
6330
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 Py_INCREF(Py_None); resultobj = Py_None;
6335 return resultobj;
6336 fail:
6337 return NULL;
6338}
6339
6340
6341static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj;
e811c8ce 6343 bool arg1 = (bool) True ;
d14a1e28
RD
6344 PyObject * obj0 = 0 ;
6345 char *kwnames[] = {
6346 (char *) "bVerbose", NULL
6347 };
6348
6349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
6350 if (obj0) {
6351 arg1 = PyInt_AsLong(obj0) ? true : false;
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
6354 {
6355 PyThreadState* __tstate = wxPyBeginAllowThreads();
6356 wxLog::SetVerbose(arg1);
6357
6358 wxPyEndAllowThreads(__tstate);
6359 if (PyErr_Occurred()) SWIG_fail;
6360 }
6361 Py_INCREF(Py_None); resultobj = Py_None;
6362 return resultobj;
6363 fail:
6364 return NULL;
6365}
6366
6367
6368static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
6369 PyObject *resultobj;
6370 wxLogLevel arg1 ;
6371 PyObject * obj0 = 0 ;
6372 char *kwnames[] = {
6373 (char *) "logLevel", NULL
6374 };
6375
6376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
6377 arg1 = (wxLogLevel) PyInt_AsLong(obj0);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 {
6380 PyThreadState* __tstate = wxPyBeginAllowThreads();
6381 wxLog::SetLogLevel(arg1);
6382
6383 wxPyEndAllowThreads(__tstate);
6384 if (PyErr_Occurred()) SWIG_fail;
6385 }
6386 Py_INCREF(Py_None); resultobj = Py_None;
6387 return resultobj;
6388 fail:
6389 return NULL;
6390}
6391
6392
6393static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
6394 PyObject *resultobj;
6395 char *kwnames[] = {
6396 NULL
6397 };
6398
6399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 wxLog::DontCreateOnDemand();
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 Py_INCREF(Py_None); resultobj = Py_None;
6408 return resultobj;
6409 fail:
6410 return NULL;
6411}
6412
6413
6414static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj;
6416 wxTraceMask arg1 ;
6417 PyObject * obj0 = 0 ;
6418 char *kwnames[] = {
6419 (char *) "ulMask", NULL
6420 };
6421
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
6423 arg1 = (wxTraceMask) PyInt_AsLong(obj0);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 {
6426 PyThreadState* __tstate = wxPyBeginAllowThreads();
6427 wxLog::SetTraceMask(arg1);
6428
6429 wxPyEndAllowThreads(__tstate);
6430 if (PyErr_Occurred()) SWIG_fail;
6431 }
6432 Py_INCREF(Py_None); resultobj = Py_None;
6433 return resultobj;
6434 fail:
6435 return NULL;
6436}
6437
6438
6439static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6440 PyObject *resultobj;
6441 wxString *arg1 = 0 ;
e811c8ce 6442 bool temp1 = False ;
d14a1e28
RD
6443 PyObject * obj0 = 0 ;
6444 char *kwnames[] = {
6445 (char *) "str", NULL
6446 };
6447
6448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
6449 {
6450 arg1 = wxString_in_helper(obj0);
6451 if (arg1 == NULL) SWIG_fail;
e811c8ce 6452 temp1 = True;
d14a1e28
RD
6453 }
6454 {
6455 PyThreadState* __tstate = wxPyBeginAllowThreads();
6456 wxLog::AddTraceMask((wxString const &)*arg1);
6457
6458 wxPyEndAllowThreads(__tstate);
6459 if (PyErr_Occurred()) SWIG_fail;
6460 }
6461 Py_INCREF(Py_None); resultobj = Py_None;
6462 {
6463 if (temp1)
6464 delete arg1;
6465 }
6466 return resultobj;
6467 fail:
6468 {
6469 if (temp1)
6470 delete arg1;
6471 }
6472 return NULL;
6473}
6474
6475
6476static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6477 PyObject *resultobj;
6478 wxString *arg1 = 0 ;
e811c8ce 6479 bool temp1 = False ;
d14a1e28
RD
6480 PyObject * obj0 = 0 ;
6481 char *kwnames[] = {
6482 (char *) "str", NULL
6483 };
6484
6485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
6486 {
6487 arg1 = wxString_in_helper(obj0);
6488 if (arg1 == NULL) SWIG_fail;
e811c8ce 6489 temp1 = True;
d14a1e28
RD
6490 }
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 wxLog::RemoveTraceMask((wxString const &)*arg1);
6494
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 Py_INCREF(Py_None); resultobj = Py_None;
6499 {
6500 if (temp1)
6501 delete arg1;
6502 }
6503 return resultobj;
6504 fail:
6505 {
6506 if (temp1)
6507 delete arg1;
6508 }
6509 return NULL;
6510}
6511
6512
6513static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
6514 PyObject *resultobj;
6515 char *kwnames[] = {
6516 NULL
6517 };
6518
6519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
6520 {
6521 PyThreadState* __tstate = wxPyBeginAllowThreads();
6522 wxLog::ClearTraceMasks();
6523
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) SWIG_fail;
6526 }
6527 Py_INCREF(Py_None); resultobj = Py_None;
6528 return resultobj;
6529 fail:
6530 return NULL;
6531}
6532
6533
6534static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
6535 PyObject *resultobj;
6536 wxArrayString *result;
6537 char *kwnames[] = {
6538 NULL
6539 };
6540
6541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
6542 {
6543 PyThreadState* __tstate = wxPyBeginAllowThreads();
6544 {
6545 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
6546 result = (wxArrayString *) &_result_ref;
6547 }
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 {
6553 resultobj = wxArrayString2PyList_helper(*result);
6554 }
6555 return resultobj;
6556 fail:
6557 return NULL;
6558}
6559
6560
6561static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj;
6563 wxChar *arg1 = (wxChar *) 0 ;
6564 PyObject * obj0 = 0 ;
6565 char *kwnames[] = {
6566 (char *) "ts", NULL
6567 };
6568
6569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
6570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 wxLog::SetTimestamp((wxChar const *)arg1);
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 Py_INCREF(Py_None); resultobj = Py_None;
6579 return resultobj;
6580 fail:
6581 return NULL;
6582}
6583
6584
6585static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
6586 PyObject *resultobj;
6587 bool result;
6588 char *kwnames[] = {
6589 NULL
6590 };
6591
6592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
6593 {
6594 PyThreadState* __tstate = wxPyBeginAllowThreads();
6595 result = (bool)wxLog::GetVerbose();
6596
6597 wxPyEndAllowThreads(__tstate);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 resultobj = PyInt_FromLong((long)result);
6601 return resultobj;
6602 fail:
6603 return NULL;
6604}
6605
6606
6607static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6608 PyObject *resultobj;
6609 wxTraceMask result;
6610 char *kwnames[] = {
6611 NULL
6612 };
6613
6614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
6615 {
6616 PyThreadState* __tstate = wxPyBeginAllowThreads();
6617 result = (wxTraceMask)wxLog::GetTraceMask();
6618
6619 wxPyEndAllowThreads(__tstate);
6620 if (PyErr_Occurred()) SWIG_fail;
6621 }
6622 resultobj = PyInt_FromLong((long)result);
6623 return resultobj;
6624 fail:
6625 return NULL;
6626}
6627
6628
6629static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6630 PyObject *resultobj;
6631 wxChar *arg1 = (wxChar *) 0 ;
6632 bool result;
6633 PyObject * obj0 = 0 ;
6634 char *kwnames[] = {
6635 (char *) "mask", NULL
6636 };
6637
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
6639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6640 {
6641 PyThreadState* __tstate = wxPyBeginAllowThreads();
6642 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
6643
6644 wxPyEndAllowThreads(__tstate);
6645 if (PyErr_Occurred()) SWIG_fail;
6646 }
6647 resultobj = PyInt_FromLong((long)result);
6648 return resultobj;
6649 fail:
6650 return NULL;
6651}
6652
6653
6654static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
6655 PyObject *resultobj;
6656 wxLogLevel result;
6657 char *kwnames[] = {
6658 NULL
6659 };
6660
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
6662 {
6663 PyThreadState* __tstate = wxPyBeginAllowThreads();
6664 result = (wxLogLevel)wxLog::GetLogLevel();
6665
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 resultobj = PyInt_FromLong((long)result);
6670 return resultobj;
6671 fail:
6672 return NULL;
6673}
6674
6675
6676static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj;
6678 wxChar *result;
6679 char *kwnames[] = {
6680 NULL
6681 };
6682
6683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
6684 {
6685 PyThreadState* __tstate = wxPyBeginAllowThreads();
6686 result = (wxChar *)wxLog::GetTimestamp();
6687
6688 wxPyEndAllowThreads(__tstate);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0);
6692 return resultobj;
6693 fail:
6694 return NULL;
6695}
6696
6697
6698static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
6699 PyObject *resultobj;
6700 wxString result;
6701 char *kwnames[] = {
6702 NULL
6703 };
6704
6705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
6706 {
6707 PyThreadState* __tstate = wxPyBeginAllowThreads();
6708 result = Log_TimeStamp();
6709
6710 wxPyEndAllowThreads(__tstate);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 {
6714#if wxUSE_UNICODE
6715 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6716#else
6717 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6718#endif
6719 }
6720 return resultobj;
6721 fail:
6722 return NULL;
6723}
6724
6725
6726static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj;
6728 wxLog *arg1 = (wxLog *) 0 ;
6729 PyObject * obj0 = 0 ;
6730 char *kwnames[] = {
6731 (char *) "self", NULL
6732 };
6733
6734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
6735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6736 {
6737 PyThreadState* __tstate = wxPyBeginAllowThreads();
6738 wxLog_Destroy(arg1);
6739
6740 wxPyEndAllowThreads(__tstate);
6741 if (PyErr_Occurred()) SWIG_fail;
6742 }
6743 Py_INCREF(Py_None); resultobj = Py_None;
6744 return resultobj;
6745 fail:
6746 return NULL;
6747}
6748
6749
6750static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
6751 PyObject *obj;
6752 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6753 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
6754 Py_INCREF(obj);
6755 return Py_BuildValue((char *)"");
6756}
6757static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
6758 PyObject *resultobj;
6759 wxLogStderr *result;
6760 char *kwnames[] = {
6761 NULL
6762 };
6763
6764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
6765 {
6766 PyThreadState* __tstate = wxPyBeginAllowThreads();
6767 result = (wxLogStderr *)new wxLogStderr();
6768
6769 wxPyEndAllowThreads(__tstate);
6770 if (PyErr_Occurred()) SWIG_fail;
6771 }
6772 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1);
6773 return resultobj;
6774 fail:
6775 return NULL;
6776}
6777
6778
6779static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
6780 PyObject *obj;
6781 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6782 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
6783 Py_INCREF(obj);
6784 return Py_BuildValue((char *)"");
6785}
6786static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6787 PyObject *resultobj;
6788 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
6789 wxLogTextCtrl *result;
6790 PyObject * obj0 = 0 ;
6791 char *kwnames[] = {
6792 (char *) "pTextCtrl", NULL
6793 };
6794
6795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
6796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6797 {
6798 PyThreadState* __tstate = wxPyBeginAllowThreads();
6799 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
6800
6801 wxPyEndAllowThreads(__tstate);
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1);
6805 return resultobj;
6806 fail:
6807 return NULL;
6808}
6809
6810
6811static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
6812 PyObject *obj;
6813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6814 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
6815 Py_INCREF(obj);
6816 return Py_BuildValue((char *)"");
6817}
6818static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
6819 PyObject *resultobj;
6820 wxLogGui *result;
6821 char *kwnames[] = {
6822 NULL
6823 };
6824
6825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
6826 {
6827 PyThreadState* __tstate = wxPyBeginAllowThreads();
6828 result = (wxLogGui *)new wxLogGui();
6829
6830 wxPyEndAllowThreads(__tstate);
6831 if (PyErr_Occurred()) SWIG_fail;
6832 }
6833 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1);
6834 return resultobj;
6835 fail:
6836 return NULL;
6837}
6838
6839
6840static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
6841 PyObject *obj;
6842 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6843 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
6844 Py_INCREF(obj);
6845 return Py_BuildValue((char *)"");
6846}
6847static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6848 PyObject *resultobj;
6849 wxFrame *arg1 = (wxFrame *) 0 ;
6850 wxString *arg2 = 0 ;
e811c8ce
RD
6851 bool arg3 = (bool) True ;
6852 bool arg4 = (bool) True ;
d14a1e28 6853 wxLogWindow *result;
e811c8ce 6854 bool temp2 = False ;
d14a1e28
RD
6855 PyObject * obj0 = 0 ;
6856 PyObject * obj1 = 0 ;
6857 PyObject * obj2 = 0 ;
6858 PyObject * obj3 = 0 ;
6859 char *kwnames[] = {
6860 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
6861 };
6862
6863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6865 {
6866 arg2 = wxString_in_helper(obj1);
6867 if (arg2 == NULL) SWIG_fail;
e811c8ce 6868 temp2 = True;
d14a1e28
RD
6869 }
6870 if (obj2) {
6871 arg3 = PyInt_AsLong(obj2) ? true : false;
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 if (obj3) {
6875 arg4 = PyInt_AsLong(obj3) ? true : false;
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 {
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
6881
6882 wxPyEndAllowThreads(__tstate);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1);
6886 {
6887 if (temp2)
6888 delete arg2;
6889 }
6890 return resultobj;
6891 fail:
6892 {
6893 if (temp2)
6894 delete arg2;
6895 }
6896 return NULL;
6897}
6898
6899
6900static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
6901 PyObject *resultobj;
6902 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
e811c8ce 6903 bool arg2 = (bool) True ;
d14a1e28
RD
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
6906 char *kwnames[] = {
6907 (char *) "self",(char *) "bShow", NULL
6908 };
6909
6910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
6911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6912 if (obj1) {
6913 arg2 = PyInt_AsLong(obj1) ? true : false;
6914 if (PyErr_Occurred()) SWIG_fail;
6915 }
6916 {
6917 PyThreadState* __tstate = wxPyBeginAllowThreads();
6918 (arg1)->Show(arg2);
6919
6920 wxPyEndAllowThreads(__tstate);
6921 if (PyErr_Occurred()) SWIG_fail;
6922 }
6923 Py_INCREF(Py_None); resultobj = Py_None;
6924 return resultobj;
6925 fail:
6926 return NULL;
6927}
6928
6929
6930static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
6931 PyObject *resultobj;
6932 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
6933 wxFrame *result;
6934 PyObject * obj0 = 0 ;
6935 char *kwnames[] = {
6936 (char *) "self", NULL
6937 };
6938
6939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
6940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6941 {
6942 PyThreadState* __tstate = wxPyBeginAllowThreads();
6943 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
6944
6945 wxPyEndAllowThreads(__tstate);
6946 if (PyErr_Occurred()) SWIG_fail;
6947 }
6948 {
6949 resultobj = wxPyMake_wxObject(result);
6950 }
6951 return resultobj;
6952 fail:
6953 return NULL;
6954}
6955
6956
6957static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6958 PyObject *resultobj;
6959 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
6960 wxLog *result;
6961 PyObject * obj0 = 0 ;
6962 char *kwnames[] = {
6963 (char *) "self", NULL
6964 };
6965
6966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
6967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6968 {
6969 PyThreadState* __tstate = wxPyBeginAllowThreads();
6970 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
6971
6972 wxPyEndAllowThreads(__tstate);
6973 if (PyErr_Occurred()) SWIG_fail;
6974 }
6975 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
6976 return resultobj;
6977 fail:
6978 return NULL;
6979}
6980
6981
6982static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
6983 PyObject *resultobj;
6984 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
6985 bool result;
6986 PyObject * obj0 = 0 ;
6987 char *kwnames[] = {
6988 (char *) "self", NULL
6989 };
6990
6991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
6992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6993 {
6994 PyThreadState* __tstate = wxPyBeginAllowThreads();
6995 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
6996
6997 wxPyEndAllowThreads(__tstate);
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
7000 resultobj = PyInt_FromLong((long)result);
7001 return resultobj;
7002 fail:
7003 return NULL;
7004}
7005
7006
7007static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7008 PyObject *resultobj;
7009 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7010 bool arg2 ;
7011 PyObject * obj0 = 0 ;
7012 PyObject * obj1 = 0 ;
7013 char *kwnames[] = {
7014 (char *) "self",(char *) "bDoPass", NULL
7015 };
7016
7017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7019 arg2 = PyInt_AsLong(obj1) ? true : false;
7020 if (PyErr_Occurred()) SWIG_fail;
7021 {
7022 PyThreadState* __tstate = wxPyBeginAllowThreads();
7023 (arg1)->PassMessages(arg2);
7024
7025 wxPyEndAllowThreads(__tstate);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 Py_INCREF(Py_None); resultobj = Py_None;
7029 return resultobj;
7030 fail:
7031 return NULL;
7032}
7033
7034
7035static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7036 PyObject *obj;
7037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7038 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7039 Py_INCREF(obj);
7040 return Py_BuildValue((char *)"");
7041}
7042static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj;
7044 wxLog *arg1 = (wxLog *) 0 ;
7045 wxLogChain *result;
7046 PyObject * obj0 = 0 ;
7047 char *kwnames[] = {
7048 (char *) "logger", NULL
7049 };
7050
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7053 {
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 result = (wxLogChain *)new wxLogChain(arg1);
7056
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1);
7061 return resultobj;
7062 fail:
7063 return NULL;
7064}
7065
7066
7067static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj;
7069 wxLogChain *arg1 = (wxLogChain *) 0 ;
7070 wxLog *arg2 = (wxLog *) 0 ;
7071 PyObject * obj0 = 0 ;
7072 PyObject * obj1 = 0 ;
7073 char *kwnames[] = {
7074 (char *) "self",(char *) "logger", NULL
7075 };
7076
7077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7079 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7080 {
7081 PyThreadState* __tstate = wxPyBeginAllowThreads();
7082 (arg1)->SetLog(arg2);
7083
7084 wxPyEndAllowThreads(__tstate);
7085 if (PyErr_Occurred()) SWIG_fail;
7086 }
7087 Py_INCREF(Py_None); resultobj = Py_None;
7088 return resultobj;
7089 fail:
7090 return NULL;
7091}
7092
7093
7094static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7095 PyObject *resultobj;
7096 wxLogChain *arg1 = (wxLogChain *) 0 ;
7097 bool arg2 ;
7098 PyObject * obj0 = 0 ;
7099 PyObject * obj1 = 0 ;
7100 char *kwnames[] = {
7101 (char *) "self",(char *) "bDoPass", NULL
7102 };
7103
7104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7106 arg2 = PyInt_AsLong(obj1) ? true : false;
7107 if (PyErr_Occurred()) SWIG_fail;
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 (arg1)->PassMessages(arg2);
7111
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 Py_INCREF(Py_None); resultobj = Py_None;
7116 return resultobj;
7117 fail:
7118 return NULL;
7119}
7120
7121
7122static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7123 PyObject *resultobj;
7124 wxLogChain *arg1 = (wxLogChain *) 0 ;
7125 bool result;
7126 PyObject * obj0 = 0 ;
7127 char *kwnames[] = {
7128 (char *) "self", NULL
7129 };
7130
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 result = (bool)(arg1)->IsPassingMessages();
7136
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 resultobj = PyInt_FromLong((long)result);
7141 return resultobj;
7142 fail:
7143 return NULL;
7144}
7145
7146
7147static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj;
7149 wxLogChain *arg1 = (wxLogChain *) 0 ;
7150 wxLog *result;
7151 PyObject * obj0 = 0 ;
7152 char *kwnames[] = {
7153 (char *) "self", NULL
7154 };
7155
7156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7158 {
7159 PyThreadState* __tstate = wxPyBeginAllowThreads();
7160 result = (wxLog *)(arg1)->GetOldLog();
7161
7162 wxPyEndAllowThreads(__tstate);
7163 if (PyErr_Occurred()) SWIG_fail;
7164 }
7165 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
7166 return resultobj;
7167 fail:
7168 return NULL;
7169}
7170
7171
7172static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
7173 PyObject *obj;
7174 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7175 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7176 Py_INCREF(obj);
7177 return Py_BuildValue((char *)"");
7178}
7179static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
7180 PyObject *resultobj;
7181 unsigned long result;
7182 char *kwnames[] = {
7183 NULL
7184 };
7185
7186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 result = (unsigned long)wxSysErrorCode();
7190
7191 wxPyEndAllowThreads(__tstate);
7192 if (PyErr_Occurred()) SWIG_fail;
7193 }
7194 resultobj = PyInt_FromLong((long)result);
7195 return resultobj;
7196 fail:
7197 return NULL;
7198}
7199
7200
7201static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
7202 PyObject *resultobj;
7203 unsigned long arg1 = (unsigned long) 0 ;
7204 wxString result;
7205 PyObject * obj0 = 0 ;
7206 char *kwnames[] = {
7207 (char *) "nErrCode", NULL
7208 };
7209
7210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7211 if (obj0) {
7212 arg1 = (unsigned long) PyInt_AsLong(obj0);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 {
7216 PyThreadState* __tstate = wxPyBeginAllowThreads();
7217 result = wxSysErrorMsg(arg1);
7218
7219 wxPyEndAllowThreads(__tstate);
7220 if (PyErr_Occurred()) SWIG_fail;
7221 }
7222 {
7223#if wxUSE_UNICODE
7224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7225#else
7226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7227#endif
7228 }
7229 return resultobj;
7230 fail:
7231 return NULL;
7232}
7233
7234
7235static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
7236 PyObject *resultobj;
7237 wxString *arg1 = 0 ;
e811c8ce 7238 bool temp1 = False ;
d14a1e28
RD
7239 PyObject * obj0 = 0 ;
7240 char *kwnames[] = {
7241 (char *) "msg", NULL
7242 };
7243
7244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
7245 {
7246 arg1 = wxString_in_helper(obj0);
7247 if (arg1 == NULL) SWIG_fail;
e811c8ce 7248 temp1 = True;
d14a1e28
RD
7249 }
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 wxLogFatalError((wxString const &)*arg1);
7253
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 Py_INCREF(Py_None); resultobj = Py_None;
7258 {
7259 if (temp1)
7260 delete arg1;
7261 }
7262 return resultobj;
7263 fail:
7264 {
7265 if (temp1)
7266 delete arg1;
7267 }
7268 return NULL;
7269}
7270
7271
7272static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj;
7274 wxString *arg1 = 0 ;
e811c8ce 7275 bool temp1 = False ;
d14a1e28
RD
7276 PyObject * obj0 = 0 ;
7277 char *kwnames[] = {
7278 (char *) "msg", NULL
7279 };
7280
7281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
7282 {
7283 arg1 = wxString_in_helper(obj0);
7284 if (arg1 == NULL) SWIG_fail;
e811c8ce 7285 temp1 = True;
d14a1e28
RD
7286 }
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 wxLogError((wxString const &)*arg1);
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 Py_INCREF(Py_None); resultobj = Py_None;
7295 {
7296 if (temp1)
7297 delete arg1;
7298 }
7299 return resultobj;
7300 fail:
7301 {
7302 if (temp1)
7303 delete arg1;
7304 }
7305 return NULL;
7306}
7307
7308
7309static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
7310 PyObject *resultobj;
7311 wxString *arg1 = 0 ;
e811c8ce 7312 bool temp1 = False ;
d14a1e28
RD
7313 PyObject * obj0 = 0 ;
7314 char *kwnames[] = {
7315 (char *) "msg", NULL
7316 };
7317
7318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
7319 {
7320 arg1 = wxString_in_helper(obj0);
7321 if (arg1 == NULL) SWIG_fail;
e811c8ce 7322 temp1 = True;
d14a1e28
RD
7323 }
7324 {
7325 PyThreadState* __tstate = wxPyBeginAllowThreads();
7326 wxLogWarning((wxString const &)*arg1);
7327
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 Py_INCREF(Py_None); resultobj = Py_None;
7332 {
7333 if (temp1)
7334 delete arg1;
7335 }
7336 return resultobj;
7337 fail:
7338 {
7339 if (temp1)
7340 delete arg1;
7341 }
7342 return NULL;
7343}
7344
7345
7346static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7347 PyObject *resultobj;
7348 wxString *arg1 = 0 ;
e811c8ce 7349 bool temp1 = False ;
d14a1e28
RD
7350 PyObject * obj0 = 0 ;
7351 char *kwnames[] = {
7352 (char *) "msg", NULL
7353 };
7354
7355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
7356 {
7357 arg1 = wxString_in_helper(obj0);
7358 if (arg1 == NULL) SWIG_fail;
e811c8ce 7359 temp1 = True;
d14a1e28
RD
7360 }
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 wxLogMessage((wxString const &)*arg1);
7364
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 Py_INCREF(Py_None); resultobj = Py_None;
7369 {
7370 if (temp1)
7371 delete arg1;
7372 }
7373 return resultobj;
7374 fail:
7375 {
7376 if (temp1)
7377 delete arg1;
7378 }
7379 return NULL;
7380}
7381
7382
7383static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7384 PyObject *resultobj;
7385 wxString *arg1 = 0 ;
e811c8ce 7386 bool temp1 = False ;
d14a1e28
RD
7387 PyObject * obj0 = 0 ;
7388 char *kwnames[] = {
7389 (char *) "msg", NULL
7390 };
7391
7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
7393 {
7394 arg1 = wxString_in_helper(obj0);
7395 if (arg1 == NULL) SWIG_fail;
e811c8ce 7396 temp1 = True;
d14a1e28
RD
7397 }
7398 {
7399 PyThreadState* __tstate = wxPyBeginAllowThreads();
7400 wxLogInfo((wxString const &)*arg1);
7401
7402 wxPyEndAllowThreads(__tstate);
7403 if (PyErr_Occurred()) SWIG_fail;
7404 }
7405 Py_INCREF(Py_None); resultobj = Py_None;
7406 {
7407 if (temp1)
7408 delete arg1;
7409 }
7410 return resultobj;
7411 fail:
7412 {
7413 if (temp1)
7414 delete arg1;
7415 }
7416 return NULL;
7417}
7418
7419
7420static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
7421 PyObject *resultobj;
7422 wxString *arg1 = 0 ;
e811c8ce 7423 bool temp1 = False ;
d14a1e28
RD
7424 PyObject * obj0 = 0 ;
7425 char *kwnames[] = {
7426 (char *) "msg", NULL
7427 };
7428
7429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
7430 {
7431 arg1 = wxString_in_helper(obj0);
7432 if (arg1 == NULL) SWIG_fail;
e811c8ce 7433 temp1 = True;
d14a1e28
RD
7434 }
7435 {
7436 PyThreadState* __tstate = wxPyBeginAllowThreads();
7437 wxLogDebug((wxString const &)*arg1);
7438
7439 wxPyEndAllowThreads(__tstate);
7440 if (PyErr_Occurred()) SWIG_fail;
7441 }
7442 Py_INCREF(Py_None); resultobj = Py_None;
7443 {
7444 if (temp1)
7445 delete arg1;
7446 }
7447 return resultobj;
7448 fail:
7449 {
7450 if (temp1)
7451 delete arg1;
7452 }
7453 return NULL;
7454}
7455
7456
7457static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7458 PyObject *resultobj;
7459 wxString *arg1 = 0 ;
e811c8ce 7460 bool temp1 = False ;
d14a1e28
RD
7461 PyObject * obj0 = 0 ;
7462 char *kwnames[] = {
7463 (char *) "msg", NULL
7464 };
7465
7466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
7467 {
7468 arg1 = wxString_in_helper(obj0);
7469 if (arg1 == NULL) SWIG_fail;
e811c8ce 7470 temp1 = True;
d14a1e28
RD
7471 }
7472 {
7473 PyThreadState* __tstate = wxPyBeginAllowThreads();
7474 wxLogVerbose((wxString const &)*arg1);
7475
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 Py_INCREF(Py_None); resultobj = Py_None;
7480 {
7481 if (temp1)
7482 delete arg1;
7483 }
7484 return resultobj;
7485 fail:
7486 {
7487 if (temp1)
7488 delete arg1;
7489 }
7490 return NULL;
7491}
7492
7493
7494static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
7495 PyObject *resultobj;
7496 wxString *arg1 = 0 ;
e811c8ce 7497 bool temp1 = False ;
d14a1e28
RD
7498 PyObject * obj0 = 0 ;
7499 char *kwnames[] = {
7500 (char *) "msg", NULL
7501 };
7502
7503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
7504 {
7505 arg1 = wxString_in_helper(obj0);
7506 if (arg1 == NULL) SWIG_fail;
e811c8ce 7507 temp1 = True;
d14a1e28
RD
7508 }
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 wxLogStatus((wxString const &)*arg1);
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 Py_INCREF(Py_None); resultobj = Py_None;
7517 {
7518 if (temp1)
7519 delete arg1;
7520 }
7521 return resultobj;
7522 fail:
7523 {
7524 if (temp1)
7525 delete arg1;
7526 }
7527 return NULL;
7528}
7529
7530
7531static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7532 PyObject *resultobj;
7533 wxFrame *arg1 = (wxFrame *) 0 ;
7534 wxString *arg2 = 0 ;
e811c8ce 7535 bool temp2 = False ;
d14a1e28
RD
7536 PyObject * obj0 = 0 ;
7537 PyObject * obj1 = 0 ;
7538 char *kwnames[] = {
7539 (char *) "pFrame",(char *) "msg", NULL
7540 };
7541
7542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
7543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7544 {
7545 arg2 = wxString_in_helper(obj1);
7546 if (arg2 == NULL) SWIG_fail;
e811c8ce 7547 temp2 = True;
d14a1e28
RD
7548 }
7549 {
7550 PyThreadState* __tstate = wxPyBeginAllowThreads();
7551 wxLogStatus(arg1,(wxString const &)*arg2);
7552
7553 wxPyEndAllowThreads(__tstate);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 }
7556 Py_INCREF(Py_None); resultobj = Py_None;
7557 {
7558 if (temp2)
7559 delete arg2;
7560 }
7561 return resultobj;
7562 fail:
7563 {
7564 if (temp2)
7565 delete arg2;
7566 }
7567 return NULL;
7568}
7569
7570
7571static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
7572 PyObject *resultobj;
7573 wxString *arg1 = 0 ;
e811c8ce 7574 bool temp1 = False ;
d14a1e28
RD
7575 PyObject * obj0 = 0 ;
7576 char *kwnames[] = {
7577 (char *) "msg", NULL
7578 };
7579
7580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
7581 {
7582 arg1 = wxString_in_helper(obj0);
7583 if (arg1 == NULL) SWIG_fail;
e811c8ce 7584 temp1 = True;
d14a1e28
RD
7585 }
7586 {
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 wxLogSysError((wxString const &)*arg1);
7589
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 Py_INCREF(Py_None); resultobj = Py_None;
7594 {
7595 if (temp1)
7596 delete arg1;
7597 }
7598 return resultobj;
7599 fail:
7600 {
7601 if (temp1)
7602 delete arg1;
7603 }
7604 return NULL;
7605}
7606
7607
cc6dd355 7608static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28 7609 PyObject *resultobj;
cc6dd355
RD
7610 unsigned long arg1 ;
7611 wxString *arg2 = 0 ;
7612 bool temp2 = False ;
d14a1e28 7613 PyObject * obj0 = 0 ;
cc6dd355 7614 PyObject * obj1 = 0 ;
d14a1e28 7615
cc6dd355
RD
7616 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
7617 arg1 = (unsigned long) PyInt_AsLong(obj0);
7618 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7619 {
cc6dd355
RD
7620 arg2 = wxString_in_helper(obj1);
7621 if (arg2 == NULL) SWIG_fail;
7622 temp2 = True;
d14a1e28
RD
7623 }
7624 {
7625 PyThreadState* __tstate = wxPyBeginAllowThreads();
cc6dd355 7626 wxLogTrace(arg1,(wxString const &)*arg2);
d14a1e28
RD
7627
7628 wxPyEndAllowThreads(__tstate);
7629 if (PyErr_Occurred()) SWIG_fail;
7630 }
7631 Py_INCREF(Py_None); resultobj = Py_None;
7632 {
cc6dd355
RD
7633 if (temp2)
7634 delete arg2;
d14a1e28
RD
7635 }
7636 return resultobj;
7637 fail:
7638 {
cc6dd355
RD
7639 if (temp2)
7640 delete arg2;
d14a1e28
RD
7641 }
7642 return NULL;
7643}
7644
7645
cc6dd355 7646static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
7647 PyObject *resultobj;
7648 wxString *arg1 = 0 ;
7649 wxString *arg2 = 0 ;
e811c8ce
RD
7650 bool temp1 = False ;
7651 bool temp2 = False ;
d14a1e28
RD
7652 PyObject * obj0 = 0 ;
7653 PyObject * obj1 = 0 ;
d14a1e28 7654
cc6dd355 7655 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
d14a1e28
RD
7656 {
7657 arg1 = wxString_in_helper(obj0);
7658 if (arg1 == NULL) SWIG_fail;
e811c8ce 7659 temp1 = True;
d14a1e28
RD
7660 }
7661 {
7662 arg2 = wxString_in_helper(obj1);
7663 if (arg2 == NULL) SWIG_fail;
e811c8ce 7664 temp2 = True;
d14a1e28
RD
7665 }
7666 {
7667 PyThreadState* __tstate = wxPyBeginAllowThreads();
7668 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
7669
7670 wxPyEndAllowThreads(__tstate);
7671 if (PyErr_Occurred()) SWIG_fail;
7672 }
7673 Py_INCREF(Py_None); resultobj = Py_None;
7674 {
7675 if (temp1)
7676 delete arg1;
7677 }
7678 {
7679 if (temp2)
7680 delete arg2;
7681 }
7682 return resultobj;
7683 fail:
7684 {
7685 if (temp1)
7686 delete arg1;
7687 }
7688 {
7689 if (temp2)
7690 delete arg2;
7691 }
7692 return NULL;
7693}
7694
7695
cc6dd355
RD
7696static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
7697 int argc;
7698 PyObject *argv[3];
7699 int ii;
7700
7701 argc = PyObject_Length(args);
7702 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
7703 argv[ii] = PyTuple_GetItem(args,ii);
7704 }
7705 if (argc == 2) {
7706 int _v;
7707 {
7708 void *ptr;
7709 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
7710 _v = 0;
7711 PyErr_Clear();
7712 } else {
7713 _v = 1;
7714 }
7715 }
7716 if (_v) {
7717 {
7718 void *ptr;
7719 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
7720 _v = 0;
7721 PyErr_Clear();
7722 } else {
7723 _v = 1;
7724 }
7725 }
7726 if (_v) {
7727 return _wrap_LogTrace__SWIG_1(self,args);
7728 }
7729 }
7730 }
7731 if (argc == 2) {
7732 int _v;
7733 {
7734 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
7735 }
7736 if (_v) {
7737 {
7738 void *ptr;
7739 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
7740 _v = 0;
7741 PyErr_Clear();
7742 } else {
7743 _v = 1;
7744 }
7745 }
7746 if (_v) {
7747 return _wrap_LogTrace__SWIG_0(self,args);
7748 }
7749 }
7750 }
7751
7752 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
7753 return NULL;
7754}
7755
7756
d14a1e28
RD
7757static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
7758 PyObject *resultobj;
7759 unsigned long arg1 ;
7760 wxString *arg2 = 0 ;
e811c8ce 7761 bool temp2 = False ;
d14a1e28
RD
7762 PyObject * obj0 = 0 ;
7763 PyObject * obj1 = 0 ;
7764 char *kwnames[] = {
7765 (char *) "level",(char *) "msg", NULL
7766 };
7767
7768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
7769 arg1 = (unsigned long) PyInt_AsLong(obj0);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 {
7772 arg2 = wxString_in_helper(obj1);
7773 if (arg2 == NULL) SWIG_fail;
e811c8ce 7774 temp2 = True;
d14a1e28
RD
7775 }
7776 {
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 wxLogGeneric(arg1,(wxString const &)*arg2);
7779
7780 wxPyEndAllowThreads(__tstate);
7781 if (PyErr_Occurred()) SWIG_fail;
7782 }
7783 Py_INCREF(Py_None); resultobj = Py_None;
7784 {
7785 if (temp2)
7786 delete arg2;
7787 }
7788 return resultobj;
7789 fail:
7790 {
7791 if (temp2)
7792 delete arg2;
7793 }
7794 return NULL;
7795}
7796
7797
7798static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7799 PyObject *resultobj;
7800 wxString *arg1 = 0 ;
7801 wxString *arg2 = 0 ;
e811c8ce
RD
7802 bool temp1 = False ;
7803 bool temp2 = False ;
d14a1e28
RD
7804 PyObject * obj0 = 0 ;
7805 PyObject * obj1 = 0 ;
7806 char *kwnames[] = {
7807 (char *) "title",(char *) "text", NULL
7808 };
7809
7810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
7811 {
7812 arg1 = wxString_in_helper(obj0);
7813 if (arg1 == NULL) SWIG_fail;
e811c8ce 7814 temp1 = True;
d14a1e28
RD
7815 }
7816 {
7817 arg2 = wxString_in_helper(obj1);
7818 if (arg2 == NULL) SWIG_fail;
e811c8ce 7819 temp2 = True;
d14a1e28
RD
7820 }
7821 {
7822 PyThreadState* __tstate = wxPyBeginAllowThreads();
7823 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
7824
7825 wxPyEndAllowThreads(__tstate);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 Py_INCREF(Py_None); resultobj = Py_None;
7829 {
7830 if (temp1)
7831 delete arg1;
7832 }
7833 {
7834 if (temp2)
7835 delete arg2;
7836 }
7837 return resultobj;
7838 fail:
7839 {
7840 if (temp1)
7841 delete arg1;
7842 }
7843 {
7844 if (temp2)
7845 delete arg2;
7846 }
7847 return NULL;
7848}
7849
7850
7851static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
7852 PyObject *resultobj;
7853 wxLogNull *result;
7854 char *kwnames[] = {
7855 NULL
7856 };
7857
7858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
7859 {
7860 PyThreadState* __tstate = wxPyBeginAllowThreads();
7861 result = (wxLogNull *)new wxLogNull();
7862
7863 wxPyEndAllowThreads(__tstate);
7864 if (PyErr_Occurred()) SWIG_fail;
7865 }
7866 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1);
7867 return resultobj;
7868 fail:
7869 return NULL;
7870}
7871
7872
7873static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
7874 PyObject *resultobj;
7875 wxLogNull *arg1 = (wxLogNull *) 0 ;
7876 PyObject * obj0 = 0 ;
7877 char *kwnames[] = {
7878 (char *) "self", NULL
7879 };
7880
7881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
7882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 delete arg1;
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 Py_INCREF(Py_None); resultobj = Py_None;
7891 return resultobj;
7892 fail:
7893 return NULL;
7894}
7895
7896
7897static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
7898 PyObject *obj;
7899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7900 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
7901 Py_INCREF(obj);
7902 return Py_BuildValue((char *)"");
7903}
7904static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7905 PyObject *resultobj;
7906 wxPyLog *result;
7907 char *kwnames[] = {
7908 NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
7912 {
7913 PyThreadState* __tstate = wxPyBeginAllowThreads();
7914 result = (wxPyLog *)new wxPyLog();
7915
7916 wxPyEndAllowThreads(__tstate);
7917 if (PyErr_Occurred()) SWIG_fail;
7918 }
7919 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1);
7920 return resultobj;
7921 fail:
7922 return NULL;
7923}
7924
7925
7926static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7927 PyObject *resultobj;
7928 wxPyLog *arg1 = (wxPyLog *) 0 ;
7929 PyObject *arg2 = (PyObject *) 0 ;
7930 PyObject *arg3 = (PyObject *) 0 ;
7931 PyObject * obj0 = 0 ;
7932 PyObject * obj1 = 0 ;
7933 PyObject * obj2 = 0 ;
7934 char *kwnames[] = {
7935 (char *) "self",(char *) "self",(char *) "_class", NULL
7936 };
7937
7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
7939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7940 arg2 = obj1;
7941 arg3 = obj2;
7942 {
7943 PyThreadState* __tstate = wxPyBeginAllowThreads();
7944 (arg1)->_setCallbackInfo(arg2,arg3);
7945
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 Py_INCREF(Py_None); resultobj = Py_None;
7950 return resultobj;
7951 fail:
7952 return NULL;
7953}
7954
7955
7956static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
7957 PyObject *obj;
7958 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7959 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
7960 Py_INCREF(obj);
7961 return Py_BuildValue((char *)"");
7962}
7963static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
7964 PyObject *resultobj;
7965 int arg1 ;
7966 int arg2 = (int) wxSIGTERM ;
7967 int result;
7968 char *kwnames[] = {
7969 (char *) "pid",(char *) "sig", NULL
7970 };
7971
7972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:Process_Kill",kwnames,&arg1,&arg2)) goto fail;
7973 {
7974 PyThreadState* __tstate = wxPyBeginAllowThreads();
7975 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
7976
7977 wxPyEndAllowThreads(__tstate);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 resultobj = PyInt_FromLong((long)result);
7981 return resultobj;
7982 fail:
7983 return NULL;
7984}
7985
7986
7987static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
7988 PyObject *resultobj;
7989 int arg1 ;
7990 bool result;
7991 char *kwnames[] = {
7992 (char *) "pid", NULL
7993 };
7994
7995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Process_Exists",kwnames,&arg1)) goto fail;
7996 {
7997 PyThreadState* __tstate = wxPyBeginAllowThreads();
7998 result = (bool)wxPyProcess::Exists(arg1);
7999
8000 wxPyEndAllowThreads(__tstate);
8001 if (PyErr_Occurred()) SWIG_fail;
8002 }
8003 resultobj = PyInt_FromLong((long)result);
8004 return resultobj;
8005 fail:
8006 return NULL;
8007}
8008
8009
8010static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8011 PyObject *resultobj;
8012 wxString *arg1 = 0 ;
8013 int arg2 = (int) wxEXEC_ASYNC ;
8014 wxPyProcess *result;
e811c8ce 8015 bool temp1 = False ;
d14a1e28
RD
8016 PyObject * obj0 = 0 ;
8017 char *kwnames[] = {
8018 (char *) "cmd",(char *) "flags", NULL
8019 };
8020
8021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Process_Open",kwnames,&obj0,&arg2)) goto fail;
8022 {
8023 arg1 = wxString_in_helper(obj0);
8024 if (arg1 == NULL) SWIG_fail;
e811c8ce 8025 temp1 = True;
d14a1e28
RD
8026 }
8027 {
8028 PyThreadState* __tstate = wxPyBeginAllowThreads();
8029 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8030
8031 wxPyEndAllowThreads(__tstate);
8032 if (PyErr_Occurred()) SWIG_fail;
8033 }
8034 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0);
8035 {
8036 if (temp1)
8037 delete arg1;
8038 }
8039 return resultobj;
8040 fail:
8041 {
8042 if (temp1)
8043 delete arg1;
8044 }
8045 return NULL;
8046}
8047
8048
8049static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8050 PyObject *resultobj;
8051 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8052 int arg2 = (int) -1 ;
8053 wxPyProcess *result;
8054 PyObject * obj0 = 0 ;
8055 char *kwnames[] = {
8056 (char *) "parent",(char *) "id", NULL
8057 };
8058
8059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Process",kwnames,&obj0,&arg2)) goto fail;
8060 if (obj0) {
8061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8062 }
8063 {
8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
8065 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8066
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1);
8071 return resultobj;
8072 fail:
8073 return NULL;
8074}
8075
8076
8077static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8078 PyObject *resultobj;
8079 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8080 PyObject *arg2 = (PyObject *) 0 ;
8081 PyObject *arg3 = (PyObject *) 0 ;
8082 PyObject * obj0 = 0 ;
8083 PyObject * obj1 = 0 ;
8084 PyObject * obj2 = 0 ;
8085 char *kwnames[] = {
8086 (char *) "self",(char *) "self",(char *) "_class", NULL
8087 };
8088
8089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8091 arg2 = obj1;
8092 arg3 = obj2;
8093 {
8094 PyThreadState* __tstate = wxPyBeginAllowThreads();
8095 (arg1)->_setCallbackInfo(arg2,arg3);
8096
8097 wxPyEndAllowThreads(__tstate);
8098 if (PyErr_Occurred()) SWIG_fail;
8099 }
8100 Py_INCREF(Py_None); resultobj = Py_None;
8101 return resultobj;
8102 fail:
8103 return NULL;
8104}
8105
8106
8107static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8108 PyObject *resultobj;
8109 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8110 int arg2 ;
8111 int arg3 ;
8112 PyObject * obj0 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "self",(char *) "pid",(char *) "status", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Process_base_OnTerminate",kwnames,&obj0,&arg2,&arg3)) goto fail;
8118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8119 {
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 (arg1)->base_OnTerminate(arg2,arg3);
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 Py_INCREF(Py_None); resultobj = Py_None;
8127 return resultobj;
8128 fail:
8129 return NULL;
8130}
8131
8132
8133static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8136 PyObject * obj0 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "self", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8143 {
8144 PyThreadState* __tstate = wxPyBeginAllowThreads();
8145 (arg1)->Redirect();
8146
8147 wxPyEndAllowThreads(__tstate);
8148 if (PyErr_Occurred()) SWIG_fail;
8149 }
8150 Py_INCREF(Py_None); resultobj = Py_None;
8151 return resultobj;
8152 fail:
8153 return NULL;
8154}
8155
8156
8157static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
8158 PyObject *resultobj;
8159 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8160 bool result;
8161 PyObject * obj0 = 0 ;
8162 char *kwnames[] = {
8163 (char *) "self", NULL
8164 };
8165
8166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8168 {
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 result = (bool)(arg1)->IsRedirected();
8171
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = PyInt_FromLong((long)result);
8176 return resultobj;
8177 fail:
8178 return NULL;
8179}
8180
8181
8182static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
8183 PyObject *resultobj;
8184 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8185 PyObject * obj0 = 0 ;
8186 char *kwnames[] = {
8187 (char *) "self", NULL
8188 };
8189
8190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8192 {
8193 PyThreadState* __tstate = wxPyBeginAllowThreads();
8194 (arg1)->Detach();
8195
8196 wxPyEndAllowThreads(__tstate);
8197 if (PyErr_Occurred()) SWIG_fail;
8198 }
8199 Py_INCREF(Py_None); resultobj = Py_None;
8200 return resultobj;
8201 fail:
8202 return NULL;
8203}
8204
8205
8206static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8207 PyObject *resultobj;
8208 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8209 wxInputStream *result;
8210 PyObject * obj0 = 0 ;
8211 char *kwnames[] = {
8212 (char *) "self", NULL
8213 };
8214
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
8216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8217 {
8218 PyThreadState* __tstate = wxPyBeginAllowThreads();
8219 result = (wxInputStream *)(arg1)->GetInputStream();
8220
8221 wxPyEndAllowThreads(__tstate);
8222 if (PyErr_Occurred()) SWIG_fail;
8223 }
8224 {
8225 wxPyInputStream * _ptr = NULL;
8226
8227 if (result) {
8228 _ptr = new wxPyInputStream(result);
8229 }
e811c8ce 8230 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
8231 }
8232 return resultobj;
8233 fail:
8234 return NULL;
8235}
8236
8237
8238static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8239 PyObject *resultobj;
8240 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8241 wxInputStream *result;
8242 PyObject * obj0 = 0 ;
8243 char *kwnames[] = {
8244 (char *) "self", NULL
8245 };
8246
8247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
8248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8249 {
8250 PyThreadState* __tstate = wxPyBeginAllowThreads();
8251 result = (wxInputStream *)(arg1)->GetErrorStream();
8252
8253 wxPyEndAllowThreads(__tstate);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 }
8256 {
8257 wxPyInputStream * _ptr = NULL;
8258
8259 if (result) {
8260 _ptr = new wxPyInputStream(result);
8261 }
e811c8ce 8262 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
8263 }
8264 return resultobj;
8265 fail:
8266 return NULL;
8267}
8268
8269
8270static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8271 PyObject *resultobj;
8272 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8273 wxOutputStream *result;
8274 PyObject * obj0 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
8280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8281 {
8282 PyThreadState* __tstate = wxPyBeginAllowThreads();
8283 result = (wxOutputStream *)(arg1)->GetOutputStream();
8284
8285 wxPyEndAllowThreads(__tstate);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0);
8289 return resultobj;
8290 fail:
8291 return NULL;
8292}
8293
8294
8295static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
8296 PyObject *resultobj;
8297 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8298 PyObject * obj0 = 0 ;
8299 char *kwnames[] = {
8300 (char *) "self", NULL
8301 };
8302
8303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
8304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8305 {
8306 PyThreadState* __tstate = wxPyBeginAllowThreads();
8307 (arg1)->CloseOutput();
8308
8309 wxPyEndAllowThreads(__tstate);
8310 if (PyErr_Occurred()) SWIG_fail;
8311 }
8312 Py_INCREF(Py_None); resultobj = Py_None;
8313 return resultobj;
8314 fail:
8315 return NULL;
8316}
8317
8318
8319static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
8320 PyObject *resultobj;
8321 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8322 bool result;
8323 PyObject * obj0 = 0 ;
8324 char *kwnames[] = {
8325 (char *) "self", NULL
8326 };
8327
8328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
8329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 resultobj = PyInt_FromLong((long)result);
8338 return resultobj;
8339 fail:
8340 return NULL;
8341}
8342
8343
8344static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8345 PyObject *resultobj;
8346 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8347 bool result;
8348 PyObject * obj0 = 0 ;
8349 char *kwnames[] = {
8350 (char *) "self", NULL
8351 };
8352
8353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
8354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8355 {
8356 PyThreadState* __tstate = wxPyBeginAllowThreads();
8357 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
8358
8359 wxPyEndAllowThreads(__tstate);
8360 if (PyErr_Occurred()) SWIG_fail;
8361 }
8362 resultobj = PyInt_FromLong((long)result);
8363 return resultobj;
8364 fail:
8365 return NULL;
8366}
8367
8368
8369static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8370 PyObject *resultobj;
8371 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8372 bool result;
8373 PyObject * obj0 = 0 ;
8374 char *kwnames[] = {
8375 (char *) "self", NULL
8376 };
8377
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
8379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8380 {
8381 PyThreadState* __tstate = wxPyBeginAllowThreads();
8382 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
8383
8384 wxPyEndAllowThreads(__tstate);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = PyInt_FromLong((long)result);
8388 return resultobj;
8389 fail:
8390 return NULL;
8391}
8392
8393
8394static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
8395 PyObject *obj;
8396 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8397 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
8398 Py_INCREF(obj);
8399 return Py_BuildValue((char *)"");
8400}
8401static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
8402 PyObject *resultobj;
8403 int arg1 = (int) 0 ;
8404 int arg2 = (int) 0 ;
8405 int arg3 = (int) 0 ;
8406 wxProcessEvent *result;
8407 char *kwnames[] = {
8408 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
8409 };
8410
8411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ProcessEvent",kwnames,&arg1,&arg2,&arg3)) goto fail;
8412 {
8413 PyThreadState* __tstate = wxPyBeginAllowThreads();
8414 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
8415
8416 wxPyEndAllowThreads(__tstate);
8417 if (PyErr_Occurred()) SWIG_fail;
8418 }
8419 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1);
8420 return resultobj;
8421 fail:
8422 return NULL;
8423}
8424
8425
8426static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
8427 PyObject *resultobj;
8428 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8429 int result;
8430 PyObject * obj0 = 0 ;
8431 char *kwnames[] = {
8432 (char *) "self", NULL
8433 };
8434
8435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
8436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8437 {
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 result = (int)(arg1)->GetPid();
8440
8441 wxPyEndAllowThreads(__tstate);
8442 if (PyErr_Occurred()) SWIG_fail;
8443 }
8444 resultobj = PyInt_FromLong((long)result);
8445 return resultobj;
8446 fail:
8447 return NULL;
8448}
8449
8450
8451static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8454 int result;
8455 PyObject * obj0 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
8461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8462 {
8463 PyThreadState* __tstate = wxPyBeginAllowThreads();
8464 result = (int)(arg1)->GetExitCode();
8465
8466 wxPyEndAllowThreads(__tstate);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 }
8469 resultobj = PyInt_FromLong((long)result);
8470 return resultobj;
8471 fail:
8472 return NULL;
8473}
8474
8475
8476static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8477 PyObject *resultobj;
8478 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8479 int arg2 ;
8480 PyObject * obj0 = 0 ;
8481 char *kwnames[] = {
8482 (char *) "self",(char *) "m_pid", NULL
8483 };
8484
8485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_pid_set",kwnames,&obj0,&arg2)) goto fail;
8486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8487 if (arg1) (arg1)->m_pid = arg2;
8488
8489 Py_INCREF(Py_None); resultobj = Py_None;
8490 return resultobj;
8491 fail:
8492 return NULL;
8493}
8494
8495
8496static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8497 PyObject *resultobj;
8498 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8499 int result;
8500 PyObject * obj0 = 0 ;
8501 char *kwnames[] = {
8502 (char *) "self", NULL
8503 };
8504
8505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
8506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8507 result = (int) ((arg1)->m_pid);
8508
8509 resultobj = PyInt_FromLong((long)result);
8510 return resultobj;
8511 fail:
8512 return NULL;
8513}
8514
8515
8516static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8517 PyObject *resultobj;
8518 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8519 int arg2 ;
8520 PyObject * obj0 = 0 ;
8521 char *kwnames[] = {
8522 (char *) "self",(char *) "m_exitcode", NULL
8523 };
8524
8525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_exitcode_set",kwnames,&obj0,&arg2)) goto fail;
8526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8527 if (arg1) (arg1)->m_exitcode = arg2;
8528
8529 Py_INCREF(Py_None); resultobj = Py_None;
8530 return resultobj;
8531 fail:
8532 return NULL;
8533}
8534
8535
8536static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8537 PyObject *resultobj;
8538 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8539 int result;
8540 PyObject * obj0 = 0 ;
8541 char *kwnames[] = {
8542 (char *) "self", NULL
8543 };
8544
8545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
8546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8547 result = (int) ((arg1)->m_exitcode);
8548
8549 resultobj = PyInt_FromLong((long)result);
8550 return resultobj;
8551 fail:
8552 return NULL;
8553}
8554
8555
8556static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
8557 PyObject *obj;
8558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8559 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
8560 Py_INCREF(obj);
8561 return Py_BuildValue((char *)"");
8562}
8563static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj;
8565 wxString *arg1 = 0 ;
8566 int arg2 = (int) wxEXEC_ASYNC ;
8567 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
8568 long result;
e811c8ce 8569 bool temp1 = False ;
d14a1e28
RD
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj2 = 0 ;
8572 char *kwnames[] = {
8573 (char *) "command",(char *) "flags",(char *) "process", NULL
8574 };
8575
8576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Execute",kwnames,&obj0,&arg2,&obj2)) goto fail;
8577 {
8578 arg1 = wxString_in_helper(obj0);
8579 if (arg1 == NULL) SWIG_fail;
e811c8ce 8580 temp1 = True;
d14a1e28
RD
8581 }
8582 if (obj2) {
8583 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8584 }
8585 {
8586 PyThreadState* __tstate = wxPyBeginAllowThreads();
8587 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
8588
8589 wxPyEndAllowThreads(__tstate);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 }
8592 resultobj = PyInt_FromLong((long)result);
8593 {
8594 if (temp1)
8595 delete arg1;
8596 }
8597 return resultobj;
8598 fail:
8599 {
8600 if (temp1)
8601 delete arg1;
8602 }
8603 return NULL;
8604}
8605
8606
8607static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
8608 PyObject *resultobj;
8609 int arg1 = (int) wxJOYSTICK1 ;
8610 wxJoystick *result;
8611 char *kwnames[] = {
8612 (char *) "joystick", NULL
8613 };
8614
8615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_Joystick",kwnames,&arg1)) goto fail;
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 result = (wxJoystick *)new wxJoystick(arg1);
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1);
8624 return resultobj;
8625 fail:
8626 return NULL;
8627}
8628
8629
8630static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
8631 PyObject *resultobj;
8632 wxJoystick *arg1 = (wxJoystick *) 0 ;
8633 PyObject * obj0 = 0 ;
8634 char *kwnames[] = {
8635 (char *) "self", NULL
8636 };
8637
8638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
8639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8640 {
8641 PyThreadState* __tstate = wxPyBeginAllowThreads();
8642 delete arg1;
8643
8644 wxPyEndAllowThreads(__tstate);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 Py_INCREF(Py_None); resultobj = Py_None;
8648 return resultobj;
8649 fail:
8650 return NULL;
8651}
8652
8653
8654static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj;
8656 wxJoystick *arg1 = (wxJoystick *) 0 ;
8657 wxPoint result;
8658 PyObject * obj0 = 0 ;
8659 char *kwnames[] = {
8660 (char *) "self", NULL
8661 };
8662
8663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
8664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8665 {
8666 PyThreadState* __tstate = wxPyBeginAllowThreads();
8667 result = (arg1)->GetPosition();
8668
8669 wxPyEndAllowThreads(__tstate);
8670 if (PyErr_Occurred()) SWIG_fail;
8671 }
8672 {
8673 wxPoint * resultptr;
8674 resultptr = new wxPoint((wxPoint &) result);
8675 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
8676 }
8677 return resultobj;
8678 fail:
8679 return NULL;
8680}
8681
8682
8683static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8684 PyObject *resultobj;
8685 wxJoystick *arg1 = (wxJoystick *) 0 ;
8686 int result;
8687 PyObject * obj0 = 0 ;
8688 char *kwnames[] = {
8689 (char *) "self", NULL
8690 };
8691
8692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
8693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 result = (int)(arg1)->GetZPosition();
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 resultobj = PyInt_FromLong((long)result);
8702 return resultobj;
8703 fail:
8704 return NULL;
8705}
8706
8707
8708static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
8709 PyObject *resultobj;
8710 wxJoystick *arg1 = (wxJoystick *) 0 ;
8711 int result;
8712 PyObject * obj0 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "self", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
8718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8719 {
8720 PyThreadState* __tstate = wxPyBeginAllowThreads();
8721 result = (int)(arg1)->GetButtonState();
8722
8723 wxPyEndAllowThreads(__tstate);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 resultobj = PyInt_FromLong((long)result);
8727 return resultobj;
8728 fail:
8729 return NULL;
8730}
8731
8732
8733static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8734 PyObject *resultobj;
8735 wxJoystick *arg1 = (wxJoystick *) 0 ;
8736 int result;
8737 PyObject * obj0 = 0 ;
8738 char *kwnames[] = {
8739 (char *) "self", NULL
8740 };
8741
8742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
8743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8744 {
8745 PyThreadState* __tstate = wxPyBeginAllowThreads();
8746 result = (int)(arg1)->GetPOVPosition();
8747
8748 wxPyEndAllowThreads(__tstate);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 resultobj = PyInt_FromLong((long)result);
8752 return resultobj;
8753 fail:
8754 return NULL;
8755}
8756
8757
8758static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8759 PyObject *resultobj;
8760 wxJoystick *arg1 = (wxJoystick *) 0 ;
8761 int result;
8762 PyObject * obj0 = 0 ;
8763 char *kwnames[] = {
8764 (char *) "self", NULL
8765 };
8766
8767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
8768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8769 {
8770 PyThreadState* __tstate = wxPyBeginAllowThreads();
8771 result = (int)(arg1)->GetPOVCTSPosition();
8772
8773 wxPyEndAllowThreads(__tstate);
8774 if (PyErr_Occurred()) SWIG_fail;
8775 }
8776 resultobj = PyInt_FromLong((long)result);
8777 return resultobj;
8778 fail:
8779 return NULL;
8780}
8781
8782
8783static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8784 PyObject *resultobj;
8785 wxJoystick *arg1 = (wxJoystick *) 0 ;
8786 int result;
8787 PyObject * obj0 = 0 ;
8788 char *kwnames[] = {
8789 (char *) "self", NULL
8790 };
8791
8792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
8793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 result = (int)(arg1)->GetRudderPosition();
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = PyInt_FromLong((long)result);
8802 return resultobj;
8803 fail:
8804 return NULL;
8805}
8806
8807
8808static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8809 PyObject *resultobj;
8810 wxJoystick *arg1 = (wxJoystick *) 0 ;
8811 int result;
8812 PyObject * obj0 = 0 ;
8813 char *kwnames[] = {
8814 (char *) "self", NULL
8815 };
8816
8817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
8818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8819 {
8820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8821 result = (int)(arg1)->GetUPosition();
8822
8823 wxPyEndAllowThreads(__tstate);
8824 if (PyErr_Occurred()) SWIG_fail;
8825 }
8826 resultobj = PyInt_FromLong((long)result);
8827 return resultobj;
8828 fail:
8829 return NULL;
8830}
8831
8832
8833static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8834 PyObject *resultobj;
8835 wxJoystick *arg1 = (wxJoystick *) 0 ;
8836 int result;
8837 PyObject * obj0 = 0 ;
8838 char *kwnames[] = {
8839 (char *) "self", NULL
8840 };
8841
8842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
8843 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 result = (int)(arg1)->GetVPosition();
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) SWIG_fail;
8850 }
8851 resultobj = PyInt_FromLong((long)result);
8852 return resultobj;
8853 fail:
8854 return NULL;
8855}
8856
8857
8858static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
8859 PyObject *resultobj;
8860 wxJoystick *arg1 = (wxJoystick *) 0 ;
8861 int result;
8862 PyObject * obj0 = 0 ;
8863 char *kwnames[] = {
8864 (char *) "self", NULL
8865 };
8866
8867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
8868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8869 {
8870 PyThreadState* __tstate = wxPyBeginAllowThreads();
8871 result = (int)(arg1)->GetMovementThreshold();
8872
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 resultobj = PyInt_FromLong((long)result);
8877 return resultobj;
8878 fail:
8879 return NULL;
8880}
8881
8882
8883static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
8884 PyObject *resultobj;
8885 wxJoystick *arg1 = (wxJoystick *) 0 ;
8886 int arg2 ;
8887 PyObject * obj0 = 0 ;
8888 char *kwnames[] = {
8889 (char *) "self",(char *) "threshold", NULL
8890 };
8891
8892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Joystick_SetMovementThreshold",kwnames,&obj0,&arg2)) goto fail;
8893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8894 {
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 (arg1)->SetMovementThreshold(arg2);
8897
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 Py_INCREF(Py_None); resultobj = Py_None;
8902 return resultobj;
8903 fail:
8904 return NULL;
8905}
8906
8907
8908static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj;
8910 wxJoystick *arg1 = (wxJoystick *) 0 ;
8911 bool result;
8912 PyObject * obj0 = 0 ;
8913 char *kwnames[] = {
8914 (char *) "self", NULL
8915 };
8916
8917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
8918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8919 {
8920 PyThreadState* __tstate = wxPyBeginAllowThreads();
8921 result = (bool)(arg1)->IsOk();
8922
8923 wxPyEndAllowThreads(__tstate);
8924 if (PyErr_Occurred()) SWIG_fail;
8925 }
8926 resultobj = PyInt_FromLong((long)result);
8927 return resultobj;
8928 fail:
8929 return NULL;
8930}
8931
8932
8933static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
8934 PyObject *resultobj;
8935 wxJoystick *arg1 = (wxJoystick *) 0 ;
8936 int result;
8937 PyObject * obj0 = 0 ;
8938 char *kwnames[] = {
8939 (char *) "self", NULL
8940 };
8941
8942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
8943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8944 {
8945 PyThreadState* __tstate = wxPyBeginAllowThreads();
8946 result = (int)(arg1)->GetNumberJoysticks();
8947
8948 wxPyEndAllowThreads(__tstate);
8949 if (PyErr_Occurred()) SWIG_fail;
8950 }
8951 resultobj = PyInt_FromLong((long)result);
8952 return resultobj;
8953 fail:
8954 return NULL;
8955}
8956
8957
8958static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
8959 PyObject *resultobj;
8960 wxJoystick *arg1 = (wxJoystick *) 0 ;
8961 int result;
8962 PyObject * obj0 = 0 ;
8963 char *kwnames[] = {
8964 (char *) "self", NULL
8965 };
8966
8967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
8968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8969 {
8970 PyThreadState* __tstate = wxPyBeginAllowThreads();
8971 result = (int)(arg1)->GetManufacturerId();
8972
8973 wxPyEndAllowThreads(__tstate);
8974 if (PyErr_Occurred()) SWIG_fail;
8975 }
8976 resultobj = PyInt_FromLong((long)result);
8977 return resultobj;
8978 fail:
8979 return NULL;
8980}
8981
8982
8983static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
8984 PyObject *resultobj;
8985 wxJoystick *arg1 = (wxJoystick *) 0 ;
8986 int result;
8987 PyObject * obj0 = 0 ;
8988 char *kwnames[] = {
8989 (char *) "self", NULL
8990 };
8991
8992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
8993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8994 {
8995 PyThreadState* __tstate = wxPyBeginAllowThreads();
8996 result = (int)(arg1)->GetProductId();
8997
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 resultobj = PyInt_FromLong((long)result);
9002 return resultobj;
9003 fail:
9004 return NULL;
9005}
9006
9007
9008static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9009 PyObject *resultobj;
9010 wxJoystick *arg1 = (wxJoystick *) 0 ;
9011 wxString result;
9012 PyObject * obj0 = 0 ;
9013 char *kwnames[] = {
9014 (char *) "self", NULL
9015 };
9016
9017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9019 {
9020 PyThreadState* __tstate = wxPyBeginAllowThreads();
9021 result = (arg1)->GetProductName();
9022
9023 wxPyEndAllowThreads(__tstate);
9024 if (PyErr_Occurred()) SWIG_fail;
9025 }
9026 {
9027#if wxUSE_UNICODE
9028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9029#else
9030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9031#endif
9032 }
9033 return resultobj;
9034 fail:
9035 return NULL;
9036}
9037
9038
9039static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj;
9041 wxJoystick *arg1 = (wxJoystick *) 0 ;
9042 int result;
9043 PyObject * obj0 = 0 ;
9044 char *kwnames[] = {
9045 (char *) "self", NULL
9046 };
9047
9048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9050 {
9051 PyThreadState* __tstate = wxPyBeginAllowThreads();
9052 result = (int)(arg1)->GetXMin();
9053
9054 wxPyEndAllowThreads(__tstate);
9055 if (PyErr_Occurred()) SWIG_fail;
9056 }
9057 resultobj = PyInt_FromLong((long)result);
9058 return resultobj;
9059 fail:
9060 return NULL;
9061}
9062
9063
9064static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9065 PyObject *resultobj;
9066 wxJoystick *arg1 = (wxJoystick *) 0 ;
9067 int result;
9068 PyObject * obj0 = 0 ;
9069 char *kwnames[] = {
9070 (char *) "self", NULL
9071 };
9072
9073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
9074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9075 {
9076 PyThreadState* __tstate = wxPyBeginAllowThreads();
9077 result = (int)(arg1)->GetYMin();
9078
9079 wxPyEndAllowThreads(__tstate);
9080 if (PyErr_Occurred()) SWIG_fail;
9081 }
9082 resultobj = PyInt_FromLong((long)result);
9083 return resultobj;
9084 fail:
9085 return NULL;
9086}
9087
9088
9089static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9090 PyObject *resultobj;
9091 wxJoystick *arg1 = (wxJoystick *) 0 ;
9092 int result;
9093 PyObject * obj0 = 0 ;
9094 char *kwnames[] = {
9095 (char *) "self", NULL
9096 };
9097
9098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 result = (int)(arg1)->GetZMin();
9103
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 resultobj = PyInt_FromLong((long)result);
9108 return resultobj;
9109 fail:
9110 return NULL;
9111}
9112
9113
9114static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9115 PyObject *resultobj;
9116 wxJoystick *arg1 = (wxJoystick *) 0 ;
9117 int result;
9118 PyObject * obj0 = 0 ;
9119 char *kwnames[] = {
9120 (char *) "self", NULL
9121 };
9122
9123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 result = (int)(arg1)->GetXMax();
9128
9129 wxPyEndAllowThreads(__tstate);
9130 if (PyErr_Occurred()) SWIG_fail;
9131 }
9132 resultobj = PyInt_FromLong((long)result);
9133 return resultobj;
9134 fail:
9135 return NULL;
9136}
9137
9138
9139static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9140 PyObject *resultobj;
9141 wxJoystick *arg1 = (wxJoystick *) 0 ;
9142 int result;
9143 PyObject * obj0 = 0 ;
9144 char *kwnames[] = {
9145 (char *) "self", NULL
9146 };
9147
9148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
9149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 result = (int)(arg1)->GetYMax();
9153
9154 wxPyEndAllowThreads(__tstate);
9155 if (PyErr_Occurred()) SWIG_fail;
9156 }
9157 resultobj = PyInt_FromLong((long)result);
9158 return resultobj;
9159 fail:
9160 return NULL;
9161}
9162
9163
9164static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9165 PyObject *resultobj;
9166 wxJoystick *arg1 = (wxJoystick *) 0 ;
9167 int result;
9168 PyObject * obj0 = 0 ;
9169 char *kwnames[] = {
9170 (char *) "self", NULL
9171 };
9172
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
9174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9175 {
9176 PyThreadState* __tstate = wxPyBeginAllowThreads();
9177 result = (int)(arg1)->GetZMax();
9178
9179 wxPyEndAllowThreads(__tstate);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 }
9182 resultobj = PyInt_FromLong((long)result);
9183 return resultobj;
9184 fail:
9185 return NULL;
9186}
9187
9188
9189static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9190 PyObject *resultobj;
9191 wxJoystick *arg1 = (wxJoystick *) 0 ;
9192 int result;
9193 PyObject * obj0 = 0 ;
9194 char *kwnames[] = {
9195 (char *) "self", NULL
9196 };
9197
9198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
9199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9200 {
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 result = (int)(arg1)->GetNumberButtons();
9203
9204 wxPyEndAllowThreads(__tstate);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 }
9207 resultobj = PyInt_FromLong((long)result);
9208 return resultobj;
9209 fail:
9210 return NULL;
9211}
9212
9213
9214static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
9215 PyObject *resultobj;
9216 wxJoystick *arg1 = (wxJoystick *) 0 ;
9217 int result;
9218 PyObject * obj0 = 0 ;
9219 char *kwnames[] = {
9220 (char *) "self", NULL
9221 };
9222
9223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
9224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9225 {
9226 PyThreadState* __tstate = wxPyBeginAllowThreads();
9227 result = (int)(arg1)->GetNumberAxes();
9228
9229 wxPyEndAllowThreads(__tstate);
9230 if (PyErr_Occurred()) SWIG_fail;
9231 }
9232 resultobj = PyInt_FromLong((long)result);
9233 return resultobj;
9234 fail:
9235 return NULL;
9236}
9237
9238
9239static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9240 PyObject *resultobj;
9241 wxJoystick *arg1 = (wxJoystick *) 0 ;
9242 int result;
9243 PyObject * obj0 = 0 ;
9244 char *kwnames[] = {
9245 (char *) "self", NULL
9246 };
9247
9248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
9249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9250 {
9251 PyThreadState* __tstate = wxPyBeginAllowThreads();
9252 result = (int)(arg1)->GetMaxButtons();
9253
9254 wxPyEndAllowThreads(__tstate);
9255 if (PyErr_Occurred()) SWIG_fail;
9256 }
9257 resultobj = PyInt_FromLong((long)result);
9258 return resultobj;
9259 fail:
9260 return NULL;
9261}
9262
9263
9264static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
9265 PyObject *resultobj;
9266 wxJoystick *arg1 = (wxJoystick *) 0 ;
9267 int result;
9268 PyObject * obj0 = 0 ;
9269 char *kwnames[] = {
9270 (char *) "self", NULL
9271 };
9272
9273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
9274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9275 {
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 result = (int)(arg1)->GetMaxAxes();
9278
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) SWIG_fail;
9281 }
9282 resultobj = PyInt_FromLong((long)result);
9283 return resultobj;
9284 fail:
9285 return NULL;
9286}
9287
9288
9289static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9290 PyObject *resultobj;
9291 wxJoystick *arg1 = (wxJoystick *) 0 ;
9292 int result;
9293 PyObject * obj0 = 0 ;
9294 char *kwnames[] = {
9295 (char *) "self", NULL
9296 };
9297
9298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
9299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 result = (int)(arg1)->GetPollingMin();
9303
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 resultobj = PyInt_FromLong((long)result);
9308 return resultobj;
9309 fail:
9310 return NULL;
9311}
9312
9313
9314static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9315 PyObject *resultobj;
9316 wxJoystick *arg1 = (wxJoystick *) 0 ;
9317 int result;
9318 PyObject * obj0 = 0 ;
9319 char *kwnames[] = {
9320 (char *) "self", NULL
9321 };
9322
9323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
9324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 result = (int)(arg1)->GetPollingMax();
9328
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 resultobj = PyInt_FromLong((long)result);
9333 return resultobj;
9334 fail:
9335 return NULL;
9336}
9337
9338
9339static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj;
9341 wxJoystick *arg1 = (wxJoystick *) 0 ;
9342 int result;
9343 PyObject * obj0 = 0 ;
9344 char *kwnames[] = {
9345 (char *) "self", NULL
9346 };
9347
9348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
9349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9350 {
9351 PyThreadState* __tstate = wxPyBeginAllowThreads();
9352 result = (int)(arg1)->GetRudderMin();
9353
9354 wxPyEndAllowThreads(__tstate);
9355 if (PyErr_Occurred()) SWIG_fail;
9356 }
9357 resultobj = PyInt_FromLong((long)result);
9358 return resultobj;
9359 fail:
9360 return NULL;
9361}
9362
9363
9364static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9365 PyObject *resultobj;
9366 wxJoystick *arg1 = (wxJoystick *) 0 ;
9367 int result;
9368 PyObject * obj0 = 0 ;
9369 char *kwnames[] = {
9370 (char *) "self", NULL
9371 };
9372
9373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
9374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 result = (int)(arg1)->GetRudderMax();
9378
9379 wxPyEndAllowThreads(__tstate);
9380 if (PyErr_Occurred()) SWIG_fail;
9381 }
9382 resultobj = PyInt_FromLong((long)result);
9383 return resultobj;
9384 fail:
9385 return NULL;
9386}
9387
9388
9389static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj;
9391 wxJoystick *arg1 = (wxJoystick *) 0 ;
9392 int result;
9393 PyObject * obj0 = 0 ;
9394 char *kwnames[] = {
9395 (char *) "self", NULL
9396 };
9397
9398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
9399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9400 {
9401 PyThreadState* __tstate = wxPyBeginAllowThreads();
9402 result = (int)(arg1)->GetUMin();
9403
9404 wxPyEndAllowThreads(__tstate);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 resultobj = PyInt_FromLong((long)result);
9408 return resultobj;
9409 fail:
9410 return NULL;
9411}
9412
9413
9414static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9415 PyObject *resultobj;
9416 wxJoystick *arg1 = (wxJoystick *) 0 ;
9417 int result;
9418 PyObject * obj0 = 0 ;
9419 char *kwnames[] = {
9420 (char *) "self", NULL
9421 };
9422
9423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
9424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9425 {
9426 PyThreadState* __tstate = wxPyBeginAllowThreads();
9427 result = (int)(arg1)->GetUMax();
9428
9429 wxPyEndAllowThreads(__tstate);
9430 if (PyErr_Occurred()) SWIG_fail;
9431 }
9432 resultobj = PyInt_FromLong((long)result);
9433 return resultobj;
9434 fail:
9435 return NULL;
9436}
9437
9438
9439static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9440 PyObject *resultobj;
9441 wxJoystick *arg1 = (wxJoystick *) 0 ;
9442 int result;
9443 PyObject * obj0 = 0 ;
9444 char *kwnames[] = {
9445 (char *) "self", NULL
9446 };
9447
9448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
9449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9450 {
9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
9452 result = (int)(arg1)->GetVMin();
9453
9454 wxPyEndAllowThreads(__tstate);
9455 if (PyErr_Occurred()) SWIG_fail;
9456 }
9457 resultobj = PyInt_FromLong((long)result);
9458 return resultobj;
9459 fail:
9460 return NULL;
9461}
9462
9463
9464static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9465 PyObject *resultobj;
9466 wxJoystick *arg1 = (wxJoystick *) 0 ;
9467 int result;
9468 PyObject * obj0 = 0 ;
9469 char *kwnames[] = {
9470 (char *) "self", NULL
9471 };
9472
9473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
9474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 result = (int)(arg1)->GetVMax();
9478
9479 wxPyEndAllowThreads(__tstate);
9480 if (PyErr_Occurred()) SWIG_fail;
9481 }
9482 resultobj = PyInt_FromLong((long)result);
9483 return resultobj;
9484 fail:
9485 return NULL;
9486}
9487
9488
9489static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj;
9491 wxJoystick *arg1 = (wxJoystick *) 0 ;
9492 bool result;
9493 PyObject * obj0 = 0 ;
9494 char *kwnames[] = {
9495 (char *) "self", NULL
9496 };
9497
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
9499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 result = (bool)(arg1)->HasRudder();
9503
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = PyInt_FromLong((long)result);
9508 return resultobj;
9509 fail:
9510 return NULL;
9511}
9512
9513
9514static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj;
9516 wxJoystick *arg1 = (wxJoystick *) 0 ;
9517 bool result;
9518 PyObject * obj0 = 0 ;
9519 char *kwnames[] = {
9520 (char *) "self", NULL
9521 };
9522
9523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
9524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9525 {
9526 PyThreadState* __tstate = wxPyBeginAllowThreads();
9527 result = (bool)(arg1)->HasZ();
9528
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 resultobj = PyInt_FromLong((long)result);
9533 return resultobj;
9534 fail:
9535 return NULL;
9536}
9537
9538
9539static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
9540 PyObject *resultobj;
9541 wxJoystick *arg1 = (wxJoystick *) 0 ;
9542 bool result;
9543 PyObject * obj0 = 0 ;
9544 char *kwnames[] = {
9545 (char *) "self", NULL
9546 };
9547
9548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
9549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9550 {
9551 PyThreadState* __tstate = wxPyBeginAllowThreads();
9552 result = (bool)(arg1)->HasU();
9553
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = PyInt_FromLong((long)result);
9558 return resultobj;
9559 fail:
9560 return NULL;
9561}
9562
9563
9564static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
9565 PyObject *resultobj;
9566 wxJoystick *arg1 = (wxJoystick *) 0 ;
9567 bool result;
9568 PyObject * obj0 = 0 ;
9569 char *kwnames[] = {
9570 (char *) "self", NULL
9571 };
9572
9573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
9574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (bool)(arg1)->HasV();
9578
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 resultobj = PyInt_FromLong((long)result);
9583 return resultobj;
9584 fail:
9585 return NULL;
9586}
9587
9588
9589static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
9590 PyObject *resultobj;
9591 wxJoystick *arg1 = (wxJoystick *) 0 ;
9592 bool result;
9593 PyObject * obj0 = 0 ;
9594 char *kwnames[] = {
9595 (char *) "self", NULL
9596 };
9597
9598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
9599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9600 {
9601 PyThreadState* __tstate = wxPyBeginAllowThreads();
9602 result = (bool)(arg1)->HasPOV();
9603
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 resultobj = PyInt_FromLong((long)result);
9608 return resultobj;
9609 fail:
9610 return NULL;
9611}
9612
9613
9614static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
9615 PyObject *resultobj;
9616 wxJoystick *arg1 = (wxJoystick *) 0 ;
9617 bool result;
9618 PyObject * obj0 = 0 ;
9619 char *kwnames[] = {
9620 (char *) "self", NULL
9621 };
9622
9623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
9624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9625 {
9626 PyThreadState* __tstate = wxPyBeginAllowThreads();
9627 result = (bool)(arg1)->HasPOV4Dir();
9628
9629 wxPyEndAllowThreads(__tstate);
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 resultobj = PyInt_FromLong((long)result);
9633 return resultobj;
9634 fail:
9635 return NULL;
9636}
9637
9638
9639static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
9640 PyObject *resultobj;
9641 wxJoystick *arg1 = (wxJoystick *) 0 ;
9642 bool result;
9643 PyObject * obj0 = 0 ;
9644 char *kwnames[] = {
9645 (char *) "self", NULL
9646 };
9647
9648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
9649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9650 {
9651 PyThreadState* __tstate = wxPyBeginAllowThreads();
9652 result = (bool)(arg1)->HasPOVCTS();
9653
9654 wxPyEndAllowThreads(__tstate);
9655 if (PyErr_Occurred()) SWIG_fail;
9656 }
9657 resultobj = PyInt_FromLong((long)result);
9658 return resultobj;
9659 fail:
9660 return NULL;
9661}
9662
9663
9664static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
9665 PyObject *resultobj;
9666 wxJoystick *arg1 = (wxJoystick *) 0 ;
9667 wxWindow *arg2 = (wxWindow *) 0 ;
9668 int arg3 = (int) 0 ;
9669 bool result;
9670 PyObject * obj0 = 0 ;
9671 PyObject * obj1 = 0 ;
9672 char *kwnames[] = {
9673 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
9674 };
9675
9676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Joystick_SetCapture",kwnames,&obj0,&obj1,&arg3)) goto fail;
9677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9678 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 result = (bool)(arg1)->SetCapture(arg2,arg3);
9682
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) SWIG_fail;
9685 }
9686 resultobj = PyInt_FromLong((long)result);
9687 return resultobj;
9688 fail:
9689 return NULL;
9690}
9691
9692
9693static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
9694 PyObject *resultobj;
9695 wxJoystick *arg1 = (wxJoystick *) 0 ;
9696 bool result;
9697 PyObject * obj0 = 0 ;
9698 char *kwnames[] = {
9699 (char *) "self", NULL
9700 };
9701
9702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
9703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9704 {
9705 PyThreadState* __tstate = wxPyBeginAllowThreads();
9706 result = (bool)(arg1)->ReleaseCapture();
9707
9708 wxPyEndAllowThreads(__tstate);
9709 if (PyErr_Occurred()) SWIG_fail;
9710 }
9711 resultobj = PyInt_FromLong((long)result);
9712 return resultobj;
9713 fail:
9714 return NULL;
9715}
9716
9717
9718static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
9719 PyObject *obj;
9720 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9721 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
9722 Py_INCREF(obj);
9723 return Py_BuildValue((char *)"");
9724}
9725static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj;
9727 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9728 wxPoint *arg2 = (wxPoint *) 0 ;
9729 PyObject * obj0 = 0 ;
9730 PyObject * obj1 = 0 ;
9731 char *kwnames[] = {
9732 (char *) "self",(char *) "m_pos", NULL
9733 };
9734
9735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
9736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9737 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9738 if (arg1) (arg1)->m_pos = *arg2;
9739
9740 Py_INCREF(Py_None); resultobj = Py_None;
9741 return resultobj;
9742 fail:
9743 return NULL;
9744}
9745
9746
9747static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj;
9749 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9750 wxPoint *result;
9751 PyObject * obj0 = 0 ;
9752 char *kwnames[] = {
9753 (char *) "self", NULL
9754 };
9755
9756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
9757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9758 result = (wxPoint *)& ((arg1)->m_pos);
9759
9760 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
9761 return resultobj;
9762 fail:
9763 return NULL;
9764}
9765
9766
9767static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9768 PyObject *resultobj;
9769 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9770 int arg2 ;
9771 PyObject * obj0 = 0 ;
9772 char *kwnames[] = {
9773 (char *) "self",(char *) "m_zPosition", NULL
9774 };
9775
9776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_zPosition_set",kwnames,&obj0,&arg2)) goto fail;
9777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9778 if (arg1) (arg1)->m_zPosition = arg2;
9779
9780 Py_INCREF(Py_None); resultobj = Py_None;
9781 return resultobj;
9782 fail:
9783 return NULL;
9784}
9785
9786
9787static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9788 PyObject *resultobj;
9789 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9790 int result;
9791 PyObject * obj0 = 0 ;
9792 char *kwnames[] = {
9793 (char *) "self", NULL
9794 };
9795
9796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
9797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9798 result = (int) ((arg1)->m_zPosition);
9799
9800 resultobj = PyInt_FromLong((long)result);
9801 return resultobj;
9802 fail:
9803 return NULL;
9804}
9805
9806
9807static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj;
9809 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9810 int arg2 ;
9811 PyObject * obj0 = 0 ;
9812 char *kwnames[] = {
9813 (char *) "self",(char *) "m_buttonChange", NULL
9814 };
9815
9816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&arg2)) goto fail;
9817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9818 if (arg1) (arg1)->m_buttonChange = arg2;
9819
9820 Py_INCREF(Py_None); resultobj = Py_None;
9821 return resultobj;
9822 fail:
9823 return NULL;
9824}
9825
9826
9827static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj;
9829 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9830 int result;
9831 PyObject * obj0 = 0 ;
9832 char *kwnames[] = {
9833 (char *) "self", NULL
9834 };
9835
9836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
9837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9838 result = (int) ((arg1)->m_buttonChange);
9839
9840 resultobj = PyInt_FromLong((long)result);
9841 return resultobj;
9842 fail:
9843 return NULL;
9844}
9845
9846
9847static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9848 PyObject *resultobj;
9849 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9850 int arg2 ;
9851 PyObject * obj0 = 0 ;
9852 char *kwnames[] = {
9853 (char *) "self",(char *) "m_buttonState", NULL
9854 };
9855
9856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonState_set",kwnames,&obj0,&arg2)) goto fail;
9857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9858 if (arg1) (arg1)->m_buttonState = arg2;
9859
9860 Py_INCREF(Py_None); resultobj = Py_None;
9861 return resultobj;
9862 fail:
9863 return NULL;
9864}
9865
9866
9867static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9868 PyObject *resultobj;
9869 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9870 int result;
9871 PyObject * obj0 = 0 ;
9872 char *kwnames[] = {
9873 (char *) "self", NULL
9874 };
9875
9876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
9877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9878 result = (int) ((arg1)->m_buttonState);
9879
9880 resultobj = PyInt_FromLong((long)result);
9881 return resultobj;
9882 fail:
9883 return NULL;
9884}
9885
9886
9887static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj;
9889 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9890 int arg2 ;
9891 PyObject * obj0 = 0 ;
9892 char *kwnames[] = {
9893 (char *) "self",(char *) "m_joyStick", NULL
9894 };
9895
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_joyStick_set",kwnames,&obj0,&arg2)) goto fail;
9897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9898 if (arg1) (arg1)->m_joyStick = arg2;
9899
9900 Py_INCREF(Py_None); resultobj = Py_None;
9901 return resultobj;
9902 fail:
9903 return NULL;
9904}
9905
9906
9907static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj;
9909 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9910 int result;
9911 PyObject * obj0 = 0 ;
9912 char *kwnames[] = {
9913 (char *) "self", NULL
9914 };
9915
9916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
9917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9918 result = (int) ((arg1)->m_joyStick);
9919
9920 resultobj = PyInt_FromLong((long)result);
9921 return resultobj;
9922 fail:
9923 return NULL;
9924}
9925
9926
9927static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9928 PyObject *resultobj;
9929 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
9930 int arg2 = (int) 0 ;
9931 int arg3 = (int) wxJOYSTICK1 ;
9932 int arg4 = (int) 0 ;
9933 wxJoystickEvent *result;
9934 char *kwnames[] = {
9935 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
9936 };
9937
9938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_JoystickEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
9939 {
9940 PyThreadState* __tstate = wxPyBeginAllowThreads();
9941 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
9942
9943 wxPyEndAllowThreads(__tstate);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 }
9946 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1);
9947 return resultobj;
9948 fail:
9949 return NULL;
9950}
9951
9952
9953static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj;
9955 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9956 wxPoint result;
9957 PyObject * obj0 = 0 ;
9958 char *kwnames[] = {
9959 (char *) "self", NULL
9960 };
9961
9962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
9963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9964 {
9965 PyThreadState* __tstate = wxPyBeginAllowThreads();
9966 result = ((wxJoystickEvent const *)arg1)->GetPosition();
9967
9968 wxPyEndAllowThreads(__tstate);
9969 if (PyErr_Occurred()) SWIG_fail;
9970 }
9971 {
9972 wxPoint * resultptr;
9973 resultptr = new wxPoint((wxPoint &) result);
9974 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
9975 }
9976 return resultobj;
9977 fail:
9978 return NULL;
9979}
9980
9981
9982static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9983 PyObject *resultobj;
9984 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9985 int result;
9986 PyObject * obj0 = 0 ;
9987 char *kwnames[] = {
9988 (char *) "self", NULL
9989 };
9990
9991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
9992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9993 {
9994 PyThreadState* __tstate = wxPyBeginAllowThreads();
9995 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
9996
9997 wxPyEndAllowThreads(__tstate);
9998 if (PyErr_Occurred()) SWIG_fail;
9999 }
10000 resultobj = PyInt_FromLong((long)result);
10001 return resultobj;
10002 fail:
10003 return NULL;
10004}
10005
10006
10007static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10008 PyObject *resultobj;
10009 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10010 int result;
10011 PyObject * obj0 = 0 ;
10012 char *kwnames[] = {
10013 (char *) "self", NULL
10014 };
10015
10016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10018 {
10019 PyThreadState* __tstate = wxPyBeginAllowThreads();
10020 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10021
10022 wxPyEndAllowThreads(__tstate);
10023 if (PyErr_Occurred()) SWIG_fail;
10024 }
10025 resultobj = PyInt_FromLong((long)result);
10026 return resultobj;
10027 fail:
10028 return NULL;
10029}
10030
10031
10032static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10033 PyObject *resultobj;
10034 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10035 int result;
10036 PyObject * obj0 = 0 ;
10037 char *kwnames[] = {
10038 (char *) "self", NULL
10039 };
10040
10041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = PyInt_FromLong((long)result);
10051 return resultobj;
10052 fail:
10053 return NULL;
10054}
10055
10056
10057static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj;
10059 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10060 int result;
10061 PyObject * obj0 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "self", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
10067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10068 {
10069 PyThreadState* __tstate = wxPyBeginAllowThreads();
10070 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
10071
10072 wxPyEndAllowThreads(__tstate);
10073 if (PyErr_Occurred()) SWIG_fail;
10074 }
10075 resultobj = PyInt_FromLong((long)result);
10076 return resultobj;
10077 fail:
10078 return NULL;
10079}
10080
10081
10082static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10085 int arg2 ;
10086 PyObject * obj0 = 0 ;
10087 char *kwnames[] = {
10088 (char *) "self",(char *) "stick", NULL
10089 };
10090
10091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetJoystick",kwnames,&obj0,&arg2)) goto fail;
10092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 (arg1)->SetJoystick(arg2);
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 Py_INCREF(Py_None); resultobj = Py_None;
10101 return resultobj;
10102 fail:
10103 return NULL;
10104}
10105
10106
10107static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj;
10109 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10110 int arg2 ;
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "self",(char *) "state", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonState",kwnames,&obj0,&arg2)) goto fail;
10117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 (arg1)->SetButtonState(arg2);
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 Py_INCREF(Py_None); resultobj = Py_None;
10126 return resultobj;
10127 fail:
10128 return NULL;
10129}
10130
10131
10132static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj;
10134 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10135 int arg2 ;
10136 PyObject * obj0 = 0 ;
10137 char *kwnames[] = {
10138 (char *) "self",(char *) "change", NULL
10139 };
10140
10141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonChange",kwnames,&obj0,&arg2)) goto fail;
10142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 (arg1)->SetButtonChange(arg2);
10146
10147 wxPyEndAllowThreads(__tstate);
10148 if (PyErr_Occurred()) SWIG_fail;
10149 }
10150 Py_INCREF(Py_None); resultobj = Py_None;
10151 return resultobj;
10152 fail:
10153 return NULL;
10154}
10155
10156
10157static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10158 PyObject *resultobj;
10159 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10160 wxPoint *arg2 = 0 ;
10161 wxPoint temp2 ;
10162 PyObject * obj0 = 0 ;
10163 PyObject * obj1 = 0 ;
10164 char *kwnames[] = {
10165 (char *) "self",(char *) "pos", NULL
10166 };
10167
10168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
10169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10170 {
10171 arg2 = &temp2;
10172 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10173 }
10174 {
10175 PyThreadState* __tstate = wxPyBeginAllowThreads();
10176 (arg1)->SetPosition((wxPoint const &)*arg2);
10177
10178 wxPyEndAllowThreads(__tstate);
10179 if (PyErr_Occurred()) SWIG_fail;
10180 }
10181 Py_INCREF(Py_None); resultobj = Py_None;
10182 return resultobj;
10183 fail:
10184 return NULL;
10185}
10186
10187
10188static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10189 PyObject *resultobj;
10190 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10191 int arg2 ;
10192 PyObject * obj0 = 0 ;
10193 char *kwnames[] = {
10194 (char *) "self",(char *) "zPos", NULL
10195 };
10196
10197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetZPosition",kwnames,&obj0,&arg2)) goto fail;
10198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 (arg1)->SetZPosition(arg2);
10202
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 Py_INCREF(Py_None); resultobj = Py_None;
10207 return resultobj;
10208 fail:
10209 return NULL;
10210}
10211
10212
10213static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj;
10215 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10216 bool result;
10217 PyObject * obj0 = 0 ;
10218 char *kwnames[] = {
10219 (char *) "self", NULL
10220 };
10221
10222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
10223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = PyInt_FromLong((long)result);
10232 return resultobj;
10233 fail:
10234 return NULL;
10235}
10236
10237
10238static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj;
10240 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10241 bool result;
10242 PyObject * obj0 = 0 ;
10243 char *kwnames[] = {
10244 (char *) "self", NULL
10245 };
10246
10247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
10248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10249 {
10250 PyThreadState* __tstate = wxPyBeginAllowThreads();
10251 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
10252
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
10256 resultobj = PyInt_FromLong((long)result);
10257 return resultobj;
10258 fail:
10259 return NULL;
10260}
10261
10262
10263static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
10264 PyObject *resultobj;
10265 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10266 bool result;
10267 PyObject * obj0 = 0 ;
10268 char *kwnames[] = {
10269 (char *) "self", NULL
10270 };
10271
10272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
10273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10274 {
10275 PyThreadState* __tstate = wxPyBeginAllowThreads();
10276 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
10277
10278 wxPyEndAllowThreads(__tstate);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 resultobj = PyInt_FromLong((long)result);
10282 return resultobj;
10283 fail:
10284 return NULL;
10285}
10286
10287
10288static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
10289 PyObject *resultobj;
10290 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10291 int arg2 = (int) wxJOY_BUTTON_ANY ;
10292 bool result;
10293 PyObject * obj0 = 0 ;
10294 char *kwnames[] = {
10295 (char *) "self",(char *) "but", NULL
10296 };
10297
10298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail;
10299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
10303
10304 wxPyEndAllowThreads(__tstate);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 }
10307 resultobj = PyInt_FromLong((long)result);
10308 return resultobj;
10309 fail:
10310 return NULL;
10311}
10312
10313
10314static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
10315 PyObject *resultobj;
10316 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10317 int arg2 = (int) wxJOY_BUTTON_ANY ;
10318 bool result;
10319 PyObject * obj0 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self",(char *) "but", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10326 {
10327 PyThreadState* __tstate = wxPyBeginAllowThreads();
10328 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
10329
10330 wxPyEndAllowThreads(__tstate);
10331 if (PyErr_Occurred()) SWIG_fail;
10332 }
10333 resultobj = PyInt_FromLong((long)result);
10334 return resultobj;
10335 fail:
10336 return NULL;
10337}
10338
10339
10340static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
10341 PyObject *resultobj;
10342 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10343 int arg2 = (int) wxJOY_BUTTON_ANY ;
10344 bool result;
10345 PyObject * obj0 = 0 ;
10346 char *kwnames[] = {
10347 (char *) "self",(char *) "but", NULL
10348 };
10349
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail;
10351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
10355
10356 wxPyEndAllowThreads(__tstate);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
10359 resultobj = PyInt_FromLong((long)result);
10360 return resultobj;
10361 fail:
10362 return NULL;
10363}
10364
10365
10366static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
10367 PyObject *obj;
10368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10369 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
10370 Py_INCREF(obj);
10371 return Py_BuildValue((char *)"");
10372}
10373static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj;
10375 wxString *arg1 = 0 ;
e811c8ce 10376 bool arg2 = (bool) False ;
d14a1e28 10377 wxWave *result;
e811c8ce 10378 bool temp1 = False ;
d14a1e28
RD
10379 PyObject * obj0 = 0 ;
10380 PyObject * obj1 = 0 ;
10381 char *kwnames[] = {
10382 (char *) "fileName",(char *) "isResource", NULL
10383 };
10384
10385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail;
10386 {
10387 arg1 = wxString_in_helper(obj0);
10388 if (arg1 == NULL) SWIG_fail;
e811c8ce 10389 temp1 = True;
d14a1e28
RD
10390 }
10391 if (obj1) {
10392 arg2 = PyInt_AsLong(obj1) ? true : false;
10393 if (PyErr_Occurred()) SWIG_fail;
10394 }
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 result = (wxWave *)new wxWave((wxString const &)*arg1,arg2);
10398
10399 wxPyEndAllowThreads(__tstate);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1);
10403 {
10404 if (temp1)
10405 delete arg1;
10406 }
10407 return resultobj;
10408 fail:
10409 {
10410 if (temp1)
10411 delete arg1;
10412 }
10413 return NULL;
10414}
10415
10416
10417static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) {
10418 PyObject *resultobj;
10419 wxString *arg1 = 0 ;
10420 wxWave *result;
e811c8ce 10421 bool temp1 = False ;
d14a1e28
RD
10422 PyObject * obj0 = 0 ;
10423 char *kwnames[] = {
10424 (char *) "data", NULL
10425 };
10426
10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail;
10428 {
10429 arg1 = wxString_in_helper(obj0);
10430 if (arg1 == NULL) SWIG_fail;
e811c8ce 10431 temp1 = True;
d14a1e28
RD
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (wxWave *)new_wxWave((wxString const &)*arg1);
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1);
10441 {
10442 if (temp1)
10443 delete arg1;
10444 }
10445 return resultobj;
10446 fail:
10447 {
10448 if (temp1)
10449 delete arg1;
10450 }
10451 return NULL;
10452}
10453
10454
10455static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) {
10456 PyObject *resultobj;
10457 wxWave *arg1 = (wxWave *) 0 ;
10458 PyObject * obj0 = 0 ;
10459 char *kwnames[] = {
10460 (char *) "self", NULL
10461 };
10462
10463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail;
10464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10465 {
10466 PyThreadState* __tstate = wxPyBeginAllowThreads();
10467 delete arg1;
10468
10469 wxPyEndAllowThreads(__tstate);
10470 if (PyErr_Occurred()) SWIG_fail;
10471 }
10472 Py_INCREF(Py_None); resultobj = Py_None;
10473 return resultobj;
10474 fail:
10475 return NULL;
10476}
10477
10478
10479static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10480 PyObject *resultobj;
10481 wxWave *arg1 = (wxWave *) 0 ;
10482 bool result;
10483 PyObject * obj0 = 0 ;
10484 char *kwnames[] = {
10485 (char *) "self", NULL
10486 };
10487
10488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail;
10489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10490 {
10491 PyThreadState* __tstate = wxPyBeginAllowThreads();
10492 result = (bool)((wxWave const *)arg1)->IsOk();
10493
10494 wxPyEndAllowThreads(__tstate);
10495 if (PyErr_Occurred()) SWIG_fail;
10496 }
10497 resultobj = PyInt_FromLong((long)result);
10498 return resultobj;
10499 fail:
10500 return NULL;
10501}
10502
10503
10504static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
10505 PyObject *resultobj;
10506 wxWave *arg1 = (wxWave *) 0 ;
e811c8ce
RD
10507 bool arg2 = (bool) True ;
10508 bool arg3 = (bool) False ;
d14a1e28
RD
10509 bool result;
10510 PyObject * obj0 = 0 ;
10511 PyObject * obj1 = 0 ;
10512 PyObject * obj2 = 0 ;
10513 char *kwnames[] = {
10514 (char *) "self",(char *) "async",(char *) "looped", NULL
10515 };
10516
10517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail;
10518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10519 if (obj1) {
10520 arg2 = PyInt_AsLong(obj1) ? true : false;
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 if (obj2) {
10524 arg3 = PyInt_AsLong(obj2) ? true : false;
10525 if (PyErr_Occurred()) SWIG_fail;
10526 }
10527 {
10528 PyThreadState* __tstate = wxPyBeginAllowThreads();
6c3b4aae 10529 result = (bool)(arg1)->Play(arg2,arg3);
d14a1e28
RD
10530
10531 wxPyEndAllowThreads(__tstate);
10532 if (PyErr_Occurred()) SWIG_fail;
10533 }
10534 resultobj = PyInt_FromLong((long)result);
10535 return resultobj;
10536 fail:
10537 return NULL;
10538}
10539
10540
10541static PyObject * Wave_swigregister(PyObject *self, PyObject *args) {
10542 PyObject *obj;
10543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10544 SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj);
10545 Py_INCREF(obj);
10546 return Py_BuildValue((char *)"");
10547}
10548static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10549 PyObject *resultobj;
10550 wxString *arg1 = 0 ;
10551 wxString *arg2 = 0 ;
10552 wxString *arg3 = 0 ;
10553 wxString *arg4 = 0 ;
10554 wxFileTypeInfo *result;
e811c8ce
RD
10555 bool temp1 = False ;
10556 bool temp2 = False ;
10557 bool temp3 = False ;
10558 bool temp4 = False ;
d14a1e28
RD
10559 PyObject * obj0 = 0 ;
10560 PyObject * obj1 = 0 ;
10561 PyObject * obj2 = 0 ;
10562 PyObject * obj3 = 0 ;
10563 char *kwnames[] = {
10564 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
10565 };
10566
10567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10568 {
10569 arg1 = wxString_in_helper(obj0);
10570 if (arg1 == NULL) SWIG_fail;
e811c8ce 10571 temp1 = True;
d14a1e28
RD
10572 }
10573 {
10574 arg2 = wxString_in_helper(obj1);
10575 if (arg2 == NULL) SWIG_fail;
e811c8ce 10576 temp2 = True;
d14a1e28
RD
10577 }
10578 {
10579 arg3 = wxString_in_helper(obj2);
10580 if (arg3 == NULL) SWIG_fail;
e811c8ce 10581 temp3 = True;
d14a1e28
RD
10582 }
10583 {
10584 arg4 = wxString_in_helper(obj3);
10585 if (arg4 == NULL) SWIG_fail;
e811c8ce 10586 temp4 = True;
d14a1e28
RD
10587 }
10588 {
10589 PyThreadState* __tstate = wxPyBeginAllowThreads();
10590 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
10591
10592 wxPyEndAllowThreads(__tstate);
10593 if (PyErr_Occurred()) SWIG_fail;
10594 }
10595 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
10596 {
10597 if (temp1)
10598 delete arg1;
10599 }
10600 {
10601 if (temp2)
10602 delete arg2;
10603 }
10604 {
10605 if (temp3)
10606 delete arg3;
10607 }
10608 {
10609 if (temp4)
10610 delete arg4;
10611 }
10612 return resultobj;
10613 fail:
10614 {
10615 if (temp1)
10616 delete arg1;
10617 }
10618 {
10619 if (temp2)
10620 delete arg2;
10621 }
10622 {
10623 if (temp3)
10624 delete arg3;
10625 }
10626 {
10627 if (temp4)
10628 delete arg4;
10629 }
10630 return NULL;
10631}
10632
10633
10634static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj;
10636 wxArrayString *arg1 = 0 ;
10637 wxFileTypeInfo *result;
10638 PyObject * obj0 = 0 ;
10639 char *kwnames[] = {
10640 (char *) "sArray", NULL
10641 };
10642
10643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
10644 {
10645 if (! PySequence_Check(obj0)) {
10646 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10647 SWIG_fail;
10648 }
10649 arg1 = new wxArrayString;
10650 int i, len=PySequence_Length(obj0);
10651 for (i=0; i<len; i++) {
10652 PyObject* item = PySequence_GetItem(obj0, i);
10653#if wxUSE_UNICODE
10654 PyObject* str = PyObject_Unicode(item);
10655#else
10656 PyObject* str = PyObject_Str(item);
10657#endif
10658 arg1->Add(Py2wxString(str));
10659 Py_DECREF(item);
10660 Py_DECREF(str);
10661 }
10662 }
10663 {
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
10666
10667 wxPyEndAllowThreads(__tstate);
10668 if (PyErr_Occurred()) SWIG_fail;
10669 }
10670 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
10671 {
10672 if (arg1) delete arg1;
10673 }
10674 return resultobj;
10675 fail:
10676 {
10677 if (arg1) delete arg1;
10678 }
10679 return NULL;
10680}
10681
10682
10683static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10684 PyObject *resultobj;
10685 wxFileTypeInfo *result;
10686 char *kwnames[] = {
10687 NULL
10688 };
10689
10690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 result = (wxFileTypeInfo *)new wxFileTypeInfo();
10694
10695 wxPyEndAllowThreads(__tstate);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 }
10698 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
10699 return resultobj;
10700 fail:
10701 return NULL;
10702}
10703
10704
10705static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
10706 PyObject *resultobj;
10707 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10708 bool result;
10709 PyObject * obj0 = 0 ;
10710 char *kwnames[] = {
10711 (char *) "self", NULL
10712 };
10713
10714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
10715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10716 {
10717 PyThreadState* __tstate = wxPyBeginAllowThreads();
10718 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
10719
10720 wxPyEndAllowThreads(__tstate);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 resultobj = PyInt_FromLong((long)result);
10724 return resultobj;
10725 fail:
10726 return NULL;
10727}
10728
10729
10730static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10731 PyObject *resultobj;
10732 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10733 wxString *arg2 = 0 ;
10734 int arg3 = (int) 0 ;
e811c8ce 10735 bool temp2 = False ;
d14a1e28
RD
10736 PyObject * obj0 = 0 ;
10737 PyObject * obj1 = 0 ;
10738 char *kwnames[] = {
10739 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
10740 };
10741
10742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&arg3)) goto fail;
10743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10744 {
10745 arg2 = wxString_in_helper(obj1);
10746 if (arg2 == NULL) SWIG_fail;
e811c8ce 10747 temp2 = True;
d14a1e28
RD
10748 }
10749 {
10750 PyThreadState* __tstate = wxPyBeginAllowThreads();
10751 (arg1)->SetIcon((wxString const &)*arg2,arg3);
10752
10753 wxPyEndAllowThreads(__tstate);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 Py_INCREF(Py_None); resultobj = Py_None;
10757 {
10758 if (temp2)
10759 delete arg2;
10760 }
10761 return resultobj;
10762 fail:
10763 {
10764 if (temp2)
10765 delete arg2;
10766 }
10767 return NULL;
10768}
10769
10770
10771static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
10772 PyObject *resultobj;
10773 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10774 wxString *arg2 = 0 ;
e811c8ce 10775 bool temp2 = False ;
d14a1e28
RD
10776 PyObject * obj0 = 0 ;
10777 PyObject * obj1 = 0 ;
10778 char *kwnames[] = {
10779 (char *) "self",(char *) "shortDesc", NULL
10780 };
10781
10782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
10783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10784 {
10785 arg2 = wxString_in_helper(obj1);
10786 if (arg2 == NULL) SWIG_fail;
e811c8ce 10787 temp2 = True;
d14a1e28
RD
10788 }
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 (arg1)->SetShortDesc((wxString const &)*arg2);
10792
10793 wxPyEndAllowThreads(__tstate);
10794 if (PyErr_Occurred()) SWIG_fail;
10795 }
10796 Py_INCREF(Py_None); resultobj = Py_None;
10797 {
10798 if (temp2)
10799 delete arg2;
10800 }
10801 return resultobj;
10802 fail:
10803 {
10804 if (temp2)
10805 delete arg2;
10806 }
10807 return NULL;
10808}
10809
10810
10811static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
10812 PyObject *resultobj;
10813 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10814 wxString *result;
10815 PyObject * obj0 = 0 ;
10816 char *kwnames[] = {
10817 (char *) "self", NULL
10818 };
10819
10820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
10821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 {
10825 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
10826 result = (wxString *) &_result_ref;
10827 }
10828
10829 wxPyEndAllowThreads(__tstate);
10830 if (PyErr_Occurred()) SWIG_fail;
10831 }
cc6dd355
RD
10832 {
10833#if wxUSE_UNICODE
10834 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10835#else
10836 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10837#endif
10838 }
d14a1e28
RD
10839 return resultobj;
10840 fail:
10841 return NULL;
10842}
10843
10844
10845static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj;
10847 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10848 wxString *result;
10849 PyObject * obj0 = 0 ;
10850 char *kwnames[] = {
10851 (char *) "self", NULL
10852 };
10853
10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
10855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 {
10859 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
10860 result = (wxString *) &_result_ref;
10861 }
10862
10863 wxPyEndAllowThreads(__tstate);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 }
cc6dd355
RD
10866 {
10867#if wxUSE_UNICODE
10868 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10869#else
10870 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10871#endif
10872 }
d14a1e28
RD
10873 return resultobj;
10874 fail:
10875 return NULL;
10876}
10877
10878
10879static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj;
10881 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10882 wxString *result;
10883 PyObject * obj0 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10890 {
10891 PyThreadState* __tstate = wxPyBeginAllowThreads();
10892 {
10893 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
10894 result = (wxString *) &_result_ref;
10895 }
10896
10897 wxPyEndAllowThreads(__tstate);
10898 if (PyErr_Occurred()) SWIG_fail;
10899 }
cc6dd355
RD
10900 {
10901#if wxUSE_UNICODE
10902 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10903#else
10904 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10905#endif
10906 }
d14a1e28
RD
10907 return resultobj;
10908 fail:
10909 return NULL;
10910}
10911
10912
10913static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
10914 PyObject *resultobj;
10915 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10916 wxString *result;
10917 PyObject * obj0 = 0 ;
10918 char *kwnames[] = {
10919 (char *) "self", NULL
10920 };
10921
10922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
10923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10924 {
10925 PyThreadState* __tstate = wxPyBeginAllowThreads();
10926 {
10927 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
10928 result = (wxString *) &_result_ref;
10929 }
10930
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
cc6dd355
RD
10934 {
10935#if wxUSE_UNICODE
10936 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10937#else
10938 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10939#endif
10940 }
d14a1e28
RD
10941 return resultobj;
10942 fail:
10943 return NULL;
10944}
10945
10946
10947static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
10948 PyObject *resultobj;
10949 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10950 wxString *result;
10951 PyObject * obj0 = 0 ;
10952 char *kwnames[] = {
10953 (char *) "self", NULL
10954 };
10955
10956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
10957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 {
10961 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
10962 result = (wxString *) &_result_ref;
10963 }
10964
10965 wxPyEndAllowThreads(__tstate);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 }
cc6dd355
RD
10968 {
10969#if wxUSE_UNICODE
10970 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10971#else
10972 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10973#endif
10974 }
d14a1e28
RD
10975 return resultobj;
10976 fail:
10977 return NULL;
10978}
10979
10980
10981static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
10982 PyObject *resultobj;
10983 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10984 wxArrayString *result;
10985 PyObject * obj0 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self", NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
10991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10992 {
10993 PyThreadState* __tstate = wxPyBeginAllowThreads();
10994 {
10995 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
10996 result = (wxArrayString *) &_result_ref;
10997 }
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 {
11003 resultobj = wxArrayString2PyList_helper(*result);
11004 }
11005 return resultobj;
11006 fail:
11007 return NULL;
11008}
11009
11010
11011static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11012 PyObject *resultobj;
11013 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11014 int result;
11015 PyObject * obj0 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11022 {
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
11025
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 resultobj = PyInt_FromLong((long)result);
11030 return resultobj;
11031 fail:
11032 return NULL;
11033}
11034
11035
11036static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
11037 PyObject *resultobj;
11038 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11039 wxString *result;
11040 PyObject * obj0 = 0 ;
11041 char *kwnames[] = {
11042 (char *) "self", NULL
11043 };
11044
11045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
11046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11047 {
11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
11049 {
11050 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
11051 result = (wxString *) &_result_ref;
11052 }
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
cc6dd355
RD
11057 {
11058#if wxUSE_UNICODE
11059 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11060#else
11061 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11062#endif
11063 }
d14a1e28
RD
11064 return resultobj;
11065 fail:
11066 return NULL;
11067}
11068
11069
11070static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
11071 PyObject *resultobj;
11072 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11073 int result;
11074 PyObject * obj0 = 0 ;
11075 char *kwnames[] = {
11076 (char *) "self", NULL
11077 };
11078
11079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
11080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
11084
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 resultobj = PyInt_FromLong((long)result);
11089 return resultobj;
11090 fail:
11091 return NULL;
11092}
11093
11094
11095static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
11096 PyObject *obj;
11097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11098 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
11099 Py_INCREF(obj);
11100 return Py_BuildValue((char *)"");
11101}
11102static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
11103 PyObject *resultobj;
11104 wxFileTypeInfo *arg1 = 0 ;
11105 wxFileType *result;
11106 PyObject * obj0 = 0 ;
11107 char *kwnames[] = {
11108 (char *) "ftInfo", NULL
11109 };
11110
11111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
11112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11113 if (arg1 == NULL) {
11114 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11115 }
11116 {
11117 PyThreadState* __tstate = wxPyBeginAllowThreads();
11118 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
11119
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
11124 return resultobj;
11125 fail:
11126 return NULL;
11127}
11128
11129
11130static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj;
11132 wxFileType *arg1 = (wxFileType *) 0 ;
11133 PyObject * obj0 = 0 ;
11134 char *kwnames[] = {
11135 (char *) "self", NULL
11136 };
11137
11138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
11139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 delete arg1;
11143
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 Py_INCREF(Py_None); resultobj = Py_None;
11148 return resultobj;
11149 fail:
11150 return NULL;
11151}
11152
11153
11154static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
11155 PyObject *resultobj;
11156 wxFileType *arg1 = (wxFileType *) 0 ;
11157 PyObject *result;
11158 PyObject * obj0 = 0 ;
11159 char *kwnames[] = {
11160 (char *) "self", NULL
11161 };
11162
11163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
11164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11165 {
11166 PyThreadState* __tstate = wxPyBeginAllowThreads();
11167 result = (PyObject *)wxFileType_GetMimeType(arg1);
11168
11169 wxPyEndAllowThreads(__tstate);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 resultobj = result;
11173 return resultobj;
11174 fail:
11175 return NULL;
11176}
11177
11178
11179static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
11180 PyObject *resultobj;
11181 wxFileType *arg1 = (wxFileType *) 0 ;
11182 PyObject *result;
11183 PyObject * obj0 = 0 ;
11184 char *kwnames[] = {
11185 (char *) "self", NULL
11186 };
11187
11188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
11189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11190 {
11191 PyThreadState* __tstate = wxPyBeginAllowThreads();
11192 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
11193
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 resultobj = result;
11198 return resultobj;
11199 fail:
11200 return NULL;
11201}
11202
11203
11204static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
11205 PyObject *resultobj;
11206 wxFileType *arg1 = (wxFileType *) 0 ;
11207 PyObject *result;
11208 PyObject * obj0 = 0 ;
11209 char *kwnames[] = {
11210 (char *) "self", NULL
11211 };
11212
11213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
11214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11215 {
11216 PyThreadState* __tstate = wxPyBeginAllowThreads();
11217 result = (PyObject *)wxFileType_GetExtensions(arg1);
11218
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 resultobj = result;
11223 return resultobj;
11224 fail:
11225 return NULL;
11226}
11227
11228
11229static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11230 PyObject *resultobj;
11231 wxFileType *arg1 = (wxFileType *) 0 ;
11232 wxIcon *result;
11233 PyObject * obj0 = 0 ;
11234 char *kwnames[] = {
11235 (char *) "self", NULL
11236 };
11237
11238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
11239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11240 {
11241 PyThreadState* __tstate = wxPyBeginAllowThreads();
11242 result = (wxIcon *)wxFileType_GetIcon(arg1);
11243
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
11248 return resultobj;
11249 fail:
11250 return NULL;
11251}
11252
11253
11254static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11255 PyObject *resultobj;
11256 wxFileType *arg1 = (wxFileType *) 0 ;
11257 PyObject *result;
11258 PyObject * obj0 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "self", NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
11264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 result = (PyObject *)wxFileType_GetIconInfo(arg1);
11268
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 resultobj = result;
11273 return resultobj;
11274 fail:
11275 return NULL;
11276}
11277
11278
11279static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
11280 PyObject *resultobj;
11281 wxFileType *arg1 = (wxFileType *) 0 ;
11282 PyObject *result;
11283 PyObject * obj0 = 0 ;
11284 char *kwnames[] = {
11285 (char *) "self", NULL
11286 };
11287
11288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
11289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11290 {
11291 PyThreadState* __tstate = wxPyBeginAllowThreads();
11292 result = (PyObject *)wxFileType_GetDescription(arg1);
11293
11294 wxPyEndAllowThreads(__tstate);
11295 if (PyErr_Occurred()) SWIG_fail;
11296 }
11297 resultobj = result;
11298 return resultobj;
11299 fail:
11300 return NULL;
11301}
11302
11303
11304static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11305 PyObject *resultobj;
11306 wxFileType *arg1 = (wxFileType *) 0 ;
11307 wxString *arg2 = 0 ;
11308 wxString const &arg3_defvalue = wxPyEmptyString ;
11309 wxString *arg3 = (wxString *) &arg3_defvalue ;
11310 PyObject *result;
e811c8ce
RD
11311 bool temp2 = False ;
11312 bool temp3 = False ;
d14a1e28
RD
11313 PyObject * obj0 = 0 ;
11314 PyObject * obj1 = 0 ;
11315 PyObject * obj2 = 0 ;
11316 char *kwnames[] = {
11317 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
11318 };
11319
11320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
11321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11322 {
11323 arg2 = wxString_in_helper(obj1);
11324 if (arg2 == NULL) SWIG_fail;
e811c8ce 11325 temp2 = True;
d14a1e28
RD
11326 }
11327 if (obj2) {
11328 {
11329 arg3 = wxString_in_helper(obj2);
11330 if (arg3 == NULL) SWIG_fail;
e811c8ce 11331 temp3 = True;
d14a1e28
RD
11332 }
11333 }
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
11337
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 resultobj = result;
11342 {
11343 if (temp2)
11344 delete arg2;
11345 }
11346 {
11347 if (temp3)
11348 delete arg3;
11349 }
11350 return resultobj;
11351 fail:
11352 {
11353 if (temp2)
11354 delete arg2;
11355 }
11356 {
11357 if (temp3)
11358 delete arg3;
11359 }
11360 return NULL;
11361}
11362
11363
11364static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj;
11366 wxFileType *arg1 = (wxFileType *) 0 ;
11367 wxString *arg2 = 0 ;
11368 wxString const &arg3_defvalue = wxPyEmptyString ;
11369 wxString *arg3 = (wxString *) &arg3_defvalue ;
11370 PyObject *result;
e811c8ce
RD
11371 bool temp2 = False ;
11372 bool temp3 = False ;
d14a1e28
RD
11373 PyObject * obj0 = 0 ;
11374 PyObject * obj1 = 0 ;
11375 PyObject * obj2 = 0 ;
11376 char *kwnames[] = {
11377 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
11378 };
11379
11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
11381 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11382 {
11383 arg2 = wxString_in_helper(obj1);
11384 if (arg2 == NULL) SWIG_fail;
e811c8ce 11385 temp2 = True;
d14a1e28
RD
11386 }
11387 if (obj2) {
11388 {
11389 arg3 = wxString_in_helper(obj2);
11390 if (arg3 == NULL) SWIG_fail;
e811c8ce 11391 temp3 = True;
d14a1e28
RD
11392 }
11393 }
11394 {
11395 PyThreadState* __tstate = wxPyBeginAllowThreads();
11396 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
11397
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 resultobj = result;
11402 {
11403 if (temp2)
11404 delete arg2;
11405 }
11406 {
11407 if (temp3)
11408 delete arg3;
11409 }
11410 return resultobj;
11411 fail:
11412 {
11413 if (temp2)
11414 delete arg2;
11415 }
11416 {
11417 if (temp3)
11418 delete arg3;
11419 }
11420 return NULL;
11421}
11422
11423
11424static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
11425 PyObject *resultobj;
11426 wxFileType *arg1 = (wxFileType *) 0 ;
11427 wxString *arg2 = 0 ;
11428 wxString const &arg3_defvalue = wxPyEmptyString ;
11429 wxString *arg3 = (wxString *) &arg3_defvalue ;
11430 PyObject *result;
e811c8ce
RD
11431 bool temp2 = False ;
11432 bool temp3 = False ;
d14a1e28
RD
11433 PyObject * obj0 = 0 ;
11434 PyObject * obj1 = 0 ;
11435 PyObject * obj2 = 0 ;
11436 char *kwnames[] = {
11437 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
11438 };
11439
11440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
11441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11442 {
11443 arg2 = wxString_in_helper(obj1);
11444 if (arg2 == NULL) SWIG_fail;
e811c8ce 11445 temp2 = True;
d14a1e28
RD
11446 }
11447 if (obj2) {
11448 {
11449 arg3 = wxString_in_helper(obj2);
11450 if (arg3 == NULL) SWIG_fail;
e811c8ce 11451 temp3 = True;
d14a1e28
RD
11452 }
11453 }
11454 {
11455 PyThreadState* __tstate = wxPyBeginAllowThreads();
11456 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
11457
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 resultobj = result;
11462 {
11463 if (temp2)
11464 delete arg2;
11465 }
11466 {
11467 if (temp3)
11468 delete arg3;
11469 }
11470 return resultobj;
11471 fail:
11472 {
11473 if (temp2)
11474 delete arg2;
11475 }
11476 {
11477 if (temp3)
11478 delete arg3;
11479 }
11480 return NULL;
11481}
11482
11483
11484static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11485 PyObject *resultobj;
11486 wxFileType *arg1 = (wxFileType *) 0 ;
11487 wxString *arg2 = 0 ;
11488 wxString *arg3 = 0 ;
e811c8ce 11489 bool arg4 = (bool) True ;
d14a1e28 11490 bool result;
e811c8ce
RD
11491 bool temp2 = False ;
11492 bool temp3 = False ;
d14a1e28
RD
11493 PyObject * obj0 = 0 ;
11494 PyObject * obj1 = 0 ;
11495 PyObject * obj2 = 0 ;
11496 PyObject * obj3 = 0 ;
11497 char *kwnames[] = {
11498 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
11499 };
11500
11501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11503 {
11504 arg2 = wxString_in_helper(obj1);
11505 if (arg2 == NULL) SWIG_fail;
e811c8ce 11506 temp2 = True;
d14a1e28
RD
11507 }
11508 {
11509 arg3 = wxString_in_helper(obj2);
11510 if (arg3 == NULL) SWIG_fail;
e811c8ce 11511 temp3 = True;
d14a1e28
RD
11512 }
11513 if (obj3) {
11514 arg4 = PyInt_AsLong(obj3) ? true : false;
11515 if (PyErr_Occurred()) SWIG_fail;
11516 }
11517 {
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
11520
11521 wxPyEndAllowThreads(__tstate);
11522 if (PyErr_Occurred()) SWIG_fail;
11523 }
11524 resultobj = PyInt_FromLong((long)result);
11525 {
11526 if (temp2)
11527 delete arg2;
11528 }
11529 {
11530 if (temp3)
11531 delete arg3;
11532 }
11533 return resultobj;
11534 fail:
11535 {
11536 if (temp2)
11537 delete arg2;
11538 }
11539 {
11540 if (temp3)
11541 delete arg3;
11542 }
11543 return NULL;
11544}
11545
11546
11547static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11548 PyObject *resultobj;
11549 wxFileType *arg1 = (wxFileType *) 0 ;
11550 wxString const &arg2_defvalue = wxPyEmptyString ;
11551 wxString *arg2 = (wxString *) &arg2_defvalue ;
11552 int arg3 = (int) 0 ;
11553 bool result;
e811c8ce 11554 bool temp2 = False ;
d14a1e28
RD
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 char *kwnames[] = {
11558 (char *) "self",(char *) "cmd",(char *) "index", NULL
11559 };
11560
11561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&arg3)) goto fail;
11562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11563 if (obj1) {
11564 {
11565 arg2 = wxString_in_helper(obj1);
11566 if (arg2 == NULL) SWIG_fail;
e811c8ce 11567 temp2 = True;
d14a1e28
RD
11568 }
11569 }
11570 {
11571 PyThreadState* __tstate = wxPyBeginAllowThreads();
11572 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
11573
11574 wxPyEndAllowThreads(__tstate);
11575 if (PyErr_Occurred()) SWIG_fail;
11576 }
11577 resultobj = PyInt_FromLong((long)result);
11578 {
11579 if (temp2)
11580 delete arg2;
11581 }
11582 return resultobj;
11583 fail:
11584 {
11585 if (temp2)
11586 delete arg2;
11587 }
11588 return NULL;
11589}
11590
11591
11592static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
11593 PyObject *resultobj;
11594 wxFileType *arg1 = (wxFileType *) 0 ;
11595 bool result;
11596 PyObject * obj0 = 0 ;
11597 char *kwnames[] = {
11598 (char *) "self", NULL
11599 };
11600
11601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
11602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11603 {
11604 PyThreadState* __tstate = wxPyBeginAllowThreads();
11605 result = (bool)(arg1)->Unassociate();
11606
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 resultobj = PyInt_FromLong((long)result);
11611 return resultobj;
11612 fail:
11613 return NULL;
11614}
11615
11616
11617static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11618 PyObject *resultobj;
11619 wxString *arg1 = 0 ;
11620 wxString *arg2 = 0 ;
11621 wxString const &arg3_defvalue = wxPyEmptyString ;
11622 wxString *arg3 = (wxString *) &arg3_defvalue ;
11623 wxString result;
e811c8ce
RD
11624 bool temp1 = False ;
11625 bool temp2 = False ;
11626 bool temp3 = False ;
d14a1e28
RD
11627 PyObject * obj0 = 0 ;
11628 PyObject * obj1 = 0 ;
11629 PyObject * obj2 = 0 ;
11630 char *kwnames[] = {
11631 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
11632 };
11633
11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
11635 {
11636 arg1 = wxString_in_helper(obj0);
11637 if (arg1 == NULL) SWIG_fail;
e811c8ce 11638 temp1 = True;
d14a1e28
RD
11639 }
11640 {
11641 arg2 = wxString_in_helper(obj1);
11642 if (arg2 == NULL) SWIG_fail;
e811c8ce 11643 temp2 = True;
d14a1e28
RD
11644 }
11645 if (obj2) {
11646 {
11647 arg3 = wxString_in_helper(obj2);
11648 if (arg3 == NULL) SWIG_fail;
e811c8ce 11649 temp3 = True;
d14a1e28
RD
11650 }
11651 }
11652 {
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
11655
11656 wxPyEndAllowThreads(__tstate);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 }
11659 {
11660#if wxUSE_UNICODE
11661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11662#else
11663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11664#endif
11665 }
11666 {
11667 if (temp1)
11668 delete arg1;
11669 }
11670 {
11671 if (temp2)
11672 delete arg2;
11673 }
11674 {
11675 if (temp3)
11676 delete arg3;
11677 }
11678 return resultobj;
11679 fail:
11680 {
11681 if (temp1)
11682 delete arg1;
11683 }
11684 {
11685 if (temp2)
11686 delete arg2;
11687 }
11688 {
11689 if (temp3)
11690 delete arg3;
11691 }
11692 return NULL;
11693}
11694
11695
11696static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
11697 PyObject *obj;
11698 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11699 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
11700 Py_INCREF(obj);
11701 return Py_BuildValue((char *)"");
11702}
11703static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
11704 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
11705 return 1;
11706}
11707
11708
11709static PyObject *_wrap_TheMimeTypesManager_get() {
11710 PyObject *pyobj;
11711
11712 pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0);
11713 return pyobj;
11714}
11715
11716
11717static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
11718 PyObject *resultobj;
11719 wxString *arg1 = 0 ;
11720 wxString *arg2 = 0 ;
11721 bool result;
e811c8ce
RD
11722 bool temp1 = False ;
11723 bool temp2 = False ;
d14a1e28
RD
11724 PyObject * obj0 = 0 ;
11725 PyObject * obj1 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "mimeType",(char *) "wildcard", NULL
11728 };
11729
11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
11731 {
11732 arg1 = wxString_in_helper(obj0);
11733 if (arg1 == NULL) SWIG_fail;
e811c8ce 11734 temp1 = True;
d14a1e28
RD
11735 }
11736 {
11737 arg2 = wxString_in_helper(obj1);
11738 if (arg2 == NULL) SWIG_fail;
e811c8ce 11739 temp2 = True;
d14a1e28
RD
11740 }
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
11744
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 resultobj = PyInt_FromLong((long)result);
11749 {
11750 if (temp1)
11751 delete arg1;
11752 }
11753 {
11754 if (temp2)
11755 delete arg2;
11756 }
11757 return resultobj;
11758 fail:
11759 {
11760 if (temp1)
11761 delete arg1;
11762 }
11763 {
11764 if (temp2)
11765 delete arg2;
11766 }
11767 return NULL;
11768}
11769
11770
11771static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
11772 PyObject *resultobj;
11773 wxMimeTypesManager *result;
11774 char *kwnames[] = {
11775 NULL
11776 };
11777
11778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
11781 result = (wxMimeTypesManager *)new wxMimeTypesManager();
11782
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1);
11787 return resultobj;
11788 fail:
11789 return NULL;
11790}
11791
11792
11793static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
11794 PyObject *resultobj;
11795 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11796 int arg2 = (int) wxMAILCAP_ALL ;
11797 wxString const &arg3_defvalue = wxPyEmptyString ;
11798 wxString *arg3 = (wxString *) &arg3_defvalue ;
e811c8ce 11799 bool temp3 = False ;
d14a1e28
RD
11800 PyObject * obj0 = 0 ;
11801 PyObject * obj2 = 0 ;
11802 char *kwnames[] = {
11803 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
11804 };
11805
11806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:MimeTypesManager_Initialize",kwnames,&obj0,&arg2,&obj2)) goto fail;
11807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11808 if (obj2) {
11809 {
11810 arg3 = wxString_in_helper(obj2);
11811 if (arg3 == NULL) SWIG_fail;
e811c8ce 11812 temp3 = True;
d14a1e28
RD
11813 }
11814 }
11815 {
11816 PyThreadState* __tstate = wxPyBeginAllowThreads();
11817 (arg1)->Initialize(arg2,(wxString const &)*arg3);
11818
11819 wxPyEndAllowThreads(__tstate);
11820 if (PyErr_Occurred()) SWIG_fail;
11821 }
11822 Py_INCREF(Py_None); resultobj = Py_None;
11823 {
11824 if (temp3)
11825 delete arg3;
11826 }
11827 return resultobj;
11828 fail:
11829 {
11830 if (temp3)
11831 delete arg3;
11832 }
11833 return NULL;
11834}
11835
11836
11837static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
11838 PyObject *resultobj;
11839 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11840 PyObject * obj0 = 0 ;
11841 char *kwnames[] = {
11842 (char *) "self", NULL
11843 };
11844
11845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
11846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11847 {
11848 PyThreadState* __tstate = wxPyBeginAllowThreads();
11849 (arg1)->ClearData();
11850
11851 wxPyEndAllowThreads(__tstate);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 }
11854 Py_INCREF(Py_None); resultobj = Py_None;
11855 return resultobj;
11856 fail:
11857 return NULL;
11858}
11859
11860
11861static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
11862 PyObject *resultobj;
11863 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11864 wxString *arg2 = 0 ;
11865 wxFileType *result;
e811c8ce 11866 bool temp2 = False ;
d14a1e28
RD
11867 PyObject * obj0 = 0 ;
11868 PyObject * obj1 = 0 ;
11869 char *kwnames[] = {
11870 (char *) "self",(char *) "ext", NULL
11871 };
11872
11873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
11874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11875 {
11876 arg2 = wxString_in_helper(obj1);
11877 if (arg2 == NULL) SWIG_fail;
e811c8ce 11878 temp2 = True;
d14a1e28
RD
11879 }
11880 {
11881 PyThreadState* __tstate = wxPyBeginAllowThreads();
11882 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
11883
11884 wxPyEndAllowThreads(__tstate);
11885 if (PyErr_Occurred()) SWIG_fail;
11886 }
11887 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
11888 {
11889 if (temp2)
11890 delete arg2;
11891 }
11892 return resultobj;
11893 fail:
11894 {
11895 if (temp2)
11896 delete arg2;
11897 }
11898 return NULL;
11899}
11900
11901
11902static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
11903 PyObject *resultobj;
11904 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11905 wxString *arg2 = 0 ;
11906 wxFileType *result;
e811c8ce 11907 bool temp2 = False ;
d14a1e28
RD
11908 PyObject * obj0 = 0 ;
11909 PyObject * obj1 = 0 ;
11910 char *kwnames[] = {
11911 (char *) "self",(char *) "mimeType", NULL
11912 };
11913
11914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
11915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11916 {
11917 arg2 = wxString_in_helper(obj1);
11918 if (arg2 == NULL) SWIG_fail;
e811c8ce 11919 temp2 = True;
d14a1e28
RD
11920 }
11921 {
11922 PyThreadState* __tstate = wxPyBeginAllowThreads();
11923 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
11924
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
11929 {
11930 if (temp2)
11931 delete arg2;
11932 }
11933 return resultobj;
11934 fail:
11935 {
11936 if (temp2)
11937 delete arg2;
11938 }
11939 return NULL;
11940}
11941
11942
11943static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
11944 PyObject *resultobj;
11945 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11946 wxString *arg2 = 0 ;
e811c8ce 11947 bool arg3 = (bool) False ;
d14a1e28 11948 bool result;
e811c8ce 11949 bool temp2 = False ;
d14a1e28
RD
11950 PyObject * obj0 = 0 ;
11951 PyObject * obj1 = 0 ;
11952 PyObject * obj2 = 0 ;
11953 char *kwnames[] = {
11954 (char *) "self",(char *) "filename",(char *) "fallback", NULL
11955 };
11956
11957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
11958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11959 {
11960 arg2 = wxString_in_helper(obj1);
11961 if (arg2 == NULL) SWIG_fail;
e811c8ce 11962 temp2 = True;
d14a1e28
RD
11963 }
11964 if (obj2) {
11965 arg3 = PyInt_AsLong(obj2) ? true : false;
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 resultobj = PyInt_FromLong((long)result);
11976 {
11977 if (temp2)
11978 delete arg2;
11979 }
11980 return resultobj;
11981 fail:
11982 {
11983 if (temp2)
11984 delete arg2;
11985 }
11986 return NULL;
11987}
11988
11989
11990static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
11991 PyObject *resultobj;
11992 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11993 wxString *arg2 = 0 ;
11994 bool result;
e811c8ce 11995 bool temp2 = False ;
d14a1e28
RD
11996 PyObject * obj0 = 0 ;
11997 PyObject * obj1 = 0 ;
11998 char *kwnames[] = {
11999 (char *) "self",(char *) "filename", NULL
12000 };
12001
12002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
12003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12004 {
12005 arg2 = wxString_in_helper(obj1);
12006 if (arg2 == NULL) SWIG_fail;
e811c8ce 12007 temp2 = True;
d14a1e28
RD
12008 }
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 resultobj = PyInt_FromLong((long)result);
12017 {
12018 if (temp2)
12019 delete arg2;
12020 }
12021 return resultobj;
12022 fail:
12023 {
12024 if (temp2)
12025 delete arg2;
12026 }
12027 return NULL;
12028}
12029
12030
12031static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12032 PyObject *resultobj;
12033 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12034 PyObject *result;
12035 PyObject * obj0 = 0 ;
12036 char *kwnames[] = {
12037 (char *) "self", NULL
12038 };
12039
12040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
12041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12042 {
12043 PyThreadState* __tstate = wxPyBeginAllowThreads();
12044 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
12045
12046 wxPyEndAllowThreads(__tstate);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 resultobj = result;
12050 return resultobj;
12051 fail:
12052 return NULL;
12053}
12054
12055
12056static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
12057 PyObject *resultobj;
12058 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12059 wxFileTypeInfo *arg2 = 0 ;
12060 PyObject * obj0 = 0 ;
12061 PyObject * obj1 = 0 ;
12062 char *kwnames[] = {
12063 (char *) "self",(char *) "ft", NULL
12064 };
12065
12066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
12067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12068 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12069 if (arg2 == NULL) {
12070 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12071 }
12072 {
12073 PyThreadState* __tstate = wxPyBeginAllowThreads();
12074 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
12075
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 Py_INCREF(Py_None); resultobj = Py_None;
12080 return resultobj;
12081 fail:
12082 return NULL;
12083}
12084
12085
12086static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
12087 PyObject *resultobj;
12088 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12089 wxFileTypeInfo *arg2 = 0 ;
12090 wxFileType *result;
12091 PyObject * obj0 = 0 ;
12092 PyObject * obj1 = 0 ;
12093 char *kwnames[] = {
12094 (char *) "self",(char *) "ftInfo", NULL
12095 };
12096
12097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
12098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12099 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12100 if (arg2 == NULL) {
12101 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12102 }
12103 {
12104 PyThreadState* __tstate = wxPyBeginAllowThreads();
12105 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
12106
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
12111 return resultobj;
12112 fail:
12113 return NULL;
12114}
12115
12116
12117static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12118 PyObject *resultobj;
12119 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12120 wxFileType *arg2 = (wxFileType *) 0 ;
12121 bool result;
12122 PyObject * obj0 = 0 ;
12123 PyObject * obj1 = 0 ;
12124 char *kwnames[] = {
12125 (char *) "self",(char *) "ft", NULL
12126 };
12127
12128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
12129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12130 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12131 {
12132 PyThreadState* __tstate = wxPyBeginAllowThreads();
12133 result = (bool)(arg1)->Unassociate(arg2);
12134
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 resultobj = PyInt_FromLong((long)result);
12139 return resultobj;
12140 fail:
12141 return NULL;
12142}
12143
12144
12145static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
12146 PyObject *resultobj;
12147 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12148 PyObject * obj0 = 0 ;
12149 char *kwnames[] = {
12150 (char *) "self", NULL
12151 };
12152
12153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
12154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 delete arg1;
12158
12159 wxPyEndAllowThreads(__tstate);
12160 if (PyErr_Occurred()) SWIG_fail;
12161 }
12162 Py_INCREF(Py_None); resultobj = Py_None;
12163 return resultobj;
12164 fail:
12165 return NULL;
12166}
12167
12168
12169static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
12170 PyObject *obj;
12171 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12172 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
12173 Py_INCREF(obj);
12174 return Py_BuildValue((char *)"");
12175}
12176static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
12177 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
12178 return 1;
12179}
12180
12181
12182static PyObject *_wrap_ART_TOOLBAR_get() {
12183 PyObject *pyobj;
12184
12185 {
12186#if wxUSE_UNICODE
12187 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
12188#else
12189 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
12190#endif
12191 }
12192 return pyobj;
12193}
12194
12195
12196static int _wrap_ART_MENU_set(PyObject *_val) {
12197 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
12198 return 1;
12199}
12200
12201
12202static PyObject *_wrap_ART_MENU_get() {
12203 PyObject *pyobj;
12204
12205 {
12206#if wxUSE_UNICODE
12207 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
12208#else
12209 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
12210#endif
12211 }
12212 return pyobj;
12213}
12214
12215
12216static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
12217 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
12218 return 1;
12219}
12220
12221
12222static PyObject *_wrap_ART_FRAME_ICON_get() {
12223 PyObject *pyobj;
12224
12225 {
12226#if wxUSE_UNICODE
12227 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
12228#else
12229 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
12230#endif
12231 }
12232 return pyobj;
12233}
12234
12235
12236static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
12237 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
12238 return 1;
12239}
12240
12241
12242static PyObject *_wrap_ART_CMN_DIALOG_get() {
12243 PyObject *pyobj;
12244
12245 {
12246#if wxUSE_UNICODE
12247 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
12248#else
12249 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
12250#endif
12251 }
12252 return pyobj;
12253}
12254
12255
12256static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
12257 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
12258 return 1;
12259}
12260
12261
12262static PyObject *_wrap_ART_HELP_BROWSER_get() {
12263 PyObject *pyobj;
12264
12265 {
12266#if wxUSE_UNICODE
12267 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
12268#else
12269 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
12270#endif
12271 }
12272 return pyobj;
12273}
12274
12275
12276static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
12277 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
12278 return 1;
12279}
12280
12281
12282static PyObject *_wrap_ART_MESSAGE_BOX_get() {
12283 PyObject *pyobj;
12284
12285 {
12286#if wxUSE_UNICODE
12287 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
12288#else
12289 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
12290#endif
12291 }
12292 return pyobj;
12293}
12294
12295
12296static int _wrap_ART_OTHER_set(PyObject *_val) {
12297 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
12298 return 1;
12299}
12300
12301
12302static PyObject *_wrap_ART_OTHER_get() {
12303 PyObject *pyobj;
12304
12305 {
12306#if wxUSE_UNICODE
12307 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
12308#else
12309 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
12310#endif
12311 }
12312 return pyobj;
12313}
12314
12315
12316static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
12317 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
12318 return 1;
12319}
12320
12321
12322static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
12323 PyObject *pyobj;
12324
12325 {
12326#if wxUSE_UNICODE
12327 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
12328#else
12329 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
12330#endif
12331 }
12332 return pyobj;
12333}
12334
12335
12336static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
12337 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
12338 return 1;
12339}
12340
12341
12342static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
12343 PyObject *pyobj;
12344
12345 {
12346#if wxUSE_UNICODE
12347 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
12348#else
12349 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
12350#endif
12351 }
12352 return pyobj;
12353}
12354
12355
12356static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
12357 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
12358 return 1;
12359}
12360
12361
12362static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
12363 PyObject *pyobj;
12364
12365 {
12366#if wxUSE_UNICODE
12367 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
12368#else
12369 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
12370#endif
12371 }
12372 return pyobj;
12373}
12374
12375
12376static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
12377 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
12378 return 1;
12379}
12380
12381
12382static PyObject *_wrap_ART_HELP_SETTINGS_get() {
12383 PyObject *pyobj;
12384
12385 {
12386#if wxUSE_UNICODE
12387 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
12388#else
12389 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
12390#endif
12391 }
12392 return pyobj;
12393}
12394
12395
12396static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
12397 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
12398 return 1;
12399}
12400
12401
12402static PyObject *_wrap_ART_HELP_BOOK_get() {
12403 PyObject *pyobj;
12404
12405 {
12406#if wxUSE_UNICODE
12407 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
12408#else
12409 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
12410#endif
12411 }
12412 return pyobj;
12413}
12414
12415
12416static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
12417 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
12418 return 1;
12419}
12420
12421
12422static PyObject *_wrap_ART_HELP_FOLDER_get() {
12423 PyObject *pyobj;
12424
12425 {
12426#if wxUSE_UNICODE
12427 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
12428#else
12429 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
12430#endif
12431 }
12432 return pyobj;
12433}
12434
12435
12436static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
12437 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
12438 return 1;
12439}
12440
12441
12442static PyObject *_wrap_ART_HELP_PAGE_get() {
12443 PyObject *pyobj;
12444
12445 {
12446#if wxUSE_UNICODE
12447 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
12448#else
12449 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
12450#endif
12451 }
12452 return pyobj;
12453}
12454
12455
12456static int _wrap_ART_GO_BACK_set(PyObject *_val) {
12457 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
12458 return 1;
12459}
12460
12461
12462static PyObject *_wrap_ART_GO_BACK_get() {
12463 PyObject *pyobj;
12464
12465 {
12466#if wxUSE_UNICODE
12467 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
12468#else
12469 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
12470#endif
12471 }
12472 return pyobj;
12473}
12474
12475
12476static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
12477 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
12478 return 1;
12479}
12480
12481
12482static PyObject *_wrap_ART_GO_FORWARD_get() {
12483 PyObject *pyobj;
12484
12485 {
12486#if wxUSE_UNICODE
12487 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
12488#else
12489 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
12490#endif
12491 }
12492 return pyobj;
12493}
12494
12495
12496static int _wrap_ART_GO_UP_set(PyObject *_val) {
12497 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
12498 return 1;
12499}
12500
12501
12502static PyObject *_wrap_ART_GO_UP_get() {
12503 PyObject *pyobj;
12504
12505 {
12506#if wxUSE_UNICODE
12507 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
12508#else
12509 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
12510#endif
12511 }
12512 return pyobj;
12513}
12514
12515
12516static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
12517 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
12518 return 1;
12519}
12520
12521
12522static PyObject *_wrap_ART_GO_DOWN_get() {
12523 PyObject *pyobj;
12524
12525 {
12526#if wxUSE_UNICODE
12527 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
12528#else
12529 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
12530#endif
12531 }
12532 return pyobj;
12533}
12534
12535
12536static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
12537 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
12538 return 1;
12539}
12540
12541
12542static PyObject *_wrap_ART_GO_TO_PARENT_get() {
12543 PyObject *pyobj;
12544
12545 {
12546#if wxUSE_UNICODE
12547 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
12548#else
12549 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
12550#endif
12551 }
12552 return pyobj;
12553}
12554
12555
12556static int _wrap_ART_GO_HOME_set(PyObject *_val) {
12557 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
12558 return 1;
12559}
12560
12561
12562static PyObject *_wrap_ART_GO_HOME_get() {
12563 PyObject *pyobj;
12564
12565 {
12566#if wxUSE_UNICODE
12567 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
12568#else
12569 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
12570#endif
12571 }
12572 return pyobj;
12573}
12574
12575
12576static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
12577 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
12578 return 1;
12579}
12580
12581
12582static PyObject *_wrap_ART_FILE_OPEN_get() {
12583 PyObject *pyobj;
12584
12585 {
12586#if wxUSE_UNICODE
12587 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
12588#else
12589 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
12590#endif
12591 }
12592 return pyobj;
12593}
12594
12595
12596static int _wrap_ART_PRINT_set(PyObject *_val) {
12597 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
12598 return 1;
12599}
12600
12601
12602static PyObject *_wrap_ART_PRINT_get() {
12603 PyObject *pyobj;
12604
12605 {
12606#if wxUSE_UNICODE
12607 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
12608#else
12609 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
12610#endif
12611 }
12612 return pyobj;
12613}
12614
12615
12616static int _wrap_ART_HELP_set(PyObject *_val) {
12617 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
12618 return 1;
12619}
12620
12621
12622static PyObject *_wrap_ART_HELP_get() {
12623 PyObject *pyobj;
12624
12625 {
12626#if wxUSE_UNICODE
12627 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
12628#else
12629 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
12630#endif
12631 }
12632 return pyobj;
12633}
12634
12635
12636static int _wrap_ART_TIP_set(PyObject *_val) {
12637 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
12638 return 1;
12639}
12640
12641
12642static PyObject *_wrap_ART_TIP_get() {
12643 PyObject *pyobj;
12644
12645 {
12646#if wxUSE_UNICODE
12647 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
12648#else
12649 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
12650#endif
12651 }
12652 return pyobj;
12653}
12654
12655
12656static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
12657 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
12658 return 1;
12659}
12660
12661
12662static PyObject *_wrap_ART_REPORT_VIEW_get() {
12663 PyObject *pyobj;
12664
12665 {
12666#if wxUSE_UNICODE
12667 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
12668#else
12669 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
12670#endif
12671 }
12672 return pyobj;
12673}
12674
12675
12676static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
12677 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
12678 return 1;
12679}
12680
12681
12682static PyObject *_wrap_ART_LIST_VIEW_get() {
12683 PyObject *pyobj;
12684
12685 {
12686#if wxUSE_UNICODE
12687 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
12688#else
12689 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
12690#endif
12691 }
12692 return pyobj;
12693}
12694
12695
12696static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
12697 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
12698 return 1;
12699}
12700
12701
12702static PyObject *_wrap_ART_NEW_DIR_get() {
12703 PyObject *pyobj;
12704
12705 {
12706#if wxUSE_UNICODE
12707 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
12708#else
12709 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
12710#endif
12711 }
12712 return pyobj;
12713}
12714
12715
12716static int _wrap_ART_FOLDER_set(PyObject *_val) {
12717 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
12718 return 1;
12719}
12720
12721
12722static PyObject *_wrap_ART_FOLDER_get() {
12723 PyObject *pyobj;
12724
12725 {
12726#if wxUSE_UNICODE
12727 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
12728#else
12729 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
12730#endif
12731 }
12732 return pyobj;
12733}
12734
12735
12736static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
12737 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
12738 return 1;
12739}
12740
12741
12742static PyObject *_wrap_ART_GO_DIR_UP_get() {
12743 PyObject *pyobj;
12744
12745 {
12746#if wxUSE_UNICODE
12747 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
12748#else
12749 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
12750#endif
12751 }
12752 return pyobj;
12753}
12754
12755
12756static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
12757 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
12758 return 1;
12759}
12760
12761
12762static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
12763 PyObject *pyobj;
12764
12765 {
12766#if wxUSE_UNICODE
12767 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
12768#else
12769 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
12770#endif
12771 }
12772 return pyobj;
12773}
12774
12775
12776static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
12777 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
12778 return 1;
12779}
12780
12781
12782static PyObject *_wrap_ART_NORMAL_FILE_get() {
12783 PyObject *pyobj;
12784
12785 {
12786#if wxUSE_UNICODE
12787 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
12788#else
12789 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
12790#endif
12791 }
12792 return pyobj;
12793}
12794
12795
12796static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
12797 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
12798 return 1;
12799}
12800
12801
12802static PyObject *_wrap_ART_TICK_MARK_get() {
12803 PyObject *pyobj;
12804
12805 {
12806#if wxUSE_UNICODE
12807 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
12808#else
12809 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
12810#endif
12811 }
12812 return pyobj;
12813}
12814
12815
12816static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
12817 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
12818 return 1;
12819}
12820
12821
12822static PyObject *_wrap_ART_CROSS_MARK_get() {
12823 PyObject *pyobj;
12824
12825 {
12826#if wxUSE_UNICODE
12827 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
12828#else
12829 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
12830#endif
12831 }
12832 return pyobj;
12833}
12834
12835
12836static int _wrap_ART_ERROR_set(PyObject *_val) {
12837 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
12838 return 1;
12839}
12840
12841
12842static PyObject *_wrap_ART_ERROR_get() {
12843 PyObject *pyobj;
12844
12845 {
12846#if wxUSE_UNICODE
12847 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
12848#else
12849 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
12850#endif
12851 }
12852 return pyobj;
12853}
12854
12855
12856static int _wrap_ART_QUESTION_set(PyObject *_val) {
12857 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
12858 return 1;
12859}
12860
12861
12862static PyObject *_wrap_ART_QUESTION_get() {
12863 PyObject *pyobj;
12864
12865 {
12866#if wxUSE_UNICODE
12867 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
12868#else
12869 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
12870#endif
12871 }
12872 return pyobj;
12873}
12874
12875
12876static int _wrap_ART_WARNING_set(PyObject *_val) {
12877 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
12878 return 1;
12879}
12880
12881
12882static PyObject *_wrap_ART_WARNING_get() {
12883 PyObject *pyobj;
12884
12885 {
12886#if wxUSE_UNICODE
12887 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
12888#else
12889 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
12890#endif
12891 }
12892 return pyobj;
12893}
12894
12895
12896static int _wrap_ART_INFORMATION_set(PyObject *_val) {
12897 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
12898 return 1;
12899}
12900
12901
12902static PyObject *_wrap_ART_INFORMATION_get() {
12903 PyObject *pyobj;
12904
12905 {
12906#if wxUSE_UNICODE
12907 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
12908#else
12909 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
12910#endif
12911 }
12912 return pyobj;
12913}
12914
12915
12916static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
12917 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
12918 return 1;
12919}
12920
12921
12922static PyObject *_wrap_ART_MISSING_IMAGE_get() {
12923 PyObject *pyobj;
12924
12925 {
12926#if wxUSE_UNICODE
12927 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
12928#else
12929 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
12930#endif
12931 }
12932 return pyobj;
12933}
12934
12935
12936static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
12937 PyObject *resultobj;
12938 wxPyArtProvider *result;
12939 char *kwnames[] = {
12940 NULL
12941 };
12942
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
12944 {
12945 PyThreadState* __tstate = wxPyBeginAllowThreads();
12946 result = (wxPyArtProvider *)new wxPyArtProvider();
12947
12948 wxPyEndAllowThreads(__tstate);
12949 if (PyErr_Occurred()) SWIG_fail;
12950 }
12951 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1);
12952 return resultobj;
12953 fail:
12954 return NULL;
12955}
12956
12957
d14a1e28
RD
12958static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12959 PyObject *resultobj;
12960 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
12961 PyObject *arg2 = (PyObject *) 0 ;
12962 PyObject *arg3 = (PyObject *) 0 ;
12963 PyObject * obj0 = 0 ;
12964 PyObject * obj1 = 0 ;
12965 PyObject * obj2 = 0 ;
12966 char *kwnames[] = {
12967 (char *) "self",(char *) "self",(char *) "_class", NULL
12968 };
12969
12970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
12971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12972 arg2 = obj1;
12973 arg3 = obj2;
12974 {
12975 PyThreadState* __tstate = wxPyBeginAllowThreads();
12976 (arg1)->_setCallbackInfo(arg2,arg3);
12977
12978 wxPyEndAllowThreads(__tstate);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 Py_INCREF(Py_None); resultobj = Py_None;
12982 return resultobj;
12983 fail:
12984 return NULL;
12985}
12986
12987
12988static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
12989 PyObject *resultobj;
12990 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
12991 PyObject * obj0 = 0 ;
12992 char *kwnames[] = {
12993 (char *) "provider", NULL
12994 };
12995
12996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
12997 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12998 {
12999 PyThreadState* __tstate = wxPyBeginAllowThreads();
13000 wxPyArtProvider::PushProvider(arg1);
13001
13002 wxPyEndAllowThreads(__tstate);
13003 if (PyErr_Occurred()) SWIG_fail;
13004 }
13005 Py_INCREF(Py_None); resultobj = Py_None;
13006 return resultobj;
13007 fail:
13008 return NULL;
13009}
13010
13011
13012static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
13013 PyObject *resultobj;
13014 bool result;
13015 char *kwnames[] = {
13016 NULL
13017 };
13018
13019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
13020 {
13021 PyThreadState* __tstate = wxPyBeginAllowThreads();
13022 result = (bool)wxPyArtProvider::PopProvider();
13023
13024 wxPyEndAllowThreads(__tstate);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 resultobj = PyInt_FromLong((long)result);
13028 return resultobj;
13029 fail:
13030 return NULL;
13031}
13032
13033
13034static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
13035 PyObject *resultobj;
13036 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
13037 bool result;
13038 PyObject * obj0 = 0 ;
13039 char *kwnames[] = {
13040 (char *) "provider", NULL
13041 };
13042
13043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
13044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13045 {
13046 PyThreadState* __tstate = wxPyBeginAllowThreads();
13047 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
13048
13049 wxPyEndAllowThreads(__tstate);
13050 if (PyErr_Occurred()) SWIG_fail;
13051 }
13052 resultobj = PyInt_FromLong((long)result);
13053 return resultobj;
13054 fail:
13055 return NULL;
13056}
13057
13058
13059static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13060 PyObject *resultobj;
13061 wxString *arg1 = 0 ;
13062 wxString const &arg2_defvalue = wxPyART_OTHER ;
13063 wxString *arg2 = (wxString *) &arg2_defvalue ;
13064 wxSize const &arg3_defvalue = wxDefaultSize ;
13065 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
13066 wxBitmap result;
e811c8ce
RD
13067 bool temp1 = False ;
13068 bool temp2 = False ;
d14a1e28
RD
13069 wxSize temp3 ;
13070 PyObject * obj0 = 0 ;
13071 PyObject * obj1 = 0 ;
13072 PyObject * obj2 = 0 ;
13073 char *kwnames[] = {
13074 (char *) "id",(char *) "client",(char *) "size", NULL
13075 };
13076
13077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13078 {
13079 arg1 = wxString_in_helper(obj0);
13080 if (arg1 == NULL) SWIG_fail;
e811c8ce 13081 temp1 = True;
d14a1e28
RD
13082 }
13083 if (obj1) {
13084 {
13085 arg2 = wxString_in_helper(obj1);
13086 if (arg2 == NULL) SWIG_fail;
e811c8ce 13087 temp2 = True;
d14a1e28
RD
13088 }
13089 }
13090 if (obj2) {
13091 {
13092 arg3 = &temp3;
13093 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13094 }
13095 }
13096 {
13097 PyThreadState* __tstate = wxPyBeginAllowThreads();
13098 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
13099
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 {
13104 wxBitmap * resultptr;
13105 resultptr = new wxBitmap((wxBitmap &) result);
13106 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
13107 }
13108 {
13109 if (temp1)
13110 delete arg1;
13111 }
13112 {
13113 if (temp2)
13114 delete arg2;
13115 }
13116 return resultobj;
13117 fail:
13118 {
13119 if (temp1)
13120 delete arg1;
13121 }
13122 {
13123 if (temp2)
13124 delete arg2;
13125 }
13126 return NULL;
13127}
13128
13129
13130static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13131 PyObject *resultobj;
13132 wxString *arg1 = 0 ;
13133 wxString const &arg2_defvalue = wxPyART_OTHER ;
13134 wxString *arg2 = (wxString *) &arg2_defvalue ;
13135 wxSize const &arg3_defvalue = wxDefaultSize ;
13136 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
13137 wxIcon result;
e811c8ce
RD
13138 bool temp1 = False ;
13139 bool temp2 = False ;
d14a1e28
RD
13140 wxSize temp3 ;
13141 PyObject * obj0 = 0 ;
13142 PyObject * obj1 = 0 ;
13143 PyObject * obj2 = 0 ;
13144 char *kwnames[] = {
13145 (char *) "id",(char *) "client",(char *) "size", NULL
13146 };
13147
13148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13149 {
13150 arg1 = wxString_in_helper(obj0);
13151 if (arg1 == NULL) SWIG_fail;
e811c8ce 13152 temp1 = True;
d14a1e28
RD
13153 }
13154 if (obj1) {
13155 {
13156 arg2 = wxString_in_helper(obj1);
13157 if (arg2 == NULL) SWIG_fail;
e811c8ce 13158 temp2 = True;
d14a1e28
RD
13159 }
13160 }
13161 if (obj2) {
13162 {
13163 arg3 = &temp3;
13164 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13165 }
13166 }
13167 {
13168 PyThreadState* __tstate = wxPyBeginAllowThreads();
13169 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
13170
13171 wxPyEndAllowThreads(__tstate);
13172 if (PyErr_Occurred()) SWIG_fail;
13173 }
13174 {
13175 wxIcon * resultptr;
13176 resultptr = new wxIcon((wxIcon &) result);
13177 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1);
13178 }
13179 {
13180 if (temp1)
13181 delete arg1;
13182 }
13183 {
13184 if (temp2)
13185 delete arg2;
13186 }
13187 return resultobj;
13188 fail:
13189 {
13190 if (temp1)
13191 delete arg1;
13192 }
13193 {
13194 if (temp2)
13195 delete arg2;
13196 }
13197 return NULL;
13198}
13199
13200
1e0c8722
RD
13201static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
13202 PyObject *resultobj;
13203 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
13204 PyObject * obj0 = 0 ;
13205 char *kwnames[] = {
13206 (char *) "self", NULL
13207 };
13208
13209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
13210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 wxPyArtProvider_Destroy(arg1);
13214
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 Py_INCREF(Py_None); resultobj = Py_None;
13219 return resultobj;
13220 fail:
13221 return NULL;
13222}
13223
13224
d14a1e28
RD
13225static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
13226 PyObject *obj;
13227 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13228 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
13229 Py_INCREF(obj);
13230 return Py_BuildValue((char *)"");
13231}
13232static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
13233 PyObject *resultobj;
13234 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13235 PyObject * obj0 = 0 ;
13236 char *kwnames[] = {
13237 (char *) "self", NULL
13238 };
13239
13240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
13241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13242 {
13243 PyThreadState* __tstate = wxPyBeginAllowThreads();
13244 delete arg1;
13245
13246 wxPyEndAllowThreads(__tstate);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 Py_INCREF(Py_None); resultobj = Py_None;
13250 return resultobj;
13251 fail:
13252 return NULL;
13253}
13254
13255
13256static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
13257 PyObject *resultobj;
13258 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13259 wxConfigBase *result;
13260 PyObject * obj0 = 0 ;
13261 char *kwnames[] = {
13262 (char *) "pConfig", NULL
13263 };
13264
13265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
13266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13267 {
13268 PyThreadState* __tstate = wxPyBeginAllowThreads();
13269 result = (wxConfigBase *)wxConfigBase::Set(arg1);
13270
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
13275 return resultobj;
13276 fail:
13277 return NULL;
13278}
13279
13280
13281static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
13282 PyObject *resultobj;
e811c8ce 13283 bool arg1 = (bool) True ;
d14a1e28
RD
13284 wxConfigBase *result;
13285 PyObject * obj0 = 0 ;
13286 char *kwnames[] = {
13287 (char *) "createOnDemand", NULL
13288 };
13289
13290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
13291 if (obj0) {
13292 arg1 = PyInt_AsLong(obj0) ? true : false;
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 result = (wxConfigBase *)wxConfigBase::Get(arg1);
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
13303 return resultobj;
13304 fail:
13305 return NULL;
13306}
13307
13308
13309static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxConfigBase *result;
13312 char *kwnames[] = {
13313 NULL
13314 };
13315
13316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
13317 {
13318 PyThreadState* __tstate = wxPyBeginAllowThreads();
13319 result = (wxConfigBase *)wxConfigBase::Create();
13320
13321 wxPyEndAllowThreads(__tstate);
13322 if (PyErr_Occurred()) SWIG_fail;
13323 }
13324 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
13325 return resultobj;
13326 fail:
13327 return NULL;
13328}
13329
13330
13331static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
13332 PyObject *resultobj;
13333 char *kwnames[] = {
13334 NULL
13335 };
13336
13337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
13338 {
13339 PyThreadState* __tstate = wxPyBeginAllowThreads();
13340 wxConfigBase::DontCreateOnDemand();
13341
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 Py_INCREF(Py_None); resultobj = Py_None;
13346 return resultobj;
13347 fail:
13348 return NULL;
13349}
13350
13351
13352static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
13353 PyObject *resultobj;
13354 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13355 wxString *arg2 = 0 ;
e811c8ce 13356 bool temp2 = False ;
d14a1e28
RD
13357 PyObject * obj0 = 0 ;
13358 PyObject * obj1 = 0 ;
13359 char *kwnames[] = {
13360 (char *) "self",(char *) "strPath", NULL
13361 };
13362
13363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
13364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13365 {
13366 arg2 = wxString_in_helper(obj1);
13367 if (arg2 == NULL) SWIG_fail;
e811c8ce 13368 temp2 = True;
d14a1e28
RD
13369 }
13370 {
13371 PyThreadState* __tstate = wxPyBeginAllowThreads();
13372 (arg1)->SetPath((wxString const &)*arg2);
13373
13374 wxPyEndAllowThreads(__tstate);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 }
13377 Py_INCREF(Py_None); resultobj = Py_None;
13378 {
13379 if (temp2)
13380 delete arg2;
13381 }
13382 return resultobj;
13383 fail:
13384 {
13385 if (temp2)
13386 delete arg2;
13387 }
13388 return NULL;
13389}
13390
13391
13392static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
13393 PyObject *resultobj;
13394 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13395 wxString *result;
13396 PyObject * obj0 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "self", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13403 {
13404 PyThreadState* __tstate = wxPyBeginAllowThreads();
13405 {
13406 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
13407 result = (wxString *) &_result_ref;
13408 }
13409
13410 wxPyEndAllowThreads(__tstate);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 }
cc6dd355
RD
13413 {
13414#if wxUSE_UNICODE
13415 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13416#else
13417 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13418#endif
13419 }
d14a1e28
RD
13420 return resultobj;
13421 fail:
13422 return NULL;
13423}
13424
13425
13426static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
13427 PyObject *resultobj;
13428 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13429 PyObject *result;
13430 PyObject * obj0 = 0 ;
13431 char *kwnames[] = {
13432 (char *) "self", NULL
13433 };
13434
13435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
13436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13437 {
13438 PyThreadState* __tstate = wxPyBeginAllowThreads();
13439 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
13440
13441 wxPyEndAllowThreads(__tstate);
13442 if (PyErr_Occurred()) SWIG_fail;
13443 }
13444 resultobj = result;
13445 return resultobj;
13446 fail:
13447 return NULL;
13448}
13449
13450
13451static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
13452 PyObject *resultobj;
13453 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13454 long arg2 ;
13455 PyObject *result;
13456 PyObject * obj0 = 0 ;
13457 char *kwnames[] = {
13458 (char *) "self",(char *) "index", NULL
13459 };
13460
13461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextGroup",kwnames,&obj0,&arg2)) goto fail;
13462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13463 {
13464 PyThreadState* __tstate = wxPyBeginAllowThreads();
13465 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
13466
13467 wxPyEndAllowThreads(__tstate);
13468 if (PyErr_Occurred()) SWIG_fail;
13469 }
13470 resultobj = result;
13471 return resultobj;
13472 fail:
13473 return NULL;
13474}
13475
13476
13477static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
13478 PyObject *resultobj;
13479 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13480 PyObject *result;
13481 PyObject * obj0 = 0 ;
13482 char *kwnames[] = {
13483 (char *) "self", NULL
13484 };
13485
13486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
13487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13488 {
13489 PyThreadState* __tstate = wxPyBeginAllowThreads();
13490 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
13491
13492 wxPyEndAllowThreads(__tstate);
13493 if (PyErr_Occurred()) SWIG_fail;
13494 }
13495 resultobj = result;
13496 return resultobj;
13497 fail:
13498 return NULL;
13499}
13500
13501
13502static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
13503 PyObject *resultobj;
13504 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13505 long arg2 ;
13506 PyObject *result;
13507 PyObject * obj0 = 0 ;
13508 char *kwnames[] = {
13509 (char *) "self",(char *) "index", NULL
13510 };
13511
13512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextEntry",kwnames,&obj0,&arg2)) goto fail;
13513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13514 {
13515 PyThreadState* __tstate = wxPyBeginAllowThreads();
13516 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
13517
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 resultobj = result;
13522 return resultobj;
13523 fail:
13524 return NULL;
13525}
13526
13527
13528static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
13529 PyObject *resultobj;
13530 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 13531 bool arg2 = (bool) False ;
d14a1e28
RD
13532 size_t result;
13533 PyObject * obj0 = 0 ;
13534 PyObject * obj1 = 0 ;
13535 char *kwnames[] = {
13536 (char *) "self",(char *) "bRecursive", NULL
13537 };
13538
13539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
13540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13541 if (obj1) {
13542 arg2 = PyInt_AsLong(obj1) ? true : false;
13543 if (PyErr_Occurred()) SWIG_fail;
13544 }
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = PyInt_FromLong((long)result);
13553 return resultobj;
13554 fail:
13555 return NULL;
13556}
13557
13558
13559static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
13560 PyObject *resultobj;
13561 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 13562 bool arg2 = (bool) False ;
d14a1e28
RD
13563 size_t result;
13564 PyObject * obj0 = 0 ;
13565 PyObject * obj1 = 0 ;
13566 char *kwnames[] = {
13567 (char *) "self",(char *) "bRecursive", NULL
13568 };
13569
13570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
13571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13572 if (obj1) {
13573 arg2 = PyInt_AsLong(obj1) ? true : false;
13574 if (PyErr_Occurred()) SWIG_fail;
13575 }
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
13579
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 resultobj = PyInt_FromLong((long)result);
13584 return resultobj;
13585 fail:
13586 return NULL;
13587}
13588
13589
13590static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
13591 PyObject *resultobj;
13592 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13593 wxString *arg2 = 0 ;
13594 bool result;
e811c8ce 13595 bool temp2 = False ;
d14a1e28
RD
13596 PyObject * obj0 = 0 ;
13597 PyObject * obj1 = 0 ;
13598 char *kwnames[] = {
13599 (char *) "self",(char *) "strName", NULL
13600 };
13601
13602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
13603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13604 {
13605 arg2 = wxString_in_helper(obj1);
13606 if (arg2 == NULL) SWIG_fail;
e811c8ce 13607 temp2 = True;
d14a1e28
RD
13608 }
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
13612
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = PyInt_FromLong((long)result);
13617 {
13618 if (temp2)
13619 delete arg2;
13620 }
13621 return resultobj;
13622 fail:
13623 {
13624 if (temp2)
13625 delete arg2;
13626 }
13627 return NULL;
13628}
13629
13630
13631static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
13632 PyObject *resultobj;
13633 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13634 wxString *arg2 = 0 ;
13635 bool result;
e811c8ce 13636 bool temp2 = False ;
d14a1e28
RD
13637 PyObject * obj0 = 0 ;
13638 PyObject * obj1 = 0 ;
13639 char *kwnames[] = {
13640 (char *) "self",(char *) "strName", NULL
13641 };
13642
13643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
13644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13645 {
13646 arg2 = wxString_in_helper(obj1);
13647 if (arg2 == NULL) SWIG_fail;
e811c8ce 13648 temp2 = True;
d14a1e28
RD
13649 }
13650 {
13651 PyThreadState* __tstate = wxPyBeginAllowThreads();
13652 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
13653
13654 wxPyEndAllowThreads(__tstate);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 }
13657 resultobj = PyInt_FromLong((long)result);
13658 {
13659 if (temp2)
13660 delete arg2;
13661 }
13662 return resultobj;
13663 fail:
13664 {
13665 if (temp2)
13666 delete arg2;
13667 }
13668 return NULL;
13669}
13670
13671
13672static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
13673 PyObject *resultobj;
13674 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13675 wxString *arg2 = 0 ;
13676 bool result;
e811c8ce 13677 bool temp2 = False ;
d14a1e28
RD
13678 PyObject * obj0 = 0 ;
13679 PyObject * obj1 = 0 ;
13680 char *kwnames[] = {
13681 (char *) "self",(char *) "strName", NULL
13682 };
13683
13684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
13685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13686 {
13687 arg2 = wxString_in_helper(obj1);
13688 if (arg2 == NULL) SWIG_fail;
e811c8ce 13689 temp2 = True;
d14a1e28
RD
13690 }
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
13694
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 resultobj = PyInt_FromLong((long)result);
13699 {
13700 if (temp2)
13701 delete arg2;
13702 }
13703 return resultobj;
13704 fail:
13705 {
13706 if (temp2)
13707 delete arg2;
13708 }
13709 return NULL;
13710}
13711
13712
13713static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
13714 PyObject *resultobj;
13715 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13716 wxString *arg2 = 0 ;
13717 int result;
e811c8ce 13718 bool temp2 = False ;
d14a1e28
RD
13719 PyObject * obj0 = 0 ;
13720 PyObject * obj1 = 0 ;
13721 char *kwnames[] = {
13722 (char *) "self",(char *) "name", NULL
13723 };
13724
13725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
13726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13727 {
13728 arg2 = wxString_in_helper(obj1);
13729 if (arg2 == NULL) SWIG_fail;
e811c8ce 13730 temp2 = True;
d14a1e28
RD
13731 }
13732 {
13733 PyThreadState* __tstate = wxPyBeginAllowThreads();
13734 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
13735
13736 wxPyEndAllowThreads(__tstate);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 }
13739 resultobj = PyInt_FromLong((long)result);
13740 {
13741 if (temp2)
13742 delete arg2;
13743 }
13744 return resultobj;
13745 fail:
13746 {
13747 if (temp2)
13748 delete arg2;
13749 }
13750 return NULL;
13751}
13752
13753
13754static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
13755 PyObject *resultobj;
13756 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13757 wxString *arg2 = 0 ;
13758 wxString const &arg3_defvalue = wxPyEmptyString ;
13759 wxString *arg3 = (wxString *) &arg3_defvalue ;
13760 wxString result;
e811c8ce
RD
13761 bool temp2 = False ;
13762 bool temp3 = False ;
d14a1e28
RD
13763 PyObject * obj0 = 0 ;
13764 PyObject * obj1 = 0 ;
13765 PyObject * obj2 = 0 ;
13766 char *kwnames[] = {
13767 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
13768 };
13769
13770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
13771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13772 {
13773 arg2 = wxString_in_helper(obj1);
13774 if (arg2 == NULL) SWIG_fail;
e811c8ce 13775 temp2 = True;
d14a1e28
RD
13776 }
13777 if (obj2) {
13778 {
13779 arg3 = wxString_in_helper(obj2);
13780 if (arg3 == NULL) SWIG_fail;
e811c8ce 13781 temp3 = True;
d14a1e28
RD
13782 }
13783 }
13784 {
13785 PyThreadState* __tstate = wxPyBeginAllowThreads();
13786 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
13787
13788 wxPyEndAllowThreads(__tstate);
13789 if (PyErr_Occurred()) SWIG_fail;
13790 }
13791 {
13792#if wxUSE_UNICODE
13793 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13794#else
13795 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13796#endif
13797 }
13798 {
13799 if (temp2)
13800 delete arg2;
13801 }
13802 {
13803 if (temp3)
13804 delete arg3;
13805 }
13806 return resultobj;
13807 fail:
13808 {
13809 if (temp2)
13810 delete arg2;
13811 }
13812 {
13813 if (temp3)
13814 delete arg3;
13815 }
13816 return NULL;
13817}
13818
13819
13820static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13821 PyObject *resultobj;
13822 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13823 wxString *arg2 = 0 ;
13824 long arg3 = (long) 0 ;
13825 long result;
e811c8ce 13826 bool temp2 = False ;
d14a1e28
RD
13827 PyObject * obj0 = 0 ;
13828 PyObject * obj1 = 0 ;
13829 char *kwnames[] = {
13830 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
13831 };
13832
13833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&arg3)) goto fail;
13834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13835 {
13836 arg2 = wxString_in_helper(obj1);
13837 if (arg2 == NULL) SWIG_fail;
e811c8ce 13838 temp2 = True;
d14a1e28
RD
13839 }
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
13843
13844 wxPyEndAllowThreads(__tstate);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 resultobj = PyInt_FromLong((long)result);
13848 {
13849 if (temp2)
13850 delete arg2;
13851 }
13852 return resultobj;
13853 fail:
13854 {
13855 if (temp2)
13856 delete arg2;
13857 }
13858 return NULL;
13859}
13860
13861
13862static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
13863 PyObject *resultobj;
13864 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13865 wxString *arg2 = 0 ;
13866 double arg3 = (double) 0.0 ;
13867 double result;
e811c8ce 13868 bool temp2 = False ;
d14a1e28
RD
13869 PyObject * obj0 = 0 ;
13870 PyObject * obj1 = 0 ;
13871 char *kwnames[] = {
13872 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
13873 };
13874
13875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|d:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&arg3)) goto fail;
13876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13877 {
13878 arg2 = wxString_in_helper(obj1);
13879 if (arg2 == NULL) SWIG_fail;
e811c8ce 13880 temp2 = True;
d14a1e28
RD
13881 }
13882 {
13883 PyThreadState* __tstate = wxPyBeginAllowThreads();
13884 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
13885
13886 wxPyEndAllowThreads(__tstate);
13887 if (PyErr_Occurred()) SWIG_fail;
13888 }
13889 resultobj = PyFloat_FromDouble(result);
13890 {
13891 if (temp2)
13892 delete arg2;
13893 }
13894 return resultobj;
13895 fail:
13896 {
13897 if (temp2)
13898 delete arg2;
13899 }
13900 return NULL;
13901}
13902
13903
13904static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
13905 PyObject *resultobj;
13906 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13907 wxString *arg2 = 0 ;
e811c8ce 13908 bool arg3 = (bool) False ;
d14a1e28 13909 bool result;
e811c8ce 13910 bool temp2 = False ;
d14a1e28
RD
13911 PyObject * obj0 = 0 ;
13912 PyObject * obj1 = 0 ;
13913 PyObject * obj2 = 0 ;
13914 char *kwnames[] = {
13915 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
13916 };
13917
13918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
13919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13920 {
13921 arg2 = wxString_in_helper(obj1);
13922 if (arg2 == NULL) SWIG_fail;
e811c8ce 13923 temp2 = True;
d14a1e28
RD
13924 }
13925 if (obj2) {
13926 arg3 = PyInt_AsLong(obj2) ? true : false;
13927 if (PyErr_Occurred()) SWIG_fail;
13928 }
13929 {
13930 PyThreadState* __tstate = wxPyBeginAllowThreads();
13931 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
13932
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 resultobj = PyInt_FromLong((long)result);
13937 {
13938 if (temp2)
13939 delete arg2;
13940 }
13941 return resultobj;
13942 fail:
13943 {
13944 if (temp2)
13945 delete arg2;
13946 }
13947 return NULL;
13948}
13949
13950
13951static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
13952 PyObject *resultobj;
13953 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13954 wxString *arg2 = 0 ;
13955 wxString *arg3 = 0 ;
13956 bool result;
e811c8ce
RD
13957 bool temp2 = False ;
13958 bool temp3 = False ;
d14a1e28
RD
13959 PyObject * obj0 = 0 ;
13960 PyObject * obj1 = 0 ;
13961 PyObject * obj2 = 0 ;
13962 char *kwnames[] = {
13963 (char *) "self",(char *) "key",(char *) "value", NULL
13964 };
13965
13966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
13967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13968 {
13969 arg2 = wxString_in_helper(obj1);
13970 if (arg2 == NULL) SWIG_fail;
e811c8ce 13971 temp2 = True;
d14a1e28
RD
13972 }
13973 {
13974 arg3 = wxString_in_helper(obj2);
13975 if (arg3 == NULL) SWIG_fail;
e811c8ce 13976 temp3 = True;
d14a1e28
RD
13977 }
13978 {
13979 PyThreadState* __tstate = wxPyBeginAllowThreads();
13980 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
13981
13982 wxPyEndAllowThreads(__tstate);
13983 if (PyErr_Occurred()) SWIG_fail;
13984 }
13985 resultobj = PyInt_FromLong((long)result);
13986 {
13987 if (temp2)
13988 delete arg2;
13989 }
13990 {
13991 if (temp3)
13992 delete arg3;
13993 }
13994 return resultobj;
13995 fail:
13996 {
13997 if (temp2)
13998 delete arg2;
13999 }
14000 {
14001 if (temp3)
14002 delete arg3;
14003 }
14004 return NULL;
14005}
14006
14007
14008static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
14009 PyObject *resultobj;
14010 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14011 wxString *arg2 = 0 ;
14012 long arg3 ;
14013 bool result;
e811c8ce 14014 bool temp2 = False ;
d14a1e28
RD
14015 PyObject * obj0 = 0 ;
14016 PyObject * obj1 = 0 ;
14017 char *kwnames[] = {
14018 (char *) "self",(char *) "key",(char *) "value", NULL
14019 };
14020
14021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&arg3)) goto fail;
14022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14023 {
14024 arg2 = wxString_in_helper(obj1);
14025 if (arg2 == NULL) SWIG_fail;
e811c8ce 14026 temp2 = True;
d14a1e28
RD
14027 }
14028 {
14029 PyThreadState* __tstate = wxPyBeginAllowThreads();
14030 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
14031
14032 wxPyEndAllowThreads(__tstate);
14033 if (PyErr_Occurred()) SWIG_fail;
14034 }
14035 resultobj = PyInt_FromLong((long)result);
14036 {
14037 if (temp2)
14038 delete arg2;
14039 }
14040 return resultobj;
14041 fail:
14042 {
14043 if (temp2)
14044 delete arg2;
14045 }
14046 return NULL;
14047}
14048
14049
14050static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
14051 PyObject *resultobj;
14052 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14053 wxString *arg2 = 0 ;
14054 double arg3 ;
14055 bool result;
e811c8ce 14056 bool temp2 = False ;
d14a1e28
RD
14057 PyObject * obj0 = 0 ;
14058 PyObject * obj1 = 0 ;
14059 char *kwnames[] = {
14060 (char *) "self",(char *) "key",(char *) "value", NULL
14061 };
14062
14063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&arg3)) goto fail;
14064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14065 {
14066 arg2 = wxString_in_helper(obj1);
14067 if (arg2 == NULL) SWIG_fail;
e811c8ce 14068 temp2 = True;
d14a1e28
RD
14069 }
14070 {
14071 PyThreadState* __tstate = wxPyBeginAllowThreads();
14072 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
14073
14074 wxPyEndAllowThreads(__tstate);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 resultobj = PyInt_FromLong((long)result);
14078 {
14079 if (temp2)
14080 delete arg2;
14081 }
14082 return resultobj;
14083 fail:
14084 {
14085 if (temp2)
14086 delete arg2;
14087 }
14088 return NULL;
14089}
14090
14091
14092static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
14093 PyObject *resultobj;
14094 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14095 wxString *arg2 = 0 ;
14096 bool arg3 ;
14097 bool result;
e811c8ce 14098 bool temp2 = False ;
d14a1e28
RD
14099 PyObject * obj0 = 0 ;
14100 PyObject * obj1 = 0 ;
14101 PyObject * obj2 = 0 ;
14102 char *kwnames[] = {
14103 (char *) "self",(char *) "key",(char *) "value", NULL
14104 };
14105
14106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
14107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14108 {
14109 arg2 = wxString_in_helper(obj1);
14110 if (arg2 == NULL) SWIG_fail;
e811c8ce 14111 temp2 = True;
d14a1e28
RD
14112 }
14113 arg3 = PyInt_AsLong(obj2) ? true : false;
14114 if (PyErr_Occurred()) SWIG_fail;
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
14118
14119 wxPyEndAllowThreads(__tstate);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 }
14122 resultobj = PyInt_FromLong((long)result);
14123 {
14124 if (temp2)
14125 delete arg2;
14126 }
14127 return resultobj;
14128 fail:
14129 {
14130 if (temp2)
14131 delete arg2;
14132 }
14133 return NULL;
14134}
14135
14136
14137static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
14138 PyObject *resultobj;
14139 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 14140 bool arg2 = (bool) False ;
d14a1e28
RD
14141 bool result;
14142 PyObject * obj0 = 0 ;
14143 PyObject * obj1 = 0 ;
14144 char *kwnames[] = {
14145 (char *) "self",(char *) "bCurrentOnly", NULL
14146 };
14147
14148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
14149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14150 if (obj1) {
14151 arg2 = PyInt_AsLong(obj1) ? true : false;
14152 if (PyErr_Occurred()) SWIG_fail;
14153 }
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = (bool)(arg1)->Flush(arg2);
14157
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 resultobj = PyInt_FromLong((long)result);
14162 return resultobj;
14163 fail:
14164 return NULL;
14165}
14166
14167
14168static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14169 PyObject *resultobj;
14170 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14171 wxString *arg2 = 0 ;
14172 wxString *arg3 = 0 ;
14173 bool result;
e811c8ce
RD
14174 bool temp2 = False ;
14175 bool temp3 = False ;
d14a1e28
RD
14176 PyObject * obj0 = 0 ;
14177 PyObject * obj1 = 0 ;
14178 PyObject * obj2 = 0 ;
14179 char *kwnames[] = {
14180 (char *) "self",(char *) "oldName",(char *) "newName", NULL
14181 };
14182
14183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
14184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14185 {
14186 arg2 = wxString_in_helper(obj1);
14187 if (arg2 == NULL) SWIG_fail;
e811c8ce 14188 temp2 = True;
d14a1e28
RD
14189 }
14190 {
14191 arg3 = wxString_in_helper(obj2);
14192 if (arg3 == NULL) SWIG_fail;
e811c8ce 14193 temp3 = True;
d14a1e28
RD
14194 }
14195 {
14196 PyThreadState* __tstate = wxPyBeginAllowThreads();
14197 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
14198
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 resultobj = PyInt_FromLong((long)result);
14203 {
14204 if (temp2)
14205 delete arg2;
14206 }
14207 {
14208 if (temp3)
14209 delete arg3;
14210 }
14211 return resultobj;
14212 fail:
14213 {
14214 if (temp2)
14215 delete arg2;
14216 }
14217 {
14218 if (temp3)
14219 delete arg3;
14220 }
14221 return NULL;
14222}
14223
14224
14225static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14226 PyObject *resultobj;
14227 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14228 wxString *arg2 = 0 ;
14229 wxString *arg3 = 0 ;
14230 bool result;
e811c8ce
RD
14231 bool temp2 = False ;
14232 bool temp3 = False ;
d14a1e28
RD
14233 PyObject * obj0 = 0 ;
14234 PyObject * obj1 = 0 ;
14235 PyObject * obj2 = 0 ;
14236 char *kwnames[] = {
14237 (char *) "self",(char *) "oldName",(char *) "newName", NULL
14238 };
14239
14240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
14241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14242 {
14243 arg2 = wxString_in_helper(obj1);
14244 if (arg2 == NULL) SWIG_fail;
e811c8ce 14245 temp2 = True;
d14a1e28
RD
14246 }
14247 {
14248 arg3 = wxString_in_helper(obj2);
14249 if (arg3 == NULL) SWIG_fail;
e811c8ce 14250 temp3 = True;
d14a1e28
RD
14251 }
14252 {
14253 PyThreadState* __tstate = wxPyBeginAllowThreads();
14254 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
14255
14256 wxPyEndAllowThreads(__tstate);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 }
14259 resultobj = PyInt_FromLong((long)result);
14260 {
14261 if (temp2)
14262 delete arg2;
14263 }
14264 {
14265 if (temp3)
14266 delete arg3;
14267 }
14268 return resultobj;
14269 fail:
14270 {
14271 if (temp2)
14272 delete arg2;
14273 }
14274 {
14275 if (temp3)
14276 delete arg3;
14277 }
14278 return NULL;
14279}
14280
14281
14282static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14283 PyObject *resultobj;
14284 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14285 wxString *arg2 = 0 ;
e811c8ce 14286 bool arg3 = (bool) True ;
d14a1e28 14287 bool result;
e811c8ce 14288 bool temp2 = False ;
d14a1e28
RD
14289 PyObject * obj0 = 0 ;
14290 PyObject * obj1 = 0 ;
14291 PyObject * obj2 = 0 ;
14292 char *kwnames[] = {
14293 (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL
14294 };
14295
14296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
14297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14298 {
14299 arg2 = wxString_in_helper(obj1);
14300 if (arg2 == NULL) SWIG_fail;
e811c8ce 14301 temp2 = True;
d14a1e28
RD
14302 }
14303 if (obj2) {
14304 arg3 = PyInt_AsLong(obj2) ? true : false;
14305 if (PyErr_Occurred()) SWIG_fail;
14306 }
14307 {
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
14310
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 resultobj = PyInt_FromLong((long)result);
14315 {
14316 if (temp2)
14317 delete arg2;
14318 }
14319 return resultobj;
14320 fail:
14321 {
14322 if (temp2)
14323 delete arg2;
14324 }
14325 return NULL;
14326}
14327
14328
14329static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14330 PyObject *resultobj;
14331 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14332 wxString *arg2 = 0 ;
14333 bool result;
e811c8ce 14334 bool temp2 = False ;
d14a1e28
RD
14335 PyObject * obj0 = 0 ;
14336 PyObject * obj1 = 0 ;
14337 char *kwnames[] = {
14338 (char *) "self",(char *) "key", NULL
14339 };
14340
14341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
14342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14343 {
14344 arg2 = wxString_in_helper(obj1);
14345 if (arg2 == NULL) SWIG_fail;
e811c8ce 14346 temp2 = True;
d14a1e28
RD
14347 }
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 resultobj = PyInt_FromLong((long)result);
14356 {
14357 if (temp2)
14358 delete arg2;
14359 }
14360 return resultobj;
14361 fail:
14362 {
14363 if (temp2)
14364 delete arg2;
14365 }
14366 return NULL;
14367}
14368
14369
14370static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14371 PyObject *resultobj;
14372 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14373 bool result;
14374 PyObject * obj0 = 0 ;
14375 char *kwnames[] = {
14376 (char *) "self", NULL
14377 };
14378
14379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
14380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 result = (bool)(arg1)->DeleteAll();
14384
14385 wxPyEndAllowThreads(__tstate);
14386 if (PyErr_Occurred()) SWIG_fail;
14387 }
14388 resultobj = PyInt_FromLong((long)result);
14389 return resultobj;
14390 fail:
14391 return NULL;
14392}
14393
14394
14395static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
14396 PyObject *resultobj;
14397 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14398 bool result;
14399 PyObject * obj0 = 0 ;
14400 char *kwnames[] = {
14401 (char *) "self", NULL
14402 };
14403
14404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
14405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
14409
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 resultobj = PyInt_FromLong((long)result);
14414 return resultobj;
14415 fail:
14416 return NULL;
14417}
14418
14419
14420static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj;
14422 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 14423 bool arg2 = (bool) True ;
d14a1e28
RD
14424 PyObject * obj0 = 0 ;
14425 PyObject * obj1 = 0 ;
14426 char *kwnames[] = {
14427 (char *) "self",(char *) "bDoIt", NULL
14428 };
14429
14430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
14431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14432 if (obj1) {
14433 arg2 = PyInt_AsLong(obj1) ? true : false;
14434 if (PyErr_Occurred()) SWIG_fail;
14435 }
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 (arg1)->SetExpandEnvVars(arg2);
14439
14440 wxPyEndAllowThreads(__tstate);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 }
14443 Py_INCREF(Py_None); resultobj = Py_None;
14444 return resultobj;
14445 fail:
14446 return NULL;
14447}
14448
14449
14450static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
14451 PyObject *resultobj;
14452 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 14453 bool arg2 = (bool) True ;
d14a1e28
RD
14454 PyObject * obj0 = 0 ;
14455 PyObject * obj1 = 0 ;
14456 char *kwnames[] = {
14457 (char *) "self",(char *) "bDoIt", NULL
14458 };
14459
14460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
14461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14462 if (obj1) {
14463 arg2 = PyInt_AsLong(obj1) ? true : false;
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 {
14467 PyThreadState* __tstate = wxPyBeginAllowThreads();
14468 (arg1)->SetRecordDefaults(arg2);
14469
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 Py_INCREF(Py_None); resultobj = Py_None;
14474 return resultobj;
14475 fail:
14476 return NULL;
14477}
14478
14479
14480static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
14481 PyObject *resultobj;
14482 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14483 bool result;
14484 PyObject * obj0 = 0 ;
14485 char *kwnames[] = {
14486 (char *) "self", NULL
14487 };
14488
14489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
14490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14491 {
14492 PyThreadState* __tstate = wxPyBeginAllowThreads();
14493 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
14494
14495 wxPyEndAllowThreads(__tstate);
14496 if (PyErr_Occurred()) SWIG_fail;
14497 }
14498 resultobj = PyInt_FromLong((long)result);
14499 return resultobj;
14500 fail:
14501 return NULL;
14502}
14503
14504
14505static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
14506 PyObject *resultobj;
14507 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14508 wxString *arg2 = 0 ;
14509 wxString result;
e811c8ce 14510 bool temp2 = False ;
d14a1e28
RD
14511 PyObject * obj0 = 0 ;
14512 PyObject * obj1 = 0 ;
14513 char *kwnames[] = {
14514 (char *) "self",(char *) "str", NULL
14515 };
14516
14517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
14518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14519 {
14520 arg2 = wxString_in_helper(obj1);
14521 if (arg2 == NULL) SWIG_fail;
e811c8ce 14522 temp2 = True;
d14a1e28
RD
14523 }
14524 {
14525 PyThreadState* __tstate = wxPyBeginAllowThreads();
14526 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
14527
14528 wxPyEndAllowThreads(__tstate);
14529 if (PyErr_Occurred()) SWIG_fail;
14530 }
14531 {
14532#if wxUSE_UNICODE
14533 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14534#else
14535 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14536#endif
14537 }
14538 {
14539 if (temp2)
14540 delete arg2;
14541 }
14542 return resultobj;
14543 fail:
14544 {
14545 if (temp2)
14546 delete arg2;
14547 }
14548 return NULL;
14549}
14550
14551
14552static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
14553 PyObject *resultobj;
14554 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14555 wxString result;
14556 PyObject * obj0 = 0 ;
14557 char *kwnames[] = {
14558 (char *) "self", NULL
14559 };
14560
14561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
14562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14563 {
14564 PyThreadState* __tstate = wxPyBeginAllowThreads();
14565 result = ((wxConfigBase const *)arg1)->GetAppName();
14566
14567 wxPyEndAllowThreads(__tstate);
14568 if (PyErr_Occurred()) SWIG_fail;
14569 }
14570 {
14571#if wxUSE_UNICODE
14572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14573#else
14574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14575#endif
14576 }
14577 return resultobj;
14578 fail:
14579 return NULL;
14580}
14581
14582
14583static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
14584 PyObject *resultobj;
14585 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14586 wxString result;
14587 PyObject * obj0 = 0 ;
14588 char *kwnames[] = {
14589 (char *) "self", NULL
14590 };
14591
14592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
14593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = ((wxConfigBase const *)arg1)->GetVendorName();
14597
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 {
14602#if wxUSE_UNICODE
14603 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14604#else
14605 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14606#endif
14607 }
14608 return resultobj;
14609 fail:
14610 return NULL;
14611}
14612
14613
14614static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
14615 PyObject *resultobj;
14616 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14617 wxString *arg2 = 0 ;
e811c8ce 14618 bool temp2 = False ;
d14a1e28
RD
14619 PyObject * obj0 = 0 ;
14620 PyObject * obj1 = 0 ;
14621 char *kwnames[] = {
14622 (char *) "self",(char *) "appName", NULL
14623 };
14624
14625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
14626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14627 {
14628 arg2 = wxString_in_helper(obj1);
14629 if (arg2 == NULL) SWIG_fail;
e811c8ce 14630 temp2 = True;
d14a1e28
RD
14631 }
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 (arg1)->SetAppName((wxString const &)*arg2);
14635
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 Py_INCREF(Py_None); resultobj = Py_None;
14640 {
14641 if (temp2)
14642 delete arg2;
14643 }
14644 return resultobj;
14645 fail:
14646 {
14647 if (temp2)
14648 delete arg2;
14649 }
14650 return NULL;
14651}
14652
14653
14654static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
14655 PyObject *resultobj;
14656 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14657 wxString *arg2 = 0 ;
e811c8ce 14658 bool temp2 = False ;
d14a1e28
RD
14659 PyObject * obj0 = 0 ;
14660 PyObject * obj1 = 0 ;
14661 char *kwnames[] = {
14662 (char *) "self",(char *) "vendorName", NULL
14663 };
14664
14665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
14666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14667 {
14668 arg2 = wxString_in_helper(obj1);
14669 if (arg2 == NULL) SWIG_fail;
e811c8ce 14670 temp2 = True;
d14a1e28
RD
14671 }
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 (arg1)->SetVendorName((wxString const &)*arg2);
14675
14676 wxPyEndAllowThreads(__tstate);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 Py_INCREF(Py_None); resultobj = Py_None;
14680 {
14681 if (temp2)
14682 delete arg2;
14683 }
14684 return resultobj;
14685 fail:
14686 {
14687 if (temp2)
14688 delete arg2;
14689 }
14690 return NULL;
14691}
14692
14693
14694static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
14695 PyObject *resultobj;
14696 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14697 long arg2 ;
14698 PyObject * obj0 = 0 ;
14699 char *kwnames[] = {
14700 (char *) "self",(char *) "style", NULL
14701 };
14702
14703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_SetStyle",kwnames,&obj0,&arg2)) goto fail;
14704 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14705 {
14706 PyThreadState* __tstate = wxPyBeginAllowThreads();
14707 (arg1)->SetStyle(arg2);
14708
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 Py_INCREF(Py_None); resultobj = Py_None;
14713 return resultobj;
14714 fail:
14715 return NULL;
14716}
14717
14718
14719static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
14720 PyObject *resultobj;
14721 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14722 long result;
14723 PyObject * obj0 = 0 ;
14724 char *kwnames[] = {
14725 (char *) "self", NULL
14726 };
14727
14728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
14729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14730 {
14731 PyThreadState* __tstate = wxPyBeginAllowThreads();
14732 result = (long)((wxConfigBase const *)arg1)->GetStyle();
14733
14734 wxPyEndAllowThreads(__tstate);
14735 if (PyErr_Occurred()) SWIG_fail;
14736 }
14737 resultobj = PyInt_FromLong((long)result);
14738 return resultobj;
14739 fail:
14740 return NULL;
14741}
14742
14743
14744static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
14745 PyObject *obj;
14746 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14747 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
14748 Py_INCREF(obj);
14749 return Py_BuildValue((char *)"");
14750}
14751static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
14752 PyObject *resultobj;
14753 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14754 wxString *arg2 = 0 ;
14755 wxConfigPathChanger *result;
e811c8ce 14756 bool temp2 = False ;
d14a1e28
RD
14757 PyObject * obj0 = 0 ;
14758 PyObject * obj1 = 0 ;
14759 char *kwnames[] = {
14760 (char *) "pContainer",(char *) "strEntry", NULL
14761 };
14762
14763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
14764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14765 {
14766 arg2 = wxString_in_helper(obj1);
14767 if (arg2 == NULL) SWIG_fail;
e811c8ce 14768 temp2 = True;
d14a1e28
RD
14769 }
14770 {
14771 PyThreadState* __tstate = wxPyBeginAllowThreads();
14772 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
14773
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1);
14778 {
14779 if (temp2)
14780 delete arg2;
14781 }
14782 return resultobj;
14783 fail:
14784 {
14785 if (temp2)
14786 delete arg2;
14787 }
14788 return NULL;
14789}
14790
14791
14792static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
14793 PyObject *resultobj;
14794 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
14795 PyObject * obj0 = 0 ;
14796 char *kwnames[] = {
14797 (char *) "self", NULL
14798 };
14799
14800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
14801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14802 {
14803 PyThreadState* __tstate = wxPyBeginAllowThreads();
14804 delete arg1;
14805
14806 wxPyEndAllowThreads(__tstate);
14807 if (PyErr_Occurred()) SWIG_fail;
14808 }
14809 Py_INCREF(Py_None); resultobj = Py_None;
14810 return resultobj;
14811 fail:
14812 return NULL;
14813}
14814
14815
14816static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
14817 PyObject *resultobj;
14818 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
14819 wxString *result;
14820 PyObject * obj0 = 0 ;
14821 char *kwnames[] = {
14822 (char *) "self", NULL
14823 };
14824
14825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
14826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 {
14830 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
14831 result = (wxString *) &_result_ref;
14832 }
14833
14834 wxPyEndAllowThreads(__tstate);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 }
cc6dd355
RD
14837 {
14838#if wxUSE_UNICODE
14839 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14840#else
14841 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14842#endif
14843 }
d14a1e28
RD
14844 return resultobj;
14845 fail:
14846 return NULL;
14847}
14848
14849
14850static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
14851 PyObject *obj;
14852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14853 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
14854 Py_INCREF(obj);
14855 return Py_BuildValue((char *)"");
14856}
14857static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
14858 PyObject *resultobj;
14859 wxString const &arg1_defvalue = wxPyEmptyString ;
14860 wxString *arg1 = (wxString *) &arg1_defvalue ;
14861 wxString const &arg2_defvalue = wxPyEmptyString ;
14862 wxString *arg2 = (wxString *) &arg2_defvalue ;
14863 wxString const &arg3_defvalue = wxPyEmptyString ;
14864 wxString *arg3 = (wxString *) &arg3_defvalue ;
14865 wxString const &arg4_defvalue = wxPyEmptyString ;
14866 wxString *arg4 = (wxString *) &arg4_defvalue ;
14867 long arg5 = (long) 0 ;
14868 wxConfig *result;
e811c8ce
RD
14869 bool temp1 = False ;
14870 bool temp2 = False ;
14871 bool temp3 = False ;
14872 bool temp4 = False ;
d14a1e28
RD
14873 PyObject * obj0 = 0 ;
14874 PyObject * obj1 = 0 ;
14875 PyObject * obj2 = 0 ;
14876 PyObject * obj3 = 0 ;
14877 char *kwnames[] = {
14878 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
14879 };
14880
14881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail;
14882 if (obj0) {
14883 {
14884 arg1 = wxString_in_helper(obj0);
14885 if (arg1 == NULL) SWIG_fail;
e811c8ce 14886 temp1 = True;
d14a1e28
RD
14887 }
14888 }
14889 if (obj1) {
14890 {
14891 arg2 = wxString_in_helper(obj1);
14892 if (arg2 == NULL) SWIG_fail;
e811c8ce 14893 temp2 = True;
d14a1e28
RD
14894 }
14895 }
14896 if (obj2) {
14897 {
14898 arg3 = wxString_in_helper(obj2);
14899 if (arg3 == NULL) SWIG_fail;
e811c8ce 14900 temp3 = True;
d14a1e28
RD
14901 }
14902 }
14903 if (obj3) {
14904 {
14905 arg4 = wxString_in_helper(obj3);
14906 if (arg4 == NULL) SWIG_fail;
e811c8ce 14907 temp4 = True;
d14a1e28
RD
14908 }
14909 }
14910 {
14911 PyThreadState* __tstate = wxPyBeginAllowThreads();
14912 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
14913
14914 wxPyEndAllowThreads(__tstate);
14915 if (PyErr_Occurred()) SWIG_fail;
14916 }
14917 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1);
14918 {
14919 if (temp1)
14920 delete arg1;
14921 }
14922 {
14923 if (temp2)
14924 delete arg2;
14925 }
14926 {
14927 if (temp3)
14928 delete arg3;
14929 }
14930 {
14931 if (temp4)
14932 delete arg4;
14933 }
14934 return resultobj;
14935 fail:
14936 {
14937 if (temp1)
14938 delete arg1;
14939 }
14940 {
14941 if (temp2)
14942 delete arg2;
14943 }
14944 {
14945 if (temp3)
14946 delete arg3;
14947 }
14948 {
14949 if (temp4)
14950 delete arg4;
14951 }
14952 return NULL;
14953}
14954
14955
14956static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
14957 PyObject *resultobj;
14958 wxConfig *arg1 = (wxConfig *) 0 ;
14959 PyObject * obj0 = 0 ;
14960 char *kwnames[] = {
14961 (char *) "self", NULL
14962 };
14963
14964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
14965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14966 {
14967 PyThreadState* __tstate = wxPyBeginAllowThreads();
14968 delete arg1;
14969
14970 wxPyEndAllowThreads(__tstate);
14971 if (PyErr_Occurred()) SWIG_fail;
14972 }
14973 Py_INCREF(Py_None); resultobj = Py_None;
14974 return resultobj;
14975 fail:
14976 return NULL;
14977}
14978
14979
14980static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
14981 PyObject *obj;
14982 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14983 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
14984 Py_INCREF(obj);
14985 return Py_BuildValue((char *)"");
14986}
14987static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj;
14989 wxString const &arg1_defvalue = wxPyEmptyString ;
14990 wxString *arg1 = (wxString *) &arg1_defvalue ;
14991 wxString const &arg2_defvalue = wxPyEmptyString ;
14992 wxString *arg2 = (wxString *) &arg2_defvalue ;
14993 wxString const &arg3_defvalue = wxPyEmptyString ;
14994 wxString *arg3 = (wxString *) &arg3_defvalue ;
14995 wxString const &arg4_defvalue = wxPyEmptyString ;
14996 wxString *arg4 = (wxString *) &arg4_defvalue ;
14997 long arg5 = (long) 0 ;
14998 wxFileConfig *result;
e811c8ce
RD
14999 bool temp1 = False ;
15000 bool temp2 = False ;
15001 bool temp3 = False ;
15002 bool temp4 = False ;
d14a1e28
RD
15003 PyObject * obj0 = 0 ;
15004 PyObject * obj1 = 0 ;
15005 PyObject * obj2 = 0 ;
15006 PyObject * obj3 = 0 ;
15007 char *kwnames[] = {
15008 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
15009 };
15010
15011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail;
15012 if (obj0) {
15013 {
15014 arg1 = wxString_in_helper(obj0);
15015 if (arg1 == NULL) SWIG_fail;
e811c8ce 15016 temp1 = True;
d14a1e28
RD
15017 }
15018 }
15019 if (obj1) {
15020 {
15021 arg2 = wxString_in_helper(obj1);
15022 if (arg2 == NULL) SWIG_fail;
e811c8ce 15023 temp2 = True;
d14a1e28
RD
15024 }
15025 }
15026 if (obj2) {
15027 {
15028 arg3 = wxString_in_helper(obj2);
15029 if (arg3 == NULL) SWIG_fail;
e811c8ce 15030 temp3 = True;
d14a1e28
RD
15031 }
15032 }
15033 if (obj3) {
15034 {
15035 arg4 = wxString_in_helper(obj3);
15036 if (arg4 == NULL) SWIG_fail;
e811c8ce 15037 temp4 = True;
d14a1e28
RD
15038 }
15039 }
15040 {
15041 PyThreadState* __tstate = wxPyBeginAllowThreads();
15042 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
15043
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1);
15048 {
15049 if (temp1)
15050 delete arg1;
15051 }
15052 {
15053 if (temp2)
15054 delete arg2;
15055 }
15056 {
15057 if (temp3)
15058 delete arg3;
15059 }
15060 {
15061 if (temp4)
15062 delete arg4;
15063 }
15064 return resultobj;
15065 fail:
15066 {
15067 if (temp1)
15068 delete arg1;
15069 }
15070 {
15071 if (temp2)
15072 delete arg2;
15073 }
15074 {
15075 if (temp3)
15076 delete arg3;
15077 }
15078 {
15079 if (temp4)
15080 delete arg4;
15081 }
15082 return NULL;
15083}
15084
15085
15086static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj;
15088 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
15089 PyObject * obj0 = 0 ;
15090 char *kwnames[] = {
15091 (char *) "self", NULL
15092 };
15093
15094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
15095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15096 {
15097 PyThreadState* __tstate = wxPyBeginAllowThreads();
15098 delete arg1;
15099
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 Py_INCREF(Py_None); resultobj = Py_None;
15104 return resultobj;
15105 fail:
15106 return NULL;
15107}
15108
15109
15110static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
15111 PyObject *obj;
15112 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15113 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
15114 Py_INCREF(obj);
15115 return Py_BuildValue((char *)"");
15116}
15117static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15118 PyObject *resultobj;
15119 wxString *arg1 = 0 ;
15120 wxString result;
e811c8ce 15121 bool temp1 = False ;
d14a1e28
RD
15122 PyObject * obj0 = 0 ;
15123 char *kwnames[] = {
15124 (char *) "sz", NULL
15125 };
15126
15127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
15128 {
15129 arg1 = wxString_in_helper(obj0);
15130 if (arg1 == NULL) SWIG_fail;
e811c8ce 15131 temp1 = True;
d14a1e28
RD
15132 }
15133 {
15134 PyThreadState* __tstate = wxPyBeginAllowThreads();
15135 result = wxExpandEnvVars((wxString const &)*arg1);
15136
15137 wxPyEndAllowThreads(__tstate);
15138 if (PyErr_Occurred()) SWIG_fail;
15139 }
15140 {
15141#if wxUSE_UNICODE
15142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15143#else
15144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15145#endif
15146 }
15147 {
15148 if (temp1)
15149 delete arg1;
15150 }
15151 return resultobj;
15152 fail:
15153 {
15154 if (temp1)
15155 delete arg1;
15156 }
15157 return NULL;
15158}
15159
15160
15161static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
15162 PyObject *resultobj;
15163 int arg1 ;
15164 char *kwnames[] = {
15165 (char *) "country", NULL
15166 };
15167
15168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_SetCountry",kwnames,&arg1)) goto fail;
15169 {
15170 PyThreadState* __tstate = wxPyBeginAllowThreads();
15171 wxDateTime::SetCountry((wxDateTime::Country )arg1);
15172
15173 wxPyEndAllowThreads(__tstate);
15174 if (PyErr_Occurred()) SWIG_fail;
15175 }
15176 Py_INCREF(Py_None); resultobj = Py_None;
15177 return resultobj;
15178 fail:
15179 return NULL;
15180}
15181
15182
15183static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
15184 PyObject *resultobj;
15185 int result;
15186 char *kwnames[] = {
15187 NULL
15188 };
15189
15190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = (int)wxDateTime::GetCountry();
15194
15195 wxPyEndAllowThreads(__tstate);
15196 if (PyErr_Occurred()) SWIG_fail;
15197 }
15198 resultobj = PyInt_FromLong((long)result);
15199 return resultobj;
15200 fail:
15201 return NULL;
15202}
15203
15204
15205static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
15206 PyObject *resultobj;
15207 int arg1 = (int) wxDateTime::Country_Default ;
15208 bool result;
15209 char *kwnames[] = {
15210 (char *) "country", NULL
15211 };
15212
15213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_IsWestEuropeanCountry",kwnames,&arg1)) goto fail;
15214 {
15215 PyThreadState* __tstate = wxPyBeginAllowThreads();
15216 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
15217
15218 wxPyEndAllowThreads(__tstate);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 resultobj = PyInt_FromLong((long)result);
15222 return resultobj;
15223 fail:
15224 return NULL;
15225}
15226
15227
15228static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
15229 PyObject *resultobj;
15230 int arg1 = (int) wxDateTime::Gregorian ;
15231 int result;
15232 char *kwnames[] = {
15233 (char *) "cal", NULL
15234 };
15235
15236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentYear",kwnames,&arg1)) goto fail;
15237 {
15238 PyThreadState* __tstate = wxPyBeginAllowThreads();
15239 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
15240
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 resultobj = PyInt_FromLong((long)result);
15245 return resultobj;
15246 fail:
15247 return NULL;
15248}
15249
15250
15251static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
15252 PyObject *resultobj;
15253 int arg1 ;
15254 int result;
15255 char *kwnames[] = {
15256 (char *) "year", NULL
15257 };
15258
15259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_ConvertYearToBC",kwnames,&arg1)) goto fail;
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 result = (int)wxDateTime::ConvertYearToBC(arg1);
15263
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = PyInt_FromLong((long)result);
15268 return resultobj;
15269 fail:
15270 return NULL;
15271}
15272
15273
15274static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
15275 PyObject *resultobj;
15276 int arg1 = (int) wxDateTime::Gregorian ;
15277 int result;
15278 char *kwnames[] = {
15279 (char *) "cal", NULL
15280 };
15281
15282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentMonth",kwnames,&arg1)) goto fail;
15283 {
15284 PyThreadState* __tstate = wxPyBeginAllowThreads();
15285 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
15286
15287 wxPyEndAllowThreads(__tstate);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 resultobj = PyInt_FromLong((long)result);
15291 return resultobj;
15292 fail:
15293 return NULL;
15294}
15295
15296
15297static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
15298 PyObject *resultobj;
15299 int arg1 = (int) wxDateTime::Inv_Year ;
15300 int arg2 = (int) wxDateTime::Gregorian ;
15301 bool result;
15302 char *kwnames[] = {
15303 (char *) "year",(char *) "cal", NULL
15304 };
15305
15306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsLeapYear",kwnames,&arg1,&arg2)) goto fail;
15307 {
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
15310
15311 wxPyEndAllowThreads(__tstate);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 resultobj = PyInt_FromLong((long)result);
15315 return resultobj;
15316 fail:
15317 return NULL;
15318}
15319
15320
15321static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
15322 PyObject *resultobj;
15323 int arg1 = (int) wxDateTime::Inv_Year ;
15324 int result;
15325 char *kwnames[] = {
15326 (char *) "year", NULL
15327 };
15328
15329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCentury",kwnames,&arg1)) goto fail;
15330 {
15331 PyThreadState* __tstate = wxPyBeginAllowThreads();
15332 result = (int)wxDateTime::GetCentury(arg1);
15333
15334 wxPyEndAllowThreads(__tstate);
15335 if (PyErr_Occurred()) SWIG_fail;
15336 }
15337 resultobj = PyInt_FromLong((long)result);
15338 return resultobj;
15339 fail:
15340 return NULL;
15341}
15342
15343
15344static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
15345 PyObject *resultobj;
15346 int arg1 ;
15347 int arg2 = (int) wxDateTime::Gregorian ;
322913ce 15348 int result;
d14a1e28
RD
15349 char *kwnames[] = {
15350 (char *) "year",(char *) "cal", NULL
15351 };
15352
15353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetNumberOfDaysinYear",kwnames,&arg1,&arg2)) goto fail;
15354 {
15355 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 15356 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
d14a1e28
RD
15357
15358 wxPyEndAllowThreads(__tstate);
15359 if (PyErr_Occurred()) SWIG_fail;
15360 }
15361 resultobj = PyInt_FromLong((long)result);
15362 return resultobj;
15363 fail:
15364 return NULL;
15365}
15366
15367
15368static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
15369 PyObject *resultobj;
15370 int arg1 ;
15371 int arg2 = (int) wxDateTime::Inv_Year ;
15372 int arg3 = (int) wxDateTime::Gregorian ;
322913ce 15373 int result;
d14a1e28
RD
15374 char *kwnames[] = {
15375 (char *) "month",(char *) "year",(char *) "cal", NULL
15376 };
15377
15378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|ii:DateTime_GetNumberOfDaysInMonth",kwnames,&arg1,&arg2,&arg3)) goto fail;
15379 {
15380 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 15381 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
d14a1e28
RD
15382
15383 wxPyEndAllowThreads(__tstate);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 resultobj = PyInt_FromLong((long)result);
15387 return resultobj;
15388 fail:
15389 return NULL;
15390}
15391
15392
15393static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj;
15395 int arg1 ;
15396 int arg2 = (int) wxDateTime::Name_Full ;
15397 wxString result;
15398 char *kwnames[] = {
15399 (char *) "month",(char *) "flags", NULL
15400 };
15401
15402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetMonthName",kwnames,&arg1,&arg2)) goto fail;
15403 {
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
15405 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
15406
15407 wxPyEndAllowThreads(__tstate);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 }
15410 {
15411#if wxUSE_UNICODE
15412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15413#else
15414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15415#endif
15416 }
15417 return resultobj;
15418 fail:
15419 return NULL;
15420}
15421
15422
15423static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
15424 PyObject *resultobj;
15425 int arg1 ;
15426 int arg2 = (int) wxDateTime::Name_Full ;
15427 wxString result;
15428 char *kwnames[] = {
15429 (char *) "weekday",(char *) "flags", NULL
15430 };
15431
15432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetWeekDayName",kwnames,&arg1,&arg2)) goto fail;
15433 {
15434 PyThreadState* __tstate = wxPyBeginAllowThreads();
15435 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
15436
15437 wxPyEndAllowThreads(__tstate);
15438 if (PyErr_Occurred()) SWIG_fail;
15439 }
15440 {
15441#if wxUSE_UNICODE
15442 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15443#else
15444 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15445#endif
15446 }
15447 return resultobj;
15448 fail:
15449 return NULL;
15450}
15451
15452
15453static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
15454 PyObject *resultobj;
15455 wxString *arg1 = (wxString *) 0 ;
15456 wxString *arg2 = (wxString *) 0 ;
15457 PyObject * obj0 = 0 ;
15458 PyObject * obj1 = 0 ;
15459 char *kwnames[] = {
15460 (char *) "OUTPUT",(char *) "OUTPUT", NULL
15461 };
15462
15463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
15464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15465 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15466 {
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 wxDateTime::GetAmPmStrings(arg1,arg2);
15469
15470 wxPyEndAllowThreads(__tstate);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 }
15473 Py_INCREF(Py_None); resultobj = Py_None;
15474 return resultobj;
15475 fail:
15476 return NULL;
15477}
15478
15479
15480static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
15481 PyObject *resultobj;
15482 int arg1 = (int) wxDateTime::Inv_Year ;
15483 int arg2 = (int) wxDateTime::Country_Default ;
15484 bool result;
15485 char *kwnames[] = {
15486 (char *) "year",(char *) "country", NULL
15487 };
15488
15489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsDSTApplicable",kwnames,&arg1,&arg2)) goto fail;
15490 {
15491 PyThreadState* __tstate = wxPyBeginAllowThreads();
15492 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
15493
15494 wxPyEndAllowThreads(__tstate);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 resultobj = PyInt_FromLong((long)result);
15498 return resultobj;
15499 fail:
15500 return NULL;
15501}
15502
15503
15504static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj;
15506 int arg1 = (int) wxDateTime::Inv_Year ;
15507 int arg2 = (int) wxDateTime::Country_Default ;
15508 wxDateTime result;
15509 char *kwnames[] = {
15510 (char *) "year",(char *) "country", NULL
15511 };
15512
15513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetBeginDST",kwnames,&arg1,&arg2)) goto fail;
15514 {
15515 PyThreadState* __tstate = wxPyBeginAllowThreads();
15516 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
15517
15518 wxPyEndAllowThreads(__tstate);
15519 if (PyErr_Occurred()) SWIG_fail;
15520 }
15521 {
15522 wxDateTime * resultptr;
15523 resultptr = new wxDateTime((wxDateTime &) result);
15524 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15525 }
15526 return resultobj;
15527 fail:
15528 return NULL;
15529}
15530
15531
15532static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
15533 PyObject *resultobj;
15534 int arg1 = (int) wxDateTime::Inv_Year ;
15535 int arg2 = (int) wxDateTime::Country_Default ;
15536 wxDateTime result;
15537 char *kwnames[] = {
15538 (char *) "year",(char *) "country", NULL
15539 };
15540
15541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetEndDST",kwnames,&arg1,&arg2)) goto fail;
15542 {
15543 PyThreadState* __tstate = wxPyBeginAllowThreads();
15544 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
15545
15546 wxPyEndAllowThreads(__tstate);
15547 if (PyErr_Occurred()) SWIG_fail;
15548 }
15549 {
15550 wxDateTime * resultptr;
15551 resultptr = new wxDateTime((wxDateTime &) result);
15552 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15553 }
15554 return resultobj;
15555 fail:
15556 return NULL;
15557}
15558
15559
15560static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
15561 PyObject *resultobj;
15562 wxDateTime result;
15563 char *kwnames[] = {
15564 NULL
15565 };
15566
15567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
15568 {
15569 PyThreadState* __tstate = wxPyBeginAllowThreads();
15570 result = wxDateTime::Now();
15571
15572 wxPyEndAllowThreads(__tstate);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 {
15576 wxDateTime * resultptr;
15577 resultptr = new wxDateTime((wxDateTime &) result);
15578 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15579 }
15580 return resultobj;
15581 fail:
15582 return NULL;
15583}
15584
15585
15586static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
15587 PyObject *resultobj;
15588 wxDateTime result;
15589 char *kwnames[] = {
15590 NULL
15591 };
15592
15593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
15594 {
15595 PyThreadState* __tstate = wxPyBeginAllowThreads();
15596 result = wxDateTime::UNow();
15597
15598 wxPyEndAllowThreads(__tstate);
15599 if (PyErr_Occurred()) SWIG_fail;
15600 }
15601 {
15602 wxDateTime * resultptr;
15603 resultptr = new wxDateTime((wxDateTime &) result);
15604 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15605 }
15606 return resultobj;
15607 fail:
15608 return NULL;
15609}
15610
15611
15612static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj;
15614 wxDateTime result;
15615 char *kwnames[] = {
15616 NULL
15617 };
15618
15619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
15620 {
15621 PyThreadState* __tstate = wxPyBeginAllowThreads();
15622 result = wxDateTime::Today();
15623
15624 wxPyEndAllowThreads(__tstate);
15625 if (PyErr_Occurred()) SWIG_fail;
15626 }
15627 {
15628 wxDateTime * resultptr;
15629 resultptr = new wxDateTime((wxDateTime &) result);
15630 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15631 }
15632 return resultobj;
15633 fail:
15634 return NULL;
15635}
15636
15637
15638static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
15639 PyObject *resultobj;
15640 wxDateTime *result;
15641 char *kwnames[] = {
15642 NULL
15643 };
15644
15645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
15646 {
15647 PyThreadState* __tstate = wxPyBeginAllowThreads();
15648 result = (wxDateTime *)new wxDateTime();
15649
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15654 return resultobj;
15655 fail:
15656 return NULL;
15657}
15658
15659
15660static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
15661 PyObject *resultobj;
15662 time_t arg1 ;
15663 wxDateTime *result;
15664 PyObject * obj0 = 0 ;
15665 char *kwnames[] = {
15666 (char *) "timet", NULL
15667 };
15668
15669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
15670 arg1 = (time_t) PyInt_AsLong(obj0);
15671 if (PyErr_Occurred()) SWIG_fail;
15672 {
15673 PyThreadState* __tstate = wxPyBeginAllowThreads();
15674 result = (wxDateTime *)new wxDateTime(arg1);
15675
15676 wxPyEndAllowThreads(__tstate);
15677 if (PyErr_Occurred()) SWIG_fail;
15678 }
15679 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15680 return resultobj;
15681 fail:
15682 return NULL;
15683}
15684
15685
15686static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
15687 PyObject *resultobj;
15688 double arg1 ;
15689 wxDateTime *result;
15690 char *kwnames[] = {
15691 (char *) "jdn", NULL
15692 };
15693
15694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"d:new_DateTimeFromJDN",kwnames,&arg1)) goto fail;
15695 {
15696 PyThreadState* __tstate = wxPyBeginAllowThreads();
15697 result = (wxDateTime *)new wxDateTime(arg1);
15698
15699 wxPyEndAllowThreads(__tstate);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15703 return resultobj;
15704 fail:
15705 return NULL;
15706}
15707
15708
15709static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
15710 PyObject *resultobj;
322913ce
RD
15711 int arg1 ;
15712 int arg2 = (int) 0 ;
15713 int arg3 = (int) 0 ;
15714 int arg4 = (int) 0 ;
d14a1e28 15715 wxDateTime *result;
d14a1e28
RD
15716 char *kwnames[] = {
15717 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
15718 };
15719
322913ce 15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iii:new_DateTimeFromHMS",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
d14a1e28
RD
15721 {
15722 PyThreadState* __tstate = wxPyBeginAllowThreads();
15723 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
15724
15725 wxPyEndAllowThreads(__tstate);
15726 if (PyErr_Occurred()) SWIG_fail;
15727 }
15728 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15729 return resultobj;
15730 fail:
15731 return NULL;
15732}
15733
15734
15735static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
15736 PyObject *resultobj;
322913ce 15737 int arg1 ;
d14a1e28
RD
15738 int arg2 = (int) wxDateTime::Inv_Month ;
15739 int arg3 = (int) wxDateTime::Inv_Year ;
322913ce
RD
15740 int arg4 = (int) 0 ;
15741 int arg5 = (int) 0 ;
15742 int arg6 = (int) 0 ;
15743 int arg7 = (int) 0 ;
d14a1e28 15744 wxDateTime *result;
d14a1e28
RD
15745 char *kwnames[] = {
15746 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
15747 };
15748
322913ce 15749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iiiiii:new_DateTimeFromDMY",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
d14a1e28
RD
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
15753
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15758 return resultobj;
15759 fail:
15760 return NULL;
15761}
15762
15763
15764static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
15765 PyObject *resultobj;
15766 wxDateTime *arg1 = (wxDateTime *) 0 ;
15767 PyObject * obj0 = 0 ;
15768 char *kwnames[] = {
15769 (char *) "self", NULL
15770 };
15771
15772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
15773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15774 {
15775 PyThreadState* __tstate = wxPyBeginAllowThreads();
15776 delete arg1;
15777
15778 wxPyEndAllowThreads(__tstate);
15779 if (PyErr_Occurred()) SWIG_fail;
15780 }
15781 Py_INCREF(Py_None); resultobj = Py_None;
15782 return resultobj;
15783 fail:
15784 return NULL;
15785}
15786
15787
15788static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
15789 PyObject *resultobj;
15790 wxDateTime *arg1 = (wxDateTime *) 0 ;
15791 wxDateTime *result;
15792 PyObject * obj0 = 0 ;
15793 char *kwnames[] = {
15794 (char *) "self", NULL
15795 };
15796
15797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
15798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15799 {
15800 PyThreadState* __tstate = wxPyBeginAllowThreads();
15801 {
15802 wxDateTime &_result_ref = (arg1)->SetToCurrent();
15803 result = (wxDateTime *) &_result_ref;
15804 }
15805
15806 wxPyEndAllowThreads(__tstate);
15807 if (PyErr_Occurred()) SWIG_fail;
15808 }
15809 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15810 return resultobj;
15811 fail:
15812 return NULL;
15813}
15814
15815
15816static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
15817 PyObject *resultobj;
15818 wxDateTime *arg1 = (wxDateTime *) 0 ;
15819 time_t arg2 ;
15820 wxDateTime *result;
15821 PyObject * obj0 = 0 ;
15822 PyObject * obj1 = 0 ;
15823 char *kwnames[] = {
15824 (char *) "self",(char *) "timet", NULL
15825 };
15826
15827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
15828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15829 arg2 = (time_t) PyInt_AsLong(obj1);
15830 if (PyErr_Occurred()) SWIG_fail;
15831 {
15832 PyThreadState* __tstate = wxPyBeginAllowThreads();
15833 {
15834 wxDateTime &_result_ref = (arg1)->Set(arg2);
15835 result = (wxDateTime *) &_result_ref;
15836 }
15837
15838 wxPyEndAllowThreads(__tstate);
15839 if (PyErr_Occurred()) SWIG_fail;
15840 }
15841 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15842 return resultobj;
15843 fail:
15844 return NULL;
15845}
15846
15847
15848static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
15849 PyObject *resultobj;
15850 wxDateTime *arg1 = (wxDateTime *) 0 ;
15851 double arg2 ;
15852 wxDateTime *result;
15853 PyObject * obj0 = 0 ;
15854 char *kwnames[] = {
15855 (char *) "self",(char *) "jdn", NULL
15856 };
15857
15858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:DateTime_SetJDN",kwnames,&obj0,&arg2)) goto fail;
15859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15860 {
15861 PyThreadState* __tstate = wxPyBeginAllowThreads();
15862 {
15863 wxDateTime &_result_ref = (arg1)->Set(arg2);
15864 result = (wxDateTime *) &_result_ref;
15865 }
15866
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15871 return resultobj;
15872 fail:
15873 return NULL;
15874}
15875
15876
15877static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
15878 PyObject *resultobj;
15879 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce
RD
15880 int arg2 ;
15881 int arg3 = (int) 0 ;
15882 int arg4 = (int) 0 ;
15883 int arg5 = (int) 0 ;
d14a1e28
RD
15884 wxDateTime *result;
15885 PyObject * obj0 = 0 ;
d14a1e28
RD
15886 char *kwnames[] = {
15887 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
15888 };
15889
322913ce 15890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetHMS",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
d14a1e28 15891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15892 {
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 {
15895 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
15896 result = (wxDateTime *) &_result_ref;
15897 }
15898
15899 wxPyEndAllowThreads(__tstate);
15900 if (PyErr_Occurred()) SWIG_fail;
15901 }
15902 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15903 return resultobj;
15904 fail:
15905 return NULL;
15906}
15907
15908
15909static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15910 PyObject *resultobj;
15911 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 15912 int arg2 ;
d14a1e28
RD
15913 int arg3 = (int) wxDateTime::Inv_Month ;
15914 int arg4 = (int) wxDateTime::Inv_Year ;
322913ce
RD
15915 int arg5 = (int) 0 ;
15916 int arg6 = (int) 0 ;
15917 int arg7 = (int) 0 ;
15918 int arg8 = (int) 0 ;
d14a1e28
RD
15919 wxDateTime *result;
15920 PyObject * obj0 = 0 ;
d14a1e28
RD
15921 char *kwnames[] = {
15922 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
15923 };
15924
322913ce 15925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiiiii:DateTime_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail;
d14a1e28 15926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15927 {
15928 PyThreadState* __tstate = wxPyBeginAllowThreads();
15929 {
15930 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
15931 result = (wxDateTime *) &_result_ref;
15932 }
15933
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15938 return resultobj;
15939 fail:
15940 return NULL;
15941}
15942
15943
15944static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
15945 PyObject *resultobj;
15946 wxDateTime *arg1 = (wxDateTime *) 0 ;
15947 wxDateTime *result;
15948 PyObject * obj0 = 0 ;
15949 char *kwnames[] = {
15950 (char *) "self", NULL
15951 };
15952
15953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
15954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15955 {
15956 PyThreadState* __tstate = wxPyBeginAllowThreads();
15957 {
15958 wxDateTime &_result_ref = (arg1)->ResetTime();
15959 result = (wxDateTime *) &_result_ref;
15960 }
15961
15962 wxPyEndAllowThreads(__tstate);
15963 if (PyErr_Occurred()) SWIG_fail;
15964 }
15965 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15966 return resultobj;
15967 fail:
15968 return NULL;
15969}
15970
15971
15972static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
15973 PyObject *resultobj;
15974 wxDateTime *arg1 = (wxDateTime *) 0 ;
15975 int arg2 ;
15976 wxDateTime *result;
15977 PyObject * obj0 = 0 ;
15978 char *kwnames[] = {
15979 (char *) "self",(char *) "year", NULL
15980 };
15981
15982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetYear",kwnames,&obj0,&arg2)) goto fail;
15983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15984 {
15985 PyThreadState* __tstate = wxPyBeginAllowThreads();
15986 {
15987 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
15988 result = (wxDateTime *) &_result_ref;
15989 }
15990
15991 wxPyEndAllowThreads(__tstate);
15992 if (PyErr_Occurred()) SWIG_fail;
15993 }
15994 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15995 return resultobj;
15996 fail:
15997 return NULL;
15998}
15999
16000
16001static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16002 PyObject *resultobj;
16003 wxDateTime *arg1 = (wxDateTime *) 0 ;
16004 int arg2 ;
16005 wxDateTime *result;
16006 PyObject * obj0 = 0 ;
16007 char *kwnames[] = {
16008 (char *) "self",(char *) "month", NULL
16009 };
16010
16011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMonth",kwnames,&obj0,&arg2)) goto fail;
16012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16013 {
16014 PyThreadState* __tstate = wxPyBeginAllowThreads();
16015 {
16016 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
16017 result = (wxDateTime *) &_result_ref;
16018 }
16019
16020 wxPyEndAllowThreads(__tstate);
16021 if (PyErr_Occurred()) SWIG_fail;
16022 }
16023 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16024 return resultobj;
16025 fail:
16026 return NULL;
16027}
16028
16029
16030static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16031 PyObject *resultobj;
16032 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16033 int arg2 ;
d14a1e28
RD
16034 wxDateTime *result;
16035 PyObject * obj0 = 0 ;
d14a1e28
RD
16036 char *kwnames[] = {
16037 (char *) "self",(char *) "day", NULL
16038 };
16039
322913ce 16040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetDay",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16042 {
16043 PyThreadState* __tstate = wxPyBeginAllowThreads();
16044 {
16045 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
16046 result = (wxDateTime *) &_result_ref;
16047 }
16048
16049 wxPyEndAllowThreads(__tstate);
16050 if (PyErr_Occurred()) SWIG_fail;
16051 }
16052 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16053 return resultobj;
16054 fail:
16055 return NULL;
16056}
16057
16058
16059static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
16060 PyObject *resultobj;
16061 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16062 int arg2 ;
d14a1e28
RD
16063 wxDateTime *result;
16064 PyObject * obj0 = 0 ;
d14a1e28
RD
16065 char *kwnames[] = {
16066 (char *) "self",(char *) "hour", NULL
16067 };
16068
322913ce 16069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetHour",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16071 {
16072 PyThreadState* __tstate = wxPyBeginAllowThreads();
16073 {
16074 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
16075 result = (wxDateTime *) &_result_ref;
16076 }
16077
16078 wxPyEndAllowThreads(__tstate);
16079 if (PyErr_Occurred()) SWIG_fail;
16080 }
16081 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16082 return resultobj;
16083 fail:
16084 return NULL;
16085}
16086
16087
16088static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
16089 PyObject *resultobj;
16090 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16091 int arg2 ;
d14a1e28
RD
16092 wxDateTime *result;
16093 PyObject * obj0 = 0 ;
d14a1e28
RD
16094 char *kwnames[] = {
16095 (char *) "self",(char *) "minute", NULL
16096 };
16097
322913ce 16098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMinute",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16100 {
16101 PyThreadState* __tstate = wxPyBeginAllowThreads();
16102 {
16103 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
16104 result = (wxDateTime *) &_result_ref;
16105 }
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16111 return resultobj;
16112 fail:
16113 return NULL;
16114}
16115
16116
16117static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj;
16119 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16120 int arg2 ;
d14a1e28
RD
16121 wxDateTime *result;
16122 PyObject * obj0 = 0 ;
d14a1e28
RD
16123 char *kwnames[] = {
16124 (char *) "self",(char *) "second", NULL
16125 };
16126
322913ce 16127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetSecond",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 {
16132 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
16133 result = (wxDateTime *) &_result_ref;
16134 }
16135
16136 wxPyEndAllowThreads(__tstate);
16137 if (PyErr_Occurred()) SWIG_fail;
16138 }
16139 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16140 return resultobj;
16141 fail:
16142 return NULL;
16143}
16144
16145
16146static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
16147 PyObject *resultobj;
16148 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16149 int arg2 ;
d14a1e28
RD
16150 wxDateTime *result;
16151 PyObject * obj0 = 0 ;
d14a1e28
RD
16152 char *kwnames[] = {
16153 (char *) "self",(char *) "millisecond", NULL
16154 };
16155
322913ce 16156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMillisecond",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16158 {
16159 PyThreadState* __tstate = wxPyBeginAllowThreads();
16160 {
16161 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
16162 result = (wxDateTime *) &_result_ref;
16163 }
16164
16165 wxPyEndAllowThreads(__tstate);
16166 if (PyErr_Occurred()) SWIG_fail;
16167 }
16168 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16169 return resultobj;
16170 fail:
16171 return NULL;
16172}
16173
16174
16175static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
16176 PyObject *resultobj;
16177 wxDateTime *arg1 = (wxDateTime *) 0 ;
16178 int arg2 ;
16179 int arg3 = (int) wxDateTime::Monday_First ;
16180 wxDateTime *result;
16181 PyObject * obj0 = 0 ;
16182 char *kwnames[] = {
16183 (char *) "self",(char *) "weekday",(char *) "flags", NULL
16184 };
16185
16186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail;
16187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16188 {
16189 PyThreadState* __tstate = wxPyBeginAllowThreads();
16190 {
16191 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
16192 result = (wxDateTime *) &_result_ref;
16193 }
16194
16195 wxPyEndAllowThreads(__tstate);
16196 if (PyErr_Occurred()) SWIG_fail;
16197 }
16198 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16199 return resultobj;
16200 fail:
16201 return NULL;
16202}
16203
16204
16205static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
16206 PyObject *resultobj;
16207 wxDateTime *arg1 = (wxDateTime *) 0 ;
16208 int arg2 ;
16209 int arg3 = (int) wxDateTime::Monday_First ;
16210 wxDateTime result;
16211 PyObject * obj0 = 0 ;
16212 char *kwnames[] = {
16213 (char *) "self",(char *) "weekday",(char *) "flags", NULL
16214 };
16215
16216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail;
16217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16218 {
16219 PyThreadState* __tstate = wxPyBeginAllowThreads();
16220 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
16221
16222 wxPyEndAllowThreads(__tstate);
16223 if (PyErr_Occurred()) SWIG_fail;
16224 }
16225 {
16226 wxDateTime * resultptr;
16227 resultptr = new wxDateTime((wxDateTime &) result);
16228 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16229 }
16230 return resultobj;
16231 fail:
16232 return NULL;
16233}
16234
16235
16236static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16237 PyObject *resultobj;
16238 wxDateTime *arg1 = (wxDateTime *) 0 ;
16239 int arg2 ;
16240 wxDateTime *result;
16241 PyObject * obj0 = 0 ;
16242 char *kwnames[] = {
16243 (char *) "self",(char *) "weekday", NULL
16244 };
16245
16246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToNextWeekDay",kwnames,&obj0,&arg2)) goto fail;
16247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 {
16251 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
16252 result = (wxDateTime *) &_result_ref;
16253 }
16254
16255 wxPyEndAllowThreads(__tstate);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16259 return resultobj;
16260 fail:
16261 return NULL;
16262}
16263
16264
16265static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16266 PyObject *resultobj;
16267 wxDateTime *arg1 = (wxDateTime *) 0 ;
16268 int arg2 ;
16269 wxDateTime result;
16270 PyObject * obj0 = 0 ;
16271 char *kwnames[] = {
16272 (char *) "self",(char *) "weekday", NULL
16273 };
16274
16275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetNextWeekDay",kwnames,&obj0,&arg2)) goto fail;
16276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16277 {
16278 PyThreadState* __tstate = wxPyBeginAllowThreads();
16279 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
16280
16281 wxPyEndAllowThreads(__tstate);
16282 if (PyErr_Occurred()) SWIG_fail;
16283 }
16284 {
16285 wxDateTime * resultptr;
16286 resultptr = new wxDateTime((wxDateTime &) result);
16287 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16288 }
16289 return resultobj;
16290 fail:
16291 return NULL;
16292}
16293
16294
16295static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16296 PyObject *resultobj;
16297 wxDateTime *arg1 = (wxDateTime *) 0 ;
16298 int arg2 ;
16299 wxDateTime *result;
16300 PyObject * obj0 = 0 ;
16301 char *kwnames[] = {
16302 (char *) "self",(char *) "weekday", NULL
16303 };
16304
16305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToPrevWeekDay",kwnames,&obj0,&arg2)) goto fail;
16306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16307 {
16308 PyThreadState* __tstate = wxPyBeginAllowThreads();
16309 {
16310 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
16311 result = (wxDateTime *) &_result_ref;
16312 }
16313
16314 wxPyEndAllowThreads(__tstate);
16315 if (PyErr_Occurred()) SWIG_fail;
16316 }
16317 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16318 return resultobj;
16319 fail:
16320 return NULL;
16321}
16322
16323
16324static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj;
16326 wxDateTime *arg1 = (wxDateTime *) 0 ;
16327 int arg2 ;
16328 wxDateTime result;
16329 PyObject * obj0 = 0 ;
16330 char *kwnames[] = {
16331 (char *) "self",(char *) "weekday", NULL
16332 };
16333
16334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetPrevWeekDay",kwnames,&obj0,&arg2)) goto fail;
16335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16336 {
16337 PyThreadState* __tstate = wxPyBeginAllowThreads();
16338 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
16339
16340 wxPyEndAllowThreads(__tstate);
16341 if (PyErr_Occurred()) SWIG_fail;
16342 }
16343 {
16344 wxDateTime * resultptr;
16345 resultptr = new wxDateTime((wxDateTime &) result);
16346 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16347 }
16348 return resultobj;
16349 fail:
16350 return NULL;
16351}
16352
16353
16354static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16355 PyObject *resultobj;
16356 wxDateTime *arg1 = (wxDateTime *) 0 ;
16357 int arg2 ;
16358 int arg3 = (int) 1 ;
16359 int arg4 = (int) wxDateTime::Inv_Month ;
16360 int arg5 = (int) wxDateTime::Inv_Year ;
16361 bool result;
16362 PyObject * obj0 = 0 ;
16363 char *kwnames[] = {
16364 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
16365 };
16366
16367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetToWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
16368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16369 {
16370 PyThreadState* __tstate = wxPyBeginAllowThreads();
16371 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
16372
16373 wxPyEndAllowThreads(__tstate);
16374 if (PyErr_Occurred()) SWIG_fail;
16375 }
16376 resultobj = PyInt_FromLong((long)result);
16377 return resultobj;
16378 fail:
16379 return NULL;
16380}
16381
16382
16383static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16384 PyObject *resultobj;
16385 wxDateTime *arg1 = (wxDateTime *) 0 ;
16386 int arg2 ;
16387 int arg3 = (int) wxDateTime::Inv_Month ;
16388 int arg4 = (int) wxDateTime::Inv_Year ;
16389 bool result;
16390 PyObject * obj0 = 0 ;
16391 char *kwnames[] = {
16392 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
16393 };
16394
16395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
16396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16397 {
16398 PyThreadState* __tstate = wxPyBeginAllowThreads();
16399 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
16400
16401 wxPyEndAllowThreads(__tstate);
16402 if (PyErr_Occurred()) SWIG_fail;
16403 }
16404 resultobj = PyInt_FromLong((long)result);
16405 return resultobj;
16406 fail:
16407 return NULL;
16408}
16409
16410
16411static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16412 PyObject *resultobj;
16413 wxDateTime *arg1 = (wxDateTime *) 0 ;
16414 int arg2 ;
16415 int arg3 = (int) wxDateTime::Inv_Month ;
16416 int arg4 = (int) wxDateTime::Inv_Year ;
16417 wxDateTime result;
16418 PyObject * obj0 = 0 ;
16419 char *kwnames[] = {
16420 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
16421 };
16422
16423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
16424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16425 {
16426 PyThreadState* __tstate = wxPyBeginAllowThreads();
16427 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
16428
16429 wxPyEndAllowThreads(__tstate);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 {
16433 wxDateTime * resultptr;
16434 resultptr = new wxDateTime((wxDateTime &) result);
16435 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16436 }
16437 return resultobj;
16438 fail:
16439 return NULL;
16440}
16441
16442
16443static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
16444 PyObject *resultobj;
16445 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16446 int arg2 ;
d14a1e28
RD
16447 int arg3 = (int) wxDateTime::Mon ;
16448 int arg4 = (int) wxDateTime::Monday_First ;
16449 bool result;
16450 PyObject * obj0 = 0 ;
d14a1e28
RD
16451 char *kwnames[] = {
16452 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
16453 };
16454
322913ce 16455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToTheWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
d14a1e28 16456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16457 {
16458 PyThreadState* __tstate = wxPyBeginAllowThreads();
16459 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
16460
16461 wxPyEndAllowThreads(__tstate);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 }
16464 resultobj = PyInt_FromLong((long)result);
16465 return resultobj;
16466 fail:
16467 return NULL;
16468}
16469
16470
16471static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
16472 PyObject *resultobj;
16473 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16474 int arg2 ;
d14a1e28
RD
16475 int arg3 = (int) wxDateTime::Mon ;
16476 int arg4 = (int) wxDateTime::Monday_First ;
16477 wxDateTime result;
16478 PyObject * obj0 = 0 ;
d14a1e28
RD
16479 char *kwnames[] = {
16480 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
16481 };
16482
322913ce 16483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
d14a1e28 16484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16485 {
16486 PyThreadState* __tstate = wxPyBeginAllowThreads();
16487 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
16488
16489 wxPyEndAllowThreads(__tstate);
16490 if (PyErr_Occurred()) SWIG_fail;
16491 }
16492 {
16493 wxDateTime * resultptr;
16494 resultptr = new wxDateTime((wxDateTime &) result);
16495 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16496 }
16497 return resultobj;
16498 fail:
16499 return NULL;
16500}
16501
16502
16503static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16504 PyObject *resultobj;
16505 wxDateTime *arg1 = (wxDateTime *) 0 ;
16506 int arg2 = (int) wxDateTime::Inv_Month ;
16507 int arg3 = (int) wxDateTime::Inv_Year ;
16508 wxDateTime *result;
16509 PyObject * obj0 = 0 ;
16510 char *kwnames[] = {
16511 (char *) "self",(char *) "month",(char *) "year", NULL
16512 };
16513
16514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_SetToLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail;
16515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16516 {
16517 PyThreadState* __tstate = wxPyBeginAllowThreads();
16518 {
16519 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
16520 result = (wxDateTime *) &_result_ref;
16521 }
16522
16523 wxPyEndAllowThreads(__tstate);
16524 if (PyErr_Occurred()) SWIG_fail;
16525 }
16526 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16527 return resultobj;
16528 fail:
16529 return NULL;
16530}
16531
16532
16533static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16534 PyObject *resultobj;
16535 wxDateTime *arg1 = (wxDateTime *) 0 ;
16536 int arg2 = (int) wxDateTime::Inv_Month ;
16537 int arg3 = (int) wxDateTime::Inv_Year ;
16538 wxDateTime result;
16539 PyObject * obj0 = 0 ;
16540 char *kwnames[] = {
16541 (char *) "self",(char *) "month",(char *) "year", NULL
16542 };
16543
16544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_GetLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail;
16545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16546 {
16547 PyThreadState* __tstate = wxPyBeginAllowThreads();
16548 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
16549
16550 wxPyEndAllowThreads(__tstate);
16551 if (PyErr_Occurred()) SWIG_fail;
16552 }
16553 {
16554 wxDateTime * resultptr;
16555 resultptr = new wxDateTime((wxDateTime &) result);
16556 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16557 }
16558 return resultobj;
16559 fail:
16560 return NULL;
16561}
16562
16563
16564static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16565 PyObject *resultobj;
16566 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16567 int arg2 ;
d14a1e28
RD
16568 wxDateTime *result;
16569 PyObject * obj0 = 0 ;
d14a1e28
RD
16570 char *kwnames[] = {
16571 (char *) "self",(char *) "yday", NULL
16572 };
16573
322913ce 16574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToYearDay",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16576 {
16577 PyThreadState* __tstate = wxPyBeginAllowThreads();
16578 {
16579 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
16580 result = (wxDateTime *) &_result_ref;
16581 }
16582
16583 wxPyEndAllowThreads(__tstate);
16584 if (PyErr_Occurred()) SWIG_fail;
16585 }
16586 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16587 return resultobj;
16588 fail:
16589 return NULL;
16590}
16591
16592
16593static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16594 PyObject *resultobj;
16595 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16596 int arg2 ;
d14a1e28
RD
16597 wxDateTime result;
16598 PyObject * obj0 = 0 ;
d14a1e28
RD
16599 char *kwnames[] = {
16600 (char *) "self",(char *) "yday", NULL
16601 };
16602
322913ce 16603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetYearDay",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16605 {
16606 PyThreadState* __tstate = wxPyBeginAllowThreads();
16607 result = (arg1)->GetYearDay(arg2);
16608
16609 wxPyEndAllowThreads(__tstate);
16610 if (PyErr_Occurred()) SWIG_fail;
16611 }
16612 {
16613 wxDateTime * resultptr;
16614 resultptr = new wxDateTime((wxDateTime &) result);
16615 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16616 }
16617 return resultobj;
16618 fail:
16619 return NULL;
16620}
16621
16622
16623static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
16624 PyObject *resultobj;
16625 wxDateTime *arg1 = (wxDateTime *) 0 ;
16626 double result;
16627 PyObject * obj0 = 0 ;
16628 char *kwnames[] = {
16629 (char *) "self", NULL
16630 };
16631
16632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
16633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16634 {
16635 PyThreadState* __tstate = wxPyBeginAllowThreads();
16636 result = (double)(arg1)->GetJulianDayNumber();
16637
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 resultobj = PyFloat_FromDouble(result);
16642 return resultobj;
16643 fail:
16644 return NULL;
16645}
16646
16647
16648static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
16649 PyObject *resultobj;
16650 wxDateTime *arg1 = (wxDateTime *) 0 ;
16651 double result;
16652 PyObject * obj0 = 0 ;
16653 char *kwnames[] = {
16654 (char *) "self", NULL
16655 };
16656
16657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
16658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16659 {
16660 PyThreadState* __tstate = wxPyBeginAllowThreads();
16661 result = (double)(arg1)->GetJDN();
16662
16663 wxPyEndAllowThreads(__tstate);
16664 if (PyErr_Occurred()) SWIG_fail;
16665 }
16666 resultobj = PyFloat_FromDouble(result);
16667 return resultobj;
16668 fail:
16669 return NULL;
16670}
16671
16672
16673static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
16674 PyObject *resultobj;
16675 wxDateTime *arg1 = (wxDateTime *) 0 ;
16676 double result;
16677 PyObject * obj0 = 0 ;
16678 char *kwnames[] = {
16679 (char *) "self", NULL
16680 };
16681
16682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
16683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16684 {
16685 PyThreadState* __tstate = wxPyBeginAllowThreads();
16686 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
16687
16688 wxPyEndAllowThreads(__tstate);
16689 if (PyErr_Occurred()) SWIG_fail;
16690 }
16691 resultobj = PyFloat_FromDouble(result);
16692 return resultobj;
16693 fail:
16694 return NULL;
16695}
16696
16697
16698static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
16699 PyObject *resultobj;
16700 wxDateTime *arg1 = (wxDateTime *) 0 ;
16701 double result;
16702 PyObject * obj0 = 0 ;
16703 char *kwnames[] = {
16704 (char *) "self", NULL
16705 };
16706
16707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
16708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16709 {
16710 PyThreadState* __tstate = wxPyBeginAllowThreads();
16711 result = (double)(arg1)->GetMJD();
16712
16713 wxPyEndAllowThreads(__tstate);
16714 if (PyErr_Occurred()) SWIG_fail;
16715 }
16716 resultobj = PyFloat_FromDouble(result);
16717 return resultobj;
16718 fail:
16719 return NULL;
16720}
16721
16722
16723static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
16724 PyObject *resultobj;
16725 wxDateTime *arg1 = (wxDateTime *) 0 ;
16726 double result;
16727 PyObject * obj0 = 0 ;
16728 char *kwnames[] = {
16729 (char *) "self", NULL
16730 };
16731
16732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
16733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 result = (double)(arg1)->GetRataDie();
16737
16738 wxPyEndAllowThreads(__tstate);
16739 if (PyErr_Occurred()) SWIG_fail;
16740 }
16741 resultobj = PyFloat_FromDouble(result);
16742 return resultobj;
16743 fail:
16744 return NULL;
16745}
16746
16747
16748static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
16749 PyObject *resultobj;
16750 wxDateTime *arg1 = (wxDateTime *) 0 ;
16751 wxDateTime::TimeZone *arg2 = 0 ;
e811c8ce 16752 bool arg3 = (bool) False ;
d14a1e28 16753 wxDateTime result;
7722248d 16754 bool temp2 = False ;
d14a1e28
RD
16755 PyObject * obj0 = 0 ;
16756 PyObject * obj1 = 0 ;
16757 PyObject * obj2 = 0 ;
16758 char *kwnames[] = {
16759 (char *) "self",(char *) "tz",(char *) "noDST", NULL
16760 };
16761
16762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
16763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16764 {
16765 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 16766 temp2 = True;
d14a1e28
RD
16767 }
16768 if (obj2) {
16769 arg3 = PyInt_AsLong(obj2) ? true : false;
16770 if (PyErr_Occurred()) SWIG_fail;
16771 }
16772 {
16773 PyThreadState* __tstate = wxPyBeginAllowThreads();
16774 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
16775
16776 wxPyEndAllowThreads(__tstate);
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
16779 {
16780 wxDateTime * resultptr;
16781 resultptr = new wxDateTime((wxDateTime &) result);
16782 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16783 }
16784 {
7722248d 16785 if (temp2) delete arg2;
d14a1e28
RD
16786 }
16787 return resultobj;
16788 fail:
16789 {
7722248d 16790 if (temp2) delete arg2;
d14a1e28
RD
16791 }
16792 return NULL;
16793}
16794
16795
16796static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
16797 PyObject *resultobj;
16798 wxDateTime *arg1 = (wxDateTime *) 0 ;
16799 wxDateTime::TimeZone *arg2 = 0 ;
e811c8ce 16800 bool arg3 = (bool) False ;
d14a1e28 16801 wxDateTime *result;
7722248d 16802 bool temp2 = False ;
d14a1e28
RD
16803 PyObject * obj0 = 0 ;
16804 PyObject * obj1 = 0 ;
16805 PyObject * obj2 = 0 ;
16806 char *kwnames[] = {
16807 (char *) "self",(char *) "tz",(char *) "noDST", NULL
16808 };
16809
16810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
16811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16812 {
16813 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 16814 temp2 = True;
d14a1e28
RD
16815 }
16816 if (obj2) {
16817 arg3 = PyInt_AsLong(obj2) ? true : false;
16818 if (PyErr_Occurred()) SWIG_fail;
16819 }
16820 {
16821 PyThreadState* __tstate = wxPyBeginAllowThreads();
16822 {
16823 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
16824 result = (wxDateTime *) &_result_ref;
16825 }
16826
16827 wxPyEndAllowThreads(__tstate);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16831 {
7722248d 16832 if (temp2) delete arg2;
d14a1e28
RD
16833 }
16834 return resultobj;
16835 fail:
16836 {
7722248d 16837 if (temp2) delete arg2;
d14a1e28
RD
16838 }
16839 return NULL;
16840}
16841
16842
16843static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
16844 PyObject *resultobj;
16845 wxDateTime *arg1 = (wxDateTime *) 0 ;
e811c8ce 16846 bool arg2 = (bool) False ;
d14a1e28
RD
16847 wxDateTime result;
16848 PyObject * obj0 = 0 ;
16849 PyObject * obj1 = 0 ;
16850 char *kwnames[] = {
16851 (char *) "self",(char *) "noDST", NULL
16852 };
16853
16854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
16855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16856 if (obj1) {
16857 arg2 = PyInt_AsLong(obj1) ? true : false;
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 {
16861 PyThreadState* __tstate = wxPyBeginAllowThreads();
16862 result = (arg1)->ToGMT(arg2);
16863
16864 wxPyEndAllowThreads(__tstate);
16865 if (PyErr_Occurred()) SWIG_fail;
16866 }
16867 {
16868 wxDateTime * resultptr;
16869 resultptr = new wxDateTime((wxDateTime &) result);
16870 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16871 }
16872 return resultobj;
16873 fail:
16874 return NULL;
16875}
16876
16877
16878static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
16879 PyObject *resultobj;
16880 wxDateTime *arg1 = (wxDateTime *) 0 ;
e811c8ce 16881 bool arg2 = (bool) False ;
d14a1e28
RD
16882 wxDateTime *result;
16883 PyObject * obj0 = 0 ;
16884 PyObject * obj1 = 0 ;
16885 char *kwnames[] = {
16886 (char *) "self",(char *) "noDST", NULL
16887 };
16888
16889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
16890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16891 if (obj1) {
16892 arg2 = PyInt_AsLong(obj1) ? true : false;
16893 if (PyErr_Occurred()) SWIG_fail;
16894 }
16895 {
16896 PyThreadState* __tstate = wxPyBeginAllowThreads();
16897 {
16898 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
16899 result = (wxDateTime *) &_result_ref;
16900 }
16901
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
16905 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16906 return resultobj;
16907 fail:
16908 return NULL;
16909}
16910
16911
16912static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16913 PyObject *resultobj;
16914 wxDateTime *arg1 = (wxDateTime *) 0 ;
16915 int arg2 = (int) wxDateTime::Country_Default ;
16916 int result;
16917 PyObject * obj0 = 0 ;
16918 char *kwnames[] = {
16919 (char *) "self",(char *) "country", NULL
16920 };
16921
16922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsDST",kwnames,&obj0,&arg2)) goto fail;
16923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
16927
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 resultobj = PyInt_FromLong((long)result);
16932 return resultobj;
16933 fail:
16934 return NULL;
16935}
16936
16937
16938static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj;
16940 wxDateTime *arg1 = (wxDateTime *) 0 ;
16941 bool result;
16942 PyObject * obj0 = 0 ;
16943 char *kwnames[] = {
16944 (char *) "self", NULL
16945 };
16946
16947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
16948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16949 {
16950 PyThreadState* __tstate = wxPyBeginAllowThreads();
16951 result = (bool)((wxDateTime const *)arg1)->IsValid();
16952
16953 wxPyEndAllowThreads(__tstate);
16954 if (PyErr_Occurred()) SWIG_fail;
16955 }
16956 resultobj = PyInt_FromLong((long)result);
16957 return resultobj;
16958 fail:
16959 return NULL;
16960}
16961
16962
16963static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
16964 PyObject *resultobj;
16965 wxDateTime *arg1 = (wxDateTime *) 0 ;
16966 time_t result;
16967 PyObject * obj0 = 0 ;
16968 char *kwnames[] = {
16969 (char *) "self", NULL
16970 };
16971
16972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
16973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16974 {
16975 PyThreadState* __tstate = wxPyBeginAllowThreads();
16976 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
16977
16978 wxPyEndAllowThreads(__tstate);
16979 if (PyErr_Occurred()) SWIG_fail;
16980 }
16981 resultobj = PyInt_FromLong((long)result);
16982 return resultobj;
16983 fail:
16984 return NULL;
16985}
16986
16987
16988static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16989 PyObject *resultobj;
16990 wxDateTime *arg1 = (wxDateTime *) 0 ;
16991 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
16992 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
16993 int result;
7722248d 16994 bool temp2 = False ;
d14a1e28
RD
16995 PyObject * obj0 = 0 ;
16996 PyObject * obj1 = 0 ;
16997 char *kwnames[] = {
16998 (char *) "self",(char *) "tz", NULL
16999 };
17000
17001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
17002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17003 if (obj1) {
17004 {
17005 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17006 temp2 = True;
d14a1e28
RD
17007 }
17008 }
17009 {
17010 PyThreadState* __tstate = wxPyBeginAllowThreads();
17011 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
17012
17013 wxPyEndAllowThreads(__tstate);
17014 if (PyErr_Occurred()) SWIG_fail;
17015 }
17016 resultobj = PyInt_FromLong((long)result);
17017 {
7722248d 17018 if (temp2) delete arg2;
d14a1e28
RD
17019 }
17020 return resultobj;
17021 fail:
17022 {
7722248d 17023 if (temp2) delete arg2;
d14a1e28
RD
17024 }
17025 return NULL;
17026}
17027
17028
17029static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17030 PyObject *resultobj;
17031 wxDateTime *arg1 = (wxDateTime *) 0 ;
17032 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17033 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
17034 int result;
7722248d 17035 bool temp2 = False ;
d14a1e28
RD
17036 PyObject * obj0 = 0 ;
17037 PyObject * obj1 = 0 ;
17038 char *kwnames[] = {
17039 (char *) "self",(char *) "tz", NULL
17040 };
17041
17042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
17043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17044 if (obj1) {
17045 {
17046 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17047 temp2 = True;
d14a1e28
RD
17048 }
17049 }
17050 {
17051 PyThreadState* __tstate = wxPyBeginAllowThreads();
17052 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
17053
17054 wxPyEndAllowThreads(__tstate);
17055 if (PyErr_Occurred()) SWIG_fail;
17056 }
17057 resultobj = PyInt_FromLong((long)result);
17058 {
7722248d 17059 if (temp2) delete arg2;
d14a1e28
RD
17060 }
17061 return resultobj;
17062 fail:
17063 {
7722248d 17064 if (temp2) delete arg2;
d14a1e28
RD
17065 }
17066 return NULL;
17067}
17068
17069
17070static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17071 PyObject *resultobj;
17072 wxDateTime *arg1 = (wxDateTime *) 0 ;
17073 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17074 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17075 int result;
7722248d 17076 bool temp2 = False ;
d14a1e28
RD
17077 PyObject * obj0 = 0 ;
17078 PyObject * obj1 = 0 ;
17079 char *kwnames[] = {
17080 (char *) "self",(char *) "tz", NULL
17081 };
17082
17083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
17084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17085 if (obj1) {
17086 {
17087 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17088 temp2 = True;
d14a1e28
RD
17089 }
17090 }
17091 {
17092 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17093 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17094
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 resultobj = PyInt_FromLong((long)result);
17099 {
7722248d 17100 if (temp2) delete arg2;
d14a1e28
RD
17101 }
17102 return resultobj;
17103 fail:
17104 {
7722248d 17105 if (temp2) delete arg2;
d14a1e28
RD
17106 }
17107 return NULL;
17108}
17109
17110
17111static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17112 PyObject *resultobj;
17113 wxDateTime *arg1 = (wxDateTime *) 0 ;
17114 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17115 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
17116 int result;
7722248d 17117 bool temp2 = False ;
d14a1e28
RD
17118 PyObject * obj0 = 0 ;
17119 PyObject * obj1 = 0 ;
17120 char *kwnames[] = {
17121 (char *) "self",(char *) "tz", NULL
17122 };
17123
17124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
17125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17126 if (obj1) {
17127 {
17128 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17129 temp2 = True;
d14a1e28
RD
17130 }
17131 }
17132 {
17133 PyThreadState* __tstate = wxPyBeginAllowThreads();
17134 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
17135
17136 wxPyEndAllowThreads(__tstate);
17137 if (PyErr_Occurred()) SWIG_fail;
17138 }
17139 resultobj = PyInt_FromLong((long)result);
17140 {
7722248d 17141 if (temp2) delete arg2;
d14a1e28
RD
17142 }
17143 return resultobj;
17144 fail:
17145 {
7722248d 17146 if (temp2) delete arg2;
d14a1e28
RD
17147 }
17148 return NULL;
17149}
17150
17151
17152static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17153 PyObject *resultobj;
17154 wxDateTime *arg1 = (wxDateTime *) 0 ;
17155 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17156 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17157 int result;
7722248d 17158 bool temp2 = False ;
d14a1e28
RD
17159 PyObject * obj0 = 0 ;
17160 PyObject * obj1 = 0 ;
17161 char *kwnames[] = {
17162 (char *) "self",(char *) "tz", NULL
17163 };
17164
17165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
17166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17167 if (obj1) {
17168 {
17169 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17170 temp2 = True;
d14a1e28
RD
17171 }
17172 }
17173 {
17174 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17175 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17176
17177 wxPyEndAllowThreads(__tstate);
17178 if (PyErr_Occurred()) SWIG_fail;
17179 }
17180 resultobj = PyInt_FromLong((long)result);
17181 {
7722248d 17182 if (temp2) delete arg2;
d14a1e28
RD
17183 }
17184 return resultobj;
17185 fail:
17186 {
7722248d 17187 if (temp2) delete arg2;
d14a1e28
RD
17188 }
17189 return NULL;
17190}
17191
17192
17193static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17194 PyObject *resultobj;
17195 wxDateTime *arg1 = (wxDateTime *) 0 ;
17196 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17197 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17198 int result;
7722248d 17199 bool temp2 = False ;
d14a1e28
RD
17200 PyObject * obj0 = 0 ;
17201 PyObject * obj1 = 0 ;
17202 char *kwnames[] = {
17203 (char *) "self",(char *) "tz", NULL
17204 };
17205
17206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
17207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17208 if (obj1) {
17209 {
17210 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17211 temp2 = True;
d14a1e28
RD
17212 }
17213 }
17214 {
17215 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17216 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17217
17218 wxPyEndAllowThreads(__tstate);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 resultobj = PyInt_FromLong((long)result);
17222 {
7722248d 17223 if (temp2) delete arg2;
d14a1e28
RD
17224 }
17225 return resultobj;
17226 fail:
17227 {
7722248d 17228 if (temp2) delete arg2;
d14a1e28
RD
17229 }
17230 return NULL;
17231}
17232
17233
17234static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17235 PyObject *resultobj;
17236 wxDateTime *arg1 = (wxDateTime *) 0 ;
17237 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17238 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17239 int result;
7722248d 17240 bool temp2 = False ;
d14a1e28
RD
17241 PyObject * obj0 = 0 ;
17242 PyObject * obj1 = 0 ;
17243 char *kwnames[] = {
17244 (char *) "self",(char *) "tz", NULL
17245 };
17246
17247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
17248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17249 if (obj1) {
17250 {
17251 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17252 temp2 = True;
d14a1e28
RD
17253 }
17254 }
17255 {
17256 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17257 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17258
17259 wxPyEndAllowThreads(__tstate);
17260 if (PyErr_Occurred()) SWIG_fail;
17261 }
17262 resultobj = PyInt_FromLong((long)result);
17263 {
7722248d 17264 if (temp2) delete arg2;
d14a1e28
RD
17265 }
17266 return resultobj;
17267 fail:
17268 {
7722248d 17269 if (temp2) delete arg2;
d14a1e28
RD
17270 }
17271 return NULL;
17272}
17273
17274
17275static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17276 PyObject *resultobj;
17277 wxDateTime *arg1 = (wxDateTime *) 0 ;
17278 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17279 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17280 int result;
7722248d 17281 bool temp2 = False ;
d14a1e28
RD
17282 PyObject * obj0 = 0 ;
17283 PyObject * obj1 = 0 ;
17284 char *kwnames[] = {
17285 (char *) "self",(char *) "tz", NULL
17286 };
17287
17288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17290 if (obj1) {
17291 {
17292 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17293 temp2 = True;
d14a1e28
RD
17294 }
17295 }
17296 {
17297 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17298 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17299
17300 wxPyEndAllowThreads(__tstate);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 resultobj = PyInt_FromLong((long)result);
17304 {
7722248d 17305 if (temp2) delete arg2;
d14a1e28
RD
17306 }
17307 return resultobj;
17308 fail:
17309 {
7722248d 17310 if (temp2) delete arg2;
d14a1e28
RD
17311 }
17312 return NULL;
17313}
17314
17315
17316static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17317 PyObject *resultobj;
17318 wxDateTime *arg1 = (wxDateTime *) 0 ;
17319 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17320 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17321 int result;
7722248d 17322 bool temp2 = False ;
d14a1e28
RD
17323 PyObject * obj0 = 0 ;
17324 PyObject * obj1 = 0 ;
17325 char *kwnames[] = {
17326 (char *) "self",(char *) "tz", NULL
17327 };
17328
17329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
17330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17331 if (obj1) {
17332 {
17333 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17334 temp2 = True;
d14a1e28
RD
17335 }
17336 }
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17339 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17340
17341 wxPyEndAllowThreads(__tstate);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 }
17344 resultobj = PyInt_FromLong((long)result);
17345 {
7722248d 17346 if (temp2) delete arg2;
d14a1e28
RD
17347 }
17348 return resultobj;
17349 fail:
17350 {
7722248d 17351 if (temp2) delete arg2;
d14a1e28
RD
17352 }
17353 return NULL;
17354}
17355
17356
17357static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17358 PyObject *resultobj;
17359 wxDateTime *arg1 = (wxDateTime *) 0 ;
17360 int arg2 = (int) wxDateTime::Monday_First ;
17361 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
17362 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
322913ce 17363 int result;
7722248d 17364 bool temp3 = False ;
d14a1e28
RD
17365 PyObject * obj0 = 0 ;
17366 PyObject * obj2 = 0 ;
17367 char *kwnames[] = {
17368 (char *) "self",(char *) "flags",(char *) "tz", NULL
17369 };
17370
17371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfYear",kwnames,&obj0,&arg2,&obj2)) goto fail;
17372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17373 if (obj2) {
17374 {
17375 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 17376 temp3 = True;
d14a1e28
RD
17377 }
17378 }
17379 {
17380 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17381 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
d14a1e28
RD
17382
17383 wxPyEndAllowThreads(__tstate);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 resultobj = PyInt_FromLong((long)result);
17387 {
7722248d 17388 if (temp3) delete arg3;
d14a1e28
RD
17389 }
17390 return resultobj;
17391 fail:
17392 {
7722248d 17393 if (temp3) delete arg3;
d14a1e28
RD
17394 }
17395 return NULL;
17396}
17397
17398
17399static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17400 PyObject *resultobj;
17401 wxDateTime *arg1 = (wxDateTime *) 0 ;
17402 int arg2 = (int) wxDateTime::Monday_First ;
17403 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
17404 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
322913ce 17405 int result;
7722248d 17406 bool temp3 = False ;
d14a1e28
RD
17407 PyObject * obj0 = 0 ;
17408 PyObject * obj2 = 0 ;
17409 char *kwnames[] = {
17410 (char *) "self",(char *) "flags",(char *) "tz", NULL
17411 };
17412
17413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfMonth",kwnames,&obj0,&arg2,&obj2)) goto fail;
17414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17415 if (obj2) {
17416 {
17417 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 17418 temp3 = True;
d14a1e28
RD
17419 }
17420 }
17421 {
17422 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17423 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
d14a1e28
RD
17424
17425 wxPyEndAllowThreads(__tstate);
17426 if (PyErr_Occurred()) SWIG_fail;
17427 }
17428 resultobj = PyInt_FromLong((long)result);
17429 {
7722248d 17430 if (temp3) delete arg3;
d14a1e28
RD
17431 }
17432 return resultobj;
17433 fail:
17434 {
7722248d 17435 if (temp3) delete arg3;
d14a1e28
RD
17436 }
17437 return NULL;
17438}
17439
17440
17441static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17442 PyObject *resultobj;
17443 wxDateTime *arg1 = (wxDateTime *) 0 ;
17444 int arg2 = (int) wxDateTime::Country_Default ;
17445 bool result;
17446 PyObject * obj0 = 0 ;
17447 char *kwnames[] = {
17448 (char *) "self",(char *) "country", NULL
17449 };
17450
17451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsWorkDay",kwnames,&obj0,&arg2)) goto fail;
17452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17453 {
17454 PyThreadState* __tstate = wxPyBeginAllowThreads();
17455 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
17456
17457 wxPyEndAllowThreads(__tstate);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 }
17460 resultobj = PyInt_FromLong((long)result);
17461 return resultobj;
17462 fail:
17463 return NULL;
17464}
17465
17466
17467static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
17468 PyObject *resultobj;
17469 wxDateTime *arg1 = (wxDateTime *) 0 ;
17470 wxDateTime *arg2 = 0 ;
17471 bool result;
17472 PyObject * obj0 = 0 ;
17473 PyObject * obj1 = 0 ;
17474 char *kwnames[] = {
17475 (char *) "self",(char *) "datetime", NULL
17476 };
17477
17478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
17479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17480 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17481 if (arg2 == NULL) {
17482 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17483 }
17484 {
17485 PyThreadState* __tstate = wxPyBeginAllowThreads();
17486 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
17487
17488 wxPyEndAllowThreads(__tstate);
17489 if (PyErr_Occurred()) SWIG_fail;
17490 }
17491 resultobj = PyInt_FromLong((long)result);
17492 return resultobj;
17493 fail:
17494 return NULL;
17495}
17496
17497
17498static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
17499 PyObject *resultobj;
17500 wxDateTime *arg1 = (wxDateTime *) 0 ;
17501 wxDateTime *arg2 = 0 ;
17502 bool result;
17503 PyObject * obj0 = 0 ;
17504 PyObject * obj1 = 0 ;
17505 char *kwnames[] = {
17506 (char *) "self",(char *) "datetime", NULL
17507 };
17508
17509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
17510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17511 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17512 if (arg2 == NULL) {
17513 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17514 }
17515 {
17516 PyThreadState* __tstate = wxPyBeginAllowThreads();
17517 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
17518
17519 wxPyEndAllowThreads(__tstate);
17520 if (PyErr_Occurred()) SWIG_fail;
17521 }
17522 resultobj = PyInt_FromLong((long)result);
17523 return resultobj;
17524 fail:
17525 return NULL;
17526}
17527
17528
17529static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
17530 PyObject *resultobj;
17531 wxDateTime *arg1 = (wxDateTime *) 0 ;
17532 wxDateTime *arg2 = 0 ;
17533 bool result;
17534 PyObject * obj0 = 0 ;
17535 PyObject * obj1 = 0 ;
17536 char *kwnames[] = {
17537 (char *) "self",(char *) "datetime", NULL
17538 };
17539
17540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
17541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17542 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17543 if (arg2 == NULL) {
17544 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17545 }
17546 {
17547 PyThreadState* __tstate = wxPyBeginAllowThreads();
17548 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
17549
17550 wxPyEndAllowThreads(__tstate);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 resultobj = PyInt_FromLong((long)result);
17554 return resultobj;
17555 fail:
17556 return NULL;
17557}
17558
17559
17560static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
17561 PyObject *resultobj;
17562 wxDateTime *arg1 = (wxDateTime *) 0 ;
17563 wxDateTime *arg2 = 0 ;
17564 wxDateTime *arg3 = 0 ;
17565 bool result;
17566 PyObject * obj0 = 0 ;
17567 PyObject * obj1 = 0 ;
17568 PyObject * obj2 = 0 ;
17569 char *kwnames[] = {
17570 (char *) "self",(char *) "t1",(char *) "t2", NULL
17571 };
17572
17573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
17574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17575 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17576 if (arg2 == NULL) {
17577 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17578 }
17579 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17580 if (arg3 == NULL) {
17581 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17582 }
17583 {
17584 PyThreadState* __tstate = wxPyBeginAllowThreads();
17585 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
17586
17587 wxPyEndAllowThreads(__tstate);
17588 if (PyErr_Occurred()) SWIG_fail;
17589 }
17590 resultobj = PyInt_FromLong((long)result);
17591 return resultobj;
17592 fail:
17593 return NULL;
17594}
17595
17596
17597static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
17598 PyObject *resultobj;
17599 wxDateTime *arg1 = (wxDateTime *) 0 ;
17600 wxDateTime *arg2 = 0 ;
17601 wxDateTime *arg3 = 0 ;
17602 bool result;
17603 PyObject * obj0 = 0 ;
17604 PyObject * obj1 = 0 ;
17605 PyObject * obj2 = 0 ;
17606 char *kwnames[] = {
17607 (char *) "self",(char *) "t1",(char *) "t2", NULL
17608 };
17609
17610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
17611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17612 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17613 if (arg2 == NULL) {
17614 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17615 }
17616 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17617 if (arg3 == NULL) {
17618 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17619 }
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
17623
17624 wxPyEndAllowThreads(__tstate);
17625 if (PyErr_Occurred()) SWIG_fail;
17626 }
17627 resultobj = PyInt_FromLong((long)result);
17628 return resultobj;
17629 fail:
17630 return NULL;
17631}
17632
17633
17634static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
17635 PyObject *resultobj;
17636 wxDateTime *arg1 = (wxDateTime *) 0 ;
17637 wxDateTime *arg2 = 0 ;
17638 bool result;
17639 PyObject * obj0 = 0 ;
17640 PyObject * obj1 = 0 ;
17641 char *kwnames[] = {
17642 (char *) "self",(char *) "dt", NULL
17643 };
17644
17645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
17646 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17647 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17648 if (arg2 == NULL) {
17649 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17650 }
17651 {
17652 PyThreadState* __tstate = wxPyBeginAllowThreads();
17653 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
17654
17655 wxPyEndAllowThreads(__tstate);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 }
17658 resultobj = PyInt_FromLong((long)result);
17659 return resultobj;
17660 fail:
17661 return NULL;
17662}
17663
17664
17665static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17666 PyObject *resultobj;
17667 wxDateTime *arg1 = (wxDateTime *) 0 ;
17668 wxDateTime *arg2 = 0 ;
17669 bool result;
17670 PyObject * obj0 = 0 ;
17671 PyObject * obj1 = 0 ;
17672 char *kwnames[] = {
17673 (char *) "self",(char *) "dt", NULL
17674 };
17675
17676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
17677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17678 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17679 if (arg2 == NULL) {
17680 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17681 }
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
17685
17686 wxPyEndAllowThreads(__tstate);
17687 if (PyErr_Occurred()) SWIG_fail;
17688 }
17689 resultobj = PyInt_FromLong((long)result);
17690 return resultobj;
17691 fail:
17692 return NULL;
17693}
17694
17695
17696static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
17697 PyObject *resultobj;
17698 wxDateTime *arg1 = (wxDateTime *) 0 ;
17699 wxDateTime *arg2 = 0 ;
17700 wxTimeSpan *arg3 = 0 ;
17701 bool result;
17702 PyObject * obj0 = 0 ;
17703 PyObject * obj1 = 0 ;
17704 PyObject * obj2 = 0 ;
17705 char *kwnames[] = {
17706 (char *) "self",(char *) "dt",(char *) "ts", NULL
17707 };
17708
17709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
17710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17711 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17712 if (arg2 == NULL) {
17713 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17714 }
17715 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17716 if (arg3 == NULL) {
17717 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17718 }
17719 {
17720 PyThreadState* __tstate = wxPyBeginAllowThreads();
17721 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
17722
17723 wxPyEndAllowThreads(__tstate);
17724 if (PyErr_Occurred()) SWIG_fail;
17725 }
17726 resultobj = PyInt_FromLong((long)result);
17727 return resultobj;
17728 fail:
17729 return NULL;
17730}
17731
17732
17733static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
17734 PyObject *resultobj;
17735 wxDateTime *arg1 = (wxDateTime *) 0 ;
17736 wxTimeSpan *arg2 = 0 ;
17737 wxDateTime *result;
17738 PyObject * obj0 = 0 ;
17739 PyObject * obj1 = 0 ;
17740 char *kwnames[] = {
17741 (char *) "self",(char *) "diff", NULL
17742 };
17743
17744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
17745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17746 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17747 if (arg2 == NULL) {
17748 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17749 }
17750 {
17751 PyThreadState* __tstate = wxPyBeginAllowThreads();
17752 {
17753 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
17754 result = (wxDateTime *) &_result_ref;
17755 }
17756
17757 wxPyEndAllowThreads(__tstate);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17761 return resultobj;
17762 fail:
17763 return NULL;
17764}
17765
17766
17767static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
17768 PyObject *resultobj;
17769 wxDateTime *arg1 = (wxDateTime *) 0 ;
17770 wxDateSpan *arg2 = 0 ;
17771 wxDateTime *result;
17772 PyObject * obj0 = 0 ;
17773 PyObject * obj1 = 0 ;
17774 char *kwnames[] = {
17775 (char *) "self",(char *) "diff", NULL
17776 };
17777
17778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
17779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17780 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17781 if (arg2 == NULL) {
17782 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17783 }
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 {
17787 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
17788 result = (wxDateTime *) &_result_ref;
17789 }
17790
17791 wxPyEndAllowThreads(__tstate);
17792 if (PyErr_Occurred()) SWIG_fail;
17793 }
17794 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17795 return resultobj;
17796 fail:
17797 return NULL;
17798}
17799
17800
17801static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
17802 PyObject *resultobj;
17803 wxDateTime *arg1 = (wxDateTime *) 0 ;
17804 wxTimeSpan *arg2 = 0 ;
17805 wxDateTime *result;
17806 PyObject * obj0 = 0 ;
17807 PyObject * obj1 = 0 ;
17808 char *kwnames[] = {
17809 (char *) "self",(char *) "diff", NULL
17810 };
17811
17812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
17813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17814 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17815 if (arg2 == NULL) {
17816 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17817 }
17818 {
17819 PyThreadState* __tstate = wxPyBeginAllowThreads();
17820 {
17821 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
17822 result = (wxDateTime *) &_result_ref;
17823 }
17824
17825 wxPyEndAllowThreads(__tstate);
17826 if (PyErr_Occurred()) SWIG_fail;
17827 }
17828 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17829 return resultobj;
17830 fail:
17831 return NULL;
17832}
17833
17834
17835static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
17836 PyObject *resultobj;
17837 wxDateTime *arg1 = (wxDateTime *) 0 ;
17838 wxDateSpan *arg2 = 0 ;
17839 wxDateTime *result;
17840 PyObject * obj0 = 0 ;
17841 PyObject * obj1 = 0 ;
17842 char *kwnames[] = {
17843 (char *) "self",(char *) "diff", NULL
17844 };
17845
17846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
17847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17848 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17849 if (arg2 == NULL) {
17850 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17851 }
17852 {
17853 PyThreadState* __tstate = wxPyBeginAllowThreads();
17854 {
17855 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
17856 result = (wxDateTime *) &_result_ref;
17857 }
17858
17859 wxPyEndAllowThreads(__tstate);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17863 return resultobj;
17864 fail:
17865 return NULL;
17866}
17867
17868
17869static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
17870 PyObject *resultobj;
17871 wxDateTime *arg1 = (wxDateTime *) 0 ;
17872 wxDateTime *arg2 = 0 ;
17873 wxTimeSpan result;
17874 PyObject * obj0 = 0 ;
17875 PyObject * obj1 = 0 ;
17876 char *kwnames[] = {
17877 (char *) "self",(char *) "dt", NULL
17878 };
17879
17880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
17881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17882 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17883 if (arg2 == NULL) {
17884 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17885 }
17886 {
17887 PyThreadState* __tstate = wxPyBeginAllowThreads();
17888 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
17889
17890 wxPyEndAllowThreads(__tstate);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 }
17893 {
17894 wxTimeSpan * resultptr;
17895 resultptr = new wxTimeSpan((wxTimeSpan &) result);
17896 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
17897 }
17898 return resultobj;
17899 fail:
17900 return NULL;
17901}
17902
17903
17904static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
17905 PyObject *resultobj;
17906 wxDateTime *arg1 = (wxDateTime *) 0 ;
17907 wxTimeSpan *arg2 = 0 ;
17908 wxDateTime *result;
17909 PyObject * obj0 = 0 ;
17910 PyObject * obj1 = 0 ;
17911
17912 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
17913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17914 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17915 if (arg2 == NULL) {
17916 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17917 }
17918 {
17919 PyThreadState* __tstate = wxPyBeginAllowThreads();
17920 {
17921 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
17922 result = (wxDateTime *) &_result_ref;
17923 }
17924
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
17928 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17929 return resultobj;
17930 fail:
17931 return NULL;
17932}
17933
17934
17935static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
17936 PyObject *resultobj;
17937 wxDateTime *arg1 = (wxDateTime *) 0 ;
17938 wxDateSpan *arg2 = 0 ;
17939 wxDateTime *result;
17940 PyObject * obj0 = 0 ;
17941 PyObject * obj1 = 0 ;
17942
17943 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
17944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17945 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17946 if (arg2 == NULL) {
17947 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17948 }
17949 {
17950 PyThreadState* __tstate = wxPyBeginAllowThreads();
17951 {
17952 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
17953 result = (wxDateTime *) &_result_ref;
17954 }
17955
17956 wxPyEndAllowThreads(__tstate);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 }
17959 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17960 return resultobj;
17961 fail:
17962 return NULL;
17963}
17964
17965
17966static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
17967 int argc;
17968 PyObject *argv[3];
17969 int ii;
17970
17971 argc = PyObject_Length(args);
17972 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
17973 argv[ii] = PyTuple_GetItem(args,ii);
17974 }
17975 if (argc == 2) {
17976 int _v;
17977 {
17978 void *ptr;
17979 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
17980 _v = 0;
17981 PyErr_Clear();
17982 } else {
17983 _v = 1;
17984 }
17985 }
17986 if (_v) {
17987 {
17988 void *ptr;
17989 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
17990 _v = 0;
17991 PyErr_Clear();
17992 } else {
17993 _v = 1;
17994 }
17995 }
17996 if (_v) {
17997 return _wrap_DateTime___iadd____SWIG_0(self,args);
17998 }
17999 }
18000 }
18001 if (argc == 2) {
18002 int _v;
18003 {
18004 void *ptr;
18005 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18006 _v = 0;
18007 PyErr_Clear();
18008 } else {
18009 _v = 1;
18010 }
18011 }
18012 if (_v) {
18013 {
18014 void *ptr;
18015 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
18016 _v = 0;
18017 PyErr_Clear();
18018 } else {
18019 _v = 1;
18020 }
18021 }
18022 if (_v) {
18023 return _wrap_DateTime___iadd____SWIG_1(self,args);
18024 }
18025 }
18026 }
18027
18028 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
18029 return NULL;
18030}
18031
18032
18033static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
18034 PyObject *resultobj;
18035 wxDateTime *arg1 = (wxDateTime *) 0 ;
18036 wxTimeSpan *arg2 = 0 ;
18037 wxDateTime *result;
18038 PyObject * obj0 = 0 ;
18039 PyObject * obj1 = 0 ;
18040
18041 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
18042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18043 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18044 if (arg2 == NULL) {
18045 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18046 }
18047 {
18048 PyThreadState* __tstate = wxPyBeginAllowThreads();
18049 {
18050 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
18051 result = (wxDateTime *) &_result_ref;
18052 }
18053
18054 wxPyEndAllowThreads(__tstate);
18055 if (PyErr_Occurred()) SWIG_fail;
18056 }
18057 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
18058 return resultobj;
18059 fail:
18060 return NULL;
18061}
18062
18063
18064static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
18065 PyObject *resultobj;
18066 wxDateTime *arg1 = (wxDateTime *) 0 ;
18067 wxDateSpan *arg2 = 0 ;
18068 wxDateTime *result;
18069 PyObject * obj0 = 0 ;
18070 PyObject * obj1 = 0 ;
18071
18072 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
18073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18074 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18075 if (arg2 == NULL) {
18076 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18077 }
18078 {
18079 PyThreadState* __tstate = wxPyBeginAllowThreads();
18080 {
18081 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
18082 result = (wxDateTime *) &_result_ref;
18083 }
18084
18085 wxPyEndAllowThreads(__tstate);
18086 if (PyErr_Occurred()) SWIG_fail;
18087 }
18088 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
18089 return resultobj;
18090 fail:
18091 return NULL;
18092}
18093
18094
18095static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
18096 int argc;
18097 PyObject *argv[3];
18098 int ii;
18099
18100 argc = PyObject_Length(args);
18101 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
18102 argv[ii] = PyTuple_GetItem(args,ii);
18103 }
18104 if (argc == 2) {
18105 int _v;
18106 {
18107 void *ptr;
18108 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18109 _v = 0;
18110 PyErr_Clear();
18111 } else {
18112 _v = 1;
18113 }
18114 }
18115 if (_v) {
18116 {
18117 void *ptr;
18118 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
18119 _v = 0;
18120 PyErr_Clear();
18121 } else {
18122 _v = 1;
18123 }
18124 }
18125 if (_v) {
18126 return _wrap_DateTime___isub____SWIG_0(self,args);
18127 }
18128 }
18129 }
18130 if (argc == 2) {
18131 int _v;
18132 {
18133 void *ptr;
18134 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18135 _v = 0;
18136 PyErr_Clear();
18137 } else {
18138 _v = 1;
18139 }
18140 }
18141 if (_v) {
18142 {
18143 void *ptr;
18144 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
18145 _v = 0;
18146 PyErr_Clear();
18147 } else {
18148 _v = 1;
18149 }
18150 }
18151 if (_v) {
18152 return _wrap_DateTime___isub____SWIG_1(self,args);
18153 }
18154 }
18155 }
18156
18157 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
18158 return NULL;
18159}
18160
18161
18162static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
18163 PyObject *resultobj;
18164 wxDateTime *arg1 = (wxDateTime *) 0 ;
18165 wxTimeSpan *arg2 = 0 ;
18166 wxDateTime result;
18167 PyObject * obj0 = 0 ;
18168 PyObject * obj1 = 0 ;
18169
18170 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
18171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18172 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18173 if (arg2 == NULL) {
18174 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18175 }
18176 {
18177 PyThreadState* __tstate = wxPyBeginAllowThreads();
18178 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
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___add____SWIG_1(PyObject *self, PyObject *args) {
18195 PyObject *resultobj;
18196 wxDateTime *arg1 = (wxDateTime *) 0 ;
18197 wxDateSpan *arg2 = 0 ;
18198 wxDateTime result;
18199 PyObject * obj0 = 0 ;
18200 PyObject * obj1 = 0 ;
18201
18202 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
18203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18204 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18205 if (arg2 == NULL) {
18206 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18207 }
18208 {
18209 PyThreadState* __tstate = wxPyBeginAllowThreads();
18210 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
18211
18212 wxPyEndAllowThreads(__tstate);
18213 if (PyErr_Occurred()) SWIG_fail;
18214 }
18215 {
18216 wxDateTime * resultptr;
18217 resultptr = new wxDateTime((wxDateTime &) result);
18218 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18219 }
18220 return resultobj;
18221 fail:
18222 return NULL;
18223}
18224
18225
18226static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
18227 int argc;
18228 PyObject *argv[3];
18229 int ii;
18230
18231 argc = PyObject_Length(args);
18232 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
18233 argv[ii] = PyTuple_GetItem(args,ii);
18234 }
18235 if (argc == 2) {
18236 int _v;
18237 {
18238 void *ptr;
18239 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18240 _v = 0;
18241 PyErr_Clear();
18242 } else {
18243 _v = 1;
18244 }
18245 }
18246 if (_v) {
18247 {
18248 void *ptr;
18249 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
18250 _v = 0;
18251 PyErr_Clear();
18252 } else {
18253 _v = 1;
18254 }
18255 }
18256 if (_v) {
18257 return _wrap_DateTime___add____SWIG_0(self,args);
18258 }
18259 }
18260 }
18261 if (argc == 2) {
18262 int _v;
18263 {
18264 void *ptr;
18265 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18266 _v = 0;
18267 PyErr_Clear();
18268 } else {
18269 _v = 1;
18270 }
18271 }
18272 if (_v) {
18273 {
18274 void *ptr;
18275 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
18276 _v = 0;
18277 PyErr_Clear();
18278 } else {
18279 _v = 1;
18280 }
18281 }
18282 if (_v) {
18283 return _wrap_DateTime___add____SWIG_1(self,args);
18284 }
18285 }
18286 }
18287
18288 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
18289 return NULL;
18290}
18291
18292
18293static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
18294 PyObject *resultobj;
18295 wxDateTime *arg1 = (wxDateTime *) 0 ;
18296 wxDateTime *arg2 = 0 ;
18297 wxTimeSpan result;
18298 PyObject * obj0 = 0 ;
18299 PyObject * obj1 = 0 ;
18300
18301 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
18302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18303 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18304 if (arg2 == NULL) {
18305 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18306 }
18307 {
18308 PyThreadState* __tstate = wxPyBeginAllowThreads();
18309 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
18310
18311 wxPyEndAllowThreads(__tstate);
18312 if (PyErr_Occurred()) SWIG_fail;
18313 }
18314 {
18315 wxTimeSpan * resultptr;
18316 resultptr = new wxTimeSpan((wxTimeSpan &) result);
18317 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
18318 }
18319 return resultobj;
18320 fail:
18321 return NULL;
18322}
18323
18324
18325static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
18326 PyObject *resultobj;
18327 wxDateTime *arg1 = (wxDateTime *) 0 ;
18328 wxTimeSpan *arg2 = 0 ;
18329 wxDateTime result;
18330 PyObject * obj0 = 0 ;
18331 PyObject * obj1 = 0 ;
18332
18333 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
18334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18335 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18336 if (arg2 == NULL) {
18337 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18338 }
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
18342
18343 wxPyEndAllowThreads(__tstate);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 }
18346 {
18347 wxDateTime * resultptr;
18348 resultptr = new wxDateTime((wxDateTime &) result);
18349 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18350 }
18351 return resultobj;
18352 fail:
18353 return NULL;
18354}
18355
18356
18357static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
18358 PyObject *resultobj;
18359 wxDateTime *arg1 = (wxDateTime *) 0 ;
18360 wxDateSpan *arg2 = 0 ;
18361 wxDateTime result;
18362 PyObject * obj0 = 0 ;
18363 PyObject * obj1 = 0 ;
18364
18365 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
18366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18367 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18368 if (arg2 == NULL) {
18369 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18370 }
18371 {
18372 PyThreadState* __tstate = wxPyBeginAllowThreads();
18373 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
18374
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 {
18379 wxDateTime * resultptr;
18380 resultptr = new wxDateTime((wxDateTime &) result);
18381 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18382 }
18383 return resultobj;
18384 fail:
18385 return NULL;
18386}
18387
18388
18389static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
18390 int argc;
18391 PyObject *argv[3];
18392 int ii;
18393
18394 argc = PyObject_Length(args);
18395 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
18396 argv[ii] = PyTuple_GetItem(args,ii);
18397 }
18398 if (argc == 2) {
18399 int _v;
18400 {
18401 void *ptr;
18402 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18403 _v = 0;
18404 PyErr_Clear();
18405 } else {
18406 _v = 1;
18407 }
18408 }
18409 if (_v) {
18410 {
18411 void *ptr;
18412 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18413 _v = 0;
18414 PyErr_Clear();
18415 } else {
18416 _v = 1;
18417 }
18418 }
18419 if (_v) {
18420 return _wrap_DateTime___sub____SWIG_0(self,args);
18421 }
18422 }
18423 }
18424 if (argc == 2) {
18425 int _v;
18426 {
18427 void *ptr;
18428 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18429 _v = 0;
18430 PyErr_Clear();
18431 } else {
18432 _v = 1;
18433 }
18434 }
18435 if (_v) {
18436 {
18437 void *ptr;
18438 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
18439 _v = 0;
18440 PyErr_Clear();
18441 } else {
18442 _v = 1;
18443 }
18444 }
18445 if (_v) {
18446 return _wrap_DateTime___sub____SWIG_1(self,args);
18447 }
18448 }
18449 }
18450 if (argc == 2) {
18451 int _v;
18452 {
18453 void *ptr;
18454 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18455 _v = 0;
18456 PyErr_Clear();
18457 } else {
18458 _v = 1;
18459 }
18460 }
18461 if (_v) {
18462 {
18463 void *ptr;
18464 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
18465 _v = 0;
18466 PyErr_Clear();
18467 } else {
18468 _v = 1;
18469 }
18470 }
18471 if (_v) {
18472 return _wrap_DateTime___sub____SWIG_2(self,args);
18473 }
18474 }
18475 }
18476
18477 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
18478 return NULL;
18479}
18480
18481
18482static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
18483 PyObject *resultobj;
18484 wxDateTime *arg1 = (wxDateTime *) 0 ;
18485 wxDateTime *arg2 = 0 ;
18486 bool result;
18487 PyObject * obj0 = 0 ;
18488 PyObject * obj1 = 0 ;
18489
18490 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
18491 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18492 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18493 if (arg2 == NULL) {
18494 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18495 }
18496 {
18497 PyThreadState* __tstate = wxPyBeginAllowThreads();
18498 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2);
18499
18500 wxPyEndAllowThreads(__tstate);
18501 if (PyErr_Occurred()) SWIG_fail;
18502 }
18503 resultobj = PyInt_FromLong((long)result);
18504 return resultobj;
18505 fail:
18506 return NULL;
18507}
18508
18509
18510static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
18511 PyObject *resultobj;
18512 wxDateTime *arg1 = (wxDateTime *) 0 ;
18513 wxDateTime *arg2 = 0 ;
18514 bool result;
18515 PyObject * obj0 = 0 ;
18516 PyObject * obj1 = 0 ;
18517
18518 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
18519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18520 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18521 if (arg2 == NULL) {
18522 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18523 }
18524 {
18525 PyThreadState* __tstate = wxPyBeginAllowThreads();
18526 result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2);
18527
18528 wxPyEndAllowThreads(__tstate);
18529 if (PyErr_Occurred()) SWIG_fail;
18530 }
18531 resultobj = PyInt_FromLong((long)result);
18532 return resultobj;
18533 fail:
18534 return NULL;
18535}
18536
18537
18538static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
18539 PyObject *resultobj;
18540 wxDateTime *arg1 = (wxDateTime *) 0 ;
18541 wxDateTime *arg2 = 0 ;
18542 bool result;
18543 PyObject * obj0 = 0 ;
18544 PyObject * obj1 = 0 ;
18545
18546 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
18547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18548 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18549 if (arg2 == NULL) {
18550 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18551 }
18552 {
18553 PyThreadState* __tstate = wxPyBeginAllowThreads();
18554 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2);
18555
18556 wxPyEndAllowThreads(__tstate);
18557 if (PyErr_Occurred()) SWIG_fail;
18558 }
18559 resultobj = PyInt_FromLong((long)result);
18560 return resultobj;
18561 fail:
18562 return NULL;
18563}
18564
18565
18566static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
18567 PyObject *resultobj;
18568 wxDateTime *arg1 = (wxDateTime *) 0 ;
18569 wxDateTime *arg2 = 0 ;
18570 bool result;
18571 PyObject * obj0 = 0 ;
18572 PyObject * obj1 = 0 ;
18573
18574 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
18575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18576 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18577 if (arg2 == NULL) {
18578 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18579 }
18580 {
18581 PyThreadState* __tstate = wxPyBeginAllowThreads();
18582 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2);
18583
18584 wxPyEndAllowThreads(__tstate);
18585 if (PyErr_Occurred()) SWIG_fail;
18586 }
18587 resultobj = PyInt_FromLong((long)result);
18588 return resultobj;
18589 fail:
18590 return NULL;
18591}
18592
18593
18594static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
18595 PyObject *resultobj;
18596 wxDateTime *arg1 = (wxDateTime *) 0 ;
18597 wxDateTime *arg2 = 0 ;
18598 bool result;
18599 PyObject * obj0 = 0 ;
18600 PyObject * obj1 = 0 ;
18601
18602 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
18603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18604 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18605 if (arg2 == NULL) {
18606 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18607 }
18608 {
18609 PyThreadState* __tstate = wxPyBeginAllowThreads();
18610 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2);
18611
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 resultobj = PyInt_FromLong((long)result);
18616 return resultobj;
18617 fail:
18618 return NULL;
18619}
18620
18621
18622static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
18623 PyObject *resultobj;
18624 wxDateTime *arg1 = (wxDateTime *) 0 ;
18625 wxDateTime *arg2 = 0 ;
18626 bool result;
18627 PyObject * obj0 = 0 ;
18628 PyObject * obj1 = 0 ;
18629
18630 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
18631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18632 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18633 if (arg2 == NULL) {
18634 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18635 }
18636 {
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2);
18639
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 resultobj = PyInt_FromLong((long)result);
18644 return resultobj;
18645 fail:
18646 return NULL;
18647}
18648
18649
18650static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
18651 PyObject *resultobj;
18652 wxDateTime *arg1 = (wxDateTime *) 0 ;
18653 wxString *arg2 = 0 ;
18654 int result;
e811c8ce 18655 bool temp2 = False ;
d14a1e28
RD
18656 PyObject * obj0 = 0 ;
18657 PyObject * obj1 = 0 ;
18658 char *kwnames[] = {
18659 (char *) "self",(char *) "date", NULL
18660 };
18661
18662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
18663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18664 {
18665 arg2 = wxString_in_helper(obj1);
18666 if (arg2 == NULL) SWIG_fail;
e811c8ce 18667 temp2 = True;
d14a1e28
RD
18668 }
18669 {
18670 PyThreadState* __tstate = wxPyBeginAllowThreads();
18671 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
18672
18673 wxPyEndAllowThreads(__tstate);
18674 if (PyErr_Occurred()) SWIG_fail;
18675 }
18676 resultobj = PyInt_FromLong((long)result);
18677 {
18678 if (temp2)
18679 delete arg2;
18680 }
18681 return resultobj;
18682 fail:
18683 {
18684 if (temp2)
18685 delete arg2;
18686 }
18687 return NULL;
18688}
18689
18690
18691static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
18692 PyObject *resultobj;
18693 wxDateTime *arg1 = (wxDateTime *) 0 ;
18694 wxString *arg2 = 0 ;
18695 wxString const &arg3_defvalue = wxPyDateFormatStr ;
18696 wxString *arg3 = (wxString *) &arg3_defvalue ;
18697 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
18698 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
18699 int result;
e811c8ce
RD
18700 bool temp2 = False ;
18701 bool temp3 = False ;
d14a1e28
RD
18702 PyObject * obj0 = 0 ;
18703 PyObject * obj1 = 0 ;
18704 PyObject * obj2 = 0 ;
18705 PyObject * obj3 = 0 ;
18706 char *kwnames[] = {
18707 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
18708 };
18709
18710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18712 {
18713 arg2 = wxString_in_helper(obj1);
18714 if (arg2 == NULL) SWIG_fail;
e811c8ce 18715 temp2 = True;
d14a1e28
RD
18716 }
18717 if (obj2) {
18718 {
18719 arg3 = wxString_in_helper(obj2);
18720 if (arg3 == NULL) SWIG_fail;
e811c8ce 18721 temp3 = True;
d14a1e28
RD
18722 }
18723 }
18724 if (obj3) {
18725 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18726 if (arg4 == NULL) {
18727 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18728 }
18729 }
18730 {
18731 PyThreadState* __tstate = wxPyBeginAllowThreads();
18732 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
18733
18734 wxPyEndAllowThreads(__tstate);
18735 if (PyErr_Occurred()) SWIG_fail;
18736 }
18737 resultobj = PyInt_FromLong((long)result);
18738 {
18739 if (temp2)
18740 delete arg2;
18741 }
18742 {
18743 if (temp3)
18744 delete arg3;
18745 }
18746 return resultobj;
18747 fail:
18748 {
18749 if (temp2)
18750 delete arg2;
18751 }
18752 {
18753 if (temp3)
18754 delete arg3;
18755 }
18756 return NULL;
18757}
18758
18759
18760static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18761 PyObject *resultobj;
18762 wxDateTime *arg1 = (wxDateTime *) 0 ;
18763 wxString *arg2 = 0 ;
18764 int result;
e811c8ce 18765 bool temp2 = False ;
d14a1e28
RD
18766 PyObject * obj0 = 0 ;
18767 PyObject * obj1 = 0 ;
18768 char *kwnames[] = {
18769 (char *) "self",(char *) "datetime", NULL
18770 };
18771
18772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
18773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18774 {
18775 arg2 = wxString_in_helper(obj1);
18776 if (arg2 == NULL) SWIG_fail;
e811c8ce 18777 temp2 = True;
d14a1e28
RD
18778 }
18779 {
18780 PyThreadState* __tstate = wxPyBeginAllowThreads();
18781 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
18782
18783 wxPyEndAllowThreads(__tstate);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 resultobj = PyInt_FromLong((long)result);
18787 {
18788 if (temp2)
18789 delete arg2;
18790 }
18791 return resultobj;
18792 fail:
18793 {
18794 if (temp2)
18795 delete arg2;
18796 }
18797 return NULL;
18798}
18799
18800
18801static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
18802 PyObject *resultobj;
18803 wxDateTime *arg1 = (wxDateTime *) 0 ;
18804 wxString *arg2 = 0 ;
18805 int result;
e811c8ce 18806 bool temp2 = False ;
d14a1e28
RD
18807 PyObject * obj0 = 0 ;
18808 PyObject * obj1 = 0 ;
18809 char *kwnames[] = {
18810 (char *) "self",(char *) "date", NULL
18811 };
18812
18813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
18814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18815 {
18816 arg2 = wxString_in_helper(obj1);
18817 if (arg2 == NULL) SWIG_fail;
e811c8ce 18818 temp2 = True;
d14a1e28
RD
18819 }
18820 {
18821 PyThreadState* __tstate = wxPyBeginAllowThreads();
18822 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
18823
18824 wxPyEndAllowThreads(__tstate);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 resultobj = PyInt_FromLong((long)result);
18828 {
18829 if (temp2)
18830 delete arg2;
18831 }
18832 return resultobj;
18833 fail:
18834 {
18835 if (temp2)
18836 delete arg2;
18837 }
18838 return NULL;
18839}
18840
18841
18842static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18843 PyObject *resultobj;
18844 wxDateTime *arg1 = (wxDateTime *) 0 ;
18845 wxString *arg2 = 0 ;
18846 int result;
e811c8ce 18847 bool temp2 = False ;
d14a1e28
RD
18848 PyObject * obj0 = 0 ;
18849 PyObject * obj1 = 0 ;
18850 char *kwnames[] = {
18851 (char *) "self",(char *) "time", NULL
18852 };
18853
18854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
18855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18856 {
18857 arg2 = wxString_in_helper(obj1);
18858 if (arg2 == NULL) SWIG_fail;
e811c8ce 18859 temp2 = True;
d14a1e28
RD
18860 }
18861 {
18862 PyThreadState* __tstate = wxPyBeginAllowThreads();
18863 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
18864
18865 wxPyEndAllowThreads(__tstate);
18866 if (PyErr_Occurred()) SWIG_fail;
18867 }
18868 resultobj = PyInt_FromLong((long)result);
18869 {
18870 if (temp2)
18871 delete arg2;
18872 }
18873 return resultobj;
18874 fail:
18875 {
18876 if (temp2)
18877 delete arg2;
18878 }
18879 return NULL;
18880}
18881
18882
18883static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
18884 PyObject *resultobj;
18885 wxDateTime *arg1 = (wxDateTime *) 0 ;
18886 wxString const &arg2_defvalue = wxPyDateFormatStr ;
18887 wxString *arg2 = (wxString *) &arg2_defvalue ;
18888 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
18889 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
18890 wxString result;
e811c8ce 18891 bool temp2 = False ;
7722248d 18892 bool temp3 = False ;
d14a1e28
RD
18893 PyObject * obj0 = 0 ;
18894 PyObject * obj1 = 0 ;
18895 PyObject * obj2 = 0 ;
18896 char *kwnames[] = {
18897 (char *) "self",(char *) "format",(char *) "tz", NULL
18898 };
18899
18900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
18901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18902 if (obj1) {
18903 {
18904 arg2 = wxString_in_helper(obj1);
18905 if (arg2 == NULL) SWIG_fail;
e811c8ce 18906 temp2 = True;
d14a1e28
RD
18907 }
18908 }
18909 if (obj2) {
18910 {
18911 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 18912 temp3 = True;
d14a1e28
RD
18913 }
18914 }
18915 {
18916 PyThreadState* __tstate = wxPyBeginAllowThreads();
18917 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
18918
18919 wxPyEndAllowThreads(__tstate);
18920 if (PyErr_Occurred()) SWIG_fail;
18921 }
18922 {
18923#if wxUSE_UNICODE
18924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18925#else
18926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18927#endif
18928 }
18929 {
18930 if (temp2)
18931 delete arg2;
18932 }
18933 {
7722248d 18934 if (temp3) delete arg3;
d14a1e28
RD
18935 }
18936 return resultobj;
18937 fail:
18938 {
18939 if (temp2)
18940 delete arg2;
18941 }
18942 {
7722248d 18943 if (temp3) delete arg3;
d14a1e28
RD
18944 }
18945 return NULL;
18946}
18947
18948
18949static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
18950 PyObject *resultobj;
18951 wxDateTime *arg1 = (wxDateTime *) 0 ;
18952 wxString result;
18953 PyObject * obj0 = 0 ;
18954 char *kwnames[] = {
18955 (char *) "self", NULL
18956 };
18957
18958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
18959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18960 {
18961 PyThreadState* __tstate = wxPyBeginAllowThreads();
18962 result = ((wxDateTime const *)arg1)->FormatDate();
18963
18964 wxPyEndAllowThreads(__tstate);
18965 if (PyErr_Occurred()) SWIG_fail;
18966 }
18967 {
18968#if wxUSE_UNICODE
18969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18970#else
18971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18972#endif
18973 }
18974 return resultobj;
18975 fail:
18976 return NULL;
18977}
18978
18979
18980static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj;
18982 wxDateTime *arg1 = (wxDateTime *) 0 ;
18983 wxString result;
18984 PyObject * obj0 = 0 ;
18985 char *kwnames[] = {
18986 (char *) "self", NULL
18987 };
18988
18989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
18990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18991 {
18992 PyThreadState* __tstate = wxPyBeginAllowThreads();
18993 result = ((wxDateTime const *)arg1)->FormatTime();
18994
18995 wxPyEndAllowThreads(__tstate);
18996 if (PyErr_Occurred()) SWIG_fail;
18997 }
18998 {
18999#if wxUSE_UNICODE
19000 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19001#else
19002 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19003#endif
19004 }
19005 return resultobj;
19006 fail:
19007 return NULL;
19008}
19009
19010
19011static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
19012 PyObject *resultobj;
19013 wxDateTime *arg1 = (wxDateTime *) 0 ;
19014 wxString result;
19015 PyObject * obj0 = 0 ;
19016 char *kwnames[] = {
19017 (char *) "self", NULL
19018 };
19019
19020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
19021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19022 {
19023 PyThreadState* __tstate = wxPyBeginAllowThreads();
19024 result = ((wxDateTime const *)arg1)->FormatISODate();
19025
19026 wxPyEndAllowThreads(__tstate);
19027 if (PyErr_Occurred()) SWIG_fail;
19028 }
19029 {
19030#if wxUSE_UNICODE
19031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19032#else
19033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19034#endif
19035 }
19036 return resultobj;
19037 fail:
19038 return NULL;
19039}
19040
19041
19042static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19043 PyObject *resultobj;
19044 wxDateTime *arg1 = (wxDateTime *) 0 ;
19045 wxString result;
19046 PyObject * obj0 = 0 ;
19047 char *kwnames[] = {
19048 (char *) "self", NULL
19049 };
19050
19051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
19052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19053 {
19054 PyThreadState* __tstate = wxPyBeginAllowThreads();
19055 result = ((wxDateTime const *)arg1)->FormatISOTime();
19056
19057 wxPyEndAllowThreads(__tstate);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 }
19060 {
19061#if wxUSE_UNICODE
19062 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19063#else
19064 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19065#endif
19066 }
19067 return resultobj;
19068 fail:
19069 return NULL;
19070}
19071
19072
19073static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
19074 PyObject *obj;
19075 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19076 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
19077 Py_INCREF(obj);
19078 return Py_BuildValue((char *)"");
19079}
19080static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
19081 PyObject *resultobj;
19082 long arg1 ;
19083 wxTimeSpan result;
19084 char *kwnames[] = {
19085 (char *) "sec", NULL
19086 };
19087
19088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Seconds",kwnames,&arg1)) goto fail;
19089 {
19090 PyThreadState* __tstate = wxPyBeginAllowThreads();
19091 result = wxTimeSpan::Seconds(arg1);
19092
19093 wxPyEndAllowThreads(__tstate);
19094 if (PyErr_Occurred()) SWIG_fail;
19095 }
19096 {
19097 wxTimeSpan * resultptr;
19098 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19099 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19100 }
19101 return resultobj;
19102 fail:
19103 return NULL;
19104}
19105
19106
19107static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj;
19109 wxTimeSpan result;
19110 char *kwnames[] = {
19111 NULL
19112 };
19113
19114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
19115 {
19116 PyThreadState* __tstate = wxPyBeginAllowThreads();
19117 result = wxTimeSpan::Second();
19118
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 {
19123 wxTimeSpan * resultptr;
19124 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19125 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19126 }
19127 return resultobj;
19128 fail:
19129 return NULL;
19130}
19131
19132
19133static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
19134 PyObject *resultobj;
19135 long arg1 ;
19136 wxTimeSpan result;
19137 char *kwnames[] = {
19138 (char *) "min", NULL
19139 };
19140
19141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Minutes",kwnames,&arg1)) goto fail;
19142 {
19143 PyThreadState* __tstate = wxPyBeginAllowThreads();
19144 result = wxTimeSpan::Minutes(arg1);
19145
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 {
19150 wxTimeSpan * resultptr;
19151 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19152 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19153 }
19154 return resultobj;
19155 fail:
19156 return NULL;
19157}
19158
19159
19160static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
19161 PyObject *resultobj;
19162 wxTimeSpan result;
19163 char *kwnames[] = {
19164 NULL
19165 };
19166
19167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
19168 {
19169 PyThreadState* __tstate = wxPyBeginAllowThreads();
19170 result = wxTimeSpan::Minute();
19171
19172 wxPyEndAllowThreads(__tstate);
19173 if (PyErr_Occurred()) SWIG_fail;
19174 }
19175 {
19176 wxTimeSpan * resultptr;
19177 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19178 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19179 }
19180 return resultobj;
19181 fail:
19182 return NULL;
19183}
19184
19185
19186static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj;
19188 long arg1 ;
19189 wxTimeSpan result;
19190 char *kwnames[] = {
19191 (char *) "hours", NULL
19192 };
19193
19194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Hours",kwnames,&arg1)) goto fail;
19195 {
19196 PyThreadState* __tstate = wxPyBeginAllowThreads();
19197 result = wxTimeSpan::Hours(arg1);
19198
19199 wxPyEndAllowThreads(__tstate);
19200 if (PyErr_Occurred()) SWIG_fail;
19201 }
19202 {
19203 wxTimeSpan * resultptr;
19204 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19205 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19206 }
19207 return resultobj;
19208 fail:
19209 return NULL;
19210}
19211
19212
19213static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
19214 PyObject *resultobj;
19215 wxTimeSpan result;
19216 char *kwnames[] = {
19217 NULL
19218 };
19219
19220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
19221 {
19222 PyThreadState* __tstate = wxPyBeginAllowThreads();
19223 result = wxTimeSpan::Hour();
19224
19225 wxPyEndAllowThreads(__tstate);
19226 if (PyErr_Occurred()) SWIG_fail;
19227 }
19228 {
19229 wxTimeSpan * resultptr;
19230 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19231 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19232 }
19233 return resultobj;
19234 fail:
19235 return NULL;
19236}
19237
19238
19239static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
19240 PyObject *resultobj;
19241 long arg1 ;
19242 wxTimeSpan result;
19243 char *kwnames[] = {
19244 (char *) "days", NULL
19245 };
19246
19247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Days",kwnames,&arg1)) goto fail;
19248 {
19249 PyThreadState* __tstate = wxPyBeginAllowThreads();
19250 result = wxTimeSpan::Days(arg1);
19251
19252 wxPyEndAllowThreads(__tstate);
19253 if (PyErr_Occurred()) SWIG_fail;
19254 }
19255 {
19256 wxTimeSpan * resultptr;
19257 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19258 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19259 }
19260 return resultobj;
19261 fail:
19262 return NULL;
19263}
19264
19265
19266static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
19267 PyObject *resultobj;
19268 wxTimeSpan result;
19269 char *kwnames[] = {
19270 NULL
19271 };
19272
19273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
19274 {
19275 PyThreadState* __tstate = wxPyBeginAllowThreads();
19276 result = wxTimeSpan::Day();
19277
19278 wxPyEndAllowThreads(__tstate);
19279 if (PyErr_Occurred()) SWIG_fail;
19280 }
19281 {
19282 wxTimeSpan * resultptr;
19283 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19284 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19285 }
19286 return resultobj;
19287 fail:
19288 return NULL;
19289}
19290
19291
19292static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
19293 PyObject *resultobj;
19294 long arg1 ;
19295 wxTimeSpan result;
19296 char *kwnames[] = {
19297 (char *) "days", NULL
19298 };
19299
19300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Weeks",kwnames,&arg1)) goto fail;
19301 {
19302 PyThreadState* __tstate = wxPyBeginAllowThreads();
19303 result = wxTimeSpan::Weeks(arg1);
19304
19305 wxPyEndAllowThreads(__tstate);
19306 if (PyErr_Occurred()) SWIG_fail;
19307 }
19308 {
19309 wxTimeSpan * resultptr;
19310 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19311 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19312 }
19313 return resultobj;
19314 fail:
19315 return NULL;
19316}
19317
19318
19319static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
19320 PyObject *resultobj;
19321 wxTimeSpan result;
19322 char *kwnames[] = {
19323 NULL
19324 };
19325
19326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
19327 {
19328 PyThreadState* __tstate = wxPyBeginAllowThreads();
19329 result = wxTimeSpan::Week();
19330
19331 wxPyEndAllowThreads(__tstate);
19332 if (PyErr_Occurred()) SWIG_fail;
19333 }
19334 {
19335 wxTimeSpan * resultptr;
19336 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19337 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19338 }
19339 return resultobj;
19340 fail:
19341 return NULL;
19342}
19343
19344
19345static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
19346 PyObject *resultobj;
19347 long arg1 = (long) 0 ;
19348 long arg2 = (long) 0 ;
19349 long arg3 = (long) 0 ;
19350 long arg4 = (long) 0 ;
19351 wxTimeSpan *result;
19352 char *kwnames[] = {
19353 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
19354 };
19355
19356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|llll:new_TimeSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
19357 {
19358 PyThreadState* __tstate = wxPyBeginAllowThreads();
19359 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
19360
19361 wxPyEndAllowThreads(__tstate);
19362 if (PyErr_Occurred()) SWIG_fail;
19363 }
19364 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1);
19365 return resultobj;
19366 fail:
19367 return NULL;
19368}
19369
19370
19371static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
19372 PyObject *resultobj;
19373 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19374 PyObject * obj0 = 0 ;
19375 char *kwnames[] = {
19376 (char *) "self", NULL
19377 };
19378
19379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
19380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19381 {
19382 PyThreadState* __tstate = wxPyBeginAllowThreads();
19383 delete arg1;
19384
19385 wxPyEndAllowThreads(__tstate);
19386 if (PyErr_Occurred()) SWIG_fail;
19387 }
19388 Py_INCREF(Py_None); resultobj = Py_None;
19389 return resultobj;
19390 fail:
19391 return NULL;
19392}
19393
19394
19395static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
19396 PyObject *resultobj;
19397 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19398 wxTimeSpan *arg2 = 0 ;
19399 wxTimeSpan *result;
19400 PyObject * obj0 = 0 ;
19401 PyObject * obj1 = 0 ;
19402 char *kwnames[] = {
19403 (char *) "self",(char *) "diff", NULL
19404 };
19405
19406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
19407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19408 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19409 if (arg2 == NULL) {
19410 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19411 }
19412 {
19413 PyThreadState* __tstate = wxPyBeginAllowThreads();
19414 {
19415 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19416 result = (wxTimeSpan *) &_result_ref;
19417 }
19418
19419 wxPyEndAllowThreads(__tstate);
19420 if (PyErr_Occurred()) SWIG_fail;
19421 }
19422 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19423 return resultobj;
19424 fail:
19425 return NULL;
19426}
19427
19428
19429static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19430 PyObject *resultobj;
19431 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19432 wxTimeSpan *arg2 = 0 ;
19433 wxTimeSpan *result;
19434 PyObject * obj0 = 0 ;
19435 PyObject * obj1 = 0 ;
19436 char *kwnames[] = {
19437 (char *) "self",(char *) "diff", NULL
19438 };
19439
19440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
19441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19442 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19443 if (arg2 == NULL) {
19444 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19445 }
19446 {
19447 PyThreadState* __tstate = wxPyBeginAllowThreads();
19448 {
19449 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19450 result = (wxTimeSpan *) &_result_ref;
19451 }
19452
19453 wxPyEndAllowThreads(__tstate);
19454 if (PyErr_Occurred()) SWIG_fail;
19455 }
19456 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19457 return resultobj;
19458 fail:
19459 return NULL;
19460}
19461
19462
19463static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
19464 PyObject *resultobj;
19465 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19466 int arg2 ;
19467 wxTimeSpan *result;
19468 PyObject * obj0 = 0 ;
19469 char *kwnames[] = {
19470 (char *) "self",(char *) "n", NULL
19471 };
19472
19473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan_Multiply",kwnames,&obj0,&arg2)) goto fail;
19474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19475 {
19476 PyThreadState* __tstate = wxPyBeginAllowThreads();
19477 {
19478 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
19479 result = (wxTimeSpan *) &_result_ref;
19480 }
19481
19482 wxPyEndAllowThreads(__tstate);
19483 if (PyErr_Occurred()) SWIG_fail;
19484 }
19485 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19486 return resultobj;
19487 fail:
19488 return NULL;
19489}
19490
19491
19492static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
19493 PyObject *resultobj;
19494 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19495 wxTimeSpan *result;
19496 PyObject * obj0 = 0 ;
19497 char *kwnames[] = {
19498 (char *) "self", NULL
19499 };
19500
19501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
19502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19503 {
19504 PyThreadState* __tstate = wxPyBeginAllowThreads();
19505 {
19506 wxTimeSpan &_result_ref = (arg1)->Neg();
19507 result = (wxTimeSpan *) &_result_ref;
19508 }
19509
19510 wxPyEndAllowThreads(__tstate);
19511 if (PyErr_Occurred()) SWIG_fail;
19512 }
19513 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19514 return resultobj;
19515 fail:
19516 return NULL;
19517}
19518
19519
19520static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
19521 PyObject *resultobj;
19522 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19523 wxTimeSpan result;
19524 PyObject * obj0 = 0 ;
19525 char *kwnames[] = {
19526 (char *) "self", NULL
19527 };
19528
19529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
19530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19531 {
19532 PyThreadState* __tstate = wxPyBeginAllowThreads();
19533 result = ((wxTimeSpan const *)arg1)->Abs();
19534
19535 wxPyEndAllowThreads(__tstate);
19536 if (PyErr_Occurred()) SWIG_fail;
19537 }
19538 {
19539 wxTimeSpan * resultptr;
19540 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19541 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19542 }
19543 return resultobj;
19544 fail:
19545 return NULL;
19546}
19547
19548
19549static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
19550 PyObject *resultobj;
19551 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19552 wxTimeSpan *arg2 = 0 ;
19553 wxTimeSpan *result;
19554 PyObject * obj0 = 0 ;
19555 PyObject * obj1 = 0 ;
19556 char *kwnames[] = {
19557 (char *) "self",(char *) "diff", NULL
19558 };
19559
19560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
19561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19562 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19563 if (arg2 == NULL) {
19564 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19565 }
19566 {
19567 PyThreadState* __tstate = wxPyBeginAllowThreads();
19568 {
19569 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19570 result = (wxTimeSpan *) &_result_ref;
19571 }
19572
19573 wxPyEndAllowThreads(__tstate);
19574 if (PyErr_Occurred()) SWIG_fail;
19575 }
19576 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19577 return resultobj;
19578 fail:
19579 return NULL;
19580}
19581
19582
19583static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
19584 PyObject *resultobj;
19585 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19586 wxTimeSpan *arg2 = 0 ;
19587 wxTimeSpan *result;
19588 PyObject * obj0 = 0 ;
19589 PyObject * obj1 = 0 ;
19590 char *kwnames[] = {
19591 (char *) "self",(char *) "diff", NULL
19592 };
19593
19594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
19595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19596 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19597 if (arg2 == NULL) {
19598 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19599 }
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 {
19603 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
19604 result = (wxTimeSpan *) &_result_ref;
19605 }
19606
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19611 return resultobj;
19612 fail:
19613 return NULL;
19614}
19615
19616
19617static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
19618 PyObject *resultobj;
19619 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19620 int arg2 ;
19621 wxTimeSpan *result;
19622 PyObject * obj0 = 0 ;
19623 char *kwnames[] = {
19624 (char *) "self",(char *) "n", NULL
19625 };
19626
19627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___imul__",kwnames,&obj0,&arg2)) goto fail;
19628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19629 {
19630 PyThreadState* __tstate = wxPyBeginAllowThreads();
19631 {
19632 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
19633 result = (wxTimeSpan *) &_result_ref;
19634 }
19635
19636 wxPyEndAllowThreads(__tstate);
19637 if (PyErr_Occurred()) SWIG_fail;
19638 }
19639 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19640 return resultobj;
19641 fail:
19642 return NULL;
19643}
19644
19645
19646static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
19647 PyObject *resultobj;
19648 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19649 wxTimeSpan *result;
19650 PyObject * obj0 = 0 ;
19651 char *kwnames[] = {
19652 (char *) "self", NULL
19653 };
19654
19655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
19656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19657 {
19658 PyThreadState* __tstate = wxPyBeginAllowThreads();
19659 {
19660 wxTimeSpan &_result_ref = (arg1)->operator -();
19661 result = (wxTimeSpan *) &_result_ref;
19662 }
19663
19664 wxPyEndAllowThreads(__tstate);
19665 if (PyErr_Occurred()) SWIG_fail;
19666 }
19667 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19668 return resultobj;
19669 fail:
19670 return NULL;
19671}
19672
19673
19674static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
19675 PyObject *resultobj;
19676 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19677 wxTimeSpan *arg2 = 0 ;
19678 wxTimeSpan result;
19679 PyObject * obj0 = 0 ;
19680 PyObject * obj1 = 0 ;
19681 char *kwnames[] = {
19682 (char *) "self",(char *) "other", NULL
19683 };
19684
19685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
19686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19687 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19688 if (arg2 == NULL) {
19689 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19690 }
19691 {
19692 PyThreadState* __tstate = wxPyBeginAllowThreads();
19693 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
19694
19695 wxPyEndAllowThreads(__tstate);
19696 if (PyErr_Occurred()) SWIG_fail;
19697 }
19698 {
19699 wxTimeSpan * resultptr;
19700 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19701 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19702 }
19703 return resultobj;
19704 fail:
19705 return NULL;
19706}
19707
19708
19709static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
19710 PyObject *resultobj;
19711 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19712 wxTimeSpan *arg2 = 0 ;
19713 wxTimeSpan result;
19714 PyObject * obj0 = 0 ;
19715 PyObject * obj1 = 0 ;
19716 char *kwnames[] = {
19717 (char *) "self",(char *) "other", NULL
19718 };
19719
19720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
19721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19722 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19723 if (arg2 == NULL) {
19724 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19725 }
19726 {
19727 PyThreadState* __tstate = wxPyBeginAllowThreads();
19728 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
19729
19730 wxPyEndAllowThreads(__tstate);
19731 if (PyErr_Occurred()) SWIG_fail;
19732 }
19733 {
19734 wxTimeSpan * resultptr;
19735 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19736 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19737 }
19738 return resultobj;
19739 fail:
19740 return NULL;
19741}
19742
19743
19744static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
19745 PyObject *resultobj;
19746 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19747 int arg2 ;
19748 wxTimeSpan result;
19749 PyObject * obj0 = 0 ;
19750 char *kwnames[] = {
19751 (char *) "self",(char *) "n", NULL
19752 };
19753
19754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___mul__",kwnames,&obj0,&arg2)) goto fail;
19755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19756 {
19757 PyThreadState* __tstate = wxPyBeginAllowThreads();
19758 result = wxTimeSpan___mul__(arg1,arg2);
19759
19760 wxPyEndAllowThreads(__tstate);
19761 if (PyErr_Occurred()) SWIG_fail;
19762 }
19763 {
19764 wxTimeSpan * resultptr;
19765 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19766 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19767 }
19768 return resultobj;
19769 fail:
19770 return NULL;
19771}
19772
19773
19774static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj;
19776 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19777 int arg2 ;
19778 wxTimeSpan result;
19779 PyObject * obj0 = 0 ;
19780 char *kwnames[] = {
19781 (char *) "self",(char *) "n", NULL
19782 };
19783
19784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___rmul__",kwnames,&obj0,&arg2)) goto fail;
19785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19786 {
19787 PyThreadState* __tstate = wxPyBeginAllowThreads();
19788 result = wxTimeSpan___rmul__(arg1,arg2);
19789
19790 wxPyEndAllowThreads(__tstate);
19791 if (PyErr_Occurred()) SWIG_fail;
19792 }
19793 {
19794 wxTimeSpan * resultptr;
19795 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19796 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19797 }
19798 return resultobj;
19799 fail:
19800 return NULL;
19801}
19802
19803
19804static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
19805 PyObject *resultobj;
19806 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19807 wxTimeSpan *arg2 = 0 ;
19808 bool result;
19809 PyObject * obj0 = 0 ;
19810 PyObject * obj1 = 0 ;
19811 char *kwnames[] = {
19812 (char *) "self",(char *) "other", NULL
19813 };
19814
19815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
19816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19817 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19818 if (arg2 == NULL) {
19819 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19820 }
19821 {
19822 PyThreadState* __tstate = wxPyBeginAllowThreads();
19823 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2);
19824
19825 wxPyEndAllowThreads(__tstate);
19826 if (PyErr_Occurred()) SWIG_fail;
19827 }
19828 resultobj = PyInt_FromLong((long)result);
19829 return resultobj;
19830 fail:
19831 return NULL;
19832}
19833
19834
19835static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
19836 PyObject *resultobj;
19837 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19838 wxTimeSpan *arg2 = 0 ;
19839 bool result;
19840 PyObject * obj0 = 0 ;
19841 PyObject * obj1 = 0 ;
19842 char *kwnames[] = {
19843 (char *) "self",(char *) "other", NULL
19844 };
19845
19846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
19847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19848 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19849 if (arg2 == NULL) {
19850 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19851 }
19852 {
19853 PyThreadState* __tstate = wxPyBeginAllowThreads();
19854 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2);
19855
19856 wxPyEndAllowThreads(__tstate);
19857 if (PyErr_Occurred()) SWIG_fail;
19858 }
19859 resultobj = PyInt_FromLong((long)result);
19860 return resultobj;
19861 fail:
19862 return NULL;
19863}
19864
19865
19866static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
19867 PyObject *resultobj;
19868 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19869 wxTimeSpan *arg2 = 0 ;
19870 bool result;
19871 PyObject * obj0 = 0 ;
19872 PyObject * obj1 = 0 ;
19873 char *kwnames[] = {
19874 (char *) "self",(char *) "other", NULL
19875 };
19876
19877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
19878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19879 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19880 if (arg2 == NULL) {
19881 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19882 }
19883 {
19884 PyThreadState* __tstate = wxPyBeginAllowThreads();
19885 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2);
19886
19887 wxPyEndAllowThreads(__tstate);
19888 if (PyErr_Occurred()) SWIG_fail;
19889 }
19890 resultobj = PyInt_FromLong((long)result);
19891 return resultobj;
19892 fail:
19893 return NULL;
19894}
19895
19896
19897static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
19898 PyObject *resultobj;
19899 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19900 wxTimeSpan *arg2 = 0 ;
19901 bool result;
19902 PyObject * obj0 = 0 ;
19903 PyObject * obj1 = 0 ;
19904 char *kwnames[] = {
19905 (char *) "self",(char *) "other", NULL
19906 };
19907
19908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
19909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19910 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19911 if (arg2 == NULL) {
19912 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19913 }
19914 {
19915 PyThreadState* __tstate = wxPyBeginAllowThreads();
19916 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2);
19917
19918 wxPyEndAllowThreads(__tstate);
19919 if (PyErr_Occurred()) SWIG_fail;
19920 }
19921 resultobj = PyInt_FromLong((long)result);
19922 return resultobj;
19923 fail:
19924 return NULL;
19925}
19926
19927
19928static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
19929 PyObject *resultobj;
19930 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19931 wxTimeSpan *arg2 = 0 ;
19932 bool result;
19933 PyObject * obj0 = 0 ;
19934 PyObject * obj1 = 0 ;
19935 char *kwnames[] = {
19936 (char *) "self",(char *) "other", NULL
19937 };
19938
19939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
19940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19941 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19942 if (arg2 == NULL) {
19943 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19944 }
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2);
19948
19949 wxPyEndAllowThreads(__tstate);
19950 if (PyErr_Occurred()) SWIG_fail;
19951 }
19952 resultobj = PyInt_FromLong((long)result);
19953 return resultobj;
19954 fail:
19955 return NULL;
19956}
19957
19958
19959static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
19960 PyObject *resultobj;
19961 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19962 wxTimeSpan *arg2 = 0 ;
19963 bool result;
19964 PyObject * obj0 = 0 ;
19965 PyObject * obj1 = 0 ;
19966 char *kwnames[] = {
19967 (char *) "self",(char *) "other", NULL
19968 };
19969
19970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
19971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19972 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19973 if (arg2 == NULL) {
19974 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19975 }
19976 {
19977 PyThreadState* __tstate = wxPyBeginAllowThreads();
19978 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2);
19979
19980 wxPyEndAllowThreads(__tstate);
19981 if (PyErr_Occurred()) SWIG_fail;
19982 }
19983 resultobj = PyInt_FromLong((long)result);
19984 return resultobj;
19985 fail:
19986 return NULL;
19987}
19988
19989
19990static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
19991 PyObject *resultobj;
19992 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19993 bool result;
19994 PyObject * obj0 = 0 ;
19995 char *kwnames[] = {
19996 (char *) "self", NULL
19997 };
19998
19999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
20000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20001 {
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
20004
20005 wxPyEndAllowThreads(__tstate);
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
20008 resultobj = PyInt_FromLong((long)result);
20009 return resultobj;
20010 fail:
20011 return NULL;
20012}
20013
20014
20015static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
20016 PyObject *resultobj;
20017 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20018 bool result;
20019 PyObject * obj0 = 0 ;
20020 char *kwnames[] = {
20021 (char *) "self", NULL
20022 };
20023
20024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
20025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20026 {
20027 PyThreadState* __tstate = wxPyBeginAllowThreads();
20028 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
20029
20030 wxPyEndAllowThreads(__tstate);
20031 if (PyErr_Occurred()) SWIG_fail;
20032 }
20033 resultobj = PyInt_FromLong((long)result);
20034 return resultobj;
20035 fail:
20036 return NULL;
20037}
20038
20039
20040static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
20041 PyObject *resultobj;
20042 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20043 bool result;
20044 PyObject * obj0 = 0 ;
20045 char *kwnames[] = {
20046 (char *) "self", NULL
20047 };
20048
20049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
20050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20051 {
20052 PyThreadState* __tstate = wxPyBeginAllowThreads();
20053 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
20054
20055 wxPyEndAllowThreads(__tstate);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 }
20058 resultobj = PyInt_FromLong((long)result);
20059 return resultobj;
20060 fail:
20061 return NULL;
20062}
20063
20064
20065static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20066 PyObject *resultobj;
20067 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20068 wxTimeSpan *arg2 = 0 ;
20069 bool result;
20070 PyObject * obj0 = 0 ;
20071 PyObject * obj1 = 0 ;
20072 char *kwnames[] = {
20073 (char *) "self",(char *) "ts", NULL
20074 };
20075
20076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
20077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20078 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20079 if (arg2 == NULL) {
20080 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20081 }
20082 {
20083 PyThreadState* __tstate = wxPyBeginAllowThreads();
20084 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
20085
20086 wxPyEndAllowThreads(__tstate);
20087 if (PyErr_Occurred()) SWIG_fail;
20088 }
20089 resultobj = PyInt_FromLong((long)result);
20090 return resultobj;
20091 fail:
20092 return NULL;
20093}
20094
20095
20096static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
20097 PyObject *resultobj;
20098 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20099 wxTimeSpan *arg2 = 0 ;
20100 bool result;
20101 PyObject * obj0 = 0 ;
20102 PyObject * obj1 = 0 ;
20103 char *kwnames[] = {
20104 (char *) "self",(char *) "ts", NULL
20105 };
20106
20107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
20108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20109 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20110 if (arg2 == NULL) {
20111 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20112 }
20113 {
20114 PyThreadState* __tstate = wxPyBeginAllowThreads();
20115 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
20116
20117 wxPyEndAllowThreads(__tstate);
20118 if (PyErr_Occurred()) SWIG_fail;
20119 }
20120 resultobj = PyInt_FromLong((long)result);
20121 return resultobj;
20122 fail:
20123 return NULL;
20124}
20125
20126
20127static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
20128 PyObject *resultobj;
20129 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20130 wxTimeSpan *arg2 = 0 ;
20131 bool result;
20132 PyObject * obj0 = 0 ;
20133 PyObject * obj1 = 0 ;
20134 char *kwnames[] = {
20135 (char *) "self",(char *) "t", NULL
20136 };
20137
20138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
20139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20140 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20141 if (arg2 == NULL) {
20142 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20143 }
20144 {
20145 PyThreadState* __tstate = wxPyBeginAllowThreads();
20146 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
20147
20148 wxPyEndAllowThreads(__tstate);
20149 if (PyErr_Occurred()) SWIG_fail;
20150 }
20151 resultobj = PyInt_FromLong((long)result);
20152 return resultobj;
20153 fail:
20154 return NULL;
20155}
20156
20157
20158static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
20159 PyObject *resultobj;
20160 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20161 int result;
20162 PyObject * obj0 = 0 ;
20163 char *kwnames[] = {
20164 (char *) "self", NULL
20165 };
20166
20167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
20168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20169 {
20170 PyThreadState* __tstate = wxPyBeginAllowThreads();
20171 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
20172
20173 wxPyEndAllowThreads(__tstate);
20174 if (PyErr_Occurred()) SWIG_fail;
20175 }
20176 resultobj = PyInt_FromLong((long)result);
20177 return resultobj;
20178 fail:
20179 return NULL;
20180}
20181
20182
20183static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
20184 PyObject *resultobj;
20185 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20186 int result;
20187 PyObject * obj0 = 0 ;
20188 char *kwnames[] = {
20189 (char *) "self", NULL
20190 };
20191
20192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
20193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20194 {
20195 PyThreadState* __tstate = wxPyBeginAllowThreads();
20196 result = (int)((wxTimeSpan const *)arg1)->GetDays();
20197
20198 wxPyEndAllowThreads(__tstate);
20199 if (PyErr_Occurred()) SWIG_fail;
20200 }
20201 resultobj = PyInt_FromLong((long)result);
20202 return resultobj;
20203 fail:
20204 return NULL;
20205}
20206
20207
20208static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
20209 PyObject *resultobj;
20210 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20211 int result;
20212 PyObject * obj0 = 0 ;
20213 char *kwnames[] = {
20214 (char *) "self", NULL
20215 };
20216
20217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
20218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20219 {
20220 PyThreadState* __tstate = wxPyBeginAllowThreads();
20221 result = (int)((wxTimeSpan const *)arg1)->GetHours();
20222
20223 wxPyEndAllowThreads(__tstate);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 resultobj = PyInt_FromLong((long)result);
20227 return resultobj;
20228 fail:
20229 return NULL;
20230}
20231
20232
20233static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj;
20235 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20236 int result;
20237 PyObject * obj0 = 0 ;
20238 char *kwnames[] = {
20239 (char *) "self", NULL
20240 };
20241
20242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
20243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20244 {
20245 PyThreadState* __tstate = wxPyBeginAllowThreads();
20246 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
20247
20248 wxPyEndAllowThreads(__tstate);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 }
20251 resultobj = PyInt_FromLong((long)result);
20252 return resultobj;
20253 fail:
20254 return NULL;
20255}
20256
20257
20258static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
20259 PyObject *resultobj;
20260 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20261 wxLongLong result;
20262 PyObject * obj0 = 0 ;
20263 char *kwnames[] = {
20264 (char *) "self", NULL
20265 };
20266
20267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
20268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20269 {
20270 PyThreadState* __tstate = wxPyBeginAllowThreads();
20271 result = ((wxTimeSpan const *)arg1)->GetSeconds();
20272
20273 wxPyEndAllowThreads(__tstate);
20274 if (PyErr_Occurred()) SWIG_fail;
20275 }
20276 {
20277 PyObject *hi, *lo, *shifter, *shifted;
20278 hi = PyLong_FromLong( (&result)->GetHi() );
20279 lo = PyLong_FromLong( (&result)->GetLo() );
20280 shifter = PyLong_FromLong(32);
20281 shifted = PyNumber_Lshift(hi, shifter);
20282 resultobj = PyNumber_Or(shifted, lo);
20283 Py_DECREF(hi);
20284 Py_DECREF(lo);
20285 Py_DECREF(shifter);
20286 Py_DECREF(shifted);
20287 }
20288 return resultobj;
20289 fail:
20290 return NULL;
20291}
20292
20293
20294static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
20295 PyObject *resultobj;
20296 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20297 wxLongLong result;
20298 PyObject * obj0 = 0 ;
20299 char *kwnames[] = {
20300 (char *) "self", NULL
20301 };
20302
20303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
20304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20305 {
20306 PyThreadState* __tstate = wxPyBeginAllowThreads();
20307 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
20308
20309 wxPyEndAllowThreads(__tstate);
20310 if (PyErr_Occurred()) SWIG_fail;
20311 }
20312 {
20313 PyObject *hi, *lo, *shifter, *shifted;
20314 hi = PyLong_FromLong( (&result)->GetHi() );
20315 lo = PyLong_FromLong( (&result)->GetLo() );
20316 shifter = PyLong_FromLong(32);
20317 shifted = PyNumber_Lshift(hi, shifter);
20318 resultobj = PyNumber_Or(shifted, lo);
20319 Py_DECREF(hi);
20320 Py_DECREF(lo);
20321 Py_DECREF(shifter);
20322 Py_DECREF(shifted);
20323 }
20324 return resultobj;
20325 fail:
20326 return NULL;
20327}
20328
20329
20330static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20331 PyObject *resultobj;
20332 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20333 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
20334 wxString *arg2 = (wxString *) &arg2_defvalue ;
20335 wxString result;
e811c8ce 20336 bool temp2 = False ;
d14a1e28
RD
20337 PyObject * obj0 = 0 ;
20338 PyObject * obj1 = 0 ;
20339 char *kwnames[] = {
20340 (char *) "self",(char *) "format", NULL
20341 };
20342
20343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
20344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20345 if (obj1) {
20346 {
20347 arg2 = wxString_in_helper(obj1);
20348 if (arg2 == NULL) SWIG_fail;
e811c8ce 20349 temp2 = True;
d14a1e28
RD
20350 }
20351 }
20352 {
20353 PyThreadState* __tstate = wxPyBeginAllowThreads();
20354 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
20355
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 {
20360#if wxUSE_UNICODE
20361 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20362#else
20363 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20364#endif
20365 }
20366 {
20367 if (temp2)
20368 delete arg2;
20369 }
20370 return resultobj;
20371 fail:
20372 {
20373 if (temp2)
20374 delete arg2;
20375 }
20376 return NULL;
20377}
20378
20379
20380static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
20381 PyObject *obj;
20382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20383 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
20384 Py_INCREF(obj);
20385 return Py_BuildValue((char *)"");
20386}
20387static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
20388 PyObject *resultobj;
20389 int arg1 = (int) 0 ;
20390 int arg2 = (int) 0 ;
20391 int arg3 = (int) 0 ;
20392 int arg4 = (int) 0 ;
20393 wxDateSpan *result;
20394 char *kwnames[] = {
20395 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
20396 };
20397
20398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_DateSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
20399 {
20400 PyThreadState* __tstate = wxPyBeginAllowThreads();
20401 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
20402
20403 wxPyEndAllowThreads(__tstate);
20404 if (PyErr_Occurred()) SWIG_fail;
20405 }
20406 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1);
20407 return resultobj;
20408 fail:
20409 return NULL;
20410}
20411
20412
20413static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
20414 PyObject *resultobj;
20415 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20416 PyObject * obj0 = 0 ;
20417 char *kwnames[] = {
20418 (char *) "self", NULL
20419 };
20420
20421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
20422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20423 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 delete arg1;
20426
20427 wxPyEndAllowThreads(__tstate);
20428 if (PyErr_Occurred()) SWIG_fail;
20429 }
20430 Py_INCREF(Py_None); resultobj = Py_None;
20431 return resultobj;
20432 fail:
20433 return NULL;
20434}
20435
20436
20437static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
20438 PyObject *resultobj;
20439 int arg1 ;
20440 wxDateSpan result;
20441 char *kwnames[] = {
20442 (char *) "days", NULL
20443 };
20444
20445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Days",kwnames,&arg1)) goto fail;
20446 {
20447 PyThreadState* __tstate = wxPyBeginAllowThreads();
20448 result = wxDateSpan::Days(arg1);
20449
20450 wxPyEndAllowThreads(__tstate);
20451 if (PyErr_Occurred()) SWIG_fail;
20452 }
20453 {
20454 wxDateSpan * resultptr;
20455 resultptr = new wxDateSpan((wxDateSpan &) result);
20456 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20457 }
20458 return resultobj;
20459 fail:
20460 return NULL;
20461}
20462
20463
20464static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
20465 PyObject *resultobj;
20466 wxDateSpan result;
20467 char *kwnames[] = {
20468 NULL
20469 };
20470
20471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
20472 {
20473 PyThreadState* __tstate = wxPyBeginAllowThreads();
20474 result = wxDateSpan::Day();
20475
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 {
20480 wxDateSpan * resultptr;
20481 resultptr = new wxDateSpan((wxDateSpan &) result);
20482 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20483 }
20484 return resultobj;
20485 fail:
20486 return NULL;
20487}
20488
20489
20490static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
20491 PyObject *resultobj;
20492 int arg1 ;
20493 wxDateSpan result;
20494 char *kwnames[] = {
20495 (char *) "weeks", NULL
20496 };
20497
20498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Weeks",kwnames,&arg1)) goto fail;
20499 {
20500 PyThreadState* __tstate = wxPyBeginAllowThreads();
20501 result = wxDateSpan::Weeks(arg1);
20502
20503 wxPyEndAllowThreads(__tstate);
20504 if (PyErr_Occurred()) SWIG_fail;
20505 }
20506 {
20507 wxDateSpan * resultptr;
20508 resultptr = new wxDateSpan((wxDateSpan &) result);
20509 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20510 }
20511 return resultobj;
20512 fail:
20513 return NULL;
20514}
20515
20516
20517static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
20518 PyObject *resultobj;
20519 wxDateSpan result;
20520 char *kwnames[] = {
20521 NULL
20522 };
20523
20524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 result = wxDateSpan::Week();
20528
20529 wxPyEndAllowThreads(__tstate);
20530 if (PyErr_Occurred()) SWIG_fail;
20531 }
20532 {
20533 wxDateSpan * resultptr;
20534 resultptr = new wxDateSpan((wxDateSpan &) result);
20535 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20536 }
20537 return resultobj;
20538 fail:
20539 return NULL;
20540}
20541
20542
20543static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
20544 PyObject *resultobj;
20545 int arg1 ;
20546 wxDateSpan result;
20547 char *kwnames[] = {
20548 (char *) "mon", NULL
20549 };
20550
20551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Months",kwnames,&arg1)) goto fail;
20552 {
20553 PyThreadState* __tstate = wxPyBeginAllowThreads();
20554 result = wxDateSpan::Months(arg1);
20555
20556 wxPyEndAllowThreads(__tstate);
20557 if (PyErr_Occurred()) SWIG_fail;
20558 }
20559 {
20560 wxDateSpan * resultptr;
20561 resultptr = new wxDateSpan((wxDateSpan &) result);
20562 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20563 }
20564 return resultobj;
20565 fail:
20566 return NULL;
20567}
20568
20569
20570static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
20571 PyObject *resultobj;
20572 wxDateSpan result;
20573 char *kwnames[] = {
20574 NULL
20575 };
20576
20577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
20578 {
20579 PyThreadState* __tstate = wxPyBeginAllowThreads();
20580 result = wxDateSpan::Month();
20581
20582 wxPyEndAllowThreads(__tstate);
20583 if (PyErr_Occurred()) SWIG_fail;
20584 }
20585 {
20586 wxDateSpan * resultptr;
20587 resultptr = new wxDateSpan((wxDateSpan &) result);
20588 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20589 }
20590 return resultobj;
20591 fail:
20592 return NULL;
20593}
20594
20595
20596static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
20597 PyObject *resultobj;
20598 int arg1 ;
20599 wxDateSpan result;
20600 char *kwnames[] = {
20601 (char *) "years", NULL
20602 };
20603
20604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Years",kwnames,&arg1)) goto fail;
20605 {
20606 PyThreadState* __tstate = wxPyBeginAllowThreads();
20607 result = wxDateSpan::Years(arg1);
20608
20609 wxPyEndAllowThreads(__tstate);
20610 if (PyErr_Occurred()) SWIG_fail;
20611 }
20612 {
20613 wxDateSpan * resultptr;
20614 resultptr = new wxDateSpan((wxDateSpan &) result);
20615 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20616 }
20617 return resultobj;
20618 fail:
20619 return NULL;
20620}
20621
20622
20623static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
20624 PyObject *resultobj;
20625 wxDateSpan result;
20626 char *kwnames[] = {
20627 NULL
20628 };
20629
20630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
20631 {
20632 PyThreadState* __tstate = wxPyBeginAllowThreads();
20633 result = wxDateSpan::Year();
20634
20635 wxPyEndAllowThreads(__tstate);
20636 if (PyErr_Occurred()) SWIG_fail;
20637 }
20638 {
20639 wxDateSpan * resultptr;
20640 resultptr = new wxDateSpan((wxDateSpan &) result);
20641 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20642 }
20643 return resultobj;
20644 fail:
20645 return NULL;
20646}
20647
20648
20649static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
20650 PyObject *resultobj;
20651 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20652 int arg2 ;
20653 wxDateSpan *result;
20654 PyObject * obj0 = 0 ;
20655 char *kwnames[] = {
20656 (char *) "self",(char *) "n", NULL
20657 };
20658
20659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetYears",kwnames,&obj0,&arg2)) goto fail;
20660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20661 {
20662 PyThreadState* __tstate = wxPyBeginAllowThreads();
20663 {
20664 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
20665 result = (wxDateSpan *) &_result_ref;
20666 }
20667
20668 wxPyEndAllowThreads(__tstate);
20669 if (PyErr_Occurred()) SWIG_fail;
20670 }
20671 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20672 return resultobj;
20673 fail:
20674 return NULL;
20675}
20676
20677
20678static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
20679 PyObject *resultobj;
20680 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20681 int arg2 ;
20682 wxDateSpan *result;
20683 PyObject * obj0 = 0 ;
20684 char *kwnames[] = {
20685 (char *) "self",(char *) "n", NULL
20686 };
20687
20688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetMonths",kwnames,&obj0,&arg2)) goto fail;
20689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20690 {
20691 PyThreadState* __tstate = wxPyBeginAllowThreads();
20692 {
20693 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
20694 result = (wxDateSpan *) &_result_ref;
20695 }
20696
20697 wxPyEndAllowThreads(__tstate);
20698 if (PyErr_Occurred()) SWIG_fail;
20699 }
20700 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20701 return resultobj;
20702 fail:
20703 return NULL;
20704}
20705
20706
20707static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
20708 PyObject *resultobj;
20709 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20710 int arg2 ;
20711 wxDateSpan *result;
20712 PyObject * obj0 = 0 ;
20713 char *kwnames[] = {
20714 (char *) "self",(char *) "n", NULL
20715 };
20716
20717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetWeeks",kwnames,&obj0,&arg2)) goto fail;
20718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20719 {
20720 PyThreadState* __tstate = wxPyBeginAllowThreads();
20721 {
20722 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
20723 result = (wxDateSpan *) &_result_ref;
20724 }
20725
20726 wxPyEndAllowThreads(__tstate);
20727 if (PyErr_Occurred()) SWIG_fail;
20728 }
20729 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20730 return resultobj;
20731 fail:
20732 return NULL;
20733}
20734
20735
20736static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
20737 PyObject *resultobj;
20738 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20739 int arg2 ;
20740 wxDateSpan *result;
20741 PyObject * obj0 = 0 ;
20742 char *kwnames[] = {
20743 (char *) "self",(char *) "n", NULL
20744 };
20745
20746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetDays",kwnames,&obj0,&arg2)) goto fail;
20747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20748 {
20749 PyThreadState* __tstate = wxPyBeginAllowThreads();
20750 {
20751 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
20752 result = (wxDateSpan *) &_result_ref;
20753 }
20754
20755 wxPyEndAllowThreads(__tstate);
20756 if (PyErr_Occurred()) SWIG_fail;
20757 }
20758 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20759 return resultobj;
20760 fail:
20761 return NULL;
20762}
20763
20764
20765static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
20766 PyObject *resultobj;
20767 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20768 int result;
20769 PyObject * obj0 = 0 ;
20770 char *kwnames[] = {
20771 (char *) "self", NULL
20772 };
20773
20774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
20775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20776 {
20777 PyThreadState* __tstate = wxPyBeginAllowThreads();
20778 result = (int)((wxDateSpan const *)arg1)->GetYears();
20779
20780 wxPyEndAllowThreads(__tstate);
20781 if (PyErr_Occurred()) SWIG_fail;
20782 }
20783 resultobj = PyInt_FromLong((long)result);
20784 return resultobj;
20785 fail:
20786 return NULL;
20787}
20788
20789
20790static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
20791 PyObject *resultobj;
20792 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20793 int result;
20794 PyObject * obj0 = 0 ;
20795 char *kwnames[] = {
20796 (char *) "self", NULL
20797 };
20798
20799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
20800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20801 {
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 result = (int)((wxDateSpan const *)arg1)->GetMonths();
20804
20805 wxPyEndAllowThreads(__tstate);
20806 if (PyErr_Occurred()) SWIG_fail;
20807 }
20808 resultobj = PyInt_FromLong((long)result);
20809 return resultobj;
20810 fail:
20811 return NULL;
20812}
20813
20814
20815static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
20816 PyObject *resultobj;
20817 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20818 int result;
20819 PyObject * obj0 = 0 ;
20820 char *kwnames[] = {
20821 (char *) "self", NULL
20822 };
20823
20824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
20825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20826 {
20827 PyThreadState* __tstate = wxPyBeginAllowThreads();
20828 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
20829
20830 wxPyEndAllowThreads(__tstate);
20831 if (PyErr_Occurred()) SWIG_fail;
20832 }
20833 resultobj = PyInt_FromLong((long)result);
20834 return resultobj;
20835 fail:
20836 return NULL;
20837}
20838
20839
20840static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
20841 PyObject *resultobj;
20842 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20843 int result;
20844 PyObject * obj0 = 0 ;
20845 char *kwnames[] = {
20846 (char *) "self", NULL
20847 };
20848
20849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
20850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20851 {
20852 PyThreadState* __tstate = wxPyBeginAllowThreads();
20853 result = (int)((wxDateSpan const *)arg1)->GetDays();
20854
20855 wxPyEndAllowThreads(__tstate);
20856 if (PyErr_Occurred()) SWIG_fail;
20857 }
20858 resultobj = PyInt_FromLong((long)result);
20859 return resultobj;
20860 fail:
20861 return NULL;
20862}
20863
20864
20865static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
20866 PyObject *resultobj;
20867 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20868 int result;
20869 PyObject * obj0 = 0 ;
20870 char *kwnames[] = {
20871 (char *) "self", NULL
20872 };
20873
20874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
20875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
20879
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = PyInt_FromLong((long)result);
20884 return resultobj;
20885 fail:
20886 return NULL;
20887}
20888
20889
20890static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
20891 PyObject *resultobj;
20892 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20893 wxDateSpan *arg2 = 0 ;
20894 wxDateSpan *result;
20895 PyObject * obj0 = 0 ;
20896 PyObject * obj1 = 0 ;
20897 char *kwnames[] = {
20898 (char *) "self",(char *) "other", NULL
20899 };
20900
20901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
20902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20903 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20904 if (arg2 == NULL) {
20905 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20906 }
20907 {
20908 PyThreadState* __tstate = wxPyBeginAllowThreads();
20909 {
20910 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20911 result = (wxDateSpan *) &_result_ref;
20912 }
20913
20914 wxPyEndAllowThreads(__tstate);
20915 if (PyErr_Occurred()) SWIG_fail;
20916 }
20917 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20918 return resultobj;
20919 fail:
20920 return NULL;
20921}
20922
20923
20924static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20925 PyObject *resultobj;
20926 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20927 wxDateSpan *arg2 = 0 ;
20928 wxDateSpan *result;
20929 PyObject * obj0 = 0 ;
20930 PyObject * obj1 = 0 ;
20931 char *kwnames[] = {
20932 (char *) "self",(char *) "other", NULL
20933 };
20934
20935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
20936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20937 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20938 if (arg2 == NULL) {
20939 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20940 }
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 {
20944 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20945 result = (wxDateSpan *) &_result_ref;
20946 }
20947
20948 wxPyEndAllowThreads(__tstate);
20949 if (PyErr_Occurred()) SWIG_fail;
20950 }
20951 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20952 return resultobj;
20953 fail:
20954 return NULL;
20955}
20956
20957
20958static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
20959 PyObject *resultobj;
20960 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20961 wxDateSpan *result;
20962 PyObject * obj0 = 0 ;
20963 char *kwnames[] = {
20964 (char *) "self", NULL
20965 };
20966
20967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
20968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20969 {
20970 PyThreadState* __tstate = wxPyBeginAllowThreads();
20971 {
20972 wxDateSpan &_result_ref = (arg1)->Neg();
20973 result = (wxDateSpan *) &_result_ref;
20974 }
20975
20976 wxPyEndAllowThreads(__tstate);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 }
20979 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20980 return resultobj;
20981 fail:
20982 return NULL;
20983}
20984
20985
20986static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
20987 PyObject *resultobj;
20988 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20989 int arg2 ;
20990 wxDateSpan *result;
20991 PyObject * obj0 = 0 ;
20992 char *kwnames[] = {
20993 (char *) "self",(char *) "factor", NULL
20994 };
20995
20996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_Multiply",kwnames,&obj0,&arg2)) goto fail;
20997 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20998 {
20999 PyThreadState* __tstate = wxPyBeginAllowThreads();
21000 {
21001 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
21002 result = (wxDateSpan *) &_result_ref;
21003 }
21004
21005 wxPyEndAllowThreads(__tstate);
21006 if (PyErr_Occurred()) SWIG_fail;
21007 }
21008 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21009 return resultobj;
21010 fail:
21011 return NULL;
21012}
21013
21014
21015static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21016 PyObject *resultobj;
21017 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21018 wxDateSpan *arg2 = 0 ;
21019 wxDateSpan *result;
21020 PyObject * obj0 = 0 ;
21021 PyObject * obj1 = 0 ;
21022 char *kwnames[] = {
21023 (char *) "self",(char *) "other", NULL
21024 };
21025
21026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21027 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21028 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21029 if (arg2 == NULL) {
21030 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21031 }
21032 {
21033 PyThreadState* __tstate = wxPyBeginAllowThreads();
21034 {
21035 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
21036 result = (wxDateSpan *) &_result_ref;
21037 }
21038
21039 wxPyEndAllowThreads(__tstate);
21040 if (PyErr_Occurred()) SWIG_fail;
21041 }
21042 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21043 return resultobj;
21044 fail:
21045 return NULL;
21046}
21047
21048
21049static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21050 PyObject *resultobj;
21051 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21052 wxDateSpan *arg2 = 0 ;
21053 wxDateSpan *result;
21054 PyObject * obj0 = 0 ;
21055 PyObject * obj1 = 0 ;
21056 char *kwnames[] = {
21057 (char *) "self",(char *) "other", NULL
21058 };
21059
21060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21062 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21063 if (arg2 == NULL) {
21064 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21065 }
21066 {
21067 PyThreadState* __tstate = wxPyBeginAllowThreads();
21068 {
21069 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
21070 result = (wxDateSpan *) &_result_ref;
21071 }
21072
21073 wxPyEndAllowThreads(__tstate);
21074 if (PyErr_Occurred()) SWIG_fail;
21075 }
21076 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21077 return resultobj;
21078 fail:
21079 return NULL;
21080}
21081
21082
21083static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21084 PyObject *resultobj;
21085 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21086 wxDateSpan *result;
21087 PyObject * obj0 = 0 ;
21088 char *kwnames[] = {
21089 (char *) "self", NULL
21090 };
21091
21092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
21093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21094 {
21095 PyThreadState* __tstate = wxPyBeginAllowThreads();
21096 {
21097 wxDateSpan &_result_ref = (arg1)->operator -();
21098 result = (wxDateSpan *) &_result_ref;
21099 }
21100
21101 wxPyEndAllowThreads(__tstate);
21102 if (PyErr_Occurred()) SWIG_fail;
21103 }
21104 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21105 return resultobj;
21106 fail:
21107 return NULL;
21108}
21109
21110
21111static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21112 PyObject *resultobj;
21113 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21114 int arg2 ;
21115 wxDateSpan *result;
21116 PyObject * obj0 = 0 ;
21117 char *kwnames[] = {
21118 (char *) "self",(char *) "factor", NULL
21119 };
21120
21121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___imul__",kwnames,&obj0,&arg2)) goto fail;
21122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21123 {
21124 PyThreadState* __tstate = wxPyBeginAllowThreads();
21125 {
21126 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
21127 result = (wxDateSpan *) &_result_ref;
21128 }
21129
21130 wxPyEndAllowThreads(__tstate);
21131 if (PyErr_Occurred()) SWIG_fail;
21132 }
21133 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21134 return resultobj;
21135 fail:
21136 return NULL;
21137}
21138
21139
21140static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21141 PyObject *resultobj;
21142 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21143 wxDateSpan *arg2 = 0 ;
21144 wxDateSpan result;
21145 PyObject * obj0 = 0 ;
21146 PyObject * obj1 = 0 ;
21147 char *kwnames[] = {
21148 (char *) "self",(char *) "other", NULL
21149 };
21150
21151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21153 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21154 if (arg2 == NULL) {
21155 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21156 }
21157 {
21158 PyThreadState* __tstate = wxPyBeginAllowThreads();
21159 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
21160
21161 wxPyEndAllowThreads(__tstate);
21162 if (PyErr_Occurred()) SWIG_fail;
21163 }
21164 {
21165 wxDateSpan * resultptr;
21166 resultptr = new wxDateSpan((wxDateSpan &) result);
21167 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
21168 }
21169 return resultobj;
21170 fail:
21171 return NULL;
21172}
21173
21174
21175static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21176 PyObject *resultobj;
21177 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21178 wxDateSpan *arg2 = 0 ;
21179 wxDateSpan result;
21180 PyObject * obj0 = 0 ;
21181 PyObject * obj1 = 0 ;
21182 char *kwnames[] = {
21183 (char *) "self",(char *) "other", NULL
21184 };
21185
21186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21188 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21189 if (arg2 == NULL) {
21190 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21191 }
21192 {
21193 PyThreadState* __tstate = wxPyBeginAllowThreads();
21194 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
21195
21196 wxPyEndAllowThreads(__tstate);
21197 if (PyErr_Occurred()) SWIG_fail;
21198 }
21199 {
21200 wxDateSpan * resultptr;
21201 resultptr = new wxDateSpan((wxDateSpan &) result);
21202 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
21203 }
21204 return resultobj;
21205 fail:
21206 return NULL;
21207}
21208
21209
21210static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21211 PyObject *resultobj;
21212 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21213 int arg2 ;
21214 wxDateSpan result;
21215 PyObject * obj0 = 0 ;
21216 char *kwnames[] = {
21217 (char *) "self",(char *) "n", NULL
21218 };
21219
21220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___mul__",kwnames,&obj0,&arg2)) goto fail;
21221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21222 {
21223 PyThreadState* __tstate = wxPyBeginAllowThreads();
21224 result = wxDateSpan___mul__(arg1,arg2);
21225
21226 wxPyEndAllowThreads(__tstate);
21227 if (PyErr_Occurred()) SWIG_fail;
21228 }
21229 {
21230 wxDateSpan * resultptr;
21231 resultptr = new wxDateSpan((wxDateSpan &) result);
21232 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
21233 }
21234 return resultobj;
21235 fail:
21236 return NULL;
21237}
21238
21239
21240static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21241 PyObject *resultobj;
21242 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21243 int arg2 ;
21244 wxDateSpan result;
21245 PyObject * obj0 = 0 ;
21246 char *kwnames[] = {
21247 (char *) "self",(char *) "n", NULL
21248 };
21249
21250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___rmul__",kwnames,&obj0,&arg2)) goto fail;
21251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21252 {
21253 PyThreadState* __tstate = wxPyBeginAllowThreads();
21254 result = wxDateSpan___rmul__(arg1,arg2);
21255
21256 wxPyEndAllowThreads(__tstate);
21257 if (PyErr_Occurred()) SWIG_fail;
21258 }
21259 {
21260 wxDateSpan * resultptr;
21261 resultptr = new wxDateSpan((wxDateSpan &) result);
21262 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
21263 }
21264 return resultobj;
21265 fail:
21266 return NULL;
21267}
21268
21269
21270static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
21271 PyObject *resultobj;
21272 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21273 wxDateSpan *arg2 = 0 ;
21274 bool result;
21275 PyObject * obj0 = 0 ;
21276 PyObject * obj1 = 0 ;
21277 char *kwnames[] = {
21278 (char *) "self",(char *) "other", NULL
21279 };
21280
21281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
21282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21283 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21284 if (arg2 == NULL) {
21285 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21286 }
21287 {
21288 PyThreadState* __tstate = wxPyBeginAllowThreads();
21289 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2);
21290
21291 wxPyEndAllowThreads(__tstate);
21292 if (PyErr_Occurred()) SWIG_fail;
21293 }
21294 resultobj = PyInt_FromLong((long)result);
21295 return resultobj;
21296 fail:
21297 return NULL;
21298}
21299
21300
21301static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
21302 PyObject *resultobj;
21303 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21304 wxDateSpan *arg2 = 0 ;
21305 bool result;
21306 PyObject * obj0 = 0 ;
21307 PyObject * obj1 = 0 ;
21308 char *kwnames[] = {
21309 (char *) "self",(char *) "other", NULL
21310 };
21311
21312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
21313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21314 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21315 if (arg2 == NULL) {
21316 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21317 }
21318 {
21319 PyThreadState* __tstate = wxPyBeginAllowThreads();
21320 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2);
21321
21322 wxPyEndAllowThreads(__tstate);
21323 if (PyErr_Occurred()) SWIG_fail;
21324 }
21325 resultobj = PyInt_FromLong((long)result);
21326 return resultobj;
21327 fail:
21328 return NULL;
21329}
21330
21331
21332static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
21333 PyObject *obj;
21334 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21335 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
21336 Py_INCREF(obj);
21337 return Py_BuildValue((char *)"");
21338}
21339static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21340 PyObject *resultobj;
21341 long result;
21342 char *kwnames[] = {
21343 NULL
21344 };
21345
21346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
21347 {
21348 PyThreadState* __tstate = wxPyBeginAllowThreads();
21349 result = (long)wxGetLocalTime();
21350
21351 wxPyEndAllowThreads(__tstate);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
21354 resultobj = PyInt_FromLong((long)result);
21355 return resultobj;
21356 fail:
21357 return NULL;
21358}
21359
21360
21361static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21362 PyObject *resultobj;
21363 long result;
21364 char *kwnames[] = {
21365 NULL
21366 };
21367
21368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 result = (long)wxGetUTCTime();
21372
21373 wxPyEndAllowThreads(__tstate);
21374 if (PyErr_Occurred()) SWIG_fail;
21375 }
21376 resultobj = PyInt_FromLong((long)result);
21377 return resultobj;
21378 fail:
21379 return NULL;
21380}
21381
21382
21383static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21384 PyObject *resultobj;
21385 long result;
21386 char *kwnames[] = {
21387 NULL
21388 };
21389
21390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
21391 {
21392 PyThreadState* __tstate = wxPyBeginAllowThreads();
21393 result = (long)wxGetCurrentTime();
21394
21395 wxPyEndAllowThreads(__tstate);
21396 if (PyErr_Occurred()) SWIG_fail;
21397 }
21398 resultobj = PyInt_FromLong((long)result);
21399 return resultobj;
21400 fail:
21401 return NULL;
21402}
21403
21404
21405static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
21406 PyObject *resultobj;
21407 wxLongLong result;
21408 char *kwnames[] = {
21409 NULL
21410 };
21411
21412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
21413 {
21414 PyThreadState* __tstate = wxPyBeginAllowThreads();
21415 result = wxGetLocalTimeMillis();
21416
21417 wxPyEndAllowThreads(__tstate);
21418 if (PyErr_Occurred()) SWIG_fail;
21419 }
21420 {
21421 PyObject *hi, *lo, *shifter, *shifted;
21422 hi = PyLong_FromLong( (&result)->GetHi() );
21423 lo = PyLong_FromLong( (&result)->GetLo() );
21424 shifter = PyLong_FromLong(32);
21425 shifted = PyNumber_Lshift(hi, shifter);
21426 resultobj = PyNumber_Or(shifted, lo);
21427 Py_DECREF(hi);
21428 Py_DECREF(lo);
21429 Py_DECREF(shifter);
21430 Py_DECREF(shifted);
21431 }
21432 return resultobj;
21433 fail:
21434 return NULL;
21435}
21436
21437
21438static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21439 PyObject *resultobj;
21440 int arg1 ;
21441 wxDataFormat *result;
21442 char *kwnames[] = {
21443 (char *) "type", NULL
21444 };
21445
21446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_DataFormat",kwnames,&arg1)) goto fail;
21447 {
21448 PyThreadState* __tstate = wxPyBeginAllowThreads();
21449 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
21450
21451 wxPyEndAllowThreads(__tstate);
21452 if (PyErr_Occurred()) SWIG_fail;
21453 }
21454 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1);
21455 return resultobj;
21456 fail:
21457 return NULL;
21458}
21459
21460
21461static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21462 PyObject *resultobj;
21463 wxString *arg1 = 0 ;
21464 wxDataFormat *result;
e811c8ce 21465 bool temp1 = False ;
d14a1e28
RD
21466 PyObject * obj0 = 0 ;
21467 char *kwnames[] = {
21468 (char *) "format", NULL
21469 };
21470
21471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
21472 {
21473 arg1 = wxString_in_helper(obj0);
21474 if (arg1 == NULL) SWIG_fail;
e811c8ce 21475 temp1 = True;
d14a1e28
RD
21476 }
21477 {
21478 PyThreadState* __tstate = wxPyBeginAllowThreads();
21479 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
21480
21481 wxPyEndAllowThreads(__tstate);
21482 if (PyErr_Occurred()) SWIG_fail;
21483 }
21484 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1);
21485 {
21486 if (temp1)
21487 delete arg1;
21488 }
21489 return resultobj;
21490 fail:
21491 {
21492 if (temp1)
21493 delete arg1;
21494 }
21495 return NULL;
21496}
21497
21498
21499static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21500 PyObject *resultobj;
21501 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21502 PyObject * obj0 = 0 ;
21503 char *kwnames[] = {
21504 (char *) "self", NULL
21505 };
21506
21507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
21508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21509 {
21510 PyThreadState* __tstate = wxPyBeginAllowThreads();
21511 delete arg1;
21512
21513 wxPyEndAllowThreads(__tstate);
21514 if (PyErr_Occurred()) SWIG_fail;
21515 }
21516 Py_INCREF(Py_None); resultobj = Py_None;
21517 return resultobj;
21518 fail:
21519 return NULL;
21520}
21521
21522
21523static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
21524 PyObject *resultobj;
21525 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21526 int arg2 ;
21527 bool result;
21528 PyObject * obj0 = 0 ;
21529
21530 if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___eq__",&obj0,&arg2)) goto fail;
21531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21532 {
21533 PyThreadState* __tstate = wxPyBeginAllowThreads();
21534 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
21535
21536 wxPyEndAllowThreads(__tstate);
21537 if (PyErr_Occurred()) SWIG_fail;
21538 }
21539 resultobj = PyInt_FromLong((long)result);
21540 return resultobj;
21541 fail:
21542 return NULL;
21543}
21544
21545
21546static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
21547 PyObject *resultobj;
21548 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21549 int arg2 ;
21550 bool result;
21551 PyObject * obj0 = 0 ;
21552
21553 if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___ne__",&obj0,&arg2)) goto fail;
21554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21555 {
21556 PyThreadState* __tstate = wxPyBeginAllowThreads();
21557 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
21558
21559 wxPyEndAllowThreads(__tstate);
21560 if (PyErr_Occurred()) SWIG_fail;
21561 }
21562 resultobj = PyInt_FromLong((long)result);
21563 return resultobj;
21564 fail:
21565 return NULL;
21566}
21567
21568
21569static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
21570 PyObject *resultobj;
21571 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21572 wxDataFormat *arg2 = 0 ;
21573 bool result;
21574 PyObject * obj0 = 0 ;
21575 PyObject * obj1 = 0 ;
21576
21577 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
21578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21579 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21580 if (arg2 == NULL) {
21581 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21582 }
21583 {
21584 PyThreadState* __tstate = wxPyBeginAllowThreads();
21585 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
21586
21587 wxPyEndAllowThreads(__tstate);
21588 if (PyErr_Occurred()) SWIG_fail;
21589 }
21590 resultobj = PyInt_FromLong((long)result);
21591 return resultobj;
21592 fail:
21593 return NULL;
21594}
21595
21596
21597static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
21598 int argc;
21599 PyObject *argv[3];
21600 int ii;
21601
21602 argc = PyObject_Length(args);
21603 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
21604 argv[ii] = PyTuple_GetItem(args,ii);
21605 }
21606 if (argc == 2) {
21607 int _v;
21608 {
21609 void *ptr;
21610 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21611 _v = 0;
21612 PyErr_Clear();
21613 } else {
21614 _v = 1;
21615 }
21616 }
21617 if (_v) {
21618 {
21619 void *ptr;
21620 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21621 _v = 0;
21622 PyErr_Clear();
21623 } else {
21624 _v = 1;
21625 }
21626 }
21627 if (_v) {
21628 return _wrap_DataFormat___eq____SWIG_1(self,args);
21629 }
21630 }
21631 }
21632 if (argc == 2) {
21633 int _v;
21634 {
21635 void *ptr;
21636 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21637 _v = 0;
21638 PyErr_Clear();
21639 } else {
21640 _v = 1;
21641 }
21642 }
21643 if (_v) {
21644 {
21645 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
21646 }
21647 if (_v) {
21648 return _wrap_DataFormat___eq____SWIG_0(self,args);
21649 }
21650 }
21651 }
21652
21653 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
21654 return NULL;
21655}
21656
21657
21658static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
21659 PyObject *resultobj;
21660 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21661 wxDataFormat *arg2 = 0 ;
21662 bool result;
21663 PyObject * obj0 = 0 ;
21664 PyObject * obj1 = 0 ;
21665
21666 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
21667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21668 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21669 if (arg2 == NULL) {
21670 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21671 }
21672 {
21673 PyThreadState* __tstate = wxPyBeginAllowThreads();
21674 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
21675
21676 wxPyEndAllowThreads(__tstate);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 resultobj = PyInt_FromLong((long)result);
21680 return resultobj;
21681 fail:
21682 return NULL;
21683}
21684
21685
21686static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
21687 int argc;
21688 PyObject *argv[3];
21689 int ii;
21690
21691 argc = PyObject_Length(args);
21692 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
21693 argv[ii] = PyTuple_GetItem(args,ii);
21694 }
21695 if (argc == 2) {
21696 int _v;
21697 {
21698 void *ptr;
21699 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21700 _v = 0;
21701 PyErr_Clear();
21702 } else {
21703 _v = 1;
21704 }
21705 }
21706 if (_v) {
21707 {
21708 void *ptr;
21709 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21710 _v = 0;
21711 PyErr_Clear();
21712 } else {
21713 _v = 1;
21714 }
21715 }
21716 if (_v) {
21717 return _wrap_DataFormat___ne____SWIG_1(self,args);
21718 }
21719 }
21720 }
21721 if (argc == 2) {
21722 int _v;
21723 {
21724 void *ptr;
21725 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21726 _v = 0;
21727 PyErr_Clear();
21728 } else {
21729 _v = 1;
21730 }
21731 }
21732 if (_v) {
21733 {
21734 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
21735 }
21736 if (_v) {
21737 return _wrap_DataFormat___ne____SWIG_0(self,args);
21738 }
21739 }
21740 }
21741
21742 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
21743 return NULL;
21744}
21745
21746
21747static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
21748 PyObject *resultobj;
21749 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21750 int arg2 ;
21751 PyObject * obj0 = 0 ;
21752 char *kwnames[] = {
21753 (char *) "self",(char *) "format", NULL
21754 };
21755
21756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DataFormat_SetType",kwnames,&obj0,&arg2)) goto fail;
21757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21758 {
21759 PyThreadState* __tstate = wxPyBeginAllowThreads();
21760 (arg1)->SetType((wxDataFormatId )arg2);
21761
21762 wxPyEndAllowThreads(__tstate);
21763 if (PyErr_Occurred()) SWIG_fail;
21764 }
21765 Py_INCREF(Py_None); resultobj = Py_None;
21766 return resultobj;
21767 fail:
21768 return NULL;
21769}
21770
21771
21772static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
21773 PyObject *resultobj;
21774 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21775 int result;
21776 PyObject * obj0 = 0 ;
21777 char *kwnames[] = {
21778 (char *) "self", NULL
21779 };
21780
21781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
21782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 result = (int)((wxDataFormat const *)arg1)->GetType();
21786
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
21790 resultobj = PyInt_FromLong((long)result);
21791 return resultobj;
21792 fail:
21793 return NULL;
21794}
21795
21796
21797static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21798 PyObject *resultobj;
21799 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21800 wxString result;
21801 PyObject * obj0 = 0 ;
21802 char *kwnames[] = {
21803 (char *) "self", NULL
21804 };
21805
21806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
21807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21808 {
21809 PyThreadState* __tstate = wxPyBeginAllowThreads();
21810 result = ((wxDataFormat const *)arg1)->GetId();
21811
21812 wxPyEndAllowThreads(__tstate);
21813 if (PyErr_Occurred()) SWIG_fail;
21814 }
21815 {
21816#if wxUSE_UNICODE
21817 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21818#else
21819 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21820#endif
21821 }
21822 return resultobj;
21823 fail:
21824 return NULL;
21825}
21826
21827
21828static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21829 PyObject *resultobj;
21830 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21831 wxString *arg2 = 0 ;
e811c8ce 21832 bool temp2 = False ;
d14a1e28
RD
21833 PyObject * obj0 = 0 ;
21834 PyObject * obj1 = 0 ;
21835 char *kwnames[] = {
21836 (char *) "self",(char *) "format", NULL
21837 };
21838
21839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
21840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21841 {
21842 arg2 = wxString_in_helper(obj1);
21843 if (arg2 == NULL) SWIG_fail;
e811c8ce 21844 temp2 = True;
d14a1e28
RD
21845 }
21846 {
21847 PyThreadState* __tstate = wxPyBeginAllowThreads();
21848 (arg1)->SetId((wxString const &)*arg2);
21849
21850 wxPyEndAllowThreads(__tstate);
21851 if (PyErr_Occurred()) SWIG_fail;
21852 }
21853 Py_INCREF(Py_None); resultobj = Py_None;
21854 {
21855 if (temp2)
21856 delete arg2;
21857 }
21858 return resultobj;
21859 fail:
21860 {
21861 if (temp2)
21862 delete arg2;
21863 }
21864 return NULL;
21865}
21866
21867
21868static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
21869 PyObject *obj;
21870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21871 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
21872 Py_INCREF(obj);
21873 return Py_BuildValue((char *)"");
21874}
21875static int _wrap_FormatInvalid_set(PyObject *_val) {
21876 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
21877 return 1;
21878}
21879
21880
21881static PyObject *_wrap_FormatInvalid_get() {
21882 PyObject *pyobj;
21883
21884 pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0);
21885 return pyobj;
21886}
21887
21888
21889static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
21890 PyObject *resultobj;
21891 wxDataObject *arg1 = (wxDataObject *) 0 ;
21892 PyObject * obj0 = 0 ;
21893 char *kwnames[] = {
21894 (char *) "self", NULL
21895 };
21896
21897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
21898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 delete arg1;
21902
21903 wxPyEndAllowThreads(__tstate);
21904 if (PyErr_Occurred()) SWIG_fail;
21905 }
21906 Py_INCREF(Py_None); resultobj = Py_None;
21907 return resultobj;
21908 fail:
21909 return NULL;
21910}
21911
21912
21913static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21914 PyObject *resultobj;
21915 wxDataObject *arg1 = (wxDataObject *) 0 ;
21916 int arg2 = (int) wxDataObject::Get ;
21917 SwigValueWrapper< wxDataFormat > result;
21918 PyObject * obj0 = 0 ;
21919 char *kwnames[] = {
21920 (char *) "self",(char *) "dir", NULL
21921 };
21922
21923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetPreferredFormat",kwnames,&obj0,&arg2)) goto fail;
21924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21925 {
21926 PyThreadState* __tstate = wxPyBeginAllowThreads();
21927 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
21928
21929 wxPyEndAllowThreads(__tstate);
21930 if (PyErr_Occurred()) SWIG_fail;
21931 }
21932 {
21933 wxDataFormat * resultptr;
21934 resultptr = new wxDataFormat((wxDataFormat &) result);
21935 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1);
21936 }
21937 return resultobj;
21938 fail:
21939 return NULL;
21940}
21941
21942
21943static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21944 PyObject *resultobj;
21945 wxDataObject *arg1 = (wxDataObject *) 0 ;
21946 int arg2 = (int) wxDataObject::Get ;
21947 size_t result;
21948 PyObject * obj0 = 0 ;
21949 char *kwnames[] = {
21950 (char *) "self",(char *) "dir", NULL
21951 };
21952
21953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetFormatCount",kwnames,&obj0,&arg2)) goto fail;
21954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21955 {
21956 PyThreadState* __tstate = wxPyBeginAllowThreads();
21957 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
21958
21959 wxPyEndAllowThreads(__tstate);
21960 if (PyErr_Occurred()) SWIG_fail;
21961 }
21962 resultobj = PyInt_FromLong((long)result);
21963 return resultobj;
21964 fail:
21965 return NULL;
21966}
21967
21968
21969static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
21970 PyObject *resultobj;
21971 wxDataObject *arg1 = (wxDataObject *) 0 ;
21972 wxDataFormat *arg2 = 0 ;
21973 int arg3 = (int) wxDataObject::Get ;
21974 bool result;
21975 PyObject * obj0 = 0 ;
21976 PyObject * obj1 = 0 ;
21977 char *kwnames[] = {
21978 (char *) "self",(char *) "format",(char *) "dir", NULL
21979 };
21980
21981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_IsSupported",kwnames,&obj0,&obj1,&arg3)) goto fail;
21982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21983 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21984 if (arg2 == NULL) {
21985 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21986 }
21987 {
21988 PyThreadState* __tstate = wxPyBeginAllowThreads();
21989 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
21990
21991 wxPyEndAllowThreads(__tstate);
21992 if (PyErr_Occurred()) SWIG_fail;
21993 }
21994 resultobj = PyInt_FromLong((long)result);
21995 return resultobj;
21996 fail:
21997 return NULL;
21998}
21999
22000
22001static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22002 PyObject *resultobj;
22003 wxDataObject *arg1 = (wxDataObject *) 0 ;
22004 wxDataFormat *arg2 = 0 ;
22005 size_t result;
22006 PyObject * obj0 = 0 ;
22007 PyObject * obj1 = 0 ;
22008 char *kwnames[] = {
22009 (char *) "self",(char *) "format", NULL
22010 };
22011
22012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
22013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22014 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22015 if (arg2 == NULL) {
22016 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22017 }
22018 {
22019 PyThreadState* __tstate = wxPyBeginAllowThreads();
22020 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
22021
22022 wxPyEndAllowThreads(__tstate);
22023 if (PyErr_Occurred()) SWIG_fail;
22024 }
22025 resultobj = PyInt_FromLong((long)result);
22026 return resultobj;
22027 fail:
22028 return NULL;
22029}
22030
22031
22032static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
22033 PyObject *resultobj;
22034 wxDataObject *arg1 = (wxDataObject *) 0 ;
22035 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
22036 int arg3 = (int) wxDataObject::Get ;
22037 PyObject * obj0 = 0 ;
22038 PyObject * obj1 = 0 ;
22039 char *kwnames[] = {
22040 (char *) "self",(char *) "formats",(char *) "dir", NULL
22041 };
22042
22043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&arg3)) goto fail;
22044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22045 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22046 {
22047 PyThreadState* __tstate = wxPyBeginAllowThreads();
22048 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
22049
22050 wxPyEndAllowThreads(__tstate);
22051 if (PyErr_Occurred()) SWIG_fail;
22052 }
22053 Py_INCREF(Py_None); resultobj = Py_None;
22054 return resultobj;
22055 fail:
22056 return NULL;
22057}
22058
22059
22060static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
22061 PyObject *resultobj;
22062 wxDataObject *arg1 = (wxDataObject *) 0 ;
22063 wxDataFormat *arg2 = 0 ;
22064 void *arg3 = (void *) 0 ;
22065 bool result;
22066 PyObject * obj0 = 0 ;
22067 PyObject * obj1 = 0 ;
22068 PyObject * obj2 = 0 ;
22069 char *kwnames[] = {
22070 (char *) "self",(char *) "format",(char *) "buf", NULL
22071 };
22072
22073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
22074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22075 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22076 if (arg2 == NULL) {
22077 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22078 }
22079 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22080 {
22081 PyThreadState* __tstate = wxPyBeginAllowThreads();
22082 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
22083
22084 wxPyEndAllowThreads(__tstate);
22085 if (PyErr_Occurred()) SWIG_fail;
22086 }
22087 resultobj = PyInt_FromLong((long)result);
22088 return resultobj;
22089 fail:
22090 return NULL;
22091}
22092
22093
22094static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
22095 PyObject *resultobj;
22096 wxDataObject *arg1 = (wxDataObject *) 0 ;
22097 wxDataFormat *arg2 = 0 ;
22098 size_t arg3 ;
22099 void *arg4 = (void *) 0 ;
22100 bool result;
22101 PyObject * obj0 = 0 ;
22102 PyObject * obj1 = 0 ;
22103 PyObject * obj2 = 0 ;
22104 PyObject * obj3 = 0 ;
22105 char *kwnames[] = {
22106 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
22107 };
22108
22109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22111 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22112 if (arg2 == NULL) {
22113 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22114 }
22115 arg3 = (size_t) PyInt_AsLong(obj2);
22116 if (PyErr_Occurred()) SWIG_fail;
22117 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22118 {
22119 PyThreadState* __tstate = wxPyBeginAllowThreads();
22120 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
22121
22122 wxPyEndAllowThreads(__tstate);
22123 if (PyErr_Occurred()) SWIG_fail;
22124 }
22125 resultobj = PyInt_FromLong((long)result);
22126 return resultobj;
22127 fail:
22128 return NULL;
22129}
22130
22131
22132static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
22133 PyObject *obj;
22134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22135 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
22136 Py_INCREF(obj);
22137 return Py_BuildValue((char *)"");
22138}
22139static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
22140 PyObject *resultobj;
22141 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
22142 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
22143 wxDataObjectSimple *result;
22144 PyObject * obj0 = 0 ;
22145 char *kwnames[] = {
22146 (char *) "format", NULL
22147 };
22148
22149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
22150 if (obj0) {
22151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22152 if (arg1 == NULL) {
22153 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22154 }
22155 }
22156 {
22157 PyThreadState* __tstate = wxPyBeginAllowThreads();
22158 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
22159
22160 wxPyEndAllowThreads(__tstate);
22161 if (PyErr_Occurred()) SWIG_fail;
22162 }
22163 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1);
22164 return resultobj;
22165 fail:
22166 return NULL;
22167}
22168
22169
22170static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj;
22172 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
22173 wxDataFormat *result;
22174 PyObject * obj0 = 0 ;
22175 char *kwnames[] = {
22176 (char *) "self", NULL
22177 };
22178
22179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
22180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22181 {
22182 PyThreadState* __tstate = wxPyBeginAllowThreads();
22183 {
22184 wxDataFormat const &_result_ref = (arg1)->GetFormat();
22185 result = (wxDataFormat *) &_result_ref;
22186 }
22187
22188 wxPyEndAllowThreads(__tstate);
22189 if (PyErr_Occurred()) SWIG_fail;
22190 }
22191 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0);
22192 return resultobj;
22193 fail:
22194 return NULL;
22195}
22196
22197
22198static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
22199 PyObject *resultobj;
22200 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
22201 wxDataFormat *arg2 = 0 ;
22202 PyObject * obj0 = 0 ;
22203 PyObject * obj1 = 0 ;
22204 char *kwnames[] = {
22205 (char *) "self",(char *) "format", NULL
22206 };
22207
22208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
22209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22210 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22211 if (arg2 == NULL) {
22212 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22213 }
22214 {
22215 PyThreadState* __tstate = wxPyBeginAllowThreads();
22216 (arg1)->SetFormat((wxDataFormat const &)*arg2);
22217
22218 wxPyEndAllowThreads(__tstate);
22219 if (PyErr_Occurred()) SWIG_fail;
22220 }
22221 Py_INCREF(Py_None); resultobj = Py_None;
22222 return resultobj;
22223 fail:
22224 return NULL;
22225}
22226
22227
22228static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
22229 PyObject *obj;
22230 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22231 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
22232 Py_INCREF(obj);
22233 return Py_BuildValue((char *)"");
22234}
22235static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
22236 PyObject *resultobj;
22237 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
22238 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
22239 wxPyDataObjectSimple *result;
22240 PyObject * obj0 = 0 ;
22241 char *kwnames[] = {
22242 (char *) "format", NULL
22243 };
22244
22245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
22246 if (obj0) {
22247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22248 if (arg1 == NULL) {
22249 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22250 }
22251 }
22252 {
22253 PyThreadState* __tstate = wxPyBeginAllowThreads();
22254 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
22255
22256 wxPyEndAllowThreads(__tstate);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 }
22259 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1);
22260 return resultobj;
22261 fail:
22262 return NULL;
22263}
22264
22265
22266static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22267 PyObject *resultobj;
22268 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
22269 PyObject *arg2 = (PyObject *) 0 ;
22270 PyObject *arg3 = (PyObject *) 0 ;
22271 PyObject * obj0 = 0 ;
22272 PyObject * obj1 = 0 ;
22273 PyObject * obj2 = 0 ;
22274 char *kwnames[] = {
22275 (char *) "self",(char *) "self",(char *) "_class", NULL
22276 };
22277
22278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22280 arg2 = obj1;
22281 arg3 = obj2;
22282 {
22283 PyThreadState* __tstate = wxPyBeginAllowThreads();
22284 (arg1)->_setCallbackInfo(arg2,arg3);
22285
22286 wxPyEndAllowThreads(__tstate);
22287 if (PyErr_Occurred()) SWIG_fail;
22288 }
22289 Py_INCREF(Py_None); resultobj = Py_None;
22290 return resultobj;
22291 fail:
22292 return NULL;
22293}
22294
22295
22296static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
22297 PyObject *obj;
22298 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22299 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
22300 Py_INCREF(obj);
22301 return Py_BuildValue((char *)"");
22302}
22303static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
22304 PyObject *resultobj;
22305 wxDataObjectComposite *result;
22306 char *kwnames[] = {
22307 NULL
22308 };
22309
22310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 result = (wxDataObjectComposite *)new wxDataObjectComposite();
22314
22315 wxPyEndAllowThreads(__tstate);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1);
22319 return resultobj;
22320 fail:
22321 return NULL;
22322}
22323
22324
22325static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
22326 PyObject *resultobj;
22327 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
22328 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
e811c8ce 22329 int arg3 = (int) False ;
d14a1e28
RD
22330 PyObject * obj0 = 0 ;
22331 PyObject * obj1 = 0 ;
22332 char *kwnames[] = {
22333 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
22334 };
22335
22336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObjectComposite_Add",kwnames,&obj0,&obj1,&arg3)) goto fail;
22337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22338 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22339 {
22340 PyThreadState* __tstate = wxPyBeginAllowThreads();
22341 (arg1)->Add(arg2,arg3);
22342
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 Py_INCREF(Py_None); resultobj = Py_None;
22347 return resultobj;
22348 fail:
22349 return NULL;
22350}
22351
22352
22353static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
22354 PyObject *obj;
22355 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22356 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
22357 Py_INCREF(obj);
22358 return Py_BuildValue((char *)"");
22359}
22360static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22361 PyObject *resultobj;
22362 wxString const &arg1_defvalue = wxPyEmptyString ;
22363 wxString *arg1 = (wxString *) &arg1_defvalue ;
22364 wxTextDataObject *result;
e811c8ce 22365 bool temp1 = False ;
d14a1e28
RD
22366 PyObject * obj0 = 0 ;
22367 char *kwnames[] = {
22368 (char *) "text", NULL
22369 };
22370
22371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
22372 if (obj0) {
22373 {
22374 arg1 = wxString_in_helper(obj0);
22375 if (arg1 == NULL) SWIG_fail;
e811c8ce 22376 temp1 = True;
d14a1e28
RD
22377 }
22378 }
22379 {
22380 PyThreadState* __tstate = wxPyBeginAllowThreads();
22381 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
22382
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1);
22387 {
22388 if (temp1)
22389 delete arg1;
22390 }
22391 return resultobj;
22392 fail:
22393 {
22394 if (temp1)
22395 delete arg1;
22396 }
22397 return NULL;
22398}
22399
22400
22401static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
22402 PyObject *resultobj;
22403 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
22404 size_t result;
22405 PyObject * obj0 = 0 ;
22406 char *kwnames[] = {
22407 (char *) "self", NULL
22408 };
22409
22410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
22411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22412 {
22413 PyThreadState* __tstate = wxPyBeginAllowThreads();
22414 result = (size_t)(arg1)->GetTextLength();
22415
22416 wxPyEndAllowThreads(__tstate);
22417 if (PyErr_Occurred()) SWIG_fail;
22418 }
22419 resultobj = PyInt_FromLong((long)result);
22420 return resultobj;
22421 fail:
22422 return NULL;
22423}
22424
22425
22426static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
22427 PyObject *resultobj;
22428 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
22429 wxString result;
22430 PyObject * obj0 = 0 ;
22431 char *kwnames[] = {
22432 (char *) "self", NULL
22433 };
22434
22435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
22436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22437 {
22438 PyThreadState* __tstate = wxPyBeginAllowThreads();
22439 result = (arg1)->GetText();
22440
22441 wxPyEndAllowThreads(__tstate);
22442 if (PyErr_Occurred()) SWIG_fail;
22443 }
22444 {
22445#if wxUSE_UNICODE
22446 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22447#else
22448 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22449#endif
22450 }
22451 return resultobj;
22452 fail:
22453 return NULL;
22454}
22455
22456
22457static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
22458 PyObject *resultobj;
22459 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
22460 wxString *arg2 = 0 ;
e811c8ce 22461 bool temp2 = False ;
d14a1e28
RD
22462 PyObject * obj0 = 0 ;
22463 PyObject * obj1 = 0 ;
22464 char *kwnames[] = {
22465 (char *) "self",(char *) "text", NULL
22466 };
22467
22468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
22469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22470 {
22471 arg2 = wxString_in_helper(obj1);
22472 if (arg2 == NULL) SWIG_fail;
e811c8ce 22473 temp2 = True;
d14a1e28
RD
22474 }
22475 {
22476 PyThreadState* __tstate = wxPyBeginAllowThreads();
22477 (arg1)->SetText((wxString const &)*arg2);
22478
22479 wxPyEndAllowThreads(__tstate);
22480 if (PyErr_Occurred()) SWIG_fail;
22481 }
22482 Py_INCREF(Py_None); resultobj = Py_None;
22483 {
22484 if (temp2)
22485 delete arg2;
22486 }
22487 return resultobj;
22488 fail:
22489 {
22490 if (temp2)
22491 delete arg2;
22492 }
22493 return NULL;
22494}
22495
22496
22497static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
22498 PyObject *obj;
22499 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22500 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
22501 Py_INCREF(obj);
22502 return Py_BuildValue((char *)"");
22503}
22504static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22505 PyObject *resultobj;
22506 wxString const &arg1_defvalue = wxPyEmptyString ;
22507 wxString *arg1 = (wxString *) &arg1_defvalue ;
22508 wxPyTextDataObject *result;
e811c8ce 22509 bool temp1 = False ;
d14a1e28
RD
22510 PyObject * obj0 = 0 ;
22511 char *kwnames[] = {
22512 (char *) "text", NULL
22513 };
22514
22515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
22516 if (obj0) {
22517 {
22518 arg1 = wxString_in_helper(obj0);
22519 if (arg1 == NULL) SWIG_fail;
e811c8ce 22520 temp1 = True;
d14a1e28
RD
22521 }
22522 }
22523 {
22524 PyThreadState* __tstate = wxPyBeginAllowThreads();
22525 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
22526
22527 wxPyEndAllowThreads(__tstate);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 }
22530 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1);
22531 {
22532 if (temp1)
22533 delete arg1;
22534 }
22535 return resultobj;
22536 fail:
22537 {
22538 if (temp1)
22539 delete arg1;
22540 }
22541 return NULL;
22542}
22543
22544
22545static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22546 PyObject *resultobj;
22547 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
22548 PyObject *arg2 = (PyObject *) 0 ;
22549 PyObject *arg3 = (PyObject *) 0 ;
22550 PyObject * obj0 = 0 ;
22551 PyObject * obj1 = 0 ;
22552 PyObject * obj2 = 0 ;
22553 char *kwnames[] = {
22554 (char *) "self",(char *) "self",(char *) "_class", NULL
22555 };
22556
22557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22559 arg2 = obj1;
22560 arg3 = obj2;
22561 {
22562 PyThreadState* __tstate = wxPyBeginAllowThreads();
22563 (arg1)->_setCallbackInfo(arg2,arg3);
22564
22565 wxPyEndAllowThreads(__tstate);
22566 if (PyErr_Occurred()) SWIG_fail;
22567 }
22568 Py_INCREF(Py_None); resultobj = Py_None;
22569 return resultobj;
22570 fail:
22571 return NULL;
22572}
22573
22574
22575static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
22576 PyObject *obj;
22577 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22578 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
22579 Py_INCREF(obj);
22580 return Py_BuildValue((char *)"");
22581}
22582static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22583 PyObject *resultobj;
22584 wxBitmap const &arg1_defvalue = wxNullBitmap ;
22585 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
22586 wxBitmapDataObject *result;
22587 PyObject * obj0 = 0 ;
22588 char *kwnames[] = {
22589 (char *) "bitmap", NULL
22590 };
22591
22592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
22593 if (obj0) {
22594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22595 if (arg1 == NULL) {
22596 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22597 }
22598 }
22599 {
22600 PyThreadState* __tstate = wxPyBeginAllowThreads();
22601 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
22602
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1);
22607 return resultobj;
22608 fail:
22609 return NULL;
22610}
22611
22612
22613static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
22614 PyObject *resultobj;
22615 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
22616 wxBitmap result;
22617 PyObject * obj0 = 0 ;
22618 char *kwnames[] = {
22619 (char *) "self", NULL
22620 };
22621
22622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
22623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22624 {
22625 PyThreadState* __tstate = wxPyBeginAllowThreads();
22626 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
22627
22628 wxPyEndAllowThreads(__tstate);
22629 if (PyErr_Occurred()) SWIG_fail;
22630 }
22631 {
22632 wxBitmap * resultptr;
22633 resultptr = new wxBitmap((wxBitmap &) result);
22634 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
22635 }
22636 return resultobj;
22637 fail:
22638 return NULL;
22639}
22640
22641
22642static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
22643 PyObject *resultobj;
22644 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
22645 wxBitmap *arg2 = 0 ;
22646 PyObject * obj0 = 0 ;
22647 PyObject * obj1 = 0 ;
22648 char *kwnames[] = {
22649 (char *) "self",(char *) "bitmap", NULL
22650 };
22651
22652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
22653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22654 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22655 if (arg2 == NULL) {
22656 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22657 }
22658 {
22659 PyThreadState* __tstate = wxPyBeginAllowThreads();
22660 (arg1)->SetBitmap((wxBitmap const &)*arg2);
22661
22662 wxPyEndAllowThreads(__tstate);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 }
22665 Py_INCREF(Py_None); resultobj = Py_None;
22666 return resultobj;
22667 fail:
22668 return NULL;
22669}
22670
22671
22672static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
22673 PyObject *obj;
22674 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22675 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
22676 Py_INCREF(obj);
22677 return Py_BuildValue((char *)"");
22678}
22679static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22680 PyObject *resultobj;
22681 wxBitmap const &arg1_defvalue = wxNullBitmap ;
22682 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
22683 wxPyBitmapDataObject *result;
22684 PyObject * obj0 = 0 ;
22685 char *kwnames[] = {
22686 (char *) "bitmap", NULL
22687 };
22688
22689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
22690 if (obj0) {
22691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22692 if (arg1 == NULL) {
22693 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22694 }
22695 }
22696 {
22697 PyThreadState* __tstate = wxPyBeginAllowThreads();
22698 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
22699
22700 wxPyEndAllowThreads(__tstate);
22701 if (PyErr_Occurred()) SWIG_fail;
22702 }
22703 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1);
22704 return resultobj;
22705 fail:
22706 return NULL;
22707}
22708
22709
22710static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22711 PyObject *resultobj;
22712 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
22713 PyObject *arg2 = (PyObject *) 0 ;
22714 PyObject *arg3 = (PyObject *) 0 ;
22715 PyObject * obj0 = 0 ;
22716 PyObject * obj1 = 0 ;
22717 PyObject * obj2 = 0 ;
22718 char *kwnames[] = {
22719 (char *) "self",(char *) "self",(char *) "_class", NULL
22720 };
22721
22722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22724 arg2 = obj1;
22725 arg3 = obj2;
22726 {
22727 PyThreadState* __tstate = wxPyBeginAllowThreads();
22728 (arg1)->_setCallbackInfo(arg2,arg3);
22729
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 Py_INCREF(Py_None); resultobj = Py_None;
22734 return resultobj;
22735 fail:
22736 return NULL;
22737}
22738
22739
22740static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
22741 PyObject *obj;
22742 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22743 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
22744 Py_INCREF(obj);
22745 return Py_BuildValue((char *)"");
22746}
22747static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22748 PyObject *resultobj;
22749 wxFileDataObject *result;
22750 char *kwnames[] = {
22751 NULL
22752 };
22753
22754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 result = (wxFileDataObject *)new wxFileDataObject();
22758
22759 wxPyEndAllowThreads(__tstate);
22760 if (PyErr_Occurred()) SWIG_fail;
22761 }
22762 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1);
22763 return resultobj;
22764 fail:
22765 return NULL;
22766}
22767
22768
22769static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
22770 PyObject *resultobj;
22771 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
22772 wxArrayString *result;
22773 PyObject * obj0 = 0 ;
22774 char *kwnames[] = {
22775 (char *) "self", NULL
22776 };
22777
22778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
22779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22780 {
22781 PyThreadState* __tstate = wxPyBeginAllowThreads();
22782 {
22783 wxArrayString const &_result_ref = (arg1)->GetFilenames();
22784 result = (wxArrayString *) &_result_ref;
22785 }
22786
22787 wxPyEndAllowThreads(__tstate);
22788 if (PyErr_Occurred()) SWIG_fail;
22789 }
22790 {
22791 resultobj = wxArrayString2PyList_helper(*result);
22792 }
22793 return resultobj;
22794 fail:
22795 return NULL;
22796}
22797
22798
22799static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
22800 PyObject *obj;
22801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22802 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
22803 Py_INCREF(obj);
22804 return Py_BuildValue((char *)"");
22805}
22806static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22807 PyObject *resultobj;
22808 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
22809 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
22810 wxCustomDataObject *result;
22811 PyObject * obj0 = 0 ;
22812 char *kwnames[] = {
22813 (char *) "format", NULL
22814 };
22815
22816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
22817 if (obj0) {
22818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22819 if (arg1 == NULL) {
22820 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22821 }
22822 }
22823 {
22824 PyThreadState* __tstate = wxPyBeginAllowThreads();
22825 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
22826
22827 wxPyEndAllowThreads(__tstate);
22828 if (PyErr_Occurred()) SWIG_fail;
22829 }
22830 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1);
22831 return resultobj;
22832 fail:
22833 return NULL;
22834}
22835
22836
22837static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
22838 PyObject *resultobj;
22839 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
22840 PyObject *arg2 = (PyObject *) 0 ;
22841 PyObject * obj0 = 0 ;
22842 PyObject * obj1 = 0 ;
22843 char *kwnames[] = {
22844 (char *) "self",(char *) "data", NULL
22845 };
22846
22847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
22848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22849 arg2 = obj1;
22850 {
22851 PyThreadState* __tstate = wxPyBeginAllowThreads();
22852 wxCustomDataObject_TakeData(arg1,arg2);
22853
22854 wxPyEndAllowThreads(__tstate);
22855 if (PyErr_Occurred()) SWIG_fail;
22856 }
22857 Py_INCREF(Py_None); resultobj = Py_None;
22858 return resultobj;
22859 fail:
22860 return NULL;
22861}
22862
22863
22864static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
22865 PyObject *resultobj;
22866 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
22867 PyObject *arg2 = (PyObject *) 0 ;
22868 bool result;
22869 PyObject * obj0 = 0 ;
22870 PyObject * obj1 = 0 ;
22871 char *kwnames[] = {
22872 (char *) "self",(char *) "data", NULL
22873 };
22874
22875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
22876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22877 arg2 = obj1;
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
22881
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 resultobj = PyInt_FromLong((long)result);
22886 return resultobj;
22887 fail:
22888 return NULL;
22889}
22890
22891
22892static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj;
22894 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
22895 size_t result;
22896 PyObject * obj0 = 0 ;
22897 char *kwnames[] = {
22898 (char *) "self", NULL
22899 };
22900
22901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
22902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22903 {
22904 PyThreadState* __tstate = wxPyBeginAllowThreads();
22905 result = (size_t)(arg1)->GetSize();
22906
22907 wxPyEndAllowThreads(__tstate);
22908 if (PyErr_Occurred()) SWIG_fail;
22909 }
22910 resultobj = PyInt_FromLong((long)result);
22911 return resultobj;
22912 fail:
22913 return NULL;
22914}
22915
22916
22917static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
22918 PyObject *resultobj;
22919 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
22920 PyObject *result;
22921 PyObject * obj0 = 0 ;
22922 char *kwnames[] = {
22923 (char *) "self", NULL
22924 };
22925
22926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
22927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22928 {
22929 PyThreadState* __tstate = wxPyBeginAllowThreads();
22930 result = (PyObject *)wxCustomDataObject_GetData(arg1);
22931
22932 wxPyEndAllowThreads(__tstate);
22933 if (PyErr_Occurred()) SWIG_fail;
22934 }
22935 resultobj = result;
22936 return resultobj;
22937 fail:
22938 return NULL;
22939}
22940
22941
22942static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
22943 PyObject *obj;
22944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22945 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
22946 Py_INCREF(obj);
22947 return Py_BuildValue((char *)"");
22948}
22949static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22950 PyObject *resultobj;
22951 wxURLDataObject *result;
22952 char *kwnames[] = {
22953 NULL
22954 };
22955
22956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
22957 {
22958 PyThreadState* __tstate = wxPyBeginAllowThreads();
22959 result = (wxURLDataObject *)new wxURLDataObject();
22960
22961 wxPyEndAllowThreads(__tstate);
22962 if (PyErr_Occurred()) SWIG_fail;
22963 }
22964 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1);
22965 return resultobj;
22966 fail:
22967 return NULL;
22968}
22969
22970
22971static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
22972 PyObject *resultobj;
22973 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
22974 wxString result;
22975 PyObject * obj0 = 0 ;
22976 char *kwnames[] = {
22977 (char *) "self", NULL
22978 };
22979
22980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
22981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22982 {
22983 PyThreadState* __tstate = wxPyBeginAllowThreads();
22984 result = (arg1)->GetURL();
22985
22986 wxPyEndAllowThreads(__tstate);
22987 if (PyErr_Occurred()) SWIG_fail;
22988 }
22989 {
22990#if wxUSE_UNICODE
22991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22992#else
22993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22994#endif
22995 }
22996 return resultobj;
22997 fail:
22998 return NULL;
22999}
23000
23001
23002static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
23003 PyObject *resultobj;
23004 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
23005 wxString *arg2 = 0 ;
e811c8ce 23006 bool temp2 = False ;
d14a1e28
RD
23007 PyObject * obj0 = 0 ;
23008 PyObject * obj1 = 0 ;
23009 char *kwnames[] = {
23010 (char *) "self",(char *) "url", NULL
23011 };
23012
23013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
23014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23015 {
23016 arg2 = wxString_in_helper(obj1);
23017 if (arg2 == NULL) SWIG_fail;
e811c8ce 23018 temp2 = True;
d14a1e28
RD
23019 }
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 (arg1)->SetURL((wxString const &)*arg2);
23023
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 Py_INCREF(Py_None); resultobj = Py_None;
23028 {
23029 if (temp2)
23030 delete arg2;
23031 }
23032 return resultobj;
23033 fail:
23034 {
23035 if (temp2)
23036 delete arg2;
23037 }
23038 return NULL;
23039}
23040
23041
23042static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
23043 PyObject *obj;
23044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23045 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
23046 Py_INCREF(obj);
23047 return Py_BuildValue((char *)"");
23048}
23049static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23050 PyObject *resultobj;
23051 wxMetafileDataObject *result;
23052 char *kwnames[] = {
23053 NULL
23054 };
23055
23056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 result = (wxMetafileDataObject *)new wxMetafileDataObject();
23060
23061 wxPyEndAllowThreads(__tstate);
23062 if (PyErr_Occurred()) SWIG_fail;
23063 }
23064 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1);
23065 return resultobj;
23066 fail:
23067 return NULL;
23068}
23069
23070
23071static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
23072 PyObject *obj;
23073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23074 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
23075 Py_INCREF(obj);
23076 return Py_BuildValue((char *)"");
23077}
23078static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
23079 PyObject *resultobj;
23080 int arg1 ;
23081 bool result;
23082 char *kwnames[] = {
23083 (char *) "res", NULL
23084 };
23085
23086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IsDragResultOk",kwnames,&arg1)) goto fail;
23087 {
23088 PyThreadState* __tstate = wxPyBeginAllowThreads();
23089 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
23090
23091 wxPyEndAllowThreads(__tstate);
23092 if (PyErr_Occurred()) SWIG_fail;
23093 }
23094 resultobj = PyInt_FromLong((long)result);
23095 return resultobj;
23096 fail:
23097 return NULL;
23098}
23099
23100
23101static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
23102 PyObject *resultobj;
23103 wxWindow *arg1 = (wxWindow *) NULL ;
23104 wxIcon const &arg2_defvalue = wxNullIcon ;
23105 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
23106 wxIcon const &arg3_defvalue = wxNullIcon ;
23107 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
23108 wxIcon const &arg4_defvalue = wxNullIcon ;
23109 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
23110 wxPyDropSource *result;
23111 PyObject * obj0 = 0 ;
23112 PyObject * obj1 = 0 ;
23113 PyObject * obj2 = 0 ;
23114 PyObject * obj3 = 0 ;
23115 char *kwnames[] = {
23116 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
23117 };
23118
23119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23120 if (obj0) {
23121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23122 }
23123 if (obj1) {
23124 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23125 if (arg2 == NULL) {
23126 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23127 }
23128 }
23129 if (obj2) {
23130 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23131 if (arg3 == NULL) {
23132 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23133 }
23134 }
23135 if (obj3) {
23136 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23137 if (arg4 == NULL) {
23138 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23139 }
23140 }
23141 {
23142 PyThreadState* __tstate = wxPyBeginAllowThreads();
23143 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
23144
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
23148 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1);
23149 return resultobj;
23150 fail:
23151 return NULL;
23152}
23153
23154
23155static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23156 PyObject *resultobj;
23157 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23158 PyObject *arg2 = (PyObject *) 0 ;
23159 PyObject *arg3 = (PyObject *) 0 ;
23160 int arg4 ;
23161 PyObject * obj0 = 0 ;
23162 PyObject * obj1 = 0 ;
23163 PyObject * obj2 = 0 ;
23164 char *kwnames[] = {
23165 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
23166 };
23167
23168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
23169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23170 arg2 = obj1;
23171 arg3 = obj2;
23172 {
23173 PyThreadState* __tstate = wxPyBeginAllowThreads();
23174 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
23175
23176 wxPyEndAllowThreads(__tstate);
23177 if (PyErr_Occurred()) SWIG_fail;
23178 }
23179 Py_INCREF(Py_None); resultobj = Py_None;
23180 return resultobj;
23181 fail:
23182 return NULL;
23183}
23184
23185
23186static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
23187 PyObject *resultobj;
23188 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23189 PyObject * obj0 = 0 ;
23190 char *kwnames[] = {
23191 (char *) "self", NULL
23192 };
23193
23194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
23195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23196 {
23197 PyThreadState* __tstate = wxPyBeginAllowThreads();
23198 delete arg1;
23199
23200 wxPyEndAllowThreads(__tstate);
23201 if (PyErr_Occurred()) SWIG_fail;
23202 }
23203 Py_INCREF(Py_None); resultobj = Py_None;
23204 return resultobj;
23205 fail:
23206 return NULL;
23207}
23208
23209
23210static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23211 PyObject *resultobj;
23212 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23213 wxDataObject *arg2 = 0 ;
23214 PyObject * obj0 = 0 ;
23215 PyObject * obj1 = 0 ;
23216 char *kwnames[] = {
23217 (char *) "self",(char *) "data", NULL
23218 };
23219
23220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
23221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23222 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23223 if (arg2 == NULL) {
23224 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23225 }
23226 {
23227 PyThreadState* __tstate = wxPyBeginAllowThreads();
23228 (arg1)->SetData(*arg2);
23229
23230 wxPyEndAllowThreads(__tstate);
23231 if (PyErr_Occurred()) SWIG_fail;
23232 }
23233 Py_INCREF(Py_None); resultobj = Py_None;
23234 return resultobj;
23235 fail:
23236 return NULL;
23237}
23238
23239
23240static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23241 PyObject *resultobj;
23242 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23243 wxDataObject *result;
23244 PyObject * obj0 = 0 ;
23245 char *kwnames[] = {
23246 (char *) "self", NULL
23247 };
23248
23249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
23250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23251 {
23252 PyThreadState* __tstate = wxPyBeginAllowThreads();
23253 result = (wxDataObject *)(arg1)->GetDataObject();
23254
23255 wxPyEndAllowThreads(__tstate);
23256 if (PyErr_Occurred()) SWIG_fail;
23257 }
23258 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0);
23259 return resultobj;
23260 fail:
23261 return NULL;
23262}
23263
23264
23265static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
23266 PyObject *resultobj;
23267 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23268 int arg2 ;
23269 wxCursor *arg3 = 0 ;
23270 PyObject * obj0 = 0 ;
23271 PyObject * obj2 = 0 ;
23272 char *kwnames[] = {
23273 (char *) "self",(char *) "res",(char *) "cursor", NULL
23274 };
23275
23276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:DropSource_SetCursor",kwnames,&obj0,&arg2,&obj2)) goto fail;
23277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23278 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23279 if (arg3 == NULL) {
23280 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23281 }
23282 {
23283 PyThreadState* __tstate = wxPyBeginAllowThreads();
23284 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
23285
23286 wxPyEndAllowThreads(__tstate);
23287 if (PyErr_Occurred()) SWIG_fail;
23288 }
23289 Py_INCREF(Py_None); resultobj = Py_None;
23290 return resultobj;
23291 fail:
23292 return NULL;
23293}
23294
23295
23296static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
23297 PyObject *resultobj;
23298 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23299 int arg2 = (int) wxDrag_CopyOnly ;
23300 int result;
23301 PyObject * obj0 = 0 ;
23302 char *kwnames[] = {
23303 (char *) "self",(char *) "flags", NULL
23304 };
23305
23306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DropSource_DoDragDrop",kwnames,&obj0,&arg2)) goto fail;
23307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23308 {
23309 PyThreadState* __tstate = wxPyBeginAllowThreads();
23310 result = (int)(arg1)->DoDragDrop(arg2);
23311
23312 wxPyEndAllowThreads(__tstate);
23313 if (PyErr_Occurred()) SWIG_fail;
23314 }
23315 resultobj = PyInt_FromLong((long)result);
23316 return resultobj;
23317 fail:
23318 return NULL;
23319}
23320
23321
23322static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
23323 PyObject *resultobj;
23324 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23325 int arg2 ;
23326 bool result;
23327 PyObject * obj0 = 0 ;
23328 char *kwnames[] = {
23329 (char *) "self",(char *) "effect", NULL
23330 };
23331
23332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DropSource_base_GiveFeedback",kwnames,&obj0,&arg2)) goto fail;
23333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23334 {
23335 PyThreadState* __tstate = wxPyBeginAllowThreads();
23336 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
23337
23338 wxPyEndAllowThreads(__tstate);
23339 if (PyErr_Occurred()) SWIG_fail;
23340 }
23341 resultobj = PyInt_FromLong((long)result);
23342 return resultobj;
23343 fail:
23344 return NULL;
23345}
23346
23347
23348static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
23349 PyObject *obj;
23350 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23351 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
23352 Py_INCREF(obj);
23353 return Py_BuildValue((char *)"");
23354}
23355static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
23356 PyObject *resultobj;
23357 wxDataObject *arg1 = (wxDataObject *) NULL ;
23358 wxPyDropTarget *result;
23359 PyObject * obj0 = 0 ;
23360 char *kwnames[] = {
23361 (char *) "dataObject", NULL
23362 };
23363
23364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
23365 if (obj0) {
23366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23367 }
23368 {
23369 PyThreadState* __tstate = wxPyBeginAllowThreads();
23370 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
23371
23372 wxPyEndAllowThreads(__tstate);
23373 if (PyErr_Occurred()) SWIG_fail;
23374 }
23375 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1);
23376 return resultobj;
23377 fail:
23378 return NULL;
23379}
23380
23381
23382static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23383 PyObject *resultobj;
23384 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23385 PyObject *arg2 = (PyObject *) 0 ;
23386 PyObject *arg3 = (PyObject *) 0 ;
23387 PyObject * obj0 = 0 ;
23388 PyObject * obj1 = 0 ;
23389 PyObject * obj2 = 0 ;
23390 char *kwnames[] = {
23391 (char *) "self",(char *) "self",(char *) "_class", NULL
23392 };
23393
23394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23396 arg2 = obj1;
23397 arg3 = obj2;
23398 {
23399 PyThreadState* __tstate = wxPyBeginAllowThreads();
23400 (arg1)->_setCallbackInfo(arg2,arg3);
23401
23402 wxPyEndAllowThreads(__tstate);
23403 if (PyErr_Occurred()) SWIG_fail;
23404 }
23405 Py_INCREF(Py_None); resultobj = Py_None;
23406 return resultobj;
23407 fail:
23408 return NULL;
23409}
23410
23411
23412static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
23413 PyObject *resultobj;
23414 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23415 PyObject * obj0 = 0 ;
23416 char *kwnames[] = {
23417 (char *) "self", NULL
23418 };
23419
23420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
23421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23422 {
23423 PyThreadState* __tstate = wxPyBeginAllowThreads();
23424 delete arg1;
23425
23426 wxPyEndAllowThreads(__tstate);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 }
23429 Py_INCREF(Py_None); resultobj = Py_None;
23430 return resultobj;
23431 fail:
23432 return NULL;
23433}
23434
23435
23436static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23437 PyObject *resultobj;
23438 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23439 wxDataObject *result;
23440 PyObject * obj0 = 0 ;
23441 char *kwnames[] = {
23442 (char *) "self", NULL
23443 };
23444
23445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
23446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 result = (wxDataObject *)(arg1)->GetDataObject();
23450
23451 wxPyEndAllowThreads(__tstate);
23452 if (PyErr_Occurred()) SWIG_fail;
23453 }
23454 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0);
23455 return resultobj;
23456 fail:
23457 return NULL;
23458}
23459
23460
23461static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23462 PyObject *resultobj;
23463 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23464 wxDataObject *arg2 = (wxDataObject *) 0 ;
23465 PyObject * obj0 = 0 ;
23466 PyObject * obj1 = 0 ;
23467 char *kwnames[] = {
23468 (char *) "self",(char *) "dataObject", NULL
23469 };
23470
23471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
23472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23473 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23474 {
23475 PyThreadState* __tstate = wxPyBeginAllowThreads();
23476 (arg1)->SetDataObject(arg2);
23477
23478 wxPyEndAllowThreads(__tstate);
23479 if (PyErr_Occurred()) SWIG_fail;
23480 }
23481 Py_INCREF(Py_None); resultobj = Py_None;
23482 return resultobj;
23483 fail:
23484 return NULL;
23485}
23486
23487
23488static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
23489 PyObject *resultobj;
23490 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
23491 int arg2 ;
23492 int arg3 ;
d14a1e28
RD
23493 int arg4 ;
23494 int result;
23495 PyObject * obj0 = 0 ;
23496 char *kwnames[] = {
23497 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23498 };
23499
23500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23502 {
23503 PyThreadState* __tstate = wxPyBeginAllowThreads();
23504 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
23505
23506 wxPyEndAllowThreads(__tstate);
23507 if (PyErr_Occurred()) SWIG_fail;
23508 }
23509 resultobj = PyInt_FromLong((long)result);
23510 return resultobj;
23511 fail:
23512 return NULL;
23513}
23514
23515
23516static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
23517 PyObject *resultobj;
23518 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
23519 int arg2 ;
23520 int arg3 ;
d14a1e28
RD
23521 int arg4 ;
23522 int result;
23523 PyObject * obj0 = 0 ;
23524 char *kwnames[] = {
23525 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23526 };
23527
23528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23530 {
23531 PyThreadState* __tstate = wxPyBeginAllowThreads();
23532 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
23533
23534 wxPyEndAllowThreads(__tstate);
23535 if (PyErr_Occurred()) SWIG_fail;
23536 }
23537 resultobj = PyInt_FromLong((long)result);
23538 return resultobj;
23539 fail:
23540 return NULL;
23541}
23542
23543
23544static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj;
23546 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23547 PyObject * obj0 = 0 ;
23548 char *kwnames[] = {
23549 (char *) "self", NULL
23550 };
23551
23552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
23553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23554 {
23555 PyThreadState* __tstate = wxPyBeginAllowThreads();
23556 (arg1)->base_OnLeave();
23557
23558 wxPyEndAllowThreads(__tstate);
23559 if (PyErr_Occurred()) SWIG_fail;
23560 }
23561 Py_INCREF(Py_None); resultobj = Py_None;
23562 return resultobj;
23563 fail:
23564 return NULL;
23565}
23566
23567
23568static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
23569 PyObject *resultobj;
23570 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
23571 int arg2 ;
23572 int arg3 ;
d14a1e28
RD
23573 bool result;
23574 PyObject * obj0 = 0 ;
23575 char *kwnames[] = {
23576 (char *) "self",(char *) "x",(char *) "y", NULL
23577 };
23578
23579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail;
23580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23581 {
23582 PyThreadState* __tstate = wxPyBeginAllowThreads();
23583 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
23584
23585 wxPyEndAllowThreads(__tstate);
23586 if (PyErr_Occurred()) SWIG_fail;
23587 }
23588 resultobj = PyInt_FromLong((long)result);
23589 return resultobj;
23590 fail:
23591 return NULL;
23592}
23593
23594
23595static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23596 PyObject *resultobj;
23597 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23598 bool result;
23599 PyObject * obj0 = 0 ;
23600 char *kwnames[] = {
23601 (char *) "self", NULL
23602 };
23603
23604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
23605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23606 {
23607 PyThreadState* __tstate = wxPyBeginAllowThreads();
23608 result = (bool)(arg1)->GetData();
23609
23610 wxPyEndAllowThreads(__tstate);
23611 if (PyErr_Occurred()) SWIG_fail;
23612 }
23613 resultobj = PyInt_FromLong((long)result);
23614 return resultobj;
23615 fail:
23616 return NULL;
23617}
23618
23619
23620static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
23621 PyObject *obj;
23622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23623 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
23624 Py_INCREF(obj);
23625 return Py_BuildValue((char *)"");
23626}
23627static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
23628 PyObject *resultobj;
23629 wxPyTextDropTarget *result;
23630 char *kwnames[] = {
23631 NULL
23632 };
23633
23634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
23635 {
23636 PyThreadState* __tstate = wxPyBeginAllowThreads();
23637 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
23638
23639 wxPyEndAllowThreads(__tstate);
23640 if (PyErr_Occurred()) SWIG_fail;
23641 }
23642 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1);
23643 return resultobj;
23644 fail:
23645 return NULL;
23646}
23647
23648
23649static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23650 PyObject *resultobj;
23651 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
23652 PyObject *arg2 = (PyObject *) 0 ;
23653 PyObject *arg3 = (PyObject *) 0 ;
23654 PyObject * obj0 = 0 ;
23655 PyObject * obj1 = 0 ;
23656 PyObject * obj2 = 0 ;
23657 char *kwnames[] = {
23658 (char *) "self",(char *) "self",(char *) "_class", NULL
23659 };
23660
23661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23663 arg2 = obj1;
23664 arg3 = obj2;
23665 {
23666 PyThreadState* __tstate = wxPyBeginAllowThreads();
23667 (arg1)->_setCallbackInfo(arg2,arg3);
23668
23669 wxPyEndAllowThreads(__tstate);
23670 if (PyErr_Occurred()) SWIG_fail;
23671 }
23672 Py_INCREF(Py_None); resultobj = Py_None;
23673 return resultobj;
23674 fail:
23675 return NULL;
23676}
23677
23678
23679static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
23680 PyObject *resultobj;
23681 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
23682 int arg2 ;
23683 int arg3 ;
d14a1e28
RD
23684 int arg4 ;
23685 int result;
23686 PyObject * obj0 = 0 ;
23687 char *kwnames[] = {
23688 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23689 };
23690
23691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23693 {
23694 PyThreadState* __tstate = wxPyBeginAllowThreads();
23695 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
23696
23697 wxPyEndAllowThreads(__tstate);
23698 if (PyErr_Occurred()) SWIG_fail;
23699 }
23700 resultobj = PyInt_FromLong((long)result);
23701 return resultobj;
23702 fail:
23703 return NULL;
23704}
23705
23706
23707static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
23708 PyObject *resultobj;
23709 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
23710 int arg2 ;
23711 int arg3 ;
d14a1e28
RD
23712 int arg4 ;
23713 int result;
23714 PyObject * obj0 = 0 ;
23715 char *kwnames[] = {
23716 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23717 };
23718
23719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23721 {
23722 PyThreadState* __tstate = wxPyBeginAllowThreads();
23723 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
23724
23725 wxPyEndAllowThreads(__tstate);
23726 if (PyErr_Occurred()) SWIG_fail;
23727 }
23728 resultobj = PyInt_FromLong((long)result);
23729 return resultobj;
23730 fail:
23731 return NULL;
23732}
23733
23734
23735static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
23736 PyObject *resultobj;
23737 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
23738 PyObject * obj0 = 0 ;
23739 char *kwnames[] = {
23740 (char *) "self", NULL
23741 };
23742
23743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
23744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23745 {
23746 PyThreadState* __tstate = wxPyBeginAllowThreads();
23747 (arg1)->base_OnLeave();
23748
23749 wxPyEndAllowThreads(__tstate);
23750 if (PyErr_Occurred()) SWIG_fail;
23751 }
23752 Py_INCREF(Py_None); resultobj = Py_None;
23753 return resultobj;
23754 fail:
23755 return NULL;
23756}
23757
23758
23759static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
23760 PyObject *resultobj;
23761 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
23762 int arg2 ;
23763 int arg3 ;
d14a1e28
RD
23764 bool result;
23765 PyObject * obj0 = 0 ;
23766 char *kwnames[] = {
23767 (char *) "self",(char *) "x",(char *) "y", NULL
23768 };
23769
23770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:TextDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail;
23771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23772 {
23773 PyThreadState* __tstate = wxPyBeginAllowThreads();
23774 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
23775
23776 wxPyEndAllowThreads(__tstate);
23777 if (PyErr_Occurred()) SWIG_fail;
23778 }
23779 resultobj = PyInt_FromLong((long)result);
23780 return resultobj;
23781 fail:
23782 return NULL;
23783}
23784
23785
23786static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
23787 PyObject *resultobj;
23788 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
23789 int arg2 ;
23790 int arg3 ;
d14a1e28
RD
23791 int arg4 ;
23792 int result;
23793 PyObject * obj0 = 0 ;
23794 char *kwnames[] = {
23795 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23796 };
23797
23798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23800 {
23801 PyThreadState* __tstate = wxPyBeginAllowThreads();
23802 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
23803
23804 wxPyEndAllowThreads(__tstate);
23805 if (PyErr_Occurred()) SWIG_fail;
23806 }
23807 resultobj = PyInt_FromLong((long)result);
23808 return resultobj;
23809 fail:
23810 return NULL;
23811}
23812
23813
23814static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
23815 PyObject *obj;
23816 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23817 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
23818 Py_INCREF(obj);
23819 return Py_BuildValue((char *)"");
23820}
23821static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
23822 PyObject *resultobj;
23823 wxPyFileDropTarget *result;
23824 char *kwnames[] = {
23825 NULL
23826 };
23827
23828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
23829 {
23830 PyThreadState* __tstate = wxPyBeginAllowThreads();
23831 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
23832
23833 wxPyEndAllowThreads(__tstate);
23834 if (PyErr_Occurred()) SWIG_fail;
23835 }
23836 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1);
23837 return resultobj;
23838 fail:
23839 return NULL;
23840}
23841
23842
23843static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23844 PyObject *resultobj;
23845 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
23846 PyObject *arg2 = (PyObject *) 0 ;
23847 PyObject *arg3 = (PyObject *) 0 ;
23848 PyObject * obj0 = 0 ;
23849 PyObject * obj1 = 0 ;
23850 PyObject * obj2 = 0 ;
23851 char *kwnames[] = {
23852 (char *) "self",(char *) "self",(char *) "_class", NULL
23853 };
23854
23855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23857 arg2 = obj1;
23858 arg3 = obj2;
23859 {
23860 PyThreadState* __tstate = wxPyBeginAllowThreads();
23861 (arg1)->_setCallbackInfo(arg2,arg3);
23862
23863 wxPyEndAllowThreads(__tstate);
23864 if (PyErr_Occurred()) SWIG_fail;
23865 }
23866 Py_INCREF(Py_None); resultobj = Py_None;
23867 return resultobj;
23868 fail:
23869 return NULL;
23870}
23871
23872
23873static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
23874 PyObject *resultobj;
23875 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
23876 int arg2 ;
23877 int arg3 ;
d14a1e28
RD
23878 int arg4 ;
23879 int result;
23880 PyObject * obj0 = 0 ;
23881 char *kwnames[] = {
23882 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23883 };
23884
23885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
23890
23891 wxPyEndAllowThreads(__tstate);
23892 if (PyErr_Occurred()) SWIG_fail;
23893 }
23894 resultobj = PyInt_FromLong((long)result);
23895 return resultobj;
23896 fail:
23897 return NULL;
23898}
23899
23900
23901static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
23902 PyObject *resultobj;
23903 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
23904 int arg2 ;
23905 int arg3 ;
d14a1e28
RD
23906 int arg4 ;
23907 int result;
23908 PyObject * obj0 = 0 ;
23909 char *kwnames[] = {
23910 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23911 };
23912
23913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23915 {
23916 PyThreadState* __tstate = wxPyBeginAllowThreads();
23917 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
23918
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 resultobj = PyInt_FromLong((long)result);
23923 return resultobj;
23924 fail:
23925 return NULL;
23926}
23927
23928
23929static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
23930 PyObject *resultobj;
23931 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
23932 PyObject * obj0 = 0 ;
23933 char *kwnames[] = {
23934 (char *) "self", NULL
23935 };
23936
23937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
23938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 (arg1)->base_OnLeave();
23942
23943 wxPyEndAllowThreads(__tstate);
23944 if (PyErr_Occurred()) SWIG_fail;
23945 }
23946 Py_INCREF(Py_None); resultobj = Py_None;
23947 return resultobj;
23948 fail:
23949 return NULL;
23950}
23951
23952
23953static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
23954 PyObject *resultobj;
23955 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
23956 int arg2 ;
23957 int arg3 ;
d14a1e28
RD
23958 bool result;
23959 PyObject * obj0 = 0 ;
23960 char *kwnames[] = {
23961 (char *) "self",(char *) "x",(char *) "y", NULL
23962 };
23963
23964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:FileDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail;
23965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23966 {
23967 PyThreadState* __tstate = wxPyBeginAllowThreads();
23968 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
23969
23970 wxPyEndAllowThreads(__tstate);
23971 if (PyErr_Occurred()) SWIG_fail;
23972 }
23973 resultobj = PyInt_FromLong((long)result);
23974 return resultobj;
23975 fail:
23976 return NULL;
23977}
23978
23979
23980static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
23981 PyObject *resultobj;
23982 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
23983 int arg2 ;
23984 int arg3 ;
d14a1e28
RD
23985 int arg4 ;
23986 int result;
23987 PyObject * obj0 = 0 ;
23988 char *kwnames[] = {
23989 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23990 };
23991
23992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23994 {
23995 PyThreadState* __tstate = wxPyBeginAllowThreads();
23996 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
23997
23998 wxPyEndAllowThreads(__tstate);
23999 if (PyErr_Occurred()) SWIG_fail;
24000 }
24001 resultobj = PyInt_FromLong((long)result);
24002 return resultobj;
24003 fail:
24004 return NULL;
24005}
24006
24007
24008static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
24009 PyObject *obj;
24010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24011 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
24012 Py_INCREF(obj);
24013 return Py_BuildValue((char *)"");
24014}
24015static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24016 PyObject *resultobj;
24017 wxClipboard *result;
24018 char *kwnames[] = {
24019 NULL
24020 };
24021
24022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 result = (wxClipboard *)new wxClipboard();
24026
24027 wxPyEndAllowThreads(__tstate);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 }
24030 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1);
24031 return resultobj;
24032 fail:
24033 return NULL;
24034}
24035
24036
24037static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24038 PyObject *resultobj;
24039 wxClipboard *arg1 = (wxClipboard *) 0 ;
24040 PyObject * obj0 = 0 ;
24041 char *kwnames[] = {
24042 (char *) "self", NULL
24043 };
24044
24045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
24046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24047 {
24048 PyThreadState* __tstate = wxPyBeginAllowThreads();
24049 delete arg1;
24050
24051 wxPyEndAllowThreads(__tstate);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 }
24054 Py_INCREF(Py_None); resultobj = Py_None;
24055 return resultobj;
24056 fail:
24057 return NULL;
24058}
24059
24060
24061static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
24062 PyObject *resultobj;
24063 wxClipboard *arg1 = (wxClipboard *) 0 ;
24064 bool result;
24065 PyObject * obj0 = 0 ;
24066 char *kwnames[] = {
24067 (char *) "self", NULL
24068 };
24069
24070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
24071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24072 {
24073 PyThreadState* __tstate = wxPyBeginAllowThreads();
24074 result = (bool)(arg1)->Open();
24075
24076 wxPyEndAllowThreads(__tstate);
24077 if (PyErr_Occurred()) SWIG_fail;
24078 }
24079 resultobj = PyInt_FromLong((long)result);
24080 return resultobj;
24081 fail:
24082 return NULL;
24083}
24084
24085
24086static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
24087 PyObject *resultobj;
24088 wxClipboard *arg1 = (wxClipboard *) 0 ;
24089 PyObject * obj0 = 0 ;
24090 char *kwnames[] = {
24091 (char *) "self", NULL
24092 };
24093
24094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
24095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24096 {
24097 PyThreadState* __tstate = wxPyBeginAllowThreads();
24098 (arg1)->Close();
24099
24100 wxPyEndAllowThreads(__tstate);
24101 if (PyErr_Occurred()) SWIG_fail;
24102 }
24103 Py_INCREF(Py_None); resultobj = Py_None;
24104 return resultobj;
24105 fail:
24106 return NULL;
24107}
24108
24109
24110static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
24111 PyObject *resultobj;
24112 wxClipboard *arg1 = (wxClipboard *) 0 ;
24113 bool result;
24114 PyObject * obj0 = 0 ;
24115 char *kwnames[] = {
24116 (char *) "self", NULL
24117 };
24118
24119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
24120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24121 {
24122 PyThreadState* __tstate = wxPyBeginAllowThreads();
24123 result = (bool)((wxClipboard const *)arg1)->IsOpened();
24124
24125 wxPyEndAllowThreads(__tstate);
24126 if (PyErr_Occurred()) SWIG_fail;
24127 }
24128 resultobj = PyInt_FromLong((long)result);
24129 return resultobj;
24130 fail:
24131 return NULL;
24132}
24133
24134
24135static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
24136 PyObject *resultobj;
24137 wxClipboard *arg1 = (wxClipboard *) 0 ;
24138 wxDataObject *arg2 = (wxDataObject *) 0 ;
24139 bool result;
24140 PyObject * obj0 = 0 ;
24141 PyObject * obj1 = 0 ;
24142 char *kwnames[] = {
24143 (char *) "self",(char *) "data", NULL
24144 };
24145
24146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
24147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24148 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24149 {
24150 PyThreadState* __tstate = wxPyBeginAllowThreads();
24151 result = (bool)(arg1)->AddData(arg2);
24152
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 resultobj = PyInt_FromLong((long)result);
24157 return resultobj;
24158 fail:
24159 return NULL;
24160}
24161
24162
24163static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24164 PyObject *resultobj;
24165 wxClipboard *arg1 = (wxClipboard *) 0 ;
24166 wxDataObject *arg2 = (wxDataObject *) 0 ;
24167 bool result;
24168 PyObject * obj0 = 0 ;
24169 PyObject * obj1 = 0 ;
24170 char *kwnames[] = {
24171 (char *) "self",(char *) "data", NULL
24172 };
24173
24174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
24175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24176 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24177 {
24178 PyThreadState* __tstate = wxPyBeginAllowThreads();
24179 result = (bool)(arg1)->SetData(arg2);
24180
24181 wxPyEndAllowThreads(__tstate);
24182 if (PyErr_Occurred()) SWIG_fail;
24183 }
24184 resultobj = PyInt_FromLong((long)result);
24185 return resultobj;
24186 fail:
24187 return NULL;
24188}
24189
24190
24191static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24192 PyObject *resultobj;
24193 wxClipboard *arg1 = (wxClipboard *) 0 ;
24194 wxDataFormat *arg2 = 0 ;
24195 bool result;
24196 PyObject * obj0 = 0 ;
24197 PyObject * obj1 = 0 ;
24198 char *kwnames[] = {
24199 (char *) "self",(char *) "format", NULL
24200 };
24201
24202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
24203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24204 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24205 if (arg2 == NULL) {
24206 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24207 }
24208 {
24209 PyThreadState* __tstate = wxPyBeginAllowThreads();
24210 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
24211
24212 wxPyEndAllowThreads(__tstate);
24213 if (PyErr_Occurred()) SWIG_fail;
24214 }
24215 resultobj = PyInt_FromLong((long)result);
24216 return resultobj;
24217 fail:
24218 return NULL;
24219}
24220
24221
24222static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24223 PyObject *resultobj;
24224 wxClipboard *arg1 = (wxClipboard *) 0 ;
24225 wxDataObject *arg2 = 0 ;
24226 bool result;
24227 PyObject * obj0 = 0 ;
24228 PyObject * obj1 = 0 ;
24229 char *kwnames[] = {
24230 (char *) "self",(char *) "data", NULL
24231 };
24232
24233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
24234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24235 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24236 if (arg2 == NULL) {
24237 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24238 }
24239 {
24240 PyThreadState* __tstate = wxPyBeginAllowThreads();
24241 result = (bool)(arg1)->GetData(*arg2);
24242
24243 wxPyEndAllowThreads(__tstate);
24244 if (PyErr_Occurred()) SWIG_fail;
24245 }
24246 resultobj = PyInt_FromLong((long)result);
24247 return resultobj;
24248 fail:
24249 return NULL;
24250}
24251
24252
24253static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
24254 PyObject *resultobj;
24255 wxClipboard *arg1 = (wxClipboard *) 0 ;
24256 PyObject * obj0 = 0 ;
24257 char *kwnames[] = {
24258 (char *) "self", NULL
24259 };
24260
24261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
24262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24263 {
24264 PyThreadState* __tstate = wxPyBeginAllowThreads();
24265 (arg1)->Clear();
24266
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 Py_INCREF(Py_None); resultobj = Py_None;
24271 return resultobj;
24272 fail:
24273 return NULL;
24274}
24275
24276
24277static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
24278 PyObject *resultobj;
24279 wxClipboard *arg1 = (wxClipboard *) 0 ;
24280 bool result;
24281 PyObject * obj0 = 0 ;
24282 char *kwnames[] = {
24283 (char *) "self", NULL
24284 };
24285
24286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
24287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24288 {
24289 PyThreadState* __tstate = wxPyBeginAllowThreads();
24290 result = (bool)(arg1)->Flush();
24291
24292 wxPyEndAllowThreads(__tstate);
24293 if (PyErr_Occurred()) SWIG_fail;
24294 }
24295 resultobj = PyInt_FromLong((long)result);
24296 return resultobj;
24297 fail:
24298 return NULL;
24299}
24300
24301
24302static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
24303 PyObject *resultobj;
24304 wxClipboard *arg1 = (wxClipboard *) 0 ;
e811c8ce 24305 bool arg2 = (bool) False ;
d14a1e28
RD
24306 PyObject * obj0 = 0 ;
24307 PyObject * obj1 = 0 ;
24308 char *kwnames[] = {
24309 (char *) "self",(char *) "primary", NULL
24310 };
24311
24312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
24313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24314 if (obj1) {
24315 arg2 = PyInt_AsLong(obj1) ? true : false;
24316 if (PyErr_Occurred()) SWIG_fail;
24317 }
24318 {
24319 PyThreadState* __tstate = wxPyBeginAllowThreads();
24320 (arg1)->UsePrimarySelection(arg2);
24321
24322 wxPyEndAllowThreads(__tstate);
24323 if (PyErr_Occurred()) SWIG_fail;
24324 }
24325 Py_INCREF(Py_None); resultobj = Py_None;
24326 return resultobj;
24327 fail:
24328 return NULL;
24329}
24330
24331
24332static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
24333 PyObject *obj;
24334 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24335 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
24336 Py_INCREF(obj);
24337 return Py_BuildValue((char *)"");
24338}
24339static int _wrap_TheClipboard_set(PyObject *_val) {
24340 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
24341 return 1;
24342}
24343
24344
24345static PyObject *_wrap_TheClipboard_get() {
24346 PyObject *pyobj;
24347
24348 pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0);
24349 return pyobj;
24350}
24351
24352
24353static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
24354 PyObject *resultobj;
24355 wxClipboard *arg1 = (wxClipboard *) NULL ;
24356 wxClipboardLocker *result;
24357 PyObject * obj0 = 0 ;
24358 char *kwnames[] = {
24359 (char *) "clipboard", NULL
24360 };
24361
24362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
24363 if (obj0) {
24364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24365 }
24366 {
24367 PyThreadState* __tstate = wxPyBeginAllowThreads();
24368 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
24369
24370 wxPyEndAllowThreads(__tstate);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1);
24374 return resultobj;
24375 fail:
24376 return NULL;
24377}
24378
24379
24380static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
24381 PyObject *resultobj;
24382 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
24383 PyObject * obj0 = 0 ;
24384 char *kwnames[] = {
24385 (char *) "self", NULL
24386 };
24387
24388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
24389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 delete arg1;
24393
24394 wxPyEndAllowThreads(__tstate);
24395 if (PyErr_Occurred()) SWIG_fail;
24396 }
24397 Py_INCREF(Py_None); resultobj = Py_None;
24398 return resultobj;
24399 fail:
24400 return NULL;
24401}
24402
24403
24404static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
24405 PyObject *resultobj;
24406 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
24407 bool result;
24408 PyObject * obj0 = 0 ;
24409 char *kwnames[] = {
24410 (char *) "self", NULL
24411 };
24412
24413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
24414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24415 {
24416 PyThreadState* __tstate = wxPyBeginAllowThreads();
24417 result = (bool)wxClipboardLocker___nonzero__(arg1);
24418
24419 wxPyEndAllowThreads(__tstate);
24420 if (PyErr_Occurred()) SWIG_fail;
24421 }
24422 resultobj = PyInt_FromLong((long)result);
24423 return resultobj;
24424 fail:
24425 return NULL;
24426}
24427
24428
24429static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
24430 PyObject *obj;
24431 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24432 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
24433 Py_INCREF(obj);
24434 return Py_BuildValue((char *)"");
24435}
24436static PyMethodDef SwigMethods[] = {
24437 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
24438 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
24439 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
24440 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
24441 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
24442 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
24443 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
24444 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
24445 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
24446 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
24447 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
24448 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
24449 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
24450 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
24451 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
24452 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
24453 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
24454 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
24455 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
24456 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
24457 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
24458 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
24459 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
24460 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
24461 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
24462 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
24463 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
24464 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
24465 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
24466 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
24467 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
24468 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
24469 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
24470 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
24471 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
24472 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
24473 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
24474 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
24475 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
24476 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
24477 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
24478 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
24479 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
24480 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
24481 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
24482 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
24483 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
24484 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
24485 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
24486 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
24487 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
24488 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
24489 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
24490 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
24491 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
24492 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
24493 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
24494 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
24495 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
24496 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
24497 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
24498 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
24499 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
24500 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
24501 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
24502 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
24503 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
24504 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
24505 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
24506 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
24507 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
24508 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
24509 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
24510 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
24511 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
24512 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
24513 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
24514 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
24515 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
24516 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
24517 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
24518 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
24519 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
24520 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
24521 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
d14a1e28 24522 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
322913ce 24523 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 24524 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
322913ce 24525 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24526 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
24527 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
24528 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
24529 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
24530 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
24531 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
24532 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
24533 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
24534 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
24535 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
24536 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
24537 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
24538 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
24539 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
24540 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
24541 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
24542 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
24543 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
24544 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
24545 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
24546 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
24547 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
24548 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
24549 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
24550 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
24551 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
24552 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
24553 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
24554 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
24555 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
24556 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
24557 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
24558 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
24559 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
24560 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
24561 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
24562 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
24563 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
24564 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
24565 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
24566 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
24567 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
24568 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
24569 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
24570 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
24571 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
24572 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
24573 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
24574 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
24575 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
24576 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
24577 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
24578 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
24579 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
24580 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
24581 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
24582 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
24583 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
7722248d 24584 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24585 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
24586 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
24587 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24588 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
24589 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
24590 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
cc6dd355 24591 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24592 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
24593 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
24594 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
24595 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
24596 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
24597 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
24598 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
24599 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
24600 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
24601 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
24602 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
24603 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
24604 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
24605 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
24606 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
24607 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
24608 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
24609 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
24610 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
24611 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
24612 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
24613 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
24614 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
24615 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
24616 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
24617 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
24618 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
24619 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
24620 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
24621 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
24622 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
24623 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
24624 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
24625 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
24626 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
24627 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
24628 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
24629 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
24630 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
24631 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
24632 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
24633 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
24634 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
24635 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
24636 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
24637 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
24638 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
24639 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
24640 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
24641 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
24642 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
24643 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
24644 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
24645 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
24646 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
24647 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
24648 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
24649 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
24650 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
24651 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
24652 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
24653 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
24654 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
24655 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
24656 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
24657 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
cc6dd355 24658 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
d14a1e28
RD
24659 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
24660 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
24661 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
24662 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
24663 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
24664 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
24665 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
24666 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
24667 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
24668 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
24669 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
24670 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
24671 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
24672 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
24673 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
24674 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
24675 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
24676 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
24677 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
24678 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
24679 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
24680 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
24681 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
24682 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
24683 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
24684 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
24685 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
24686 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
24687 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
24688 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
24689 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
24690 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
24691 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
24692 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
24693 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
24694 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
24695 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
24696 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
24697 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
24698 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
24699 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
24700 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
24701 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
24702 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
24703 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
24704 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
24705 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
24706 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
24707 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
24708 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
24709 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
24710 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
24711 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
24712 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
24713 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
24714 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
24715 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
24716 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
24717 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
24718 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
24719 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
24720 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
24721 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
24722 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
24723 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
24724 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
24725 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
24726 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
24727 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
24728 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
24729 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
24730 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
24731 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
24732 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
24733 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
24734 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
24735 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
24736 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
24737 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
24738 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
24739 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
24740 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
24741 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
24742 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
24743 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
24744 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
24745 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
24746 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
24747 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
24748 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
24749 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
24750 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
24751 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
24752 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
24753 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
24754 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
24755 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
24756 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
24757 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
24758 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
24759 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
24760 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
24761 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
24762 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
24763 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
24764 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
24765 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
24766 { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS },
24767 { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS },
24768 { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS },
24769 { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS },
24770 { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS },
24771 { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS },
24772 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
24773 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
24774 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
24775 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
24776 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
24777 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
24778 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
24779 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
24780 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
24781 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
24782 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
24783 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
24784 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
24785 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
24786 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
24787 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
24788 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
24789 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
24790 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
24791 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
24792 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
24793 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
24794 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
24795 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
24796 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
24797 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
24798 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
24799 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
24800 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
24801 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
24802 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
24803 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
24804 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
24805 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
24806 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
24807 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
24808 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
24809 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
24810 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
24811 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
24812 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
24813 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
24814 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
24815 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
24816 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
24817 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
24818 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24819 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
24820 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
24821 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
24822 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
24823 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
24824 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
1e0c8722 24825 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24826 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
24827 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
24828 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
24829 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
24830 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
24831 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
24832 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
24833 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
24834 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
24835 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
24836 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
24837 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
24838 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
24839 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
24840 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
24841 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
24842 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
24843 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
24844 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
24845 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
24846 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
24847 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
24848 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
24849 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
24850 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
24851 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
24852 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
24853 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
24854 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
24855 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
24856 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
24857 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
24858 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
24859 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
24860 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
24861 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
24862 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
24863 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
24864 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
24865 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
24866 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
24867 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
24868 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
24869 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
24870 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
24871 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
24872 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
24873 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
24874 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
24875 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
24876 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
24877 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
24878 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
24879 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
24880 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
24881 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
24882 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
24883 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
24884 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
24885 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
24886 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
24887 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
24888 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
24889 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
24890 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
24891 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
24892 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
24893 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
24894 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
24895 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
24896 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
24897 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
24898 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
24899 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
24900 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
24901 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
24902 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
24903 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
24904 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
24905 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
24906 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
24907 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
24908 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
24909 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
24910 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
24911 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
24912 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
24913 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
24914 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
24915 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
24916 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
24917 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
24918 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
24919 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
24920 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
24921 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
24922 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
24923 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
24924 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
24925 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
24926 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
24927 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
24928 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
24929 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
24930 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
24931 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
24932 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
24933 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
24934 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
24935 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
24936 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
24937 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
24938 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
24939 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
24940 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
24941 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
24942 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
24943 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
24944 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
24945 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
24946 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
24947 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
24948 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
24949 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
24950 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
24951 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
24952 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
24953 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
24954 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
24955 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
24956 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
24957 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
24958 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
24959 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
24960 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
24961 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
24962 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
24963 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
24964 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
24965 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
24966 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
24967 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
24968 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
24969 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
24970 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
24971 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
24972 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
24973 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
24974 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
24975 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
24976 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
24977 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
24978 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
24979 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
24980 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
24981 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
24982 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
24983 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
24984 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
24985 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
24986 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
24987 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
24988 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
24989 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
24990 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
24991 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
24992 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
24993 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
24994 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
24995 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
24996 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
24997 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
24998 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
24999 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
25000 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
25001 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
25002 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
25003 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
25004 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
25005 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
25006 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
25007 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
25008 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
25009 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
25010 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
25011 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
25012 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
25013 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
25014 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
25015 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
25016 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
25017 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
25018 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
25019 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
25020 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
25021 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
25022 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
25023 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
25024 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
25025 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
25026 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
25027 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
25028 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
25029 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
25030 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
25031 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
25032 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
25033 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
25034 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
25035 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
25036 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
25037 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
25038 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
25039 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
25040 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
25041 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
25042 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
25043 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
25044 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
25045 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
25046 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
25047 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
25048 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
25049 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
25050 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
25051 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
25052 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
25053 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
25054 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
25055 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
25056 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
25057 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
25058 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
25059 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
25060 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
25061 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
25062 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
25063 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
25064 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
25065 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
25066 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
25067 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
25068 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
25069 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
25070 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
25071 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
25072 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
25073 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
25074 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
25075 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
25076 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
25077 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
25078 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
25079 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
25080 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
25081 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
25082 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
25083 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
25084 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
25085 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
25086 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
25087 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
25088 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
25089 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
25090 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
25091 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
25092 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
25093 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
25094 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
25095 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
25096 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
25097 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
25098 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
25099 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25100 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
25101 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
25102 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
25103 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
25104 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
25105 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
25106 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
25107 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
25108 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
25109 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
25110 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25111 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
25112 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
25113 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
25114 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
25115 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
25116 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
25117 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25118 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
25119 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
25120 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
25121 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
25122 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
25123 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
25124 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
25125 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
25126 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
25127 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
25128 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
25129 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
25130 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
25131 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
25132 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
25133 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
25134 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
25135 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
25136 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25137 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
25138 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
25139 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
25140 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
25141 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
25142 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
25143 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
25144 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
25145 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25146 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
25147 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
25148 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
25149 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
25150 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
25151 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
25152 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
25153 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
25154 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
25155 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
25156 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25157 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
25158 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
25159 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
25160 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
25161 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
25162 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
25163 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
25164 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25165 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
25166 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
25167 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
25168 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
25169 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
25170 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
25171 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
25172 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
25173 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
25174 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
25175 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
25176 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
25177 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
25178 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
25179 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
25180 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
25181 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
25182 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
25183 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
25184 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
25185 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
25186 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
25187 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
25188 { NULL, NULL }
25189};
25190
25191
25192/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25193
25194static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
25195 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
25196}
25197static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
25198 return (void *)((wxEvent *) ((wxMenuEvent *) x));
25199}
25200static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
25201 return (void *)((wxEvent *) ((wxCloseEvent *) x));
25202}
25203static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
25204 return (void *)((wxEvent *) ((wxMouseEvent *) x));
25205}
25206static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
25207 return (void *)((wxEvent *) ((wxEraseEvent *) x));
25208}
25209static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
25210 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
25211}
25212static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
25213 return (void *)((wxEvent *) ((wxTimerEvent *) x));
25214}
25215static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
25216 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
25217}
25218static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
25219 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
25220}
25221static void *_p_wxPyEventTo_p_wxEvent(void *x) {
25222 return (void *)((wxEvent *) ((wxPyEvent *) x));
25223}
25224static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
25225 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
25226}
25227static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
25228 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
25229}
25230static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
25231 return (void *)((wxEvent *) ((wxIdleEvent *) x));
25232}
25233static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
25234 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
25235}
25236static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
25237 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
25238}
25239static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
25240 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
25241}
25242static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
25243 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
25244}
25245static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
25246 return (void *)((wxEvent *) ((wxActivateEvent *) x));
25247}
25248static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
25249 return (void *)((wxEvent *) ((wxSizeEvent *) x));
25250}
25251static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
25252 return (void *)((wxEvent *) ((wxMoveEvent *) x));
25253}
25254static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
25255 return (void *)((wxEvent *) ((wxPaintEvent *) x));
25256}
25257static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
25258 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
25259}
25260static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
25261 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
25262}
25263static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
25264 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
25265}
25266static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
25267 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
25268}
25269static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
25270 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25271}
25272static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
25273 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
25274}
25275static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
25276 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
25277}
25278static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
25279 return (void *)((wxEvent *) ((wxFocusEvent *) x));
25280}
25281static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
25282 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
25283}
25284static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
25285 return (void *)((wxEvent *) ((wxProcessEvent *) x));
25286}
25287static void *_p_wxShowEventTo_p_wxEvent(void *x) {
25288 return (void *)((wxEvent *) ((wxShowEvent *) x));
25289}
25290static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
25291 return (void *)((wxEvent *) ((wxCommandEvent *) x));
25292}
25293static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
25294 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
25295}
25296static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
25297 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25298}
25299static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
25300 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
25301}
25302static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
25303 return (void *)((wxEvent *) ((wxKeyEvent *) x));
25304}
25305static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
25306 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
25307}
25308static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
25309 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
25310}
25311static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
25312 return (void *)((wxConfigBase *) ((wxConfig *) x));
25313}
25314static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
25315 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
25316}
25317static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
25318 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
25319}
25320static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
25321 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
25322}
25323static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
25324 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
25325}
25326static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
25327 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
25328}
25329static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
25330 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
25331}
25332static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
25333 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
25334}
25335static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
25336 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
25337}
25338static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
25339 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
25340}
25341static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
25342 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
25343}
25344static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
25345 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
25346}
25347static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
25348 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
25349}
25350static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
25351 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
25352}
25353static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
25354 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
25355}
25356static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
25357 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
25358}
25359static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
25360 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
25361}
25362static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
25363 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
25364}
25365static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
25366 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
25367}
25368static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
25369 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
25370}
25371static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
25372 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
25373}
25374static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
25375 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
25376}
25377static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
25378 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
25379}
25380static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
25381 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
25382}
25383static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
25384 return (void *)((wxEvtHandler *) ((wxWindow *) x));
25385}
25386static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
25387 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25388}
25389static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
25390 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
25391}
25392static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
25393 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
25394}
25395static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
25396 return (void *)((wxEvtHandler *) ((wxValidator *) x));
25397}
25398static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
25399 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
25400}
25401static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
25402 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
25403}
25404static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
25405 return (void *)((wxEvtHandler *) ((wxMenu *) x));
25406}
25407static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
25408 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
25409}
25410static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
25411 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
25412}
25413static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25414 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25415}
25416static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25417 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25418}
25419static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25420 return (void *)((wxObject *) ((wxSizerItem *) x));
25421}
25422static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25423 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25424}
25425static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25426 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25427}
25428static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25429 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25430}
25431static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25432 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25433}
25434static void *_p_wxSizerTo_p_wxObject(void *x) {
25435 return (void *)((wxObject *) ((wxSizer *) x));
25436}
25437static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25438 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25439}
25440static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
25441 return (void *)((wxObject *) ((wxFileHistory *) x));
25442}
25443static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25444 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25445}
25446static void *_p_wxEventTo_p_wxObject(void *x) {
25447 return (void *)((wxObject *) ((wxEvent *) x));
25448}
25449static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25450 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25451}
25452static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25453 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25454}
25455static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25456 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25457}
25458static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25459 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25460}
25461static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25462 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25463}
25464static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25465 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25466}
25467static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25468 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25469}
25470static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25471 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25472}
25473static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25474 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25475}
25476static void *_p_wxControlTo_p_wxObject(void *x) {
25477 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25478}
25479static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25480 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25481}
25482static void *_p_wxTimerEventTo_p_wxObject(void *x) {
25483 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
25484}
25485static void *_p_wxFSFileTo_p_wxObject(void *x) {
25486 return (void *)((wxObject *) ((wxFSFile *) x));
25487}
25488static void *_p_wxClipboardTo_p_wxObject(void *x) {
25489 return (void *)((wxObject *) ((wxClipboard *) x));
25490}
25491static void *_p_wxPySizerTo_p_wxObject(void *x) {
25492 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25493}
25494static void *_p_wxPyEventTo_p_wxObject(void *x) {
25495 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25496}
25497static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25498 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25499}
25500static void *_p_wxShowEventTo_p_wxObject(void *x) {
25501 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25502}
25503static void *_p_wxToolTipTo_p_wxObject(void *x) {
25504 return (void *)((wxObject *) ((wxToolTip *) x));
25505}
25506static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25507 return (void *)((wxObject *) ((wxMenuItem *) x));
25508}
25509static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25510 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25511}
25512static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25513 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25514}
25515static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25516 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25517}
25518static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25519 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25520}
25521static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25522 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25523}
25524static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25525 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25526}
25527static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25528 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25529}
25530static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25531 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25532}
25533static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25534 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25535}
25536static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25537 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25538}
25539static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25540 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25541}
25542static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25543 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25544}
25545static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25546 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25547}
25548static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25549 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25550}
25551static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25552 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25553}
25554static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25555 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25556}
25557static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25558 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25559}
25560static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25561 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25562}
25563static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25564 return (void *)((wxObject *) ((wxImageHandler *) x));
25565}
25566static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25567 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25568}
25569static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25570 return (void *)((wxObject *) ((wxEvtHandler *) x));
25571}
1e0c8722
RD
25572static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25573 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25574}
d14a1e28
RD
25575static void *_p_wxImageTo_p_wxObject(void *x) {
25576 return (void *)((wxObject *) ((wxImage *) x));
25577}
25578static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25579 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25580}
25581static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
25582 return (void *)((wxObject *) ((wxSystemOptions *) x));
25583}
25584static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
25585 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
25586}
25587static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25588 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25589}
25590static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25591 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25592}
25593static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25594 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25595}
25596static void *_p_wxWindowTo_p_wxObject(void *x) {
25597 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25598}
25599static void *_p_wxMenuTo_p_wxObject(void *x) {
25600 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25601}
25602static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25603 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25604}
25605static void *_p_wxPyProcessTo_p_wxObject(void *x) {
25606 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
25607}
25608static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25609 return (void *)((wxObject *) ((wxFileSystem *) x));
25610}
25611static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25612 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25613}
25614static void *_p_wxMenuEventTo_p_wxObject(void *x) {
25615 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
25616}
25617static void *_p_wxPyAppTo_p_wxObject(void *x) {
25618 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
25619}
25620static void *_p_wxCloseEventTo_p_wxObject(void *x) {
25621 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
25622}
25623static void *_p_wxMouseEventTo_p_wxObject(void *x) {
25624 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
25625}
25626static void *_p_wxEraseEventTo_p_wxObject(void *x) {
25627 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
25628}
25629static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
25630 return (void *)((wxObject *) ((wxBusyInfo *) x));
25631}
25632static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
25633 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
25634}
25635static void *_p_wxCommandEventTo_p_wxObject(void *x) {
25636 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
25637}
25638static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
25639 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
25640}
25641static void *_p_wxFocusEventTo_p_wxObject(void *x) {
25642 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
25643}
25644static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
25645 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
25646}
25647static void *_p_wxProcessEventTo_p_wxObject(void *x) {
25648 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
25649}
25650static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
25651 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25652}
25653static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
25654 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
25655}
25656static void *_p_wxValidatorTo_p_wxObject(void *x) {
25657 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
25658}
25659static void *_p_wxPyTimerTo_p_wxObject(void *x) {
25660 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
25661}
25662static void *_p_wxLogStderrTo_p_wxLog(void *x) {
25663 return (void *)((wxLog *) ((wxLogStderr *) x));
25664}
25665static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
25666 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
25667}
25668static void *_p_wxLogWindowTo_p_wxLog(void *x) {
25669 return (void *)((wxLog *) ((wxLogWindow *) x));
25670}
25671static void *_p_wxLogChainTo_p_wxLog(void *x) {
25672 return (void *)((wxLog *) ((wxLogChain *) x));
25673}
25674static void *_p_wxLogGuiTo_p_wxLog(void *x) {
25675 return (void *)((wxLog *) ((wxLogGui *) x));
25676}
25677static void *_p_wxPyLogTo_p_wxLog(void *x) {
25678 return (void *)((wxLog *) ((wxPyLog *) x));
25679}
25680static void *_p_wxControlTo_p_wxWindow(void *x) {
25681 return (void *)((wxWindow *) ((wxControl *) x));
25682}
25683static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
25684 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
25685}
25686static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
25687 return (void *)((wxWindow *) ((wxMenuBar *) x));
25688}
25689static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
25690 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
25691}
25692static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
25693 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
25694}
25695static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}};
25696static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}};
25697static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}};
25698static 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}};
25699static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}};
25700static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}};
25701static 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}};
25702static 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}};
25703static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}};
25704static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}};
25705static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}};
25706static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
25707static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}};
25708static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}};
25709static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}};
25710static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
25711static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
25712static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}};
25713static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}};
25714static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
25715static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}};
25716static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
25717static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}};
25718static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}};
25719static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}};
25720static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}};
25721static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}};
25722static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}};
25723static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}};
25724static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}};
25725static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}};
25726static 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}};
25727static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}};
25728static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}};
25729static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}};
25730static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}};
25731static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}};
25732static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}};
25733static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
25734static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}};
25735static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}};
25736static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}};
25737static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}};
25738static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}};
25739static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}};
25740static 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}};
25741static 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}};
25742static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
25743static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}};
25744static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}};
25745static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
25746static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}};
25747static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}};
25748static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}};
25749static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}};
25750static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}};
25751static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}};
25752static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}};
25753static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
25754static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}};
25755static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
1e0c8722 25756static 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
25757static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
25758static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}};
25759static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}};
25760static 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}};
25761static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
25762static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}};
25763static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
25764static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}};
25765static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}};
25766static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}};
25767static 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}};
25768static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}};
25769static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}};
25770static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}};
25771static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}};
25772static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}};
25773static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
25774static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}};
25775static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}};
25776static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}};
25777
25778static swig_type_info *swig_types_initial[] = {
25779_swigt__p_wxLogChain,
25780_swigt__p_wxMutexGuiLocker,
25781_swigt__p_wxFileHistory,
25782_swigt__p_wxLog,
25783_swigt__p_wxDateTime__TimeZone,
25784_swigt__p_wxMenu,
25785_swigt__p_wxEvent,
25786_swigt__p_wxConfigBase,
25787_swigt__p_wxWave,
25788_swigt__p_wxFileType,
25789_swigt__p_wxLogGui,
25790_swigt__p_wxFont,
25791_swigt__p_wxDataFormat,
25792_swigt__p_wxTimerEvent,
25793_swigt__p_wxCaret,
25794_swigt__p_int,
25795_swigt__p_wxSize,
25796_swigt__p_wxClipboard,
25797_swigt__p_wxStopWatch,
25798_swigt__p_wxDC,
25799_swigt__p_wxClipboardLocker,
25800_swigt__p_wxIcon,
25801_swigt__p_wxLogStderr,
25802_swigt__p_wxLogTextCtrl,
25803_swigt__p_wxTextCtrl,
25804_swigt__p_wxBusyCursor,
25805_swigt__p_wxFileDataObject,
25806_swigt__p_wxPyBitmapDataObject,
25807_swigt__p_wxPyTextDataObject,
25808_swigt__p_wxBitmapDataObject,
25809_swigt__p_wxTextDataObject,
25810_swigt__p_wxDataObject,
25811_swigt__p_wxCustomDataObject,
25812_swigt__p_wxURLDataObject,
25813_swigt__p_wxMetafileDataObject,
25814_swigt__p_wxTimerRunner,
25815_swigt__p_wxLogWindow,
25816_swigt__p_wxTimeSpan,
25817_swigt__p_wxArrayString,
25818_swigt__p_wxWindowDisabler,
25819_swigt__p_wxToolTip,
25820_swigt__p_wxDataObjectComposite,
25821_swigt__p_wxFileConfig,
25822_swigt__p_wxSystemSettings,
25823_swigt__p_wxPyDataObjectSimple,
25824_swigt__p_wxDataObjectSimple,
25825_swigt__p_wxEvtHandler,
25826_swigt__p_wxRect,
25827_swigt__p_wxSingleInstanceChecker,
25828_swigt__p_wxFileTypeInfo,
25829_swigt__p_wxFrame,
25830_swigt__p_wxTimer,
25831_swigt__p_wxMimeTypesManager,
25832_swigt__p_wxPyArtProvider,
25833_swigt__p_wxPyTipProvider,
25834_swigt__p_wxTipProvider,
25835_swigt__p_wxJoystick,
25836_swigt__p_wxSystemOptions,
25837_swigt__p_wxPoint,
25838_swigt__p_wxJoystickEvent,
25839_swigt__p_wxCursor,
25840_swigt__p_wxObject,
25841_swigt__p_wxOutputStream,
25842_swigt__p_wxDateTime,
25843_swigt__p_wxPyDropSource,
25844_swigt__p_wxWindow,
25845_swigt__p_wxString,
25846_swigt__p_wxPyProcess,
25847_swigt__p_wxBitmap,
25848_swigt__p_wxConfig,
25849_swigt__p_wxChar,
25850_swigt__p_wxBusyInfo,
25851_swigt__p_wxPyDropTarget,
25852_swigt__p_wxPyTextDropTarget,
25853_swigt__p_wxPyFileDropTarget,
25854_swigt__p_wxProcessEvent,
25855_swigt__p_wxPyLog,
25856_swigt__p_wxLogNull,
25857_swigt__p_wxColour,
25858_swigt__p_wxConfigPathChanger,
25859_swigt__p_wxPyTimer,
25860_swigt__p_wxDateSpan,
258610
25862};
25863
25864
25865/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
25866
25867static swig_const_info swig_const_table[] = {
25868{ SWIG_PY_INT, (char *)"SYS_OEM_FIXED_FONT", (long) wxSYS_OEM_FIXED_FONT, 0, 0, 0},
25869{ SWIG_PY_INT, (char *)"SYS_ANSI_FIXED_FONT", (long) wxSYS_ANSI_FIXED_FONT, 0, 0, 0},
25870{ SWIG_PY_INT, (char *)"SYS_ANSI_VAR_FONT", (long) wxSYS_ANSI_VAR_FONT, 0, 0, 0},
25871{ SWIG_PY_INT, (char *)"SYS_SYSTEM_FONT", (long) wxSYS_SYSTEM_FONT, 0, 0, 0},
25872{ SWIG_PY_INT, (char *)"SYS_DEVICE_DEFAULT_FONT", (long) wxSYS_DEVICE_DEFAULT_FONT, 0, 0, 0},
25873{ SWIG_PY_INT, (char *)"SYS_DEFAULT_PALETTE", (long) wxSYS_DEFAULT_PALETTE, 0, 0, 0},
25874{ SWIG_PY_INT, (char *)"SYS_SYSTEM_FIXED_FONT", (long) wxSYS_SYSTEM_FIXED_FONT, 0, 0, 0},
25875{ SWIG_PY_INT, (char *)"SYS_DEFAULT_GUI_FONT", (long) wxSYS_DEFAULT_GUI_FONT, 0, 0, 0},
25876{ SWIG_PY_INT, (char *)"SYS_ICONTITLE_FONT", (long) wxSYS_ICONTITLE_FONT, 0, 0, 0},
25877{ SWIG_PY_INT, (char *)"SYS_COLOUR_SCROLLBAR", (long) wxSYS_COLOUR_SCROLLBAR, 0, 0, 0},
25878{ SWIG_PY_INT, (char *)"SYS_COLOUR_BACKGROUND", (long) wxSYS_COLOUR_BACKGROUND, 0, 0, 0},
25879{ SWIG_PY_INT, (char *)"SYS_COLOUR_DESKTOP", (long) wxSYS_COLOUR_DESKTOP, 0, 0, 0},
25880{ SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVECAPTION", (long) wxSYS_COLOUR_ACTIVECAPTION, 0, 0, 0},
25881{ SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTION", (long) wxSYS_COLOUR_INACTIVECAPTION, 0, 0, 0},
25882{ SWIG_PY_INT, (char *)"SYS_COLOUR_MENU", (long) wxSYS_COLOUR_MENU, 0, 0, 0},
25883{ SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOW", (long) wxSYS_COLOUR_WINDOW, 0, 0, 0},
25884{ SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWFRAME", (long) wxSYS_COLOUR_WINDOWFRAME, 0, 0, 0},
25885{ SWIG_PY_INT, (char *)"SYS_COLOUR_MENUTEXT", (long) wxSYS_COLOUR_MENUTEXT, 0, 0, 0},
25886{ SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWTEXT", (long) wxSYS_COLOUR_WINDOWTEXT, 0, 0, 0},
25887{ SWIG_PY_INT, (char *)"SYS_COLOUR_CAPTIONTEXT", (long) wxSYS_COLOUR_CAPTIONTEXT, 0, 0, 0},
25888{ SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVEBORDER", (long) wxSYS_COLOUR_ACTIVEBORDER, 0, 0, 0},
25889{ SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVEBORDER", (long) wxSYS_COLOUR_INACTIVEBORDER, 0, 0, 0},
25890{ SWIG_PY_INT, (char *)"SYS_COLOUR_APPWORKSPACE", (long) wxSYS_COLOUR_APPWORKSPACE, 0, 0, 0},
25891{ SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHT", (long) wxSYS_COLOUR_HIGHLIGHT, 0, 0, 0},
25892{ SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHTTEXT", (long) wxSYS_COLOUR_HIGHLIGHTTEXT, 0, 0, 0},
25893{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNFACE", (long) wxSYS_COLOUR_BTNFACE, 0, 0, 0},
25894{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DFACE", (long) wxSYS_COLOUR_3DFACE, 0, 0, 0},
25895{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNSHADOW", (long) wxSYS_COLOUR_BTNSHADOW, 0, 0, 0},
25896{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DSHADOW", (long) wxSYS_COLOUR_3DSHADOW, 0, 0, 0},
25897{ SWIG_PY_INT, (char *)"SYS_COLOUR_GRAYTEXT", (long) wxSYS_COLOUR_GRAYTEXT, 0, 0, 0},
25898{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNTEXT", (long) wxSYS_COLOUR_BTNTEXT, 0, 0, 0},
25899{ SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTIONTEXT", (long) wxSYS_COLOUR_INACTIVECAPTIONTEXT, 0, 0, 0},
25900{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHIGHLIGHT", (long) wxSYS_COLOUR_BTNHIGHLIGHT, 0, 0, 0},
25901{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHILIGHT", (long) wxSYS_COLOUR_BTNHILIGHT, 0, 0, 0},
25902{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DHIGHLIGHT", (long) wxSYS_COLOUR_3DHIGHLIGHT, 0, 0, 0},
25903{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DHILIGHT", (long) wxSYS_COLOUR_3DHILIGHT, 0, 0, 0},
25904{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DDKSHADOW", (long) wxSYS_COLOUR_3DDKSHADOW, 0, 0, 0},
25905{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DLIGHT", (long) wxSYS_COLOUR_3DLIGHT, 0, 0, 0},
25906{ SWIG_PY_INT, (char *)"SYS_COLOUR_INFOTEXT", (long) wxSYS_COLOUR_INFOTEXT, 0, 0, 0},
25907{ SWIG_PY_INT, (char *)"SYS_COLOUR_INFOBK", (long) wxSYS_COLOUR_INFOBK, 0, 0, 0},
25908{ SWIG_PY_INT, (char *)"SYS_COLOUR_LISTBOX", (long) wxSYS_COLOUR_LISTBOX, 0, 0, 0},
25909{ SWIG_PY_INT, (char *)"SYS_COLOUR_HOTLIGHT", (long) wxSYS_COLOUR_HOTLIGHT, 0, 0, 0},
25910{ SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTACTIVECAPTION, 0, 0, 0},
25911{ SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTINACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION, 0, 0, 0},
25912{ SWIG_PY_INT, (char *)"SYS_COLOUR_MENUHILIGHT", (long) wxSYS_COLOUR_MENUHILIGHT, 0, 0, 0},
25913{ SWIG_PY_INT, (char *)"SYS_COLOUR_MENUBAR", (long) wxSYS_COLOUR_MENUBAR, 0, 0, 0},
25914{ SWIG_PY_INT, (char *)"SYS_COLOUR_MAX", (long) wxSYS_COLOUR_MAX, 0, 0, 0},
25915{ SWIG_PY_INT, (char *)"SYS_MOUSE_BUTTONS", (long) wxSYS_MOUSE_BUTTONS, 0, 0, 0},
25916{ SWIG_PY_INT, (char *)"SYS_BORDER_X", (long) wxSYS_BORDER_X, 0, 0, 0},
25917{ SWIG_PY_INT, (char *)"SYS_BORDER_Y", (long) wxSYS_BORDER_Y, 0, 0, 0},
25918{ SWIG_PY_INT, (char *)"SYS_CURSOR_X", (long) wxSYS_CURSOR_X, 0, 0, 0},
25919{ SWIG_PY_INT, (char *)"SYS_CURSOR_Y", (long) wxSYS_CURSOR_Y, 0, 0, 0},
25920{ SWIG_PY_INT, (char *)"SYS_DCLICK_X", (long) wxSYS_DCLICK_X, 0, 0, 0},
25921{ SWIG_PY_INT, (char *)"SYS_DCLICK_Y", (long) wxSYS_DCLICK_Y, 0, 0, 0},
25922{ SWIG_PY_INT, (char *)"SYS_DRAG_X", (long) wxSYS_DRAG_X, 0, 0, 0},
25923{ SWIG_PY_INT, (char *)"SYS_DRAG_Y", (long) wxSYS_DRAG_Y, 0, 0, 0},
25924{ SWIG_PY_INT, (char *)"SYS_EDGE_X", (long) wxSYS_EDGE_X, 0, 0, 0},
25925{ SWIG_PY_INT, (char *)"SYS_EDGE_Y", (long) wxSYS_EDGE_Y, 0, 0, 0},
25926{ SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_X", (long) wxSYS_HSCROLL_ARROW_X, 0, 0, 0},
25927{ SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_Y", (long) wxSYS_HSCROLL_ARROW_Y, 0, 0, 0},
25928{ SWIG_PY_INT, (char *)"SYS_HTHUMB_X", (long) wxSYS_HTHUMB_X, 0, 0, 0},
25929{ SWIG_PY_INT, (char *)"SYS_ICON_X", (long) wxSYS_ICON_X, 0, 0, 0},
25930{ SWIG_PY_INT, (char *)"SYS_ICON_Y", (long) wxSYS_ICON_Y, 0, 0, 0},
25931{ SWIG_PY_INT, (char *)"SYS_ICONSPACING_X", (long) wxSYS_ICONSPACING_X, 0, 0, 0},
25932{ SWIG_PY_INT, (char *)"SYS_ICONSPACING_Y", (long) wxSYS_ICONSPACING_Y, 0, 0, 0},
25933{ SWIG_PY_INT, (char *)"SYS_WINDOWMIN_X", (long) wxSYS_WINDOWMIN_X, 0, 0, 0},
25934{ SWIG_PY_INT, (char *)"SYS_WINDOWMIN_Y", (long) wxSYS_WINDOWMIN_Y, 0, 0, 0},
25935{ SWIG_PY_INT, (char *)"SYS_SCREEN_X", (long) wxSYS_SCREEN_X, 0, 0, 0},
25936{ SWIG_PY_INT, (char *)"SYS_SCREEN_Y", (long) wxSYS_SCREEN_Y, 0, 0, 0},
25937{ SWIG_PY_INT, (char *)"SYS_FRAMESIZE_X", (long) wxSYS_FRAMESIZE_X, 0, 0, 0},
25938{ SWIG_PY_INT, (char *)"SYS_FRAMESIZE_Y", (long) wxSYS_FRAMESIZE_Y, 0, 0, 0},
25939{ SWIG_PY_INT, (char *)"SYS_SMALLICON_X", (long) wxSYS_SMALLICON_X, 0, 0, 0},
25940{ SWIG_PY_INT, (char *)"SYS_SMALLICON_Y", (long) wxSYS_SMALLICON_Y, 0, 0, 0},
25941{ SWIG_PY_INT, (char *)"SYS_HSCROLL_Y", (long) wxSYS_HSCROLL_Y, 0, 0, 0},
25942{ SWIG_PY_INT, (char *)"SYS_VSCROLL_X", (long) wxSYS_VSCROLL_X, 0, 0, 0},
25943{ SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_X", (long) wxSYS_VSCROLL_ARROW_X, 0, 0, 0},
25944{ SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_Y", (long) wxSYS_VSCROLL_ARROW_Y, 0, 0, 0},
25945{ SWIG_PY_INT, (char *)"SYS_VTHUMB_Y", (long) wxSYS_VTHUMB_Y, 0, 0, 0},
25946{ SWIG_PY_INT, (char *)"SYS_CAPTION_Y", (long) wxSYS_CAPTION_Y, 0, 0, 0},
25947{ SWIG_PY_INT, (char *)"SYS_MENU_Y", (long) wxSYS_MENU_Y, 0, 0, 0},
25948{ SWIG_PY_INT, (char *)"SYS_NETWORK_PRESENT", (long) wxSYS_NETWORK_PRESENT, 0, 0, 0},
25949{ SWIG_PY_INT, (char *)"SYS_PENWINDOWS_PRESENT", (long) wxSYS_PENWINDOWS_PRESENT, 0, 0, 0},
25950{ SWIG_PY_INT, (char *)"SYS_SHOW_SOUNDS", (long) wxSYS_SHOW_SOUNDS, 0, 0, 0},
25951{ SWIG_PY_INT, (char *)"SYS_SWAP_BUTTONS", (long) wxSYS_SWAP_BUTTONS, 0, 0, 0},
25952{ SWIG_PY_INT, (char *)"SYS_CAN_DRAW_FRAME_DECORATIONS", (long) wxSYS_CAN_DRAW_FRAME_DECORATIONS, 0, 0, 0},
25953{ SWIG_PY_INT, (char *)"SYS_CAN_ICONIZE_FRAME", (long) wxSYS_CAN_ICONIZE_FRAME, 0, 0, 0},
25954{ SWIG_PY_INT, (char *)"SYS_SCREEN_NONE", (long) wxSYS_SCREEN_NONE, 0, 0, 0},
25955{ SWIG_PY_INT, (char *)"SYS_SCREEN_TINY", (long) wxSYS_SCREEN_TINY, 0, 0, 0},
25956{ SWIG_PY_INT, (char *)"SYS_SCREEN_PDA", (long) wxSYS_SCREEN_PDA, 0, 0, 0},
25957{ SWIG_PY_INT, (char *)"SYS_SCREEN_SMALL", (long) wxSYS_SCREEN_SMALL, 0, 0, 0},
25958{ SWIG_PY_INT, (char *)"SYS_SCREEN_DESKTOP", (long) wxSYS_SCREEN_DESKTOP, 0, 0, 0},
25959{ SWIG_PY_INT, (char *)"SHUTDOWN_POWEROFF", (long) wxSHUTDOWN_POWEROFF, 0, 0, 0},
25960{ SWIG_PY_INT, (char *)"SHUTDOWN_REBOOT", (long) wxSHUTDOWN_REBOOT, 0, 0, 0},
25961{ SWIG_PY_INT, (char *)"TIMER_CONTINUOUS", (long) wxTIMER_CONTINUOUS, 0, 0, 0},
25962{ SWIG_PY_INT, (char *)"TIMER_ONE_SHOT", (long) wxTIMER_ONE_SHOT, 0, 0, 0},
25963{ SWIG_PY_INT, (char *)"wxEVT_TIMER", (long) wxEVT_TIMER, 0, 0, 0},
25964{ SWIG_PY_INT, (char *)"LOG_FatalError", (long) wxLOG_FatalError, 0, 0, 0},
25965{ SWIG_PY_INT, (char *)"LOG_Error", (long) wxLOG_Error, 0, 0, 0},
25966{ SWIG_PY_INT, (char *)"LOG_Warning", (long) wxLOG_Warning, 0, 0, 0},
25967{ SWIG_PY_INT, (char *)"LOG_Message", (long) wxLOG_Message, 0, 0, 0},
25968{ SWIG_PY_INT, (char *)"LOG_Status", (long) wxLOG_Status, 0, 0, 0},
25969{ SWIG_PY_INT, (char *)"LOG_Info", (long) wxLOG_Info, 0, 0, 0},
25970{ SWIG_PY_INT, (char *)"LOG_Debug", (long) wxLOG_Debug, 0, 0, 0},
25971{ SWIG_PY_INT, (char *)"LOG_Trace", (long) wxLOG_Trace, 0, 0, 0},
25972{ SWIG_PY_INT, (char *)"LOG_Progress", (long) wxLOG_Progress, 0, 0, 0},
25973{ SWIG_PY_INT, (char *)"LOG_User", (long) wxLOG_User, 0, 0, 0},
25974{ SWIG_PY_INT, (char *)"LOG_Max", (long) wxLOG_Max, 0, 0, 0},
25975{ SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0},
25976{ SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0},
25977{ SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0},
25978{ SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0},
25979{ SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0},
25980{ SWIG_PY_INT, (char *)"TraceMemAlloc", (long) 0x0001, 0, 0, 0},
25981{ SWIG_PY_INT, (char *)"TraceMessages", (long) 0x0002, 0, 0, 0},
25982{ SWIG_PY_INT, (char *)"TraceResAlloc", (long) 0x0004, 0, 0, 0},
25983{ SWIG_PY_INT, (char *)"TraceRefCount", (long) 0x0008, 0, 0, 0},
25984{ SWIG_PY_INT, (char *)"TraceOleCalls", (long) 0x0100, 0, 0, 0},
25985{ SWIG_PY_INT, (char *)"PROCESS_DEFAULT", (long) wxPROCESS_DEFAULT, 0, 0, 0},
25986{ SWIG_PY_INT, (char *)"PROCESS_REDIRECT", (long) wxPROCESS_REDIRECT, 0, 0, 0},
25987{ SWIG_PY_INT, (char *)"KILL_OK", (long) wxKILL_OK, 0, 0, 0},
25988{ SWIG_PY_INT, (char *)"KILL_BAD_SIGNAL", (long) wxKILL_BAD_SIGNAL, 0, 0, 0},
25989{ SWIG_PY_INT, (char *)"KILL_ACCESS_DENIED", (long) wxKILL_ACCESS_DENIED, 0, 0, 0},
25990{ SWIG_PY_INT, (char *)"KILL_NO_PROCESS", (long) wxKILL_NO_PROCESS, 0, 0, 0},
25991{ SWIG_PY_INT, (char *)"KILL_ERROR", (long) wxKILL_ERROR, 0, 0, 0},
25992{ SWIG_PY_INT, (char *)"SIGNONE", (long) wxSIGNONE, 0, 0, 0},
25993{ SWIG_PY_INT, (char *)"SIGHUP", (long) wxSIGHUP, 0, 0, 0},
25994{ SWIG_PY_INT, (char *)"SIGINT", (long) wxSIGINT, 0, 0, 0},
25995{ SWIG_PY_INT, (char *)"SIGQUIT", (long) wxSIGQUIT, 0, 0, 0},
25996{ SWIG_PY_INT, (char *)"SIGILL", (long) wxSIGILL, 0, 0, 0},
25997{ SWIG_PY_INT, (char *)"SIGTRAP", (long) wxSIGTRAP, 0, 0, 0},
25998{ SWIG_PY_INT, (char *)"SIGABRT", (long) wxSIGABRT, 0, 0, 0},
25999{ SWIG_PY_INT, (char *)"SIGIOT", (long) wxSIGIOT, 0, 0, 0},
26000{ SWIG_PY_INT, (char *)"SIGEMT", (long) wxSIGEMT, 0, 0, 0},
26001{ SWIG_PY_INT, (char *)"SIGFPE", (long) wxSIGFPE, 0, 0, 0},
26002{ SWIG_PY_INT, (char *)"SIGKILL", (long) wxSIGKILL, 0, 0, 0},
26003{ SWIG_PY_INT, (char *)"SIGBUS", (long) wxSIGBUS, 0, 0, 0},
26004{ SWIG_PY_INT, (char *)"SIGSEGV", (long) wxSIGSEGV, 0, 0, 0},
26005{ SWIG_PY_INT, (char *)"SIGSYS", (long) wxSIGSYS, 0, 0, 0},
26006{ SWIG_PY_INT, (char *)"SIGPIPE", (long) wxSIGPIPE, 0, 0, 0},
26007{ SWIG_PY_INT, (char *)"SIGALRM", (long) wxSIGALRM, 0, 0, 0},
26008{ SWIG_PY_INT, (char *)"SIGTERM", (long) wxSIGTERM, 0, 0, 0},
26009{ SWIG_PY_INT, (char *)"wxEVT_END_PROCESS", (long) wxEVT_END_PROCESS, 0, 0, 0},
26010{ SWIG_PY_INT, (char *)"EXEC_ASYNC", (long) wxEXEC_ASYNC, 0, 0, 0},
26011{ SWIG_PY_INT, (char *)"EXEC_SYNC", (long) wxEXEC_SYNC, 0, 0, 0},
26012{ SWIG_PY_INT, (char *)"EXEC_NOHIDE", (long) wxEXEC_NOHIDE, 0, 0, 0},
26013{ SWIG_PY_INT, (char *)"EXEC_MAKE_GROUP_LEADER", (long) wxEXEC_MAKE_GROUP_LEADER, 0, 0, 0},
26014{ SWIG_PY_INT, (char *)"JOYSTICK1", (long) wxJOYSTICK1, 0, 0, 0},
26015{ SWIG_PY_INT, (char *)"JOYSTICK2", (long) wxJOYSTICK2, 0, 0, 0},
26016{ SWIG_PY_INT, (char *)"JOY_BUTTON_ANY", (long) wxJOY_BUTTON_ANY, 0, 0, 0},
26017{ SWIG_PY_INT, (char *)"JOY_BUTTON1", (long) wxJOY_BUTTON1, 0, 0, 0},
26018{ SWIG_PY_INT, (char *)"JOY_BUTTON2", (long) wxJOY_BUTTON2, 0, 0, 0},
26019{ SWIG_PY_INT, (char *)"JOY_BUTTON3", (long) wxJOY_BUTTON3, 0, 0, 0},
26020{ SWIG_PY_INT, (char *)"JOY_BUTTON4", (long) wxJOY_BUTTON4, 0, 0, 0},
26021{ SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_DOWN", (long) wxEVT_JOY_BUTTON_DOWN, 0, 0, 0},
26022{ SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_UP", (long) wxEVT_JOY_BUTTON_UP, 0, 0, 0},
26023{ SWIG_PY_INT, (char *)"wxEVT_JOY_MOVE", (long) wxEVT_JOY_MOVE, 0, 0, 0},
26024{ SWIG_PY_INT, (char *)"wxEVT_JOY_ZMOVE", (long) wxEVT_JOY_ZMOVE, 0, 0, 0},
26025{ SWIG_PY_INT, (char *)"MAILCAP_STANDARD", (long) wxMAILCAP_STANDARD, 0, 0, 0},
26026{ SWIG_PY_INT, (char *)"MAILCAP_NETSCAPE", (long) wxMAILCAP_NETSCAPE, 0, 0, 0},
26027{ SWIG_PY_INT, (char *)"MAILCAP_KDE", (long) wxMAILCAP_KDE, 0, 0, 0},
26028{ SWIG_PY_INT, (char *)"MAILCAP_GNOME", (long) wxMAILCAP_GNOME, 0, 0, 0},
26029{ SWIG_PY_INT, (char *)"MAILCAP_ALL", (long) wxMAILCAP_ALL, 0, 0, 0},
26030{ SWIG_PY_INT, (char *)"CONFIG_USE_LOCAL_FILE", (long) wxCONFIG_USE_LOCAL_FILE, 0, 0, 0},
26031{ SWIG_PY_INT, (char *)"CONFIG_USE_GLOBAL_FILE", (long) wxCONFIG_USE_GLOBAL_FILE, 0, 0, 0},
26032{ SWIG_PY_INT, (char *)"CONFIG_USE_RELATIVE_PATH", (long) wxCONFIG_USE_RELATIVE_PATH, 0, 0, 0},
26033{ SWIG_PY_INT, (char *)"CONFIG_USE_NO_ESCAPE_CHARACTERS", (long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS, 0, 0, 0},
26034{ SWIG_PY_INT, (char *)"ConfigBase_Type_Unknown", (long) wxConfigBase::Type_Unknown, 0, 0, 0},
26035{ SWIG_PY_INT, (char *)"ConfigBase_Type_String", (long) wxConfigBase::Type_String, 0, 0, 0},
26036{ SWIG_PY_INT, (char *)"ConfigBase_Type_Boolean", (long) wxConfigBase::Type_Boolean, 0, 0, 0},
26037{ SWIG_PY_INT, (char *)"ConfigBase_Type_Integer", (long) wxConfigBase::Type_Integer, 0, 0, 0},
26038{ SWIG_PY_INT, (char *)"ConfigBase_Type_Float", (long) wxConfigBase::Type_Float, 0, 0, 0},
26039{ SWIG_PY_INT, (char *)"DateTime_Local", (long) wxDateTime::Local, 0, 0, 0},
26040{ SWIG_PY_INT, (char *)"DateTime_GMT_12", (long) wxDateTime::GMT_12, 0, 0, 0},
26041{ SWIG_PY_INT, (char *)"DateTime_GMT_11", (long) wxDateTime::GMT_11, 0, 0, 0},
26042{ SWIG_PY_INT, (char *)"DateTime_GMT_10", (long) wxDateTime::GMT_10, 0, 0, 0},
26043{ SWIG_PY_INT, (char *)"DateTime_GMT_9", (long) wxDateTime::GMT_9, 0, 0, 0},
26044{ SWIG_PY_INT, (char *)"DateTime_GMT_8", (long) wxDateTime::GMT_8, 0, 0, 0},
26045{ SWIG_PY_INT, (char *)"DateTime_GMT_7", (long) wxDateTime::GMT_7, 0, 0, 0},
26046{ SWIG_PY_INT, (char *)"DateTime_GMT_6", (long) wxDateTime::GMT_6, 0, 0, 0},
26047{ SWIG_PY_INT, (char *)"DateTime_GMT_5", (long) wxDateTime::GMT_5, 0, 0, 0},
26048{ SWIG_PY_INT, (char *)"DateTime_GMT_4", (long) wxDateTime::GMT_4, 0, 0, 0},
26049{ SWIG_PY_INT, (char *)"DateTime_GMT_3", (long) wxDateTime::GMT_3, 0, 0, 0},
26050{ SWIG_PY_INT, (char *)"DateTime_GMT_2", (long) wxDateTime::GMT_2, 0, 0, 0},
26051{ SWIG_PY_INT, (char *)"DateTime_GMT_1", (long) wxDateTime::GMT_1, 0, 0, 0},
26052{ SWIG_PY_INT, (char *)"DateTime_GMT0", (long) wxDateTime::GMT0, 0, 0, 0},
26053{ SWIG_PY_INT, (char *)"DateTime_GMT1", (long) wxDateTime::GMT1, 0, 0, 0},
26054{ SWIG_PY_INT, (char *)"DateTime_GMT2", (long) wxDateTime::GMT2, 0, 0, 0},
26055{ SWIG_PY_INT, (char *)"DateTime_GMT3", (long) wxDateTime::GMT3, 0, 0, 0},
26056{ SWIG_PY_INT, (char *)"DateTime_GMT4", (long) wxDateTime::GMT4, 0, 0, 0},
26057{ SWIG_PY_INT, (char *)"DateTime_GMT5", (long) wxDateTime::GMT5, 0, 0, 0},
26058{ SWIG_PY_INT, (char *)"DateTime_GMT6", (long) wxDateTime::GMT6, 0, 0, 0},
26059{ SWIG_PY_INT, (char *)"DateTime_GMT7", (long) wxDateTime::GMT7, 0, 0, 0},
26060{ SWIG_PY_INT, (char *)"DateTime_GMT8", (long) wxDateTime::GMT8, 0, 0, 0},
26061{ SWIG_PY_INT, (char *)"DateTime_GMT9", (long) wxDateTime::GMT9, 0, 0, 0},
26062{ SWIG_PY_INT, (char *)"DateTime_GMT10", (long) wxDateTime::GMT10, 0, 0, 0},
26063{ SWIG_PY_INT, (char *)"DateTime_GMT11", (long) wxDateTime::GMT11, 0, 0, 0},
26064{ SWIG_PY_INT, (char *)"DateTime_GMT12", (long) wxDateTime::GMT12, 0, 0, 0},
26065{ SWIG_PY_INT, (char *)"DateTime_WET", (long) wxDateTime::WET, 0, 0, 0},
26066{ SWIG_PY_INT, (char *)"DateTime_WEST", (long) wxDateTime::WEST, 0, 0, 0},
26067{ SWIG_PY_INT, (char *)"DateTime_CET", (long) wxDateTime::CET, 0, 0, 0},
26068{ SWIG_PY_INT, (char *)"DateTime_CEST", (long) wxDateTime::CEST, 0, 0, 0},
26069{ SWIG_PY_INT, (char *)"DateTime_EET", (long) wxDateTime::EET, 0, 0, 0},
26070{ SWIG_PY_INT, (char *)"DateTime_EEST", (long) wxDateTime::EEST, 0, 0, 0},
26071{ SWIG_PY_INT, (char *)"DateTime_MSK", (long) wxDateTime::MSK, 0, 0, 0},
26072{ SWIG_PY_INT, (char *)"DateTime_MSD", (long) wxDateTime::MSD, 0, 0, 0},
26073{ SWIG_PY_INT, (char *)"DateTime_AST", (long) wxDateTime::AST, 0, 0, 0},
26074{ SWIG_PY_INT, (char *)"DateTime_ADT", (long) wxDateTime::ADT, 0, 0, 0},
26075{ SWIG_PY_INT, (char *)"DateTime_EST", (long) wxDateTime::EST, 0, 0, 0},
26076{ SWIG_PY_INT, (char *)"DateTime_EDT", (long) wxDateTime::EDT, 0, 0, 0},
26077{ SWIG_PY_INT, (char *)"DateTime_CST", (long) wxDateTime::CST, 0, 0, 0},
26078{ SWIG_PY_INT, (char *)"DateTime_CDT", (long) wxDateTime::CDT, 0, 0, 0},
26079{ SWIG_PY_INT, (char *)"DateTime_MST", (long) wxDateTime::MST, 0, 0, 0},
26080{ SWIG_PY_INT, (char *)"DateTime_MDT", (long) wxDateTime::MDT, 0, 0, 0},
26081{ SWIG_PY_INT, (char *)"DateTime_PST", (long) wxDateTime::PST, 0, 0, 0},
26082{ SWIG_PY_INT, (char *)"DateTime_PDT", (long) wxDateTime::PDT, 0, 0, 0},
26083{ SWIG_PY_INT, (char *)"DateTime_HST", (long) wxDateTime::HST, 0, 0, 0},
26084{ SWIG_PY_INT, (char *)"DateTime_AKST", (long) wxDateTime::AKST, 0, 0, 0},
26085{ SWIG_PY_INT, (char *)"DateTime_AKDT", (long) wxDateTime::AKDT, 0, 0, 0},
26086{ SWIG_PY_INT, (char *)"DateTime_A_WST", (long) wxDateTime::A_WST, 0, 0, 0},
26087{ SWIG_PY_INT, (char *)"DateTime_A_CST", (long) wxDateTime::A_CST, 0, 0, 0},
26088{ SWIG_PY_INT, (char *)"DateTime_A_EST", (long) wxDateTime::A_EST, 0, 0, 0},
26089{ SWIG_PY_INT, (char *)"DateTime_A_ESST", (long) wxDateTime::A_ESST, 0, 0, 0},
26090{ SWIG_PY_INT, (char *)"DateTime_UTC", (long) wxDateTime::UTC, 0, 0, 0},
26091{ SWIG_PY_INT, (char *)"DateTime_Gregorian", (long) wxDateTime::Gregorian, 0, 0, 0},
26092{ SWIG_PY_INT, (char *)"DateTime_Julian", (long) wxDateTime::Julian, 0, 0, 0},
26093{ SWIG_PY_INT, (char *)"DateTime_Gr_Unknown", (long) wxDateTime::Gr_Unknown, 0, 0, 0},
26094{ SWIG_PY_INT, (char *)"DateTime_Gr_Standard", (long) wxDateTime::Gr_Standard, 0, 0, 0},
26095{ SWIG_PY_INT, (char *)"DateTime_Gr_Alaska", (long) wxDateTime::Gr_Alaska, 0, 0, 0},
26096{ SWIG_PY_INT, (char *)"DateTime_Gr_Albania", (long) wxDateTime::Gr_Albania, 0, 0, 0},
26097{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria", (long) wxDateTime::Gr_Austria, 0, 0, 0},
26098{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Brixen", (long) wxDateTime::Gr_Austria_Brixen, 0, 0, 0},
26099{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Salzburg", (long) wxDateTime::Gr_Austria_Salzburg, 0, 0, 0},
26100{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Tyrol", (long) wxDateTime::Gr_Austria_Tyrol, 0, 0, 0},
26101{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Carinthia", (long) wxDateTime::Gr_Austria_Carinthia, 0, 0, 0},
26102{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Styria", (long) wxDateTime::Gr_Austria_Styria, 0, 0, 0},
26103{ SWIG_PY_INT, (char *)"DateTime_Gr_Belgium", (long) wxDateTime::Gr_Belgium, 0, 0, 0},
26104{ SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria", (long) wxDateTime::Gr_Bulgaria, 0, 0, 0},
26105{ SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_1", (long) wxDateTime::Gr_Bulgaria_1, 0, 0, 0},
26106{ SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_2", (long) wxDateTime::Gr_Bulgaria_2, 0, 0, 0},
26107{ SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_3", (long) wxDateTime::Gr_Bulgaria_3, 0, 0, 0},
26108{ SWIG_PY_INT, (char *)"DateTime_Gr_Canada", (long) wxDateTime::Gr_Canada, 0, 0, 0},
26109{ SWIG_PY_INT, (char *)"DateTime_Gr_China", (long) wxDateTime::Gr_China, 0, 0, 0},
26110{ SWIG_PY_INT, (char *)"DateTime_Gr_China_1", (long) wxDateTime::Gr_China_1, 0, 0, 0},
26111{ SWIG_PY_INT, (char *)"DateTime_Gr_China_2", (long) wxDateTime::Gr_China_2, 0, 0, 0},
26112{ SWIG_PY_INT, (char *)"DateTime_Gr_Czechoslovakia", (long) wxDateTime::Gr_Czechoslovakia, 0, 0, 0},
26113{ SWIG_PY_INT, (char *)"DateTime_Gr_Denmark", (long) wxDateTime::Gr_Denmark, 0, 0, 0},
26114{ SWIG_PY_INT, (char *)"DateTime_Gr_Egypt", (long) wxDateTime::Gr_Egypt, 0, 0, 0},
26115{ SWIG_PY_INT, (char *)"DateTime_Gr_Estonia", (long) wxDateTime::Gr_Estonia, 0, 0, 0},
26116{ SWIG_PY_INT, (char *)"DateTime_Gr_Finland", (long) wxDateTime::Gr_Finland, 0, 0, 0},
26117{ SWIG_PY_INT, (char *)"DateTime_Gr_France", (long) wxDateTime::Gr_France, 0, 0, 0},
26118{ SWIG_PY_INT, (char *)"DateTime_Gr_France_Alsace", (long) wxDateTime::Gr_France_Alsace, 0, 0, 0},
26119{ SWIG_PY_INT, (char *)"DateTime_Gr_France_Lorraine", (long) wxDateTime::Gr_France_Lorraine, 0, 0, 0},
26120{ SWIG_PY_INT, (char *)"DateTime_Gr_France_Strasbourg", (long) wxDateTime::Gr_France_Strasbourg, 0, 0, 0},
26121{ SWIG_PY_INT, (char *)"DateTime_Gr_Germany", (long) wxDateTime::Gr_Germany, 0, 0, 0},
26122{ SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Catholic", (long) wxDateTime::Gr_Germany_Catholic, 0, 0, 0},
26123{ SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Prussia", (long) wxDateTime::Gr_Germany_Prussia, 0, 0, 0},
26124{ SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Protestant", (long) wxDateTime::Gr_Germany_Protestant, 0, 0, 0},
26125{ SWIG_PY_INT, (char *)"DateTime_Gr_GreatBritain", (long) wxDateTime::Gr_GreatBritain, 0, 0, 0},
26126{ SWIG_PY_INT, (char *)"DateTime_Gr_Greece", (long) wxDateTime::Gr_Greece, 0, 0, 0},
26127{ SWIG_PY_INT, (char *)"DateTime_Gr_Hungary", (long) wxDateTime::Gr_Hungary, 0, 0, 0},
26128{ SWIG_PY_INT, (char *)"DateTime_Gr_Ireland", (long) wxDateTime::Gr_Ireland, 0, 0, 0},
26129{ SWIG_PY_INT, (char *)"DateTime_Gr_Italy", (long) wxDateTime::Gr_Italy, 0, 0, 0},
26130{ SWIG_PY_INT, (char *)"DateTime_Gr_Japan", (long) wxDateTime::Gr_Japan, 0, 0, 0},
26131{ SWIG_PY_INT, (char *)"DateTime_Gr_Japan_1", (long) wxDateTime::Gr_Japan_1, 0, 0, 0},
26132{ SWIG_PY_INT, (char *)"DateTime_Gr_Japan_2", (long) wxDateTime::Gr_Japan_2, 0, 0, 0},
26133{ SWIG_PY_INT, (char *)"DateTime_Gr_Japan_3", (long) wxDateTime::Gr_Japan_3, 0, 0, 0},
26134{ SWIG_PY_INT, (char *)"DateTime_Gr_Latvia", (long) wxDateTime::Gr_Latvia, 0, 0, 0},
26135{ SWIG_PY_INT, (char *)"DateTime_Gr_Lithuania", (long) wxDateTime::Gr_Lithuania, 0, 0, 0},
26136{ SWIG_PY_INT, (char *)"DateTime_Gr_Luxemburg", (long) wxDateTime::Gr_Luxemburg, 0, 0, 0},
26137{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands", (long) wxDateTime::Gr_Netherlands, 0, 0, 0},
26138{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Groningen", (long) wxDateTime::Gr_Netherlands_Groningen, 0, 0, 0},
26139{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Gelderland", (long) wxDateTime::Gr_Netherlands_Gelderland, 0, 0, 0},
26140{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Utrecht", (long) wxDateTime::Gr_Netherlands_Utrecht, 0, 0, 0},
26141{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Friesland", (long) wxDateTime::Gr_Netherlands_Friesland, 0, 0, 0},
26142{ SWIG_PY_INT, (char *)"DateTime_Gr_Norway", (long) wxDateTime::Gr_Norway, 0, 0, 0},
26143{ SWIG_PY_INT, (char *)"DateTime_Gr_Poland", (long) wxDateTime::Gr_Poland, 0, 0, 0},
26144{ SWIG_PY_INT, (char *)"DateTime_Gr_Portugal", (long) wxDateTime::Gr_Portugal, 0, 0, 0},
26145{ SWIG_PY_INT, (char *)"DateTime_Gr_Romania", (long) wxDateTime::Gr_Romania, 0, 0, 0},
26146{ SWIG_PY_INT, (char *)"DateTime_Gr_Russia", (long) wxDateTime::Gr_Russia, 0, 0, 0},
26147{ SWIG_PY_INT, (char *)"DateTime_Gr_Scotland", (long) wxDateTime::Gr_Scotland, 0, 0, 0},
26148{ SWIG_PY_INT, (char *)"DateTime_Gr_Spain", (long) wxDateTime::Gr_Spain, 0, 0, 0},
26149{ SWIG_PY_INT, (char *)"DateTime_Gr_Sweden", (long) wxDateTime::Gr_Sweden, 0, 0, 0},
26150{ SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland", (long) wxDateTime::Gr_Switzerland, 0, 0, 0},
26151{ SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Catholic", (long) wxDateTime::Gr_Switzerland_Catholic, 0, 0, 0},
26152{ SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Protestant", (long) wxDateTime::Gr_Switzerland_Protestant, 0, 0, 0},
26153{ SWIG_PY_INT, (char *)"DateTime_Gr_Turkey", (long) wxDateTime::Gr_Turkey, 0, 0, 0},
26154{ SWIG_PY_INT, (char *)"DateTime_Gr_USA", (long) wxDateTime::Gr_USA, 0, 0, 0},
26155{ SWIG_PY_INT, (char *)"DateTime_Gr_Wales", (long) wxDateTime::Gr_Wales, 0, 0, 0},
26156{ SWIG_PY_INT, (char *)"DateTime_Gr_Yugoslavia", (long) wxDateTime::Gr_Yugoslavia, 0, 0, 0},
26157{ SWIG_PY_INT, (char *)"DateTime_Country_Unknown", (long) wxDateTime::Country_Unknown, 0, 0, 0},
26158{ SWIG_PY_INT, (char *)"DateTime_Country_Default", (long) wxDateTime::Country_Default, 0, 0, 0},
26159{ SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_Start", (long) wxDateTime::Country_WesternEurope_Start, 0, 0, 0},
26160{ SWIG_PY_INT, (char *)"DateTime_Country_EEC", (long) wxDateTime::Country_EEC, 0, 0, 0},
26161{ SWIG_PY_INT, (char *)"DateTime_France", (long) wxDateTime::France, 0, 0, 0},
26162{ SWIG_PY_INT, (char *)"DateTime_Germany", (long) wxDateTime::Germany, 0, 0, 0},
26163{ SWIG_PY_INT, (char *)"DateTime_UK", (long) wxDateTime::UK, 0, 0, 0},
26164{ SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_End", (long) wxDateTime::Country_WesternEurope_End, 0, 0, 0},
26165{ SWIG_PY_INT, (char *)"DateTime_Russia", (long) wxDateTime::Russia, 0, 0, 0},
26166{ SWIG_PY_INT, (char *)"DateTime_USA", (long) wxDateTime::USA, 0, 0, 0},
26167{ SWIG_PY_INT, (char *)"DateTime_Jan", (long) wxDateTime::Jan, 0, 0, 0},
26168{ SWIG_PY_INT, (char *)"DateTime_Feb", (long) wxDateTime::Feb, 0, 0, 0},
26169{ SWIG_PY_INT, (char *)"DateTime_Mar", (long) wxDateTime::Mar, 0, 0, 0},
26170{ SWIG_PY_INT, (char *)"DateTime_Apr", (long) wxDateTime::Apr, 0, 0, 0},
26171{ SWIG_PY_INT, (char *)"DateTime_May", (long) wxDateTime::May, 0, 0, 0},
26172{ SWIG_PY_INT, (char *)"DateTime_Jun", (long) wxDateTime::Jun, 0, 0, 0},
26173{ SWIG_PY_INT, (char *)"DateTime_Jul", (long) wxDateTime::Jul, 0, 0, 0},
26174{ SWIG_PY_INT, (char *)"DateTime_Aug", (long) wxDateTime::Aug, 0, 0, 0},
26175{ SWIG_PY_INT, (char *)"DateTime_Sep", (long) wxDateTime::Sep, 0, 0, 0},
26176{ SWIG_PY_INT, (char *)"DateTime_Oct", (long) wxDateTime::Oct, 0, 0, 0},
26177{ SWIG_PY_INT, (char *)"DateTime_Nov", (long) wxDateTime::Nov, 0, 0, 0},
26178{ SWIG_PY_INT, (char *)"DateTime_Dec", (long) wxDateTime::Dec, 0, 0, 0},
26179{ SWIG_PY_INT, (char *)"DateTime_Inv_Month", (long) wxDateTime::Inv_Month, 0, 0, 0},
26180{ SWIG_PY_INT, (char *)"DateTime_Sun", (long) wxDateTime::Sun, 0, 0, 0},
26181{ SWIG_PY_INT, (char *)"DateTime_Mon", (long) wxDateTime::Mon, 0, 0, 0},
26182{ SWIG_PY_INT, (char *)"DateTime_Tue", (long) wxDateTime::Tue, 0, 0, 0},
26183{ SWIG_PY_INT, (char *)"DateTime_Wed", (long) wxDateTime::Wed, 0, 0, 0},
26184{ SWIG_PY_INT, (char *)"DateTime_Thu", (long) wxDateTime::Thu, 0, 0, 0},
26185{ SWIG_PY_INT, (char *)"DateTime_Fri", (long) wxDateTime::Fri, 0, 0, 0},
26186{ SWIG_PY_INT, (char *)"DateTime_Sat", (long) wxDateTime::Sat, 0, 0, 0},
26187{ SWIG_PY_INT, (char *)"DateTime_Inv_WeekDay", (long) wxDateTime::Inv_WeekDay, 0, 0, 0},
26188{ SWIG_PY_INT, (char *)"DateTime_Inv_Year", (long) wxDateTime::Inv_Year, 0, 0, 0},
26189{ SWIG_PY_INT, (char *)"DateTime_Name_Full", (long) wxDateTime::Name_Full, 0, 0, 0},
26190{ SWIG_PY_INT, (char *)"DateTime_Name_Abbr", (long) wxDateTime::Name_Abbr, 0, 0, 0},
26191{ SWIG_PY_INT, (char *)"DateTime_Default_First", (long) wxDateTime::Default_First, 0, 0, 0},
26192{ SWIG_PY_INT, (char *)"DateTime_Monday_First", (long) wxDateTime::Monday_First, 0, 0, 0},
26193{ SWIG_PY_INT, (char *)"DateTime_Sunday_First", (long) wxDateTime::Sunday_First, 0, 0, 0},
26194{ SWIG_PY_INT, (char *)"DF_INVALID", (long) wxDF_INVALID, 0, 0, 0},
26195{ SWIG_PY_INT, (char *)"DF_TEXT", (long) wxDF_TEXT, 0, 0, 0},
26196{ SWIG_PY_INT, (char *)"DF_BITMAP", (long) wxDF_BITMAP, 0, 0, 0},
26197{ SWIG_PY_INT, (char *)"DF_METAFILE", (long) wxDF_METAFILE, 0, 0, 0},
26198{ SWIG_PY_INT, (char *)"DF_SYLK", (long) wxDF_SYLK, 0, 0, 0},
26199{ SWIG_PY_INT, (char *)"DF_DIF", (long) wxDF_DIF, 0, 0, 0},
26200{ SWIG_PY_INT, (char *)"DF_TIFF", (long) wxDF_TIFF, 0, 0, 0},
26201{ SWIG_PY_INT, (char *)"DF_OEMTEXT", (long) wxDF_OEMTEXT, 0, 0, 0},
26202{ SWIG_PY_INT, (char *)"DF_DIB", (long) wxDF_DIB, 0, 0, 0},
26203{ SWIG_PY_INT, (char *)"DF_PALETTE", (long) wxDF_PALETTE, 0, 0, 0},
26204{ SWIG_PY_INT, (char *)"DF_PENDATA", (long) wxDF_PENDATA, 0, 0, 0},
26205{ SWIG_PY_INT, (char *)"DF_RIFF", (long) wxDF_RIFF, 0, 0, 0},
26206{ SWIG_PY_INT, (char *)"DF_WAVE", (long) wxDF_WAVE, 0, 0, 0},
26207{ SWIG_PY_INT, (char *)"DF_UNICODETEXT", (long) wxDF_UNICODETEXT, 0, 0, 0},
26208{ SWIG_PY_INT, (char *)"DF_ENHMETAFILE", (long) wxDF_ENHMETAFILE, 0, 0, 0},
26209{ SWIG_PY_INT, (char *)"DF_FILENAME", (long) wxDF_FILENAME, 0, 0, 0},
26210{ SWIG_PY_INT, (char *)"DF_LOCALE", (long) wxDF_LOCALE, 0, 0, 0},
26211{ SWIG_PY_INT, (char *)"DF_PRIVATE", (long) wxDF_PRIVATE, 0, 0, 0},
26212{ SWIG_PY_INT, (char *)"DF_HTML", (long) wxDF_HTML, 0, 0, 0},
26213{ SWIG_PY_INT, (char *)"DF_MAX", (long) wxDF_MAX, 0, 0, 0},
26214{ SWIG_PY_INT, (char *)"DataObject_Get", (long) wxDataObject::Get, 0, 0, 0},
26215{ SWIG_PY_INT, (char *)"DataObject_Set", (long) wxDataObject::Set, 0, 0, 0},
26216{ SWIG_PY_INT, (char *)"DataObject_Both", (long) wxDataObject::Both, 0, 0, 0},
26217{ SWIG_PY_INT, (char *)"Drag_CopyOnly", (long) wxDrag_CopyOnly, 0, 0, 0},
26218{ SWIG_PY_INT, (char *)"Drag_AllowMove", (long) wxDrag_AllowMove, 0, 0, 0},
26219{ SWIG_PY_INT, (char *)"Drag_DefaultMove", (long) wxDrag_DefaultMove, 0, 0, 0},
26220{ SWIG_PY_INT, (char *)"DragError", (long) wxDragError, 0, 0, 0},
26221{ SWIG_PY_INT, (char *)"DragNone", (long) wxDragNone, 0, 0, 0},
26222{ SWIG_PY_INT, (char *)"DragCopy", (long) wxDragCopy, 0, 0, 0},
26223{ SWIG_PY_INT, (char *)"DragMove", (long) wxDragMove, 0, 0, 0},
26224{ SWIG_PY_INT, (char *)"DragLink", (long) wxDragLink, 0, 0, 0},
26225{ SWIG_PY_INT, (char *)"DragCancel", (long) wxDragCancel, 0, 0, 0},
26226{0}};
26227
26228#ifdef __cplusplus
26229}
26230#endif
26231
26232#ifdef __cplusplus
26233extern "C"
26234#endif
26235SWIGEXPORT(void) SWIG_init(void) {
26236 static PyObject *SWIG_globals = 0;
26237 static int typeinit = 0;
26238 PyObject *m, *d;
26239 int i;
26240 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
26241 m = Py_InitModule((char *) SWIG_name, SwigMethods);
26242 d = PyModule_GetDict(m);
26243
26244 if (!typeinit) {
26245 for (i = 0; swig_types_initial[i]; i++) {
26246 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
26247 }
26248 typeinit = 1;
26249 }
26250 SWIG_InstallConstants(d,swig_const_table);
26251
26252 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
26253 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
26254
26255 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
26256
26257 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
26258 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
26259 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
26260 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
26261 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
26262 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
26263 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
26264 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
26265 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
26266 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
26267 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
26268 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
26269 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
26270 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
26271 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
26272 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
26273 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
26274 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
26275 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
26276 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
26277 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
26278 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
26279 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
26280 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
26281 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
26282 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
26283 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
26284 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
26285 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
26286 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
26287 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
26288 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
26289 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
26290 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
26291 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
26292 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
26293 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
26294 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
26295 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
26296 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
26297 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
26298 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
26299 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
26300 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
26301
26302 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
26303
26304 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
26305
26306 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
26307 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
26308 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
26309 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
26310
26311 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
26312}
26313