]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/misc_wrap.cpp
Applied patch [ 845171 ] Use transparancy mask in wxBitmapShape
[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
cc6dd355
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
d14a1e28
RD
50
51/***********************************************************************
52 * common.swg for wxPython
53 *
54 * Include only the function prototypes and such from SWIG's common.swg,
55 * but not the runtime functions themselves. This helps keep the
56 * wrapper files clean of unnecessary stuff that is in the libpy.c file
57 * anyway.
58 *
59 ************************************************************************/
60
61#include <string.h>
62
cc6dd355
RD
63#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
64# if defined(_MSC_VER) || defined(__GNUC__)
65# if defined(STATIC_LINKED)
66# define SWIGEXPORT(a) a
67# define SWIGIMPORT(a) extern a
68# else
69# define SWIGEXPORT(a) __declspec(dllexport) a
70# define SWIGIMPORT(a) extern a
71# endif
72# else
73# if defined(__BORLANDC__)
74# define SWIGEXPORT(a) a _export
75# define SWIGIMPORT(a) a _export
76# else
77# define SWIGEXPORT(a) a
78# define SWIGIMPORT(a) a
79# endif
80# endif
d14a1e28 81#else
cc6dd355
RD
82# define SWIGEXPORT(a) a
83# define SWIGIMPORT(a) a
d14a1e28
RD
84#endif
85
86#ifdef SWIG_GLOBAL
cc6dd355 87# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 88#else
cc6dd355 89# define SWIGRUNTIME(a) static a
d14a1e28
RD
90#endif
91
d14a1e28
RD
92#ifdef __cplusplus
93extern "C" {
94#endif
95
96typedef void *(*swig_converter_func)(void *);
97typedef struct swig_type_info *(*swig_dycast_func)(void **);
98
99typedef struct swig_type_info {
cc6dd355 100 const char *name;
d14a1e28
RD
101 swig_converter_func converter;
102 const char *str;
cc6dd355 103 void *clientdata;
d14a1e28
RD
104 swig_dycast_func dcast;
105 struct swig_type_info *next;
106 struct swig_type_info *prev;
107} swig_type_info;
108
109
110SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
111SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
112SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
113SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
114SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
115SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
116SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
cc6dd355
RD
117SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
118SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
119
120
121#ifdef __cplusplus
122}
9d1d5697 123
d14a1e28
RD
124#endif
125
cc6dd355 126
d14a1e28
RD
127/***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
d14a1e28
RD
137#include "Python.h"
138
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
d14a1e28
RD
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187
cc6dd355
RD
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 196
d14a1e28
RD
197
198
199/* Contract support */
200
9d1d5697 201#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 202
d14a1e28
RD
203#ifdef __cplusplus
204}
205#endif
206
207
208
209/* -------- TYPES TABLE (BEGIN) -------- */
210
211#define SWIGTYPE_p_wxLogChain swig_types[0]
212#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
213#define SWIGTYPE_p_wxFileHistory swig_types[2]
214#define SWIGTYPE_p_wxLog swig_types[3]
215#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4]
216#define SWIGTYPE_p_wxMenu swig_types[5]
217#define SWIGTYPE_p_wxEvent swig_types[6]
218#define SWIGTYPE_p_wxConfigBase swig_types[7]
219#define SWIGTYPE_p_wxWave swig_types[8]
220#define SWIGTYPE_p_wxFileType swig_types[9]
221#define SWIGTYPE_p_wxLogGui swig_types[10]
222#define SWIGTYPE_p_wxFont swig_types[11]
223#define SWIGTYPE_p_wxDataFormat swig_types[12]
224#define SWIGTYPE_p_wxTimerEvent swig_types[13]
225#define SWIGTYPE_p_wxCaret swig_types[14]
226#define SWIGTYPE_p_int swig_types[15]
227#define SWIGTYPE_p_wxSize swig_types[16]
228#define SWIGTYPE_p_wxClipboard swig_types[17]
229#define SWIGTYPE_p_wxStopWatch swig_types[18]
230#define SWIGTYPE_p_wxDC swig_types[19]
231#define SWIGTYPE_p_wxClipboardLocker swig_types[20]
232#define SWIGTYPE_p_wxIcon swig_types[21]
233#define SWIGTYPE_p_wxLogStderr swig_types[22]
234#define SWIGTYPE_p_wxLogTextCtrl swig_types[23]
235#define SWIGTYPE_p_wxTextCtrl swig_types[24]
236#define SWIGTYPE_p_wxBusyCursor swig_types[25]
237#define SWIGTYPE_p_wxFileDataObject swig_types[26]
238#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
239#define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
240#define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
241#define SWIGTYPE_p_wxTextDataObject swig_types[30]
242#define SWIGTYPE_p_wxDataObject swig_types[31]
243#define SWIGTYPE_p_wxCustomDataObject swig_types[32]
244#define SWIGTYPE_p_wxURLDataObject swig_types[33]
245#define SWIGTYPE_p_wxMetafileDataObject swig_types[34]
246#define SWIGTYPE_p_wxTimerRunner swig_types[35]
247#define SWIGTYPE_p_wxLogWindow swig_types[36]
248#define SWIGTYPE_p_wxTimeSpan swig_types[37]
249#define SWIGTYPE_p_wxArrayString swig_types[38]
250#define SWIGTYPE_p_wxWindowDisabler swig_types[39]
251#define SWIGTYPE_p_wxToolTip swig_types[40]
252#define SWIGTYPE_p_wxDataObjectComposite swig_types[41]
253#define SWIGTYPE_p_wxFileConfig swig_types[42]
254#define SWIGTYPE_p_wxSystemSettings swig_types[43]
255#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[44]
256#define SWIGTYPE_p_wxDataObjectSimple swig_types[45]
257#define SWIGTYPE_p_wxEvtHandler swig_types[46]
258#define SWIGTYPE_p_wxRect swig_types[47]
259#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[48]
260#define SWIGTYPE_p_wxFileTypeInfo swig_types[49]
261#define SWIGTYPE_p_wxFrame swig_types[50]
262#define SWIGTYPE_p_wxTimer swig_types[51]
263#define SWIGTYPE_p_wxMimeTypesManager swig_types[52]
264#define SWIGTYPE_p_wxPyArtProvider swig_types[53]
265#define SWIGTYPE_p_wxPyTipProvider swig_types[54]
266#define SWIGTYPE_p_wxTipProvider swig_types[55]
267#define SWIGTYPE_p_wxJoystick swig_types[56]
268#define SWIGTYPE_p_wxSystemOptions swig_types[57]
269#define SWIGTYPE_p_wxPoint swig_types[58]
270#define SWIGTYPE_p_wxJoystickEvent swig_types[59]
271#define SWIGTYPE_p_wxCursor swig_types[60]
272#define SWIGTYPE_p_wxObject swig_types[61]
273#define SWIGTYPE_p_wxOutputStream swig_types[62]
274#define SWIGTYPE_p_wxDateTime swig_types[63]
275#define SWIGTYPE_p_wxPyDropSource swig_types[64]
276#define SWIGTYPE_p_wxWindow swig_types[65]
277#define SWIGTYPE_p_wxString swig_types[66]
278#define SWIGTYPE_p_wxPyProcess swig_types[67]
279#define SWIGTYPE_p_wxBitmap swig_types[68]
280#define SWIGTYPE_p_wxConfig swig_types[69]
281#define SWIGTYPE_p_wxChar swig_types[70]
282#define SWIGTYPE_p_wxBusyInfo swig_types[71]
283#define SWIGTYPE_p_wxPyDropTarget swig_types[72]
284#define SWIGTYPE_p_wxPyTextDropTarget swig_types[73]
285#define SWIGTYPE_p_wxPyFileDropTarget swig_types[74]
286#define SWIGTYPE_p_wxProcessEvent swig_types[75]
287#define SWIGTYPE_p_wxPyLog swig_types[76]
288#define SWIGTYPE_p_wxLogNull swig_types[77]
289#define SWIGTYPE_p_wxColour swig_types[78]
290#define SWIGTYPE_p_wxConfigPathChanger swig_types[79]
291#define SWIGTYPE_p_wxPyTimer swig_types[80]
292#define SWIGTYPE_p_wxDateSpan swig_types[81]
293static swig_type_info *swig_types[83];
294
295/* -------- TYPES TABLE (END) -------- */
296
297
298/*-----------------------------------------------
299 @(target):= _misc.so
300 ------------------------------------------------*/
301#define SWIG_init init_misc
302
303#define SWIG_name "_misc"
304
305#include "wx/wxPython/wxPython.h"
306#include "wx/wxPython/pyclasses.h"
307#include "wx/wxPython/pyistream.h"
308
309 DECLARE_DEF_STRING(EmptyString);
310
311
312
313
314
315 DECLARE_DEF_STRING(FileSelectorPromptStr);
316 DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr);
317 DECLARE_DEF_STRING(DirSelectorPromptStr);
318
319
320static PyObject* t_output_helper(PyObject* target, PyObject* o) {
321 PyObject* o2;
322 PyObject* o3;
323
324 if (!target) {
325 target = o;
326 } else if (target == Py_None) {
327 Py_DECREF(Py_None);
328 target = o;
329 } else {
330 if (!PyTuple_Check(target)) {
331 o2 = target;
332 target = PyTuple_New(1);
333 PyTuple_SetItem(target, 0, o2);
334 }
335 o3 = PyTuple_New(1);
336 PyTuple_SetItem(o3, 0, o);
337
338 o2 = target;
339 target = PySequence_Concat(o2, o3);
340 Py_DECREF(o2);
341 Py_DECREF(o3);
342 }
343 return target;
344}
345
346
347 long wxGetFreeMemory()
348 { PyErr_SetNone(PyExc_NotImplementedError); return 0; }
349
350
351 void wxWakeUpMainThread() {}
352
353
354 bool wxThread_IsMain() {
355#ifdef WXP_WITH_THREAD
356 return wxThread::IsMain();
357#else
e811c8ce 358 return True;
d14a1e28
RD
359#endif
360 }
361
362
363 int wxCaret_GetBlinkTime() {
364 return wxCaret::GetBlinkTime();
365 }
366
367 void wxCaret_SetBlinkTime(int milliseconds) {
368 wxCaret::SetBlinkTime(milliseconds);
369 }
370
371
372#include <wx/snglinst.h>
373
374
375#ifdef __WXMSW__
376#include <wx/msw/private.h>
377#include <wx/dynload.h>
378#endif
379
380
381
382void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
383{
384#ifdef __WXMSW__
385
386 switch (method)
387 {
388 case 1:
389 // This one only partially works. Appears to be an undocumented
390 // "standard" convention that not all widgets adhear to. For
391 // example, for some widgets backgrounds or non-client areas may
392 // not be painted.
393 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
394 break;
395
396 case 2:
397 // This one works much better, except for on XP. On Win2k nearly
398 // all widgets and their children are captured correctly[**]. On
399 // XP with Themes activated most native widgets draw only
400 // partially, if at all. Without themes it works just like on
401 // Win2k.
402 //
403 // ** For example the radio buttons in a wxRadioBox are not its
404 // children by default, but you can capture it via the panel
405 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
406 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
407 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
408 PRF_ERASEBKGND | PRF_OWNED );
409 break;
410
411 case 3:
412 // This one is only defined in the latest SDK and is only
413 // available on XP. MSDN says it is similar to sending WM_PRINT
414 // so I expect that it will work similar to the above. Since it
415 // is avaialble only on XP, it can't be compiled like this and
416 // will have to be loaded dynamically.
417 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
418
419 // fall through
420
421 case 4:
422 // Use PrintWindow if available, or fallback to WM_PRINT
423 // otherwise. Unfortunately using PrintWindow is even worse than
424 // WM_PRINT. For most native widgets nothing is drawn to the dc
425 // at all, with or without Themes.
426 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
e811c8ce 427 static bool s_triedToLoad = False;
d14a1e28
RD
428 static PrintWindow_t pfnPrintWindow = NULL;
429 if ( !s_triedToLoad )
430 {
431
e811c8ce 432 s_triedToLoad = True;
d14a1e28
RD
433 wxDynamicLibrary dllUser32(_T("user32.dll"));
434 if ( dllUser32.IsLoaded() )
435 {
436 wxLogNull nolog; // Don't report errors here
437 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
438 }
439 }
440 if (pfnPrintWindow)
441 {
442 printf("Using PrintWindow\n");
443 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
444 }
445 else
446 {
447 printf("Using WM_PRINT\n");
448 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
449 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
450 }
451 }
452#endif
453}
454
455
456
457#include <wx/tipdlg.h>
458
459
460class wxPyTipProvider : public wxTipProvider {
461public:
462 wxPyTipProvider(size_t currentTip)
463 : wxTipProvider(currentTip) {}
464
465 DEC_PYCALLBACK_STRING__pure(GetTip);
466 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
467 PYPRIVATE;
468};
469
470IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
471IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
472
473
474IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
475
476wxString Log_TimeStamp(){
477 wxString msg;
478 wxLog::TimeStamp(&msg);
479 return msg;
480 }
481void wxLog_Destroy(wxLog *self){ delete self; }
482
483// A wxLog class that can be derived from in wxPython
484class wxPyLog : public wxLog {
485public:
486 wxPyLog() : wxLog() {}
487
488 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
489 bool found;
490 wxPyBeginBlockThreads();
491 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
492 PyObject* s = wx2PyString(szString);
493 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
494 Py_DECREF(s);
495 }
496 wxPyEndBlockThreads();
497 if (! found)
498 wxLog::DoLog(level, szString, t);
499 }
500
501 virtual void DoLogString(const wxChar *szString, time_t t) {
502 bool found;
503 wxPyBeginBlockThreads();
504 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
505 PyObject* s = wx2PyString(szString);
506 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
507 Py_DECREF(s);
508 }
509 wxPyEndBlockThreads();
510 if (! found)
511 wxLog::DoLogString(szString, t);
512 }
513
514 PYPRIVATE;
515};
516
517
518
519
520IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
521
522
523#include <wx/joystick.h>
524
525
526#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
527// A C++ stub class for wxJoystick for platforms that don't have it.
528class wxJoystick : public wxObject {
529public:
530 wxJoystick(int joystick = wxJOYSTICK1) {
531 wxPyBeginBlockThreads();
532 PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform.");
533 wxPyEndBlockThreads();
534 }
535 wxPoint GetPosition() { return wxPoint(-1,-1); }
536 int GetZPosition() { return -1; }
537 int GetButtonState() { return -1; }
538 int GetPOVPosition() { return -1; }
539 int GetPOVCTSPosition() { return -1; }
540 int GetRudderPosition() { return -1; }
541 int GetUPosition() { return -1; }
542 int GetVPosition() { return -1; }
543 int GetMovementThreshold() { return -1; }
544 void SetMovementThreshold(int threshold) {}
545
e811c8ce 546 bool IsOk(void) { return False; }
d14a1e28
RD
547 int GetNumberJoysticks() { return -1; }
548 int GetManufacturerId() { return -1; }
549 int GetProductId() { return -1; }
550 wxString GetProductName() { return ""; }
551 int GetXMin() { return -1; }
552 int GetYMin() { return -1; }
553 int GetZMin() { return -1; }
554 int GetXMax() { return -1; }
555 int GetYMax() { return -1; }
556 int GetZMax() { return -1; }
557 int GetNumberButtons() { return -1; }
558 int GetNumberAxes() { return -1; }
559 int GetMaxButtons() { return -1; }
560 int GetMaxAxes() { return -1; }
561 int GetPollingMin() { return -1; }
562 int GetPollingMax() { return -1; }
563 int GetRudderMin() { return -1; }
564 int GetRudderMax() { return -1; }
565 int GetUMin() { return -1; }
566 int GetUMax() { return -1; }
567 int GetVMin() { return -1; }
568 int GetVMax() { return -1; }
569
e811c8ce
RD
570 bool HasRudder() { return False; }
571 bool HasZ() { return False; }
572 bool HasU() { return False; }
573 bool HasV() { return False; }
574 bool HasPOV() { return False; }
575 bool HasPOV4Dir() { return False; }
576 bool HasPOVCTS() { return False; }
d14a1e28 577
e811c8ce
RD
578 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
579 bool ReleaseCapture() { return False; }
d14a1e28
RD
580};
581#endif
582
583
584#include <wx/wave.h>
585
586
587#if !wxUSE_WAVE
588// A C++ stub class for wxWave for platforms that don't have it.
589class wxWave : public wxObject
590{
591public:
e811c8ce 592 wxWave(const wxString& fileName, bool isResource = False) {
d14a1e28
RD
593 wxPyBeginBlockThreads();
594 PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
595 wxPyEndBlockThreads();
596 }
597 wxWave(int size, const wxByte* data) {
598 wxPyBeginBlockThreads();
599 PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
600 wxPyEndBlockThreads();
601 }
602
603 ~wxWave() {}
604
e811c8ce
RD
605 bool IsOk() const { return False; }
606 bool Play(bool async = True, bool looped = False) const { return False; }
d14a1e28
RD
607};
608
609#endif
610
611wxWave *new_wxWave(wxString const &data){
612 return new wxWave(data.Len(), (wxByte*)data.c_str());
613 }
614
615#include <wx/mimetype.h>
616
617PyObject *wxFileType_GetMimeType(wxFileType *self){
618 wxString str;
619 if (self->GetMimeType(&str))
620 return wx2PyString(str);
621 else
622 RETURN_NONE();
623 }
624PyObject *wxFileType_GetMimeTypes(wxFileType *self){
625 wxArrayString arr;
626 if (self->GetMimeTypes(arr))
627 return wxArrayString2PyList_helper(arr);
628 else
629 RETURN_NONE();
630 }
631PyObject *wxFileType_GetExtensions(wxFileType *self){
632 wxArrayString arr;
633 if (self->GetExtensions(arr))
634 return wxArrayString2PyList_helper(arr);
635 else
636 RETURN_NONE();
637 }
638wxIcon *wxFileType_GetIcon(wxFileType *self){
639 wxIconLocation loc;
640 if (self->GetIcon(&loc))
641 return new wxIcon(loc);
642 else
643 return NULL;
644 }
645PyObject *wxFileType_GetIconInfo(wxFileType *self){
646 wxIconLocation loc;
647 if (self->GetIcon(&loc)) {
648 wxString iconFile = loc.GetFileName();
649 int iconIndex = -1;
650
651
652
653 // Make a tuple and put the values in it
654 wxPyBeginBlockThreads();
655 PyObject* tuple = PyTuple_New(3);
656 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
e811c8ce 657 wxT("wxIcon"), True));
d14a1e28
RD
658 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
659 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
660 wxPyEndBlockThreads();
661 return tuple;
662 }
663 else
664 RETURN_NONE();
665 }
666PyObject *wxFileType_GetDescription(wxFileType *self){
667 wxString str;
668 if (self->GetDescription(&str))
669 return wx2PyString(str);
670 else
671 RETURN_NONE();
672 }
673PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
674 wxString str;
675 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
676 return wx2PyString(str);
677 else
678 RETURN_NONE();
679 }
680PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
681 wxString str;
682 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
683 return wx2PyString(str);
684 else
685 RETURN_NONE();
686 }
687PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
688 wxArrayString verbs;
689 wxArrayString commands;
690 if (self->GetAllCommands(&verbs, &commands,
691 wxFileType::MessageParameters(filename, mimetype))) {
692 wxPyBeginBlockThreads();
693 PyObject* tuple = PyTuple_New(2);
694 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
695 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
696 wxPyEndBlockThreads();
697 return tuple;
698 }
699 else
700 RETURN_NONE();
701 }
702wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
703 return wxFileType::ExpandCommand(command,
704 wxFileType::MessageParameters(filename, mimetype));
705 }
706PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
707 wxArrayString arr;
708 self->EnumAllFileTypes(arr);
709 return wxArrayString2PyList_helper(arr);
710 }
711
712#include <wx/artprov.h>
713
714 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
715 static const wxString wxPyART_MENU(wxART_MENU);
716 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
717 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
718 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
719 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
720 static const wxString wxPyART_OTHER(wxART_OTHER);
721 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
722 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
723 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
724 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
725 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
726 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
727 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
728 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
729 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
730 static const wxString wxPyART_GO_UP(wxART_GO_UP);
731 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
732 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
733 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
734 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
735 static const wxString wxPyART_PRINT(wxART_PRINT);
736 static const wxString wxPyART_HELP(wxART_HELP);
737 static const wxString wxPyART_TIP(wxART_TIP);
738 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
739 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
740 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
741 static const wxString wxPyART_FOLDER(wxART_FOLDER);
742 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
743 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
744 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
745 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
746 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
747 static const wxString wxPyART_ERROR(wxART_ERROR);
748 static const wxString wxPyART_QUESTION(wxART_QUESTION);
749 static const wxString wxPyART_WARNING(wxART_WARNING);
750 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
751 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
752 // Python aware wxArtProvider
753class wxPyArtProvider : public wxArtProvider {
754public:
755
756 virtual wxBitmap CreateBitmap(const wxArtID& id,
757 const wxArtClient& client,
758 const wxSize& size) {
759 wxBitmap rval = wxNullBitmap;
760 wxPyBeginBlockThreads();
761 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
762 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
763 PyObject* ro;
764 wxBitmap* ptr;
765 PyObject* s1, *s2;
766 s1 = wx2PyString(id);
767 s2 = wx2PyString(client);
768 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
769 Py_DECREF(so);
770 Py_DECREF(s1);
771 Py_DECREF(s2);
772 if (ro) {
773 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
774 rval = *ptr;
775 Py_DECREF(ro);
776 }
777 }
778 wxPyEndBlockThreads();
779 return rval;
780 }
781
782 PYPRIVATE;
783};
784
1e0c8722 785void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
d14a1e28
RD
786
787
788
789 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
790 PyObject* ret = PyTuple_New(3);
791 if (ret) {
792 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
793 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
794 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
795 }
796 return ret;
797 }
798
799PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
800 bool cont;
801 long index = 0;
802 wxString value;
803
804 cont = self->GetFirstGroup(value, index);
805 return __EnumerationHelper(cont, value, index);
806 }
807PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
808 bool cont;
809 wxString value;
810
811 cont = self->GetNextGroup(value, index);
812 return __EnumerationHelper(cont, value, index);
813 }
814PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
815 bool cont;
816 long index = 0;
817 wxString value;
818
819 cont = self->GetFirstEntry(value, index);
820 return __EnumerationHelper(cont, value, index);
821 }
822PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
823 bool cont;
824 wxString value;
825
826 cont = self->GetNextEntry(value, index);
827 return __EnumerationHelper(cont, value, index);
828 }
829long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
830 long rv;
831 self->Read(key, &rv, defaultVal);
832 return rv;
833 }
834double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
835 double rv;
836 self->Read(key, &rv, defaultVal);
837 return rv;
838 }
839bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
840 bool rv;
841 self->Read(key, &rv, defaultVal);
842 return rv;
843 }
844
845#include <wx/datetime.h>
846
847 DECLARE_DEF_STRING2(DateFormatStr, wxT("%c"));
848 DECLARE_DEF_STRING2(TimeSpanFormatStr, wxT("%H:%M:%S"));
849
850
851
852#define LOCAL_TZ wxDateTime::Local
853
854wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
855wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
856wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
857wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
858wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
859bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; }
860bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; }
861bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; }
862bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; }
863bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; }
864bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; }
865int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
866 const wxChar* rv;
867 const wxChar* _date = date;
868 rv = self->ParseRfc822Date(_date);
869 if (rv == NULL) return -1;
870 return rv - _date;
871 }
872int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
873 const wxChar* rv;
874 const wxChar* _date = date;
875 rv = self->ParseFormat(_date, format, dateDef);
876 if (rv == NULL) return -1;
877 return rv - _date;
878 }
879int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
880 const wxChar* rv;
881 const wxChar* _datetime = datetime;
882 rv = self->ParseDateTime(_datetime);
883 if (rv == NULL) return -1;
884 return rv - _datetime;
885 }
886int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
887 const wxChar* rv;
888 const wxChar* _date = date;
889 rv = self->ParseDate(_date);
890 if (rv == NULL) return -1;
891 return rv - _date;
892 }
893int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
894 const wxChar* rv;
895 const wxChar* _time = time;
896 rv = self->ParseTime(_time);
897 if (rv == NULL) return -1;
898 return rv - _time;
899 }
900wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
901wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
902wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
903wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
904bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; }
905bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; }
906bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; }
907bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; }
908bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; }
909bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; }
910wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
911wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
912wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
913wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
914bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; }
915bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; }
916
917#include <wx/dataobj.h>
918
919 // Create a new class for wxPython to use
920class wxPyDataObjectSimple : public wxDataObjectSimple {
921public:
922 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
923 : wxDataObjectSimple(format) {}
924
925 DEC_PYCALLBACK_SIZET__const(GetDataSize);
926 bool GetDataHere(void *buf) const;
927 bool SetData(size_t len, const void *buf) const;
928 PYPRIVATE;
929};
930
931IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
932
933bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
934 // We need to get the data for this object and write it to buf. I think
935 // the best way to do this for wxPython is to have the Python method
936 // return either a string or None and then act appropriately with the
937 // C++ version.
938
e811c8ce 939 bool rval = False;
d14a1e28
RD
940 wxPyBeginBlockThreads();
941 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
942 PyObject* ro;
943 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
944 if (ro) {
945 rval = (ro != Py_None && PyString_Check(ro));
946 if (rval)
947 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
948 Py_DECREF(ro);
949 }
950 }
951 wxPyEndBlockThreads();
952 return rval;
953}
954
955bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
956 // For this one we simply need to make a string from buf and len
957 // and send it to the Python method.
e811c8ce 958 bool rval = False;
d14a1e28
RD
959 wxPyBeginBlockThreads();
960 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
961 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
962 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
963 Py_DECREF(data);
964 }
965 wxPyEndBlockThreads();
966 return rval;
967}
968
969 // Create a new class for wxPython to use
970class wxPyTextDataObject : public wxTextDataObject {
971public:
972 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
973 : wxTextDataObject(text) {}
974
975 DEC_PYCALLBACK_SIZET__const(GetTextLength);
976 DEC_PYCALLBACK_STRING__const(GetText);
977 DEC_PYCALLBACK__STRING(SetText);
978 PYPRIVATE;
979};
980
981IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
982IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
983IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
984
985
986 // Create a new class for wxPython to use
987class wxPyBitmapDataObject : public wxBitmapDataObject {
988public:
989 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
990 : wxBitmapDataObject(bitmap) {}
991
992 wxBitmap GetBitmap() const;
993 void SetBitmap(const wxBitmap& bitmap);
994 PYPRIVATE;
995};
996
997wxBitmap wxPyBitmapDataObject::GetBitmap() const {
998 wxBitmap* rval = &wxNullBitmap;
999 wxPyBeginBlockThreads();
1000 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1001 PyObject* ro;
1002 wxBitmap* ptr;
1003 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1004 if (ro) {
1005 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1006 rval = ptr;
1007 Py_DECREF(ro);
1008 }
1009 }
1010 wxPyEndBlockThreads();
1011 return *rval;
1012}
1013
1014void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1015 wxPyBeginBlockThreads();
1016 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
e811c8ce 1017 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
d14a1e28
RD
1018 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1019 Py_DECREF(bo);
1020 }
1021 wxPyEndBlockThreads();
1022}
1023
1024void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1025 if (PyString_Check(data)) {
1026 // for Python we just call SetData here since we always need it to make a copy.
1027 self->SetData(PyString_Size(data), PyString_AsString(data));
1028 }
1029 else {
1030 // raise a TypeError if not a string
1031 PyErr_SetString(PyExc_TypeError, "String expected.");
1032 }
1033 }
1034bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1035 if (PyString_Check(data)) {
1036 return self->SetData(PyString_Size(data), PyString_AsString(data));
1037 }
1038 else {
1039 // raise a TypeError if not a string
1040 PyErr_SetString(PyExc_TypeError, "String expected.");
e811c8ce 1041 return False;
d14a1e28
RD
1042 }
1043 }
1044PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1045 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1046 }
1047
1048class wxMetafileDataObject : public wxDataObjectSimple
1049{
1050public:
1051 wxMetafileDataObject() { PyErr_SetNone(PyExc_NotImplementedError); }
1052};
1053
1054
d14a1e28
RD
1055
1056
d14a1e28
RD
1057IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1058
1059
d14a1e28
RD
1060IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1061IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1062IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1063IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1064IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1065
1066
d14a1e28
RD
1067class wxPyTextDropTarget : public wxTextDropTarget {
1068public:
1069 wxPyTextDropTarget() {}
1070
1071 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1072
1073 DEC_PYCALLBACK__(OnLeave);
1074 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1075 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1076 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1077 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1078
1079 PYPRIVATE;
1080};
1081
1082IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1083IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1084IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1085IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1086IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1087IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1088
1089
1090
1091class wxPyFileDropTarget : public wxFileDropTarget {
1092public:
1093 wxPyFileDropTarget() {}
1094
1095 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1096
1097 DEC_PYCALLBACK__(OnLeave);
1098 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1099 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1100 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1101 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1102
1103 PYPRIVATE;
1104};
1105
1106bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1107 const wxArrayString& filenames) {
e811c8ce 1108 bool rval = False;
d14a1e28
RD
1109 wxPyBeginBlockThreads();
1110 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1111 PyObject* list = wxArrayString2PyList_helper(filenames);
1112 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1113 Py_DECREF(list);
1114 }
1115 wxPyEndBlockThreads();
1116 return rval;
1117}
1118
1119
1120
1121IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1122IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1123IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1124IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1125IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1126
1127
1128
1129
1130bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1131#ifdef __cplusplus
1132extern "C" {
1133#endif
1134static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1135 PyObject *resultobj;
1136 int arg1 ;
1137 wxColour result;
1138 char *kwnames[] = {
1139 (char *) "index", NULL
1140 };
1141
1142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetColour",kwnames,&arg1)) goto fail;
1143 {
1144 PyThreadState* __tstate = wxPyBeginAllowThreads();
1145 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1146
1147 wxPyEndAllowThreads(__tstate);
1148 if (PyErr_Occurred()) SWIG_fail;
1149 }
1150 {
1151 wxColour * resultptr;
1152 resultptr = new wxColour((wxColour &) result);
1153 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1154 }
1155 return resultobj;
1156 fail:
1157 return NULL;
1158}
1159
1160
1161static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1162 PyObject *resultobj;
1163 int arg1 ;
1164 wxFont result;
1165 char *kwnames[] = {
1166 (char *) "index", NULL
1167 };
1168
1169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetFont",kwnames,&arg1)) goto fail;
1170 {
1171 PyThreadState* __tstate = wxPyBeginAllowThreads();
1172 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1173
1174 wxPyEndAllowThreads(__tstate);
1175 if (PyErr_Occurred()) SWIG_fail;
1176 }
1177 {
1178 wxFont * resultptr;
1179 resultptr = new wxFont((wxFont &) result);
1180 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
1181 }
1182 return resultobj;
1183 fail:
1184 return NULL;
1185}
1186
1187
1188static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1189 PyObject *resultobj;
1190 int arg1 ;
1191 int result;
1192 char *kwnames[] = {
1193 (char *) "index", NULL
1194 };
1195
1196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetMetric",kwnames,&arg1)) goto fail;
1197 {
1198 PyThreadState* __tstate = wxPyBeginAllowThreads();
1199 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1200
1201 wxPyEndAllowThreads(__tstate);
1202 if (PyErr_Occurred()) SWIG_fail;
1203 }
1204 resultobj = PyInt_FromLong((long)result);
1205 return resultobj;
1206 fail:
1207 return NULL;
1208}
1209
1210
1211static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1212 PyObject *resultobj;
1213 int arg1 ;
1214 bool result;
1215 char *kwnames[] = {
1216 (char *) "index", NULL
1217 };
1218
1219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_HasFeature",kwnames,&arg1)) goto fail;
1220 {
1221 PyThreadState* __tstate = wxPyBeginAllowThreads();
1222 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1223
1224 wxPyEndAllowThreads(__tstate);
1225 if (PyErr_Occurred()) SWIG_fail;
1226 }
1227 resultobj = PyInt_FromLong((long)result);
1228 return resultobj;
1229 fail:
1230 return NULL;
1231}
1232
1233
1234static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1235 PyObject *resultobj;
1236 int result;
1237 char *kwnames[] = {
1238 NULL
1239 };
1240
1241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1242 {
1243 PyThreadState* __tstate = wxPyBeginAllowThreads();
1244 result = (int)wxSystemSettings::GetScreenType();
1245
1246 wxPyEndAllowThreads(__tstate);
1247 if (PyErr_Occurred()) SWIG_fail;
1248 }
1249 resultobj = PyInt_FromLong((long)result);
1250 return resultobj;
1251 fail:
1252 return NULL;
1253}
1254
1255
1256static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1257 PyObject *resultobj;
1258 int arg1 ;
1259 char *kwnames[] = {
1260 (char *) "screen", NULL
1261 };
1262
1263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_SetScreenType",kwnames,&arg1)) goto fail;
1264 {
1265 PyThreadState* __tstate = wxPyBeginAllowThreads();
1266 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1267
1268 wxPyEndAllowThreads(__tstate);
1269 if (PyErr_Occurred()) SWIG_fail;
1270 }
1271 Py_INCREF(Py_None); resultobj = Py_None;
1272 return resultobj;
1273 fail:
1274 return NULL;
1275}
1276
1277
1278static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1279 PyObject *obj;
1280 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1281 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1282 Py_INCREF(obj);
1283 return Py_BuildValue((char *)"");
1284}
1285static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1286 PyObject *resultobj;
1287 wxSystemOptions *result;
1288 char *kwnames[] = {
1289 NULL
1290 };
1291
1292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1293 {
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 result = (wxSystemOptions *)new wxSystemOptions();
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
1300 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1);
1301 return resultobj;
1302 fail:
1303 return NULL;
1304}
1305
1306
1307static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1308 PyObject *resultobj;
1309 wxString *arg1 = 0 ;
1310 wxString *arg2 = 0 ;
e811c8ce
RD
1311 bool temp1 = False ;
1312 bool temp2 = False ;
d14a1e28
RD
1313 PyObject * obj0 = 0 ;
1314 PyObject * obj1 = 0 ;
1315 char *kwnames[] = {
1316 (char *) "name",(char *) "value", NULL
1317 };
1318
1319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1320 {
1321 arg1 = wxString_in_helper(obj0);
1322 if (arg1 == NULL) SWIG_fail;
e811c8ce 1323 temp1 = True;
d14a1e28
RD
1324 }
1325 {
1326 arg2 = wxString_in_helper(obj1);
1327 if (arg2 == NULL) SWIG_fail;
e811c8ce 1328 temp2 = True;
d14a1e28
RD
1329 }
1330 {
1331 PyThreadState* __tstate = wxPyBeginAllowThreads();
1332 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1333
1334 wxPyEndAllowThreads(__tstate);
1335 if (PyErr_Occurred()) SWIG_fail;
1336 }
1337 Py_INCREF(Py_None); resultobj = Py_None;
1338 {
1339 if (temp1)
1340 delete arg1;
1341 }
1342 {
1343 if (temp2)
1344 delete arg2;
1345 }
1346 return resultobj;
1347 fail:
1348 {
1349 if (temp1)
1350 delete arg1;
1351 }
1352 {
1353 if (temp2)
1354 delete arg2;
1355 }
1356 return NULL;
1357}
1358
1359
1360static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1361 PyObject *resultobj;
1362 wxString *arg1 = 0 ;
1363 int arg2 ;
e811c8ce 1364 bool temp1 = False ;
d14a1e28
RD
1365 PyObject * obj0 = 0 ;
1366 char *kwnames[] = {
1367 (char *) "name",(char *) "value", NULL
1368 };
1369
1370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SystemOptions_SetOptionInt",kwnames,&obj0,&arg2)) goto fail;
1371 {
1372 arg1 = wxString_in_helper(obj0);
1373 if (arg1 == NULL) SWIG_fail;
e811c8ce 1374 temp1 = True;
d14a1e28
RD
1375 }
1376 {
1377 PyThreadState* __tstate = wxPyBeginAllowThreads();
1378 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1379
1380 wxPyEndAllowThreads(__tstate);
1381 if (PyErr_Occurred()) SWIG_fail;
1382 }
1383 Py_INCREF(Py_None); resultobj = Py_None;
1384 {
1385 if (temp1)
1386 delete arg1;
1387 }
1388 return resultobj;
1389 fail:
1390 {
1391 if (temp1)
1392 delete arg1;
1393 }
1394 return NULL;
1395}
1396
1397
1398static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1399 PyObject *resultobj;
1400 wxString *arg1 = 0 ;
1401 wxString result;
e811c8ce 1402 bool temp1 = False ;
d14a1e28
RD
1403 PyObject * obj0 = 0 ;
1404 char *kwnames[] = {
1405 (char *) "name", NULL
1406 };
1407
1408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1409 {
1410 arg1 = wxString_in_helper(obj0);
1411 if (arg1 == NULL) SWIG_fail;
e811c8ce 1412 temp1 = True;
d14a1e28
RD
1413 }
1414 {
1415 PyThreadState* __tstate = wxPyBeginAllowThreads();
1416 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1417
1418 wxPyEndAllowThreads(__tstate);
1419 if (PyErr_Occurred()) SWIG_fail;
1420 }
1421 {
1422#if wxUSE_UNICODE
1423 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1424#else
1425 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1426#endif
1427 }
1428 {
1429 if (temp1)
1430 delete arg1;
1431 }
1432 return resultobj;
1433 fail:
1434 {
1435 if (temp1)
1436 delete arg1;
1437 }
1438 return NULL;
1439}
1440
1441
1442static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxString *arg1 = 0 ;
1445 int result;
e811c8ce 1446 bool temp1 = False ;
d14a1e28
RD
1447 PyObject * obj0 = 0 ;
1448 char *kwnames[] = {
1449 (char *) "name", NULL
1450 };
1451
1452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1453 {
1454 arg1 = wxString_in_helper(obj0);
1455 if (arg1 == NULL) SWIG_fail;
e811c8ce 1456 temp1 = True;
d14a1e28
RD
1457 }
1458 {
1459 PyThreadState* __tstate = wxPyBeginAllowThreads();
1460 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1461
1462 wxPyEndAllowThreads(__tstate);
1463 if (PyErr_Occurred()) SWIG_fail;
1464 }
1465 resultobj = PyInt_FromLong((long)result);
1466 {
1467 if (temp1)
1468 delete arg1;
1469 }
1470 return resultobj;
1471 fail:
1472 {
1473 if (temp1)
1474 delete arg1;
1475 }
1476 return NULL;
1477}
1478
1479
1480static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1481 PyObject *resultobj;
1482 wxString *arg1 = 0 ;
1483 bool result;
e811c8ce 1484 bool temp1 = False ;
d14a1e28
RD
1485 PyObject * obj0 = 0 ;
1486 char *kwnames[] = {
1487 (char *) "name", NULL
1488 };
1489
1490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1491 {
1492 arg1 = wxString_in_helper(obj0);
1493 if (arg1 == NULL) SWIG_fail;
e811c8ce 1494 temp1 = True;
d14a1e28
RD
1495 }
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
1503 resultobj = PyInt_FromLong((long)result);
1504 {
1505 if (temp1)
1506 delete arg1;
1507 }
1508 return resultobj;
1509 fail:
1510 {
1511 if (temp1)
1512 delete arg1;
1513 }
1514 return NULL;
1515}
1516
1517
1518static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1519 PyObject *obj;
1520 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1521 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1522 Py_INCREF(obj);
1523 return Py_BuildValue((char *)"");
1524}
1525static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1526 PyObject *resultobj;
1527 long result;
1528 char *kwnames[] = {
1529 NULL
1530 };
1531
1532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1533 {
1534 PyThreadState* __tstate = wxPyBeginAllowThreads();
1535 result = (long)wxNewId();
1536
1537 wxPyEndAllowThreads(__tstate);
1538 if (PyErr_Occurred()) SWIG_fail;
1539 }
1540 resultobj = PyInt_FromLong((long)result);
1541 return resultobj;
1542 fail:
1543 return NULL;
1544}
1545
1546
1547static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1548 PyObject *resultobj;
1549 long arg1 ;
1550 char *kwnames[] = {
1551 (char *) "id", NULL
1552 };
1553
1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:RegisterId",kwnames,&arg1)) goto fail;
1555 {
1556 PyThreadState* __tstate = wxPyBeginAllowThreads();
1557 wxRegisterId(arg1);
1558
1559 wxPyEndAllowThreads(__tstate);
1560 if (PyErr_Occurred()) SWIG_fail;
1561 }
1562 Py_INCREF(Py_None); resultobj = Py_None;
1563 return resultobj;
1564 fail:
1565 return NULL;
1566}
1567
1568
1569static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
1570 PyObject *resultobj;
1571 long result;
1572 char *kwnames[] = {
1573 NULL
1574 };
1575
1576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1577 {
1578 PyThreadState* __tstate = wxPyBeginAllowThreads();
1579 result = (long)wxGetCurrentId();
1580
1581 wxPyEndAllowThreads(__tstate);
1582 if (PyErr_Occurred()) SWIG_fail;
1583 }
1584 resultobj = PyInt_FromLong((long)result);
1585 return resultobj;
1586 fail:
1587 return NULL;
1588}
1589
1590
1591static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
1592 PyObject *resultobj;
1593 char *kwnames[] = {
1594 NULL
1595 };
1596
1597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1598 {
1599 PyThreadState* __tstate = wxPyBeginAllowThreads();
1600 wxBell();
1601
1602 wxPyEndAllowThreads(__tstate);
1603 if (PyErr_Occurred()) SWIG_fail;
1604 }
1605 Py_INCREF(Py_None); resultobj = Py_None;
1606 return resultobj;
1607 fail:
1608 return NULL;
1609}
1610
1611
1612static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
1613 PyObject *resultobj;
1614 char *kwnames[] = {
1615 NULL
1616 };
1617
1618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
1619 {
1620 PyThreadState* __tstate = wxPyBeginAllowThreads();
1621 wxEndBusyCursor();
1622
1623 wxPyEndAllowThreads(__tstate);
1624 if (PyErr_Occurred()) SWIG_fail;
1625 }
1626 Py_INCREF(Py_None); resultobj = Py_None;
1627 return resultobj;
1628 fail:
1629 return NULL;
1630}
1631
1632
1633static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1634 PyObject *resultobj;
e811c8ce 1635 bool arg1 = (bool) True ;
d14a1e28
RD
1636 long result;
1637 PyObject * obj0 = 0 ;
1638 char *kwnames[] = {
1639 (char *) "resetTimer", NULL
1640 };
1641
1642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
1643 if (obj0) {
1644 arg1 = PyInt_AsLong(obj0) ? true : false;
1645 if (PyErr_Occurred()) SWIG_fail;
1646 }
1647 {
1648 PyThreadState* __tstate = wxPyBeginAllowThreads();
1649 result = (long)wxGetElapsedTime(arg1);
1650
1651 wxPyEndAllowThreads(__tstate);
1652 if (PyErr_Occurred()) SWIG_fail;
1653 }
1654 resultobj = PyInt_FromLong((long)result);
1655 return resultobj;
1656 fail:
1657 return NULL;
1658}
1659
1660
1661static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1662 PyObject *resultobj;
1663 int *arg1 = (int *) 0 ;
1664 int *arg2 = (int *) 0 ;
1665 int temp1 ;
1666 int temp2 ;
1667 char *kwnames[] = {
1668 NULL
1669 };
1670
1671 arg1 = &temp1;
1672 arg2 = &temp2;
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
1674 {
1675 PyThreadState* __tstate = wxPyBeginAllowThreads();
1676 wxGetMousePosition(arg1,arg2);
1677
1678 wxPyEndAllowThreads(__tstate);
1679 if (PyErr_Occurred()) SWIG_fail;
1680 }
1681 Py_INCREF(Py_None); resultobj = Py_None;
1682 {
1683 PyObject *o = PyInt_FromLong((long) (*arg1));
1684 resultobj = t_output_helper(resultobj,o);
1685 }
1686 {
1687 PyObject *o = PyInt_FromLong((long) (*arg2));
1688 resultobj = t_output_helper(resultobj,o);
1689 }
1690 return resultobj;
1691 fail:
1692 return NULL;
1693}
1694
1695
1696static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
1697 PyObject *resultobj;
1698 bool result;
1699 char *kwnames[] = {
1700 NULL
1701 };
1702
1703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
1704 {
1705 PyThreadState* __tstate = wxPyBeginAllowThreads();
1706 result = (bool)wxIsBusy();
1707
1708 wxPyEndAllowThreads(__tstate);
1709 if (PyErr_Occurred()) SWIG_fail;
1710 }
1711 resultobj = PyInt_FromLong((long)result);
1712 return resultobj;
1713 fail:
1714 return NULL;
1715}
1716
1717
1718static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
1719 PyObject *resultobj;
1720 wxString result;
1721 char *kwnames[] = {
1722 NULL
1723 };
1724
1725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
1726 {
1727 PyThreadState* __tstate = wxPyBeginAllowThreads();
1728 result = wxNow();
1729
1730 wxPyEndAllowThreads(__tstate);
1731 if (PyErr_Occurred()) SWIG_fail;
1732 }
1733 {
1734#if wxUSE_UNICODE
1735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1736#else
1737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1738#endif
1739 }
1740 return resultobj;
1741 fail:
1742 return NULL;
1743}
1744
1745
1746static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
1747 PyObject *resultobj;
1748 wxString const &arg1_defvalue = wxPyEmptyString ;
1749 wxString *arg1 = (wxString *) &arg1_defvalue ;
1750 bool result;
e811c8ce 1751 bool temp1 = False ;
d14a1e28
RD
1752 PyObject * obj0 = 0 ;
1753 char *kwnames[] = {
1754 (char *) "command", NULL
1755 };
1756
1757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
1758 if (obj0) {
1759 {
1760 arg1 = wxString_in_helper(obj0);
1761 if (arg1 == NULL) SWIG_fail;
e811c8ce 1762 temp1 = True;
d14a1e28
RD
1763 }
1764 }
1765 {
1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
1767 result = (bool)wxShell((wxString const &)*arg1);
1768
1769 wxPyEndAllowThreads(__tstate);
1770 if (PyErr_Occurred()) SWIG_fail;
1771 }
1772 resultobj = PyInt_FromLong((long)result);
1773 {
1774 if (temp1)
1775 delete arg1;
1776 }
1777 return resultobj;
1778 fail:
1779 {
1780 if (temp1)
1781 delete arg1;
1782 }
1783 return NULL;
1784}
1785
1786
1787static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
1788 PyObject *resultobj;
1789 char *kwnames[] = {
1790 NULL
1791 };
1792
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
1794 {
1795 PyThreadState* __tstate = wxPyBeginAllowThreads();
1796 wxStartTimer();
1797
1798 wxPyEndAllowThreads(__tstate);
1799 if (PyErr_Occurred()) SWIG_fail;
1800 }
1801 Py_INCREF(Py_None); resultobj = Py_None;
1802 return resultobj;
1803 fail:
1804 return NULL;
1805}
1806
1807
1808static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
1809 PyObject *resultobj;
1810 int *arg1 = (int *) 0 ;
1811 int *arg2 = (int *) 0 ;
1812 int result;
1813 int temp1 ;
1814 int temp2 ;
1815 char *kwnames[] = {
1816 NULL
1817 };
1818
1819 arg1 = &temp1;
1820 arg2 = &temp2;
1821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
1822 {
1823 PyThreadState* __tstate = wxPyBeginAllowThreads();
1824 result = (int)wxGetOsVersion(arg1,arg2);
1825
1826 wxPyEndAllowThreads(__tstate);
1827 if (PyErr_Occurred()) SWIG_fail;
1828 }
1829 resultobj = PyInt_FromLong((long)result);
1830 {
1831 PyObject *o = PyInt_FromLong((long) (*arg1));
1832 resultobj = t_output_helper(resultobj,o);
1833 }
1834 {
1835 PyObject *o = PyInt_FromLong((long) (*arg2));
1836 resultobj = t_output_helper(resultobj,o);
1837 }
1838 return resultobj;
1839 fail:
1840 return NULL;
1841}
1842
1843
1844static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
1845 PyObject *resultobj;
1846 wxString result;
1847 char *kwnames[] = {
1848 NULL
1849 };
1850
1851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
1852 {
1853 PyThreadState* __tstate = wxPyBeginAllowThreads();
1854 result = wxGetOsDescription();
1855
1856 wxPyEndAllowThreads(__tstate);
1857 if (PyErr_Occurred()) SWIG_fail;
1858 }
1859 {
1860#if wxUSE_UNICODE
1861 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1862#else
1863 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1864#endif
1865 }
1866 return resultobj;
1867 fail:
1868 return NULL;
1869}
1870
1871
1872static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject *resultobj;
1874 long result;
1875 char *kwnames[] = {
1876 NULL
1877 };
1878
1879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
1880 {
1881 PyThreadState* __tstate = wxPyBeginAllowThreads();
1882 result = (long)wxGetFreeMemory();
1883
1884 wxPyEndAllowThreads(__tstate);
1885 if (PyErr_Occurred()) SWIG_fail;
1886 }
1887 resultobj = PyInt_FromLong((long)result);
1888 return resultobj;
1889 fail:
1890 return NULL;
1891}
1892
1893
1894static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
1895 PyObject *resultobj;
1896 int arg1 ;
1897 bool result;
1898 char *kwnames[] = {
1899 (char *) "wFlags", NULL
1900 };
1901
1902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Shutdown",kwnames,&arg1)) goto fail;
1903 {
1904 PyThreadState* __tstate = wxPyBeginAllowThreads();
1905 result = (bool)wxShutdown((wxShutdownFlags )arg1);
1906
1907 wxPyEndAllowThreads(__tstate);
1908 if (PyErr_Occurred()) SWIG_fail;
1909 }
1910 resultobj = PyInt_FromLong((long)result);
1911 return resultobj;
1912 fail:
1913 return NULL;
1914}
1915
1916
1917static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
1918 PyObject *resultobj;
1919 int arg1 ;
1920 char *kwnames[] = {
1921 (char *) "secs", NULL
1922 };
1923
1924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Sleep",kwnames,&arg1)) goto fail;
1925 {
1926 PyThreadState* __tstate = wxPyBeginAllowThreads();
1927 wxSleep(arg1);
1928
1929 wxPyEndAllowThreads(__tstate);
1930 if (PyErr_Occurred()) SWIG_fail;
1931 }
1932 Py_INCREF(Py_None); resultobj = Py_None;
1933 return resultobj;
1934 fail:
1935 return NULL;
1936}
1937
1938
1939static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
1940 PyObject *resultobj;
1941 unsigned long arg1 ;
1942 PyObject * obj0 = 0 ;
1943 char *kwnames[] = {
1944 (char *) "milliseconds", NULL
1945 };
1946
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
1948 arg1 = (unsigned long) PyInt_AsLong(obj0);
1949 if (PyErr_Occurred()) SWIG_fail;
1950 {
1951 PyThreadState* __tstate = wxPyBeginAllowThreads();
1952 wxUsleep(arg1);
1953
1954 wxPyEndAllowThreads(__tstate);
1955 if (PyErr_Occurred()) SWIG_fail;
1956 }
1957 Py_INCREF(Py_None); resultobj = Py_None;
1958 return resultobj;
1959 fail:
1960 return NULL;
1961}
1962
1963
1964static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
1965 PyObject *resultobj;
1966 bool arg1 ;
1967 PyObject * obj0 = 0 ;
1968 char *kwnames[] = {
1969 (char *) "enable", NULL
1970 };
1971
1972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
1973 arg1 = PyInt_AsLong(obj0) ? true : false;
1974 if (PyErr_Occurred()) SWIG_fail;
1975 {
1976 PyThreadState* __tstate = wxPyBeginAllowThreads();
1977 wxEnableTopLevelWindows(arg1);
1978
1979 wxPyEndAllowThreads(__tstate);
1980 if (PyErr_Occurred()) SWIG_fail;
1981 }
1982 Py_INCREF(Py_None); resultobj = Py_None;
1983 return resultobj;
1984 fail:
1985 return NULL;
1986}
1987
1988
1989static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
1990 PyObject *resultobj;
1991 wxString *arg1 = 0 ;
1992 wxString result;
e811c8ce 1993 bool temp1 = False ;
d14a1e28
RD
1994 PyObject * obj0 = 0 ;
1995 char *kwnames[] = {
1996 (char *) "in", NULL
1997 };
1998
1999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2000 {
2001 arg1 = wxString_in_helper(obj0);
2002 if (arg1 == NULL) SWIG_fail;
e811c8ce 2003 temp1 = True;
d14a1e28
RD
2004 }
2005 {
2006 PyThreadState* __tstate = wxPyBeginAllowThreads();
2007 result = wxStripMenuCodes((wxString const &)*arg1);
2008
2009 wxPyEndAllowThreads(__tstate);
2010 if (PyErr_Occurred()) SWIG_fail;
2011 }
2012 {
2013#if wxUSE_UNICODE
2014 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2015#else
2016 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2017#endif
2018 }
2019 {
2020 if (temp1)
2021 delete arg1;
2022 }
2023 return resultobj;
2024 fail:
2025 {
2026 if (temp1)
2027 delete arg1;
2028 }
2029 return NULL;
2030}
2031
2032
2033static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2034 PyObject *resultobj;
2035 wxString result;
2036 char *kwnames[] = {
2037 NULL
2038 };
2039
2040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2041 {
2042 PyThreadState* __tstate = wxPyBeginAllowThreads();
2043 result = wxGetEmailAddress();
2044
2045 wxPyEndAllowThreads(__tstate);
2046 if (PyErr_Occurred()) SWIG_fail;
2047 }
2048 {
2049#if wxUSE_UNICODE
2050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2051#else
2052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2053#endif
2054 }
2055 return resultobj;
2056 fail:
2057 return NULL;
2058}
2059
2060
2061static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2062 PyObject *resultobj;
2063 wxString result;
2064 char *kwnames[] = {
2065 NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2069 {
2070 PyThreadState* __tstate = wxPyBeginAllowThreads();
2071 result = wxGetHostName();
2072
2073 wxPyEndAllowThreads(__tstate);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 }
2076 {
2077#if wxUSE_UNICODE
2078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2079#else
2080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2081#endif
2082 }
2083 return resultobj;
2084 fail:
2085 return NULL;
2086}
2087
2088
2089static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2090 PyObject *resultobj;
2091 wxString result;
2092 char *kwnames[] = {
2093 NULL
2094 };
2095
2096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2097 {
2098 PyThreadState* __tstate = wxPyBeginAllowThreads();
2099 result = wxGetFullHostName();
2100
2101 wxPyEndAllowThreads(__tstate);
2102 if (PyErr_Occurred()) SWIG_fail;
2103 }
2104 {
2105#if wxUSE_UNICODE
2106 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2107#else
2108 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2109#endif
2110 }
2111 return resultobj;
2112 fail:
2113 return NULL;
2114}
2115
2116
2117static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2118 PyObject *resultobj;
2119 wxString result;
2120 char *kwnames[] = {
2121 NULL
2122 };
2123
2124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2125 {
2126 PyThreadState* __tstate = wxPyBeginAllowThreads();
2127 result = wxGetUserId();
2128
2129 wxPyEndAllowThreads(__tstate);
2130 if (PyErr_Occurred()) SWIG_fail;
2131 }
2132 {
2133#if wxUSE_UNICODE
2134 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2135#else
2136 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2137#endif
2138 }
2139 return resultobj;
2140 fail:
2141 return NULL;
2142}
2143
2144
2145static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2146 PyObject *resultobj;
2147 wxString result;
2148 char *kwnames[] = {
2149 NULL
2150 };
2151
2152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2153 {
2154 PyThreadState* __tstate = wxPyBeginAllowThreads();
2155 result = wxGetUserName();
2156
2157 wxPyEndAllowThreads(__tstate);
2158 if (PyErr_Occurred()) SWIG_fail;
2159 }
2160 {
2161#if wxUSE_UNICODE
2162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2163#else
2164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2165#endif
2166 }
2167 return resultobj;
2168 fail:
2169 return NULL;
2170}
2171
2172
2173static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2174 PyObject *resultobj;
2175 wxString result;
2176 char *kwnames[] = {
2177 NULL
2178 };
2179
2180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2181 {
2182 PyThreadState* __tstate = wxPyBeginAllowThreads();
2183 result = wxGetHomeDir();
2184
2185 wxPyEndAllowThreads(__tstate);
2186 if (PyErr_Occurred()) SWIG_fail;
2187 }
2188 {
2189#if wxUSE_UNICODE
2190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2191#else
2192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2193#endif
2194 }
2195 return resultobj;
2196 fail:
2197 return NULL;
2198}
2199
2200
2201static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2202 PyObject *resultobj;
2203 wxString const &arg1_defvalue = wxPyEmptyString ;
2204 wxString *arg1 = (wxString *) &arg1_defvalue ;
2205 wxString result;
e811c8ce 2206 bool temp1 = False ;
d14a1e28
RD
2207 PyObject * obj0 = 0 ;
2208 char *kwnames[] = {
2209 (char *) "user", NULL
2210 };
2211
2212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2213 if (obj0) {
2214 {
2215 arg1 = wxString_in_helper(obj0);
2216 if (arg1 == NULL) SWIG_fail;
e811c8ce 2217 temp1 = True;
d14a1e28
RD
2218 }
2219 }
2220 {
2221 PyThreadState* __tstate = wxPyBeginAllowThreads();
2222 result = wxGetUserHome((wxString const &)*arg1);
2223
2224 wxPyEndAllowThreads(__tstate);
2225 if (PyErr_Occurred()) SWIG_fail;
2226 }
2227 {
2228#if wxUSE_UNICODE
2229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2230#else
2231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2232#endif
2233 }
2234 {
2235 if (temp1)
2236 delete arg1;
2237 }
2238 return resultobj;
2239 fail:
2240 {
2241 if (temp1)
2242 delete arg1;
2243 }
2244 return NULL;
2245}
2246
2247
2248static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2249 PyObject *resultobj;
2250 unsigned long result;
2251 char *kwnames[] = {
2252 NULL
2253 };
2254
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2256 {
2257 PyThreadState* __tstate = wxPyBeginAllowThreads();
2258 result = (unsigned long)wxGetProcessId();
2259
2260 wxPyEndAllowThreads(__tstate);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 }
2263 resultobj = PyInt_FromLong((long)result);
2264 return resultobj;
2265 fail:
2266 return NULL;
2267}
2268
2269
2270static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2271 PyObject *resultobj;
2272 char *kwnames[] = {
2273 NULL
2274 };
2275
2276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 wxTrap();
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2284 Py_INCREF(Py_None); resultobj = Py_None;
2285 return resultobj;
2286 fail:
2287 return NULL;
2288}
2289
2290
2291static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2292 PyObject *resultobj;
2293 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2294 wxString *arg1 = (wxString *) &arg1_defvalue ;
2295 wxString const &arg2_defvalue = wxPyEmptyString ;
2296 wxString *arg2 = (wxString *) &arg2_defvalue ;
2297 wxString const &arg3_defvalue = wxPyEmptyString ;
2298 wxString *arg3 = (wxString *) &arg3_defvalue ;
2299 wxString const &arg4_defvalue = wxPyEmptyString ;
2300 wxString *arg4 = (wxString *) &arg4_defvalue ;
2301 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2302 wxString *arg5 = (wxString *) &arg5_defvalue ;
2303 int arg6 = (int) 0 ;
2304 wxWindow *arg7 = (wxWindow *) NULL ;
2305 int arg8 = (int) -1 ;
2306 int arg9 = (int) -1 ;
2307 wxString result;
e811c8ce
RD
2308 bool temp1 = False ;
2309 bool temp2 = False ;
2310 bool temp3 = False ;
2311 bool temp4 = False ;
2312 bool temp5 = False ;
d14a1e28
RD
2313 PyObject * obj0 = 0 ;
2314 PyObject * obj1 = 0 ;
2315 PyObject * obj2 = 0 ;
2316 PyObject * obj3 = 0 ;
2317 PyObject * obj4 = 0 ;
2318 PyObject * obj6 = 0 ;
2319 char *kwnames[] = {
2320 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2321 };
2322
2323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOiOii:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&arg9)) goto fail;
2324 if (obj0) {
2325 {
2326 arg1 = wxString_in_helper(obj0);
2327 if (arg1 == NULL) SWIG_fail;
e811c8ce 2328 temp1 = True;
d14a1e28
RD
2329 }
2330 }
2331 if (obj1) {
2332 {
2333 arg2 = wxString_in_helper(obj1);
2334 if (arg2 == NULL) SWIG_fail;
e811c8ce 2335 temp2 = True;
d14a1e28
RD
2336 }
2337 }
2338 if (obj2) {
2339 {
2340 arg3 = wxString_in_helper(obj2);
2341 if (arg3 == NULL) SWIG_fail;
e811c8ce 2342 temp3 = True;
d14a1e28
RD
2343 }
2344 }
2345 if (obj3) {
2346 {
2347 arg4 = wxString_in_helper(obj3);
2348 if (arg4 == NULL) SWIG_fail;
e811c8ce 2349 temp4 = True;
d14a1e28
RD
2350 }
2351 }
2352 if (obj4) {
2353 {
2354 arg5 = wxString_in_helper(obj4);
2355 if (arg5 == NULL) SWIG_fail;
e811c8ce 2356 temp5 = True;
d14a1e28
RD
2357 }
2358 }
2359 if (obj6) {
2360 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2361 }
2362 {
2363 PyThreadState* __tstate = wxPyBeginAllowThreads();
2364 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2365
2366 wxPyEndAllowThreads(__tstate);
2367 if (PyErr_Occurred()) SWIG_fail;
2368 }
2369 {
2370#if wxUSE_UNICODE
2371 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2372#else
2373 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2374#endif
2375 }
2376 {
2377 if (temp1)
2378 delete arg1;
2379 }
2380 {
2381 if (temp2)
2382 delete arg2;
2383 }
2384 {
2385 if (temp3)
2386 delete arg3;
2387 }
2388 {
2389 if (temp4)
2390 delete arg4;
2391 }
2392 {
2393 if (temp5)
2394 delete arg5;
2395 }
2396 return resultobj;
2397 fail:
2398 {
2399 if (temp1)
2400 delete arg1;
2401 }
2402 {
2403 if (temp2)
2404 delete arg2;
2405 }
2406 {
2407 if (temp3)
2408 delete arg3;
2409 }
2410 {
2411 if (temp4)
2412 delete arg4;
2413 }
2414 {
2415 if (temp5)
2416 delete arg5;
2417 }
2418 return NULL;
2419}
2420
2421
2422static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2423 PyObject *resultobj;
2424 wxString *arg1 = 0 ;
2425 wxString *arg2 = 0 ;
2426 wxString const &arg3_defvalue = wxPyEmptyString ;
2427 wxString *arg3 = (wxString *) &arg3_defvalue ;
2428 wxWindow *arg4 = (wxWindow *) NULL ;
2429 wxString result;
e811c8ce
RD
2430 bool temp1 = False ;
2431 bool temp2 = False ;
2432 bool temp3 = False ;
d14a1e28
RD
2433 PyObject * obj0 = 0 ;
2434 PyObject * obj1 = 0 ;
2435 PyObject * obj2 = 0 ;
2436 PyObject * obj3 = 0 ;
2437 char *kwnames[] = {
2438 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2439 };
2440
2441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2442 {
2443 arg1 = wxString_in_helper(obj0);
2444 if (arg1 == NULL) SWIG_fail;
e811c8ce 2445 temp1 = True;
d14a1e28
RD
2446 }
2447 {
2448 arg2 = wxString_in_helper(obj1);
2449 if (arg2 == NULL) SWIG_fail;
e811c8ce 2450 temp2 = True;
d14a1e28
RD
2451 }
2452 if (obj2) {
2453 {
2454 arg3 = wxString_in_helper(obj2);
2455 if (arg3 == NULL) SWIG_fail;
e811c8ce 2456 temp3 = True;
d14a1e28
RD
2457 }
2458 }
2459 if (obj3) {
2460 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2461 }
2462 {
2463 PyThreadState* __tstate = wxPyBeginAllowThreads();
2464 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2465
2466 wxPyEndAllowThreads(__tstate);
2467 if (PyErr_Occurred()) SWIG_fail;
2468 }
2469 {
2470#if wxUSE_UNICODE
2471 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2472#else
2473 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2474#endif
2475 }
2476 {
2477 if (temp1)
2478 delete arg1;
2479 }
2480 {
2481 if (temp2)
2482 delete arg2;
2483 }
2484 {
2485 if (temp3)
2486 delete arg3;
2487 }
2488 return resultobj;
2489 fail:
2490 {
2491 if (temp1)
2492 delete arg1;
2493 }
2494 {
2495 if (temp2)
2496 delete arg2;
2497 }
2498 {
2499 if (temp3)
2500 delete arg3;
2501 }
2502 return NULL;
2503}
2504
2505
2506static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject *resultobj;
2508 wxString *arg1 = 0 ;
2509 wxString *arg2 = 0 ;
2510 wxString const &arg3_defvalue = wxPyEmptyString ;
2511 wxString *arg3 = (wxString *) &arg3_defvalue ;
2512 wxWindow *arg4 = (wxWindow *) NULL ;
2513 wxString result;
e811c8ce
RD
2514 bool temp1 = False ;
2515 bool temp2 = False ;
2516 bool temp3 = False ;
d14a1e28
RD
2517 PyObject * obj0 = 0 ;
2518 PyObject * obj1 = 0 ;
2519 PyObject * obj2 = 0 ;
2520 PyObject * obj3 = 0 ;
2521 char *kwnames[] = {
2522 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2523 };
2524
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2526 {
2527 arg1 = wxString_in_helper(obj0);
2528 if (arg1 == NULL) SWIG_fail;
e811c8ce 2529 temp1 = True;
d14a1e28
RD
2530 }
2531 {
2532 arg2 = wxString_in_helper(obj1);
2533 if (arg2 == NULL) SWIG_fail;
e811c8ce 2534 temp2 = True;
d14a1e28
RD
2535 }
2536 if (obj2) {
2537 {
2538 arg3 = wxString_in_helper(obj2);
2539 if (arg3 == NULL) SWIG_fail;
e811c8ce 2540 temp3 = True;
d14a1e28
RD
2541 }
2542 }
2543 if (obj3) {
2544 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2545 }
2546 {
2547 PyThreadState* __tstate = wxPyBeginAllowThreads();
2548 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2549
2550 wxPyEndAllowThreads(__tstate);
2551 if (PyErr_Occurred()) SWIG_fail;
2552 }
2553 {
2554#if wxUSE_UNICODE
2555 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2556#else
2557 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2558#endif
2559 }
2560 {
2561 if (temp1)
2562 delete arg1;
2563 }
2564 {
2565 if (temp2)
2566 delete arg2;
2567 }
2568 {
2569 if (temp3)
2570 delete arg3;
2571 }
2572 return resultobj;
2573 fail:
2574 {
2575 if (temp1)
2576 delete arg1;
2577 }
2578 {
2579 if (temp2)
2580 delete arg2;
2581 }
2582 {
2583 if (temp3)
2584 delete arg3;
2585 }
2586 return NULL;
2587}
2588
2589
2590static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2591 PyObject *resultobj;
2592 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
2593 wxString *arg1 = (wxString *) &arg1_defvalue ;
2594 wxString const &arg2_defvalue = wxPyEmptyString ;
2595 wxString *arg2 = (wxString *) &arg2_defvalue ;
2596 long arg3 = (long) wxDD_DEFAULT_STYLE ;
2597 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2598 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2599 wxWindow *arg5 = (wxWindow *) NULL ;
2600 wxString result;
e811c8ce
RD
2601 bool temp1 = False ;
2602 bool temp2 = False ;
d14a1e28
RD
2603 wxPoint temp4 ;
2604 PyObject * obj0 = 0 ;
2605 PyObject * obj1 = 0 ;
2606 PyObject * obj3 = 0 ;
2607 PyObject * obj4 = 0 ;
2608 char *kwnames[] = {
2609 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
2610 };
2611
2612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOlOO:DirSelector",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail;
2613 if (obj0) {
2614 {
2615 arg1 = wxString_in_helper(obj0);
2616 if (arg1 == NULL) SWIG_fail;
e811c8ce 2617 temp1 = True;
d14a1e28
RD
2618 }
2619 }
2620 if (obj1) {
2621 {
2622 arg2 = wxString_in_helper(obj1);
2623 if (arg2 == NULL) SWIG_fail;
e811c8ce 2624 temp2 = True;
d14a1e28
RD
2625 }
2626 }
2627 if (obj3) {
2628 {
2629 arg4 = &temp4;
2630 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2631 }
2632 }
2633 if (obj4) {
2634 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2635 }
2636 {
2637 PyThreadState* __tstate = wxPyBeginAllowThreads();
2638 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
2639
2640 wxPyEndAllowThreads(__tstate);
2641 if (PyErr_Occurred()) SWIG_fail;
2642 }
2643 {
2644#if wxUSE_UNICODE
2645 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2646#else
2647 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2648#endif
2649 }
2650 {
2651 if (temp1)
2652 delete arg1;
2653 }
2654 {
2655 if (temp2)
2656 delete arg2;
2657 }
2658 return resultobj;
2659 fail:
2660 {
2661 if (temp1)
2662 delete arg1;
2663 }
2664 {
2665 if (temp2)
2666 delete arg2;
2667 }
2668 return NULL;
2669}
2670
2671
2672static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2673 PyObject *resultobj;
2674 wxString *arg1 = 0 ;
2675 wxString const &arg2_defvalue = wxPyEmptyString ;
2676 wxString *arg2 = (wxString *) &arg2_defvalue ;
2677 wxString const &arg3_defvalue = wxPyEmptyString ;
2678 wxString *arg3 = (wxString *) &arg3_defvalue ;
2679 wxWindow *arg4 = (wxWindow *) NULL ;
2680 int arg5 = (int) -1 ;
2681 int arg6 = (int) -1 ;
e811c8ce 2682 bool arg7 = (bool) True ;
d14a1e28 2683 wxString result;
e811c8ce
RD
2684 bool temp1 = False ;
2685 bool temp2 = False ;
2686 bool temp3 = False ;
d14a1e28
RD
2687 PyObject * obj0 = 0 ;
2688 PyObject * obj1 = 0 ;
2689 PyObject * obj2 = 0 ;
2690 PyObject * obj3 = 0 ;
2691 PyObject * obj6 = 0 ;
2692 char *kwnames[] = {
2693 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
2694 };
2695
2696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOiiO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail;
2697 {
2698 arg1 = wxString_in_helper(obj0);
2699 if (arg1 == NULL) SWIG_fail;
e811c8ce 2700 temp1 = True;
d14a1e28
RD
2701 }
2702 if (obj1) {
2703 {
2704 arg2 = wxString_in_helper(obj1);
2705 if (arg2 == NULL) SWIG_fail;
e811c8ce 2706 temp2 = True;
d14a1e28
RD
2707 }
2708 }
2709 if (obj2) {
2710 {
2711 arg3 = wxString_in_helper(obj2);
2712 if (arg3 == NULL) SWIG_fail;
e811c8ce 2713 temp3 = True;
d14a1e28
RD
2714 }
2715 }
2716 if (obj3) {
2717 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2718 }
2719 if (obj6) {
2720 arg7 = PyInt_AsLong(obj6) ? true : false;
2721 if (PyErr_Occurred()) SWIG_fail;
2722 }
2723 {
2724 PyThreadState* __tstate = wxPyBeginAllowThreads();
2725 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
2726
2727 wxPyEndAllowThreads(__tstate);
2728 if (PyErr_Occurred()) SWIG_fail;
2729 }
2730 {
2731#if wxUSE_UNICODE
2732 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2733#else
2734 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2735#endif
2736 }
2737 {
2738 if (temp1)
2739 delete arg1;
2740 }
2741 {
2742 if (temp2)
2743 delete arg2;
2744 }
2745 {
2746 if (temp3)
2747 delete arg3;
2748 }
2749 return resultobj;
2750 fail:
2751 {
2752 if (temp1)
2753 delete arg1;
2754 }
2755 {
2756 if (temp2)
2757 delete arg2;
2758 }
2759 {
2760 if (temp3)
2761 delete arg3;
2762 }
2763 return NULL;
2764}
2765
2766
2767static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
2768 PyObject *resultobj;
2769 wxString *arg1 = 0 ;
2770 wxString const &arg2_defvalue = wxPyEmptyString ;
2771 wxString *arg2 = (wxString *) &arg2_defvalue ;
2772 wxString const &arg3_defvalue = wxPyEmptyString ;
2773 wxString *arg3 = (wxString *) &arg3_defvalue ;
2774 wxWindow *arg4 = (wxWindow *) NULL ;
2775 wxString result;
e811c8ce
RD
2776 bool temp1 = False ;
2777 bool temp2 = False ;
2778 bool temp3 = False ;
d14a1e28
RD
2779 PyObject * obj0 = 0 ;
2780 PyObject * obj1 = 0 ;
2781 PyObject * obj2 = 0 ;
2782 PyObject * obj3 = 0 ;
2783 char *kwnames[] = {
2784 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
2785 };
2786
2787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2788 {
2789 arg1 = wxString_in_helper(obj0);
2790 if (arg1 == NULL) SWIG_fail;
e811c8ce 2791 temp1 = True;
d14a1e28
RD
2792 }
2793 if (obj1) {
2794 {
2795 arg2 = wxString_in_helper(obj1);
2796 if (arg2 == NULL) SWIG_fail;
e811c8ce 2797 temp2 = True;
d14a1e28
RD
2798 }
2799 }
2800 if (obj2) {
2801 {
2802 arg3 = wxString_in_helper(obj2);
2803 if (arg3 == NULL) SWIG_fail;
e811c8ce 2804 temp3 = True;
d14a1e28
RD
2805 }
2806 }
2807 if (obj3) {
2808 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2809 }
2810 {
2811 PyThreadState* __tstate = wxPyBeginAllowThreads();
2812 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2813
2814 wxPyEndAllowThreads(__tstate);
2815 if (PyErr_Occurred()) SWIG_fail;
2816 }
2817 {
2818#if wxUSE_UNICODE
2819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2820#else
2821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2822#endif
2823 }
2824 {
2825 if (temp1)
2826 delete arg1;
2827 }
2828 {
2829 if (temp2)
2830 delete arg2;
2831 }
2832 {
2833 if (temp3)
2834 delete arg3;
2835 }
2836 return resultobj;
2837 fail:
2838 {
2839 if (temp1)
2840 delete arg1;
2841 }
2842 {
2843 if (temp2)
2844 delete arg2;
2845 }
2846 {
2847 if (temp3)
2848 delete arg3;
2849 }
2850 return NULL;
2851}
2852
2853
2854static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
2855 PyObject *resultobj;
2856 wxString *arg1 = 0 ;
2857 wxString *arg2 = 0 ;
2858 int arg3 ;
2859 wxString *arg4 = (wxString *) 0 ;
2860 wxWindow *arg5 = (wxWindow *) NULL ;
2861 int arg6 = (int) -1 ;
2862 int arg7 = (int) -1 ;
e811c8ce 2863 bool arg8 = (bool) True ;
d14a1e28
RD
2864 int arg9 = (int) 150 ;
2865 int arg10 = (int) 200 ;
2866 wxString result;
e811c8ce
RD
2867 bool temp1 = False ;
2868 bool temp2 = False ;
d14a1e28
RD
2869 PyObject * obj0 = 0 ;
2870 PyObject * obj1 = 0 ;
2871 PyObject * obj2 = 0 ;
2872 PyObject * obj3 = 0 ;
2873 PyObject * obj6 = 0 ;
2874 char *kwnames[] = {
2875 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
2876 };
2877
2878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail;
2879 {
2880 arg1 = wxString_in_helper(obj0);
2881 if (arg1 == NULL) SWIG_fail;
e811c8ce 2882 temp1 = True;
d14a1e28
RD
2883 }
2884 {
2885 arg2 = wxString_in_helper(obj1);
2886 if (arg2 == NULL) SWIG_fail;
e811c8ce 2887 temp2 = True;
d14a1e28
RD
2888 }
2889 {
2890 arg3 = PyList_Size(obj2);
2891 arg4 = wxString_LIST_helper(obj2);
2892 if (arg4 == NULL) SWIG_fail;
2893 }
2894 if (obj3) {
2895 if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2896 }
2897 if (obj6) {
2898 arg8 = PyInt_AsLong(obj6) ? true : false;
2899 if (PyErr_Occurred()) SWIG_fail;
2900 }
2901 {
2902 PyThreadState* __tstate = wxPyBeginAllowThreads();
2903 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
2904
2905 wxPyEndAllowThreads(__tstate);
2906 if (PyErr_Occurred()) SWIG_fail;
2907 }
2908 {
2909#if wxUSE_UNICODE
2910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2911#else
2912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2913#endif
2914 }
2915 {
2916 if (temp1)
2917 delete arg1;
2918 }
2919 {
2920 if (temp2)
2921 delete arg2;
2922 }
2923 {
2924 if (arg4) delete [] arg4;
2925 }
2926 return resultobj;
2927 fail:
2928 {
2929 if (temp1)
2930 delete arg1;
2931 }
2932 {
2933 if (temp2)
2934 delete arg2;
2935 }
2936 {
2937 if (arg4) delete [] arg4;
2938 }
2939 return NULL;
2940}
2941
2942
2943static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
2944 PyObject *resultobj;
2945 wxString *arg1 = 0 ;
2946 wxString *arg2 = 0 ;
2947 int arg3 ;
2948 wxString *arg4 = (wxString *) 0 ;
2949 wxWindow *arg5 = (wxWindow *) NULL ;
2950 int arg6 = (int) -1 ;
2951 int arg7 = (int) -1 ;
e811c8ce 2952 bool arg8 = (bool) True ;
d14a1e28
RD
2953 int arg9 = (int) 150 ;
2954 int arg10 = (int) 200 ;
2955 int result;
e811c8ce
RD
2956 bool temp1 = False ;
2957 bool temp2 = False ;
d14a1e28
RD
2958 PyObject * obj0 = 0 ;
2959 PyObject * obj1 = 0 ;
2960 PyObject * obj2 = 0 ;
2961 PyObject * obj3 = 0 ;
2962 PyObject * obj6 = 0 ;
2963 char *kwnames[] = {
2964 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
2965 };
2966
2967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail;
2968 {
2969 arg1 = wxString_in_helper(obj0);
2970 if (arg1 == NULL) SWIG_fail;
e811c8ce 2971 temp1 = True;
d14a1e28
RD
2972 }
2973 {
2974 arg2 = wxString_in_helper(obj1);
2975 if (arg2 == NULL) SWIG_fail;
e811c8ce 2976 temp2 = True;
d14a1e28
RD
2977 }
2978 {
2979 arg3 = PyList_Size(obj2);
2980 arg4 = wxString_LIST_helper(obj2);
2981 if (arg4 == NULL) SWIG_fail;
2982 }
2983 if (obj3) {
2984 if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2985 }
2986 if (obj6) {
2987 arg8 = PyInt_AsLong(obj6) ? true : false;
2988 if (PyErr_Occurred()) SWIG_fail;
2989 }
2990 {
2991 PyThreadState* __tstate = wxPyBeginAllowThreads();
2992 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
2993
2994 wxPyEndAllowThreads(__tstate);
2995 if (PyErr_Occurred()) SWIG_fail;
2996 }
2997 resultobj = PyInt_FromLong((long)result);
2998 {
2999 if (temp1)
3000 delete arg1;
3001 }
3002 {
3003 if (temp2)
3004 delete arg2;
3005 }
3006 {
3007 if (arg4) delete [] arg4;
3008 }
3009 return resultobj;
3010 fail:
3011 {
3012 if (temp1)
3013 delete arg1;
3014 }
3015 {
3016 if (temp2)
3017 delete arg2;
3018 }
3019 {
3020 if (arg4) delete [] arg4;
3021 }
3022 return NULL;
3023}
3024
3025
3026static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3027 PyObject *resultobj;
3028 wxString *arg1 = 0 ;
3029 wxString const &arg2_defvalue = wxPyEmptyString ;
3030 wxString *arg2 = (wxString *) &arg2_defvalue ;
3031 int arg3 = (int) wxOK|wxCENTRE ;
3032 wxWindow *arg4 = (wxWindow *) NULL ;
3033 int arg5 = (int) -1 ;
3034 int arg6 = (int) -1 ;
3035 int result;
e811c8ce
RD
3036 bool temp1 = False ;
3037 bool temp2 = False ;
d14a1e28
RD
3038 PyObject * obj0 = 0 ;
3039 PyObject * obj1 = 0 ;
3040 PyObject * obj3 = 0 ;
3041 char *kwnames[] = {
3042 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3043 };
3044
3045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOii:MessageBox",kwnames,&obj0,&obj1,&arg3,&obj3,&arg5,&arg6)) goto fail;
3046 {
3047 arg1 = wxString_in_helper(obj0);
3048 if (arg1 == NULL) SWIG_fail;
e811c8ce 3049 temp1 = True;
d14a1e28
RD
3050 }
3051 if (obj1) {
3052 {
3053 arg2 = wxString_in_helper(obj1);
3054 if (arg2 == NULL) SWIG_fail;
e811c8ce 3055 temp2 = True;
d14a1e28
RD
3056 }
3057 }
3058 if (obj3) {
3059 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3060 }
3061 {
3062 PyThreadState* __tstate = wxPyBeginAllowThreads();
3063 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3064
3065 wxPyEndAllowThreads(__tstate);
3066 if (PyErr_Occurred()) SWIG_fail;
3067 }
3068 resultobj = PyInt_FromLong((long)result);
3069 {
3070 if (temp1)
3071 delete arg1;
3072 }
3073 {
3074 if (temp2)
3075 delete arg2;
3076 }
3077 return resultobj;
3078 fail:
3079 {
3080 if (temp1)
3081 delete arg1;
3082 }
3083 {
3084 if (temp2)
3085 delete arg2;
3086 }
3087 return NULL;
3088}
3089
3090
3091static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3092 PyObject *resultobj;
3093 wxString *arg1 = 0 ;
3094 wxString *arg2 = 0 ;
3095 wxString *arg3 = 0 ;
3096 long arg4 ;
3097 long arg5 = (long) 0 ;
3098 long arg6 = (long) 100 ;
3099 wxWindow *arg7 = (wxWindow *) NULL ;
3100 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3101 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3102 long result;
e811c8ce
RD
3103 bool temp1 = False ;
3104 bool temp2 = False ;
3105 bool temp3 = False ;
d14a1e28
RD
3106 wxPoint temp8 ;
3107 PyObject * obj0 = 0 ;
3108 PyObject * obj1 = 0 ;
3109 PyObject * obj2 = 0 ;
3110 PyObject * obj6 = 0 ;
3111 PyObject * obj7 = 0 ;
3112 char *kwnames[] = {
3113 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3114 };
3115
3116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOl|llOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7)) goto fail;
3117 {
3118 arg1 = wxString_in_helper(obj0);
3119 if (arg1 == NULL) SWIG_fail;
e811c8ce 3120 temp1 = True;
d14a1e28
RD
3121 }
3122 {
3123 arg2 = wxString_in_helper(obj1);
3124 if (arg2 == NULL) SWIG_fail;
e811c8ce 3125 temp2 = True;
d14a1e28
RD
3126 }
3127 {
3128 arg3 = wxString_in_helper(obj2);
3129 if (arg3 == NULL) SWIG_fail;
e811c8ce 3130 temp3 = True;
d14a1e28
RD
3131 }
3132 if (obj6) {
3133 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3134 }
3135 if (obj7) {
3136 {
3137 arg8 = &temp8;
3138 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3139 }
3140 }
3141 {
3142 PyThreadState* __tstate = wxPyBeginAllowThreads();
3143 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3144
3145 wxPyEndAllowThreads(__tstate);
3146 if (PyErr_Occurred()) SWIG_fail;
3147 }
3148 resultobj = PyInt_FromLong((long)result);
3149 {
3150 if (temp1)
3151 delete arg1;
3152 }
3153 {
3154 if (temp2)
3155 delete arg2;
3156 }
3157 {
3158 if (temp3)
3159 delete arg3;
3160 }
3161 return resultobj;
3162 fail:
3163 {
3164 if (temp1)
3165 delete arg1;
3166 }
3167 {
3168 if (temp2)
3169 delete arg2;
3170 }
3171 {
3172 if (temp3)
3173 delete arg3;
3174 }
3175 return NULL;
3176}
3177
3178
3179static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3180 PyObject *resultobj;
3181 bool result;
3182 char *kwnames[] = {
3183 NULL
3184 };
3185
3186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3187 {
3188 PyThreadState* __tstate = wxPyBeginAllowThreads();
3189 result = (bool)wxColourDisplay();
3190
3191 wxPyEndAllowThreads(__tstate);
3192 if (PyErr_Occurred()) SWIG_fail;
3193 }
3194 resultobj = PyInt_FromLong((long)result);
3195 return resultobj;
3196 fail:
3197 return NULL;
3198}
3199
3200
3201static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3202 PyObject *resultobj;
3203 int result;
3204 char *kwnames[] = {
3205 NULL
3206 };
3207
3208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3209 {
3210 PyThreadState* __tstate = wxPyBeginAllowThreads();
3211 result = (int)wxDisplayDepth();
3212
3213 wxPyEndAllowThreads(__tstate);
3214 if (PyErr_Occurred()) SWIG_fail;
3215 }
3216 resultobj = PyInt_FromLong((long)result);
3217 return resultobj;
3218 fail:
3219 return NULL;
3220}
3221
3222
3223static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3224 PyObject *resultobj;
3225 int result;
3226 char *kwnames[] = {
3227 NULL
3228 };
3229
3230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3231 {
3232 PyThreadState* __tstate = wxPyBeginAllowThreads();
3233 result = (int)wxGetDisplayDepth();
3234
3235 wxPyEndAllowThreads(__tstate);
3236 if (PyErr_Occurred()) SWIG_fail;
3237 }
3238 resultobj = PyInt_FromLong((long)result);
3239 return resultobj;
3240 fail:
3241 return NULL;
3242}
3243
3244
3245static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3246 PyObject *resultobj;
3247 int *arg1 = (int *) 0 ;
3248 int *arg2 = (int *) 0 ;
3249 int temp1 ;
3250 int temp2 ;
3251 char *kwnames[] = {
3252 NULL
3253 };
3254
3255 arg1 = &temp1;
3256 arg2 = &temp2;
3257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3258 {
3259 PyThreadState* __tstate = wxPyBeginAllowThreads();
3260 wxDisplaySize(arg1,arg2);
3261
3262 wxPyEndAllowThreads(__tstate);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 Py_INCREF(Py_None); resultobj = Py_None;
3266 {
3267 PyObject *o = PyInt_FromLong((long) (*arg1));
3268 resultobj = t_output_helper(resultobj,o);
3269 }
3270 {
3271 PyObject *o = PyInt_FromLong((long) (*arg2));
3272 resultobj = t_output_helper(resultobj,o);
3273 }
3274 return resultobj;
3275 fail:
3276 return NULL;
3277}
3278
3279
3280static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3281 PyObject *resultobj;
3282 wxSize result;
3283 char *kwnames[] = {
3284 NULL
3285 };
3286
3287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3288 {
3289 PyThreadState* __tstate = wxPyBeginAllowThreads();
3290 result = wxGetDisplaySize();
3291
3292 wxPyEndAllowThreads(__tstate);
3293 if (PyErr_Occurred()) SWIG_fail;
3294 }
3295 {
3296 wxSize * resultptr;
3297 resultptr = new wxSize((wxSize &) result);
3298 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
3299 }
3300 return resultobj;
3301 fail:
3302 return NULL;
3303}
3304
3305
3306static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3307 PyObject *resultobj;
3308 int *arg1 = (int *) 0 ;
3309 int *arg2 = (int *) 0 ;
3310 int temp1 ;
3311 int temp2 ;
3312 char *kwnames[] = {
3313 NULL
3314 };
3315
3316 arg1 = &temp1;
3317 arg2 = &temp2;
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3319 {
3320 PyThreadState* __tstate = wxPyBeginAllowThreads();
3321 wxDisplaySizeMM(arg1,arg2);
3322
3323 wxPyEndAllowThreads(__tstate);
3324 if (PyErr_Occurred()) SWIG_fail;
3325 }
3326 Py_INCREF(Py_None); resultobj = Py_None;
3327 {
3328 PyObject *o = PyInt_FromLong((long) (*arg1));
3329 resultobj = t_output_helper(resultobj,o);
3330 }
3331 {
3332 PyObject *o = PyInt_FromLong((long) (*arg2));
3333 resultobj = t_output_helper(resultobj,o);
3334 }
3335 return resultobj;
3336 fail:
3337 return NULL;
3338}
3339
3340
3341static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3342 PyObject *resultobj;
3343 wxSize result;
3344 char *kwnames[] = {
3345 NULL
3346 };
3347
3348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3349 {
3350 PyThreadState* __tstate = wxPyBeginAllowThreads();
3351 result = wxGetDisplaySizeMM();
3352
3353 wxPyEndAllowThreads(__tstate);
3354 if (PyErr_Occurred()) SWIG_fail;
3355 }
3356 {
3357 wxSize * resultptr;
3358 resultptr = new wxSize((wxSize &) result);
3359 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
3360 }
3361 return resultobj;
3362 fail:
3363 return NULL;
3364}
3365
3366
3367static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3368 PyObject *resultobj;
3369 int *arg1 = (int *) 0 ;
3370 int *arg2 = (int *) 0 ;
3371 int *arg3 = (int *) 0 ;
3372 int *arg4 = (int *) 0 ;
3373 int temp1 ;
3374 int temp2 ;
3375 int temp3 ;
3376 int temp4 ;
3377 char *kwnames[] = {
3378 NULL
3379 };
3380
3381 arg1 = &temp1;
3382 arg2 = &temp2;
3383 arg3 = &temp3;
3384 arg4 = &temp4;
3385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3386 {
3387 PyThreadState* __tstate = wxPyBeginAllowThreads();
3388 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3389
3390 wxPyEndAllowThreads(__tstate);
3391 if (PyErr_Occurred()) SWIG_fail;
3392 }
3393 Py_INCREF(Py_None); resultobj = Py_None;
3394 {
3395 PyObject *o = PyInt_FromLong((long) (*arg1));
3396 resultobj = t_output_helper(resultobj,o);
3397 }
3398 {
3399 PyObject *o = PyInt_FromLong((long) (*arg2));
3400 resultobj = t_output_helper(resultobj,o);
3401 }
3402 {
3403 PyObject *o = PyInt_FromLong((long) (*arg3));
3404 resultobj = t_output_helper(resultobj,o);
3405 }
3406 {
3407 PyObject *o = PyInt_FromLong((long) (*arg4));
3408 resultobj = t_output_helper(resultobj,o);
3409 }
3410 return resultobj;
3411 fail:
3412 return NULL;
3413}
3414
3415
3416static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3417 PyObject *resultobj;
3418 wxRect result;
3419 char *kwnames[] = {
3420 NULL
3421 };
3422
3423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3424 {
3425 PyThreadState* __tstate = wxPyBeginAllowThreads();
3426 result = wxGetClientDisplayRect();
3427
3428 wxPyEndAllowThreads(__tstate);
3429 if (PyErr_Occurred()) SWIG_fail;
3430 }
3431 {
3432 wxRect * resultptr;
3433 resultptr = new wxRect((wxRect &) result);
3434 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
3435 }
3436 return resultobj;
3437 fail:
3438 return NULL;
3439}
3440
3441
3442static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3443 PyObject *resultobj;
3444 wxCursor *arg1 = 0 ;
3445 PyObject * obj0 = 0 ;
3446 char *kwnames[] = {
3447 (char *) "cursor", NULL
3448 };
3449
3450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3452 if (arg1 == NULL) {
3453 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3454 }
3455 {
3456 PyThreadState* __tstate = wxPyBeginAllowThreads();
3457 wxSetCursor(*arg1);
3458
3459 wxPyEndAllowThreads(__tstate);
3460 if (PyErr_Occurred()) SWIG_fail;
3461 }
3462 Py_INCREF(Py_None); resultobj = Py_None;
3463 return resultobj;
3464 fail:
3465 return NULL;
3466}
3467
3468
3469static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3470 PyObject *resultobj;
3471 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3472 PyObject * obj0 = 0 ;
3473 char *kwnames[] = {
3474 (char *) "cursor", NULL
3475 };
3476
3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
3478 if (obj0) {
3479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3480 }
3481 {
3482 PyThreadState* __tstate = wxPyBeginAllowThreads();
3483 wxBeginBusyCursor(arg1);
3484
3485 wxPyEndAllowThreads(__tstate);
3486 if (PyErr_Occurred()) SWIG_fail;
3487 }
3488 Py_INCREF(Py_None); resultobj = Py_None;
3489 return resultobj;
3490 fail:
3491 return NULL;
3492}
3493
3494
3495static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3496 PyObject *resultobj;
3497 wxWindow *result;
3498 char *kwnames[] = {
3499 NULL
3500 };
3501
3502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
3503 {
3504 PyThreadState* __tstate = wxPyBeginAllowThreads();
3505 result = (wxWindow *)wxGetActiveWindow();
3506
3507 wxPyEndAllowThreads(__tstate);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 {
3511 resultobj = wxPyMake_wxObject(result);
3512 }
3513 return resultobj;
3514 fail:
3515 return NULL;
3516}
3517
3518
3519static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3520 PyObject *resultobj;
3521 wxPoint *arg1 = 0 ;
3522 wxWindow *result;
3523 wxPoint temp1 ;
3524 PyObject * obj0 = 0 ;
3525 char *kwnames[] = {
3526 (char *) "pt", NULL
3527 };
3528
3529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
3530 {
3531 arg1 = &temp1;
3532 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3533 }
3534 {
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
3537
3538 wxPyEndAllowThreads(__tstate);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 {
3542 resultobj = wxPyMake_wxObject(result);
3543 }
3544 return resultobj;
3545 fail:
3546 return NULL;
3547}
3548
3549
3550static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3551 PyObject *resultobj;
3552 wxPoint *arg1 = 0 ;
3553 wxWindow *result;
3554 wxPoint temp1 ;
3555 PyObject * obj0 = 0 ;
3556 char *kwnames[] = {
3557 (char *) "pt", NULL
3558 };
3559
3560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
3561 {
3562 arg1 = &temp1;
3563 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3564 }
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 {
3573 resultobj = wxPyMake_wxObject(result);
3574 }
3575 return resultobj;
3576 fail:
3577 return NULL;
3578}
3579
3580
3581static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3582 PyObject *resultobj;
3583 wxWindow *arg1 = (wxWindow *) 0 ;
3584 wxWindow *result;
3585 PyObject * obj0 = 0 ;
3586 char *kwnames[] = {
3587 (char *) "win", NULL
3588 };
3589
3590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3592 {
3593 PyThreadState* __tstate = wxPyBeginAllowThreads();
3594 result = (wxWindow *)wxGetTopLevelParent(arg1);
3595
3596 wxPyEndAllowThreads(__tstate);
3597 if (PyErr_Occurred()) SWIG_fail;
3598 }
3599 {
3600 resultobj = wxPyMake_wxObject(result);
3601 }
3602 return resultobj;
3603 fail:
3604 return NULL;
3605}
3606
3607
3608static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
3609 PyObject *resultobj;
3610 char *kwnames[] = {
3611 NULL
3612 };
3613
3614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
3615 {
3616 PyThreadState* __tstate = wxPyBeginAllowThreads();
3617 wxWakeUpMainThread();
3618
3619 wxPyEndAllowThreads(__tstate);
3620 if (PyErr_Occurred()) SWIG_fail;
3621 }
3622 Py_INCREF(Py_None); resultobj = Py_None;
3623 return resultobj;
3624 fail:
3625 return NULL;
3626}
3627
3628
3629static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
3630 PyObject *resultobj;
3631 char *kwnames[] = {
3632 NULL
3633 };
3634
3635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
3636 {
3637 PyThreadState* __tstate = wxPyBeginAllowThreads();
3638 wxMutexGuiEnter();
3639
3640 wxPyEndAllowThreads(__tstate);
3641 if (PyErr_Occurred()) SWIG_fail;
3642 }
3643 Py_INCREF(Py_None); resultobj = Py_None;
3644 return resultobj;
3645 fail:
3646 return NULL;
3647}
3648
3649
3650static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
3651 PyObject *resultobj;
3652 char *kwnames[] = {
3653 NULL
3654 };
3655
3656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
3657 {
3658 PyThreadState* __tstate = wxPyBeginAllowThreads();
3659 wxMutexGuiLeave();
3660
3661 wxPyEndAllowThreads(__tstate);
3662 if (PyErr_Occurred()) SWIG_fail;
3663 }
3664 Py_INCREF(Py_None); resultobj = Py_None;
3665 return resultobj;
3666 fail:
3667 return NULL;
3668}
3669
3670
3671static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
3672 PyObject *resultobj;
3673 wxMutexGuiLocker *result;
3674 char *kwnames[] = {
3675 NULL
3676 };
3677
3678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
3679 {
3680 PyThreadState* __tstate = wxPyBeginAllowThreads();
3681 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
3682
3683 wxPyEndAllowThreads(__tstate);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1);
3687 return resultobj;
3688 fail:
3689 return NULL;
3690}
3691
3692
3693static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
3694 PyObject *resultobj;
3695 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
3696 PyObject * obj0 = 0 ;
3697 char *kwnames[] = {
3698 (char *) "self", NULL
3699 };
3700
3701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
3702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3703 {
3704 PyThreadState* __tstate = wxPyBeginAllowThreads();
3705 delete arg1;
3706
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 Py_INCREF(Py_None); resultobj = Py_None;
3711 return resultobj;
3712 fail:
3713 return NULL;
3714}
3715
3716
3717static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
3718 PyObject *obj;
3719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3720 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
3721 Py_INCREF(obj);
3722 return Py_BuildValue((char *)"");
3723}
3724static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj;
3726 bool result;
3727 char *kwnames[] = {
3728 NULL
3729 };
3730
3731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
3732 {
3733 PyThreadState* __tstate = wxPyBeginAllowThreads();
3734 result = (bool)wxThread_IsMain();
3735
3736 wxPyEndAllowThreads(__tstate);
3737 if (PyErr_Occurred()) SWIG_fail;
3738 }
3739 resultobj = PyInt_FromLong((long)result);
3740 return resultobj;
3741 fail:
3742 return NULL;
3743}
3744
3745
3746static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3747 PyObject *resultobj;
3748 wxString *arg1 = 0 ;
3749 wxToolTip *result;
e811c8ce 3750 bool temp1 = False ;
d14a1e28
RD
3751 PyObject * obj0 = 0 ;
3752 char *kwnames[] = {
3753 (char *) "tip", NULL
3754 };
3755
3756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
3757 {
3758 arg1 = wxString_in_helper(obj0);
3759 if (arg1 == NULL) SWIG_fail;
e811c8ce 3760 temp1 = True;
d14a1e28
RD
3761 }
3762 {
3763 PyThreadState* __tstate = wxPyBeginAllowThreads();
3764 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
3765
3766 wxPyEndAllowThreads(__tstate);
3767 if (PyErr_Occurred()) SWIG_fail;
3768 }
3769 {
3770 resultobj = wxPyMake_wxObject(result);
3771 }
3772 {
3773 if (temp1)
3774 delete arg1;
3775 }
3776 return resultobj;
3777 fail:
3778 {
3779 if (temp1)
3780 delete arg1;
3781 }
3782 return NULL;
3783}
3784
3785
3786static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3787 PyObject *resultobj;
3788 wxToolTip *arg1 = (wxToolTip *) 0 ;
3789 wxString *arg2 = 0 ;
e811c8ce 3790 bool temp2 = False ;
d14a1e28
RD
3791 PyObject * obj0 = 0 ;
3792 PyObject * obj1 = 0 ;
3793 char *kwnames[] = {
3794 (char *) "self",(char *) "tip", NULL
3795 };
3796
3797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
3798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3799 {
3800 arg2 = wxString_in_helper(obj1);
3801 if (arg2 == NULL) SWIG_fail;
e811c8ce 3802 temp2 = True;
d14a1e28
RD
3803 }
3804 {
3805 PyThreadState* __tstate = wxPyBeginAllowThreads();
3806 (arg1)->SetTip((wxString const &)*arg2);
3807
3808 wxPyEndAllowThreads(__tstate);
3809 if (PyErr_Occurred()) SWIG_fail;
3810 }
3811 Py_INCREF(Py_None); resultobj = Py_None;
3812 {
3813 if (temp2)
3814 delete arg2;
3815 }
3816 return resultobj;
3817 fail:
3818 {
3819 if (temp2)
3820 delete arg2;
3821 }
3822 return NULL;
3823}
3824
3825
3826static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3827 PyObject *resultobj;
3828 wxToolTip *arg1 = (wxToolTip *) 0 ;
3829 wxString result;
3830 PyObject * obj0 = 0 ;
3831 char *kwnames[] = {
3832 (char *) "self", NULL
3833 };
3834
3835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
3836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3837 {
3838 PyThreadState* __tstate = wxPyBeginAllowThreads();
3839 result = (arg1)->GetTip();
3840
3841 wxPyEndAllowThreads(__tstate);
3842 if (PyErr_Occurred()) SWIG_fail;
3843 }
3844 {
3845#if wxUSE_UNICODE
3846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3847#else
3848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3849#endif
3850 }
3851 return resultobj;
3852 fail:
3853 return NULL;
3854}
3855
3856
3857static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3858 PyObject *resultobj;
3859 wxToolTip *arg1 = (wxToolTip *) 0 ;
3860 wxWindow *result;
3861 PyObject * obj0 = 0 ;
3862 char *kwnames[] = {
3863 (char *) "self", NULL
3864 };
3865
3866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
3867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3868 {
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
3870 result = (wxWindow *)(arg1)->GetWindow();
3871
3872 wxPyEndAllowThreads(__tstate);
3873 if (PyErr_Occurred()) SWIG_fail;
3874 }
3875 {
3876 resultobj = wxPyMake_wxObject(result);
3877 }
3878 return resultobj;
3879 fail:
3880 return NULL;
3881}
3882
3883
3884static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
3885 PyObject *resultobj;
3886 bool arg1 ;
3887 PyObject * obj0 = 0 ;
3888 char *kwnames[] = {
3889 (char *) "flag", NULL
3890 };
3891
3892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
3893 arg1 = PyInt_AsLong(obj0) ? true : false;
3894 if (PyErr_Occurred()) SWIG_fail;
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 wxToolTip::Enable(arg1);
3898
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 Py_INCREF(Py_None); resultobj = Py_None;
3903 return resultobj;
3904 fail:
3905 return NULL;
3906}
3907
3908
3909static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
3910 PyObject *resultobj;
3911 long arg1 ;
3912 char *kwnames[] = {
3913 (char *) "milliseconds", NULL
3914 };
3915
3916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:ToolTip_SetDelay",kwnames,&arg1)) goto fail;
3917 {
3918 PyThreadState* __tstate = wxPyBeginAllowThreads();
3919 wxToolTip::SetDelay(arg1);
3920
3921 wxPyEndAllowThreads(__tstate);
3922 if (PyErr_Occurred()) SWIG_fail;
3923 }
3924 Py_INCREF(Py_None); resultobj = Py_None;
3925 return resultobj;
3926 fail:
3927 return NULL;
3928}
3929
3930
3931static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
3932 PyObject *obj;
3933 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3934 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
3935 Py_INCREF(obj);
3936 return Py_BuildValue((char *)"");
3937}
3938static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
3939 PyObject *resultobj;
3940 wxWindow *arg1 = (wxWindow *) 0 ;
3941 wxSize *arg2 = 0 ;
3942 wxCaret *result;
3943 wxSize temp2 ;
3944 PyObject * obj0 = 0 ;
3945 PyObject * obj1 = 0 ;
3946 char *kwnames[] = {
3947 (char *) "window",(char *) "size", NULL
3948 };
3949
3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
3951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3952 {
3953 arg2 = &temp2;
3954 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3955 }
3956 {
3957 PyThreadState* __tstate = wxPyBeginAllowThreads();
3958 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
3959
3960 wxPyEndAllowThreads(__tstate);
3961 if (PyErr_Occurred()) SWIG_fail;
3962 }
3963 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1);
3964 return resultobj;
3965 fail:
3966 return NULL;
3967}
3968
3969
3970static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
3971 PyObject *resultobj;
3972 wxCaret *arg1 = (wxCaret *) 0 ;
3973 PyObject * obj0 = 0 ;
3974 char *kwnames[] = {
3975 (char *) "self", NULL
3976 };
3977
3978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
3979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 delete arg1;
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 Py_INCREF(Py_None); resultobj = Py_None;
3988 return resultobj;
3989 fail:
3990 return NULL;
3991}
3992
3993
3994static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxCaret *arg1 = (wxCaret *) 0 ;
3997 bool result;
3998 PyObject * obj0 = 0 ;
3999 char *kwnames[] = {
4000 (char *) "self", NULL
4001 };
4002
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = (bool)(arg1)->IsOk();
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4012 resultobj = PyInt_FromLong((long)result);
4013 return resultobj;
4014 fail:
4015 return NULL;
4016}
4017
4018
4019static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4020 PyObject *resultobj;
4021 wxCaret *arg1 = (wxCaret *) 0 ;
4022 bool result;
4023 PyObject * obj0 = 0 ;
4024 char *kwnames[] = {
4025 (char *) "self", NULL
4026 };
4027
4028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 result = (bool)(arg1)->IsVisible();
4033
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 resultobj = PyInt_FromLong((long)result);
4038 return resultobj;
4039 fail:
4040 return NULL;
4041}
4042
4043
322913ce
RD
4044static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4045 PyObject *resultobj;
4046 wxCaret *arg1 = (wxCaret *) 0 ;
4047 wxPoint result;
4048 PyObject * obj0 = 0 ;
4049 char *kwnames[] = {
4050 (char *) "self", NULL
4051 };
4052
4053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4055 {
4056 PyThreadState* __tstate = wxPyBeginAllowThreads();
4057 result = (arg1)->GetPosition();
4058
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 {
4063 wxPoint * resultptr;
4064 resultptr = new wxPoint((wxPoint &) result);
4065 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
4066 }
4067 return resultobj;
4068 fail:
4069 return NULL;
4070}
4071
4072
d14a1e28
RD
4073static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj;
4075 wxCaret *arg1 = (wxCaret *) 0 ;
4076 int *arg2 = (int *) 0 ;
4077 int *arg3 = (int *) 0 ;
4078 int temp2 ;
4079 int temp3 ;
4080 PyObject * obj0 = 0 ;
4081 char *kwnames[] = {
4082 (char *) "self", NULL
4083 };
4084
4085 arg2 = &temp2;
4086 arg3 = &temp3;
4087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 (arg1)->GetPosition(arg2,arg3);
4092
4093 wxPyEndAllowThreads(__tstate);
4094 if (PyErr_Occurred()) SWIG_fail;
4095 }
4096 Py_INCREF(Py_None); resultobj = Py_None;
4097 {
4098 PyObject *o = PyInt_FromLong((long) (*arg2));
4099 resultobj = t_output_helper(resultobj,o);
4100 }
4101 {
4102 PyObject *o = PyInt_FromLong((long) (*arg3));
4103 resultobj = t_output_helper(resultobj,o);
4104 }
4105 return resultobj;
4106 fail:
4107 return NULL;
4108}
4109
4110
322913ce 4111static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4112 PyObject *resultobj;
4113 wxCaret *arg1 = (wxCaret *) 0 ;
322913ce 4114 wxSize result;
d14a1e28
RD
4115 PyObject * obj0 = 0 ;
4116 char *kwnames[] = {
4117 (char *) "self", NULL
4118 };
4119
322913ce 4120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
d14a1e28
RD
4121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4122 {
4123 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 4124 result = (arg1)->GetSize();
d14a1e28
RD
4125
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 }
4129 {
322913ce
RD
4130 wxSize * resultptr;
4131 resultptr = new wxSize((wxSize &) result);
4132 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
d14a1e28
RD
4133 }
4134 return resultobj;
4135 fail:
4136 return NULL;
4137}
4138
4139
4140static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4141 PyObject *resultobj;
4142 wxCaret *arg1 = (wxCaret *) 0 ;
4143 int *arg2 = (int *) 0 ;
4144 int *arg3 = (int *) 0 ;
4145 int temp2 ;
4146 int temp3 ;
4147 PyObject * obj0 = 0 ;
4148 char *kwnames[] = {
4149 (char *) "self", NULL
4150 };
4151
4152 arg2 = &temp2;
4153 arg3 = &temp3;
4154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 (arg1)->GetSize(arg2,arg3);
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 Py_INCREF(Py_None); resultobj = Py_None;
4164 {
4165 PyObject *o = PyInt_FromLong((long) (*arg2));
4166 resultobj = t_output_helper(resultobj,o);
4167 }
4168 {
4169 PyObject *o = PyInt_FromLong((long) (*arg3));
4170 resultobj = t_output_helper(resultobj,o);
4171 }
4172 return resultobj;
4173 fail:
4174 return NULL;
4175}
4176
4177
d14a1e28
RD
4178static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4179 PyObject *resultobj;
4180 wxCaret *arg1 = (wxCaret *) 0 ;
4181 wxWindow *result;
4182 PyObject * obj0 = 0 ;
4183 char *kwnames[] = {
4184 (char *) "self", NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (wxWindow *)(arg1)->GetWindow();
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 {
4197 resultobj = wxPyMake_wxObject(result);
4198 }
4199 return resultobj;
4200 fail:
4201 return NULL;
4202}
4203
4204
4205static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4206 PyObject *resultobj;
4207 wxCaret *arg1 = (wxCaret *) 0 ;
4208 int arg2 ;
4209 int arg3 ;
4210 PyObject * obj0 = 0 ;
4211 char *kwnames[] = {
4212 (char *) "self",(char *) "x",(char *) "y", NULL
4213 };
4214
4215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_MoveXY",kwnames,&obj0,&arg2,&arg3)) goto fail;
4216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 (arg1)->Move(arg2,arg3);
4220
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 Py_INCREF(Py_None); resultobj = Py_None;
4225 return resultobj;
4226 fail:
4227 return NULL;
4228}
4229
4230
4231static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj;
4233 wxCaret *arg1 = (wxCaret *) 0 ;
4234 wxPoint *arg2 = 0 ;
4235 wxPoint temp2 ;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 char *kwnames[] = {
4239 (char *) "self",(char *) "pt", NULL
4240 };
4241
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4244 {
4245 arg2 = &temp2;
4246 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4247 }
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 (arg1)->Move((wxPoint const &)*arg2);
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 Py_INCREF(Py_None); resultobj = Py_None;
4256 return resultobj;
4257 fail:
4258 return NULL;
4259}
4260
4261
4262static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj;
4264 wxCaret *arg1 = (wxCaret *) 0 ;
4265 int arg2 ;
4266 int arg3 ;
4267 PyObject * obj0 = 0 ;
4268 char *kwnames[] = {
4269 (char *) "self",(char *) "width",(char *) "height", NULL
4270 };
4271
4272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail;
4273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4274 {
4275 PyThreadState* __tstate = wxPyBeginAllowThreads();
4276 (arg1)->SetSize(arg2,arg3);
4277
4278 wxPyEndAllowThreads(__tstate);
4279 if (PyErr_Occurred()) SWIG_fail;
4280 }
4281 Py_INCREF(Py_None); resultobj = Py_None;
4282 return resultobj;
4283 fail:
4284 return NULL;
4285}
4286
4287
4288static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4289 PyObject *resultobj;
4290 wxCaret *arg1 = (wxCaret *) 0 ;
4291 wxSize *arg2 = 0 ;
4292 wxSize temp2 ;
4293 PyObject * obj0 = 0 ;
4294 PyObject * obj1 = 0 ;
4295 char *kwnames[] = {
4296 (char *) "self",(char *) "size", NULL
4297 };
4298
4299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4301 {
4302 arg2 = &temp2;
4303 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4304 }
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 (arg1)->SetSize((wxSize const &)*arg2);
4308
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 Py_INCREF(Py_None); resultobj = Py_None;
4313 return resultobj;
4314 fail:
4315 return NULL;
4316}
4317
4318
4319static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj;
4321 wxCaret *arg1 = (wxCaret *) 0 ;
e811c8ce 4322 int arg2 = (int) True ;
d14a1e28
RD
4323 PyObject * obj0 = 0 ;
4324 char *kwnames[] = {
4325 (char *) "self",(char *) "show", NULL
4326 };
4327
4328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Caret_Show",kwnames,&obj0,&arg2)) goto fail;
4329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4330 {
4331 PyThreadState* __tstate = wxPyBeginAllowThreads();
4332 (arg1)->Show(arg2);
4333
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 Py_INCREF(Py_None); resultobj = Py_None;
4338 return resultobj;
4339 fail:
4340 return NULL;
4341}
4342
4343
4344static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj;
4346 wxCaret *arg1 = (wxCaret *) 0 ;
4347 PyObject * obj0 = 0 ;
4348 char *kwnames[] = {
4349 (char *) "self", NULL
4350 };
4351
4352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4354 {
4355 PyThreadState* __tstate = wxPyBeginAllowThreads();
4356 (arg1)->Hide();
4357
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 Py_INCREF(Py_None); resultobj = Py_None;
4362 return resultobj;
4363 fail:
4364 return NULL;
4365}
4366
4367
4368static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
4369 PyObject *obj;
4370 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4371 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4372 Py_INCREF(obj);
4373 return Py_BuildValue((char *)"");
4374}
4375static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4376 PyObject *resultobj;
4377 int result;
4378 char *kwnames[] = {
4379 NULL
4380 };
4381
4382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 result = (int)wxCaret_GetBlinkTime();
4386
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) SWIG_fail;
4389 }
4390 resultobj = PyInt_FromLong((long)result);
4391 return resultobj;
4392 fail:
4393 return NULL;
4394}
4395
4396
4397static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4398 PyObject *resultobj;
4399 int arg1 ;
4400 char *kwnames[] = {
4401 (char *) "milliseconds", NULL
4402 };
4403
4404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Caret_SetBlinkTime",kwnames,&arg1)) goto fail;
4405 {
4406 PyThreadState* __tstate = wxPyBeginAllowThreads();
4407 wxCaret_SetBlinkTime(arg1);
4408
4409 wxPyEndAllowThreads(__tstate);
4410 if (PyErr_Occurred()) SWIG_fail;
4411 }
4412 Py_INCREF(Py_None); resultobj = Py_None;
4413 return resultobj;
4414 fail:
4415 return NULL;
4416}
4417
4418
4419static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4420 PyObject *resultobj;
4421 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4422 wxBusyCursor *result;
4423 PyObject * obj0 = 0 ;
4424 char *kwnames[] = {
4425 (char *) "cursor", NULL
4426 };
4427
4428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
4429 if (obj0) {
4430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4431 }
4432 {
4433 PyThreadState* __tstate = wxPyBeginAllowThreads();
4434 result = (wxBusyCursor *)new wxBusyCursor(arg1);
4435
4436 wxPyEndAllowThreads(__tstate);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 }
4439 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1);
4440 return resultobj;
4441 fail:
4442 return NULL;
4443}
4444
4445
4446static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4447 PyObject *resultobj;
4448 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
4449 PyObject * obj0 = 0 ;
4450 char *kwnames[] = {
4451 (char *) "self", NULL
4452 };
4453
4454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
4455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 delete arg1;
4459
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 Py_INCREF(Py_None); resultobj = Py_None;
4464 return resultobj;
4465 fail:
4466 return NULL;
4467}
4468
4469
4470static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
4471 PyObject *obj;
4472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4473 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
4474 Py_INCREF(obj);
4475 return Py_BuildValue((char *)"");
4476}
4477static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
4478 PyObject *resultobj;
4479 wxWindow *arg1 = (wxWindow *) NULL ;
4480 wxWindowDisabler *result;
4481 PyObject * obj0 = 0 ;
4482 char *kwnames[] = {
4483 (char *) "winToSkip", NULL
4484 };
4485
4486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
4487 if (obj0) {
4488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4489 }
4490 {
4491 PyThreadState* __tstate = wxPyBeginAllowThreads();
4492 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
4493
4494 wxPyEndAllowThreads(__tstate);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 }
4497 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1);
4498 return resultobj;
4499 fail:
4500 return NULL;
4501}
4502
4503
4504static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
4505 PyObject *resultobj;
4506 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
4507 PyObject * obj0 = 0 ;
4508 char *kwnames[] = {
4509 (char *) "self", NULL
4510 };
4511
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
4513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4514 {
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 delete arg1;
4517
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) SWIG_fail;
4520 }
4521 Py_INCREF(Py_None); resultobj = Py_None;
4522 return resultobj;
4523 fail:
4524 return NULL;
4525}
4526
4527
4528static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
4529 PyObject *obj;
4530 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4531 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
4532 Py_INCREF(obj);
4533 return Py_BuildValue((char *)"");
4534}
4535static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4536 PyObject *resultobj;
4537 wxString *arg1 = 0 ;
4538 wxBusyInfo *result;
e811c8ce 4539 bool temp1 = False ;
d14a1e28
RD
4540 PyObject * obj0 = 0 ;
4541 char *kwnames[] = {
4542 (char *) "message", NULL
4543 };
4544
4545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
4546 {
4547 arg1 = wxString_in_helper(obj0);
4548 if (arg1 == NULL) SWIG_fail;
e811c8ce 4549 temp1 = True;
d14a1e28
RD
4550 }
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1);
4559 {
4560 if (temp1)
4561 delete arg1;
4562 }
4563 return resultobj;
4564 fail:
4565 {
4566 if (temp1)
4567 delete arg1;
4568 }
4569 return NULL;
4570}
4571
4572
4573static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4574 PyObject *resultobj;
4575 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
4576 PyObject * obj0 = 0 ;
4577 char *kwnames[] = {
4578 (char *) "self", NULL
4579 };
4580
4581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
4582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4583 {
4584 PyThreadState* __tstate = wxPyBeginAllowThreads();
4585 delete arg1;
4586
4587 wxPyEndAllowThreads(__tstate);
4588 if (PyErr_Occurred()) SWIG_fail;
4589 }
4590 Py_INCREF(Py_None); resultobj = Py_None;
4591 return resultobj;
4592 fail:
4593 return NULL;
4594}
4595
4596
4597static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
4598 PyObject *obj;
4599 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4600 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
4601 Py_INCREF(obj);
4602 return Py_BuildValue((char *)"");
4603}
4604static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
4605 PyObject *resultobj;
4606 wxStopWatch *result;
4607 char *kwnames[] = {
4608 NULL
4609 };
4610
4611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
4612 {
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 result = (wxStopWatch *)new wxStopWatch();
4615
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1);
4620 return resultobj;
4621 fail:
4622 return NULL;
4623}
4624
4625
4626static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj;
4628 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
4629 long arg2 = (long) 0 ;
4630 PyObject * obj0 = 0 ;
4631 char *kwnames[] = {
4632 (char *) "self",(char *) "t0", NULL
4633 };
4634
4635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:StopWatch_Start",kwnames,&obj0,&arg2)) goto fail;
4636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4637 {
4638 PyThreadState* __tstate = wxPyBeginAllowThreads();
4639 (arg1)->Start(arg2);
4640
4641 wxPyEndAllowThreads(__tstate);
4642 if (PyErr_Occurred()) SWIG_fail;
4643 }
4644 Py_INCREF(Py_None); resultobj = Py_None;
4645 return resultobj;
4646 fail:
4647 return NULL;
4648}
4649
4650
4651static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
4654 PyObject * obj0 = 0 ;
4655 char *kwnames[] = {
4656 (char *) "self", NULL
4657 };
4658
4659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
4660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4661 {
4662 PyThreadState* __tstate = wxPyBeginAllowThreads();
4663 (arg1)->Pause();
4664
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 Py_INCREF(Py_None); resultobj = Py_None;
4669 return resultobj;
4670 fail:
4671 return NULL;
4672}
4673
4674
4675static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
4676 PyObject *resultobj;
4677 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
4678 PyObject * obj0 = 0 ;
4679 char *kwnames[] = {
4680 (char *) "self", NULL
4681 };
4682
4683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
4684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4685 {
4686 PyThreadState* __tstate = wxPyBeginAllowThreads();
4687 (arg1)->Resume();
4688
4689 wxPyEndAllowThreads(__tstate);
4690 if (PyErr_Occurred()) SWIG_fail;
4691 }
4692 Py_INCREF(Py_None); resultobj = Py_None;
4693 return resultobj;
4694 fail:
4695 return NULL;
4696}
4697
4698
4699static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
4700 PyObject *resultobj;
4701 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
4702 long result;
4703 PyObject * obj0 = 0 ;
4704 char *kwnames[] = {
4705 (char *) "self", NULL
4706 };
4707
4708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
4709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4710 {
4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
4712 result = (long)((wxStopWatch const *)arg1)->Time();
4713
4714 wxPyEndAllowThreads(__tstate);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 resultobj = PyInt_FromLong((long)result);
4718 return resultobj;
4719 fail:
4720 return NULL;
4721}
4722
4723
4724static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
4725 PyObject *obj;
4726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4727 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
4728 Py_INCREF(obj);
4729 return Py_BuildValue((char *)"");
4730}
4731static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
4732 PyObject *resultobj;
4733 int arg1 = (int) 9 ;
4734 wxFileHistory *result;
4735 char *kwnames[] = {
4736 (char *) "maxFiles", NULL
4737 };
4738
4739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_FileHistory",kwnames,&arg1)) goto fail;
4740 {
4741 PyThreadState* __tstate = wxPyBeginAllowThreads();
4742 result = (wxFileHistory *)new wxFileHistory(arg1);
4743
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 }
4747 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1);
4748 return resultobj;
4749 fail:
4750 return NULL;
4751}
4752
4753
4754static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
4755 PyObject *resultobj;
4756 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4757 PyObject * obj0 = 0 ;
4758 char *kwnames[] = {
4759 (char *) "self", NULL
4760 };
4761
4762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
4763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4764 {
4765 PyThreadState* __tstate = wxPyBeginAllowThreads();
4766 delete arg1;
4767
4768 wxPyEndAllowThreads(__tstate);
4769 if (PyErr_Occurred()) SWIG_fail;
4770 }
4771 Py_INCREF(Py_None); resultobj = Py_None;
4772 return resultobj;
4773 fail:
4774 return NULL;
4775}
4776
4777
4778static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
4779 PyObject *resultobj;
4780 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4781 wxString *arg2 = 0 ;
e811c8ce 4782 bool temp2 = False ;
d14a1e28
RD
4783 PyObject * obj0 = 0 ;
4784 PyObject * obj1 = 0 ;
4785 char *kwnames[] = {
4786 (char *) "self",(char *) "file", NULL
4787 };
4788
4789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
4790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4791 {
4792 arg2 = wxString_in_helper(obj1);
4793 if (arg2 == NULL) SWIG_fail;
e811c8ce 4794 temp2 = True;
d14a1e28
RD
4795 }
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 (arg1)->AddFileToHistory((wxString const &)*arg2);
4799
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 }
4803 Py_INCREF(Py_None); resultobj = Py_None;
4804 {
4805 if (temp2)
4806 delete arg2;
4807 }
4808 return resultobj;
4809 fail:
4810 {
4811 if (temp2)
4812 delete arg2;
4813 }
4814 return NULL;
4815}
4816
4817
4818static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj;
4820 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4821 int arg2 ;
4822 PyObject * obj0 = 0 ;
4823 char *kwnames[] = {
4824 (char *) "self",(char *) "i", NULL
4825 };
4826
4827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&arg2)) goto fail;
4828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 (arg1)->RemoveFileFromHistory(arg2);
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 Py_INCREF(Py_None); resultobj = Py_None;
4837 return resultobj;
4838 fail:
4839 return NULL;
4840}
4841
4842
4843static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
4844 PyObject *resultobj;
4845 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4846 int result;
4847 PyObject * obj0 = 0 ;
4848 char *kwnames[] = {
4849 (char *) "self", NULL
4850 };
4851
4852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
4853 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4854 {
4855 PyThreadState* __tstate = wxPyBeginAllowThreads();
4856 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
4857
4858 wxPyEndAllowThreads(__tstate);
4859 if (PyErr_Occurred()) SWIG_fail;
4860 }
4861 resultobj = PyInt_FromLong((long)result);
4862 return resultobj;
4863 fail:
4864 return NULL;
4865}
4866
4867
4868static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
4869 PyObject *resultobj;
4870 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4871 wxMenu *arg2 = (wxMenu *) 0 ;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 char *kwnames[] = {
4875 (char *) "self",(char *) "menu", NULL
4876 };
4877
4878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
4879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4880 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4881 {
4882 PyThreadState* __tstate = wxPyBeginAllowThreads();
4883 (arg1)->UseMenu(arg2);
4884
4885 wxPyEndAllowThreads(__tstate);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 Py_INCREF(Py_None); resultobj = Py_None;
4889 return resultobj;
4890 fail:
4891 return NULL;
4892}
4893
4894
4895static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
4896 PyObject *resultobj;
4897 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4898 wxMenu *arg2 = (wxMenu *) 0 ;
4899 PyObject * obj0 = 0 ;
4900 PyObject * obj1 = 0 ;
4901 char *kwnames[] = {
4902 (char *) "self",(char *) "menu", NULL
4903 };
4904
4905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
4906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4907 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4908 {
4909 PyThreadState* __tstate = wxPyBeginAllowThreads();
4910 (arg1)->RemoveMenu(arg2);
4911
4912 wxPyEndAllowThreads(__tstate);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 }
4915 Py_INCREF(Py_None); resultobj = Py_None;
4916 return resultobj;
4917 fail:
4918 return NULL;
4919}
4920
4921
4922static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
4923 PyObject *resultobj;
4924 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4925 wxConfigBase *arg2 = 0 ;
4926 PyObject * obj0 = 0 ;
4927 PyObject * obj1 = 0 ;
4928 char *kwnames[] = {
4929 (char *) "self",(char *) "config", NULL
4930 };
4931
4932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
4933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4934 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4935 if (arg2 == NULL) {
4936 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4937 }
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 (arg1)->Load(*arg2);
4941
4942 wxPyEndAllowThreads(__tstate);
4943 if (PyErr_Occurred()) SWIG_fail;
4944 }
4945 Py_INCREF(Py_None); resultobj = Py_None;
4946 return resultobj;
4947 fail:
4948 return NULL;
4949}
4950
4951
4952static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4955 wxConfigBase *arg2 = 0 ;
4956 PyObject * obj0 = 0 ;
4957 PyObject * obj1 = 0 ;
4958 char *kwnames[] = {
4959 (char *) "self",(char *) "config", NULL
4960 };
4961
4962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
4963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4964 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4965 if (arg2 == NULL) {
4966 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4967 }
4968 {
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 (arg1)->Save(*arg2);
4971
4972 wxPyEndAllowThreads(__tstate);
4973 if (PyErr_Occurred()) SWIG_fail;
4974 }
4975 Py_INCREF(Py_None); resultobj = Py_None;
4976 return resultobj;
4977 fail:
4978 return NULL;
4979}
4980
4981
4982static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
4983 PyObject *resultobj;
4984 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
4985 PyObject * obj0 = 0 ;
4986 char *kwnames[] = {
4987 (char *) "self", NULL
4988 };
4989
4990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
4991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 (arg1)->AddFilesToMenu();
4995
4996 wxPyEndAllowThreads(__tstate);
4997 if (PyErr_Occurred()) SWIG_fail;
4998 }
4999 Py_INCREF(Py_None); resultobj = Py_None;
5000 return resultobj;
5001 fail:
5002 return NULL;
5003}
5004
5005
5006static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject *resultobj;
5008 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5009 wxMenu *arg2 = (wxMenu *) 0 ;
5010 PyObject * obj0 = 0 ;
5011 PyObject * obj1 = 0 ;
5012 char *kwnames[] = {
5013 (char *) "self",(char *) "menu", NULL
5014 };
5015
5016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5018 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5019 {
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 (arg1)->AddFilesToMenu(arg2);
5022
5023 wxPyEndAllowThreads(__tstate);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 }
5026 Py_INCREF(Py_None); resultobj = Py_None;
5027 return resultobj;
5028 fail:
5029 return NULL;
5030}
5031
5032
5033static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5034 PyObject *resultobj;
5035 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5036 int arg2 ;
5037 wxString result;
5038 PyObject * obj0 = 0 ;
5039 char *kwnames[] = {
5040 (char *) "self",(char *) "i", NULL
5041 };
5042
5043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_GetHistoryFile",kwnames,&obj0,&arg2)) goto fail;
5044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5045 {
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5048
5049 wxPyEndAllowThreads(__tstate);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 }
5052 {
5053#if wxUSE_UNICODE
5054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5055#else
5056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5057#endif
5058 }
5059 return resultobj;
5060 fail:
5061 return NULL;
5062}
5063
5064
5065static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5066 PyObject *resultobj;
5067 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5068 int result;
5069 PyObject * obj0 = 0 ;
5070 char *kwnames[] = {
5071 (char *) "self", NULL
5072 };
5073
5074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5075 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5076 {
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 result = (int)((wxFileHistory const *)arg1)->GetCount();
5079
5080 wxPyEndAllowThreads(__tstate);
5081 if (PyErr_Occurred()) SWIG_fail;
5082 }
5083 resultobj = PyInt_FromLong((long)result);
5084 return resultobj;
5085 fail:
5086 return NULL;
5087}
5088
5089
5090static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5091 PyObject *obj;
5092 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5093 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5094 Py_INCREF(obj);
5095 return Py_BuildValue((char *)"");
5096}
5097static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxString *arg1 = 0 ;
5100 wxString const &arg2_defvalue = wxPyEmptyString ;
5101 wxString *arg2 = (wxString *) &arg2_defvalue ;
5102 wxSingleInstanceChecker *result;
e811c8ce
RD
5103 bool temp1 = False ;
5104 bool temp2 = False ;
d14a1e28
RD
5105 PyObject * obj0 = 0 ;
5106 PyObject * obj1 = 0 ;
5107 char *kwnames[] = {
5108 (char *) "name",(char *) "path", NULL
5109 };
5110
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5112 {
5113 arg1 = wxString_in_helper(obj0);
5114 if (arg1 == NULL) SWIG_fail;
e811c8ce 5115 temp1 = True;
d14a1e28
RD
5116 }
5117 if (obj1) {
5118 {
5119 arg2 = wxString_in_helper(obj1);
5120 if (arg2 == NULL) SWIG_fail;
e811c8ce 5121 temp2 = True;
d14a1e28
RD
5122 }
5123 }
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5127
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1);
5132 {
5133 if (temp1)
5134 delete arg1;
5135 }
5136 {
5137 if (temp2)
5138 delete arg2;
5139 }
5140 return resultobj;
5141 fail:
5142 {
5143 if (temp1)
5144 delete arg1;
5145 }
5146 {
5147 if (temp2)
5148 delete arg2;
5149 }
5150 return NULL;
5151}
5152
5153
5154static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5155 PyObject *resultobj;
5156 wxSingleInstanceChecker *result;
5157 char *kwnames[] = {
5158 NULL
5159 };
5160
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5162 {
5163 PyThreadState* __tstate = wxPyBeginAllowThreads();
5164 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5165
5166 wxPyEndAllowThreads(__tstate);
5167 if (PyErr_Occurred()) SWIG_fail;
5168 }
5169 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1);
5170 return resultobj;
5171 fail:
5172 return NULL;
5173}
5174
5175
5176static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5177 PyObject *resultobj;
5178 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5179 PyObject * obj0 = 0 ;
5180 char *kwnames[] = {
5181 (char *) "self", NULL
5182 };
5183
5184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5186 {
5187 PyThreadState* __tstate = wxPyBeginAllowThreads();
5188 delete arg1;
5189
5190 wxPyEndAllowThreads(__tstate);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 }
5193 Py_INCREF(Py_None); resultobj = Py_None;
5194 return resultobj;
5195 fail:
5196 return NULL;
5197}
5198
5199
5200static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5201 PyObject *resultobj;
5202 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5203 wxString *arg2 = 0 ;
5204 wxString const &arg3_defvalue = wxPyEmptyString ;
5205 wxString *arg3 = (wxString *) &arg3_defvalue ;
5206 bool result;
e811c8ce
RD
5207 bool temp2 = False ;
5208 bool temp3 = False ;
d14a1e28
RD
5209 PyObject * obj0 = 0 ;
5210 PyObject * obj1 = 0 ;
5211 PyObject * obj2 = 0 ;
5212 char *kwnames[] = {
5213 (char *) "self",(char *) "name",(char *) "path", NULL
5214 };
5215
5216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5218 {
5219 arg2 = wxString_in_helper(obj1);
5220 if (arg2 == NULL) SWIG_fail;
e811c8ce 5221 temp2 = True;
d14a1e28
RD
5222 }
5223 if (obj2) {
5224 {
5225 arg3 = wxString_in_helper(obj2);
5226 if (arg3 == NULL) SWIG_fail;
e811c8ce 5227 temp3 = True;
d14a1e28
RD
5228 }
5229 }
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5233
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = PyInt_FromLong((long)result);
5238 {
5239 if (temp2)
5240 delete arg2;
5241 }
5242 {
5243 if (temp3)
5244 delete arg3;
5245 }
5246 return resultobj;
5247 fail:
5248 {
5249 if (temp2)
5250 delete arg2;
5251 }
5252 {
5253 if (temp3)
5254 delete arg3;
5255 }
5256 return NULL;
5257}
5258
5259
5260static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5261 PyObject *resultobj;
5262 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5263 bool result;
5264 PyObject * obj0 = 0 ;
5265 char *kwnames[] = {
5266 (char *) "self", NULL
5267 };
5268
5269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5271 {
5272 PyThreadState* __tstate = wxPyBeginAllowThreads();
5273 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5274
5275 wxPyEndAllowThreads(__tstate);
5276 if (PyErr_Occurred()) SWIG_fail;
5277 }
5278 resultobj = PyInt_FromLong((long)result);
5279 return resultobj;
5280 fail:
5281 return NULL;
5282}
5283
5284
5285static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5286 PyObject *obj;
5287 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5288 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5289 Py_INCREF(obj);
5290 return Py_BuildValue((char *)"");
5291}
5292static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 wxWindow *arg1 = (wxWindow *) 0 ;
5295 wxDC *arg2 = 0 ;
5296 int arg3 ;
5297 PyObject * obj0 = 0 ;
5298 PyObject * obj1 = 0 ;
5299 char *kwnames[] = {
5300 (char *) "window",(char *) "dc",(char *) "method", NULL
5301 };
5302
5303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DrawWindowOnDC",kwnames,&obj0,&obj1,&arg3)) goto fail;
5304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5305 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5306 if (arg2 == NULL) {
5307 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5308 }
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5312
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 Py_INCREF(Py_None); resultobj = Py_None;
5317 return resultobj;
5318 fail:
5319 return NULL;
5320}
5321
5322
5323static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj;
5325 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5326 PyObject * obj0 = 0 ;
5327 char *kwnames[] = {
5328 (char *) "self", NULL
5329 };
5330
5331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
5332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5333 {
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 delete arg1;
5336
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
5340 Py_INCREF(Py_None); resultobj = Py_None;
5341 return resultobj;
5342 fail:
5343 return NULL;
5344}
5345
5346
5347static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj;
5349 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5350 wxString result;
5351 PyObject * obj0 = 0 ;
5352 char *kwnames[] = {
5353 (char *) "self", NULL
5354 };
5355
5356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
5357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5358 {
5359 PyThreadState* __tstate = wxPyBeginAllowThreads();
5360 result = (arg1)->GetTip();
5361
5362 wxPyEndAllowThreads(__tstate);
5363 if (PyErr_Occurred()) SWIG_fail;
5364 }
5365 {
5366#if wxUSE_UNICODE
5367 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5368#else
5369 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5370#endif
5371 }
5372 return resultobj;
5373 fail:
5374 return NULL;
5375}
5376
5377
5378static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj;
5380 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5381 size_t result;
5382 PyObject * obj0 = 0 ;
5383 char *kwnames[] = {
5384 (char *) "self", NULL
5385 };
5386
5387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
5388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5389 {
5390 PyThreadState* __tstate = wxPyBeginAllowThreads();
5391 result = (size_t)(arg1)->GetCurrentTip();
5392
5393 wxPyEndAllowThreads(__tstate);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 resultobj = PyInt_FromLong((long)result);
5397 return resultobj;
5398 fail:
5399 return NULL;
5400}
5401
5402
5403static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5404 PyObject *resultobj;
5405 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5406 wxString *arg2 = 0 ;
5407 wxString result;
e811c8ce 5408 bool temp2 = False ;
d14a1e28
RD
5409 PyObject * obj0 = 0 ;
5410 PyObject * obj1 = 0 ;
5411 char *kwnames[] = {
5412 (char *) "self",(char *) "tip", NULL
5413 };
5414
5415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
5416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5417 {
5418 arg2 = wxString_in_helper(obj1);
5419 if (arg2 == NULL) SWIG_fail;
e811c8ce 5420 temp2 = True;
d14a1e28
RD
5421 }
5422 {
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 result = (arg1)->PreprocessTip((wxString const &)*arg2);
5425
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 {
5430#if wxUSE_UNICODE
5431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5432#else
5433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5434#endif
5435 }
5436 {
5437 if (temp2)
5438 delete arg2;
5439 }
5440 return resultobj;
5441 fail:
5442 {
5443 if (temp2)
5444 delete arg2;
5445 }
5446 return NULL;
5447}
5448
5449
5450static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
5451 PyObject *obj;
5452 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5453 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
5454 Py_INCREF(obj);
5455 return Py_BuildValue((char *)"");
5456}
5457static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj;
5459 size_t arg1 ;
5460 wxPyTipProvider *result;
5461 PyObject * obj0 = 0 ;
5462 char *kwnames[] = {
5463 (char *) "currentTip", NULL
5464 };
5465
5466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
5467 arg1 = (size_t) PyInt_AsLong(obj0);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 {
5470 PyThreadState* __tstate = wxPyBeginAllowThreads();
5471 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
5472
5473 wxPyEndAllowThreads(__tstate);
5474 if (PyErr_Occurred()) SWIG_fail;
5475 }
5476 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1);
5477 return resultobj;
5478 fail:
5479 return NULL;
5480}
5481
5482
5483static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5484 PyObject *resultobj;
5485 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
5486 PyObject *arg2 = (PyObject *) 0 ;
5487 PyObject *arg3 = (PyObject *) 0 ;
5488 PyObject * obj0 = 0 ;
5489 PyObject * obj1 = 0 ;
5490 PyObject * obj2 = 0 ;
5491 char *kwnames[] = {
5492 (char *) "self",(char *) "self",(char *) "_class", NULL
5493 };
5494
5495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5497 arg2 = obj1;
5498 arg3 = obj2;
5499 {
5500 PyThreadState* __tstate = wxPyBeginAllowThreads();
5501 (arg1)->_setCallbackInfo(arg2,arg3);
5502
5503 wxPyEndAllowThreads(__tstate);
5504 if (PyErr_Occurred()) SWIG_fail;
5505 }
5506 Py_INCREF(Py_None); resultobj = Py_None;
5507 return resultobj;
5508 fail:
5509 return NULL;
5510}
5511
5512
5513static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
5514 PyObject *obj;
5515 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5516 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
5517 Py_INCREF(obj);
5518 return Py_BuildValue((char *)"");
5519}
5520static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5521 PyObject *resultobj;
5522 wxWindow *arg1 = (wxWindow *) 0 ;
5523 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
e811c8ce 5524 bool arg3 = (bool) True ;
d14a1e28
RD
5525 bool result;
5526 PyObject * obj0 = 0 ;
5527 PyObject * obj1 = 0 ;
5528 PyObject * obj2 = 0 ;
5529 char *kwnames[] = {
5530 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
5531 };
5532
5533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
5534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5535 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5536 if (obj2) {
5537 arg3 = PyInt_AsLong(obj2) ? true : false;
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 result = (bool)wxShowTip(arg1,arg2,arg3);
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 resultobj = PyInt_FromLong((long)result);
5548 return resultobj;
5549 fail:
5550 return NULL;
5551}
5552
5553
5554static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5555 PyObject *resultobj;
5556 wxString *arg1 = 0 ;
5557 size_t arg2 ;
5558 wxTipProvider *result;
e811c8ce 5559 bool temp1 = False ;
d14a1e28
RD
5560 PyObject * obj0 = 0 ;
5561 PyObject * obj1 = 0 ;
5562 char *kwnames[] = {
5563 (char *) "filename",(char *) "currentTip", NULL
5564 };
5565
5566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
5567 {
5568 arg1 = wxString_in_helper(obj0);
5569 if (arg1 == NULL) SWIG_fail;
e811c8ce 5570 temp1 = True;
d14a1e28
RD
5571 }
5572 arg2 = (size_t) PyInt_AsLong(obj1);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 {
5575 PyThreadState* __tstate = wxPyBeginAllowThreads();
5576 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
5577
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1);
5582 {
5583 if (temp1)
5584 delete arg1;
5585 }
5586 return resultobj;
5587 fail:
5588 {
5589 if (temp1)
5590 delete arg1;
5591 }
5592 return NULL;
5593}
5594
5595
5596static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
5597 PyObject *resultobj;
5598 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
5599 int arg2 = (int) -1 ;
5600 wxPyTimer *result;
5601 PyObject * obj0 = 0 ;
5602 char *kwnames[] = {
5603 (char *) "owner",(char *) "id", NULL
5604 };
5605
5606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Timer",kwnames,&obj0,&arg2)) goto fail;
5607 if (obj0) {
5608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5609 }
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
5613
5614 wxPyEndAllowThreads(__tstate);
5615 if (PyErr_Occurred()) SWIG_fail;
5616 }
5617 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1);
5618 return resultobj;
5619 fail:
5620 return NULL;
5621}
5622
5623
5624static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
5625 PyObject *resultobj;
5626 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5627 PyObject * obj0 = 0 ;
5628 char *kwnames[] = {
5629 (char *) "self", NULL
5630 };
5631
5632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
5633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5634 {
5635 PyThreadState* __tstate = wxPyBeginAllowThreads();
5636 delete arg1;
5637
5638 wxPyEndAllowThreads(__tstate);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 }
5641 Py_INCREF(Py_None); resultobj = Py_None;
5642 return resultobj;
5643 fail:
5644 return NULL;
5645}
5646
5647
7722248d
RD
5648static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5649 PyObject *resultobj;
5650 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5651 PyObject *arg2 = (PyObject *) 0 ;
5652 PyObject *arg3 = (PyObject *) 0 ;
5653 PyObject * obj0 = 0 ;
5654 PyObject * obj1 = 0 ;
5655 PyObject * obj2 = 0 ;
5656 char *kwnames[] = {
5657 (char *) "self",(char *) "self",(char *) "_class", NULL
5658 };
5659
5660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5662 arg2 = obj1;
5663 arg3 = obj2;
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 (arg1)->_setCallbackInfo(arg2,arg3);
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 Py_INCREF(Py_None); resultobj = Py_None;
5672 return resultobj;
5673 fail:
5674 return NULL;
5675}
5676
5677
d14a1e28
RD
5678static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5681 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
5682 int arg3 = (int) -1 ;
5683 PyObject * obj0 = 0 ;
5684 PyObject * obj1 = 0 ;
5685 char *kwnames[] = {
5686 (char *) "self",(char *) "owner",(char *) "id", NULL
5687 };
5688
5689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Timer_SetOwner",kwnames,&obj0,&obj1,&arg3)) goto fail;
5690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5691 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 (arg1)->SetOwner(arg2,arg3);
5695
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 Py_INCREF(Py_None); resultobj = Py_None;
5700 return resultobj;
5701 fail:
5702 return NULL;
5703}
5704
5705
5706static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj;
5708 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5709 int arg2 = (int) -1 ;
e811c8ce 5710 bool arg3 = (bool) False ;
d14a1e28
RD
5711 bool result;
5712 PyObject * obj0 = 0 ;
5713 PyObject * obj2 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Timer_Start",kwnames,&obj0,&arg2,&obj2)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5720 if (obj2) {
5721 arg3 = PyInt_AsLong(obj2) ? true : false;
5722 if (PyErr_Occurred()) SWIG_fail;
5723 }
5724 {
5725 PyThreadState* __tstate = wxPyBeginAllowThreads();
5726 result = (bool)(arg1)->Start(arg2,arg3);
5727
5728 wxPyEndAllowThreads(__tstate);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 }
5731 resultobj = PyInt_FromLong((long)result);
5732 return resultobj;
5733 fail:
5734 return NULL;
5735}
5736
5737
5738static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
5739 PyObject *resultobj;
5740 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5741 PyObject * obj0 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
5747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5748 {
5749 PyThreadState* __tstate = wxPyBeginAllowThreads();
5750 (arg1)->Stop();
5751
5752 wxPyEndAllowThreads(__tstate);
5753 if (PyErr_Occurred()) SWIG_fail;
5754 }
5755 Py_INCREF(Py_None); resultobj = Py_None;
5756 return resultobj;
5757 fail:
5758 return NULL;
5759}
5760
5761
d14a1e28
RD
5762static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5763 PyObject *resultobj;
5764 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5765 bool result;
5766 PyObject * obj0 = 0 ;
5767 char *kwnames[] = {
5768 (char *) "self", NULL
5769 };
5770
5771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
5772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5773 {
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
5776
5777 wxPyEndAllowThreads(__tstate);
5778 if (PyErr_Occurred()) SWIG_fail;
5779 }
5780 resultobj = PyInt_FromLong((long)result);
5781 return resultobj;
5782 fail:
5783 return NULL;
5784}
5785
5786
5787static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
5788 PyObject *resultobj;
5789 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5790 int result;
5791 PyObject * obj0 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
5797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5798 {
5799 PyThreadState* __tstate = wxPyBeginAllowThreads();
5800 result = (int)((wxPyTimer const *)arg1)->GetInterval();
5801
5802 wxPyEndAllowThreads(__tstate);
5803 if (PyErr_Occurred()) SWIG_fail;
5804 }
5805 resultobj = PyInt_FromLong((long)result);
5806 return resultobj;
5807 fail:
5808 return NULL;
5809}
5810
5811
5812static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
5813 PyObject *resultobj;
5814 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5815 bool result;
5816 PyObject * obj0 = 0 ;
5817 char *kwnames[] = {
5818 (char *) "self", NULL
5819 };
5820
5821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
5822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
5826
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 resultobj = PyInt_FromLong((long)result);
5831 return resultobj;
5832 fail:
5833 return NULL;
5834}
5835
5836
cc6dd355
RD
5837static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
5838 PyObject *resultobj;
5839 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
5840 int result;
5841 PyObject * obj0 = 0 ;
5842 char *kwnames[] = {
5843 (char *) "self", NULL
5844 };
5845
5846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
5847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 result = (int)((wxPyTimer const *)arg1)->GetId();
5851
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 resultobj = PyInt_FromLong((long)result);
5856 return resultobj;
5857 fail:
5858 return NULL;
5859}
5860
5861
d14a1e28
RD
5862static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
5863 PyObject *obj;
5864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5865 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
5866 Py_INCREF(obj);
5867 return Py_BuildValue((char *)"");
5868}
5869static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
5870 PyObject *resultobj;
5871 int arg1 = (int) 0 ;
5872 int arg2 = (int) 0 ;
5873 wxTimerEvent *result;
5874 char *kwnames[] = {
5875 (char *) "timerid",(char *) "interval", NULL
5876 };
5877
5878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TimerEvent",kwnames,&arg1,&arg2)) goto fail;
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
5882
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1);
5887 return resultobj;
5888 fail:
5889 return NULL;
5890}
5891
5892
5893static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
5894 PyObject *resultobj;
5895 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
5896 int result;
5897 PyObject * obj0 = 0 ;
5898 char *kwnames[] = {
5899 (char *) "self", NULL
5900 };
5901
5902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
5903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5904 {
5905 PyThreadState* __tstate = wxPyBeginAllowThreads();
5906 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
5907
5908 wxPyEndAllowThreads(__tstate);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 resultobj = PyInt_FromLong((long)result);
5912 return resultobj;
5913 fail:
5914 return NULL;
5915}
5916
5917
5918static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
5919 PyObject *obj;
5920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5921 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
5922 Py_INCREF(obj);
5923 return Py_BuildValue((char *)"");
5924}
5925static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
5926 PyObject *resultobj;
5927 wxTimer *arg1 = 0 ;
5928 wxTimerRunner *result;
5929 PyObject * obj0 = 0 ;
5930
5931 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
5932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5933 if (arg1 == NULL) {
5934 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5935 }
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
5939
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1);
5944 return resultobj;
5945 fail:
5946 return NULL;
5947}
5948
5949
5950static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
5951 PyObject *resultobj;
5952 wxTimer *arg1 = 0 ;
5953 int arg2 ;
e811c8ce 5954 bool arg3 = (bool) False ;
d14a1e28
RD
5955 wxTimerRunner *result;
5956 PyObject * obj0 = 0 ;
5957 PyObject * obj2 = 0 ;
5958
5959 if(!PyArg_ParseTuple(args,(char *)"Oi|O:new_TimerRunner",&obj0,&arg2,&obj2)) goto fail;
5960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5961 if (arg1 == NULL) {
5962 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5963 }
5964 if (obj2) {
5965 arg3 = PyInt_AsLong(obj2) ? true : false;
5966 if (PyErr_Occurred()) SWIG_fail;
5967 }
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
5971
5972 wxPyEndAllowThreads(__tstate);
5973 if (PyErr_Occurred()) SWIG_fail;
5974 }
5975 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1);
5976 return resultobj;
5977 fail:
5978 return NULL;
5979}
5980
5981
5982static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
5983 int argc;
5984 PyObject *argv[4];
5985 int ii;
5986
5987 argc = PyObject_Length(args);
5988 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
5989 argv[ii] = PyTuple_GetItem(args,ii);
5990 }
5991 if (argc == 1) {
5992 int _v;
5993 {
5994 void *ptr;
5995 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
5996 _v = 0;
5997 PyErr_Clear();
5998 } else {
5999 _v = 1;
6000 }
6001 }
6002 if (_v) {
6003 return _wrap_new_TimerRunner__SWIG_0(self,args);
6004 }
6005 }
6006 if ((argc >= 2) && (argc <= 3)) {
6007 int _v;
6008 {
6009 void *ptr;
6010 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6011 _v = 0;
6012 PyErr_Clear();
6013 } else {
6014 _v = 1;
6015 }
6016 }
6017 if (_v) {
6018 {
6019 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
6020 }
6021 if (_v) {
6022 if (argc <= 2) {
6023 return _wrap_new_TimerRunner__SWIG_1(self,args);
6024 }
6025 {
6026 _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
6027 }
6028 if (_v) {
6029 return _wrap_new_TimerRunner__SWIG_1(self,args);
6030 }
6031 }
6032 }
6033 }
6034
6035 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6036 return NULL;
6037}
6038
6039
6040static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6041 PyObject *resultobj;
6042 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6043 PyObject * obj0 = 0 ;
6044 char *kwnames[] = {
6045 (char *) "self", NULL
6046 };
6047
6048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6050 {
6051 PyThreadState* __tstate = wxPyBeginAllowThreads();
6052 delete arg1;
6053
6054 wxPyEndAllowThreads(__tstate);
6055 if (PyErr_Occurred()) SWIG_fail;
6056 }
6057 Py_INCREF(Py_None); resultobj = Py_None;
6058 return resultobj;
6059 fail:
6060 return NULL;
6061}
6062
6063
6064static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6065 PyObject *resultobj;
6066 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6067 int arg2 ;
e811c8ce 6068 bool arg3 = (bool) False ;
d14a1e28
RD
6069 PyObject * obj0 = 0 ;
6070 PyObject * obj2 = 0 ;
6071 char *kwnames[] = {
6072 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6073 };
6074
6075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:TimerRunner_Start",kwnames,&obj0,&arg2,&obj2)) goto fail;
6076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6077 if (obj2) {
6078 arg3 = PyInt_AsLong(obj2) ? true : false;
6079 if (PyErr_Occurred()) SWIG_fail;
6080 }
6081 {
6082 PyThreadState* __tstate = wxPyBeginAllowThreads();
6083 (arg1)->Start(arg2,arg3);
6084
6085 wxPyEndAllowThreads(__tstate);
6086 if (PyErr_Occurred()) SWIG_fail;
6087 }
6088 Py_INCREF(Py_None); resultobj = Py_None;
6089 return resultobj;
6090 fail:
6091 return NULL;
6092}
6093
6094
6095static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6096 PyObject *obj;
6097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6098 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6099 Py_INCREF(obj);
6100 return Py_BuildValue((char *)"");
6101}
6102static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj;
6104 wxLog *result;
6105 char *kwnames[] = {
6106 NULL
6107 };
6108
6109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 result = (wxLog *)new wxLog();
6113
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1);
6118 return resultobj;
6119 fail:
6120 return NULL;
6121}
6122
6123
6124static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj;
6126 bool result;
6127 char *kwnames[] = {
6128 NULL
6129 };
6130
6131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6132 {
6133 PyThreadState* __tstate = wxPyBeginAllowThreads();
6134 result = (bool)wxLog::IsEnabled();
6135
6136 wxPyEndAllowThreads(__tstate);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 resultobj = PyInt_FromLong((long)result);
6140 return resultobj;
6141 fail:
6142 return NULL;
6143}
6144
6145
6146static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6147 PyObject *resultobj;
e811c8ce 6148 bool arg1 = (bool) True ;
d14a1e28
RD
6149 bool result;
6150 PyObject * obj0 = 0 ;
6151 char *kwnames[] = {
6152 (char *) "doIt", NULL
6153 };
6154
6155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6156 if (obj0) {
6157 arg1 = PyInt_AsLong(obj0) ? true : false;
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 {
6161 PyThreadState* __tstate = wxPyBeginAllowThreads();
6162 result = (bool)wxLog::EnableLogging(arg1);
6163
6164 wxPyEndAllowThreads(__tstate);
6165 if (PyErr_Occurred()) SWIG_fail;
6166 }
6167 resultobj = PyInt_FromLong((long)result);
6168 return resultobj;
6169 fail:
6170 return NULL;
6171}
6172
6173
6174static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6175 PyObject *resultobj;
6176 wxLogLevel arg1 ;
6177 wxChar *arg2 = (wxChar *) 0 ;
6178 time_t arg3 ;
6179 PyObject * obj0 = 0 ;
6180 PyObject * obj1 = 0 ;
6181 PyObject * obj2 = 0 ;
6182 char *kwnames[] = {
6183 (char *) "level",(char *) "szString",(char *) "t", NULL
6184 };
6185
6186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
6187 arg1 = (wxLogLevel) PyInt_AsLong(obj0);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6190 arg3 = (time_t) PyInt_AsLong(obj2);
6191 if (PyErr_Occurred()) SWIG_fail;
6192 {
6193 PyThreadState* __tstate = wxPyBeginAllowThreads();
6194 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6195
6196 wxPyEndAllowThreads(__tstate);
6197 if (PyErr_Occurred()) SWIG_fail;
6198 }
6199 Py_INCREF(Py_None); resultobj = Py_None;
6200 return resultobj;
6201 fail:
6202 return NULL;
6203}
6204
6205
6206static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
6207 PyObject *resultobj;
6208 wxLog *arg1 = (wxLog *) 0 ;
6209 PyObject * obj0 = 0 ;
6210 char *kwnames[] = {
6211 (char *) "self", NULL
6212 };
6213
6214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 (arg1)->Flush();
6219
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 Py_INCREF(Py_None); resultobj = Py_None;
6224 return resultobj;
6225 fail:
6226 return NULL;
6227}
6228
6229
6230static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj;
6232 char *kwnames[] = {
6233 NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6237 {
6238 PyThreadState* __tstate = wxPyBeginAllowThreads();
6239 wxLog::FlushActive();
6240
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 Py_INCREF(Py_None); resultobj = Py_None;
6245 return resultobj;
6246 fail:
6247 return NULL;
6248}
6249
6250
6251static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6252 PyObject *resultobj;
6253 wxLog *result;
6254 char *kwnames[] = {
6255 NULL
6256 };
6257
6258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (wxLog *)wxLog::GetActiveTarget();
6262
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
6267 return resultobj;
6268 fail:
6269 return NULL;
6270}
6271
6272
6273static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxLog *arg1 = (wxLog *) 0 ;
6276 wxLog *result;
6277 PyObject * obj0 = 0 ;
6278 char *kwnames[] = {
6279 (char *) "pLogger", NULL
6280 };
6281
6282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
6283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6284 {
6285 PyThreadState* __tstate = wxPyBeginAllowThreads();
6286 result = (wxLog *)wxLog::SetActiveTarget(arg1);
6287
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
6292 return resultobj;
6293 fail:
6294 return NULL;
6295}
6296
6297
6298static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
6299 PyObject *resultobj;
6300 char *kwnames[] = {
6301 NULL
6302 };
6303
6304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
6305 {
6306 PyThreadState* __tstate = wxPyBeginAllowThreads();
6307 wxLog::Suspend();
6308
6309 wxPyEndAllowThreads(__tstate);
6310 if (PyErr_Occurred()) SWIG_fail;
6311 }
6312 Py_INCREF(Py_None); resultobj = Py_None;
6313 return resultobj;
6314 fail:
6315 return NULL;
6316}
6317
6318
6319static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
6320 PyObject *resultobj;
6321 char *kwnames[] = {
6322 NULL
6323 };
6324
6325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
6326 {
6327 PyThreadState* __tstate = wxPyBeginAllowThreads();
6328 wxLog::Resume();
6329
6330 wxPyEndAllowThreads(__tstate);
6331 if (PyErr_Occurred()) SWIG_fail;
6332 }
6333 Py_INCREF(Py_None); resultobj = Py_None;
6334 return resultobj;
6335 fail:
6336 return NULL;
6337}
6338
6339
6340static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
6341 PyObject *resultobj;
e811c8ce 6342 bool arg1 = (bool) True ;
d14a1e28
RD
6343 PyObject * obj0 = 0 ;
6344 char *kwnames[] = {
6345 (char *) "bVerbose", NULL
6346 };
6347
6348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
6349 if (obj0) {
6350 arg1 = PyInt_AsLong(obj0) ? true : false;
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 {
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 wxLog::SetVerbose(arg1);
6356
6357 wxPyEndAllowThreads(__tstate);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 }
6360 Py_INCREF(Py_None); resultobj = Py_None;
6361 return resultobj;
6362 fail:
6363 return NULL;
6364}
6365
6366
6367static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
6368 PyObject *resultobj;
6369 wxLogLevel arg1 ;
6370 PyObject * obj0 = 0 ;
6371 char *kwnames[] = {
6372 (char *) "logLevel", NULL
6373 };
6374
6375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
6376 arg1 = (wxLogLevel) PyInt_AsLong(obj0);
6377 if (PyErr_Occurred()) SWIG_fail;
6378 {
6379 PyThreadState* __tstate = wxPyBeginAllowThreads();
6380 wxLog::SetLogLevel(arg1);
6381
6382 wxPyEndAllowThreads(__tstate);
6383 if (PyErr_Occurred()) SWIG_fail;
6384 }
6385 Py_INCREF(Py_None); resultobj = Py_None;
6386 return resultobj;
6387 fail:
6388 return NULL;
6389}
6390
6391
6392static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
6393 PyObject *resultobj;
6394 char *kwnames[] = {
6395 NULL
6396 };
6397
6398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 wxLog::DontCreateOnDemand();
6402
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 Py_INCREF(Py_None); resultobj = Py_None;
6407 return resultobj;
6408 fail:
6409 return NULL;
6410}
6411
6412
6413static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6414 PyObject *resultobj;
6415 wxTraceMask arg1 ;
6416 PyObject * obj0 = 0 ;
6417 char *kwnames[] = {
6418 (char *) "ulMask", NULL
6419 };
6420
6421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
6422 arg1 = (wxTraceMask) PyInt_AsLong(obj0);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 {
6425 PyThreadState* __tstate = wxPyBeginAllowThreads();
6426 wxLog::SetTraceMask(arg1);
6427
6428 wxPyEndAllowThreads(__tstate);
6429 if (PyErr_Occurred()) SWIG_fail;
6430 }
6431 Py_INCREF(Py_None); resultobj = Py_None;
6432 return resultobj;
6433 fail:
6434 return NULL;
6435}
6436
6437
6438static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6439 PyObject *resultobj;
6440 wxString *arg1 = 0 ;
e811c8ce 6441 bool temp1 = False ;
d14a1e28
RD
6442 PyObject * obj0 = 0 ;
6443 char *kwnames[] = {
6444 (char *) "str", NULL
6445 };
6446
6447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
6448 {
6449 arg1 = wxString_in_helper(obj0);
6450 if (arg1 == NULL) SWIG_fail;
e811c8ce 6451 temp1 = True;
d14a1e28
RD
6452 }
6453 {
6454 PyThreadState* __tstate = wxPyBeginAllowThreads();
6455 wxLog::AddTraceMask((wxString const &)*arg1);
6456
6457 wxPyEndAllowThreads(__tstate);
6458 if (PyErr_Occurred()) SWIG_fail;
6459 }
6460 Py_INCREF(Py_None); resultobj = Py_None;
6461 {
6462 if (temp1)
6463 delete arg1;
6464 }
6465 return resultobj;
6466 fail:
6467 {
6468 if (temp1)
6469 delete arg1;
6470 }
6471 return NULL;
6472}
6473
6474
6475static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6476 PyObject *resultobj;
6477 wxString *arg1 = 0 ;
e811c8ce 6478 bool temp1 = False ;
d14a1e28
RD
6479 PyObject * obj0 = 0 ;
6480 char *kwnames[] = {
6481 (char *) "str", NULL
6482 };
6483
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
6485 {
6486 arg1 = wxString_in_helper(obj0);
6487 if (arg1 == NULL) SWIG_fail;
e811c8ce 6488 temp1 = True;
d14a1e28
RD
6489 }
6490 {
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 wxLog::RemoveTraceMask((wxString const &)*arg1);
6493
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 Py_INCREF(Py_None); resultobj = Py_None;
6498 {
6499 if (temp1)
6500 delete arg1;
6501 }
6502 return resultobj;
6503 fail:
6504 {
6505 if (temp1)
6506 delete arg1;
6507 }
6508 return NULL;
6509}
6510
6511
6512static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
6513 PyObject *resultobj;
6514 char *kwnames[] = {
6515 NULL
6516 };
6517
6518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 wxLog::ClearTraceMasks();
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 Py_INCREF(Py_None); resultobj = Py_None;
6527 return resultobj;
6528 fail:
6529 return NULL;
6530}
6531
6532
6533static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
6534 PyObject *resultobj;
6535 wxArrayString *result;
6536 char *kwnames[] = {
6537 NULL
6538 };
6539
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 {
6544 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
6545 result = (wxArrayString *) &_result_ref;
6546 }
6547
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 {
6552 resultobj = wxArrayString2PyList_helper(*result);
6553 }
6554 return resultobj;
6555 fail:
6556 return NULL;
6557}
6558
6559
6560static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
6561 PyObject *resultobj;
6562 wxChar *arg1 = (wxChar *) 0 ;
6563 PyObject * obj0 = 0 ;
6564 char *kwnames[] = {
6565 (char *) "ts", NULL
6566 };
6567
6568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
6569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6570 {
6571 PyThreadState* __tstate = wxPyBeginAllowThreads();
6572 wxLog::SetTimestamp((wxChar const *)arg1);
6573
6574 wxPyEndAllowThreads(__tstate);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 Py_INCREF(Py_None); resultobj = Py_None;
6578 return resultobj;
6579 fail:
6580 return NULL;
6581}
6582
6583
6584static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
6585 PyObject *resultobj;
6586 bool result;
6587 char *kwnames[] = {
6588 NULL
6589 };
6590
6591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 result = (bool)wxLog::GetVerbose();
6595
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 resultobj = PyInt_FromLong((long)result);
6600 return resultobj;
6601 fail:
6602 return NULL;
6603}
6604
6605
6606static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj;
6608 wxTraceMask result;
6609 char *kwnames[] = {
6610 NULL
6611 };
6612
6613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
6614 {
6615 PyThreadState* __tstate = wxPyBeginAllowThreads();
6616 result = (wxTraceMask)wxLog::GetTraceMask();
6617
6618 wxPyEndAllowThreads(__tstate);
6619 if (PyErr_Occurred()) SWIG_fail;
6620 }
6621 resultobj = PyInt_FromLong((long)result);
6622 return resultobj;
6623 fail:
6624 return NULL;
6625}
6626
6627
6628static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
6629 PyObject *resultobj;
6630 wxChar *arg1 = (wxChar *) 0 ;
6631 bool result;
6632 PyObject * obj0 = 0 ;
6633 char *kwnames[] = {
6634 (char *) "mask", NULL
6635 };
6636
6637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
6638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6639 {
6640 PyThreadState* __tstate = wxPyBeginAllowThreads();
6641 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
6642
6643 wxPyEndAllowThreads(__tstate);
6644 if (PyErr_Occurred()) SWIG_fail;
6645 }
6646 resultobj = PyInt_FromLong((long)result);
6647 return resultobj;
6648 fail:
6649 return NULL;
6650}
6651
6652
6653static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
6654 PyObject *resultobj;
6655 wxLogLevel result;
6656 char *kwnames[] = {
6657 NULL
6658 };
6659
6660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 result = (wxLogLevel)wxLog::GetLogLevel();
6664
6665 wxPyEndAllowThreads(__tstate);
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 resultobj = PyInt_FromLong((long)result);
6669 return resultobj;
6670 fail:
6671 return NULL;
6672}
6673
6674
6675static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj;
6677 wxChar *result;
6678 char *kwnames[] = {
6679 NULL
6680 };
6681
6682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
6683 {
6684 PyThreadState* __tstate = wxPyBeginAllowThreads();
6685 result = (wxChar *)wxLog::GetTimestamp();
6686
6687 wxPyEndAllowThreads(__tstate);
6688 if (PyErr_Occurred()) SWIG_fail;
6689 }
6690 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0);
6691 return resultobj;
6692 fail:
6693 return NULL;
6694}
6695
6696
6697static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
6698 PyObject *resultobj;
6699 wxString result;
6700 char *kwnames[] = {
6701 NULL
6702 };
6703
6704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
6705 {
6706 PyThreadState* __tstate = wxPyBeginAllowThreads();
6707 result = Log_TimeStamp();
6708
6709 wxPyEndAllowThreads(__tstate);
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 {
6713#if wxUSE_UNICODE
6714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6715#else
6716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6717#endif
6718 }
6719 return resultobj;
6720 fail:
6721 return NULL;
6722}
6723
6724
6725static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6726 PyObject *resultobj;
6727 wxLog *arg1 = (wxLog *) 0 ;
6728 PyObject * obj0 = 0 ;
6729 char *kwnames[] = {
6730 (char *) "self", NULL
6731 };
6732
6733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
6734 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6735 {
6736 PyThreadState* __tstate = wxPyBeginAllowThreads();
6737 wxLog_Destroy(arg1);
6738
6739 wxPyEndAllowThreads(__tstate);
6740 if (PyErr_Occurred()) SWIG_fail;
6741 }
6742 Py_INCREF(Py_None); resultobj = Py_None;
6743 return resultobj;
6744 fail:
6745 return NULL;
6746}
6747
6748
6749static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
6750 PyObject *obj;
6751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6752 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
6753 Py_INCREF(obj);
6754 return Py_BuildValue((char *)"");
6755}
6756static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
6757 PyObject *resultobj;
6758 wxLogStderr *result;
6759 char *kwnames[] = {
6760 NULL
6761 };
6762
6763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
6764 {
6765 PyThreadState* __tstate = wxPyBeginAllowThreads();
6766 result = (wxLogStderr *)new wxLogStderr();
6767
6768 wxPyEndAllowThreads(__tstate);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1);
6772 return resultobj;
6773 fail:
6774 return NULL;
6775}
6776
6777
6778static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
6779 PyObject *obj;
6780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6781 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
6782 Py_INCREF(obj);
6783 return Py_BuildValue((char *)"");
6784}
6785static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6786 PyObject *resultobj;
6787 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
6788 wxLogTextCtrl *result;
6789 PyObject * obj0 = 0 ;
6790 char *kwnames[] = {
6791 (char *) "pTextCtrl", NULL
6792 };
6793
6794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
6795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6796 {
6797 PyThreadState* __tstate = wxPyBeginAllowThreads();
6798 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
6799
6800 wxPyEndAllowThreads(__tstate);
6801 if (PyErr_Occurred()) SWIG_fail;
6802 }
6803 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1);
6804 return resultobj;
6805 fail:
6806 return NULL;
6807}
6808
6809
6810static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
6811 PyObject *obj;
6812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6813 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
6814 Py_INCREF(obj);
6815 return Py_BuildValue((char *)"");
6816}
6817static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
6818 PyObject *resultobj;
6819 wxLogGui *result;
6820 char *kwnames[] = {
6821 NULL
6822 };
6823
6824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
6825 {
6826 PyThreadState* __tstate = wxPyBeginAllowThreads();
6827 result = (wxLogGui *)new wxLogGui();
6828
6829 wxPyEndAllowThreads(__tstate);
6830 if (PyErr_Occurred()) SWIG_fail;
6831 }
6832 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1);
6833 return resultobj;
6834 fail:
6835 return NULL;
6836}
6837
6838
6839static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
6840 PyObject *obj;
6841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6842 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
6843 Py_INCREF(obj);
6844 return Py_BuildValue((char *)"");
6845}
6846static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6847 PyObject *resultobj;
6848 wxFrame *arg1 = (wxFrame *) 0 ;
6849 wxString *arg2 = 0 ;
e811c8ce
RD
6850 bool arg3 = (bool) True ;
6851 bool arg4 = (bool) True ;
d14a1e28 6852 wxLogWindow *result;
e811c8ce 6853 bool temp2 = False ;
d14a1e28
RD
6854 PyObject * obj0 = 0 ;
6855 PyObject * obj1 = 0 ;
6856 PyObject * obj2 = 0 ;
6857 PyObject * obj3 = 0 ;
6858 char *kwnames[] = {
6859 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
6860 };
6861
6862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6864 {
6865 arg2 = wxString_in_helper(obj1);
6866 if (arg2 == NULL) SWIG_fail;
e811c8ce 6867 temp2 = True;
d14a1e28
RD
6868 }
6869 if (obj2) {
6870 arg3 = PyInt_AsLong(obj2) ? true : false;
6871 if (PyErr_Occurred()) SWIG_fail;
6872 }
6873 if (obj3) {
6874 arg4 = PyInt_AsLong(obj3) ? true : false;
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 {
6878 PyThreadState* __tstate = wxPyBeginAllowThreads();
6879 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
6880
6881 wxPyEndAllowThreads(__tstate);
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1);
6885 {
6886 if (temp2)
6887 delete arg2;
6888 }
6889 return resultobj;
6890 fail:
6891 {
6892 if (temp2)
6893 delete arg2;
6894 }
6895 return NULL;
6896}
6897
6898
6899static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
6900 PyObject *resultobj;
6901 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
e811c8ce 6902 bool arg2 = (bool) True ;
d14a1e28
RD
6903 PyObject * obj0 = 0 ;
6904 PyObject * obj1 = 0 ;
6905 char *kwnames[] = {
6906 (char *) "self",(char *) "bShow", NULL
6907 };
6908
6909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
6910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6911 if (obj1) {
6912 arg2 = PyInt_AsLong(obj1) ? true : false;
6913 if (PyErr_Occurred()) SWIG_fail;
6914 }
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 (arg1)->Show(arg2);
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 Py_INCREF(Py_None); resultobj = Py_None;
6923 return resultobj;
6924 fail:
6925 return NULL;
6926}
6927
6928
6929static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj;
6931 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
6932 wxFrame *result;
6933 PyObject * obj0 = 0 ;
6934 char *kwnames[] = {
6935 (char *) "self", NULL
6936 };
6937
6938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
6939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6940 {
6941 PyThreadState* __tstate = wxPyBeginAllowThreads();
6942 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
6943
6944 wxPyEndAllowThreads(__tstate);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 {
6948 resultobj = wxPyMake_wxObject(result);
6949 }
6950 return resultobj;
6951 fail:
6952 return NULL;
6953}
6954
6955
6956static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6957 PyObject *resultobj;
6958 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
6959 wxLog *result;
6960 PyObject * obj0 = 0 ;
6961 char *kwnames[] = {
6962 (char *) "self", NULL
6963 };
6964
6965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
6966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6967 {
6968 PyThreadState* __tstate = wxPyBeginAllowThreads();
6969 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
6970
6971 wxPyEndAllowThreads(__tstate);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
6975 return resultobj;
6976 fail:
6977 return NULL;
6978}
6979
6980
6981static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
6982 PyObject *resultobj;
6983 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
6984 bool result;
6985 PyObject * obj0 = 0 ;
6986 char *kwnames[] = {
6987 (char *) "self", NULL
6988 };
6989
6990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
6991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6992 {
6993 PyThreadState* __tstate = wxPyBeginAllowThreads();
6994 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
6995
6996 wxPyEndAllowThreads(__tstate);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 resultobj = PyInt_FromLong((long)result);
7000 return resultobj;
7001 fail:
7002 return NULL;
7003}
7004
7005
7006static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7007 PyObject *resultobj;
7008 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7009 bool arg2 ;
7010 PyObject * obj0 = 0 ;
7011 PyObject * obj1 = 0 ;
7012 char *kwnames[] = {
7013 (char *) "self",(char *) "bDoPass", NULL
7014 };
7015
7016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7018 arg2 = PyInt_AsLong(obj1) ? true : false;
7019 if (PyErr_Occurred()) SWIG_fail;
7020 {
7021 PyThreadState* __tstate = wxPyBeginAllowThreads();
7022 (arg1)->PassMessages(arg2);
7023
7024 wxPyEndAllowThreads(__tstate);
7025 if (PyErr_Occurred()) SWIG_fail;
7026 }
7027 Py_INCREF(Py_None); resultobj = Py_None;
7028 return resultobj;
7029 fail:
7030 return NULL;
7031}
7032
7033
7034static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7035 PyObject *obj;
7036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7037 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7038 Py_INCREF(obj);
7039 return Py_BuildValue((char *)"");
7040}
7041static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 wxLog *arg1 = (wxLog *) 0 ;
7044 wxLogChain *result;
7045 PyObject * obj0 = 0 ;
7046 char *kwnames[] = {
7047 (char *) "logger", NULL
7048 };
7049
7050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 result = (wxLogChain *)new wxLogChain(arg1);
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1);
7060 return resultobj;
7061 fail:
7062 return NULL;
7063}
7064
7065
7066static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7067 PyObject *resultobj;
7068 wxLogChain *arg1 = (wxLogChain *) 0 ;
7069 wxLog *arg2 = (wxLog *) 0 ;
7070 PyObject * obj0 = 0 ;
7071 PyObject * obj1 = 0 ;
7072 char *kwnames[] = {
7073 (char *) "self",(char *) "logger", NULL
7074 };
7075
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7078 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7079 {
7080 PyThreadState* __tstate = wxPyBeginAllowThreads();
7081 (arg1)->SetLog(arg2);
7082
7083 wxPyEndAllowThreads(__tstate);
7084 if (PyErr_Occurred()) SWIG_fail;
7085 }
7086 Py_INCREF(Py_None); resultobj = Py_None;
7087 return resultobj;
7088 fail:
7089 return NULL;
7090}
7091
7092
7093static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7094 PyObject *resultobj;
7095 wxLogChain *arg1 = (wxLogChain *) 0 ;
7096 bool arg2 ;
7097 PyObject * obj0 = 0 ;
7098 PyObject * obj1 = 0 ;
7099 char *kwnames[] = {
7100 (char *) "self",(char *) "bDoPass", NULL
7101 };
7102
7103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7105 arg2 = PyInt_AsLong(obj1) ? true : false;
7106 if (PyErr_Occurred()) SWIG_fail;
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
7109 (arg1)->PassMessages(arg2);
7110
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 Py_INCREF(Py_None); resultobj = Py_None;
7115 return resultobj;
7116 fail:
7117 return NULL;
7118}
7119
7120
7121static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7122 PyObject *resultobj;
7123 wxLogChain *arg1 = (wxLogChain *) 0 ;
7124 bool result;
7125 PyObject * obj0 = 0 ;
7126 char *kwnames[] = {
7127 (char *) "self", NULL
7128 };
7129
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 result = (bool)(arg1)->IsPassingMessages();
7135
7136 wxPyEndAllowThreads(__tstate);
7137 if (PyErr_Occurred()) SWIG_fail;
7138 }
7139 resultobj = PyInt_FromLong((long)result);
7140 return resultobj;
7141 fail:
7142 return NULL;
7143}
7144
7145
7146static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7147 PyObject *resultobj;
7148 wxLogChain *arg1 = (wxLogChain *) 0 ;
7149 wxLog *result;
7150 PyObject * obj0 = 0 ;
7151 char *kwnames[] = {
7152 (char *) "self", NULL
7153 };
7154
7155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7157 {
7158 PyThreadState* __tstate = wxPyBeginAllowThreads();
7159 result = (wxLog *)(arg1)->GetOldLog();
7160
7161 wxPyEndAllowThreads(__tstate);
7162 if (PyErr_Occurred()) SWIG_fail;
7163 }
7164 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0);
7165 return resultobj;
7166 fail:
7167 return NULL;
7168}
7169
7170
7171static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
7172 PyObject *obj;
7173 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7174 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7175 Py_INCREF(obj);
7176 return Py_BuildValue((char *)"");
7177}
7178static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj;
7180 unsigned long result;
7181 char *kwnames[] = {
7182 NULL
7183 };
7184
7185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7186 {
7187 PyThreadState* __tstate = wxPyBeginAllowThreads();
7188 result = (unsigned long)wxSysErrorCode();
7189
7190 wxPyEndAllowThreads(__tstate);
7191 if (PyErr_Occurred()) SWIG_fail;
7192 }
7193 resultobj = PyInt_FromLong((long)result);
7194 return resultobj;
7195 fail:
7196 return NULL;
7197}
7198
7199
7200static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
7201 PyObject *resultobj;
7202 unsigned long arg1 = (unsigned long) 0 ;
7203 wxString result;
7204 PyObject * obj0 = 0 ;
7205 char *kwnames[] = {
7206 (char *) "nErrCode", NULL
7207 };
7208
7209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7210 if (obj0) {
7211 arg1 = (unsigned long) PyInt_AsLong(obj0);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
7214 {
7215 PyThreadState* __tstate = wxPyBeginAllowThreads();
7216 result = wxSysErrorMsg(arg1);
7217
7218 wxPyEndAllowThreads(__tstate);
7219 if (PyErr_Occurred()) SWIG_fail;
7220 }
7221 {
7222#if wxUSE_UNICODE
7223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7224#else
7225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7226#endif
7227 }
7228 return resultobj;
7229 fail:
7230 return NULL;
7231}
7232
7233
7234static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject *resultobj;
7236 wxString *arg1 = 0 ;
e811c8ce 7237 bool temp1 = False ;
d14a1e28
RD
7238 PyObject * obj0 = 0 ;
7239 char *kwnames[] = {
7240 (char *) "msg", NULL
7241 };
7242
7243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
7244 {
7245 arg1 = wxString_in_helper(obj0);
7246 if (arg1 == NULL) SWIG_fail;
e811c8ce 7247 temp1 = True;
d14a1e28
RD
7248 }
7249 {
7250 PyThreadState* __tstate = wxPyBeginAllowThreads();
7251 wxLogFatalError((wxString const &)*arg1);
7252
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 Py_INCREF(Py_None); resultobj = Py_None;
7257 {
7258 if (temp1)
7259 delete arg1;
7260 }
7261 return resultobj;
7262 fail:
7263 {
7264 if (temp1)
7265 delete arg1;
7266 }
7267 return NULL;
7268}
7269
7270
7271static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
7272 PyObject *resultobj;
7273 wxString *arg1 = 0 ;
e811c8ce 7274 bool temp1 = False ;
d14a1e28
RD
7275 PyObject * obj0 = 0 ;
7276 char *kwnames[] = {
7277 (char *) "msg", NULL
7278 };
7279
7280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
7281 {
7282 arg1 = wxString_in_helper(obj0);
7283 if (arg1 == NULL) SWIG_fail;
e811c8ce 7284 temp1 = True;
d14a1e28
RD
7285 }
7286 {
7287 PyThreadState* __tstate = wxPyBeginAllowThreads();
7288 wxLogError((wxString const &)*arg1);
7289
7290 wxPyEndAllowThreads(__tstate);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 Py_INCREF(Py_None); resultobj = Py_None;
7294 {
7295 if (temp1)
7296 delete arg1;
7297 }
7298 return resultobj;
7299 fail:
7300 {
7301 if (temp1)
7302 delete arg1;
7303 }
7304 return NULL;
7305}
7306
7307
7308static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
7309 PyObject *resultobj;
7310 wxString *arg1 = 0 ;
e811c8ce 7311 bool temp1 = False ;
d14a1e28
RD
7312 PyObject * obj0 = 0 ;
7313 char *kwnames[] = {
7314 (char *) "msg", NULL
7315 };
7316
7317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
7318 {
7319 arg1 = wxString_in_helper(obj0);
7320 if (arg1 == NULL) SWIG_fail;
e811c8ce 7321 temp1 = True;
d14a1e28
RD
7322 }
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 wxLogWarning((wxString const &)*arg1);
7326
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 Py_INCREF(Py_None); resultobj = Py_None;
7331 {
7332 if (temp1)
7333 delete arg1;
7334 }
7335 return resultobj;
7336 fail:
7337 {
7338 if (temp1)
7339 delete arg1;
7340 }
7341 return NULL;
7342}
7343
7344
7345static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj;
7347 wxString *arg1 = 0 ;
e811c8ce 7348 bool temp1 = False ;
d14a1e28
RD
7349 PyObject * obj0 = 0 ;
7350 char *kwnames[] = {
7351 (char *) "msg", NULL
7352 };
7353
7354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
7355 {
7356 arg1 = wxString_in_helper(obj0);
7357 if (arg1 == NULL) SWIG_fail;
e811c8ce 7358 temp1 = True;
d14a1e28
RD
7359 }
7360 {
7361 PyThreadState* __tstate = wxPyBeginAllowThreads();
7362 wxLogMessage((wxString const &)*arg1);
7363
7364 wxPyEndAllowThreads(__tstate);
7365 if (PyErr_Occurred()) SWIG_fail;
7366 }
7367 Py_INCREF(Py_None); resultobj = Py_None;
7368 {
7369 if (temp1)
7370 delete arg1;
7371 }
7372 return resultobj;
7373 fail:
7374 {
7375 if (temp1)
7376 delete arg1;
7377 }
7378 return NULL;
7379}
7380
7381
7382static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7383 PyObject *resultobj;
7384 wxString *arg1 = 0 ;
e811c8ce 7385 bool temp1 = False ;
d14a1e28
RD
7386 PyObject * obj0 = 0 ;
7387 char *kwnames[] = {
7388 (char *) "msg", NULL
7389 };
7390
7391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
7392 {
7393 arg1 = wxString_in_helper(obj0);
7394 if (arg1 == NULL) SWIG_fail;
e811c8ce 7395 temp1 = True;
d14a1e28
RD
7396 }
7397 {
7398 PyThreadState* __tstate = wxPyBeginAllowThreads();
7399 wxLogInfo((wxString const &)*arg1);
7400
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 Py_INCREF(Py_None); resultobj = Py_None;
7405 {
7406 if (temp1)
7407 delete arg1;
7408 }
7409 return resultobj;
7410 fail:
7411 {
7412 if (temp1)
7413 delete arg1;
7414 }
7415 return NULL;
7416}
7417
7418
7419static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
7420 PyObject *resultobj;
7421 wxString *arg1 = 0 ;
e811c8ce 7422 bool temp1 = False ;
d14a1e28
RD
7423 PyObject * obj0 = 0 ;
7424 char *kwnames[] = {
7425 (char *) "msg", NULL
7426 };
7427
7428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
7429 {
7430 arg1 = wxString_in_helper(obj0);
7431 if (arg1 == NULL) SWIG_fail;
e811c8ce 7432 temp1 = True;
d14a1e28
RD
7433 }
7434 {
7435 PyThreadState* __tstate = wxPyBeginAllowThreads();
7436 wxLogDebug((wxString const &)*arg1);
7437
7438 wxPyEndAllowThreads(__tstate);
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 Py_INCREF(Py_None); resultobj = Py_None;
7442 {
7443 if (temp1)
7444 delete arg1;
7445 }
7446 return resultobj;
7447 fail:
7448 {
7449 if (temp1)
7450 delete arg1;
7451 }
7452 return NULL;
7453}
7454
7455
7456static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7457 PyObject *resultobj;
7458 wxString *arg1 = 0 ;
e811c8ce 7459 bool temp1 = False ;
d14a1e28
RD
7460 PyObject * obj0 = 0 ;
7461 char *kwnames[] = {
7462 (char *) "msg", NULL
7463 };
7464
7465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
7466 {
7467 arg1 = wxString_in_helper(obj0);
7468 if (arg1 == NULL) SWIG_fail;
e811c8ce 7469 temp1 = True;
d14a1e28
RD
7470 }
7471 {
7472 PyThreadState* __tstate = wxPyBeginAllowThreads();
7473 wxLogVerbose((wxString const &)*arg1);
7474
7475 wxPyEndAllowThreads(__tstate);
7476 if (PyErr_Occurred()) SWIG_fail;
7477 }
7478 Py_INCREF(Py_None); resultobj = Py_None;
7479 {
7480 if (temp1)
7481 delete arg1;
7482 }
7483 return resultobj;
7484 fail:
7485 {
7486 if (temp1)
7487 delete arg1;
7488 }
7489 return NULL;
7490}
7491
7492
7493static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
7494 PyObject *resultobj;
7495 wxString *arg1 = 0 ;
e811c8ce 7496 bool temp1 = False ;
d14a1e28
RD
7497 PyObject * obj0 = 0 ;
7498 char *kwnames[] = {
7499 (char *) "msg", NULL
7500 };
7501
7502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
7503 {
7504 arg1 = wxString_in_helper(obj0);
7505 if (arg1 == NULL) SWIG_fail;
e811c8ce 7506 temp1 = True;
d14a1e28
RD
7507 }
7508 {
7509 PyThreadState* __tstate = wxPyBeginAllowThreads();
7510 wxLogStatus((wxString const &)*arg1);
7511
7512 wxPyEndAllowThreads(__tstate);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 Py_INCREF(Py_None); resultobj = Py_None;
7516 {
7517 if (temp1)
7518 delete arg1;
7519 }
7520 return resultobj;
7521 fail:
7522 {
7523 if (temp1)
7524 delete arg1;
7525 }
7526 return NULL;
7527}
7528
7529
7530static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7531 PyObject *resultobj;
7532 wxFrame *arg1 = (wxFrame *) 0 ;
7533 wxString *arg2 = 0 ;
e811c8ce 7534 bool temp2 = False ;
d14a1e28
RD
7535 PyObject * obj0 = 0 ;
7536 PyObject * obj1 = 0 ;
7537 char *kwnames[] = {
7538 (char *) "pFrame",(char *) "msg", NULL
7539 };
7540
7541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
7542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7543 {
7544 arg2 = wxString_in_helper(obj1);
7545 if (arg2 == NULL) SWIG_fail;
e811c8ce 7546 temp2 = True;
d14a1e28
RD
7547 }
7548 {
7549 PyThreadState* __tstate = wxPyBeginAllowThreads();
7550 wxLogStatus(arg1,(wxString const &)*arg2);
7551
7552 wxPyEndAllowThreads(__tstate);
7553 if (PyErr_Occurred()) SWIG_fail;
7554 }
7555 Py_INCREF(Py_None); resultobj = Py_None;
7556 {
7557 if (temp2)
7558 delete arg2;
7559 }
7560 return resultobj;
7561 fail:
7562 {
7563 if (temp2)
7564 delete arg2;
7565 }
7566 return NULL;
7567}
7568
7569
7570static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
7571 PyObject *resultobj;
7572 wxString *arg1 = 0 ;
e811c8ce 7573 bool temp1 = False ;
d14a1e28
RD
7574 PyObject * obj0 = 0 ;
7575 char *kwnames[] = {
7576 (char *) "msg", NULL
7577 };
7578
7579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
7580 {
7581 arg1 = wxString_in_helper(obj0);
7582 if (arg1 == NULL) SWIG_fail;
e811c8ce 7583 temp1 = True;
d14a1e28
RD
7584 }
7585 {
7586 PyThreadState* __tstate = wxPyBeginAllowThreads();
7587 wxLogSysError((wxString const &)*arg1);
7588
7589 wxPyEndAllowThreads(__tstate);
7590 if (PyErr_Occurred()) SWIG_fail;
7591 }
7592 Py_INCREF(Py_None); resultobj = Py_None;
7593 {
7594 if (temp1)
7595 delete arg1;
7596 }
7597 return resultobj;
7598 fail:
7599 {
7600 if (temp1)
7601 delete arg1;
7602 }
7603 return NULL;
7604}
7605
7606
cc6dd355 7607static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
d14a1e28 7608 PyObject *resultobj;
cc6dd355
RD
7609 unsigned long arg1 ;
7610 wxString *arg2 = 0 ;
7611 bool temp2 = False ;
d14a1e28 7612 PyObject * obj0 = 0 ;
cc6dd355 7613 PyObject * obj1 = 0 ;
d14a1e28 7614
cc6dd355
RD
7615 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
7616 arg1 = (unsigned long) PyInt_AsLong(obj0);
7617 if (PyErr_Occurred()) SWIG_fail;
d14a1e28 7618 {
cc6dd355
RD
7619 arg2 = wxString_in_helper(obj1);
7620 if (arg2 == NULL) SWIG_fail;
7621 temp2 = True;
d14a1e28
RD
7622 }
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
cc6dd355 7625 wxLogTrace(arg1,(wxString const &)*arg2);
d14a1e28
RD
7626
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 Py_INCREF(Py_None); resultobj = Py_None;
7631 {
cc6dd355
RD
7632 if (temp2)
7633 delete arg2;
d14a1e28
RD
7634 }
7635 return resultobj;
7636 fail:
7637 {
cc6dd355
RD
7638 if (temp2)
7639 delete arg2;
d14a1e28
RD
7640 }
7641 return NULL;
7642}
7643
7644
cc6dd355 7645static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
d14a1e28
RD
7646 PyObject *resultobj;
7647 wxString *arg1 = 0 ;
7648 wxString *arg2 = 0 ;
e811c8ce
RD
7649 bool temp1 = False ;
7650 bool temp2 = False ;
d14a1e28
RD
7651 PyObject * obj0 = 0 ;
7652 PyObject * obj1 = 0 ;
d14a1e28 7653
cc6dd355 7654 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
d14a1e28
RD
7655 {
7656 arg1 = wxString_in_helper(obj0);
7657 if (arg1 == NULL) SWIG_fail;
e811c8ce 7658 temp1 = True;
d14a1e28
RD
7659 }
7660 {
7661 arg2 = wxString_in_helper(obj1);
7662 if (arg2 == NULL) SWIG_fail;
e811c8ce 7663 temp2 = True;
d14a1e28
RD
7664 }
7665 {
7666 PyThreadState* __tstate = wxPyBeginAllowThreads();
7667 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
7668
7669 wxPyEndAllowThreads(__tstate);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 Py_INCREF(Py_None); resultobj = Py_None;
7673 {
7674 if (temp1)
7675 delete arg1;
7676 }
7677 {
7678 if (temp2)
7679 delete arg2;
7680 }
7681 return resultobj;
7682 fail:
7683 {
7684 if (temp1)
7685 delete arg1;
7686 }
7687 {
7688 if (temp2)
7689 delete arg2;
7690 }
7691 return NULL;
7692}
7693
7694
cc6dd355
RD
7695static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
7696 int argc;
7697 PyObject *argv[3];
7698 int ii;
7699
7700 argc = PyObject_Length(args);
7701 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
7702 argv[ii] = PyTuple_GetItem(args,ii);
7703 }
7704 if (argc == 2) {
7705 int _v;
7706 {
7707 void *ptr;
7708 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
7709 _v = 0;
7710 PyErr_Clear();
7711 } else {
7712 _v = 1;
7713 }
7714 }
7715 if (_v) {
7716 {
7717 void *ptr;
7718 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
7719 _v = 0;
7720 PyErr_Clear();
7721 } else {
7722 _v = 1;
7723 }
7724 }
7725 if (_v) {
7726 return _wrap_LogTrace__SWIG_1(self,args);
7727 }
7728 }
7729 }
7730 if (argc == 2) {
7731 int _v;
7732 {
7733 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
7734 }
7735 if (_v) {
7736 {
7737 void *ptr;
7738 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
7739 _v = 0;
7740 PyErr_Clear();
7741 } else {
7742 _v = 1;
7743 }
7744 }
7745 if (_v) {
7746 return _wrap_LogTrace__SWIG_0(self,args);
7747 }
7748 }
7749 }
7750
7751 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
7752 return NULL;
7753}
7754
7755
d14a1e28
RD
7756static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
7757 PyObject *resultobj;
7758 unsigned long arg1 ;
7759 wxString *arg2 = 0 ;
e811c8ce 7760 bool temp2 = False ;
d14a1e28
RD
7761 PyObject * obj0 = 0 ;
7762 PyObject * obj1 = 0 ;
7763 char *kwnames[] = {
7764 (char *) "level",(char *) "msg", NULL
7765 };
7766
7767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
7768 arg1 = (unsigned long) PyInt_AsLong(obj0);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 {
7771 arg2 = wxString_in_helper(obj1);
7772 if (arg2 == NULL) SWIG_fail;
e811c8ce 7773 temp2 = True;
d14a1e28
RD
7774 }
7775 {
7776 PyThreadState* __tstate = wxPyBeginAllowThreads();
7777 wxLogGeneric(arg1,(wxString const &)*arg2);
7778
7779 wxPyEndAllowThreads(__tstate);
7780 if (PyErr_Occurred()) SWIG_fail;
7781 }
7782 Py_INCREF(Py_None); resultobj = Py_None;
7783 {
7784 if (temp2)
7785 delete arg2;
7786 }
7787 return resultobj;
7788 fail:
7789 {
7790 if (temp2)
7791 delete arg2;
7792 }
7793 return NULL;
7794}
7795
7796
7797static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7798 PyObject *resultobj;
7799 wxString *arg1 = 0 ;
7800 wxString *arg2 = 0 ;
e811c8ce
RD
7801 bool temp1 = False ;
7802 bool temp2 = False ;
d14a1e28
RD
7803 PyObject * obj0 = 0 ;
7804 PyObject * obj1 = 0 ;
7805 char *kwnames[] = {
7806 (char *) "title",(char *) "text", NULL
7807 };
7808
7809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
7810 {
7811 arg1 = wxString_in_helper(obj0);
7812 if (arg1 == NULL) SWIG_fail;
e811c8ce 7813 temp1 = True;
d14a1e28
RD
7814 }
7815 {
7816 arg2 = wxString_in_helper(obj1);
7817 if (arg2 == NULL) SWIG_fail;
e811c8ce 7818 temp2 = True;
d14a1e28
RD
7819 }
7820 {
7821 PyThreadState* __tstate = wxPyBeginAllowThreads();
7822 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
7823
7824 wxPyEndAllowThreads(__tstate);
7825 if (PyErr_Occurred()) SWIG_fail;
7826 }
7827 Py_INCREF(Py_None); resultobj = Py_None;
7828 {
7829 if (temp1)
7830 delete arg1;
7831 }
7832 {
7833 if (temp2)
7834 delete arg2;
7835 }
7836 return resultobj;
7837 fail:
7838 {
7839 if (temp1)
7840 delete arg1;
7841 }
7842 {
7843 if (temp2)
7844 delete arg2;
7845 }
7846 return NULL;
7847}
7848
7849
7850static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
7851 PyObject *resultobj;
7852 wxLogNull *result;
7853 char *kwnames[] = {
7854 NULL
7855 };
7856
7857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
7858 {
7859 PyThreadState* __tstate = wxPyBeginAllowThreads();
7860 result = (wxLogNull *)new wxLogNull();
7861
7862 wxPyEndAllowThreads(__tstate);
7863 if (PyErr_Occurred()) SWIG_fail;
7864 }
7865 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1);
7866 return resultobj;
7867 fail:
7868 return NULL;
7869}
7870
7871
7872static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
7873 PyObject *resultobj;
7874 wxLogNull *arg1 = (wxLogNull *) 0 ;
7875 PyObject * obj0 = 0 ;
7876 char *kwnames[] = {
7877 (char *) "self", NULL
7878 };
7879
7880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
7881 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7882 {
7883 PyThreadState* __tstate = wxPyBeginAllowThreads();
7884 delete arg1;
7885
7886 wxPyEndAllowThreads(__tstate);
7887 if (PyErr_Occurred()) SWIG_fail;
7888 }
7889 Py_INCREF(Py_None); resultobj = Py_None;
7890 return resultobj;
7891 fail:
7892 return NULL;
7893}
7894
7895
7896static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
7897 PyObject *obj;
7898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7899 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
7900 Py_INCREF(obj);
7901 return Py_BuildValue((char *)"");
7902}
7903static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7904 PyObject *resultobj;
7905 wxPyLog *result;
7906 char *kwnames[] = {
7907 NULL
7908 };
7909
7910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 result = (wxPyLog *)new wxPyLog();
7914
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1);
7919 return resultobj;
7920 fail:
7921 return NULL;
7922}
7923
7924
7925static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7926 PyObject *resultobj;
7927 wxPyLog *arg1 = (wxPyLog *) 0 ;
7928 PyObject *arg2 = (PyObject *) 0 ;
7929 PyObject *arg3 = (PyObject *) 0 ;
7930 PyObject * obj0 = 0 ;
7931 PyObject * obj1 = 0 ;
7932 PyObject * obj2 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self",(char *) "self",(char *) "_class", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7939 arg2 = obj1;
7940 arg3 = obj2;
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 (arg1)->_setCallbackInfo(arg2,arg3);
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 Py_INCREF(Py_None); resultobj = Py_None;
7949 return resultobj;
7950 fail:
7951 return NULL;
7952}
7953
7954
7955static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
7956 PyObject *obj;
7957 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7958 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
7959 Py_INCREF(obj);
7960 return Py_BuildValue((char *)"");
7961}
7962static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
7963 PyObject *resultobj;
7964 int arg1 ;
7965 int arg2 = (int) wxSIGTERM ;
7966 int result;
7967 char *kwnames[] = {
7968 (char *) "pid",(char *) "sig", NULL
7969 };
7970
7971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:Process_Kill",kwnames,&arg1,&arg2)) goto fail;
7972 {
7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
7974 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
7975
7976 wxPyEndAllowThreads(__tstate);
7977 if (PyErr_Occurred()) SWIG_fail;
7978 }
7979 resultobj = PyInt_FromLong((long)result);
7980 return resultobj;
7981 fail:
7982 return NULL;
7983}
7984
7985
7986static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj;
7988 int arg1 ;
7989 bool result;
7990 char *kwnames[] = {
7991 (char *) "pid", NULL
7992 };
7993
7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Process_Exists",kwnames,&arg1)) goto fail;
7995 {
7996 PyThreadState* __tstate = wxPyBeginAllowThreads();
7997 result = (bool)wxPyProcess::Exists(arg1);
7998
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 resultobj = PyInt_FromLong((long)result);
8003 return resultobj;
8004 fail:
8005 return NULL;
8006}
8007
8008
8009static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxString *arg1 = 0 ;
8012 int arg2 = (int) wxEXEC_ASYNC ;
8013 wxPyProcess *result;
e811c8ce 8014 bool temp1 = False ;
d14a1e28
RD
8015 PyObject * obj0 = 0 ;
8016 char *kwnames[] = {
8017 (char *) "cmd",(char *) "flags", NULL
8018 };
8019
8020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Process_Open",kwnames,&obj0,&arg2)) goto fail;
8021 {
8022 arg1 = wxString_in_helper(obj0);
8023 if (arg1 == NULL) SWIG_fail;
e811c8ce 8024 temp1 = True;
d14a1e28
RD
8025 }
8026 {
8027 PyThreadState* __tstate = wxPyBeginAllowThreads();
8028 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8029
8030 wxPyEndAllowThreads(__tstate);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 }
8033 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0);
8034 {
8035 if (temp1)
8036 delete arg1;
8037 }
8038 return resultobj;
8039 fail:
8040 {
8041 if (temp1)
8042 delete arg1;
8043 }
8044 return NULL;
8045}
8046
8047
8048static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8049 PyObject *resultobj;
8050 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8051 int arg2 = (int) -1 ;
8052 wxPyProcess *result;
8053 PyObject * obj0 = 0 ;
8054 char *kwnames[] = {
8055 (char *) "parent",(char *) "id", NULL
8056 };
8057
8058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Process",kwnames,&obj0,&arg2)) goto fail;
8059 if (obj0) {
8060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8061 }
8062 {
8063 PyThreadState* __tstate = wxPyBeginAllowThreads();
8064 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8065
8066 wxPyEndAllowThreads(__tstate);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 }
8069 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1);
8070 return resultobj;
8071 fail:
8072 return NULL;
8073}
8074
8075
8076static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8077 PyObject *resultobj;
8078 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8079 PyObject *arg2 = (PyObject *) 0 ;
8080 PyObject *arg3 = (PyObject *) 0 ;
8081 PyObject * obj0 = 0 ;
8082 PyObject * obj1 = 0 ;
8083 PyObject * obj2 = 0 ;
8084 char *kwnames[] = {
8085 (char *) "self",(char *) "self",(char *) "_class", NULL
8086 };
8087
8088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8090 arg2 = obj1;
8091 arg3 = obj2;
8092 {
8093 PyThreadState* __tstate = wxPyBeginAllowThreads();
8094 (arg1)->_setCallbackInfo(arg2,arg3);
8095
8096 wxPyEndAllowThreads(__tstate);
8097 if (PyErr_Occurred()) SWIG_fail;
8098 }
8099 Py_INCREF(Py_None); resultobj = Py_None;
8100 return resultobj;
8101 fail:
8102 return NULL;
8103}
8104
8105
8106static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8107 PyObject *resultobj;
8108 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8109 int arg2 ;
8110 int arg3 ;
8111 PyObject * obj0 = 0 ;
8112 char *kwnames[] = {
8113 (char *) "self",(char *) "pid",(char *) "status", NULL
8114 };
8115
8116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Process_base_OnTerminate",kwnames,&obj0,&arg2,&arg3)) goto fail;
8117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8118 {
8119 PyThreadState* __tstate = wxPyBeginAllowThreads();
8120 (arg1)->base_OnTerminate(arg2,arg3);
8121
8122 wxPyEndAllowThreads(__tstate);
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 Py_INCREF(Py_None); resultobj = Py_None;
8126 return resultobj;
8127 fail:
8128 return NULL;
8129}
8130
8131
8132static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj;
8134 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8135 PyObject * obj0 = 0 ;
8136 char *kwnames[] = {
8137 (char *) "self", NULL
8138 };
8139
8140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8142 {
8143 PyThreadState* __tstate = wxPyBeginAllowThreads();
8144 (arg1)->Redirect();
8145
8146 wxPyEndAllowThreads(__tstate);
8147 if (PyErr_Occurred()) SWIG_fail;
8148 }
8149 Py_INCREF(Py_None); resultobj = Py_None;
8150 return resultobj;
8151 fail:
8152 return NULL;
8153}
8154
8155
8156static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
8157 PyObject *resultobj;
8158 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8159 bool result;
8160 PyObject * obj0 = 0 ;
8161 char *kwnames[] = {
8162 (char *) "self", NULL
8163 };
8164
8165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8167 {
8168 PyThreadState* __tstate = wxPyBeginAllowThreads();
8169 result = (bool)(arg1)->IsRedirected();
8170
8171 wxPyEndAllowThreads(__tstate);
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 resultobj = PyInt_FromLong((long)result);
8175 return resultobj;
8176 fail:
8177 return NULL;
8178}
8179
8180
8181static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
8182 PyObject *resultobj;
8183 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8184 PyObject * obj0 = 0 ;
8185 char *kwnames[] = {
8186 (char *) "self", NULL
8187 };
8188
8189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8191 {
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 (arg1)->Detach();
8194
8195 wxPyEndAllowThreads(__tstate);
8196 if (PyErr_Occurred()) SWIG_fail;
8197 }
8198 Py_INCREF(Py_None); resultobj = Py_None;
8199 return resultobj;
8200 fail:
8201 return NULL;
8202}
8203
8204
8205static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8206 PyObject *resultobj;
8207 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8208 wxInputStream *result;
8209 PyObject * obj0 = 0 ;
8210 char *kwnames[] = {
8211 (char *) "self", NULL
8212 };
8213
8214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
8215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8216 {
8217 PyThreadState* __tstate = wxPyBeginAllowThreads();
8218 result = (wxInputStream *)(arg1)->GetInputStream();
8219
8220 wxPyEndAllowThreads(__tstate);
8221 if (PyErr_Occurred()) SWIG_fail;
8222 }
8223 {
8224 wxPyInputStream * _ptr = NULL;
8225
8226 if (result) {
8227 _ptr = new wxPyInputStream(result);
8228 }
e811c8ce 8229 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
8230 }
8231 return resultobj;
8232 fail:
8233 return NULL;
8234}
8235
8236
8237static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8238 PyObject *resultobj;
8239 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8240 wxInputStream *result;
8241 PyObject * obj0 = 0 ;
8242 char *kwnames[] = {
8243 (char *) "self", NULL
8244 };
8245
8246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
8247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8248 {
8249 PyThreadState* __tstate = wxPyBeginAllowThreads();
8250 result = (wxInputStream *)(arg1)->GetErrorStream();
8251
8252 wxPyEndAllowThreads(__tstate);
8253 if (PyErr_Occurred()) SWIG_fail;
8254 }
8255 {
8256 wxPyInputStream * _ptr = NULL;
8257
8258 if (result) {
8259 _ptr = new wxPyInputStream(result);
8260 }
e811c8ce 8261 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
8262 }
8263 return resultobj;
8264 fail:
8265 return NULL;
8266}
8267
8268
8269static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8270 PyObject *resultobj;
8271 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8272 wxOutputStream *result;
8273 PyObject * obj0 = 0 ;
8274 char *kwnames[] = {
8275 (char *) "self", NULL
8276 };
8277
8278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
8279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8280 {
8281 PyThreadState* __tstate = wxPyBeginAllowThreads();
8282 result = (wxOutputStream *)(arg1)->GetOutputStream();
8283
8284 wxPyEndAllowThreads(__tstate);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0);
8288 return resultobj;
8289 fail:
8290 return NULL;
8291}
8292
8293
8294static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
8295 PyObject *resultobj;
8296 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8297 PyObject * obj0 = 0 ;
8298 char *kwnames[] = {
8299 (char *) "self", NULL
8300 };
8301
8302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
8303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8304 {
8305 PyThreadState* __tstate = wxPyBeginAllowThreads();
8306 (arg1)->CloseOutput();
8307
8308 wxPyEndAllowThreads(__tstate);
8309 if (PyErr_Occurred()) SWIG_fail;
8310 }
8311 Py_INCREF(Py_None); resultobj = Py_None;
8312 return resultobj;
8313 fail:
8314 return NULL;
8315}
8316
8317
8318static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
8319 PyObject *resultobj;
8320 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8321 bool result;
8322 PyObject * obj0 = 0 ;
8323 char *kwnames[] = {
8324 (char *) "self", NULL
8325 };
8326
8327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
8328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
8332
8333 wxPyEndAllowThreads(__tstate);
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 resultobj = PyInt_FromLong((long)result);
8337 return resultobj;
8338 fail:
8339 return NULL;
8340}
8341
8342
8343static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8344 PyObject *resultobj;
8345 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8346 bool result;
8347 PyObject * obj0 = 0 ;
8348 char *kwnames[] = {
8349 (char *) "self", NULL
8350 };
8351
8352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
8353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8354 {
8355 PyThreadState* __tstate = wxPyBeginAllowThreads();
8356 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
8357
8358 wxPyEndAllowThreads(__tstate);
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 resultobj = PyInt_FromLong((long)result);
8362 return resultobj;
8363 fail:
8364 return NULL;
8365}
8366
8367
8368static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj;
8370 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8371 bool result;
8372 PyObject * obj0 = 0 ;
8373 char *kwnames[] = {
8374 (char *) "self", NULL
8375 };
8376
8377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
8378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8379 {
8380 PyThreadState* __tstate = wxPyBeginAllowThreads();
8381 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
8382
8383 wxPyEndAllowThreads(__tstate);
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 resultobj = PyInt_FromLong((long)result);
8387 return resultobj;
8388 fail:
8389 return NULL;
8390}
8391
8392
8393static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
8394 PyObject *obj;
8395 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8396 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
8397 Py_INCREF(obj);
8398 return Py_BuildValue((char *)"");
8399}
8400static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
8401 PyObject *resultobj;
8402 int arg1 = (int) 0 ;
8403 int arg2 = (int) 0 ;
8404 int arg3 = (int) 0 ;
8405 wxProcessEvent *result;
8406 char *kwnames[] = {
8407 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
8408 };
8409
8410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ProcessEvent",kwnames,&arg1,&arg2,&arg3)) goto fail;
8411 {
8412 PyThreadState* __tstate = wxPyBeginAllowThreads();
8413 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
8414
8415 wxPyEndAllowThreads(__tstate);
8416 if (PyErr_Occurred()) SWIG_fail;
8417 }
8418 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1);
8419 return resultobj;
8420 fail:
8421 return NULL;
8422}
8423
8424
8425static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj;
8427 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8428 int result;
8429 PyObject * obj0 = 0 ;
8430 char *kwnames[] = {
8431 (char *) "self", NULL
8432 };
8433
8434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
8435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8436 {
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
8438 result = (int)(arg1)->GetPid();
8439
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
8443 resultobj = PyInt_FromLong((long)result);
8444 return resultobj;
8445 fail:
8446 return NULL;
8447}
8448
8449
8450static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj;
8452 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8453 int result;
8454 PyObject * obj0 = 0 ;
8455 char *kwnames[] = {
8456 (char *) "self", NULL
8457 };
8458
8459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
8460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8461 {
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (int)(arg1)->GetExitCode();
8464
8465 wxPyEndAllowThreads(__tstate);
8466 if (PyErr_Occurred()) SWIG_fail;
8467 }
8468 resultobj = PyInt_FromLong((long)result);
8469 return resultobj;
8470 fail:
8471 return NULL;
8472}
8473
8474
8475static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8476 PyObject *resultobj;
8477 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8478 int arg2 ;
8479 PyObject * obj0 = 0 ;
8480 char *kwnames[] = {
8481 (char *) "self",(char *) "m_pid", NULL
8482 };
8483
8484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_pid_set",kwnames,&obj0,&arg2)) goto fail;
8485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8486 if (arg1) (arg1)->m_pid = arg2;
8487
8488 Py_INCREF(Py_None); resultobj = Py_None;
8489 return resultobj;
8490 fail:
8491 return NULL;
8492}
8493
8494
8495static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8496 PyObject *resultobj;
8497 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8498 int result;
8499 PyObject * obj0 = 0 ;
8500 char *kwnames[] = {
8501 (char *) "self", NULL
8502 };
8503
8504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
8505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8506 result = (int) ((arg1)->m_pid);
8507
8508 resultobj = PyInt_FromLong((long)result);
8509 return resultobj;
8510 fail:
8511 return NULL;
8512}
8513
8514
8515static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8516 PyObject *resultobj;
8517 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8518 int arg2 ;
8519 PyObject * obj0 = 0 ;
8520 char *kwnames[] = {
8521 (char *) "self",(char *) "m_exitcode", NULL
8522 };
8523
8524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_exitcode_set",kwnames,&obj0,&arg2)) goto fail;
8525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8526 if (arg1) (arg1)->m_exitcode = arg2;
8527
8528 Py_INCREF(Py_None); resultobj = Py_None;
8529 return resultobj;
8530 fail:
8531 return NULL;
8532}
8533
8534
8535static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8536 PyObject *resultobj;
8537 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
8538 int result;
8539 PyObject * obj0 = 0 ;
8540 char *kwnames[] = {
8541 (char *) "self", NULL
8542 };
8543
8544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
8545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8546 result = (int) ((arg1)->m_exitcode);
8547
8548 resultobj = PyInt_FromLong((long)result);
8549 return resultobj;
8550 fail:
8551 return NULL;
8552}
8553
8554
8555static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
8556 PyObject *obj;
8557 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8558 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
8559 Py_INCREF(obj);
8560 return Py_BuildValue((char *)"");
8561}
8562static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj;
8564 wxString *arg1 = 0 ;
8565 int arg2 = (int) wxEXEC_ASYNC ;
8566 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
8567 long result;
e811c8ce 8568 bool temp1 = False ;
d14a1e28
RD
8569 PyObject * obj0 = 0 ;
8570 PyObject * obj2 = 0 ;
8571 char *kwnames[] = {
8572 (char *) "command",(char *) "flags",(char *) "process", NULL
8573 };
8574
8575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Execute",kwnames,&obj0,&arg2,&obj2)) goto fail;
8576 {
8577 arg1 = wxString_in_helper(obj0);
8578 if (arg1 == NULL) SWIG_fail;
e811c8ce 8579 temp1 = True;
d14a1e28
RD
8580 }
8581 if (obj2) {
8582 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8583 }
8584 {
8585 PyThreadState* __tstate = wxPyBeginAllowThreads();
8586 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
8587
8588 wxPyEndAllowThreads(__tstate);
8589 if (PyErr_Occurred()) SWIG_fail;
8590 }
8591 resultobj = PyInt_FromLong((long)result);
8592 {
8593 if (temp1)
8594 delete arg1;
8595 }
8596 return resultobj;
8597 fail:
8598 {
8599 if (temp1)
8600 delete arg1;
8601 }
8602 return NULL;
8603}
8604
8605
8606static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
8607 PyObject *resultobj;
8608 int arg1 = (int) wxJOYSTICK1 ;
8609 wxJoystick *result;
8610 char *kwnames[] = {
8611 (char *) "joystick", NULL
8612 };
8613
8614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_Joystick",kwnames,&arg1)) goto fail;
8615 {
8616 PyThreadState* __tstate = wxPyBeginAllowThreads();
8617 result = (wxJoystick *)new wxJoystick(arg1);
8618
8619 wxPyEndAllowThreads(__tstate);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 }
8622 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1);
8623 return resultobj;
8624 fail:
8625 return NULL;
8626}
8627
8628
8629static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
8630 PyObject *resultobj;
8631 wxJoystick *arg1 = (wxJoystick *) 0 ;
8632 PyObject * obj0 = 0 ;
8633 char *kwnames[] = {
8634 (char *) "self", NULL
8635 };
8636
8637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
8638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8639 {
8640 PyThreadState* __tstate = wxPyBeginAllowThreads();
8641 delete arg1;
8642
8643 wxPyEndAllowThreads(__tstate);
8644 if (PyErr_Occurred()) SWIG_fail;
8645 }
8646 Py_INCREF(Py_None); resultobj = Py_None;
8647 return resultobj;
8648 fail:
8649 return NULL;
8650}
8651
8652
8653static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8654 PyObject *resultobj;
8655 wxJoystick *arg1 = (wxJoystick *) 0 ;
8656 wxPoint result;
8657 PyObject * obj0 = 0 ;
8658 char *kwnames[] = {
8659 (char *) "self", NULL
8660 };
8661
8662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
8663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 result = (arg1)->GetPosition();
8667
8668 wxPyEndAllowThreads(__tstate);
8669 if (PyErr_Occurred()) SWIG_fail;
8670 }
8671 {
8672 wxPoint * resultptr;
8673 resultptr = new wxPoint((wxPoint &) result);
8674 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
8675 }
8676 return resultobj;
8677 fail:
8678 return NULL;
8679}
8680
8681
8682static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8683 PyObject *resultobj;
8684 wxJoystick *arg1 = (wxJoystick *) 0 ;
8685 int result;
8686 PyObject * obj0 = 0 ;
8687 char *kwnames[] = {
8688 (char *) "self", NULL
8689 };
8690
8691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
8692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 result = (int)(arg1)->GetZPosition();
8696
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 resultobj = PyInt_FromLong((long)result);
8701 return resultobj;
8702 fail:
8703 return NULL;
8704}
8705
8706
8707static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
8708 PyObject *resultobj;
8709 wxJoystick *arg1 = (wxJoystick *) 0 ;
8710 int result;
8711 PyObject * obj0 = 0 ;
8712 char *kwnames[] = {
8713 (char *) "self", NULL
8714 };
8715
8716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
8717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8718 {
8719 PyThreadState* __tstate = wxPyBeginAllowThreads();
8720 result = (int)(arg1)->GetButtonState();
8721
8722 wxPyEndAllowThreads(__tstate);
8723 if (PyErr_Occurred()) SWIG_fail;
8724 }
8725 resultobj = PyInt_FromLong((long)result);
8726 return resultobj;
8727 fail:
8728 return NULL;
8729}
8730
8731
8732static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8733 PyObject *resultobj;
8734 wxJoystick *arg1 = (wxJoystick *) 0 ;
8735 int result;
8736 PyObject * obj0 = 0 ;
8737 char *kwnames[] = {
8738 (char *) "self", NULL
8739 };
8740
8741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
8742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8743 {
8744 PyThreadState* __tstate = wxPyBeginAllowThreads();
8745 result = (int)(arg1)->GetPOVPosition();
8746
8747 wxPyEndAllowThreads(__tstate);
8748 if (PyErr_Occurred()) SWIG_fail;
8749 }
8750 resultobj = PyInt_FromLong((long)result);
8751 return resultobj;
8752 fail:
8753 return NULL;
8754}
8755
8756
8757static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8758 PyObject *resultobj;
8759 wxJoystick *arg1 = (wxJoystick *) 0 ;
8760 int result;
8761 PyObject * obj0 = 0 ;
8762 char *kwnames[] = {
8763 (char *) "self", NULL
8764 };
8765
8766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
8767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 result = (int)(arg1)->GetPOVCTSPosition();
8771
8772 wxPyEndAllowThreads(__tstate);
8773 if (PyErr_Occurred()) SWIG_fail;
8774 }
8775 resultobj = PyInt_FromLong((long)result);
8776 return resultobj;
8777 fail:
8778 return NULL;
8779}
8780
8781
8782static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj;
8784 wxJoystick *arg1 = (wxJoystick *) 0 ;
8785 int result;
8786 PyObject * obj0 = 0 ;
8787 char *kwnames[] = {
8788 (char *) "self", NULL
8789 };
8790
8791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
8792 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8793 {
8794 PyThreadState* __tstate = wxPyBeginAllowThreads();
8795 result = (int)(arg1)->GetRudderPosition();
8796
8797 wxPyEndAllowThreads(__tstate);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 resultobj = PyInt_FromLong((long)result);
8801 return resultobj;
8802 fail:
8803 return NULL;
8804}
8805
8806
8807static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj;
8809 wxJoystick *arg1 = (wxJoystick *) 0 ;
8810 int result;
8811 PyObject * obj0 = 0 ;
8812 char *kwnames[] = {
8813 (char *) "self", NULL
8814 };
8815
8816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
8817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8818 {
8819 PyThreadState* __tstate = wxPyBeginAllowThreads();
8820 result = (int)(arg1)->GetUPosition();
8821
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 resultobj = PyInt_FromLong((long)result);
8826 return resultobj;
8827 fail:
8828 return NULL;
8829}
8830
8831
8832static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxJoystick *arg1 = (wxJoystick *) 0 ;
8835 int result;
8836 PyObject * obj0 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8843 {
8844 PyThreadState* __tstate = wxPyBeginAllowThreads();
8845 result = (int)(arg1)->GetVPosition();
8846
8847 wxPyEndAllowThreads(__tstate);
8848 if (PyErr_Occurred()) SWIG_fail;
8849 }
8850 resultobj = PyInt_FromLong((long)result);
8851 return resultobj;
8852 fail:
8853 return NULL;
8854}
8855
8856
8857static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
8858 PyObject *resultobj;
8859 wxJoystick *arg1 = (wxJoystick *) 0 ;
8860 int result;
8861 PyObject * obj0 = 0 ;
8862 char *kwnames[] = {
8863 (char *) "self", NULL
8864 };
8865
8866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
8867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8868 {
8869 PyThreadState* __tstate = wxPyBeginAllowThreads();
8870 result = (int)(arg1)->GetMovementThreshold();
8871
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 resultobj = PyInt_FromLong((long)result);
8876 return resultobj;
8877 fail:
8878 return NULL;
8879}
8880
8881
8882static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
8883 PyObject *resultobj;
8884 wxJoystick *arg1 = (wxJoystick *) 0 ;
8885 int arg2 ;
8886 PyObject * obj0 = 0 ;
8887 char *kwnames[] = {
8888 (char *) "self",(char *) "threshold", NULL
8889 };
8890
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Joystick_SetMovementThreshold",kwnames,&obj0,&arg2)) goto fail;
8892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 (arg1)->SetMovementThreshold(arg2);
8896
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 Py_INCREF(Py_None); resultobj = Py_None;
8901 return resultobj;
8902 fail:
8903 return NULL;
8904}
8905
8906
8907static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8908 PyObject *resultobj;
8909 wxJoystick *arg1 = (wxJoystick *) 0 ;
8910 bool result;
8911 PyObject * obj0 = 0 ;
8912 char *kwnames[] = {
8913 (char *) "self", NULL
8914 };
8915
8916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
8917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8918 {
8919 PyThreadState* __tstate = wxPyBeginAllowThreads();
8920 result = (bool)(arg1)->IsOk();
8921
8922 wxPyEndAllowThreads(__tstate);
8923 if (PyErr_Occurred()) SWIG_fail;
8924 }
8925 resultobj = PyInt_FromLong((long)result);
8926 return resultobj;
8927 fail:
8928 return NULL;
8929}
8930
8931
8932static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
8933 PyObject *resultobj;
8934 wxJoystick *arg1 = (wxJoystick *) 0 ;
8935 int result;
8936 PyObject * obj0 = 0 ;
8937 char *kwnames[] = {
8938 (char *) "self", NULL
8939 };
8940
8941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
8942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8943 {
8944 PyThreadState* __tstate = wxPyBeginAllowThreads();
8945 result = (int)(arg1)->GetNumberJoysticks();
8946
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 resultobj = PyInt_FromLong((long)result);
8951 return resultobj;
8952 fail:
8953 return NULL;
8954}
8955
8956
8957static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
8958 PyObject *resultobj;
8959 wxJoystick *arg1 = (wxJoystick *) 0 ;
8960 int result;
8961 PyObject * obj0 = 0 ;
8962 char *kwnames[] = {
8963 (char *) "self", NULL
8964 };
8965
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
8967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8968 {
8969 PyThreadState* __tstate = wxPyBeginAllowThreads();
8970 result = (int)(arg1)->GetManufacturerId();
8971
8972 wxPyEndAllowThreads(__tstate);
8973 if (PyErr_Occurred()) SWIG_fail;
8974 }
8975 resultobj = PyInt_FromLong((long)result);
8976 return resultobj;
8977 fail:
8978 return NULL;
8979}
8980
8981
8982static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
8983 PyObject *resultobj;
8984 wxJoystick *arg1 = (wxJoystick *) 0 ;
8985 int result;
8986 PyObject * obj0 = 0 ;
8987 char *kwnames[] = {
8988 (char *) "self", NULL
8989 };
8990
8991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
8992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (int)(arg1)->GetProductId();
8996
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 resultobj = PyInt_FromLong((long)result);
9001 return resultobj;
9002 fail:
9003 return NULL;
9004}
9005
9006
9007static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9008 PyObject *resultobj;
9009 wxJoystick *arg1 = (wxJoystick *) 0 ;
9010 wxString result;
9011 PyObject * obj0 = 0 ;
9012 char *kwnames[] = {
9013 (char *) "self", NULL
9014 };
9015
9016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9018 {
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 result = (arg1)->GetProductName();
9021
9022 wxPyEndAllowThreads(__tstate);
9023 if (PyErr_Occurred()) SWIG_fail;
9024 }
9025 {
9026#if wxUSE_UNICODE
9027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9028#else
9029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9030#endif
9031 }
9032 return resultobj;
9033 fail:
9034 return NULL;
9035}
9036
9037
9038static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9039 PyObject *resultobj;
9040 wxJoystick *arg1 = (wxJoystick *) 0 ;
9041 int result;
9042 PyObject * obj0 = 0 ;
9043 char *kwnames[] = {
9044 (char *) "self", NULL
9045 };
9046
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9049 {
9050 PyThreadState* __tstate = wxPyBeginAllowThreads();
9051 result = (int)(arg1)->GetXMin();
9052
9053 wxPyEndAllowThreads(__tstate);
9054 if (PyErr_Occurred()) SWIG_fail;
9055 }
9056 resultobj = PyInt_FromLong((long)result);
9057 return resultobj;
9058 fail:
9059 return NULL;
9060}
9061
9062
9063static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9064 PyObject *resultobj;
9065 wxJoystick *arg1 = (wxJoystick *) 0 ;
9066 int result;
9067 PyObject * obj0 = 0 ;
9068 char *kwnames[] = {
9069 (char *) "self", NULL
9070 };
9071
9072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
9073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9074 {
9075 PyThreadState* __tstate = wxPyBeginAllowThreads();
9076 result = (int)(arg1)->GetYMin();
9077
9078 wxPyEndAllowThreads(__tstate);
9079 if (PyErr_Occurred()) SWIG_fail;
9080 }
9081 resultobj = PyInt_FromLong((long)result);
9082 return resultobj;
9083 fail:
9084 return NULL;
9085}
9086
9087
9088static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9089 PyObject *resultobj;
9090 wxJoystick *arg1 = (wxJoystick *) 0 ;
9091 int result;
9092 PyObject * obj0 = 0 ;
9093 char *kwnames[] = {
9094 (char *) "self", NULL
9095 };
9096
9097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9099 {
9100 PyThreadState* __tstate = wxPyBeginAllowThreads();
9101 result = (int)(arg1)->GetZMin();
9102
9103 wxPyEndAllowThreads(__tstate);
9104 if (PyErr_Occurred()) SWIG_fail;
9105 }
9106 resultobj = PyInt_FromLong((long)result);
9107 return resultobj;
9108 fail:
9109 return NULL;
9110}
9111
9112
9113static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9114 PyObject *resultobj;
9115 wxJoystick *arg1 = (wxJoystick *) 0 ;
9116 int result;
9117 PyObject * obj0 = 0 ;
9118 char *kwnames[] = {
9119 (char *) "self", NULL
9120 };
9121
9122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 result = (int)(arg1)->GetXMax();
9127
9128 wxPyEndAllowThreads(__tstate);
9129 if (PyErr_Occurred()) SWIG_fail;
9130 }
9131 resultobj = PyInt_FromLong((long)result);
9132 return resultobj;
9133 fail:
9134 return NULL;
9135}
9136
9137
9138static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9139 PyObject *resultobj;
9140 wxJoystick *arg1 = (wxJoystick *) 0 ;
9141 int result;
9142 PyObject * obj0 = 0 ;
9143 char *kwnames[] = {
9144 (char *) "self", NULL
9145 };
9146
9147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
9148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 result = (int)(arg1)->GetYMax();
9152
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 resultobj = PyInt_FromLong((long)result);
9157 return resultobj;
9158 fail:
9159 return NULL;
9160}
9161
9162
9163static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9164 PyObject *resultobj;
9165 wxJoystick *arg1 = (wxJoystick *) 0 ;
9166 int result;
9167 PyObject * obj0 = 0 ;
9168 char *kwnames[] = {
9169 (char *) "self", NULL
9170 };
9171
9172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
9173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9174 {
9175 PyThreadState* __tstate = wxPyBeginAllowThreads();
9176 result = (int)(arg1)->GetZMax();
9177
9178 wxPyEndAllowThreads(__tstate);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 }
9181 resultobj = PyInt_FromLong((long)result);
9182 return resultobj;
9183 fail:
9184 return NULL;
9185}
9186
9187
9188static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9189 PyObject *resultobj;
9190 wxJoystick *arg1 = (wxJoystick *) 0 ;
9191 int result;
9192 PyObject * obj0 = 0 ;
9193 char *kwnames[] = {
9194 (char *) "self", NULL
9195 };
9196
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
9198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = (int)(arg1)->GetNumberButtons();
9202
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = PyInt_FromLong((long)result);
9207 return resultobj;
9208 fail:
9209 return NULL;
9210}
9211
9212
9213static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj;
9215 wxJoystick *arg1 = (wxJoystick *) 0 ;
9216 int result;
9217 PyObject * obj0 = 0 ;
9218 char *kwnames[] = {
9219 (char *) "self", NULL
9220 };
9221
9222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
9223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9224 {
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 result = (int)(arg1)->GetNumberAxes();
9227
9228 wxPyEndAllowThreads(__tstate);
9229 if (PyErr_Occurred()) SWIG_fail;
9230 }
9231 resultobj = PyInt_FromLong((long)result);
9232 return resultobj;
9233 fail:
9234 return NULL;
9235}
9236
9237
9238static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9239 PyObject *resultobj;
9240 wxJoystick *arg1 = (wxJoystick *) 0 ;
9241 int result;
9242 PyObject * obj0 = 0 ;
9243 char *kwnames[] = {
9244 (char *) "self", NULL
9245 };
9246
9247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
9248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 result = (int)(arg1)->GetMaxButtons();
9252
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 resultobj = PyInt_FromLong((long)result);
9257 return resultobj;
9258 fail:
9259 return NULL;
9260}
9261
9262
9263static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj;
9265 wxJoystick *arg1 = (wxJoystick *) 0 ;
9266 int result;
9267 PyObject * obj0 = 0 ;
9268 char *kwnames[] = {
9269 (char *) "self", NULL
9270 };
9271
9272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
9273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9274 {
9275 PyThreadState* __tstate = wxPyBeginAllowThreads();
9276 result = (int)(arg1)->GetMaxAxes();
9277
9278 wxPyEndAllowThreads(__tstate);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 }
9281 resultobj = PyInt_FromLong((long)result);
9282 return resultobj;
9283 fail:
9284 return NULL;
9285}
9286
9287
9288static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 wxJoystick *arg1 = (wxJoystick *) 0 ;
9291 int result;
9292 PyObject * obj0 = 0 ;
9293 char *kwnames[] = {
9294 (char *) "self", NULL
9295 };
9296
9297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
9298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9299 {
9300 PyThreadState* __tstate = wxPyBeginAllowThreads();
9301 result = (int)(arg1)->GetPollingMin();
9302
9303 wxPyEndAllowThreads(__tstate);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 resultobj = PyInt_FromLong((long)result);
9307 return resultobj;
9308 fail:
9309 return NULL;
9310}
9311
9312
9313static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9314 PyObject *resultobj;
9315 wxJoystick *arg1 = (wxJoystick *) 0 ;
9316 int result;
9317 PyObject * obj0 = 0 ;
9318 char *kwnames[] = {
9319 (char *) "self", NULL
9320 };
9321
9322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
9323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9324 {
9325 PyThreadState* __tstate = wxPyBeginAllowThreads();
9326 result = (int)(arg1)->GetPollingMax();
9327
9328 wxPyEndAllowThreads(__tstate);
9329 if (PyErr_Occurred()) SWIG_fail;
9330 }
9331 resultobj = PyInt_FromLong((long)result);
9332 return resultobj;
9333 fail:
9334 return NULL;
9335}
9336
9337
9338static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9339 PyObject *resultobj;
9340 wxJoystick *arg1 = (wxJoystick *) 0 ;
9341 int result;
9342 PyObject * obj0 = 0 ;
9343 char *kwnames[] = {
9344 (char *) "self", NULL
9345 };
9346
9347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
9348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9349 {
9350 PyThreadState* __tstate = wxPyBeginAllowThreads();
9351 result = (int)(arg1)->GetRudderMin();
9352
9353 wxPyEndAllowThreads(__tstate);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 resultobj = PyInt_FromLong((long)result);
9357 return resultobj;
9358 fail:
9359 return NULL;
9360}
9361
9362
9363static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9364 PyObject *resultobj;
9365 wxJoystick *arg1 = (wxJoystick *) 0 ;
9366 int result;
9367 PyObject * obj0 = 0 ;
9368 char *kwnames[] = {
9369 (char *) "self", NULL
9370 };
9371
9372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
9373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9374 {
9375 PyThreadState* __tstate = wxPyBeginAllowThreads();
9376 result = (int)(arg1)->GetRudderMax();
9377
9378 wxPyEndAllowThreads(__tstate);
9379 if (PyErr_Occurred()) SWIG_fail;
9380 }
9381 resultobj = PyInt_FromLong((long)result);
9382 return resultobj;
9383 fail:
9384 return NULL;
9385}
9386
9387
9388static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9389 PyObject *resultobj;
9390 wxJoystick *arg1 = (wxJoystick *) 0 ;
9391 int result;
9392 PyObject * obj0 = 0 ;
9393 char *kwnames[] = {
9394 (char *) "self", NULL
9395 };
9396
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
9398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9399 {
9400 PyThreadState* __tstate = wxPyBeginAllowThreads();
9401 result = (int)(arg1)->GetUMin();
9402
9403 wxPyEndAllowThreads(__tstate);
9404 if (PyErr_Occurred()) SWIG_fail;
9405 }
9406 resultobj = PyInt_FromLong((long)result);
9407 return resultobj;
9408 fail:
9409 return NULL;
9410}
9411
9412
9413static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9414 PyObject *resultobj;
9415 wxJoystick *arg1 = (wxJoystick *) 0 ;
9416 int result;
9417 PyObject * obj0 = 0 ;
9418 char *kwnames[] = {
9419 (char *) "self", NULL
9420 };
9421
9422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
9423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9424 {
9425 PyThreadState* __tstate = wxPyBeginAllowThreads();
9426 result = (int)(arg1)->GetUMax();
9427
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 resultobj = PyInt_FromLong((long)result);
9432 return resultobj;
9433 fail:
9434 return NULL;
9435}
9436
9437
9438static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj;
9440 wxJoystick *arg1 = (wxJoystick *) 0 ;
9441 int result;
9442 PyObject * obj0 = 0 ;
9443 char *kwnames[] = {
9444 (char *) "self", NULL
9445 };
9446
9447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
9448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9449 {
9450 PyThreadState* __tstate = wxPyBeginAllowThreads();
9451 result = (int)(arg1)->GetVMin();
9452
9453 wxPyEndAllowThreads(__tstate);
9454 if (PyErr_Occurred()) SWIG_fail;
9455 }
9456 resultobj = PyInt_FromLong((long)result);
9457 return resultobj;
9458 fail:
9459 return NULL;
9460}
9461
9462
9463static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9464 PyObject *resultobj;
9465 wxJoystick *arg1 = (wxJoystick *) 0 ;
9466 int result;
9467 PyObject * obj0 = 0 ;
9468 char *kwnames[] = {
9469 (char *) "self", NULL
9470 };
9471
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 result = (int)(arg1)->GetVMax();
9477
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 resultobj = PyInt_FromLong((long)result);
9482 return resultobj;
9483 fail:
9484 return NULL;
9485}
9486
9487
9488static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj;
9490 wxJoystick *arg1 = (wxJoystick *) 0 ;
9491 bool result;
9492 PyObject * obj0 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9499 {
9500 PyThreadState* __tstate = wxPyBeginAllowThreads();
9501 result = (bool)(arg1)->HasRudder();
9502
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 resultobj = PyInt_FromLong((long)result);
9507 return resultobj;
9508 fail:
9509 return NULL;
9510}
9511
9512
9513static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj;
9515 wxJoystick *arg1 = (wxJoystick *) 0 ;
9516 bool result;
9517 PyObject * obj0 = 0 ;
9518 char *kwnames[] = {
9519 (char *) "self", NULL
9520 };
9521
9522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
9523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 result = (bool)(arg1)->HasZ();
9527
9528 wxPyEndAllowThreads(__tstate);
9529 if (PyErr_Occurred()) SWIG_fail;
9530 }
9531 resultobj = PyInt_FromLong((long)result);
9532 return resultobj;
9533 fail:
9534 return NULL;
9535}
9536
9537
9538static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
9539 PyObject *resultobj;
9540 wxJoystick *arg1 = (wxJoystick *) 0 ;
9541 bool result;
9542 PyObject * obj0 = 0 ;
9543 char *kwnames[] = {
9544 (char *) "self", NULL
9545 };
9546
9547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
9548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 result = (bool)(arg1)->HasU();
9552
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 resultobj = PyInt_FromLong((long)result);
9557 return resultobj;
9558 fail:
9559 return NULL;
9560}
9561
9562
9563static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
9564 PyObject *resultobj;
9565 wxJoystick *arg1 = (wxJoystick *) 0 ;
9566 bool result;
9567 PyObject * obj0 = 0 ;
9568 char *kwnames[] = {
9569 (char *) "self", NULL
9570 };
9571
9572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
9573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 result = (bool)(arg1)->HasV();
9577
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 resultobj = PyInt_FromLong((long)result);
9582 return resultobj;
9583 fail:
9584 return NULL;
9585}
9586
9587
9588static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
9589 PyObject *resultobj;
9590 wxJoystick *arg1 = (wxJoystick *) 0 ;
9591 bool result;
9592 PyObject * obj0 = 0 ;
9593 char *kwnames[] = {
9594 (char *) "self", NULL
9595 };
9596
9597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
9598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9599 {
9600 PyThreadState* __tstate = wxPyBeginAllowThreads();
9601 result = (bool)(arg1)->HasPOV();
9602
9603 wxPyEndAllowThreads(__tstate);
9604 if (PyErr_Occurred()) SWIG_fail;
9605 }
9606 resultobj = PyInt_FromLong((long)result);
9607 return resultobj;
9608 fail:
9609 return NULL;
9610}
9611
9612
9613static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj;
9615 wxJoystick *arg1 = (wxJoystick *) 0 ;
9616 bool result;
9617 PyObject * obj0 = 0 ;
9618 char *kwnames[] = {
9619 (char *) "self", NULL
9620 };
9621
9622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
9623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9624 {
9625 PyThreadState* __tstate = wxPyBeginAllowThreads();
9626 result = (bool)(arg1)->HasPOV4Dir();
9627
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 resultobj = PyInt_FromLong((long)result);
9632 return resultobj;
9633 fail:
9634 return NULL;
9635}
9636
9637
9638static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
9639 PyObject *resultobj;
9640 wxJoystick *arg1 = (wxJoystick *) 0 ;
9641 bool result;
9642 PyObject * obj0 = 0 ;
9643 char *kwnames[] = {
9644 (char *) "self", NULL
9645 };
9646
9647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
9648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 result = (bool)(arg1)->HasPOVCTS();
9652
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 resultobj = PyInt_FromLong((long)result);
9657 return resultobj;
9658 fail:
9659 return NULL;
9660}
9661
9662
9663static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
9664 PyObject *resultobj;
9665 wxJoystick *arg1 = (wxJoystick *) 0 ;
9666 wxWindow *arg2 = (wxWindow *) 0 ;
9667 int arg3 = (int) 0 ;
9668 bool result;
9669 PyObject * obj0 = 0 ;
9670 PyObject * obj1 = 0 ;
9671 char *kwnames[] = {
9672 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
9673 };
9674
9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Joystick_SetCapture",kwnames,&obj0,&obj1,&arg3)) goto fail;
9676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9677 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 result = (bool)(arg1)->SetCapture(arg2,arg3);
9681
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 resultobj = PyInt_FromLong((long)result);
9686 return resultobj;
9687 fail:
9688 return NULL;
9689}
9690
9691
9692static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
9693 PyObject *resultobj;
9694 wxJoystick *arg1 = (wxJoystick *) 0 ;
9695 bool result;
9696 PyObject * obj0 = 0 ;
9697 char *kwnames[] = {
9698 (char *) "self", NULL
9699 };
9700
9701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
9702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9703 {
9704 PyThreadState* __tstate = wxPyBeginAllowThreads();
9705 result = (bool)(arg1)->ReleaseCapture();
9706
9707 wxPyEndAllowThreads(__tstate);
9708 if (PyErr_Occurred()) SWIG_fail;
9709 }
9710 resultobj = PyInt_FromLong((long)result);
9711 return resultobj;
9712 fail:
9713 return NULL;
9714}
9715
9716
9717static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
9718 PyObject *obj;
9719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9720 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
9721 Py_INCREF(obj);
9722 return Py_BuildValue((char *)"");
9723}
9724static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9725 PyObject *resultobj;
9726 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9727 wxPoint *arg2 = (wxPoint *) 0 ;
9728 PyObject * obj0 = 0 ;
9729 PyObject * obj1 = 0 ;
9730 char *kwnames[] = {
9731 (char *) "self",(char *) "m_pos", NULL
9732 };
9733
9734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
9735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9736 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9737 if (arg1) (arg1)->m_pos = *arg2;
9738
9739 Py_INCREF(Py_None); resultobj = Py_None;
9740 return resultobj;
9741 fail:
9742 return NULL;
9743}
9744
9745
9746static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9747 PyObject *resultobj;
9748 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9749 wxPoint *result;
9750 PyObject * obj0 = 0 ;
9751 char *kwnames[] = {
9752 (char *) "self", NULL
9753 };
9754
9755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
9756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9757 result = (wxPoint *)& ((arg1)->m_pos);
9758
9759 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
9760 return resultobj;
9761 fail:
9762 return NULL;
9763}
9764
9765
9766static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9767 PyObject *resultobj;
9768 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9769 int arg2 ;
9770 PyObject * obj0 = 0 ;
9771 char *kwnames[] = {
9772 (char *) "self",(char *) "m_zPosition", NULL
9773 };
9774
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_zPosition_set",kwnames,&obj0,&arg2)) goto fail;
9776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9777 if (arg1) (arg1)->m_zPosition = arg2;
9778
9779 Py_INCREF(Py_None); resultobj = Py_None;
9780 return resultobj;
9781 fail:
9782 return NULL;
9783}
9784
9785
9786static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9787 PyObject *resultobj;
9788 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9789 int result;
9790 PyObject * obj0 = 0 ;
9791 char *kwnames[] = {
9792 (char *) "self", NULL
9793 };
9794
9795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
9796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9797 result = (int) ((arg1)->m_zPosition);
9798
9799 resultobj = PyInt_FromLong((long)result);
9800 return resultobj;
9801 fail:
9802 return NULL;
9803}
9804
9805
9806static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9807 PyObject *resultobj;
9808 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9809 int arg2 ;
9810 PyObject * obj0 = 0 ;
9811 char *kwnames[] = {
9812 (char *) "self",(char *) "m_buttonChange", NULL
9813 };
9814
9815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&arg2)) goto fail;
9816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9817 if (arg1) (arg1)->m_buttonChange = arg2;
9818
9819 Py_INCREF(Py_None); resultobj = Py_None;
9820 return resultobj;
9821 fail:
9822 return NULL;
9823}
9824
9825
9826static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9827 PyObject *resultobj;
9828 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9829 int result;
9830 PyObject * obj0 = 0 ;
9831 char *kwnames[] = {
9832 (char *) "self", NULL
9833 };
9834
9835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
9836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9837 result = (int) ((arg1)->m_buttonChange);
9838
9839 resultobj = PyInt_FromLong((long)result);
9840 return resultobj;
9841 fail:
9842 return NULL;
9843}
9844
9845
9846static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9847 PyObject *resultobj;
9848 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9849 int arg2 ;
9850 PyObject * obj0 = 0 ;
9851 char *kwnames[] = {
9852 (char *) "self",(char *) "m_buttonState", NULL
9853 };
9854
9855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonState_set",kwnames,&obj0,&arg2)) goto fail;
9856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9857 if (arg1) (arg1)->m_buttonState = arg2;
9858
9859 Py_INCREF(Py_None); resultobj = Py_None;
9860 return resultobj;
9861 fail:
9862 return NULL;
9863}
9864
9865
9866static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj;
9868 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9869 int result;
9870 PyObject * obj0 = 0 ;
9871 char *kwnames[] = {
9872 (char *) "self", NULL
9873 };
9874
9875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
9876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9877 result = (int) ((arg1)->m_buttonState);
9878
9879 resultobj = PyInt_FromLong((long)result);
9880 return resultobj;
9881 fail:
9882 return NULL;
9883}
9884
9885
9886static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9887 PyObject *resultobj;
9888 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9889 int arg2 ;
9890 PyObject * obj0 = 0 ;
9891 char *kwnames[] = {
9892 (char *) "self",(char *) "m_joyStick", NULL
9893 };
9894
9895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_joyStick_set",kwnames,&obj0,&arg2)) goto fail;
9896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9897 if (arg1) (arg1)->m_joyStick = arg2;
9898
9899 Py_INCREF(Py_None); resultobj = Py_None;
9900 return resultobj;
9901 fail:
9902 return NULL;
9903}
9904
9905
9906static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj;
9908 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9909 int result;
9910 PyObject * obj0 = 0 ;
9911 char *kwnames[] = {
9912 (char *) "self", NULL
9913 };
9914
9915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
9916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9917 result = (int) ((arg1)->m_joyStick);
9918
9919 resultobj = PyInt_FromLong((long)result);
9920 return resultobj;
9921 fail:
9922 return NULL;
9923}
9924
9925
9926static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj;
9928 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
9929 int arg2 = (int) 0 ;
9930 int arg3 = (int) wxJOYSTICK1 ;
9931 int arg4 = (int) 0 ;
9932 wxJoystickEvent *result;
9933 char *kwnames[] = {
9934 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
9935 };
9936
9937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_JoystickEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
9938 {
9939 PyThreadState* __tstate = wxPyBeginAllowThreads();
9940 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
9941
9942 wxPyEndAllowThreads(__tstate);
9943 if (PyErr_Occurred()) SWIG_fail;
9944 }
9945 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1);
9946 return resultobj;
9947 fail:
9948 return NULL;
9949}
9950
9951
9952static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9953 PyObject *resultobj;
9954 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9955 wxPoint result;
9956 PyObject * obj0 = 0 ;
9957 char *kwnames[] = {
9958 (char *) "self", NULL
9959 };
9960
9961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
9962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9963 {
9964 PyThreadState* __tstate = wxPyBeginAllowThreads();
9965 result = ((wxJoystickEvent const *)arg1)->GetPosition();
9966
9967 wxPyEndAllowThreads(__tstate);
9968 if (PyErr_Occurred()) SWIG_fail;
9969 }
9970 {
9971 wxPoint * resultptr;
9972 resultptr = new wxPoint((wxPoint &) result);
9973 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
9974 }
9975 return resultobj;
9976 fail:
9977 return NULL;
9978}
9979
9980
9981static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9982 PyObject *resultobj;
9983 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
9984 int result;
9985 PyObject * obj0 = 0 ;
9986 char *kwnames[] = {
9987 (char *) "self", NULL
9988 };
9989
9990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
9991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9992 {
9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
9994 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
9995
9996 wxPyEndAllowThreads(__tstate);
9997 if (PyErr_Occurred()) SWIG_fail;
9998 }
9999 resultobj = PyInt_FromLong((long)result);
10000 return resultobj;
10001 fail:
10002 return NULL;
10003}
10004
10005
10006static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10007 PyObject *resultobj;
10008 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10009 int result;
10010 PyObject * obj0 = 0 ;
10011 char *kwnames[] = {
10012 (char *) "self", NULL
10013 };
10014
10015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10017 {
10018 PyThreadState* __tstate = wxPyBeginAllowThreads();
10019 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10020
10021 wxPyEndAllowThreads(__tstate);
10022 if (PyErr_Occurred()) SWIG_fail;
10023 }
10024 resultobj = PyInt_FromLong((long)result);
10025 return resultobj;
10026 fail:
10027 return NULL;
10028}
10029
10030
10031static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj;
10033 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10034 int result;
10035 PyObject * obj0 = 0 ;
10036 char *kwnames[] = {
10037 (char *) "self", NULL
10038 };
10039
10040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 resultobj = PyInt_FromLong((long)result);
10050 return resultobj;
10051 fail:
10052 return NULL;
10053}
10054
10055
10056static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10057 PyObject *resultobj;
10058 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10059 int result;
10060 PyObject * obj0 = 0 ;
10061 char *kwnames[] = {
10062 (char *) "self", NULL
10063 };
10064
10065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
10066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10067 {
10068 PyThreadState* __tstate = wxPyBeginAllowThreads();
10069 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
10070
10071 wxPyEndAllowThreads(__tstate);
10072 if (PyErr_Occurred()) SWIG_fail;
10073 }
10074 resultobj = PyInt_FromLong((long)result);
10075 return resultobj;
10076 fail:
10077 return NULL;
10078}
10079
10080
10081static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10082 PyObject *resultobj;
10083 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10084 int arg2 ;
10085 PyObject * obj0 = 0 ;
10086 char *kwnames[] = {
10087 (char *) "self",(char *) "stick", NULL
10088 };
10089
10090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetJoystick",kwnames,&obj0,&arg2)) goto fail;
10091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 (arg1)->SetJoystick(arg2);
10095
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
10099 Py_INCREF(Py_None); resultobj = Py_None;
10100 return resultobj;
10101 fail:
10102 return NULL;
10103}
10104
10105
10106static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10107 PyObject *resultobj;
10108 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10109 int arg2 ;
10110 PyObject * obj0 = 0 ;
10111 char *kwnames[] = {
10112 (char *) "self",(char *) "state", NULL
10113 };
10114
10115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonState",kwnames,&obj0,&arg2)) goto fail;
10116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10117 {
10118 PyThreadState* __tstate = wxPyBeginAllowThreads();
10119 (arg1)->SetButtonState(arg2);
10120
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 Py_INCREF(Py_None); resultobj = Py_None;
10125 return resultobj;
10126 fail:
10127 return NULL;
10128}
10129
10130
10131static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10132 PyObject *resultobj;
10133 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10134 int arg2 ;
10135 PyObject * obj0 = 0 ;
10136 char *kwnames[] = {
10137 (char *) "self",(char *) "change", NULL
10138 };
10139
10140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonChange",kwnames,&obj0,&arg2)) goto fail;
10141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10142 {
10143 PyThreadState* __tstate = wxPyBeginAllowThreads();
10144 (arg1)->SetButtonChange(arg2);
10145
10146 wxPyEndAllowThreads(__tstate);
10147 if (PyErr_Occurred()) SWIG_fail;
10148 }
10149 Py_INCREF(Py_None); resultobj = Py_None;
10150 return resultobj;
10151 fail:
10152 return NULL;
10153}
10154
10155
10156static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj;
10158 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10159 wxPoint *arg2 = 0 ;
10160 wxPoint temp2 ;
10161 PyObject * obj0 = 0 ;
10162 PyObject * obj1 = 0 ;
10163 char *kwnames[] = {
10164 (char *) "self",(char *) "pos", NULL
10165 };
10166
10167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
10168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10169 {
10170 arg2 = &temp2;
10171 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10172 }
10173 {
10174 PyThreadState* __tstate = wxPyBeginAllowThreads();
10175 (arg1)->SetPosition((wxPoint const &)*arg2);
10176
10177 wxPyEndAllowThreads(__tstate);
10178 if (PyErr_Occurred()) SWIG_fail;
10179 }
10180 Py_INCREF(Py_None); resultobj = Py_None;
10181 return resultobj;
10182 fail:
10183 return NULL;
10184}
10185
10186
10187static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10188 PyObject *resultobj;
10189 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10190 int arg2 ;
10191 PyObject * obj0 = 0 ;
10192 char *kwnames[] = {
10193 (char *) "self",(char *) "zPos", NULL
10194 };
10195
10196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetZPosition",kwnames,&obj0,&arg2)) goto fail;
10197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10198 {
10199 PyThreadState* __tstate = wxPyBeginAllowThreads();
10200 (arg1)->SetZPosition(arg2);
10201
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 Py_INCREF(Py_None); resultobj = Py_None;
10206 return resultobj;
10207 fail:
10208 return NULL;
10209}
10210
10211
10212static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
10213 PyObject *resultobj;
10214 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10215 bool result;
10216 PyObject * obj0 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
10226
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 resultobj = PyInt_FromLong((long)result);
10231 return resultobj;
10232 fail:
10233 return NULL;
10234}
10235
10236
10237static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
10238 PyObject *resultobj;
10239 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10240 bool result;
10241 PyObject * obj0 = 0 ;
10242 char *kwnames[] = {
10243 (char *) "self", NULL
10244 };
10245
10246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
10247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10248 {
10249 PyThreadState* __tstate = wxPyBeginAllowThreads();
10250 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
10251
10252 wxPyEndAllowThreads(__tstate);
10253 if (PyErr_Occurred()) SWIG_fail;
10254 }
10255 resultobj = PyInt_FromLong((long)result);
10256 return resultobj;
10257 fail:
10258 return NULL;
10259}
10260
10261
10262static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
10263 PyObject *resultobj;
10264 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10265 bool result;
10266 PyObject * obj0 = 0 ;
10267 char *kwnames[] = {
10268 (char *) "self", NULL
10269 };
10270
10271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
10272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10273 {
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
10276
10277 wxPyEndAllowThreads(__tstate);
10278 if (PyErr_Occurred()) SWIG_fail;
10279 }
10280 resultobj = PyInt_FromLong((long)result);
10281 return resultobj;
10282 fail:
10283 return NULL;
10284}
10285
10286
10287static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
10288 PyObject *resultobj;
10289 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10290 int arg2 = (int) wxJOY_BUTTON_ANY ;
10291 bool result;
10292 PyObject * obj0 = 0 ;
10293 char *kwnames[] = {
10294 (char *) "self",(char *) "but", NULL
10295 };
10296
10297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail;
10298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10299 {
10300 PyThreadState* __tstate = wxPyBeginAllowThreads();
10301 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
10302
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 resultobj = PyInt_FromLong((long)result);
10307 return resultobj;
10308 fail:
10309 return NULL;
10310}
10311
10312
10313static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
10314 PyObject *resultobj;
10315 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10316 int arg2 = (int) wxJOY_BUTTON_ANY ;
10317 bool result;
10318 PyObject * obj0 = 0 ;
10319 char *kwnames[] = {
10320 (char *) "self",(char *) "but", NULL
10321 };
10322
10323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail;
10324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10325 {
10326 PyThreadState* __tstate = wxPyBeginAllowThreads();
10327 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
10328
10329 wxPyEndAllowThreads(__tstate);
10330 if (PyErr_Occurred()) SWIG_fail;
10331 }
10332 resultobj = PyInt_FromLong((long)result);
10333 return resultobj;
10334 fail:
10335 return NULL;
10336}
10337
10338
10339static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj;
10341 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10342 int arg2 = (int) wxJOY_BUTTON_ANY ;
10343 bool result;
10344 PyObject * obj0 = 0 ;
10345 char *kwnames[] = {
10346 (char *) "self",(char *) "but", NULL
10347 };
10348
10349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail;
10350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10351 {
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
10354
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 resultobj = PyInt_FromLong((long)result);
10359 return resultobj;
10360 fail:
10361 return NULL;
10362}
10363
10364
10365static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
10366 PyObject *obj;
10367 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10368 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
10369 Py_INCREF(obj);
10370 return Py_BuildValue((char *)"");
10371}
10372static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) {
10373 PyObject *resultobj;
10374 wxString *arg1 = 0 ;
e811c8ce 10375 bool arg2 = (bool) False ;
d14a1e28 10376 wxWave *result;
e811c8ce 10377 bool temp1 = False ;
d14a1e28
RD
10378 PyObject * obj0 = 0 ;
10379 PyObject * obj1 = 0 ;
10380 char *kwnames[] = {
10381 (char *) "fileName",(char *) "isResource", NULL
10382 };
10383
10384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail;
10385 {
10386 arg1 = wxString_in_helper(obj0);
10387 if (arg1 == NULL) SWIG_fail;
e811c8ce 10388 temp1 = True;
d14a1e28
RD
10389 }
10390 if (obj1) {
10391 arg2 = PyInt_AsLong(obj1) ? true : false;
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = (wxWave *)new wxWave((wxString const &)*arg1,arg2);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1);
10402 {
10403 if (temp1)
10404 delete arg1;
10405 }
10406 return resultobj;
10407 fail:
10408 {
10409 if (temp1)
10410 delete arg1;
10411 }
10412 return NULL;
10413}
10414
10415
10416static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) {
10417 PyObject *resultobj;
10418 wxString *arg1 = 0 ;
10419 wxWave *result;
e811c8ce 10420 bool temp1 = False ;
d14a1e28
RD
10421 PyObject * obj0 = 0 ;
10422 char *kwnames[] = {
10423 (char *) "data", NULL
10424 };
10425
10426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail;
10427 {
10428 arg1 = wxString_in_helper(obj0);
10429 if (arg1 == NULL) SWIG_fail;
e811c8ce 10430 temp1 = True;
d14a1e28
RD
10431 }
10432 {
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 result = (wxWave *)new_wxWave((wxString const &)*arg1);
10435
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1);
10440 {
10441 if (temp1)
10442 delete arg1;
10443 }
10444 return resultobj;
10445 fail:
10446 {
10447 if (temp1)
10448 delete arg1;
10449 }
10450 return NULL;
10451}
10452
10453
10454static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) {
10455 PyObject *resultobj;
10456 wxWave *arg1 = (wxWave *) 0 ;
10457 PyObject * obj0 = 0 ;
10458 char *kwnames[] = {
10459 (char *) "self", NULL
10460 };
10461
10462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail;
10463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10464 {
10465 PyThreadState* __tstate = wxPyBeginAllowThreads();
10466 delete arg1;
10467
10468 wxPyEndAllowThreads(__tstate);
10469 if (PyErr_Occurred()) SWIG_fail;
10470 }
10471 Py_INCREF(Py_None); resultobj = Py_None;
10472 return resultobj;
10473 fail:
10474 return NULL;
10475}
10476
10477
10478static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10479 PyObject *resultobj;
10480 wxWave *arg1 = (wxWave *) 0 ;
10481 bool result;
10482 PyObject * obj0 = 0 ;
10483 char *kwnames[] = {
10484 (char *) "self", NULL
10485 };
10486
10487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail;
10488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 result = (bool)((wxWave const *)arg1)->IsOk();
10492
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 resultobj = PyInt_FromLong((long)result);
10497 return resultobj;
10498 fail:
10499 return NULL;
10500}
10501
10502
10503static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
10504 PyObject *resultobj;
10505 wxWave *arg1 = (wxWave *) 0 ;
e811c8ce
RD
10506 bool arg2 = (bool) True ;
10507 bool arg3 = (bool) False ;
d14a1e28
RD
10508 bool result;
10509 PyObject * obj0 = 0 ;
10510 PyObject * obj1 = 0 ;
10511 PyObject * obj2 = 0 ;
10512 char *kwnames[] = {
10513 (char *) "self",(char *) "async",(char *) "looped", NULL
10514 };
10515
10516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail;
10517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10518 if (obj1) {
10519 arg2 = PyInt_AsLong(obj1) ? true : false;
10520 if (PyErr_Occurred()) SWIG_fail;
10521 }
10522 if (obj2) {
10523 arg3 = PyInt_AsLong(obj2) ? true : false;
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
10526 {
10527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6c3b4aae 10528 result = (bool)(arg1)->Play(arg2,arg3);
d14a1e28
RD
10529
10530 wxPyEndAllowThreads(__tstate);
10531 if (PyErr_Occurred()) SWIG_fail;
10532 }
10533 resultobj = PyInt_FromLong((long)result);
10534 return resultobj;
10535 fail:
10536 return NULL;
10537}
10538
10539
10540static PyObject * Wave_swigregister(PyObject *self, PyObject *args) {
10541 PyObject *obj;
10542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10543 SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj);
10544 Py_INCREF(obj);
10545 return Py_BuildValue((char *)"");
10546}
10547static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj;
10549 wxString *arg1 = 0 ;
10550 wxString *arg2 = 0 ;
10551 wxString *arg3 = 0 ;
10552 wxString *arg4 = 0 ;
10553 wxFileTypeInfo *result;
e811c8ce
RD
10554 bool temp1 = False ;
10555 bool temp2 = False ;
10556 bool temp3 = False ;
10557 bool temp4 = False ;
d14a1e28
RD
10558 PyObject * obj0 = 0 ;
10559 PyObject * obj1 = 0 ;
10560 PyObject * obj2 = 0 ;
10561 PyObject * obj3 = 0 ;
10562 char *kwnames[] = {
10563 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
10564 };
10565
10566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10567 {
10568 arg1 = wxString_in_helper(obj0);
10569 if (arg1 == NULL) SWIG_fail;
e811c8ce 10570 temp1 = True;
d14a1e28
RD
10571 }
10572 {
10573 arg2 = wxString_in_helper(obj1);
10574 if (arg2 == NULL) SWIG_fail;
e811c8ce 10575 temp2 = True;
d14a1e28
RD
10576 }
10577 {
10578 arg3 = wxString_in_helper(obj2);
10579 if (arg3 == NULL) SWIG_fail;
e811c8ce 10580 temp3 = True;
d14a1e28
RD
10581 }
10582 {
10583 arg4 = wxString_in_helper(obj3);
10584 if (arg4 == NULL) SWIG_fail;
e811c8ce 10585 temp4 = True;
d14a1e28
RD
10586 }
10587 {
10588 PyThreadState* __tstate = wxPyBeginAllowThreads();
10589 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
10590
10591 wxPyEndAllowThreads(__tstate);
10592 if (PyErr_Occurred()) SWIG_fail;
10593 }
10594 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
10595 {
10596 if (temp1)
10597 delete arg1;
10598 }
10599 {
10600 if (temp2)
10601 delete arg2;
10602 }
10603 {
10604 if (temp3)
10605 delete arg3;
10606 }
10607 {
10608 if (temp4)
10609 delete arg4;
10610 }
10611 return resultobj;
10612 fail:
10613 {
10614 if (temp1)
10615 delete arg1;
10616 }
10617 {
10618 if (temp2)
10619 delete arg2;
10620 }
10621 {
10622 if (temp3)
10623 delete arg3;
10624 }
10625 {
10626 if (temp4)
10627 delete arg4;
10628 }
10629 return NULL;
10630}
10631
10632
10633static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
10634 PyObject *resultobj;
10635 wxArrayString *arg1 = 0 ;
10636 wxFileTypeInfo *result;
10637 PyObject * obj0 = 0 ;
10638 char *kwnames[] = {
10639 (char *) "sArray", NULL
10640 };
10641
10642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
10643 {
10644 if (! PySequence_Check(obj0)) {
10645 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10646 SWIG_fail;
10647 }
10648 arg1 = new wxArrayString;
10649 int i, len=PySequence_Length(obj0);
10650 for (i=0; i<len; i++) {
10651 PyObject* item = PySequence_GetItem(obj0, i);
10652#if wxUSE_UNICODE
10653 PyObject* str = PyObject_Unicode(item);
10654#else
10655 PyObject* str = PyObject_Str(item);
10656#endif
10657 arg1->Add(Py2wxString(str));
10658 Py_DECREF(item);
10659 Py_DECREF(str);
10660 }
10661 }
10662 {
10663 PyThreadState* __tstate = wxPyBeginAllowThreads();
10664 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
10665
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
10670 {
10671 if (arg1) delete arg1;
10672 }
10673 return resultobj;
10674 fail:
10675 {
10676 if (arg1) delete arg1;
10677 }
10678 return NULL;
10679}
10680
10681
10682static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj;
10684 wxFileTypeInfo *result;
10685 char *kwnames[] = {
10686 NULL
10687 };
10688
10689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
10690 {
10691 PyThreadState* __tstate = wxPyBeginAllowThreads();
10692 result = (wxFileTypeInfo *)new wxFileTypeInfo();
10693
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1);
10698 return resultobj;
10699 fail:
10700 return NULL;
10701}
10702
10703
10704static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj;
10706 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10707 bool result;
10708 PyObject * obj0 = 0 ;
10709 char *kwnames[] = {
10710 (char *) "self", NULL
10711 };
10712
10713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
10714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10715 {
10716 PyThreadState* __tstate = wxPyBeginAllowThreads();
10717 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
10718
10719 wxPyEndAllowThreads(__tstate);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 }
10722 resultobj = PyInt_FromLong((long)result);
10723 return resultobj;
10724 fail:
10725 return NULL;
10726}
10727
10728
10729static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10730 PyObject *resultobj;
10731 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10732 wxString *arg2 = 0 ;
10733 int arg3 = (int) 0 ;
e811c8ce 10734 bool temp2 = False ;
d14a1e28
RD
10735 PyObject * obj0 = 0 ;
10736 PyObject * obj1 = 0 ;
10737 char *kwnames[] = {
10738 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
10739 };
10740
10741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&arg3)) goto fail;
10742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10743 {
10744 arg2 = wxString_in_helper(obj1);
10745 if (arg2 == NULL) SWIG_fail;
e811c8ce 10746 temp2 = True;
d14a1e28
RD
10747 }
10748 {
10749 PyThreadState* __tstate = wxPyBeginAllowThreads();
10750 (arg1)->SetIcon((wxString const &)*arg2,arg3);
10751
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 Py_INCREF(Py_None); resultobj = Py_None;
10756 {
10757 if (temp2)
10758 delete arg2;
10759 }
10760 return resultobj;
10761 fail:
10762 {
10763 if (temp2)
10764 delete arg2;
10765 }
10766 return NULL;
10767}
10768
10769
10770static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
10771 PyObject *resultobj;
10772 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10773 wxString *arg2 = 0 ;
e811c8ce 10774 bool temp2 = False ;
d14a1e28
RD
10775 PyObject * obj0 = 0 ;
10776 PyObject * obj1 = 0 ;
10777 char *kwnames[] = {
10778 (char *) "self",(char *) "shortDesc", NULL
10779 };
10780
10781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
10782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10783 {
10784 arg2 = wxString_in_helper(obj1);
10785 if (arg2 == NULL) SWIG_fail;
e811c8ce 10786 temp2 = True;
d14a1e28
RD
10787 }
10788 {
10789 PyThreadState* __tstate = wxPyBeginAllowThreads();
10790 (arg1)->SetShortDesc((wxString const &)*arg2);
10791
10792 wxPyEndAllowThreads(__tstate);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 }
10795 Py_INCREF(Py_None); resultobj = Py_None;
10796 {
10797 if (temp2)
10798 delete arg2;
10799 }
10800 return resultobj;
10801 fail:
10802 {
10803 if (temp2)
10804 delete arg2;
10805 }
10806 return NULL;
10807}
10808
10809
10810static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
10811 PyObject *resultobj;
10812 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10813 wxString *result;
10814 PyObject * obj0 = 0 ;
10815 char *kwnames[] = {
10816 (char *) "self", NULL
10817 };
10818
10819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
10820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10821 {
10822 PyThreadState* __tstate = wxPyBeginAllowThreads();
10823 {
10824 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
10825 result = (wxString *) &_result_ref;
10826 }
10827
10828 wxPyEndAllowThreads(__tstate);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
cc6dd355
RD
10831 {
10832#if wxUSE_UNICODE
10833 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10834#else
10835 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10836#endif
10837 }
d14a1e28
RD
10838 return resultobj;
10839 fail:
10840 return NULL;
10841}
10842
10843
10844static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
10845 PyObject *resultobj;
10846 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10847 wxString *result;
10848 PyObject * obj0 = 0 ;
10849 char *kwnames[] = {
10850 (char *) "self", NULL
10851 };
10852
10853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
10854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10855 {
10856 PyThreadState* __tstate = wxPyBeginAllowThreads();
10857 {
10858 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
10859 result = (wxString *) &_result_ref;
10860 }
10861
10862 wxPyEndAllowThreads(__tstate);
10863 if (PyErr_Occurred()) SWIG_fail;
10864 }
cc6dd355
RD
10865 {
10866#if wxUSE_UNICODE
10867 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10868#else
10869 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10870#endif
10871 }
d14a1e28
RD
10872 return resultobj;
10873 fail:
10874 return NULL;
10875}
10876
10877
10878static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
10879 PyObject *resultobj;
10880 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10881 wxString *result;
10882 PyObject * obj0 = 0 ;
10883 char *kwnames[] = {
10884 (char *) "self", NULL
10885 };
10886
10887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
10888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10889 {
10890 PyThreadState* __tstate = wxPyBeginAllowThreads();
10891 {
10892 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
10893 result = (wxString *) &_result_ref;
10894 }
10895
10896 wxPyEndAllowThreads(__tstate);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 }
cc6dd355
RD
10899 {
10900#if wxUSE_UNICODE
10901 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10902#else
10903 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10904#endif
10905 }
d14a1e28
RD
10906 return resultobj;
10907 fail:
10908 return NULL;
10909}
10910
10911
10912static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
10913 PyObject *resultobj;
10914 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10915 wxString *result;
10916 PyObject * obj0 = 0 ;
10917 char *kwnames[] = {
10918 (char *) "self", NULL
10919 };
10920
10921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
10922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10923 {
10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
10925 {
10926 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
10927 result = (wxString *) &_result_ref;
10928 }
10929
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
cc6dd355
RD
10933 {
10934#if wxUSE_UNICODE
10935 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10936#else
10937 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10938#endif
10939 }
d14a1e28
RD
10940 return resultobj;
10941 fail:
10942 return NULL;
10943}
10944
10945
10946static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj;
10948 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10949 wxString *result;
10950 PyObject * obj0 = 0 ;
10951 char *kwnames[] = {
10952 (char *) "self", NULL
10953 };
10954
10955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
10956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10957 {
10958 PyThreadState* __tstate = wxPyBeginAllowThreads();
10959 {
10960 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
10961 result = (wxString *) &_result_ref;
10962 }
10963
10964 wxPyEndAllowThreads(__tstate);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
cc6dd355
RD
10967 {
10968#if wxUSE_UNICODE
10969 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10970#else
10971 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10972#endif
10973 }
d14a1e28
RD
10974 return resultobj;
10975 fail:
10976 return NULL;
10977}
10978
10979
10980static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
10981 PyObject *resultobj;
10982 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
10983 wxArrayString *result;
10984 PyObject * obj0 = 0 ;
10985 char *kwnames[] = {
10986 (char *) "self", NULL
10987 };
10988
10989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
10990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10991 {
10992 PyThreadState* __tstate = wxPyBeginAllowThreads();
10993 {
10994 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
10995 result = (wxArrayString *) &_result_ref;
10996 }
10997
10998 wxPyEndAllowThreads(__tstate);
10999 if (PyErr_Occurred()) SWIG_fail;
11000 }
11001 {
11002 resultobj = wxArrayString2PyList_helper(*result);
11003 }
11004 return resultobj;
11005 fail:
11006 return NULL;
11007}
11008
11009
11010static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj;
11012 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11013 int result;
11014 PyObject * obj0 = 0 ;
11015 char *kwnames[] = {
11016 (char *) "self", NULL
11017 };
11018
11019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
11020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
11024
11025 wxPyEndAllowThreads(__tstate);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 resultobj = PyInt_FromLong((long)result);
11029 return resultobj;
11030 fail:
11031 return NULL;
11032}
11033
11034
11035static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
11036 PyObject *resultobj;
11037 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11038 wxString *result;
11039 PyObject * obj0 = 0 ;
11040 char *kwnames[] = {
11041 (char *) "self", NULL
11042 };
11043
11044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
11045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 {
11049 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
11050 result = (wxString *) &_result_ref;
11051 }
11052
11053 wxPyEndAllowThreads(__tstate);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 }
cc6dd355
RD
11056 {
11057#if wxUSE_UNICODE
11058 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11059#else
11060 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11061#endif
11062 }
d14a1e28
RD
11063 return resultobj;
11064 fail:
11065 return NULL;
11066}
11067
11068
11069static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
11070 PyObject *resultobj;
11071 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11072 int result;
11073 PyObject * obj0 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "self", NULL
11076 };
11077
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
11079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11080 {
11081 PyThreadState* __tstate = wxPyBeginAllowThreads();
11082 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
11083
11084 wxPyEndAllowThreads(__tstate);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 }
11087 resultobj = PyInt_FromLong((long)result);
11088 return resultobj;
11089 fail:
11090 return NULL;
11091}
11092
11093
11094static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
11095 PyObject *obj;
11096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11097 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
11098 Py_INCREF(obj);
11099 return Py_BuildValue((char *)"");
11100}
11101static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
11102 PyObject *resultobj;
11103 wxFileTypeInfo *arg1 = 0 ;
11104 wxFileType *result;
11105 PyObject * obj0 = 0 ;
11106 char *kwnames[] = {
11107 (char *) "ftInfo", NULL
11108 };
11109
11110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
11111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11112 if (arg1 == NULL) {
11113 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11114 }
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
11118
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
11123 return resultobj;
11124 fail:
11125 return NULL;
11126}
11127
11128
11129static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj;
11131 wxFileType *arg1 = (wxFileType *) 0 ;
11132 PyObject * obj0 = 0 ;
11133 char *kwnames[] = {
11134 (char *) "self", NULL
11135 };
11136
11137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
11138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 delete arg1;
11142
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 Py_INCREF(Py_None); resultobj = Py_None;
11147 return resultobj;
11148 fail:
11149 return NULL;
11150}
11151
11152
11153static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
11154 PyObject *resultobj;
11155 wxFileType *arg1 = (wxFileType *) 0 ;
11156 PyObject *result;
11157 PyObject * obj0 = 0 ;
11158 char *kwnames[] = {
11159 (char *) "self", NULL
11160 };
11161
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
11163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11164 {
11165 PyThreadState* __tstate = wxPyBeginAllowThreads();
11166 result = (PyObject *)wxFileType_GetMimeType(arg1);
11167
11168 wxPyEndAllowThreads(__tstate);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 }
11171 resultobj = result;
11172 return resultobj;
11173 fail:
11174 return NULL;
11175}
11176
11177
11178static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
11179 PyObject *resultobj;
11180 wxFileType *arg1 = (wxFileType *) 0 ;
11181 PyObject *result;
11182 PyObject * obj0 = 0 ;
11183 char *kwnames[] = {
11184 (char *) "self", NULL
11185 };
11186
11187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
11188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
11192
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 }
11196 resultobj = result;
11197 return resultobj;
11198 fail:
11199 return NULL;
11200}
11201
11202
11203static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
11204 PyObject *resultobj;
11205 wxFileType *arg1 = (wxFileType *) 0 ;
11206 PyObject *result;
11207 PyObject * obj0 = 0 ;
11208 char *kwnames[] = {
11209 (char *) "self", NULL
11210 };
11211
11212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
11213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11214 {
11215 PyThreadState* __tstate = wxPyBeginAllowThreads();
11216 result = (PyObject *)wxFileType_GetExtensions(arg1);
11217
11218 wxPyEndAllowThreads(__tstate);
11219 if (PyErr_Occurred()) SWIG_fail;
11220 }
11221 resultobj = result;
11222 return resultobj;
11223 fail:
11224 return NULL;
11225}
11226
11227
11228static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11229 PyObject *resultobj;
11230 wxFileType *arg1 = (wxFileType *) 0 ;
11231 wxIcon *result;
11232 PyObject * obj0 = 0 ;
11233 char *kwnames[] = {
11234 (char *) "self", NULL
11235 };
11236
11237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
11238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11239 {
11240 PyThreadState* __tstate = wxPyBeginAllowThreads();
11241 result = (wxIcon *)wxFileType_GetIcon(arg1);
11242
11243 wxPyEndAllowThreads(__tstate);
11244 if (PyErr_Occurred()) SWIG_fail;
11245 }
11246 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
11247 return resultobj;
11248 fail:
11249 return NULL;
11250}
11251
11252
11253static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11254 PyObject *resultobj;
11255 wxFileType *arg1 = (wxFileType *) 0 ;
11256 PyObject *result;
11257 PyObject * obj0 = 0 ;
11258 char *kwnames[] = {
11259 (char *) "self", NULL
11260 };
11261
11262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
11263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11264 {
11265 PyThreadState* __tstate = wxPyBeginAllowThreads();
11266 result = (PyObject *)wxFileType_GetIconInfo(arg1);
11267
11268 wxPyEndAllowThreads(__tstate);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 resultobj = result;
11272 return resultobj;
11273 fail:
11274 return NULL;
11275}
11276
11277
11278static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
11279 PyObject *resultobj;
11280 wxFileType *arg1 = (wxFileType *) 0 ;
11281 PyObject *result;
11282 PyObject * obj0 = 0 ;
11283 char *kwnames[] = {
11284 (char *) "self", NULL
11285 };
11286
11287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
11288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11289 {
11290 PyThreadState* __tstate = wxPyBeginAllowThreads();
11291 result = (PyObject *)wxFileType_GetDescription(arg1);
11292
11293 wxPyEndAllowThreads(__tstate);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 resultobj = result;
11297 return resultobj;
11298 fail:
11299 return NULL;
11300}
11301
11302
11303static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11304 PyObject *resultobj;
11305 wxFileType *arg1 = (wxFileType *) 0 ;
11306 wxString *arg2 = 0 ;
11307 wxString const &arg3_defvalue = wxPyEmptyString ;
11308 wxString *arg3 = (wxString *) &arg3_defvalue ;
11309 PyObject *result;
e811c8ce
RD
11310 bool temp2 = False ;
11311 bool temp3 = False ;
d14a1e28
RD
11312 PyObject * obj0 = 0 ;
11313 PyObject * obj1 = 0 ;
11314 PyObject * obj2 = 0 ;
11315 char *kwnames[] = {
11316 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
11317 };
11318
11319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
11320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11321 {
11322 arg2 = wxString_in_helper(obj1);
11323 if (arg2 == NULL) SWIG_fail;
e811c8ce 11324 temp2 = True;
d14a1e28
RD
11325 }
11326 if (obj2) {
11327 {
11328 arg3 = wxString_in_helper(obj2);
11329 if (arg3 == NULL) SWIG_fail;
e811c8ce 11330 temp3 = True;
d14a1e28
RD
11331 }
11332 }
11333 {
11334 PyThreadState* __tstate = wxPyBeginAllowThreads();
11335 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
11336
11337 wxPyEndAllowThreads(__tstate);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 resultobj = result;
11341 {
11342 if (temp2)
11343 delete arg2;
11344 }
11345 {
11346 if (temp3)
11347 delete arg3;
11348 }
11349 return resultobj;
11350 fail:
11351 {
11352 if (temp2)
11353 delete arg2;
11354 }
11355 {
11356 if (temp3)
11357 delete arg3;
11358 }
11359 return NULL;
11360}
11361
11362
11363static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11364 PyObject *resultobj;
11365 wxFileType *arg1 = (wxFileType *) 0 ;
11366 wxString *arg2 = 0 ;
11367 wxString const &arg3_defvalue = wxPyEmptyString ;
11368 wxString *arg3 = (wxString *) &arg3_defvalue ;
11369 PyObject *result;
e811c8ce
RD
11370 bool temp2 = False ;
11371 bool temp3 = False ;
d14a1e28
RD
11372 PyObject * obj0 = 0 ;
11373 PyObject * obj1 = 0 ;
11374 PyObject * obj2 = 0 ;
11375 char *kwnames[] = {
11376 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
11377 };
11378
11379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
11380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11381 {
11382 arg2 = wxString_in_helper(obj1);
11383 if (arg2 == NULL) SWIG_fail;
e811c8ce 11384 temp2 = True;
d14a1e28
RD
11385 }
11386 if (obj2) {
11387 {
11388 arg3 = wxString_in_helper(obj2);
11389 if (arg3 == NULL) SWIG_fail;
e811c8ce 11390 temp3 = True;
d14a1e28
RD
11391 }
11392 }
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
11396
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 }
11400 resultobj = result;
11401 {
11402 if (temp2)
11403 delete arg2;
11404 }
11405 {
11406 if (temp3)
11407 delete arg3;
11408 }
11409 return resultobj;
11410 fail:
11411 {
11412 if (temp2)
11413 delete arg2;
11414 }
11415 {
11416 if (temp3)
11417 delete arg3;
11418 }
11419 return NULL;
11420}
11421
11422
11423static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
11424 PyObject *resultobj;
11425 wxFileType *arg1 = (wxFileType *) 0 ;
11426 wxString *arg2 = 0 ;
11427 wxString const &arg3_defvalue = wxPyEmptyString ;
11428 wxString *arg3 = (wxString *) &arg3_defvalue ;
11429 PyObject *result;
e811c8ce
RD
11430 bool temp2 = False ;
11431 bool temp3 = False ;
d14a1e28
RD
11432 PyObject * obj0 = 0 ;
11433 PyObject * obj1 = 0 ;
11434 PyObject * obj2 = 0 ;
11435 char *kwnames[] = {
11436 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
11437 };
11438
11439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
11440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11441 {
11442 arg2 = wxString_in_helper(obj1);
11443 if (arg2 == NULL) SWIG_fail;
e811c8ce 11444 temp2 = True;
d14a1e28
RD
11445 }
11446 if (obj2) {
11447 {
11448 arg3 = wxString_in_helper(obj2);
11449 if (arg3 == NULL) SWIG_fail;
e811c8ce 11450 temp3 = True;
d14a1e28
RD
11451 }
11452 }
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
11456
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 resultobj = result;
11461 {
11462 if (temp2)
11463 delete arg2;
11464 }
11465 {
11466 if (temp3)
11467 delete arg3;
11468 }
11469 return resultobj;
11470 fail:
11471 {
11472 if (temp2)
11473 delete arg2;
11474 }
11475 {
11476 if (temp3)
11477 delete arg3;
11478 }
11479 return NULL;
11480}
11481
11482
11483static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj;
11485 wxFileType *arg1 = (wxFileType *) 0 ;
11486 wxString *arg2 = 0 ;
11487 wxString *arg3 = 0 ;
e811c8ce 11488 bool arg4 = (bool) True ;
d14a1e28 11489 bool result;
e811c8ce
RD
11490 bool temp2 = False ;
11491 bool temp3 = False ;
d14a1e28
RD
11492 PyObject * obj0 = 0 ;
11493 PyObject * obj1 = 0 ;
11494 PyObject * obj2 = 0 ;
11495 PyObject * obj3 = 0 ;
11496 char *kwnames[] = {
11497 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
11498 };
11499
11500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11502 {
11503 arg2 = wxString_in_helper(obj1);
11504 if (arg2 == NULL) SWIG_fail;
e811c8ce 11505 temp2 = True;
d14a1e28
RD
11506 }
11507 {
11508 arg3 = wxString_in_helper(obj2);
11509 if (arg3 == NULL) SWIG_fail;
e811c8ce 11510 temp3 = True;
d14a1e28
RD
11511 }
11512 if (obj3) {
11513 arg4 = PyInt_AsLong(obj3) ? true : false;
11514 if (PyErr_Occurred()) SWIG_fail;
11515 }
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
11519
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 resultobj = PyInt_FromLong((long)result);
11524 {
11525 if (temp2)
11526 delete arg2;
11527 }
11528 {
11529 if (temp3)
11530 delete arg3;
11531 }
11532 return resultobj;
11533 fail:
11534 {
11535 if (temp2)
11536 delete arg2;
11537 }
11538 {
11539 if (temp3)
11540 delete arg3;
11541 }
11542 return NULL;
11543}
11544
11545
11546static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11547 PyObject *resultobj;
11548 wxFileType *arg1 = (wxFileType *) 0 ;
11549 wxString const &arg2_defvalue = wxPyEmptyString ;
11550 wxString *arg2 = (wxString *) &arg2_defvalue ;
11551 int arg3 = (int) 0 ;
11552 bool result;
e811c8ce 11553 bool temp2 = False ;
d14a1e28
RD
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 char *kwnames[] = {
11557 (char *) "self",(char *) "cmd",(char *) "index", NULL
11558 };
11559
11560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&arg3)) goto fail;
11561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11562 if (obj1) {
11563 {
11564 arg2 = wxString_in_helper(obj1);
11565 if (arg2 == NULL) SWIG_fail;
e811c8ce 11566 temp2 = True;
d14a1e28
RD
11567 }
11568 }
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
11572
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 resultobj = PyInt_FromLong((long)result);
11577 {
11578 if (temp2)
11579 delete arg2;
11580 }
11581 return resultobj;
11582 fail:
11583 {
11584 if (temp2)
11585 delete arg2;
11586 }
11587 return NULL;
11588}
11589
11590
11591static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
11592 PyObject *resultobj;
11593 wxFileType *arg1 = (wxFileType *) 0 ;
11594 bool result;
11595 PyObject * obj0 = 0 ;
11596 char *kwnames[] = {
11597 (char *) "self", NULL
11598 };
11599
11600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
11601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11602 {
11603 PyThreadState* __tstate = wxPyBeginAllowThreads();
11604 result = (bool)(arg1)->Unassociate();
11605
11606 wxPyEndAllowThreads(__tstate);
11607 if (PyErr_Occurred()) SWIG_fail;
11608 }
11609 resultobj = PyInt_FromLong((long)result);
11610 return resultobj;
11611 fail:
11612 return NULL;
11613}
11614
11615
11616static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11617 PyObject *resultobj;
11618 wxString *arg1 = 0 ;
11619 wxString *arg2 = 0 ;
11620 wxString const &arg3_defvalue = wxPyEmptyString ;
11621 wxString *arg3 = (wxString *) &arg3_defvalue ;
11622 wxString result;
e811c8ce
RD
11623 bool temp1 = False ;
11624 bool temp2 = False ;
11625 bool temp3 = False ;
d14a1e28
RD
11626 PyObject * obj0 = 0 ;
11627 PyObject * obj1 = 0 ;
11628 PyObject * obj2 = 0 ;
11629 char *kwnames[] = {
11630 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
11631 };
11632
11633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
11634 {
11635 arg1 = wxString_in_helper(obj0);
11636 if (arg1 == NULL) SWIG_fail;
e811c8ce 11637 temp1 = True;
d14a1e28
RD
11638 }
11639 {
11640 arg2 = wxString_in_helper(obj1);
11641 if (arg2 == NULL) SWIG_fail;
e811c8ce 11642 temp2 = True;
d14a1e28
RD
11643 }
11644 if (obj2) {
11645 {
11646 arg3 = wxString_in_helper(obj2);
11647 if (arg3 == NULL) SWIG_fail;
e811c8ce 11648 temp3 = True;
d14a1e28
RD
11649 }
11650 }
11651 {
11652 PyThreadState* __tstate = wxPyBeginAllowThreads();
11653 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
11654
11655 wxPyEndAllowThreads(__tstate);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 {
11659#if wxUSE_UNICODE
11660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11661#else
11662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11663#endif
11664 }
11665 {
11666 if (temp1)
11667 delete arg1;
11668 }
11669 {
11670 if (temp2)
11671 delete arg2;
11672 }
11673 {
11674 if (temp3)
11675 delete arg3;
11676 }
11677 return resultobj;
11678 fail:
11679 {
11680 if (temp1)
11681 delete arg1;
11682 }
11683 {
11684 if (temp2)
11685 delete arg2;
11686 }
11687 {
11688 if (temp3)
11689 delete arg3;
11690 }
11691 return NULL;
11692}
11693
11694
11695static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
11696 PyObject *obj;
11697 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11698 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
11699 Py_INCREF(obj);
11700 return Py_BuildValue((char *)"");
11701}
11702static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
11703 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
11704 return 1;
11705}
11706
11707
11708static PyObject *_wrap_TheMimeTypesManager_get() {
11709 PyObject *pyobj;
11710
11711 pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0);
11712 return pyobj;
11713}
11714
11715
11716static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
11717 PyObject *resultobj;
11718 wxString *arg1 = 0 ;
11719 wxString *arg2 = 0 ;
11720 bool result;
e811c8ce
RD
11721 bool temp1 = False ;
11722 bool temp2 = False ;
d14a1e28
RD
11723 PyObject * obj0 = 0 ;
11724 PyObject * obj1 = 0 ;
11725 char *kwnames[] = {
11726 (char *) "mimeType",(char *) "wildcard", NULL
11727 };
11728
11729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
11730 {
11731 arg1 = wxString_in_helper(obj0);
11732 if (arg1 == NULL) SWIG_fail;
e811c8ce 11733 temp1 = True;
d14a1e28
RD
11734 }
11735 {
11736 arg2 = wxString_in_helper(obj1);
11737 if (arg2 == NULL) SWIG_fail;
e811c8ce 11738 temp2 = True;
d14a1e28
RD
11739 }
11740 {
11741 PyThreadState* __tstate = wxPyBeginAllowThreads();
11742 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
11743
11744 wxPyEndAllowThreads(__tstate);
11745 if (PyErr_Occurred()) SWIG_fail;
11746 }
11747 resultobj = PyInt_FromLong((long)result);
11748 {
11749 if (temp1)
11750 delete arg1;
11751 }
11752 {
11753 if (temp2)
11754 delete arg2;
11755 }
11756 return resultobj;
11757 fail:
11758 {
11759 if (temp1)
11760 delete arg1;
11761 }
11762 {
11763 if (temp2)
11764 delete arg2;
11765 }
11766 return NULL;
11767}
11768
11769
11770static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
11771 PyObject *resultobj;
11772 wxMimeTypesManager *result;
11773 char *kwnames[] = {
11774 NULL
11775 };
11776
11777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 result = (wxMimeTypesManager *)new wxMimeTypesManager();
11781
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1);
11786 return resultobj;
11787 fail:
11788 return NULL;
11789}
11790
11791
11792static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
11793 PyObject *resultobj;
11794 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11795 int arg2 = (int) wxMAILCAP_ALL ;
11796 wxString const &arg3_defvalue = wxPyEmptyString ;
11797 wxString *arg3 = (wxString *) &arg3_defvalue ;
e811c8ce 11798 bool temp3 = False ;
d14a1e28
RD
11799 PyObject * obj0 = 0 ;
11800 PyObject * obj2 = 0 ;
11801 char *kwnames[] = {
11802 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
11803 };
11804
11805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:MimeTypesManager_Initialize",kwnames,&obj0,&arg2,&obj2)) goto fail;
11806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11807 if (obj2) {
11808 {
11809 arg3 = wxString_in_helper(obj2);
11810 if (arg3 == NULL) SWIG_fail;
e811c8ce 11811 temp3 = True;
d14a1e28
RD
11812 }
11813 }
11814 {
11815 PyThreadState* __tstate = wxPyBeginAllowThreads();
11816 (arg1)->Initialize(arg2,(wxString const &)*arg3);
11817
11818 wxPyEndAllowThreads(__tstate);
11819 if (PyErr_Occurred()) SWIG_fail;
11820 }
11821 Py_INCREF(Py_None); resultobj = Py_None;
11822 {
11823 if (temp3)
11824 delete arg3;
11825 }
11826 return resultobj;
11827 fail:
11828 {
11829 if (temp3)
11830 delete arg3;
11831 }
11832 return NULL;
11833}
11834
11835
11836static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
11837 PyObject *resultobj;
11838 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11839 PyObject * obj0 = 0 ;
11840 char *kwnames[] = {
11841 (char *) "self", NULL
11842 };
11843
11844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
11845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 (arg1)->ClearData();
11849
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 Py_INCREF(Py_None); resultobj = Py_None;
11854 return resultobj;
11855 fail:
11856 return NULL;
11857}
11858
11859
11860static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
11861 PyObject *resultobj;
11862 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11863 wxString *arg2 = 0 ;
11864 wxFileType *result;
e811c8ce 11865 bool temp2 = False ;
d14a1e28
RD
11866 PyObject * obj0 = 0 ;
11867 PyObject * obj1 = 0 ;
11868 char *kwnames[] = {
11869 (char *) "self",(char *) "ext", NULL
11870 };
11871
11872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
11873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11874 {
11875 arg2 = wxString_in_helper(obj1);
11876 if (arg2 == NULL) SWIG_fail;
e811c8ce 11877 temp2 = True;
d14a1e28
RD
11878 }
11879 {
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
11882
11883 wxPyEndAllowThreads(__tstate);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 }
11886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
11887 {
11888 if (temp2)
11889 delete arg2;
11890 }
11891 return resultobj;
11892 fail:
11893 {
11894 if (temp2)
11895 delete arg2;
11896 }
11897 return NULL;
11898}
11899
11900
11901static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
11902 PyObject *resultobj;
11903 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11904 wxString *arg2 = 0 ;
11905 wxFileType *result;
e811c8ce 11906 bool temp2 = False ;
d14a1e28
RD
11907 PyObject * obj0 = 0 ;
11908 PyObject * obj1 = 0 ;
11909 char *kwnames[] = {
11910 (char *) "self",(char *) "mimeType", NULL
11911 };
11912
11913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
11914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11915 {
11916 arg2 = wxString_in_helper(obj1);
11917 if (arg2 == NULL) SWIG_fail;
e811c8ce 11918 temp2 = True;
d14a1e28
RD
11919 }
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
11923
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
11928 {
11929 if (temp2)
11930 delete arg2;
11931 }
11932 return resultobj;
11933 fail:
11934 {
11935 if (temp2)
11936 delete arg2;
11937 }
11938 return NULL;
11939}
11940
11941
11942static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
11943 PyObject *resultobj;
11944 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11945 wxString *arg2 = 0 ;
e811c8ce 11946 bool arg3 = (bool) False ;
d14a1e28 11947 bool result;
e811c8ce 11948 bool temp2 = False ;
d14a1e28
RD
11949 PyObject * obj0 = 0 ;
11950 PyObject * obj1 = 0 ;
11951 PyObject * obj2 = 0 ;
11952 char *kwnames[] = {
11953 (char *) "self",(char *) "filename",(char *) "fallback", NULL
11954 };
11955
11956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
11957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11958 {
11959 arg2 = wxString_in_helper(obj1);
11960 if (arg2 == NULL) SWIG_fail;
e811c8ce 11961 temp2 = True;
d14a1e28
RD
11962 }
11963 if (obj2) {
11964 arg3 = PyInt_AsLong(obj2) ? true : false;
11965 if (PyErr_Occurred()) SWIG_fail;
11966 }
11967 {
11968 PyThreadState* __tstate = wxPyBeginAllowThreads();
11969 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
11970
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 resultobj = PyInt_FromLong((long)result);
11975 {
11976 if (temp2)
11977 delete arg2;
11978 }
11979 return resultobj;
11980 fail:
11981 {
11982 if (temp2)
11983 delete arg2;
11984 }
11985 return NULL;
11986}
11987
11988
11989static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
11990 PyObject *resultobj;
11991 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
11992 wxString *arg2 = 0 ;
11993 bool result;
e811c8ce 11994 bool temp2 = False ;
d14a1e28
RD
11995 PyObject * obj0 = 0 ;
11996 PyObject * obj1 = 0 ;
11997 char *kwnames[] = {
11998 (char *) "self",(char *) "filename", NULL
11999 };
12000
12001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
12002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12003 {
12004 arg2 = wxString_in_helper(obj1);
12005 if (arg2 == NULL) SWIG_fail;
e811c8ce 12006 temp2 = True;
d14a1e28
RD
12007 }
12008 {
12009 PyThreadState* __tstate = wxPyBeginAllowThreads();
12010 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
12011
12012 wxPyEndAllowThreads(__tstate);
12013 if (PyErr_Occurred()) SWIG_fail;
12014 }
12015 resultobj = PyInt_FromLong((long)result);
12016 {
12017 if (temp2)
12018 delete arg2;
12019 }
12020 return resultobj;
12021 fail:
12022 {
12023 if (temp2)
12024 delete arg2;
12025 }
12026 return NULL;
12027}
12028
12029
12030static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12031 PyObject *resultobj;
12032 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12033 PyObject *result;
12034 PyObject * obj0 = 0 ;
12035 char *kwnames[] = {
12036 (char *) "self", NULL
12037 };
12038
12039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
12040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
12044
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 resultobj = result;
12049 return resultobj;
12050 fail:
12051 return NULL;
12052}
12053
12054
12055static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
12056 PyObject *resultobj;
12057 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12058 wxFileTypeInfo *arg2 = 0 ;
12059 PyObject * obj0 = 0 ;
12060 PyObject * obj1 = 0 ;
12061 char *kwnames[] = {
12062 (char *) "self",(char *) "ft", NULL
12063 };
12064
12065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
12066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12067 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12068 if (arg2 == NULL) {
12069 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12070 }
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
12074
12075 wxPyEndAllowThreads(__tstate);
12076 if (PyErr_Occurred()) SWIG_fail;
12077 }
12078 Py_INCREF(Py_None); resultobj = Py_None;
12079 return resultobj;
12080 fail:
12081 return NULL;
12082}
12083
12084
12085static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
12086 PyObject *resultobj;
12087 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12088 wxFileTypeInfo *arg2 = 0 ;
12089 wxFileType *result;
12090 PyObject * obj0 = 0 ;
12091 PyObject * obj1 = 0 ;
12092 char *kwnames[] = {
12093 (char *) "self",(char *) "ftInfo", NULL
12094 };
12095
12096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
12097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12098 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12099 if (arg2 == NULL) {
12100 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12101 }
12102 {
12103 PyThreadState* __tstate = wxPyBeginAllowThreads();
12104 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
12105
12106 wxPyEndAllowThreads(__tstate);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1);
12110 return resultobj;
12111 fail:
12112 return NULL;
12113}
12114
12115
12116static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12117 PyObject *resultobj;
12118 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12119 wxFileType *arg2 = (wxFileType *) 0 ;
12120 bool result;
12121 PyObject * obj0 = 0 ;
12122 PyObject * obj1 = 0 ;
12123 char *kwnames[] = {
12124 (char *) "self",(char *) "ft", NULL
12125 };
12126
12127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
12128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12129 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12130 {
12131 PyThreadState* __tstate = wxPyBeginAllowThreads();
12132 result = (bool)(arg1)->Unassociate(arg2);
12133
12134 wxPyEndAllowThreads(__tstate);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 resultobj = PyInt_FromLong((long)result);
12138 return resultobj;
12139 fail:
12140 return NULL;
12141}
12142
12143
12144static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
12145 PyObject *resultobj;
12146 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12147 PyObject * obj0 = 0 ;
12148 char *kwnames[] = {
12149 (char *) "self", NULL
12150 };
12151
12152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
12153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 delete arg1;
12157
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 Py_INCREF(Py_None); resultobj = Py_None;
12162 return resultobj;
12163 fail:
12164 return NULL;
12165}
12166
12167
12168static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
12169 PyObject *obj;
12170 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12171 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
12172 Py_INCREF(obj);
12173 return Py_BuildValue((char *)"");
12174}
12175static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
12176 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
12177 return 1;
12178}
12179
12180
12181static PyObject *_wrap_ART_TOOLBAR_get() {
12182 PyObject *pyobj;
12183
12184 {
12185#if wxUSE_UNICODE
12186 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
12187#else
12188 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
12189#endif
12190 }
12191 return pyobj;
12192}
12193
12194
12195static int _wrap_ART_MENU_set(PyObject *_val) {
12196 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
12197 return 1;
12198}
12199
12200
12201static PyObject *_wrap_ART_MENU_get() {
12202 PyObject *pyobj;
12203
12204 {
12205#if wxUSE_UNICODE
12206 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
12207#else
12208 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
12209#endif
12210 }
12211 return pyobj;
12212}
12213
12214
12215static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
12216 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
12217 return 1;
12218}
12219
12220
12221static PyObject *_wrap_ART_FRAME_ICON_get() {
12222 PyObject *pyobj;
12223
12224 {
12225#if wxUSE_UNICODE
12226 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
12227#else
12228 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
12229#endif
12230 }
12231 return pyobj;
12232}
12233
12234
12235static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
12236 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
12237 return 1;
12238}
12239
12240
12241static PyObject *_wrap_ART_CMN_DIALOG_get() {
12242 PyObject *pyobj;
12243
12244 {
12245#if wxUSE_UNICODE
12246 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
12247#else
12248 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
12249#endif
12250 }
12251 return pyobj;
12252}
12253
12254
12255static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
12256 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
12257 return 1;
12258}
12259
12260
12261static PyObject *_wrap_ART_HELP_BROWSER_get() {
12262 PyObject *pyobj;
12263
12264 {
12265#if wxUSE_UNICODE
12266 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
12267#else
12268 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
12269#endif
12270 }
12271 return pyobj;
12272}
12273
12274
12275static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
12276 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
12277 return 1;
12278}
12279
12280
12281static PyObject *_wrap_ART_MESSAGE_BOX_get() {
12282 PyObject *pyobj;
12283
12284 {
12285#if wxUSE_UNICODE
12286 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
12287#else
12288 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
12289#endif
12290 }
12291 return pyobj;
12292}
12293
12294
12295static int _wrap_ART_OTHER_set(PyObject *_val) {
12296 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
12297 return 1;
12298}
12299
12300
12301static PyObject *_wrap_ART_OTHER_get() {
12302 PyObject *pyobj;
12303
12304 {
12305#if wxUSE_UNICODE
12306 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
12307#else
12308 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
12309#endif
12310 }
12311 return pyobj;
12312}
12313
12314
12315static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
12316 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
12317 return 1;
12318}
12319
12320
12321static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
12322 PyObject *pyobj;
12323
12324 {
12325#if wxUSE_UNICODE
12326 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
12327#else
12328 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
12329#endif
12330 }
12331 return pyobj;
12332}
12333
12334
12335static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
12336 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
12337 return 1;
12338}
12339
12340
12341static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
12342 PyObject *pyobj;
12343
12344 {
12345#if wxUSE_UNICODE
12346 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
12347#else
12348 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
12349#endif
12350 }
12351 return pyobj;
12352}
12353
12354
12355static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
12356 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
12357 return 1;
12358}
12359
12360
12361static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
12362 PyObject *pyobj;
12363
12364 {
12365#if wxUSE_UNICODE
12366 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
12367#else
12368 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
12369#endif
12370 }
12371 return pyobj;
12372}
12373
12374
12375static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
12376 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
12377 return 1;
12378}
12379
12380
12381static PyObject *_wrap_ART_HELP_SETTINGS_get() {
12382 PyObject *pyobj;
12383
12384 {
12385#if wxUSE_UNICODE
12386 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
12387#else
12388 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
12389#endif
12390 }
12391 return pyobj;
12392}
12393
12394
12395static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
12396 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
12397 return 1;
12398}
12399
12400
12401static PyObject *_wrap_ART_HELP_BOOK_get() {
12402 PyObject *pyobj;
12403
12404 {
12405#if wxUSE_UNICODE
12406 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
12407#else
12408 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
12409#endif
12410 }
12411 return pyobj;
12412}
12413
12414
12415static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
12416 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
12417 return 1;
12418}
12419
12420
12421static PyObject *_wrap_ART_HELP_FOLDER_get() {
12422 PyObject *pyobj;
12423
12424 {
12425#if wxUSE_UNICODE
12426 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
12427#else
12428 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
12429#endif
12430 }
12431 return pyobj;
12432}
12433
12434
12435static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
12436 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
12437 return 1;
12438}
12439
12440
12441static PyObject *_wrap_ART_HELP_PAGE_get() {
12442 PyObject *pyobj;
12443
12444 {
12445#if wxUSE_UNICODE
12446 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
12447#else
12448 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
12449#endif
12450 }
12451 return pyobj;
12452}
12453
12454
12455static int _wrap_ART_GO_BACK_set(PyObject *_val) {
12456 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
12457 return 1;
12458}
12459
12460
12461static PyObject *_wrap_ART_GO_BACK_get() {
12462 PyObject *pyobj;
12463
12464 {
12465#if wxUSE_UNICODE
12466 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
12467#else
12468 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
12469#endif
12470 }
12471 return pyobj;
12472}
12473
12474
12475static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
12476 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
12477 return 1;
12478}
12479
12480
12481static PyObject *_wrap_ART_GO_FORWARD_get() {
12482 PyObject *pyobj;
12483
12484 {
12485#if wxUSE_UNICODE
12486 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
12487#else
12488 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
12489#endif
12490 }
12491 return pyobj;
12492}
12493
12494
12495static int _wrap_ART_GO_UP_set(PyObject *_val) {
12496 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
12497 return 1;
12498}
12499
12500
12501static PyObject *_wrap_ART_GO_UP_get() {
12502 PyObject *pyobj;
12503
12504 {
12505#if wxUSE_UNICODE
12506 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
12507#else
12508 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
12509#endif
12510 }
12511 return pyobj;
12512}
12513
12514
12515static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
12516 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
12517 return 1;
12518}
12519
12520
12521static PyObject *_wrap_ART_GO_DOWN_get() {
12522 PyObject *pyobj;
12523
12524 {
12525#if wxUSE_UNICODE
12526 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
12527#else
12528 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
12529#endif
12530 }
12531 return pyobj;
12532}
12533
12534
12535static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
12536 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
12537 return 1;
12538}
12539
12540
12541static PyObject *_wrap_ART_GO_TO_PARENT_get() {
12542 PyObject *pyobj;
12543
12544 {
12545#if wxUSE_UNICODE
12546 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
12547#else
12548 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
12549#endif
12550 }
12551 return pyobj;
12552}
12553
12554
12555static int _wrap_ART_GO_HOME_set(PyObject *_val) {
12556 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
12557 return 1;
12558}
12559
12560
12561static PyObject *_wrap_ART_GO_HOME_get() {
12562 PyObject *pyobj;
12563
12564 {
12565#if wxUSE_UNICODE
12566 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
12567#else
12568 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
12569#endif
12570 }
12571 return pyobj;
12572}
12573
12574
12575static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
12576 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
12577 return 1;
12578}
12579
12580
12581static PyObject *_wrap_ART_FILE_OPEN_get() {
12582 PyObject *pyobj;
12583
12584 {
12585#if wxUSE_UNICODE
12586 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
12587#else
12588 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
12589#endif
12590 }
12591 return pyobj;
12592}
12593
12594
12595static int _wrap_ART_PRINT_set(PyObject *_val) {
12596 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
12597 return 1;
12598}
12599
12600
12601static PyObject *_wrap_ART_PRINT_get() {
12602 PyObject *pyobj;
12603
12604 {
12605#if wxUSE_UNICODE
12606 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
12607#else
12608 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
12609#endif
12610 }
12611 return pyobj;
12612}
12613
12614
12615static int _wrap_ART_HELP_set(PyObject *_val) {
12616 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
12617 return 1;
12618}
12619
12620
12621static PyObject *_wrap_ART_HELP_get() {
12622 PyObject *pyobj;
12623
12624 {
12625#if wxUSE_UNICODE
12626 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
12627#else
12628 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
12629#endif
12630 }
12631 return pyobj;
12632}
12633
12634
12635static int _wrap_ART_TIP_set(PyObject *_val) {
12636 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
12637 return 1;
12638}
12639
12640
12641static PyObject *_wrap_ART_TIP_get() {
12642 PyObject *pyobj;
12643
12644 {
12645#if wxUSE_UNICODE
12646 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
12647#else
12648 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
12649#endif
12650 }
12651 return pyobj;
12652}
12653
12654
12655static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
12656 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
12657 return 1;
12658}
12659
12660
12661static PyObject *_wrap_ART_REPORT_VIEW_get() {
12662 PyObject *pyobj;
12663
12664 {
12665#if wxUSE_UNICODE
12666 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
12667#else
12668 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
12669#endif
12670 }
12671 return pyobj;
12672}
12673
12674
12675static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
12676 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
12677 return 1;
12678}
12679
12680
12681static PyObject *_wrap_ART_LIST_VIEW_get() {
12682 PyObject *pyobj;
12683
12684 {
12685#if wxUSE_UNICODE
12686 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
12687#else
12688 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
12689#endif
12690 }
12691 return pyobj;
12692}
12693
12694
12695static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
12696 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
12697 return 1;
12698}
12699
12700
12701static PyObject *_wrap_ART_NEW_DIR_get() {
12702 PyObject *pyobj;
12703
12704 {
12705#if wxUSE_UNICODE
12706 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
12707#else
12708 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
12709#endif
12710 }
12711 return pyobj;
12712}
12713
12714
12715static int _wrap_ART_FOLDER_set(PyObject *_val) {
12716 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
12717 return 1;
12718}
12719
12720
12721static PyObject *_wrap_ART_FOLDER_get() {
12722 PyObject *pyobj;
12723
12724 {
12725#if wxUSE_UNICODE
12726 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
12727#else
12728 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
12729#endif
12730 }
12731 return pyobj;
12732}
12733
12734
12735static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
12736 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
12737 return 1;
12738}
12739
12740
12741static PyObject *_wrap_ART_GO_DIR_UP_get() {
12742 PyObject *pyobj;
12743
12744 {
12745#if wxUSE_UNICODE
12746 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
12747#else
12748 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
12749#endif
12750 }
12751 return pyobj;
12752}
12753
12754
12755static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
12756 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
12757 return 1;
12758}
12759
12760
12761static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
12762 PyObject *pyobj;
12763
12764 {
12765#if wxUSE_UNICODE
12766 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
12767#else
12768 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
12769#endif
12770 }
12771 return pyobj;
12772}
12773
12774
12775static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
12776 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
12777 return 1;
12778}
12779
12780
12781static PyObject *_wrap_ART_NORMAL_FILE_get() {
12782 PyObject *pyobj;
12783
12784 {
12785#if wxUSE_UNICODE
12786 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
12787#else
12788 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
12789#endif
12790 }
12791 return pyobj;
12792}
12793
12794
12795static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
12796 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
12797 return 1;
12798}
12799
12800
12801static PyObject *_wrap_ART_TICK_MARK_get() {
12802 PyObject *pyobj;
12803
12804 {
12805#if wxUSE_UNICODE
12806 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
12807#else
12808 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
12809#endif
12810 }
12811 return pyobj;
12812}
12813
12814
12815static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
12816 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
12817 return 1;
12818}
12819
12820
12821static PyObject *_wrap_ART_CROSS_MARK_get() {
12822 PyObject *pyobj;
12823
12824 {
12825#if wxUSE_UNICODE
12826 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
12827#else
12828 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
12829#endif
12830 }
12831 return pyobj;
12832}
12833
12834
12835static int _wrap_ART_ERROR_set(PyObject *_val) {
12836 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
12837 return 1;
12838}
12839
12840
12841static PyObject *_wrap_ART_ERROR_get() {
12842 PyObject *pyobj;
12843
12844 {
12845#if wxUSE_UNICODE
12846 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
12847#else
12848 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
12849#endif
12850 }
12851 return pyobj;
12852}
12853
12854
12855static int _wrap_ART_QUESTION_set(PyObject *_val) {
12856 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
12857 return 1;
12858}
12859
12860
12861static PyObject *_wrap_ART_QUESTION_get() {
12862 PyObject *pyobj;
12863
12864 {
12865#if wxUSE_UNICODE
12866 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
12867#else
12868 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
12869#endif
12870 }
12871 return pyobj;
12872}
12873
12874
12875static int _wrap_ART_WARNING_set(PyObject *_val) {
12876 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
12877 return 1;
12878}
12879
12880
12881static PyObject *_wrap_ART_WARNING_get() {
12882 PyObject *pyobj;
12883
12884 {
12885#if wxUSE_UNICODE
12886 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
12887#else
12888 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
12889#endif
12890 }
12891 return pyobj;
12892}
12893
12894
12895static int _wrap_ART_INFORMATION_set(PyObject *_val) {
12896 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
12897 return 1;
12898}
12899
12900
12901static PyObject *_wrap_ART_INFORMATION_get() {
12902 PyObject *pyobj;
12903
12904 {
12905#if wxUSE_UNICODE
12906 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
12907#else
12908 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
12909#endif
12910 }
12911 return pyobj;
12912}
12913
12914
12915static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
12916 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
12917 return 1;
12918}
12919
12920
12921static PyObject *_wrap_ART_MISSING_IMAGE_get() {
12922 PyObject *pyobj;
12923
12924 {
12925#if wxUSE_UNICODE
12926 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
12927#else
12928 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
12929#endif
12930 }
12931 return pyobj;
12932}
12933
12934
12935static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj;
12937 wxPyArtProvider *result;
12938 char *kwnames[] = {
12939 NULL
12940 };
12941
12942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
12943 {
12944 PyThreadState* __tstate = wxPyBeginAllowThreads();
12945 result = (wxPyArtProvider *)new wxPyArtProvider();
12946
12947 wxPyEndAllowThreads(__tstate);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1);
12951 return resultobj;
12952 fail:
12953 return NULL;
12954}
12955
12956
d14a1e28
RD
12957static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj;
12959 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
12960 PyObject *arg2 = (PyObject *) 0 ;
12961 PyObject *arg3 = (PyObject *) 0 ;
12962 PyObject * obj0 = 0 ;
12963 PyObject * obj1 = 0 ;
12964 PyObject * obj2 = 0 ;
12965 char *kwnames[] = {
12966 (char *) "self",(char *) "self",(char *) "_class", NULL
12967 };
12968
12969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
12970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12971 arg2 = obj1;
12972 arg3 = obj2;
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 (arg1)->_setCallbackInfo(arg2,arg3);
12976
12977 wxPyEndAllowThreads(__tstate);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 Py_INCREF(Py_None); resultobj = Py_None;
12981 return resultobj;
12982 fail:
12983 return NULL;
12984}
12985
12986
12987static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
12988 PyObject *resultobj;
12989 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
12990 PyObject * obj0 = 0 ;
12991 char *kwnames[] = {
12992 (char *) "provider", NULL
12993 };
12994
12995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
12996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12997 {
12998 PyThreadState* __tstate = wxPyBeginAllowThreads();
12999 wxPyArtProvider::PushProvider(arg1);
13000
13001 wxPyEndAllowThreads(__tstate);
13002 if (PyErr_Occurred()) SWIG_fail;
13003 }
13004 Py_INCREF(Py_None); resultobj = Py_None;
13005 return resultobj;
13006 fail:
13007 return NULL;
13008}
13009
13010
13011static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
13012 PyObject *resultobj;
13013 bool result;
13014 char *kwnames[] = {
13015 NULL
13016 };
13017
13018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
13019 {
13020 PyThreadState* __tstate = wxPyBeginAllowThreads();
13021 result = (bool)wxPyArtProvider::PopProvider();
13022
13023 wxPyEndAllowThreads(__tstate);
13024 if (PyErr_Occurred()) SWIG_fail;
13025 }
13026 resultobj = PyInt_FromLong((long)result);
13027 return resultobj;
13028 fail:
13029 return NULL;
13030}
13031
13032
13033static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
13034 PyObject *resultobj;
13035 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
13036 bool result;
13037 PyObject * obj0 = 0 ;
13038 char *kwnames[] = {
13039 (char *) "provider", NULL
13040 };
13041
13042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
13043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13044 {
13045 PyThreadState* __tstate = wxPyBeginAllowThreads();
13046 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
13047
13048 wxPyEndAllowThreads(__tstate);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 resultobj = PyInt_FromLong((long)result);
13052 return resultobj;
13053 fail:
13054 return NULL;
13055}
13056
13057
13058static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13059 PyObject *resultobj;
13060 wxString *arg1 = 0 ;
13061 wxString const &arg2_defvalue = wxPyART_OTHER ;
13062 wxString *arg2 = (wxString *) &arg2_defvalue ;
13063 wxSize const &arg3_defvalue = wxDefaultSize ;
13064 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
13065 wxBitmap result;
e811c8ce
RD
13066 bool temp1 = False ;
13067 bool temp2 = False ;
d14a1e28
RD
13068 wxSize temp3 ;
13069 PyObject * obj0 = 0 ;
13070 PyObject * obj1 = 0 ;
13071 PyObject * obj2 = 0 ;
13072 char *kwnames[] = {
13073 (char *) "id",(char *) "client",(char *) "size", NULL
13074 };
13075
13076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13077 {
13078 arg1 = wxString_in_helper(obj0);
13079 if (arg1 == NULL) SWIG_fail;
e811c8ce 13080 temp1 = True;
d14a1e28
RD
13081 }
13082 if (obj1) {
13083 {
13084 arg2 = wxString_in_helper(obj1);
13085 if (arg2 == NULL) SWIG_fail;
e811c8ce 13086 temp2 = True;
d14a1e28
RD
13087 }
13088 }
13089 if (obj2) {
13090 {
13091 arg3 = &temp3;
13092 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13093 }
13094 }
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 {
13103 wxBitmap * resultptr;
13104 resultptr = new wxBitmap((wxBitmap &) result);
13105 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
13106 }
13107 {
13108 if (temp1)
13109 delete arg1;
13110 }
13111 {
13112 if (temp2)
13113 delete arg2;
13114 }
13115 return resultobj;
13116 fail:
13117 {
13118 if (temp1)
13119 delete arg1;
13120 }
13121 {
13122 if (temp2)
13123 delete arg2;
13124 }
13125 return NULL;
13126}
13127
13128
13129static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxString *arg1 = 0 ;
13132 wxString const &arg2_defvalue = wxPyART_OTHER ;
13133 wxString *arg2 = (wxString *) &arg2_defvalue ;
13134 wxSize const &arg3_defvalue = wxDefaultSize ;
13135 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
13136 wxIcon result;
e811c8ce
RD
13137 bool temp1 = False ;
13138 bool temp2 = False ;
d14a1e28
RD
13139 wxSize temp3 ;
13140 PyObject * obj0 = 0 ;
13141 PyObject * obj1 = 0 ;
13142 PyObject * obj2 = 0 ;
13143 char *kwnames[] = {
13144 (char *) "id",(char *) "client",(char *) "size", NULL
13145 };
13146
13147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13148 {
13149 arg1 = wxString_in_helper(obj0);
13150 if (arg1 == NULL) SWIG_fail;
e811c8ce 13151 temp1 = True;
d14a1e28
RD
13152 }
13153 if (obj1) {
13154 {
13155 arg2 = wxString_in_helper(obj1);
13156 if (arg2 == NULL) SWIG_fail;
e811c8ce 13157 temp2 = True;
d14a1e28
RD
13158 }
13159 }
13160 if (obj2) {
13161 {
13162 arg3 = &temp3;
13163 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
13164 }
13165 }
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
13169
13170 wxPyEndAllowThreads(__tstate);
13171 if (PyErr_Occurred()) SWIG_fail;
13172 }
13173 {
13174 wxIcon * resultptr;
13175 resultptr = new wxIcon((wxIcon &) result);
13176 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1);
13177 }
13178 {
13179 if (temp1)
13180 delete arg1;
13181 }
13182 {
13183 if (temp2)
13184 delete arg2;
13185 }
13186 return resultobj;
13187 fail:
13188 {
13189 if (temp1)
13190 delete arg1;
13191 }
13192 {
13193 if (temp2)
13194 delete arg2;
13195 }
13196 return NULL;
13197}
13198
13199
1e0c8722
RD
13200static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
13201 PyObject *resultobj;
13202 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
13203 PyObject * obj0 = 0 ;
13204 char *kwnames[] = {
13205 (char *) "self", NULL
13206 };
13207
13208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
13209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13210 {
13211 PyThreadState* __tstate = wxPyBeginAllowThreads();
13212 wxPyArtProvider_Destroy(arg1);
13213
13214 wxPyEndAllowThreads(__tstate);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 Py_INCREF(Py_None); resultobj = Py_None;
13218 return resultobj;
13219 fail:
13220 return NULL;
13221}
13222
13223
d14a1e28
RD
13224static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
13225 PyObject *obj;
13226 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13227 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
13228 Py_INCREF(obj);
13229 return Py_BuildValue((char *)"");
13230}
13231static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
13232 PyObject *resultobj;
13233 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13234 PyObject * obj0 = 0 ;
13235 char *kwnames[] = {
13236 (char *) "self", NULL
13237 };
13238
13239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
13240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13241 {
13242 PyThreadState* __tstate = wxPyBeginAllowThreads();
13243 delete arg1;
13244
13245 wxPyEndAllowThreads(__tstate);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 }
13248 Py_INCREF(Py_None); resultobj = Py_None;
13249 return resultobj;
13250 fail:
13251 return NULL;
13252}
13253
13254
13255static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
13256 PyObject *resultobj;
13257 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13258 wxConfigBase *result;
13259 PyObject * obj0 = 0 ;
13260 char *kwnames[] = {
13261 (char *) "pConfig", NULL
13262 };
13263
13264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
13265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (wxConfigBase *)wxConfigBase::Set(arg1);
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
13274 return resultobj;
13275 fail:
13276 return NULL;
13277}
13278
13279
13280static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
13281 PyObject *resultobj;
e811c8ce 13282 bool arg1 = (bool) True ;
d14a1e28
RD
13283 wxConfigBase *result;
13284 PyObject * obj0 = 0 ;
13285 char *kwnames[] = {
13286 (char *) "createOnDemand", NULL
13287 };
13288
13289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
13290 if (obj0) {
13291 arg1 = PyInt_AsLong(obj0) ? true : false;
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
13294 {
13295 PyThreadState* __tstate = wxPyBeginAllowThreads();
13296 result = (wxConfigBase *)wxConfigBase::Get(arg1);
13297
13298 wxPyEndAllowThreads(__tstate);
13299 if (PyErr_Occurred()) SWIG_fail;
13300 }
13301 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
13302 return resultobj;
13303 fail:
13304 return NULL;
13305}
13306
13307
13308static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
13309 PyObject *resultobj;
13310 wxConfigBase *result;
13311 char *kwnames[] = {
13312 NULL
13313 };
13314
13315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
13316 {
13317 PyThreadState* __tstate = wxPyBeginAllowThreads();
13318 result = (wxConfigBase *)wxConfigBase::Create();
13319
13320 wxPyEndAllowThreads(__tstate);
13321 if (PyErr_Occurred()) SWIG_fail;
13322 }
13323 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0);
13324 return resultobj;
13325 fail:
13326 return NULL;
13327}
13328
13329
13330static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
13331 PyObject *resultobj;
13332 char *kwnames[] = {
13333 NULL
13334 };
13335
13336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 wxConfigBase::DontCreateOnDemand();
13340
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 Py_INCREF(Py_None); resultobj = Py_None;
13345 return resultobj;
13346 fail:
13347 return NULL;
13348}
13349
13350
13351static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
13352 PyObject *resultobj;
13353 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13354 wxString *arg2 = 0 ;
e811c8ce 13355 bool temp2 = False ;
d14a1e28
RD
13356 PyObject * obj0 = 0 ;
13357 PyObject * obj1 = 0 ;
13358 char *kwnames[] = {
13359 (char *) "self",(char *) "strPath", NULL
13360 };
13361
13362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
13363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13364 {
13365 arg2 = wxString_in_helper(obj1);
13366 if (arg2 == NULL) SWIG_fail;
e811c8ce 13367 temp2 = True;
d14a1e28
RD
13368 }
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 (arg1)->SetPath((wxString const &)*arg2);
13372
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 Py_INCREF(Py_None); resultobj = Py_None;
13377 {
13378 if (temp2)
13379 delete arg2;
13380 }
13381 return resultobj;
13382 fail:
13383 {
13384 if (temp2)
13385 delete arg2;
13386 }
13387 return NULL;
13388}
13389
13390
13391static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj;
13393 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13394 wxString *result;
13395 PyObject * obj0 = 0 ;
13396 char *kwnames[] = {
13397 (char *) "self", NULL
13398 };
13399
13400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
13401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 {
13405 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
13406 result = (wxString *) &_result_ref;
13407 }
13408
13409 wxPyEndAllowThreads(__tstate);
13410 if (PyErr_Occurred()) SWIG_fail;
13411 }
cc6dd355
RD
13412 {
13413#if wxUSE_UNICODE
13414 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13415#else
13416 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13417#endif
13418 }
d14a1e28
RD
13419 return resultobj;
13420 fail:
13421 return NULL;
13422}
13423
13424
13425static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
13426 PyObject *resultobj;
13427 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13428 PyObject *result;
13429 PyObject * obj0 = 0 ;
13430 char *kwnames[] = {
13431 (char *) "self", NULL
13432 };
13433
13434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
13435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
13439
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 resultobj = result;
13444 return resultobj;
13445 fail:
13446 return NULL;
13447}
13448
13449
13450static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
13451 PyObject *resultobj;
13452 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13453 long arg2 ;
13454 PyObject *result;
13455 PyObject * obj0 = 0 ;
13456 char *kwnames[] = {
13457 (char *) "self",(char *) "index", NULL
13458 };
13459
13460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextGroup",kwnames,&obj0,&arg2)) goto fail;
13461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13462 {
13463 PyThreadState* __tstate = wxPyBeginAllowThreads();
13464 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
13465
13466 wxPyEndAllowThreads(__tstate);
13467 if (PyErr_Occurred()) SWIG_fail;
13468 }
13469 resultobj = result;
13470 return resultobj;
13471 fail:
13472 return NULL;
13473}
13474
13475
13476static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
13477 PyObject *resultobj;
13478 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13479 PyObject *result;
13480 PyObject * obj0 = 0 ;
13481 char *kwnames[] = {
13482 (char *) "self", NULL
13483 };
13484
13485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
13486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13487 {
13488 PyThreadState* __tstate = wxPyBeginAllowThreads();
13489 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
13490
13491 wxPyEndAllowThreads(__tstate);
13492 if (PyErr_Occurred()) SWIG_fail;
13493 }
13494 resultobj = result;
13495 return resultobj;
13496 fail:
13497 return NULL;
13498}
13499
13500
13501static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
13502 PyObject *resultobj;
13503 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13504 long arg2 ;
13505 PyObject *result;
13506 PyObject * obj0 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "self",(char *) "index", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextEntry",kwnames,&obj0,&arg2)) goto fail;
13512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
13516
13517 wxPyEndAllowThreads(__tstate);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 }
13520 resultobj = result;
13521 return resultobj;
13522 fail:
13523 return NULL;
13524}
13525
13526
13527static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
13528 PyObject *resultobj;
13529 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 13530 bool arg2 = (bool) False ;
d14a1e28
RD
13531 size_t result;
13532 PyObject * obj0 = 0 ;
13533 PyObject * obj1 = 0 ;
13534 char *kwnames[] = {
13535 (char *) "self",(char *) "bRecursive", NULL
13536 };
13537
13538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
13539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13540 if (obj1) {
13541 arg2 = PyInt_AsLong(obj1) ? true : false;
13542 if (PyErr_Occurred()) SWIG_fail;
13543 }
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
13547
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 resultobj = PyInt_FromLong((long)result);
13552 return resultobj;
13553 fail:
13554 return NULL;
13555}
13556
13557
13558static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
13559 PyObject *resultobj;
13560 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 13561 bool arg2 = (bool) False ;
d14a1e28
RD
13562 size_t result;
13563 PyObject * obj0 = 0 ;
13564 PyObject * obj1 = 0 ;
13565 char *kwnames[] = {
13566 (char *) "self",(char *) "bRecursive", NULL
13567 };
13568
13569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
13570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13571 if (obj1) {
13572 arg2 = PyInt_AsLong(obj1) ? true : false;
13573 if (PyErr_Occurred()) SWIG_fail;
13574 }
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
13578
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 resultobj = PyInt_FromLong((long)result);
13583 return resultobj;
13584 fail:
13585 return NULL;
13586}
13587
13588
13589static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
13590 PyObject *resultobj;
13591 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13592 wxString *arg2 = 0 ;
13593 bool result;
e811c8ce 13594 bool temp2 = False ;
d14a1e28
RD
13595 PyObject * obj0 = 0 ;
13596 PyObject * obj1 = 0 ;
13597 char *kwnames[] = {
13598 (char *) "self",(char *) "strName", NULL
13599 };
13600
13601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
13602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13603 {
13604 arg2 = wxString_in_helper(obj1);
13605 if (arg2 == NULL) SWIG_fail;
e811c8ce 13606 temp2 = True;
d14a1e28
RD
13607 }
13608 {
13609 PyThreadState* __tstate = wxPyBeginAllowThreads();
13610 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
13611
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 resultobj = PyInt_FromLong((long)result);
13616 {
13617 if (temp2)
13618 delete arg2;
13619 }
13620 return resultobj;
13621 fail:
13622 {
13623 if (temp2)
13624 delete arg2;
13625 }
13626 return NULL;
13627}
13628
13629
13630static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
13631 PyObject *resultobj;
13632 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13633 wxString *arg2 = 0 ;
13634 bool result;
e811c8ce 13635 bool temp2 = False ;
d14a1e28
RD
13636 PyObject * obj0 = 0 ;
13637 PyObject * obj1 = 0 ;
13638 char *kwnames[] = {
13639 (char *) "self",(char *) "strName", NULL
13640 };
13641
13642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
13643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13644 {
13645 arg2 = wxString_in_helper(obj1);
13646 if (arg2 == NULL) SWIG_fail;
e811c8ce 13647 temp2 = True;
d14a1e28
RD
13648 }
13649 {
13650 PyThreadState* __tstate = wxPyBeginAllowThreads();
13651 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
13652
13653 wxPyEndAllowThreads(__tstate);
13654 if (PyErr_Occurred()) SWIG_fail;
13655 }
13656 resultobj = PyInt_FromLong((long)result);
13657 {
13658 if (temp2)
13659 delete arg2;
13660 }
13661 return resultobj;
13662 fail:
13663 {
13664 if (temp2)
13665 delete arg2;
13666 }
13667 return NULL;
13668}
13669
13670
13671static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
13672 PyObject *resultobj;
13673 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13674 wxString *arg2 = 0 ;
13675 bool result;
e811c8ce 13676 bool temp2 = False ;
d14a1e28
RD
13677 PyObject * obj0 = 0 ;
13678 PyObject * obj1 = 0 ;
13679 char *kwnames[] = {
13680 (char *) "self",(char *) "strName", NULL
13681 };
13682
13683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
13684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13685 {
13686 arg2 = wxString_in_helper(obj1);
13687 if (arg2 == NULL) SWIG_fail;
e811c8ce 13688 temp2 = True;
d14a1e28
RD
13689 }
13690 {
13691 PyThreadState* __tstate = wxPyBeginAllowThreads();
13692 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
13693
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 resultobj = PyInt_FromLong((long)result);
13698 {
13699 if (temp2)
13700 delete arg2;
13701 }
13702 return resultobj;
13703 fail:
13704 {
13705 if (temp2)
13706 delete arg2;
13707 }
13708 return NULL;
13709}
13710
13711
13712static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13715 wxString *arg2 = 0 ;
13716 int result;
e811c8ce 13717 bool temp2 = False ;
d14a1e28
RD
13718 PyObject * obj0 = 0 ;
13719 PyObject * obj1 = 0 ;
13720 char *kwnames[] = {
13721 (char *) "self",(char *) "name", NULL
13722 };
13723
13724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
13725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13726 {
13727 arg2 = wxString_in_helper(obj1);
13728 if (arg2 == NULL) SWIG_fail;
e811c8ce 13729 temp2 = True;
d14a1e28
RD
13730 }
13731 {
13732 PyThreadState* __tstate = wxPyBeginAllowThreads();
13733 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
13734
13735 wxPyEndAllowThreads(__tstate);
13736 if (PyErr_Occurred()) SWIG_fail;
13737 }
13738 resultobj = PyInt_FromLong((long)result);
13739 {
13740 if (temp2)
13741 delete arg2;
13742 }
13743 return resultobj;
13744 fail:
13745 {
13746 if (temp2)
13747 delete arg2;
13748 }
13749 return NULL;
13750}
13751
13752
13753static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
13754 PyObject *resultobj;
13755 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13756 wxString *arg2 = 0 ;
13757 wxString const &arg3_defvalue = wxPyEmptyString ;
13758 wxString *arg3 = (wxString *) &arg3_defvalue ;
13759 wxString result;
e811c8ce
RD
13760 bool temp2 = False ;
13761 bool temp3 = False ;
d14a1e28
RD
13762 PyObject * obj0 = 0 ;
13763 PyObject * obj1 = 0 ;
13764 PyObject * obj2 = 0 ;
13765 char *kwnames[] = {
13766 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
13767 };
13768
13769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
13770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13771 {
13772 arg2 = wxString_in_helper(obj1);
13773 if (arg2 == NULL) SWIG_fail;
e811c8ce 13774 temp2 = True;
d14a1e28
RD
13775 }
13776 if (obj2) {
13777 {
13778 arg3 = wxString_in_helper(obj2);
13779 if (arg3 == NULL) SWIG_fail;
e811c8ce 13780 temp3 = True;
d14a1e28
RD
13781 }
13782 }
13783 {
13784 PyThreadState* __tstate = wxPyBeginAllowThreads();
13785 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
13786
13787 wxPyEndAllowThreads(__tstate);
13788 if (PyErr_Occurred()) SWIG_fail;
13789 }
13790 {
13791#if wxUSE_UNICODE
13792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13793#else
13794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13795#endif
13796 }
13797 {
13798 if (temp2)
13799 delete arg2;
13800 }
13801 {
13802 if (temp3)
13803 delete arg3;
13804 }
13805 return resultobj;
13806 fail:
13807 {
13808 if (temp2)
13809 delete arg2;
13810 }
13811 {
13812 if (temp3)
13813 delete arg3;
13814 }
13815 return NULL;
13816}
13817
13818
13819static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13820 PyObject *resultobj;
13821 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13822 wxString *arg2 = 0 ;
13823 long arg3 = (long) 0 ;
13824 long result;
e811c8ce 13825 bool temp2 = False ;
d14a1e28
RD
13826 PyObject * obj0 = 0 ;
13827 PyObject * obj1 = 0 ;
13828 char *kwnames[] = {
13829 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
13830 };
13831
13832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&arg3)) goto fail;
13833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13834 {
13835 arg2 = wxString_in_helper(obj1);
13836 if (arg2 == NULL) SWIG_fail;
e811c8ce 13837 temp2 = True;
d14a1e28
RD
13838 }
13839 {
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
13842
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = PyInt_FromLong((long)result);
13847 {
13848 if (temp2)
13849 delete arg2;
13850 }
13851 return resultobj;
13852 fail:
13853 {
13854 if (temp2)
13855 delete arg2;
13856 }
13857 return NULL;
13858}
13859
13860
13861static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj;
13863 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13864 wxString *arg2 = 0 ;
13865 double arg3 = (double) 0.0 ;
13866 double result;
e811c8ce 13867 bool temp2 = False ;
d14a1e28
RD
13868 PyObject * obj0 = 0 ;
13869 PyObject * obj1 = 0 ;
13870 char *kwnames[] = {
13871 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
13872 };
13873
13874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|d:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&arg3)) goto fail;
13875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13876 {
13877 arg2 = wxString_in_helper(obj1);
13878 if (arg2 == NULL) SWIG_fail;
e811c8ce 13879 temp2 = True;
d14a1e28
RD
13880 }
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
13884
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 resultobj = PyFloat_FromDouble(result);
13889 {
13890 if (temp2)
13891 delete arg2;
13892 }
13893 return resultobj;
13894 fail:
13895 {
13896 if (temp2)
13897 delete arg2;
13898 }
13899 return NULL;
13900}
13901
13902
13903static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
13904 PyObject *resultobj;
13905 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13906 wxString *arg2 = 0 ;
e811c8ce 13907 bool arg3 = (bool) False ;
d14a1e28 13908 bool result;
e811c8ce 13909 bool temp2 = False ;
d14a1e28
RD
13910 PyObject * obj0 = 0 ;
13911 PyObject * obj1 = 0 ;
13912 PyObject * obj2 = 0 ;
13913 char *kwnames[] = {
13914 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
13915 };
13916
13917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
13918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13919 {
13920 arg2 = wxString_in_helper(obj1);
13921 if (arg2 == NULL) SWIG_fail;
e811c8ce 13922 temp2 = True;
d14a1e28
RD
13923 }
13924 if (obj2) {
13925 arg3 = PyInt_AsLong(obj2) ? true : false;
13926 if (PyErr_Occurred()) SWIG_fail;
13927 }
13928 {
13929 PyThreadState* __tstate = wxPyBeginAllowThreads();
13930 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
13931
13932 wxPyEndAllowThreads(__tstate);
13933 if (PyErr_Occurred()) SWIG_fail;
13934 }
13935 resultobj = PyInt_FromLong((long)result);
13936 {
13937 if (temp2)
13938 delete arg2;
13939 }
13940 return resultobj;
13941 fail:
13942 {
13943 if (temp2)
13944 delete arg2;
13945 }
13946 return NULL;
13947}
13948
13949
13950static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
13951 PyObject *resultobj;
13952 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
13953 wxString *arg2 = 0 ;
13954 wxString *arg3 = 0 ;
13955 bool result;
e811c8ce
RD
13956 bool temp2 = False ;
13957 bool temp3 = False ;
d14a1e28
RD
13958 PyObject * obj0 = 0 ;
13959 PyObject * obj1 = 0 ;
13960 PyObject * obj2 = 0 ;
13961 char *kwnames[] = {
13962 (char *) "self",(char *) "key",(char *) "value", NULL
13963 };
13964
13965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
13966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13967 {
13968 arg2 = wxString_in_helper(obj1);
13969 if (arg2 == NULL) SWIG_fail;
e811c8ce 13970 temp2 = True;
d14a1e28
RD
13971 }
13972 {
13973 arg3 = wxString_in_helper(obj2);
13974 if (arg3 == NULL) SWIG_fail;
e811c8ce 13975 temp3 = True;
d14a1e28
RD
13976 }
13977 {
13978 PyThreadState* __tstate = wxPyBeginAllowThreads();
13979 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
13980
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 resultobj = PyInt_FromLong((long)result);
13985 {
13986 if (temp2)
13987 delete arg2;
13988 }
13989 {
13990 if (temp3)
13991 delete arg3;
13992 }
13993 return resultobj;
13994 fail:
13995 {
13996 if (temp2)
13997 delete arg2;
13998 }
13999 {
14000 if (temp3)
14001 delete arg3;
14002 }
14003 return NULL;
14004}
14005
14006
14007static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
14008 PyObject *resultobj;
14009 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14010 wxString *arg2 = 0 ;
14011 long arg3 ;
14012 bool result;
e811c8ce 14013 bool temp2 = False ;
d14a1e28
RD
14014 PyObject * obj0 = 0 ;
14015 PyObject * obj1 = 0 ;
14016 char *kwnames[] = {
14017 (char *) "self",(char *) "key",(char *) "value", NULL
14018 };
14019
14020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&arg3)) goto fail;
14021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14022 {
14023 arg2 = wxString_in_helper(obj1);
14024 if (arg2 == NULL) SWIG_fail;
e811c8ce 14025 temp2 = True;
d14a1e28
RD
14026 }
14027 {
14028 PyThreadState* __tstate = wxPyBeginAllowThreads();
14029 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
14030
14031 wxPyEndAllowThreads(__tstate);
14032 if (PyErr_Occurred()) SWIG_fail;
14033 }
14034 resultobj = PyInt_FromLong((long)result);
14035 {
14036 if (temp2)
14037 delete arg2;
14038 }
14039 return resultobj;
14040 fail:
14041 {
14042 if (temp2)
14043 delete arg2;
14044 }
14045 return NULL;
14046}
14047
14048
14049static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
14050 PyObject *resultobj;
14051 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14052 wxString *arg2 = 0 ;
14053 double arg3 ;
14054 bool result;
e811c8ce 14055 bool temp2 = False ;
d14a1e28
RD
14056 PyObject * obj0 = 0 ;
14057 PyObject * obj1 = 0 ;
14058 char *kwnames[] = {
14059 (char *) "self",(char *) "key",(char *) "value", NULL
14060 };
14061
14062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&arg3)) goto fail;
14063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14064 {
14065 arg2 = wxString_in_helper(obj1);
14066 if (arg2 == NULL) SWIG_fail;
e811c8ce 14067 temp2 = True;
d14a1e28
RD
14068 }
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
14072
14073 wxPyEndAllowThreads(__tstate);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 }
14076 resultobj = PyInt_FromLong((long)result);
14077 {
14078 if (temp2)
14079 delete arg2;
14080 }
14081 return resultobj;
14082 fail:
14083 {
14084 if (temp2)
14085 delete arg2;
14086 }
14087 return NULL;
14088}
14089
14090
14091static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
14092 PyObject *resultobj;
14093 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14094 wxString *arg2 = 0 ;
14095 bool arg3 ;
14096 bool result;
e811c8ce 14097 bool temp2 = False ;
d14a1e28
RD
14098 PyObject * obj0 = 0 ;
14099 PyObject * obj1 = 0 ;
14100 PyObject * obj2 = 0 ;
14101 char *kwnames[] = {
14102 (char *) "self",(char *) "key",(char *) "value", NULL
14103 };
14104
14105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
14106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14107 {
14108 arg2 = wxString_in_helper(obj1);
14109 if (arg2 == NULL) SWIG_fail;
e811c8ce 14110 temp2 = True;
d14a1e28
RD
14111 }
14112 arg3 = PyInt_AsLong(obj2) ? true : false;
14113 if (PyErr_Occurred()) SWIG_fail;
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
14117
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 resultobj = PyInt_FromLong((long)result);
14122 {
14123 if (temp2)
14124 delete arg2;
14125 }
14126 return resultobj;
14127 fail:
14128 {
14129 if (temp2)
14130 delete arg2;
14131 }
14132 return NULL;
14133}
14134
14135
14136static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
14137 PyObject *resultobj;
14138 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 14139 bool arg2 = (bool) False ;
d14a1e28
RD
14140 bool result;
14141 PyObject * obj0 = 0 ;
14142 PyObject * obj1 = 0 ;
14143 char *kwnames[] = {
14144 (char *) "self",(char *) "bCurrentOnly", NULL
14145 };
14146
14147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
14148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14149 if (obj1) {
14150 arg2 = PyInt_AsLong(obj1) ? true : false;
14151 if (PyErr_Occurred()) SWIG_fail;
14152 }
14153 {
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 result = (bool)(arg1)->Flush(arg2);
14156
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 resultobj = PyInt_FromLong((long)result);
14161 return resultobj;
14162 fail:
14163 return NULL;
14164}
14165
14166
14167static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14168 PyObject *resultobj;
14169 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14170 wxString *arg2 = 0 ;
14171 wxString *arg3 = 0 ;
14172 bool result;
e811c8ce
RD
14173 bool temp2 = False ;
14174 bool temp3 = False ;
d14a1e28
RD
14175 PyObject * obj0 = 0 ;
14176 PyObject * obj1 = 0 ;
14177 PyObject * obj2 = 0 ;
14178 char *kwnames[] = {
14179 (char *) "self",(char *) "oldName",(char *) "newName", NULL
14180 };
14181
14182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
14183 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14184 {
14185 arg2 = wxString_in_helper(obj1);
14186 if (arg2 == NULL) SWIG_fail;
e811c8ce 14187 temp2 = True;
d14a1e28
RD
14188 }
14189 {
14190 arg3 = wxString_in_helper(obj2);
14191 if (arg3 == NULL) SWIG_fail;
e811c8ce 14192 temp3 = True;
d14a1e28
RD
14193 }
14194 {
14195 PyThreadState* __tstate = wxPyBeginAllowThreads();
14196 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
14197
14198 wxPyEndAllowThreads(__tstate);
14199 if (PyErr_Occurred()) SWIG_fail;
14200 }
14201 resultobj = PyInt_FromLong((long)result);
14202 {
14203 if (temp2)
14204 delete arg2;
14205 }
14206 {
14207 if (temp3)
14208 delete arg3;
14209 }
14210 return resultobj;
14211 fail:
14212 {
14213 if (temp2)
14214 delete arg2;
14215 }
14216 {
14217 if (temp3)
14218 delete arg3;
14219 }
14220 return NULL;
14221}
14222
14223
14224static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14225 PyObject *resultobj;
14226 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14227 wxString *arg2 = 0 ;
14228 wxString *arg3 = 0 ;
14229 bool result;
e811c8ce
RD
14230 bool temp2 = False ;
14231 bool temp3 = False ;
d14a1e28
RD
14232 PyObject * obj0 = 0 ;
14233 PyObject * obj1 = 0 ;
14234 PyObject * obj2 = 0 ;
14235 char *kwnames[] = {
14236 (char *) "self",(char *) "oldName",(char *) "newName", NULL
14237 };
14238
14239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
14240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14241 {
14242 arg2 = wxString_in_helper(obj1);
14243 if (arg2 == NULL) SWIG_fail;
e811c8ce 14244 temp2 = True;
d14a1e28
RD
14245 }
14246 {
14247 arg3 = wxString_in_helper(obj2);
14248 if (arg3 == NULL) SWIG_fail;
e811c8ce 14249 temp3 = True;
d14a1e28
RD
14250 }
14251 {
14252 PyThreadState* __tstate = wxPyBeginAllowThreads();
14253 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
14254
14255 wxPyEndAllowThreads(__tstate);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 }
14258 resultobj = PyInt_FromLong((long)result);
14259 {
14260 if (temp2)
14261 delete arg2;
14262 }
14263 {
14264 if (temp3)
14265 delete arg3;
14266 }
14267 return resultobj;
14268 fail:
14269 {
14270 if (temp2)
14271 delete arg2;
14272 }
14273 {
14274 if (temp3)
14275 delete arg3;
14276 }
14277 return NULL;
14278}
14279
14280
14281static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14282 PyObject *resultobj;
14283 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14284 wxString *arg2 = 0 ;
e811c8ce 14285 bool arg3 = (bool) True ;
d14a1e28 14286 bool result;
e811c8ce 14287 bool temp2 = False ;
d14a1e28
RD
14288 PyObject * obj0 = 0 ;
14289 PyObject * obj1 = 0 ;
14290 PyObject * obj2 = 0 ;
14291 char *kwnames[] = {
14292 (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL
14293 };
14294
14295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
14296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14297 {
14298 arg2 = wxString_in_helper(obj1);
14299 if (arg2 == NULL) SWIG_fail;
e811c8ce 14300 temp2 = True;
d14a1e28
RD
14301 }
14302 if (obj2) {
14303 arg3 = PyInt_AsLong(obj2) ? true : false;
14304 if (PyErr_Occurred()) SWIG_fail;
14305 }
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
14309
14310 wxPyEndAllowThreads(__tstate);
14311 if (PyErr_Occurred()) SWIG_fail;
14312 }
14313 resultobj = PyInt_FromLong((long)result);
14314 {
14315 if (temp2)
14316 delete arg2;
14317 }
14318 return resultobj;
14319 fail:
14320 {
14321 if (temp2)
14322 delete arg2;
14323 }
14324 return NULL;
14325}
14326
14327
14328static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14329 PyObject *resultobj;
14330 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14331 wxString *arg2 = 0 ;
14332 bool result;
e811c8ce 14333 bool temp2 = False ;
d14a1e28
RD
14334 PyObject * obj0 = 0 ;
14335 PyObject * obj1 = 0 ;
14336 char *kwnames[] = {
14337 (char *) "self",(char *) "key", NULL
14338 };
14339
14340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
14341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14342 {
14343 arg2 = wxString_in_helper(obj1);
14344 if (arg2 == NULL) SWIG_fail;
e811c8ce 14345 temp2 = True;
d14a1e28
RD
14346 }
14347 {
14348 PyThreadState* __tstate = wxPyBeginAllowThreads();
14349 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
14350
14351 wxPyEndAllowThreads(__tstate);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 }
14354 resultobj = PyInt_FromLong((long)result);
14355 {
14356 if (temp2)
14357 delete arg2;
14358 }
14359 return resultobj;
14360 fail:
14361 {
14362 if (temp2)
14363 delete arg2;
14364 }
14365 return NULL;
14366}
14367
14368
14369static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
14370 PyObject *resultobj;
14371 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14372 bool result;
14373 PyObject * obj0 = 0 ;
14374 char *kwnames[] = {
14375 (char *) "self", NULL
14376 };
14377
14378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
14379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14380 {
14381 PyThreadState* __tstate = wxPyBeginAllowThreads();
14382 result = (bool)(arg1)->DeleteAll();
14383
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 resultobj = PyInt_FromLong((long)result);
14388 return resultobj;
14389 fail:
14390 return NULL;
14391}
14392
14393
14394static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
14395 PyObject *resultobj;
14396 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14397 bool result;
14398 PyObject * obj0 = 0 ;
14399 char *kwnames[] = {
14400 (char *) "self", NULL
14401 };
14402
14403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
14404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14405 {
14406 PyThreadState* __tstate = wxPyBeginAllowThreads();
14407 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
14408
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 resultobj = PyInt_FromLong((long)result);
14413 return resultobj;
14414 fail:
14415 return NULL;
14416}
14417
14418
14419static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
14420 PyObject *resultobj;
14421 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 14422 bool arg2 = (bool) True ;
d14a1e28
RD
14423 PyObject * obj0 = 0 ;
14424 PyObject * obj1 = 0 ;
14425 char *kwnames[] = {
14426 (char *) "self",(char *) "bDoIt", NULL
14427 };
14428
14429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
14430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14431 if (obj1) {
14432 arg2 = PyInt_AsLong(obj1) ? true : false;
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 {
14436 PyThreadState* __tstate = wxPyBeginAllowThreads();
14437 (arg1)->SetExpandEnvVars(arg2);
14438
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 Py_INCREF(Py_None); resultobj = Py_None;
14443 return resultobj;
14444 fail:
14445 return NULL;
14446}
14447
14448
14449static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
14450 PyObject *resultobj;
14451 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
e811c8ce 14452 bool arg2 = (bool) True ;
d14a1e28
RD
14453 PyObject * obj0 = 0 ;
14454 PyObject * obj1 = 0 ;
14455 char *kwnames[] = {
14456 (char *) "self",(char *) "bDoIt", NULL
14457 };
14458
14459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
14460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14461 if (obj1) {
14462 arg2 = PyInt_AsLong(obj1) ? true : false;
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 {
14466 PyThreadState* __tstate = wxPyBeginAllowThreads();
14467 (arg1)->SetRecordDefaults(arg2);
14468
14469 wxPyEndAllowThreads(__tstate);
14470 if (PyErr_Occurred()) SWIG_fail;
14471 }
14472 Py_INCREF(Py_None); resultobj = Py_None;
14473 return resultobj;
14474 fail:
14475 return NULL;
14476}
14477
14478
14479static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
14480 PyObject *resultobj;
14481 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14482 bool result;
14483 PyObject * obj0 = 0 ;
14484 char *kwnames[] = {
14485 (char *) "self", NULL
14486 };
14487
14488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
14489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
14493
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 resultobj = PyInt_FromLong((long)result);
14498 return resultobj;
14499 fail:
14500 return NULL;
14501}
14502
14503
14504static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
14505 PyObject *resultobj;
14506 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14507 wxString *arg2 = 0 ;
14508 wxString result;
e811c8ce 14509 bool temp2 = False ;
d14a1e28
RD
14510 PyObject * obj0 = 0 ;
14511 PyObject * obj1 = 0 ;
14512 char *kwnames[] = {
14513 (char *) "self",(char *) "str", NULL
14514 };
14515
14516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
14517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14518 {
14519 arg2 = wxString_in_helper(obj1);
14520 if (arg2 == NULL) SWIG_fail;
e811c8ce 14521 temp2 = True;
d14a1e28
RD
14522 }
14523 {
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
14526
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 {
14531#if wxUSE_UNICODE
14532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14533#else
14534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14535#endif
14536 }
14537 {
14538 if (temp2)
14539 delete arg2;
14540 }
14541 return resultobj;
14542 fail:
14543 {
14544 if (temp2)
14545 delete arg2;
14546 }
14547 return NULL;
14548}
14549
14550
14551static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
14552 PyObject *resultobj;
14553 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14554 wxString result;
14555 PyObject * obj0 = 0 ;
14556 char *kwnames[] = {
14557 (char *) "self", NULL
14558 };
14559
14560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
14561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14562 {
14563 PyThreadState* __tstate = wxPyBeginAllowThreads();
14564 result = ((wxConfigBase const *)arg1)->GetAppName();
14565
14566 wxPyEndAllowThreads(__tstate);
14567 if (PyErr_Occurred()) SWIG_fail;
14568 }
14569 {
14570#if wxUSE_UNICODE
14571 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14572#else
14573 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14574#endif
14575 }
14576 return resultobj;
14577 fail:
14578 return NULL;
14579}
14580
14581
14582static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
14583 PyObject *resultobj;
14584 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14585 wxString result;
14586 PyObject * obj0 = 0 ;
14587 char *kwnames[] = {
14588 (char *) "self", NULL
14589 };
14590
14591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
14592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 result = ((wxConfigBase const *)arg1)->GetVendorName();
14596
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 {
14601#if wxUSE_UNICODE
14602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14603#else
14604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14605#endif
14606 }
14607 return resultobj;
14608 fail:
14609 return NULL;
14610}
14611
14612
14613static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
14614 PyObject *resultobj;
14615 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14616 wxString *arg2 = 0 ;
e811c8ce 14617 bool temp2 = False ;
d14a1e28
RD
14618 PyObject * obj0 = 0 ;
14619 PyObject * obj1 = 0 ;
14620 char *kwnames[] = {
14621 (char *) "self",(char *) "appName", NULL
14622 };
14623
14624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
14625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14626 {
14627 arg2 = wxString_in_helper(obj1);
14628 if (arg2 == NULL) SWIG_fail;
e811c8ce 14629 temp2 = True;
d14a1e28
RD
14630 }
14631 {
14632 PyThreadState* __tstate = wxPyBeginAllowThreads();
14633 (arg1)->SetAppName((wxString const &)*arg2);
14634
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 Py_INCREF(Py_None); resultobj = Py_None;
14639 {
14640 if (temp2)
14641 delete arg2;
14642 }
14643 return resultobj;
14644 fail:
14645 {
14646 if (temp2)
14647 delete arg2;
14648 }
14649 return NULL;
14650}
14651
14652
14653static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
14654 PyObject *resultobj;
14655 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14656 wxString *arg2 = 0 ;
e811c8ce 14657 bool temp2 = False ;
d14a1e28
RD
14658 PyObject * obj0 = 0 ;
14659 PyObject * obj1 = 0 ;
14660 char *kwnames[] = {
14661 (char *) "self",(char *) "vendorName", NULL
14662 };
14663
14664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
14665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14666 {
14667 arg2 = wxString_in_helper(obj1);
14668 if (arg2 == NULL) SWIG_fail;
e811c8ce 14669 temp2 = True;
d14a1e28
RD
14670 }
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 (arg1)->SetVendorName((wxString const &)*arg2);
14674
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 Py_INCREF(Py_None); resultobj = Py_None;
14679 {
14680 if (temp2)
14681 delete arg2;
14682 }
14683 return resultobj;
14684 fail:
14685 {
14686 if (temp2)
14687 delete arg2;
14688 }
14689 return NULL;
14690}
14691
14692
14693static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
14694 PyObject *resultobj;
14695 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14696 long arg2 ;
14697 PyObject * obj0 = 0 ;
14698 char *kwnames[] = {
14699 (char *) "self",(char *) "style", NULL
14700 };
14701
14702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_SetStyle",kwnames,&obj0,&arg2)) goto fail;
14703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14704 {
14705 PyThreadState* __tstate = wxPyBeginAllowThreads();
14706 (arg1)->SetStyle(arg2);
14707
14708 wxPyEndAllowThreads(__tstate);
14709 if (PyErr_Occurred()) SWIG_fail;
14710 }
14711 Py_INCREF(Py_None); resultobj = Py_None;
14712 return resultobj;
14713 fail:
14714 return NULL;
14715}
14716
14717
14718static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
14719 PyObject *resultobj;
14720 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14721 long result;
14722 PyObject * obj0 = 0 ;
14723 char *kwnames[] = {
14724 (char *) "self", NULL
14725 };
14726
14727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
14728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14729 {
14730 PyThreadState* __tstate = wxPyBeginAllowThreads();
14731 result = (long)((wxConfigBase const *)arg1)->GetStyle();
14732
14733 wxPyEndAllowThreads(__tstate);
14734 if (PyErr_Occurred()) SWIG_fail;
14735 }
14736 resultobj = PyInt_FromLong((long)result);
14737 return resultobj;
14738 fail:
14739 return NULL;
14740}
14741
14742
14743static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
14744 PyObject *obj;
14745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14746 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
14747 Py_INCREF(obj);
14748 return Py_BuildValue((char *)"");
14749}
14750static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj;
14752 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14753 wxString *arg2 = 0 ;
14754 wxConfigPathChanger *result;
e811c8ce 14755 bool temp2 = False ;
d14a1e28
RD
14756 PyObject * obj0 = 0 ;
14757 PyObject * obj1 = 0 ;
14758 char *kwnames[] = {
14759 (char *) "pContainer",(char *) "strEntry", NULL
14760 };
14761
14762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
14763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14764 {
14765 arg2 = wxString_in_helper(obj1);
14766 if (arg2 == NULL) SWIG_fail;
e811c8ce 14767 temp2 = True;
d14a1e28
RD
14768 }
14769 {
14770 PyThreadState* __tstate = wxPyBeginAllowThreads();
14771 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
14772
14773 wxPyEndAllowThreads(__tstate);
14774 if (PyErr_Occurred()) SWIG_fail;
14775 }
14776 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1);
14777 {
14778 if (temp2)
14779 delete arg2;
14780 }
14781 return resultobj;
14782 fail:
14783 {
14784 if (temp2)
14785 delete arg2;
14786 }
14787 return NULL;
14788}
14789
14790
14791static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
14792 PyObject *resultobj;
14793 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
14794 PyObject * obj0 = 0 ;
14795 char *kwnames[] = {
14796 (char *) "self", NULL
14797 };
14798
14799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
14800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14801 {
14802 PyThreadState* __tstate = wxPyBeginAllowThreads();
14803 delete arg1;
14804
14805 wxPyEndAllowThreads(__tstate);
14806 if (PyErr_Occurred()) SWIG_fail;
14807 }
14808 Py_INCREF(Py_None); resultobj = Py_None;
14809 return resultobj;
14810 fail:
14811 return NULL;
14812}
14813
14814
14815static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
14816 PyObject *resultobj;
14817 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
14818 wxString *result;
14819 PyObject * obj0 = 0 ;
14820 char *kwnames[] = {
14821 (char *) "self", NULL
14822 };
14823
14824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
14825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14826 {
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 {
14829 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
14830 result = (wxString *) &_result_ref;
14831 }
14832
14833 wxPyEndAllowThreads(__tstate);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
cc6dd355
RD
14836 {
14837#if wxUSE_UNICODE
14838 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14839#else
14840 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14841#endif
14842 }
d14a1e28
RD
14843 return resultobj;
14844 fail:
14845 return NULL;
14846}
14847
14848
14849static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
14850 PyObject *obj;
14851 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14852 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
14853 Py_INCREF(obj);
14854 return Py_BuildValue((char *)"");
14855}
14856static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
14857 PyObject *resultobj;
14858 wxString const &arg1_defvalue = wxPyEmptyString ;
14859 wxString *arg1 = (wxString *) &arg1_defvalue ;
14860 wxString const &arg2_defvalue = wxPyEmptyString ;
14861 wxString *arg2 = (wxString *) &arg2_defvalue ;
14862 wxString const &arg3_defvalue = wxPyEmptyString ;
14863 wxString *arg3 = (wxString *) &arg3_defvalue ;
14864 wxString const &arg4_defvalue = wxPyEmptyString ;
14865 wxString *arg4 = (wxString *) &arg4_defvalue ;
14866 long arg5 = (long) 0 ;
14867 wxConfig *result;
e811c8ce
RD
14868 bool temp1 = False ;
14869 bool temp2 = False ;
14870 bool temp3 = False ;
14871 bool temp4 = False ;
d14a1e28
RD
14872 PyObject * obj0 = 0 ;
14873 PyObject * obj1 = 0 ;
14874 PyObject * obj2 = 0 ;
14875 PyObject * obj3 = 0 ;
14876 char *kwnames[] = {
14877 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
14878 };
14879
14880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail;
14881 if (obj0) {
14882 {
14883 arg1 = wxString_in_helper(obj0);
14884 if (arg1 == NULL) SWIG_fail;
e811c8ce 14885 temp1 = True;
d14a1e28
RD
14886 }
14887 }
14888 if (obj1) {
14889 {
14890 arg2 = wxString_in_helper(obj1);
14891 if (arg2 == NULL) SWIG_fail;
e811c8ce 14892 temp2 = True;
d14a1e28
RD
14893 }
14894 }
14895 if (obj2) {
14896 {
14897 arg3 = wxString_in_helper(obj2);
14898 if (arg3 == NULL) SWIG_fail;
e811c8ce 14899 temp3 = True;
d14a1e28
RD
14900 }
14901 }
14902 if (obj3) {
14903 {
14904 arg4 = wxString_in_helper(obj3);
14905 if (arg4 == NULL) SWIG_fail;
e811c8ce 14906 temp4 = True;
d14a1e28
RD
14907 }
14908 }
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
14912
14913 wxPyEndAllowThreads(__tstate);
14914 if (PyErr_Occurred()) SWIG_fail;
14915 }
14916 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1);
14917 {
14918 if (temp1)
14919 delete arg1;
14920 }
14921 {
14922 if (temp2)
14923 delete arg2;
14924 }
14925 {
14926 if (temp3)
14927 delete arg3;
14928 }
14929 {
14930 if (temp4)
14931 delete arg4;
14932 }
14933 return resultobj;
14934 fail:
14935 {
14936 if (temp1)
14937 delete arg1;
14938 }
14939 {
14940 if (temp2)
14941 delete arg2;
14942 }
14943 {
14944 if (temp3)
14945 delete arg3;
14946 }
14947 {
14948 if (temp4)
14949 delete arg4;
14950 }
14951 return NULL;
14952}
14953
14954
14955static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
14956 PyObject *resultobj;
14957 wxConfig *arg1 = (wxConfig *) 0 ;
14958 PyObject * obj0 = 0 ;
14959 char *kwnames[] = {
14960 (char *) "self", NULL
14961 };
14962
14963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
14964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 delete arg1;
14968
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 Py_INCREF(Py_None); resultobj = Py_None;
14973 return resultobj;
14974 fail:
14975 return NULL;
14976}
14977
14978
14979static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
14980 PyObject *obj;
14981 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14982 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
14983 Py_INCREF(obj);
14984 return Py_BuildValue((char *)"");
14985}
14986static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
14987 PyObject *resultobj;
14988 wxString const &arg1_defvalue = wxPyEmptyString ;
14989 wxString *arg1 = (wxString *) &arg1_defvalue ;
14990 wxString const &arg2_defvalue = wxPyEmptyString ;
14991 wxString *arg2 = (wxString *) &arg2_defvalue ;
14992 wxString const &arg3_defvalue = wxPyEmptyString ;
14993 wxString *arg3 = (wxString *) &arg3_defvalue ;
14994 wxString const &arg4_defvalue = wxPyEmptyString ;
14995 wxString *arg4 = (wxString *) &arg4_defvalue ;
14996 long arg5 = (long) 0 ;
14997 wxFileConfig *result;
e811c8ce
RD
14998 bool temp1 = False ;
14999 bool temp2 = False ;
15000 bool temp3 = False ;
15001 bool temp4 = False ;
d14a1e28
RD
15002 PyObject * obj0 = 0 ;
15003 PyObject * obj1 = 0 ;
15004 PyObject * obj2 = 0 ;
15005 PyObject * obj3 = 0 ;
15006 char *kwnames[] = {
15007 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
15008 };
15009
15010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail;
15011 if (obj0) {
15012 {
15013 arg1 = wxString_in_helper(obj0);
15014 if (arg1 == NULL) SWIG_fail;
e811c8ce 15015 temp1 = True;
d14a1e28
RD
15016 }
15017 }
15018 if (obj1) {
15019 {
15020 arg2 = wxString_in_helper(obj1);
15021 if (arg2 == NULL) SWIG_fail;
e811c8ce 15022 temp2 = True;
d14a1e28
RD
15023 }
15024 }
15025 if (obj2) {
15026 {
15027 arg3 = wxString_in_helper(obj2);
15028 if (arg3 == NULL) SWIG_fail;
e811c8ce 15029 temp3 = True;
d14a1e28
RD
15030 }
15031 }
15032 if (obj3) {
15033 {
15034 arg4 = wxString_in_helper(obj3);
15035 if (arg4 == NULL) SWIG_fail;
e811c8ce 15036 temp4 = True;
d14a1e28
RD
15037 }
15038 }
15039 {
15040 PyThreadState* __tstate = wxPyBeginAllowThreads();
15041 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
15042
15043 wxPyEndAllowThreads(__tstate);
15044 if (PyErr_Occurred()) SWIG_fail;
15045 }
15046 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1);
15047 {
15048 if (temp1)
15049 delete arg1;
15050 }
15051 {
15052 if (temp2)
15053 delete arg2;
15054 }
15055 {
15056 if (temp3)
15057 delete arg3;
15058 }
15059 {
15060 if (temp4)
15061 delete arg4;
15062 }
15063 return resultobj;
15064 fail:
15065 {
15066 if (temp1)
15067 delete arg1;
15068 }
15069 {
15070 if (temp2)
15071 delete arg2;
15072 }
15073 {
15074 if (temp3)
15075 delete arg3;
15076 }
15077 {
15078 if (temp4)
15079 delete arg4;
15080 }
15081 return NULL;
15082}
15083
15084
15085static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
15086 PyObject *resultobj;
15087 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
15088 PyObject * obj0 = 0 ;
15089 char *kwnames[] = {
15090 (char *) "self", NULL
15091 };
15092
15093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
15094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15095 {
15096 PyThreadState* __tstate = wxPyBeginAllowThreads();
15097 delete arg1;
15098
15099 wxPyEndAllowThreads(__tstate);
15100 if (PyErr_Occurred()) SWIG_fail;
15101 }
15102 Py_INCREF(Py_None); resultobj = Py_None;
15103 return resultobj;
15104 fail:
15105 return NULL;
15106}
15107
15108
15109static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
15110 PyObject *obj;
15111 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15112 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
15113 Py_INCREF(obj);
15114 return Py_BuildValue((char *)"");
15115}
15116static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15117 PyObject *resultobj;
15118 wxString *arg1 = 0 ;
15119 wxString result;
e811c8ce 15120 bool temp1 = False ;
d14a1e28
RD
15121 PyObject * obj0 = 0 ;
15122 char *kwnames[] = {
15123 (char *) "sz", NULL
15124 };
15125
15126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
15127 {
15128 arg1 = wxString_in_helper(obj0);
15129 if (arg1 == NULL) SWIG_fail;
e811c8ce 15130 temp1 = True;
d14a1e28
RD
15131 }
15132 {
15133 PyThreadState* __tstate = wxPyBeginAllowThreads();
15134 result = wxExpandEnvVars((wxString const &)*arg1);
15135
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 {
15140#if wxUSE_UNICODE
15141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15142#else
15143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15144#endif
15145 }
15146 {
15147 if (temp1)
15148 delete arg1;
15149 }
15150 return resultobj;
15151 fail:
15152 {
15153 if (temp1)
15154 delete arg1;
15155 }
15156 return NULL;
15157}
15158
15159
15160static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
15161 PyObject *resultobj;
15162 int arg1 ;
15163 char *kwnames[] = {
15164 (char *) "country", NULL
15165 };
15166
15167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_SetCountry",kwnames,&arg1)) goto fail;
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 wxDateTime::SetCountry((wxDateTime::Country )arg1);
15171
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 Py_INCREF(Py_None); resultobj = Py_None;
15176 return resultobj;
15177 fail:
15178 return NULL;
15179}
15180
15181
15182static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
15183 PyObject *resultobj;
15184 int result;
15185 char *kwnames[] = {
15186 NULL
15187 };
15188
15189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
15190 {
15191 PyThreadState* __tstate = wxPyBeginAllowThreads();
15192 result = (int)wxDateTime::GetCountry();
15193
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 resultobj = PyInt_FromLong((long)result);
15198 return resultobj;
15199 fail:
15200 return NULL;
15201}
15202
15203
15204static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
15205 PyObject *resultobj;
15206 int arg1 = (int) wxDateTime::Country_Default ;
15207 bool result;
15208 char *kwnames[] = {
15209 (char *) "country", NULL
15210 };
15211
15212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_IsWestEuropeanCountry",kwnames,&arg1)) goto fail;
15213 {
15214 PyThreadState* __tstate = wxPyBeginAllowThreads();
15215 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
15216
15217 wxPyEndAllowThreads(__tstate);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 }
15220 resultobj = PyInt_FromLong((long)result);
15221 return resultobj;
15222 fail:
15223 return NULL;
15224}
15225
15226
15227static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
15228 PyObject *resultobj;
15229 int arg1 = (int) wxDateTime::Gregorian ;
15230 int result;
15231 char *kwnames[] = {
15232 (char *) "cal", NULL
15233 };
15234
15235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentYear",kwnames,&arg1)) goto fail;
15236 {
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
15239
15240 wxPyEndAllowThreads(__tstate);
15241 if (PyErr_Occurred()) SWIG_fail;
15242 }
15243 resultobj = PyInt_FromLong((long)result);
15244 return resultobj;
15245 fail:
15246 return NULL;
15247}
15248
15249
15250static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
15251 PyObject *resultobj;
15252 int arg1 ;
15253 int result;
15254 char *kwnames[] = {
15255 (char *) "year", NULL
15256 };
15257
15258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_ConvertYearToBC",kwnames,&arg1)) goto fail;
15259 {
15260 PyThreadState* __tstate = wxPyBeginAllowThreads();
15261 result = (int)wxDateTime::ConvertYearToBC(arg1);
15262
15263 wxPyEndAllowThreads(__tstate);
15264 if (PyErr_Occurred()) SWIG_fail;
15265 }
15266 resultobj = PyInt_FromLong((long)result);
15267 return resultobj;
15268 fail:
15269 return NULL;
15270}
15271
15272
15273static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
15274 PyObject *resultobj;
15275 int arg1 = (int) wxDateTime::Gregorian ;
15276 int result;
15277 char *kwnames[] = {
15278 (char *) "cal", NULL
15279 };
15280
15281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentMonth",kwnames,&arg1)) goto fail;
15282 {
15283 PyThreadState* __tstate = wxPyBeginAllowThreads();
15284 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
15285
15286 wxPyEndAllowThreads(__tstate);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 }
15289 resultobj = PyInt_FromLong((long)result);
15290 return resultobj;
15291 fail:
15292 return NULL;
15293}
15294
15295
15296static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
15297 PyObject *resultobj;
15298 int arg1 = (int) wxDateTime::Inv_Year ;
15299 int arg2 = (int) wxDateTime::Gregorian ;
15300 bool result;
15301 char *kwnames[] = {
15302 (char *) "year",(char *) "cal", NULL
15303 };
15304
15305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsLeapYear",kwnames,&arg1,&arg2)) goto fail;
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
15308 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
15309
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = PyInt_FromLong((long)result);
15314 return resultobj;
15315 fail:
15316 return NULL;
15317}
15318
15319
15320static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj;
15322 int arg1 = (int) wxDateTime::Inv_Year ;
15323 int result;
15324 char *kwnames[] = {
15325 (char *) "year", NULL
15326 };
15327
15328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCentury",kwnames,&arg1)) goto fail;
15329 {
15330 PyThreadState* __tstate = wxPyBeginAllowThreads();
15331 result = (int)wxDateTime::GetCentury(arg1);
15332
15333 wxPyEndAllowThreads(__tstate);
15334 if (PyErr_Occurred()) SWIG_fail;
15335 }
15336 resultobj = PyInt_FromLong((long)result);
15337 return resultobj;
15338 fail:
15339 return NULL;
15340}
15341
15342
15343static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
15344 PyObject *resultobj;
15345 int arg1 ;
15346 int arg2 = (int) wxDateTime::Gregorian ;
322913ce 15347 int result;
d14a1e28
RD
15348 char *kwnames[] = {
15349 (char *) "year",(char *) "cal", NULL
15350 };
15351
15352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetNumberOfDaysinYear",kwnames,&arg1,&arg2)) goto fail;
15353 {
15354 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 15355 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
d14a1e28
RD
15356
15357 wxPyEndAllowThreads(__tstate);
15358 if (PyErr_Occurred()) SWIG_fail;
15359 }
15360 resultobj = PyInt_FromLong((long)result);
15361 return resultobj;
15362 fail:
15363 return NULL;
15364}
15365
15366
15367static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
15368 PyObject *resultobj;
15369 int arg1 ;
15370 int arg2 = (int) wxDateTime::Inv_Year ;
15371 int arg3 = (int) wxDateTime::Gregorian ;
322913ce 15372 int result;
d14a1e28
RD
15373 char *kwnames[] = {
15374 (char *) "month",(char *) "year",(char *) "cal", NULL
15375 };
15376
15377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|ii:DateTime_GetNumberOfDaysInMonth",kwnames,&arg1,&arg2,&arg3)) goto fail;
15378 {
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 15380 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
d14a1e28
RD
15381
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 resultobj = PyInt_FromLong((long)result);
15386 return resultobj;
15387 fail:
15388 return NULL;
15389}
15390
15391
15392static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
15393 PyObject *resultobj;
15394 int arg1 ;
15395 int arg2 = (int) wxDateTime::Name_Full ;
15396 wxString result;
15397 char *kwnames[] = {
15398 (char *) "month",(char *) "flags", NULL
15399 };
15400
15401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetMonthName",kwnames,&arg1,&arg2)) goto fail;
15402 {
15403 PyThreadState* __tstate = wxPyBeginAllowThreads();
15404 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
15405
15406 wxPyEndAllowThreads(__tstate);
15407 if (PyErr_Occurred()) SWIG_fail;
15408 }
15409 {
15410#if wxUSE_UNICODE
15411 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15412#else
15413 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15414#endif
15415 }
15416 return resultobj;
15417 fail:
15418 return NULL;
15419}
15420
15421
15422static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
15423 PyObject *resultobj;
15424 int arg1 ;
15425 int arg2 = (int) wxDateTime::Name_Full ;
15426 wxString result;
15427 char *kwnames[] = {
15428 (char *) "weekday",(char *) "flags", NULL
15429 };
15430
15431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetWeekDayName",kwnames,&arg1,&arg2)) goto fail;
15432 {
15433 PyThreadState* __tstate = wxPyBeginAllowThreads();
15434 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
15435
15436 wxPyEndAllowThreads(__tstate);
15437 if (PyErr_Occurred()) SWIG_fail;
15438 }
15439 {
15440#if wxUSE_UNICODE
15441 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15442#else
15443 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15444#endif
15445 }
15446 return resultobj;
15447 fail:
15448 return NULL;
15449}
15450
15451
15452static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
15453 PyObject *resultobj;
15454 wxString *arg1 = (wxString *) 0 ;
15455 wxString *arg2 = (wxString *) 0 ;
15456 PyObject * obj0 = 0 ;
15457 PyObject * obj1 = 0 ;
15458 char *kwnames[] = {
15459 (char *) "OUTPUT",(char *) "OUTPUT", NULL
15460 };
15461
15462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
15463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15464 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15465 {
15466 PyThreadState* __tstate = wxPyBeginAllowThreads();
15467 wxDateTime::GetAmPmStrings(arg1,arg2);
15468
15469 wxPyEndAllowThreads(__tstate);
15470 if (PyErr_Occurred()) SWIG_fail;
15471 }
15472 Py_INCREF(Py_None); resultobj = Py_None;
15473 return resultobj;
15474 fail:
15475 return NULL;
15476}
15477
15478
15479static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
15480 PyObject *resultobj;
15481 int arg1 = (int) wxDateTime::Inv_Year ;
15482 int arg2 = (int) wxDateTime::Country_Default ;
15483 bool result;
15484 char *kwnames[] = {
15485 (char *) "year",(char *) "country", NULL
15486 };
15487
15488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsDSTApplicable",kwnames,&arg1,&arg2)) goto fail;
15489 {
15490 PyThreadState* __tstate = wxPyBeginAllowThreads();
15491 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
15492
15493 wxPyEndAllowThreads(__tstate);
15494 if (PyErr_Occurred()) SWIG_fail;
15495 }
15496 resultobj = PyInt_FromLong((long)result);
15497 return resultobj;
15498 fail:
15499 return NULL;
15500}
15501
15502
15503static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
15504 PyObject *resultobj;
15505 int arg1 = (int) wxDateTime::Inv_Year ;
15506 int arg2 = (int) wxDateTime::Country_Default ;
15507 wxDateTime result;
15508 char *kwnames[] = {
15509 (char *) "year",(char *) "country", NULL
15510 };
15511
15512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetBeginDST",kwnames,&arg1,&arg2)) goto fail;
15513 {
15514 PyThreadState* __tstate = wxPyBeginAllowThreads();
15515 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
15516
15517 wxPyEndAllowThreads(__tstate);
15518 if (PyErr_Occurred()) SWIG_fail;
15519 }
15520 {
15521 wxDateTime * resultptr;
15522 resultptr = new wxDateTime((wxDateTime &) result);
15523 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15524 }
15525 return resultobj;
15526 fail:
15527 return NULL;
15528}
15529
15530
15531static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
15532 PyObject *resultobj;
15533 int arg1 = (int) wxDateTime::Inv_Year ;
15534 int arg2 = (int) wxDateTime::Country_Default ;
15535 wxDateTime result;
15536 char *kwnames[] = {
15537 (char *) "year",(char *) "country", NULL
15538 };
15539
15540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetEndDST",kwnames,&arg1,&arg2)) goto fail;
15541 {
15542 PyThreadState* __tstate = wxPyBeginAllowThreads();
15543 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
15544
15545 wxPyEndAllowThreads(__tstate);
15546 if (PyErr_Occurred()) SWIG_fail;
15547 }
15548 {
15549 wxDateTime * resultptr;
15550 resultptr = new wxDateTime((wxDateTime &) result);
15551 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15552 }
15553 return resultobj;
15554 fail:
15555 return NULL;
15556}
15557
15558
15559static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
15560 PyObject *resultobj;
15561 wxDateTime result;
15562 char *kwnames[] = {
15563 NULL
15564 };
15565
15566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
15567 {
15568 PyThreadState* __tstate = wxPyBeginAllowThreads();
15569 result = wxDateTime::Now();
15570
15571 wxPyEndAllowThreads(__tstate);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 }
15574 {
15575 wxDateTime * resultptr;
15576 resultptr = new wxDateTime((wxDateTime &) result);
15577 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15578 }
15579 return resultobj;
15580 fail:
15581 return NULL;
15582}
15583
15584
15585static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
15586 PyObject *resultobj;
15587 wxDateTime result;
15588 char *kwnames[] = {
15589 NULL
15590 };
15591
15592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
15593 {
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 result = wxDateTime::UNow();
15596
15597 wxPyEndAllowThreads(__tstate);
15598 if (PyErr_Occurred()) SWIG_fail;
15599 }
15600 {
15601 wxDateTime * resultptr;
15602 resultptr = new wxDateTime((wxDateTime &) result);
15603 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15604 }
15605 return resultobj;
15606 fail:
15607 return NULL;
15608}
15609
15610
15611static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
15612 PyObject *resultobj;
15613 wxDateTime result;
15614 char *kwnames[] = {
15615 NULL
15616 };
15617
15618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
15621 result = wxDateTime::Today();
15622
15623 wxPyEndAllowThreads(__tstate);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 {
15627 wxDateTime * resultptr;
15628 resultptr = new wxDateTime((wxDateTime &) result);
15629 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
15630 }
15631 return resultobj;
15632 fail:
15633 return NULL;
15634}
15635
15636
15637static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
15638 PyObject *resultobj;
15639 wxDateTime *result;
15640 char *kwnames[] = {
15641 NULL
15642 };
15643
15644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 result = (wxDateTime *)new wxDateTime();
15648
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15653 return resultobj;
15654 fail:
15655 return NULL;
15656}
15657
15658
15659static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 time_t arg1 ;
15662 wxDateTime *result;
15663 PyObject * obj0 = 0 ;
15664 char *kwnames[] = {
15665 (char *) "timet", NULL
15666 };
15667
15668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
15669 arg1 = (time_t) PyInt_AsLong(obj0);
15670 if (PyErr_Occurred()) SWIG_fail;
15671 {
15672 PyThreadState* __tstate = wxPyBeginAllowThreads();
15673 result = (wxDateTime *)new wxDateTime(arg1);
15674
15675 wxPyEndAllowThreads(__tstate);
15676 if (PyErr_Occurred()) SWIG_fail;
15677 }
15678 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15679 return resultobj;
15680 fail:
15681 return NULL;
15682}
15683
15684
15685static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
15686 PyObject *resultobj;
15687 double arg1 ;
15688 wxDateTime *result;
15689 char *kwnames[] = {
15690 (char *) "jdn", NULL
15691 };
15692
15693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"d:new_DateTimeFromJDN",kwnames,&arg1)) goto fail;
15694 {
15695 PyThreadState* __tstate = wxPyBeginAllowThreads();
15696 result = (wxDateTime *)new wxDateTime(arg1);
15697
15698 wxPyEndAllowThreads(__tstate);
15699 if (PyErr_Occurred()) SWIG_fail;
15700 }
15701 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15702 return resultobj;
15703 fail:
15704 return NULL;
15705}
15706
15707
15708static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
15709 PyObject *resultobj;
322913ce
RD
15710 int arg1 ;
15711 int arg2 = (int) 0 ;
15712 int arg3 = (int) 0 ;
15713 int arg4 = (int) 0 ;
d14a1e28 15714 wxDateTime *result;
d14a1e28
RD
15715 char *kwnames[] = {
15716 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
15717 };
15718
322913ce 15719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iii:new_DateTimeFromHMS",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
d14a1e28
RD
15720 {
15721 PyThreadState* __tstate = wxPyBeginAllowThreads();
15722 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
15723
15724 wxPyEndAllowThreads(__tstate);
15725 if (PyErr_Occurred()) SWIG_fail;
15726 }
15727 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15728 return resultobj;
15729 fail:
15730 return NULL;
15731}
15732
15733
15734static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
15735 PyObject *resultobj;
322913ce 15736 int arg1 ;
d14a1e28
RD
15737 int arg2 = (int) wxDateTime::Inv_Month ;
15738 int arg3 = (int) wxDateTime::Inv_Year ;
322913ce
RD
15739 int arg4 = (int) 0 ;
15740 int arg5 = (int) 0 ;
15741 int arg6 = (int) 0 ;
15742 int arg7 = (int) 0 ;
d14a1e28 15743 wxDateTime *result;
d14a1e28
RD
15744 char *kwnames[] = {
15745 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
15746 };
15747
322913ce 15748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iiiiii:new_DateTimeFromDMY",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail;
d14a1e28
RD
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
15752
15753 wxPyEndAllowThreads(__tstate);
15754 if (PyErr_Occurred()) SWIG_fail;
15755 }
15756 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1);
15757 return resultobj;
15758 fail:
15759 return NULL;
15760}
15761
15762
15763static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
15764 PyObject *resultobj;
15765 wxDateTime *arg1 = (wxDateTime *) 0 ;
15766 PyObject * obj0 = 0 ;
15767 char *kwnames[] = {
15768 (char *) "self", NULL
15769 };
15770
15771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
15772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15773 {
15774 PyThreadState* __tstate = wxPyBeginAllowThreads();
15775 delete arg1;
15776
15777 wxPyEndAllowThreads(__tstate);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 Py_INCREF(Py_None); resultobj = Py_None;
15781 return resultobj;
15782 fail:
15783 return NULL;
15784}
15785
15786
15787static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
15788 PyObject *resultobj;
15789 wxDateTime *arg1 = (wxDateTime *) 0 ;
15790 wxDateTime *result;
15791 PyObject * obj0 = 0 ;
15792 char *kwnames[] = {
15793 (char *) "self", NULL
15794 };
15795
15796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
15797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15798 {
15799 PyThreadState* __tstate = wxPyBeginAllowThreads();
15800 {
15801 wxDateTime &_result_ref = (arg1)->SetToCurrent();
15802 result = (wxDateTime *) &_result_ref;
15803 }
15804
15805 wxPyEndAllowThreads(__tstate);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 }
15808 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15809 return resultobj;
15810 fail:
15811 return NULL;
15812}
15813
15814
15815static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
15816 PyObject *resultobj;
15817 wxDateTime *arg1 = (wxDateTime *) 0 ;
15818 time_t arg2 ;
15819 wxDateTime *result;
15820 PyObject * obj0 = 0 ;
15821 PyObject * obj1 = 0 ;
15822 char *kwnames[] = {
15823 (char *) "self",(char *) "timet", NULL
15824 };
15825
15826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
15827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15828 arg2 = (time_t) PyInt_AsLong(obj1);
15829 if (PyErr_Occurred()) SWIG_fail;
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 {
15833 wxDateTime &_result_ref = (arg1)->Set(arg2);
15834 result = (wxDateTime *) &_result_ref;
15835 }
15836
15837 wxPyEndAllowThreads(__tstate);
15838 if (PyErr_Occurred()) SWIG_fail;
15839 }
15840 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15841 return resultobj;
15842 fail:
15843 return NULL;
15844}
15845
15846
15847static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj;
15849 wxDateTime *arg1 = (wxDateTime *) 0 ;
15850 double arg2 ;
15851 wxDateTime *result;
15852 PyObject * obj0 = 0 ;
15853 char *kwnames[] = {
15854 (char *) "self",(char *) "jdn", NULL
15855 };
15856
15857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:DateTime_SetJDN",kwnames,&obj0,&arg2)) goto fail;
15858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15859 {
15860 PyThreadState* __tstate = wxPyBeginAllowThreads();
15861 {
15862 wxDateTime &_result_ref = (arg1)->Set(arg2);
15863 result = (wxDateTime *) &_result_ref;
15864 }
15865
15866 wxPyEndAllowThreads(__tstate);
15867 if (PyErr_Occurred()) SWIG_fail;
15868 }
15869 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15870 return resultobj;
15871 fail:
15872 return NULL;
15873}
15874
15875
15876static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
15877 PyObject *resultobj;
15878 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce
RD
15879 int arg2 ;
15880 int arg3 = (int) 0 ;
15881 int arg4 = (int) 0 ;
15882 int arg5 = (int) 0 ;
d14a1e28
RD
15883 wxDateTime *result;
15884 PyObject * obj0 = 0 ;
d14a1e28
RD
15885 char *kwnames[] = {
15886 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
15887 };
15888
322913ce 15889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetHMS",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
d14a1e28 15890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15891 {
15892 PyThreadState* __tstate = wxPyBeginAllowThreads();
15893 {
15894 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
15895 result = (wxDateTime *) &_result_ref;
15896 }
15897
15898 wxPyEndAllowThreads(__tstate);
15899 if (PyErr_Occurred()) SWIG_fail;
15900 }
15901 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15902 return resultobj;
15903 fail:
15904 return NULL;
15905}
15906
15907
15908static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
15909 PyObject *resultobj;
15910 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 15911 int arg2 ;
d14a1e28
RD
15912 int arg3 = (int) wxDateTime::Inv_Month ;
15913 int arg4 = (int) wxDateTime::Inv_Year ;
322913ce
RD
15914 int arg5 = (int) 0 ;
15915 int arg6 = (int) 0 ;
15916 int arg7 = (int) 0 ;
15917 int arg8 = (int) 0 ;
d14a1e28
RD
15918 wxDateTime *result;
15919 PyObject * obj0 = 0 ;
d14a1e28
RD
15920 char *kwnames[] = {
15921 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
15922 };
15923
322913ce 15924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiiiii:DateTime_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail;
d14a1e28 15925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
15926 {
15927 PyThreadState* __tstate = wxPyBeginAllowThreads();
15928 {
15929 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
15930 result = (wxDateTime *) &_result_ref;
15931 }
15932
15933 wxPyEndAllowThreads(__tstate);
15934 if (PyErr_Occurred()) SWIG_fail;
15935 }
15936 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15937 return resultobj;
15938 fail:
15939 return NULL;
15940}
15941
15942
15943static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
15944 PyObject *resultobj;
15945 wxDateTime *arg1 = (wxDateTime *) 0 ;
15946 wxDateTime *result;
15947 PyObject * obj0 = 0 ;
15948 char *kwnames[] = {
15949 (char *) "self", NULL
15950 };
15951
15952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
15953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15954 {
15955 PyThreadState* __tstate = wxPyBeginAllowThreads();
15956 {
15957 wxDateTime &_result_ref = (arg1)->ResetTime();
15958 result = (wxDateTime *) &_result_ref;
15959 }
15960
15961 wxPyEndAllowThreads(__tstate);
15962 if (PyErr_Occurred()) SWIG_fail;
15963 }
15964 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15965 return resultobj;
15966 fail:
15967 return NULL;
15968}
15969
15970
15971static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
15972 PyObject *resultobj;
15973 wxDateTime *arg1 = (wxDateTime *) 0 ;
15974 int arg2 ;
15975 wxDateTime *result;
15976 PyObject * obj0 = 0 ;
15977 char *kwnames[] = {
15978 (char *) "self",(char *) "year", NULL
15979 };
15980
15981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetYear",kwnames,&obj0,&arg2)) goto fail;
15982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15983 {
15984 PyThreadState* __tstate = wxPyBeginAllowThreads();
15985 {
15986 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
15987 result = (wxDateTime *) &_result_ref;
15988 }
15989
15990 wxPyEndAllowThreads(__tstate);
15991 if (PyErr_Occurred()) SWIG_fail;
15992 }
15993 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
15994 return resultobj;
15995 fail:
15996 return NULL;
15997}
15998
15999
16000static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16001 PyObject *resultobj;
16002 wxDateTime *arg1 = (wxDateTime *) 0 ;
16003 int arg2 ;
16004 wxDateTime *result;
16005 PyObject * obj0 = 0 ;
16006 char *kwnames[] = {
16007 (char *) "self",(char *) "month", NULL
16008 };
16009
16010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMonth",kwnames,&obj0,&arg2)) goto fail;
16011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16012 {
16013 PyThreadState* __tstate = wxPyBeginAllowThreads();
16014 {
16015 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
16016 result = (wxDateTime *) &_result_ref;
16017 }
16018
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16023 return resultobj;
16024 fail:
16025 return NULL;
16026}
16027
16028
16029static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16030 PyObject *resultobj;
16031 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16032 int arg2 ;
d14a1e28
RD
16033 wxDateTime *result;
16034 PyObject * obj0 = 0 ;
d14a1e28
RD
16035 char *kwnames[] = {
16036 (char *) "self",(char *) "day", NULL
16037 };
16038
322913ce 16039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetDay",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16041 {
16042 PyThreadState* __tstate = wxPyBeginAllowThreads();
16043 {
16044 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
16045 result = (wxDateTime *) &_result_ref;
16046 }
16047
16048 wxPyEndAllowThreads(__tstate);
16049 if (PyErr_Occurred()) SWIG_fail;
16050 }
16051 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16052 return resultobj;
16053 fail:
16054 return NULL;
16055}
16056
16057
16058static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
16059 PyObject *resultobj;
16060 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16061 int arg2 ;
d14a1e28
RD
16062 wxDateTime *result;
16063 PyObject * obj0 = 0 ;
d14a1e28
RD
16064 char *kwnames[] = {
16065 (char *) "self",(char *) "hour", NULL
16066 };
16067
322913ce 16068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetHour",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 {
16073 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
16074 result = (wxDateTime *) &_result_ref;
16075 }
16076
16077 wxPyEndAllowThreads(__tstate);
16078 if (PyErr_Occurred()) SWIG_fail;
16079 }
16080 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16081 return resultobj;
16082 fail:
16083 return NULL;
16084}
16085
16086
16087static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
16088 PyObject *resultobj;
16089 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16090 int arg2 ;
d14a1e28
RD
16091 wxDateTime *result;
16092 PyObject * obj0 = 0 ;
d14a1e28
RD
16093 char *kwnames[] = {
16094 (char *) "self",(char *) "minute", NULL
16095 };
16096
322913ce 16097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMinute",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16099 {
16100 PyThreadState* __tstate = wxPyBeginAllowThreads();
16101 {
16102 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
16103 result = (wxDateTime *) &_result_ref;
16104 }
16105
16106 wxPyEndAllowThreads(__tstate);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16110 return resultobj;
16111 fail:
16112 return NULL;
16113}
16114
16115
16116static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
16117 PyObject *resultobj;
16118 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16119 int arg2 ;
d14a1e28
RD
16120 wxDateTime *result;
16121 PyObject * obj0 = 0 ;
d14a1e28
RD
16122 char *kwnames[] = {
16123 (char *) "self",(char *) "second", NULL
16124 };
16125
322913ce 16126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetSecond",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16128 {
16129 PyThreadState* __tstate = wxPyBeginAllowThreads();
16130 {
16131 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
16132 result = (wxDateTime *) &_result_ref;
16133 }
16134
16135 wxPyEndAllowThreads(__tstate);
16136 if (PyErr_Occurred()) SWIG_fail;
16137 }
16138 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16139 return resultobj;
16140 fail:
16141 return NULL;
16142}
16143
16144
16145static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
16146 PyObject *resultobj;
16147 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16148 int arg2 ;
d14a1e28
RD
16149 wxDateTime *result;
16150 PyObject * obj0 = 0 ;
d14a1e28
RD
16151 char *kwnames[] = {
16152 (char *) "self",(char *) "millisecond", NULL
16153 };
16154
322913ce 16155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMillisecond",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16157 {
16158 PyThreadState* __tstate = wxPyBeginAllowThreads();
16159 {
16160 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
16161 result = (wxDateTime *) &_result_ref;
16162 }
16163
16164 wxPyEndAllowThreads(__tstate);
16165 if (PyErr_Occurred()) SWIG_fail;
16166 }
16167 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16168 return resultobj;
16169 fail:
16170 return NULL;
16171}
16172
16173
16174static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
16175 PyObject *resultobj;
16176 wxDateTime *arg1 = (wxDateTime *) 0 ;
16177 int arg2 ;
16178 int arg3 = (int) wxDateTime::Monday_First ;
16179 wxDateTime *result;
16180 PyObject * obj0 = 0 ;
16181 char *kwnames[] = {
16182 (char *) "self",(char *) "weekday",(char *) "flags", NULL
16183 };
16184
16185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail;
16186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16187 {
16188 PyThreadState* __tstate = wxPyBeginAllowThreads();
16189 {
16190 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
16191 result = (wxDateTime *) &_result_ref;
16192 }
16193
16194 wxPyEndAllowThreads(__tstate);
16195 if (PyErr_Occurred()) SWIG_fail;
16196 }
16197 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16198 return resultobj;
16199 fail:
16200 return NULL;
16201}
16202
16203
16204static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
16205 PyObject *resultobj;
16206 wxDateTime *arg1 = (wxDateTime *) 0 ;
16207 int arg2 ;
16208 int arg3 = (int) wxDateTime::Monday_First ;
16209 wxDateTime result;
16210 PyObject * obj0 = 0 ;
16211 char *kwnames[] = {
16212 (char *) "self",(char *) "weekday",(char *) "flags", NULL
16213 };
16214
16215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail;
16216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16217 {
16218 PyThreadState* __tstate = wxPyBeginAllowThreads();
16219 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
16220
16221 wxPyEndAllowThreads(__tstate);
16222 if (PyErr_Occurred()) SWIG_fail;
16223 }
16224 {
16225 wxDateTime * resultptr;
16226 resultptr = new wxDateTime((wxDateTime &) result);
16227 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16228 }
16229 return resultobj;
16230 fail:
16231 return NULL;
16232}
16233
16234
16235static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16236 PyObject *resultobj;
16237 wxDateTime *arg1 = (wxDateTime *) 0 ;
16238 int arg2 ;
16239 wxDateTime *result;
16240 PyObject * obj0 = 0 ;
16241 char *kwnames[] = {
16242 (char *) "self",(char *) "weekday", NULL
16243 };
16244
16245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToNextWeekDay",kwnames,&obj0,&arg2)) goto fail;
16246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16247 {
16248 PyThreadState* __tstate = wxPyBeginAllowThreads();
16249 {
16250 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
16251 result = (wxDateTime *) &_result_ref;
16252 }
16253
16254 wxPyEndAllowThreads(__tstate);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
16257 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16258 return resultobj;
16259 fail:
16260 return NULL;
16261}
16262
16263
16264static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16265 PyObject *resultobj;
16266 wxDateTime *arg1 = (wxDateTime *) 0 ;
16267 int arg2 ;
16268 wxDateTime result;
16269 PyObject * obj0 = 0 ;
16270 char *kwnames[] = {
16271 (char *) "self",(char *) "weekday", NULL
16272 };
16273
16274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetNextWeekDay",kwnames,&obj0,&arg2)) goto fail;
16275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
16279
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 {
16284 wxDateTime * resultptr;
16285 resultptr = new wxDateTime((wxDateTime &) result);
16286 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16287 }
16288 return resultobj;
16289 fail:
16290 return NULL;
16291}
16292
16293
16294static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16295 PyObject *resultobj;
16296 wxDateTime *arg1 = (wxDateTime *) 0 ;
16297 int arg2 ;
16298 wxDateTime *result;
16299 PyObject * obj0 = 0 ;
16300 char *kwnames[] = {
16301 (char *) "self",(char *) "weekday", NULL
16302 };
16303
16304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToPrevWeekDay",kwnames,&obj0,&arg2)) goto fail;
16305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 {
16309 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
16310 result = (wxDateTime *) &_result_ref;
16311 }
16312
16313 wxPyEndAllowThreads(__tstate);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 }
16316 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16317 return resultobj;
16318 fail:
16319 return NULL;
16320}
16321
16322
16323static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16324 PyObject *resultobj;
16325 wxDateTime *arg1 = (wxDateTime *) 0 ;
16326 int arg2 ;
16327 wxDateTime result;
16328 PyObject * obj0 = 0 ;
16329 char *kwnames[] = {
16330 (char *) "self",(char *) "weekday", NULL
16331 };
16332
16333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetPrevWeekDay",kwnames,&obj0,&arg2)) goto fail;
16334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16335 {
16336 PyThreadState* __tstate = wxPyBeginAllowThreads();
16337 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
16338
16339 wxPyEndAllowThreads(__tstate);
16340 if (PyErr_Occurred()) SWIG_fail;
16341 }
16342 {
16343 wxDateTime * resultptr;
16344 resultptr = new wxDateTime((wxDateTime &) result);
16345 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16346 }
16347 return resultobj;
16348 fail:
16349 return NULL;
16350}
16351
16352
16353static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16354 PyObject *resultobj;
16355 wxDateTime *arg1 = (wxDateTime *) 0 ;
16356 int arg2 ;
16357 int arg3 = (int) 1 ;
16358 int arg4 = (int) wxDateTime::Inv_Month ;
16359 int arg5 = (int) wxDateTime::Inv_Year ;
16360 bool result;
16361 PyObject * obj0 = 0 ;
16362 char *kwnames[] = {
16363 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
16364 };
16365
16366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetToWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
16367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16368 {
16369 PyThreadState* __tstate = wxPyBeginAllowThreads();
16370 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
16371
16372 wxPyEndAllowThreads(__tstate);
16373 if (PyErr_Occurred()) SWIG_fail;
16374 }
16375 resultobj = PyInt_FromLong((long)result);
16376 return resultobj;
16377 fail:
16378 return NULL;
16379}
16380
16381
16382static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16383 PyObject *resultobj;
16384 wxDateTime *arg1 = (wxDateTime *) 0 ;
16385 int arg2 ;
16386 int arg3 = (int) wxDateTime::Inv_Month ;
16387 int arg4 = (int) wxDateTime::Inv_Year ;
16388 bool result;
16389 PyObject * obj0 = 0 ;
16390 char *kwnames[] = {
16391 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
16392 };
16393
16394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
16395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16396 {
16397 PyThreadState* __tstate = wxPyBeginAllowThreads();
16398 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
16399
16400 wxPyEndAllowThreads(__tstate);
16401 if (PyErr_Occurred()) SWIG_fail;
16402 }
16403 resultobj = PyInt_FromLong((long)result);
16404 return resultobj;
16405 fail:
16406 return NULL;
16407}
16408
16409
16410static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16411 PyObject *resultobj;
16412 wxDateTime *arg1 = (wxDateTime *) 0 ;
16413 int arg2 ;
16414 int arg3 = (int) wxDateTime::Inv_Month ;
16415 int arg4 = (int) wxDateTime::Inv_Year ;
16416 wxDateTime result;
16417 PyObject * obj0 = 0 ;
16418 char *kwnames[] = {
16419 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
16420 };
16421
16422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
16423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
16427
16428 wxPyEndAllowThreads(__tstate);
16429 if (PyErr_Occurred()) SWIG_fail;
16430 }
16431 {
16432 wxDateTime * resultptr;
16433 resultptr = new wxDateTime((wxDateTime &) result);
16434 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16435 }
16436 return resultobj;
16437 fail:
16438 return NULL;
16439}
16440
16441
16442static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
16443 PyObject *resultobj;
16444 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16445 int arg2 ;
d14a1e28
RD
16446 int arg3 = (int) wxDateTime::Mon ;
16447 int arg4 = (int) wxDateTime::Monday_First ;
16448 bool result;
16449 PyObject * obj0 = 0 ;
d14a1e28
RD
16450 char *kwnames[] = {
16451 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
16452 };
16453
322913ce 16454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToTheWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
d14a1e28 16455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16456 {
16457 PyThreadState* __tstate = wxPyBeginAllowThreads();
16458 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
16459
16460 wxPyEndAllowThreads(__tstate);
16461 if (PyErr_Occurred()) SWIG_fail;
16462 }
16463 resultobj = PyInt_FromLong((long)result);
16464 return resultobj;
16465 fail:
16466 return NULL;
16467}
16468
16469
16470static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
16471 PyObject *resultobj;
16472 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16473 int arg2 ;
d14a1e28
RD
16474 int arg3 = (int) wxDateTime::Mon ;
16475 int arg4 = (int) wxDateTime::Monday_First ;
16476 wxDateTime result;
16477 PyObject * obj0 = 0 ;
d14a1e28
RD
16478 char *kwnames[] = {
16479 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
16480 };
16481
322913ce 16482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
d14a1e28 16483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16484 {
16485 PyThreadState* __tstate = wxPyBeginAllowThreads();
16486 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
16487
16488 wxPyEndAllowThreads(__tstate);
16489 if (PyErr_Occurred()) SWIG_fail;
16490 }
16491 {
16492 wxDateTime * resultptr;
16493 resultptr = new wxDateTime((wxDateTime &) result);
16494 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16495 }
16496 return resultobj;
16497 fail:
16498 return NULL;
16499}
16500
16501
16502static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16503 PyObject *resultobj;
16504 wxDateTime *arg1 = (wxDateTime *) 0 ;
16505 int arg2 = (int) wxDateTime::Inv_Month ;
16506 int arg3 = (int) wxDateTime::Inv_Year ;
16507 wxDateTime *result;
16508 PyObject * obj0 = 0 ;
16509 char *kwnames[] = {
16510 (char *) "self",(char *) "month",(char *) "year", NULL
16511 };
16512
16513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_SetToLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail;
16514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16515 {
16516 PyThreadState* __tstate = wxPyBeginAllowThreads();
16517 {
16518 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
16519 result = (wxDateTime *) &_result_ref;
16520 }
16521
16522 wxPyEndAllowThreads(__tstate);
16523 if (PyErr_Occurred()) SWIG_fail;
16524 }
16525 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16526 return resultobj;
16527 fail:
16528 return NULL;
16529}
16530
16531
16532static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16533 PyObject *resultobj;
16534 wxDateTime *arg1 = (wxDateTime *) 0 ;
16535 int arg2 = (int) wxDateTime::Inv_Month ;
16536 int arg3 = (int) wxDateTime::Inv_Year ;
16537 wxDateTime result;
16538 PyObject * obj0 = 0 ;
16539 char *kwnames[] = {
16540 (char *) "self",(char *) "month",(char *) "year", NULL
16541 };
16542
16543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_GetLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail;
16544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16545 {
16546 PyThreadState* __tstate = wxPyBeginAllowThreads();
16547 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
16548
16549 wxPyEndAllowThreads(__tstate);
16550 if (PyErr_Occurred()) SWIG_fail;
16551 }
16552 {
16553 wxDateTime * resultptr;
16554 resultptr = new wxDateTime((wxDateTime &) result);
16555 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16556 }
16557 return resultobj;
16558 fail:
16559 return NULL;
16560}
16561
16562
16563static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16564 PyObject *resultobj;
16565 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16566 int arg2 ;
d14a1e28
RD
16567 wxDateTime *result;
16568 PyObject * obj0 = 0 ;
d14a1e28
RD
16569 char *kwnames[] = {
16570 (char *) "self",(char *) "yday", NULL
16571 };
16572
322913ce 16573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToYearDay",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 {
16578 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
16579 result = (wxDateTime *) &_result_ref;
16580 }
16581
16582 wxPyEndAllowThreads(__tstate);
16583 if (PyErr_Occurred()) SWIG_fail;
16584 }
16585 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16586 return resultobj;
16587 fail:
16588 return NULL;
16589}
16590
16591
16592static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
16593 PyObject *resultobj;
16594 wxDateTime *arg1 = (wxDateTime *) 0 ;
322913ce 16595 int arg2 ;
d14a1e28
RD
16596 wxDateTime result;
16597 PyObject * obj0 = 0 ;
d14a1e28
RD
16598 char *kwnames[] = {
16599 (char *) "self",(char *) "yday", NULL
16600 };
16601
322913ce 16602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetYearDay",kwnames,&obj0,&arg2)) goto fail;
d14a1e28 16603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
d14a1e28
RD
16604 {
16605 PyThreadState* __tstate = wxPyBeginAllowThreads();
16606 result = (arg1)->GetYearDay(arg2);
16607
16608 wxPyEndAllowThreads(__tstate);
16609 if (PyErr_Occurred()) SWIG_fail;
16610 }
16611 {
16612 wxDateTime * resultptr;
16613 resultptr = new wxDateTime((wxDateTime &) result);
16614 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16615 }
16616 return resultobj;
16617 fail:
16618 return NULL;
16619}
16620
16621
16622static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
16623 PyObject *resultobj;
16624 wxDateTime *arg1 = (wxDateTime *) 0 ;
16625 double result;
16626 PyObject * obj0 = 0 ;
16627 char *kwnames[] = {
16628 (char *) "self", NULL
16629 };
16630
16631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
16632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
16635 result = (double)(arg1)->GetJulianDayNumber();
16636
16637 wxPyEndAllowThreads(__tstate);
16638 if (PyErr_Occurred()) SWIG_fail;
16639 }
16640 resultobj = PyFloat_FromDouble(result);
16641 return resultobj;
16642 fail:
16643 return NULL;
16644}
16645
16646
16647static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
16648 PyObject *resultobj;
16649 wxDateTime *arg1 = (wxDateTime *) 0 ;
16650 double result;
16651 PyObject * obj0 = 0 ;
16652 char *kwnames[] = {
16653 (char *) "self", NULL
16654 };
16655
16656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
16657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16658 {
16659 PyThreadState* __tstate = wxPyBeginAllowThreads();
16660 result = (double)(arg1)->GetJDN();
16661
16662 wxPyEndAllowThreads(__tstate);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 resultobj = PyFloat_FromDouble(result);
16666 return resultobj;
16667 fail:
16668 return NULL;
16669}
16670
16671
16672static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
16673 PyObject *resultobj;
16674 wxDateTime *arg1 = (wxDateTime *) 0 ;
16675 double result;
16676 PyObject * obj0 = 0 ;
16677 char *kwnames[] = {
16678 (char *) "self", NULL
16679 };
16680
16681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
16682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16683 {
16684 PyThreadState* __tstate = wxPyBeginAllowThreads();
16685 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
16686
16687 wxPyEndAllowThreads(__tstate);
16688 if (PyErr_Occurred()) SWIG_fail;
16689 }
16690 resultobj = PyFloat_FromDouble(result);
16691 return resultobj;
16692 fail:
16693 return NULL;
16694}
16695
16696
16697static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
16698 PyObject *resultobj;
16699 wxDateTime *arg1 = (wxDateTime *) 0 ;
16700 double result;
16701 PyObject * obj0 = 0 ;
16702 char *kwnames[] = {
16703 (char *) "self", NULL
16704 };
16705
16706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
16707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16708 {
16709 PyThreadState* __tstate = wxPyBeginAllowThreads();
16710 result = (double)(arg1)->GetMJD();
16711
16712 wxPyEndAllowThreads(__tstate);
16713 if (PyErr_Occurred()) SWIG_fail;
16714 }
16715 resultobj = PyFloat_FromDouble(result);
16716 return resultobj;
16717 fail:
16718 return NULL;
16719}
16720
16721
16722static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
16723 PyObject *resultobj;
16724 wxDateTime *arg1 = (wxDateTime *) 0 ;
16725 double result;
16726 PyObject * obj0 = 0 ;
16727 char *kwnames[] = {
16728 (char *) "self", NULL
16729 };
16730
16731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
16732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16733 {
16734 PyThreadState* __tstate = wxPyBeginAllowThreads();
16735 result = (double)(arg1)->GetRataDie();
16736
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 resultobj = PyFloat_FromDouble(result);
16741 return resultobj;
16742 fail:
16743 return NULL;
16744}
16745
16746
16747static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj;
16749 wxDateTime *arg1 = (wxDateTime *) 0 ;
16750 wxDateTime::TimeZone *arg2 = 0 ;
e811c8ce 16751 bool arg3 = (bool) False ;
d14a1e28 16752 wxDateTime result;
7722248d 16753 bool temp2 = False ;
d14a1e28
RD
16754 PyObject * obj0 = 0 ;
16755 PyObject * obj1 = 0 ;
16756 PyObject * obj2 = 0 ;
16757 char *kwnames[] = {
16758 (char *) "self",(char *) "tz",(char *) "noDST", NULL
16759 };
16760
16761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
16762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16763 {
16764 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 16765 temp2 = True;
d14a1e28
RD
16766 }
16767 if (obj2) {
16768 arg3 = PyInt_AsLong(obj2) ? true : false;
16769 if (PyErr_Occurred()) SWIG_fail;
16770 }
16771 {
16772 PyThreadState* __tstate = wxPyBeginAllowThreads();
16773 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
16774
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 {
16779 wxDateTime * resultptr;
16780 resultptr = new wxDateTime((wxDateTime &) result);
16781 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16782 }
16783 {
7722248d 16784 if (temp2) delete arg2;
d14a1e28
RD
16785 }
16786 return resultobj;
16787 fail:
16788 {
7722248d 16789 if (temp2) delete arg2;
d14a1e28
RD
16790 }
16791 return NULL;
16792}
16793
16794
16795static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
16796 PyObject *resultobj;
16797 wxDateTime *arg1 = (wxDateTime *) 0 ;
16798 wxDateTime::TimeZone *arg2 = 0 ;
e811c8ce 16799 bool arg3 = (bool) False ;
d14a1e28 16800 wxDateTime *result;
7722248d 16801 bool temp2 = False ;
d14a1e28
RD
16802 PyObject * obj0 = 0 ;
16803 PyObject * obj1 = 0 ;
16804 PyObject * obj2 = 0 ;
16805 char *kwnames[] = {
16806 (char *) "self",(char *) "tz",(char *) "noDST", NULL
16807 };
16808
16809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
16810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16811 {
16812 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 16813 temp2 = True;
d14a1e28
RD
16814 }
16815 if (obj2) {
16816 arg3 = PyInt_AsLong(obj2) ? true : false;
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 {
16820 PyThreadState* __tstate = wxPyBeginAllowThreads();
16821 {
16822 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
16823 result = (wxDateTime *) &_result_ref;
16824 }
16825
16826 wxPyEndAllowThreads(__tstate);
16827 if (PyErr_Occurred()) SWIG_fail;
16828 }
16829 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16830 {
7722248d 16831 if (temp2) delete arg2;
d14a1e28
RD
16832 }
16833 return resultobj;
16834 fail:
16835 {
7722248d 16836 if (temp2) delete arg2;
d14a1e28
RD
16837 }
16838 return NULL;
16839}
16840
16841
16842static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
16843 PyObject *resultobj;
16844 wxDateTime *arg1 = (wxDateTime *) 0 ;
e811c8ce 16845 bool arg2 = (bool) False ;
d14a1e28
RD
16846 wxDateTime result;
16847 PyObject * obj0 = 0 ;
16848 PyObject * obj1 = 0 ;
16849 char *kwnames[] = {
16850 (char *) "self",(char *) "noDST", NULL
16851 };
16852
16853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
16854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16855 if (obj1) {
16856 arg2 = PyInt_AsLong(obj1) ? true : false;
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 {
16860 PyThreadState* __tstate = wxPyBeginAllowThreads();
16861 result = (arg1)->ToGMT(arg2);
16862
16863 wxPyEndAllowThreads(__tstate);
16864 if (PyErr_Occurred()) SWIG_fail;
16865 }
16866 {
16867 wxDateTime * resultptr;
16868 resultptr = new wxDateTime((wxDateTime &) result);
16869 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
16870 }
16871 return resultobj;
16872 fail:
16873 return NULL;
16874}
16875
16876
16877static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
16878 PyObject *resultobj;
16879 wxDateTime *arg1 = (wxDateTime *) 0 ;
e811c8ce 16880 bool arg2 = (bool) False ;
d14a1e28
RD
16881 wxDateTime *result;
16882 PyObject * obj0 = 0 ;
16883 PyObject * obj1 = 0 ;
16884 char *kwnames[] = {
16885 (char *) "self",(char *) "noDST", NULL
16886 };
16887
16888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
16889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16890 if (obj1) {
16891 arg2 = PyInt_AsLong(obj1) ? true : false;
16892 if (PyErr_Occurred()) SWIG_fail;
16893 }
16894 {
16895 PyThreadState* __tstate = wxPyBeginAllowThreads();
16896 {
16897 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
16898 result = (wxDateTime *) &_result_ref;
16899 }
16900
16901 wxPyEndAllowThreads(__tstate);
16902 if (PyErr_Occurred()) SWIG_fail;
16903 }
16904 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
16905 return resultobj;
16906 fail:
16907 return NULL;
16908}
16909
16910
16911static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16912 PyObject *resultobj;
16913 wxDateTime *arg1 = (wxDateTime *) 0 ;
16914 int arg2 = (int) wxDateTime::Country_Default ;
16915 int result;
16916 PyObject * obj0 = 0 ;
16917 char *kwnames[] = {
16918 (char *) "self",(char *) "country", NULL
16919 };
16920
16921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsDST",kwnames,&obj0,&arg2)) goto fail;
16922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16923 {
16924 PyThreadState* __tstate = wxPyBeginAllowThreads();
16925 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
16926
16927 wxPyEndAllowThreads(__tstate);
16928 if (PyErr_Occurred()) SWIG_fail;
16929 }
16930 resultobj = PyInt_FromLong((long)result);
16931 return resultobj;
16932 fail:
16933 return NULL;
16934}
16935
16936
16937static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
16938 PyObject *resultobj;
16939 wxDateTime *arg1 = (wxDateTime *) 0 ;
16940 bool result;
16941 PyObject * obj0 = 0 ;
16942 char *kwnames[] = {
16943 (char *) "self", NULL
16944 };
16945
16946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
16947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16948 {
16949 PyThreadState* __tstate = wxPyBeginAllowThreads();
16950 result = (bool)((wxDateTime const *)arg1)->IsValid();
16951
16952 wxPyEndAllowThreads(__tstate);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 }
16955 resultobj = PyInt_FromLong((long)result);
16956 return resultobj;
16957 fail:
16958 return NULL;
16959}
16960
16961
16962static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
16963 PyObject *resultobj;
16964 wxDateTime *arg1 = (wxDateTime *) 0 ;
16965 time_t result;
16966 PyObject * obj0 = 0 ;
16967 char *kwnames[] = {
16968 (char *) "self", NULL
16969 };
16970
16971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
16972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16973 {
16974 PyThreadState* __tstate = wxPyBeginAllowThreads();
16975 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
16976
16977 wxPyEndAllowThreads(__tstate);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
16980 resultobj = PyInt_FromLong((long)result);
16981 return resultobj;
16982 fail:
16983 return NULL;
16984}
16985
16986
16987static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16988 PyObject *resultobj;
16989 wxDateTime *arg1 = (wxDateTime *) 0 ;
16990 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
16991 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
16992 int result;
7722248d 16993 bool temp2 = False ;
d14a1e28
RD
16994 PyObject * obj0 = 0 ;
16995 PyObject * obj1 = 0 ;
16996 char *kwnames[] = {
16997 (char *) "self",(char *) "tz", NULL
16998 };
16999
17000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
17001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17002 if (obj1) {
17003 {
17004 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17005 temp2 = True;
d14a1e28
RD
17006 }
17007 }
17008 {
17009 PyThreadState* __tstate = wxPyBeginAllowThreads();
17010 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
17011
17012 wxPyEndAllowThreads(__tstate);
17013 if (PyErr_Occurred()) SWIG_fail;
17014 }
17015 resultobj = PyInt_FromLong((long)result);
17016 {
7722248d 17017 if (temp2) delete arg2;
d14a1e28
RD
17018 }
17019 return resultobj;
17020 fail:
17021 {
7722248d 17022 if (temp2) delete arg2;
d14a1e28
RD
17023 }
17024 return NULL;
17025}
17026
17027
17028static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17029 PyObject *resultobj;
17030 wxDateTime *arg1 = (wxDateTime *) 0 ;
17031 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17032 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
17033 int result;
7722248d 17034 bool temp2 = False ;
d14a1e28
RD
17035 PyObject * obj0 = 0 ;
17036 PyObject * obj1 = 0 ;
17037 char *kwnames[] = {
17038 (char *) "self",(char *) "tz", NULL
17039 };
17040
17041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
17042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17043 if (obj1) {
17044 {
17045 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17046 temp2 = True;
d14a1e28
RD
17047 }
17048 }
17049 {
17050 PyThreadState* __tstate = wxPyBeginAllowThreads();
17051 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
17052
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 resultobj = PyInt_FromLong((long)result);
17057 {
7722248d 17058 if (temp2) delete arg2;
d14a1e28
RD
17059 }
17060 return resultobj;
17061 fail:
17062 {
7722248d 17063 if (temp2) delete arg2;
d14a1e28
RD
17064 }
17065 return NULL;
17066}
17067
17068
17069static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17070 PyObject *resultobj;
17071 wxDateTime *arg1 = (wxDateTime *) 0 ;
17072 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17073 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17074 int result;
7722248d 17075 bool temp2 = False ;
d14a1e28
RD
17076 PyObject * obj0 = 0 ;
17077 PyObject * obj1 = 0 ;
17078 char *kwnames[] = {
17079 (char *) "self",(char *) "tz", NULL
17080 };
17081
17082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
17083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17084 if (obj1) {
17085 {
17086 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17087 temp2 = True;
d14a1e28
RD
17088 }
17089 }
17090 {
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17092 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17093
17094 wxPyEndAllowThreads(__tstate);
17095 if (PyErr_Occurred()) SWIG_fail;
17096 }
17097 resultobj = PyInt_FromLong((long)result);
17098 {
7722248d 17099 if (temp2) delete arg2;
d14a1e28
RD
17100 }
17101 return resultobj;
17102 fail:
17103 {
7722248d 17104 if (temp2) delete arg2;
d14a1e28
RD
17105 }
17106 return NULL;
17107}
17108
17109
17110static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17111 PyObject *resultobj;
17112 wxDateTime *arg1 = (wxDateTime *) 0 ;
17113 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17114 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
17115 int result;
7722248d 17116 bool temp2 = False ;
d14a1e28
RD
17117 PyObject * obj0 = 0 ;
17118 PyObject * obj1 = 0 ;
17119 char *kwnames[] = {
17120 (char *) "self",(char *) "tz", NULL
17121 };
17122
17123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
17124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17125 if (obj1) {
17126 {
17127 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17128 temp2 = True;
d14a1e28
RD
17129 }
17130 }
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
17134
17135 wxPyEndAllowThreads(__tstate);
17136 if (PyErr_Occurred()) SWIG_fail;
17137 }
17138 resultobj = PyInt_FromLong((long)result);
17139 {
7722248d 17140 if (temp2) delete arg2;
d14a1e28
RD
17141 }
17142 return resultobj;
17143 fail:
17144 {
7722248d 17145 if (temp2) delete arg2;
d14a1e28
RD
17146 }
17147 return NULL;
17148}
17149
17150
17151static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj;
17153 wxDateTime *arg1 = (wxDateTime *) 0 ;
17154 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17155 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17156 int result;
7722248d 17157 bool temp2 = False ;
d14a1e28
RD
17158 PyObject * obj0 = 0 ;
17159 PyObject * obj1 = 0 ;
17160 char *kwnames[] = {
17161 (char *) "self",(char *) "tz", NULL
17162 };
17163
17164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
17165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17166 if (obj1) {
17167 {
17168 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17169 temp2 = True;
d14a1e28
RD
17170 }
17171 }
17172 {
17173 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17174 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17175
17176 wxPyEndAllowThreads(__tstate);
17177 if (PyErr_Occurred()) SWIG_fail;
17178 }
17179 resultobj = PyInt_FromLong((long)result);
17180 {
7722248d 17181 if (temp2) delete arg2;
d14a1e28
RD
17182 }
17183 return resultobj;
17184 fail:
17185 {
7722248d 17186 if (temp2) delete arg2;
d14a1e28
RD
17187 }
17188 return NULL;
17189}
17190
17191
17192static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17193 PyObject *resultobj;
17194 wxDateTime *arg1 = (wxDateTime *) 0 ;
17195 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17196 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17197 int result;
7722248d 17198 bool temp2 = False ;
d14a1e28
RD
17199 PyObject * obj0 = 0 ;
17200 PyObject * obj1 = 0 ;
17201 char *kwnames[] = {
17202 (char *) "self",(char *) "tz", NULL
17203 };
17204
17205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
17206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17207 if (obj1) {
17208 {
17209 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17210 temp2 = True;
d14a1e28
RD
17211 }
17212 }
17213 {
17214 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17215 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17216
17217 wxPyEndAllowThreads(__tstate);
17218 if (PyErr_Occurred()) SWIG_fail;
17219 }
17220 resultobj = PyInt_FromLong((long)result);
17221 {
7722248d 17222 if (temp2) delete arg2;
d14a1e28
RD
17223 }
17224 return resultobj;
17225 fail:
17226 {
7722248d 17227 if (temp2) delete arg2;
d14a1e28
RD
17228 }
17229 return NULL;
17230}
17231
17232
17233static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17234 PyObject *resultobj;
17235 wxDateTime *arg1 = (wxDateTime *) 0 ;
17236 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17237 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17238 int result;
7722248d 17239 bool temp2 = False ;
d14a1e28
RD
17240 PyObject * obj0 = 0 ;
17241 PyObject * obj1 = 0 ;
17242 char *kwnames[] = {
17243 (char *) "self",(char *) "tz", NULL
17244 };
17245
17246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
17247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17248 if (obj1) {
17249 {
17250 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17251 temp2 = True;
d14a1e28
RD
17252 }
17253 }
17254 {
17255 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17256 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17257
17258 wxPyEndAllowThreads(__tstate);
17259 if (PyErr_Occurred()) SWIG_fail;
17260 }
17261 resultobj = PyInt_FromLong((long)result);
17262 {
7722248d 17263 if (temp2) delete arg2;
d14a1e28
RD
17264 }
17265 return resultobj;
17266 fail:
17267 {
7722248d 17268 if (temp2) delete arg2;
d14a1e28
RD
17269 }
17270 return NULL;
17271}
17272
17273
17274static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17275 PyObject *resultobj;
17276 wxDateTime *arg1 = (wxDateTime *) 0 ;
17277 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17278 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17279 int result;
7722248d 17280 bool temp2 = False ;
d14a1e28
RD
17281 PyObject * obj0 = 0 ;
17282 PyObject * obj1 = 0 ;
17283 char *kwnames[] = {
17284 (char *) "self",(char *) "tz", NULL
17285 };
17286
17287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17289 if (obj1) {
17290 {
17291 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17292 temp2 = True;
d14a1e28
RD
17293 }
17294 }
17295 {
17296 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17297 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17298
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 resultobj = PyInt_FromLong((long)result);
17303 {
7722248d 17304 if (temp2) delete arg2;
d14a1e28
RD
17305 }
17306 return resultobj;
17307 fail:
17308 {
7722248d 17309 if (temp2) delete arg2;
d14a1e28
RD
17310 }
17311 return NULL;
17312}
17313
17314
17315static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17316 PyObject *resultobj;
17317 wxDateTime *arg1 = (wxDateTime *) 0 ;
17318 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
17319 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
322913ce 17320 int result;
7722248d 17321 bool temp2 = False ;
d14a1e28
RD
17322 PyObject * obj0 = 0 ;
17323 PyObject * obj1 = 0 ;
17324 char *kwnames[] = {
17325 (char *) "self",(char *) "tz", NULL
17326 };
17327
17328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
17329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17330 if (obj1) {
17331 {
17332 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
7722248d 17333 temp2 = True;
d14a1e28
RD
17334 }
17335 }
17336 {
17337 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17338 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
d14a1e28
RD
17339
17340 wxPyEndAllowThreads(__tstate);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 resultobj = PyInt_FromLong((long)result);
17344 {
7722248d 17345 if (temp2) delete arg2;
d14a1e28
RD
17346 }
17347 return resultobj;
17348 fail:
17349 {
7722248d 17350 if (temp2) delete arg2;
d14a1e28
RD
17351 }
17352 return NULL;
17353}
17354
17355
17356static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17357 PyObject *resultobj;
17358 wxDateTime *arg1 = (wxDateTime *) 0 ;
17359 int arg2 = (int) wxDateTime::Monday_First ;
17360 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
17361 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
322913ce 17362 int result;
7722248d 17363 bool temp3 = False ;
d14a1e28
RD
17364 PyObject * obj0 = 0 ;
17365 PyObject * obj2 = 0 ;
17366 char *kwnames[] = {
17367 (char *) "self",(char *) "flags",(char *) "tz", NULL
17368 };
17369
17370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfYear",kwnames,&obj0,&arg2,&obj2)) goto fail;
17371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17372 if (obj2) {
17373 {
17374 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 17375 temp3 = True;
d14a1e28
RD
17376 }
17377 }
17378 {
17379 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17380 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
d14a1e28
RD
17381
17382 wxPyEndAllowThreads(__tstate);
17383 if (PyErr_Occurred()) SWIG_fail;
17384 }
17385 resultobj = PyInt_FromLong((long)result);
17386 {
7722248d 17387 if (temp3) delete arg3;
d14a1e28
RD
17388 }
17389 return resultobj;
17390 fail:
17391 {
7722248d 17392 if (temp3) delete arg3;
d14a1e28
RD
17393 }
17394 return NULL;
17395}
17396
17397
17398static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17399 PyObject *resultobj;
17400 wxDateTime *arg1 = (wxDateTime *) 0 ;
17401 int arg2 = (int) wxDateTime::Monday_First ;
17402 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
17403 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
322913ce 17404 int result;
7722248d 17405 bool temp3 = False ;
d14a1e28
RD
17406 PyObject * obj0 = 0 ;
17407 PyObject * obj2 = 0 ;
17408 char *kwnames[] = {
17409 (char *) "self",(char *) "flags",(char *) "tz", NULL
17410 };
17411
17412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfMonth",kwnames,&obj0,&arg2,&obj2)) goto fail;
17413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17414 if (obj2) {
17415 {
17416 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 17417 temp3 = True;
d14a1e28
RD
17418 }
17419 }
17420 {
17421 PyThreadState* __tstate = wxPyBeginAllowThreads();
322913ce 17422 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
d14a1e28
RD
17423
17424 wxPyEndAllowThreads(__tstate);
17425 if (PyErr_Occurred()) SWIG_fail;
17426 }
17427 resultobj = PyInt_FromLong((long)result);
17428 {
7722248d 17429 if (temp3) delete arg3;
d14a1e28
RD
17430 }
17431 return resultobj;
17432 fail:
17433 {
7722248d 17434 if (temp3) delete arg3;
d14a1e28
RD
17435 }
17436 return NULL;
17437}
17438
17439
17440static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17441 PyObject *resultobj;
17442 wxDateTime *arg1 = (wxDateTime *) 0 ;
17443 int arg2 = (int) wxDateTime::Country_Default ;
17444 bool result;
17445 PyObject * obj0 = 0 ;
17446 char *kwnames[] = {
17447 (char *) "self",(char *) "country", NULL
17448 };
17449
17450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsWorkDay",kwnames,&obj0,&arg2)) goto fail;
17451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17452 {
17453 PyThreadState* __tstate = wxPyBeginAllowThreads();
17454 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
17455
17456 wxPyEndAllowThreads(__tstate);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 resultobj = PyInt_FromLong((long)result);
17460 return resultobj;
17461 fail:
17462 return NULL;
17463}
17464
17465
17466static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj;
17468 wxDateTime *arg1 = (wxDateTime *) 0 ;
17469 wxDateTime *arg2 = 0 ;
17470 bool result;
17471 PyObject * obj0 = 0 ;
17472 PyObject * obj1 = 0 ;
17473 char *kwnames[] = {
17474 (char *) "self",(char *) "datetime", NULL
17475 };
17476
17477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
17478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17479 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17480 if (arg2 == NULL) {
17481 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17482 }
17483 {
17484 PyThreadState* __tstate = wxPyBeginAllowThreads();
17485 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
17486
17487 wxPyEndAllowThreads(__tstate);
17488 if (PyErr_Occurred()) SWIG_fail;
17489 }
17490 resultobj = PyInt_FromLong((long)result);
17491 return resultobj;
17492 fail:
17493 return NULL;
17494}
17495
17496
17497static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
17498 PyObject *resultobj;
17499 wxDateTime *arg1 = (wxDateTime *) 0 ;
17500 wxDateTime *arg2 = 0 ;
17501 bool result;
17502 PyObject * obj0 = 0 ;
17503 PyObject * obj1 = 0 ;
17504 char *kwnames[] = {
17505 (char *) "self",(char *) "datetime", NULL
17506 };
17507
17508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
17509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17510 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17511 if (arg2 == NULL) {
17512 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17513 }
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
17517
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 resultobj = PyInt_FromLong((long)result);
17522 return resultobj;
17523 fail:
17524 return NULL;
17525}
17526
17527
17528static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
17529 PyObject *resultobj;
17530 wxDateTime *arg1 = (wxDateTime *) 0 ;
17531 wxDateTime *arg2 = 0 ;
17532 bool result;
17533 PyObject * obj0 = 0 ;
17534 PyObject * obj1 = 0 ;
17535 char *kwnames[] = {
17536 (char *) "self",(char *) "datetime", NULL
17537 };
17538
17539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
17540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17541 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17542 if (arg2 == NULL) {
17543 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17544 }
17545 {
17546 PyThreadState* __tstate = wxPyBeginAllowThreads();
17547 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
17548
17549 wxPyEndAllowThreads(__tstate);
17550 if (PyErr_Occurred()) SWIG_fail;
17551 }
17552 resultobj = PyInt_FromLong((long)result);
17553 return resultobj;
17554 fail:
17555 return NULL;
17556}
17557
17558
17559static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
17560 PyObject *resultobj;
17561 wxDateTime *arg1 = (wxDateTime *) 0 ;
17562 wxDateTime *arg2 = 0 ;
17563 wxDateTime *arg3 = 0 ;
17564 bool result;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 PyObject * obj2 = 0 ;
17568 char *kwnames[] = {
17569 (char *) "self",(char *) "t1",(char *) "t2", NULL
17570 };
17571
17572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
17573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17574 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17575 if (arg2 == NULL) {
17576 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17577 }
17578 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17579 if (arg3 == NULL) {
17580 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17581 }
17582 {
17583 PyThreadState* __tstate = wxPyBeginAllowThreads();
17584 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
17585
17586 wxPyEndAllowThreads(__tstate);
17587 if (PyErr_Occurred()) SWIG_fail;
17588 }
17589 resultobj = PyInt_FromLong((long)result);
17590 return resultobj;
17591 fail:
17592 return NULL;
17593}
17594
17595
17596static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
17597 PyObject *resultobj;
17598 wxDateTime *arg1 = (wxDateTime *) 0 ;
17599 wxDateTime *arg2 = 0 ;
17600 wxDateTime *arg3 = 0 ;
17601 bool result;
17602 PyObject * obj0 = 0 ;
17603 PyObject * obj1 = 0 ;
17604 PyObject * obj2 = 0 ;
17605 char *kwnames[] = {
17606 (char *) "self",(char *) "t1",(char *) "t2", NULL
17607 };
17608
17609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
17610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17611 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17612 if (arg2 == NULL) {
17613 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17614 }
17615 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17616 if (arg3 == NULL) {
17617 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17618 }
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
17622
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = PyInt_FromLong((long)result);
17627 return resultobj;
17628 fail:
17629 return NULL;
17630}
17631
17632
17633static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj;
17635 wxDateTime *arg1 = (wxDateTime *) 0 ;
17636 wxDateTime *arg2 = 0 ;
17637 bool result;
17638 PyObject * obj0 = 0 ;
17639 PyObject * obj1 = 0 ;
17640 char *kwnames[] = {
17641 (char *) "self",(char *) "dt", NULL
17642 };
17643
17644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
17645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17646 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17647 if (arg2 == NULL) {
17648 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17649 }
17650 {
17651 PyThreadState* __tstate = wxPyBeginAllowThreads();
17652 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
17653
17654 wxPyEndAllowThreads(__tstate);
17655 if (PyErr_Occurred()) SWIG_fail;
17656 }
17657 resultobj = PyInt_FromLong((long)result);
17658 return resultobj;
17659 fail:
17660 return NULL;
17661}
17662
17663
17664static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17665 PyObject *resultobj;
17666 wxDateTime *arg1 = (wxDateTime *) 0 ;
17667 wxDateTime *arg2 = 0 ;
17668 bool result;
17669 PyObject * obj0 = 0 ;
17670 PyObject * obj1 = 0 ;
17671 char *kwnames[] = {
17672 (char *) "self",(char *) "dt", NULL
17673 };
17674
17675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
17676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17677 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17678 if (arg2 == NULL) {
17679 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17680 }
17681 {
17682 PyThreadState* __tstate = wxPyBeginAllowThreads();
17683 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
17684
17685 wxPyEndAllowThreads(__tstate);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 }
17688 resultobj = PyInt_FromLong((long)result);
17689 return resultobj;
17690 fail:
17691 return NULL;
17692}
17693
17694
17695static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
17696 PyObject *resultobj;
17697 wxDateTime *arg1 = (wxDateTime *) 0 ;
17698 wxDateTime *arg2 = 0 ;
17699 wxTimeSpan *arg3 = 0 ;
17700 bool result;
17701 PyObject * obj0 = 0 ;
17702 PyObject * obj1 = 0 ;
17703 PyObject * obj2 = 0 ;
17704 char *kwnames[] = {
17705 (char *) "self",(char *) "dt",(char *) "ts", NULL
17706 };
17707
17708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
17709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17710 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17711 if (arg2 == NULL) {
17712 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17713 }
17714 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17715 if (arg3 == NULL) {
17716 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17717 }
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
17721
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 resultobj = PyInt_FromLong((long)result);
17726 return resultobj;
17727 fail:
17728 return NULL;
17729}
17730
17731
17732static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
17733 PyObject *resultobj;
17734 wxDateTime *arg1 = (wxDateTime *) 0 ;
17735 wxTimeSpan *arg2 = 0 ;
17736 wxDateTime *result;
17737 PyObject * obj0 = 0 ;
17738 PyObject * obj1 = 0 ;
17739 char *kwnames[] = {
17740 (char *) "self",(char *) "diff", NULL
17741 };
17742
17743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
17744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17745 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17746 if (arg2 == NULL) {
17747 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17748 }
17749 {
17750 PyThreadState* __tstate = wxPyBeginAllowThreads();
17751 {
17752 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
17753 result = (wxDateTime *) &_result_ref;
17754 }
17755
17756 wxPyEndAllowThreads(__tstate);
17757 if (PyErr_Occurred()) SWIG_fail;
17758 }
17759 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17760 return resultobj;
17761 fail:
17762 return NULL;
17763}
17764
17765
17766static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
17767 PyObject *resultobj;
17768 wxDateTime *arg1 = (wxDateTime *) 0 ;
17769 wxDateSpan *arg2 = 0 ;
17770 wxDateTime *result;
17771 PyObject * obj0 = 0 ;
17772 PyObject * obj1 = 0 ;
17773 char *kwnames[] = {
17774 (char *) "self",(char *) "diff", NULL
17775 };
17776
17777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
17778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17779 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17780 if (arg2 == NULL) {
17781 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17782 }
17783 {
17784 PyThreadState* __tstate = wxPyBeginAllowThreads();
17785 {
17786 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
17787 result = (wxDateTime *) &_result_ref;
17788 }
17789
17790 wxPyEndAllowThreads(__tstate);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17794 return resultobj;
17795 fail:
17796 return NULL;
17797}
17798
17799
17800static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
17801 PyObject *resultobj;
17802 wxDateTime *arg1 = (wxDateTime *) 0 ;
17803 wxTimeSpan *arg2 = 0 ;
17804 wxDateTime *result;
17805 PyObject * obj0 = 0 ;
17806 PyObject * obj1 = 0 ;
17807 char *kwnames[] = {
17808 (char *) "self",(char *) "diff", NULL
17809 };
17810
17811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
17812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17813 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17814 if (arg2 == NULL) {
17815 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17816 }
17817 {
17818 PyThreadState* __tstate = wxPyBeginAllowThreads();
17819 {
17820 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
17821 result = (wxDateTime *) &_result_ref;
17822 }
17823
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17828 return resultobj;
17829 fail:
17830 return NULL;
17831}
17832
17833
17834static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
17835 PyObject *resultobj;
17836 wxDateTime *arg1 = (wxDateTime *) 0 ;
17837 wxDateSpan *arg2 = 0 ;
17838 wxDateTime *result;
17839 PyObject * obj0 = 0 ;
17840 PyObject * obj1 = 0 ;
17841 char *kwnames[] = {
17842 (char *) "self",(char *) "diff", NULL
17843 };
17844
17845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
17846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17847 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17848 if (arg2 == NULL) {
17849 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17850 }
17851 {
17852 PyThreadState* __tstate = wxPyBeginAllowThreads();
17853 {
17854 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
17855 result = (wxDateTime *) &_result_ref;
17856 }
17857
17858 wxPyEndAllowThreads(__tstate);
17859 if (PyErr_Occurred()) SWIG_fail;
17860 }
17861 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17862 return resultobj;
17863 fail:
17864 return NULL;
17865}
17866
17867
17868static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj;
17870 wxDateTime *arg1 = (wxDateTime *) 0 ;
17871 wxDateTime *arg2 = 0 ;
17872 wxTimeSpan result;
17873 PyObject * obj0 = 0 ;
17874 PyObject * obj1 = 0 ;
17875 char *kwnames[] = {
17876 (char *) "self",(char *) "dt", NULL
17877 };
17878
17879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
17880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17881 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17882 if (arg2 == NULL) {
17883 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17884 }
17885 {
17886 PyThreadState* __tstate = wxPyBeginAllowThreads();
17887 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
17888
17889 wxPyEndAllowThreads(__tstate);
17890 if (PyErr_Occurred()) SWIG_fail;
17891 }
17892 {
17893 wxTimeSpan * resultptr;
17894 resultptr = new wxTimeSpan((wxTimeSpan &) result);
17895 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
17896 }
17897 return resultobj;
17898 fail:
17899 return NULL;
17900}
17901
17902
17903static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
17904 PyObject *resultobj;
17905 wxDateTime *arg1 = (wxDateTime *) 0 ;
17906 wxTimeSpan *arg2 = 0 ;
17907 wxDateTime *result;
17908 PyObject * obj0 = 0 ;
17909 PyObject * obj1 = 0 ;
17910
17911 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
17912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17913 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17914 if (arg2 == NULL) {
17915 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17916 }
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 {
17920 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
17921 result = (wxDateTime *) &_result_ref;
17922 }
17923
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17928 return resultobj;
17929 fail:
17930 return NULL;
17931}
17932
17933
17934static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
17935 PyObject *resultobj;
17936 wxDateTime *arg1 = (wxDateTime *) 0 ;
17937 wxDateSpan *arg2 = 0 ;
17938 wxDateTime *result;
17939 PyObject * obj0 = 0 ;
17940 PyObject * obj1 = 0 ;
17941
17942 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
17943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17944 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17945 if (arg2 == NULL) {
17946 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17947 }
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 {
17951 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
17952 result = (wxDateTime *) &_result_ref;
17953 }
17954
17955 wxPyEndAllowThreads(__tstate);
17956 if (PyErr_Occurred()) SWIG_fail;
17957 }
17958 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
17959 return resultobj;
17960 fail:
17961 return NULL;
17962}
17963
17964
17965static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
17966 int argc;
17967 PyObject *argv[3];
17968 int ii;
17969
17970 argc = PyObject_Length(args);
17971 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
17972 argv[ii] = PyTuple_GetItem(args,ii);
17973 }
17974 if (argc == 2) {
17975 int _v;
17976 {
17977 void *ptr;
17978 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
17979 _v = 0;
17980 PyErr_Clear();
17981 } else {
17982 _v = 1;
17983 }
17984 }
17985 if (_v) {
17986 {
17987 void *ptr;
17988 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
17989 _v = 0;
17990 PyErr_Clear();
17991 } else {
17992 _v = 1;
17993 }
17994 }
17995 if (_v) {
17996 return _wrap_DateTime___iadd____SWIG_0(self,args);
17997 }
17998 }
17999 }
18000 if (argc == 2) {
18001 int _v;
18002 {
18003 void *ptr;
18004 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18005 _v = 0;
18006 PyErr_Clear();
18007 } else {
18008 _v = 1;
18009 }
18010 }
18011 if (_v) {
18012 {
18013 void *ptr;
18014 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
18015 _v = 0;
18016 PyErr_Clear();
18017 } else {
18018 _v = 1;
18019 }
18020 }
18021 if (_v) {
18022 return _wrap_DateTime___iadd____SWIG_1(self,args);
18023 }
18024 }
18025 }
18026
18027 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
18028 return NULL;
18029}
18030
18031
18032static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
18033 PyObject *resultobj;
18034 wxDateTime *arg1 = (wxDateTime *) 0 ;
18035 wxTimeSpan *arg2 = 0 ;
18036 wxDateTime *result;
18037 PyObject * obj0 = 0 ;
18038 PyObject * obj1 = 0 ;
18039
18040 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
18041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18042 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18043 if (arg2 == NULL) {
18044 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18045 }
18046 {
18047 PyThreadState* __tstate = wxPyBeginAllowThreads();
18048 {
18049 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
18050 result = (wxDateTime *) &_result_ref;
18051 }
18052
18053 wxPyEndAllowThreads(__tstate);
18054 if (PyErr_Occurred()) SWIG_fail;
18055 }
18056 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
18057 return resultobj;
18058 fail:
18059 return NULL;
18060}
18061
18062
18063static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
18064 PyObject *resultobj;
18065 wxDateTime *arg1 = (wxDateTime *) 0 ;
18066 wxDateSpan *arg2 = 0 ;
18067 wxDateTime *result;
18068 PyObject * obj0 = 0 ;
18069 PyObject * obj1 = 0 ;
18070
18071 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
18072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18073 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18074 if (arg2 == NULL) {
18075 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18076 }
18077 {
18078 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 {
18080 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
18081 result = (wxDateTime *) &_result_ref;
18082 }
18083
18084 wxPyEndAllowThreads(__tstate);
18085 if (PyErr_Occurred()) SWIG_fail;
18086 }
18087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0);
18088 return resultobj;
18089 fail:
18090 return NULL;
18091}
18092
18093
18094static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
18095 int argc;
18096 PyObject *argv[3];
18097 int ii;
18098
18099 argc = PyObject_Length(args);
18100 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
18101 argv[ii] = PyTuple_GetItem(args,ii);
18102 }
18103 if (argc == 2) {
18104 int _v;
18105 {
18106 void *ptr;
18107 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18108 _v = 0;
18109 PyErr_Clear();
18110 } else {
18111 _v = 1;
18112 }
18113 }
18114 if (_v) {
18115 {
18116 void *ptr;
18117 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
18118 _v = 0;
18119 PyErr_Clear();
18120 } else {
18121 _v = 1;
18122 }
18123 }
18124 if (_v) {
18125 return _wrap_DateTime___isub____SWIG_0(self,args);
18126 }
18127 }
18128 }
18129 if (argc == 2) {
18130 int _v;
18131 {
18132 void *ptr;
18133 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18134 _v = 0;
18135 PyErr_Clear();
18136 } else {
18137 _v = 1;
18138 }
18139 }
18140 if (_v) {
18141 {
18142 void *ptr;
18143 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
18144 _v = 0;
18145 PyErr_Clear();
18146 } else {
18147 _v = 1;
18148 }
18149 }
18150 if (_v) {
18151 return _wrap_DateTime___isub____SWIG_1(self,args);
18152 }
18153 }
18154 }
18155
18156 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
18157 return NULL;
18158}
18159
18160
18161static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
18162 PyObject *resultobj;
18163 wxDateTime *arg1 = (wxDateTime *) 0 ;
18164 wxTimeSpan *arg2 = 0 ;
18165 wxDateTime result;
18166 PyObject * obj0 = 0 ;
18167 PyObject * obj1 = 0 ;
18168
18169 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
18170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18171 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18172 if (arg2 == NULL) {
18173 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18174 }
18175 {
18176 PyThreadState* __tstate = wxPyBeginAllowThreads();
18177 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
18178
18179 wxPyEndAllowThreads(__tstate);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 }
18182 {
18183 wxDateTime * resultptr;
18184 resultptr = new wxDateTime((wxDateTime &) result);
18185 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18186 }
18187 return resultobj;
18188 fail:
18189 return NULL;
18190}
18191
18192
18193static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
18194 PyObject *resultobj;
18195 wxDateTime *arg1 = (wxDateTime *) 0 ;
18196 wxDateSpan *arg2 = 0 ;
18197 wxDateTime result;
18198 PyObject * obj0 = 0 ;
18199 PyObject * obj1 = 0 ;
18200
18201 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
18202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18203 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18204 if (arg2 == NULL) {
18205 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18206 }
18207 {
18208 PyThreadState* __tstate = wxPyBeginAllowThreads();
18209 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
18210
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 {
18215 wxDateTime * resultptr;
18216 resultptr = new wxDateTime((wxDateTime &) result);
18217 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18218 }
18219 return resultobj;
18220 fail:
18221 return NULL;
18222}
18223
18224
18225static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
18226 int argc;
18227 PyObject *argv[3];
18228 int ii;
18229
18230 argc = PyObject_Length(args);
18231 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
18232 argv[ii] = PyTuple_GetItem(args,ii);
18233 }
18234 if (argc == 2) {
18235 int _v;
18236 {
18237 void *ptr;
18238 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18239 _v = 0;
18240 PyErr_Clear();
18241 } else {
18242 _v = 1;
18243 }
18244 }
18245 if (_v) {
18246 {
18247 void *ptr;
18248 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
18249 _v = 0;
18250 PyErr_Clear();
18251 } else {
18252 _v = 1;
18253 }
18254 }
18255 if (_v) {
18256 return _wrap_DateTime___add____SWIG_0(self,args);
18257 }
18258 }
18259 }
18260 if (argc == 2) {
18261 int _v;
18262 {
18263 void *ptr;
18264 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18265 _v = 0;
18266 PyErr_Clear();
18267 } else {
18268 _v = 1;
18269 }
18270 }
18271 if (_v) {
18272 {
18273 void *ptr;
18274 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
18275 _v = 0;
18276 PyErr_Clear();
18277 } else {
18278 _v = 1;
18279 }
18280 }
18281 if (_v) {
18282 return _wrap_DateTime___add____SWIG_1(self,args);
18283 }
18284 }
18285 }
18286
18287 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
18288 return NULL;
18289}
18290
18291
18292static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
18293 PyObject *resultobj;
18294 wxDateTime *arg1 = (wxDateTime *) 0 ;
18295 wxDateTime *arg2 = 0 ;
18296 wxTimeSpan result;
18297 PyObject * obj0 = 0 ;
18298 PyObject * obj1 = 0 ;
18299
18300 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
18301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18302 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18303 if (arg2 == NULL) {
18304 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18305 }
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
18309
18310 wxPyEndAllowThreads(__tstate);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 {
18314 wxTimeSpan * resultptr;
18315 resultptr = new wxTimeSpan((wxTimeSpan &) result);
18316 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
18317 }
18318 return resultobj;
18319 fail:
18320 return NULL;
18321}
18322
18323
18324static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
18325 PyObject *resultobj;
18326 wxDateTime *arg1 = (wxDateTime *) 0 ;
18327 wxTimeSpan *arg2 = 0 ;
18328 wxDateTime result;
18329 PyObject * obj0 = 0 ;
18330 PyObject * obj1 = 0 ;
18331
18332 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
18333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18334 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18335 if (arg2 == NULL) {
18336 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18337 }
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
18341
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 {
18346 wxDateTime * resultptr;
18347 resultptr = new wxDateTime((wxDateTime &) result);
18348 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18349 }
18350 return resultobj;
18351 fail:
18352 return NULL;
18353}
18354
18355
18356static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
18357 PyObject *resultobj;
18358 wxDateTime *arg1 = (wxDateTime *) 0 ;
18359 wxDateSpan *arg2 = 0 ;
18360 wxDateTime result;
18361 PyObject * obj0 = 0 ;
18362 PyObject * obj1 = 0 ;
18363
18364 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
18365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18366 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18367 if (arg2 == NULL) {
18368 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18369 }
18370 {
18371 PyThreadState* __tstate = wxPyBeginAllowThreads();
18372 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
18373
18374 wxPyEndAllowThreads(__tstate);
18375 if (PyErr_Occurred()) SWIG_fail;
18376 }
18377 {
18378 wxDateTime * resultptr;
18379 resultptr = new wxDateTime((wxDateTime &) result);
18380 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
18381 }
18382 return resultobj;
18383 fail:
18384 return NULL;
18385}
18386
18387
18388static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
18389 int argc;
18390 PyObject *argv[3];
18391 int ii;
18392
18393 argc = PyObject_Length(args);
18394 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
18395 argv[ii] = PyTuple_GetItem(args,ii);
18396 }
18397 if (argc == 2) {
18398 int _v;
18399 {
18400 void *ptr;
18401 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18402 _v = 0;
18403 PyErr_Clear();
18404 } else {
18405 _v = 1;
18406 }
18407 }
18408 if (_v) {
18409 {
18410 void *ptr;
18411 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18412 _v = 0;
18413 PyErr_Clear();
18414 } else {
18415 _v = 1;
18416 }
18417 }
18418 if (_v) {
18419 return _wrap_DateTime___sub____SWIG_0(self,args);
18420 }
18421 }
18422 }
18423 if (argc == 2) {
18424 int _v;
18425 {
18426 void *ptr;
18427 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18428 _v = 0;
18429 PyErr_Clear();
18430 } else {
18431 _v = 1;
18432 }
18433 }
18434 if (_v) {
18435 {
18436 void *ptr;
18437 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
18438 _v = 0;
18439 PyErr_Clear();
18440 } else {
18441 _v = 1;
18442 }
18443 }
18444 if (_v) {
18445 return _wrap_DateTime___sub____SWIG_1(self,args);
18446 }
18447 }
18448 }
18449 if (argc == 2) {
18450 int _v;
18451 {
18452 void *ptr;
18453 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
18454 _v = 0;
18455 PyErr_Clear();
18456 } else {
18457 _v = 1;
18458 }
18459 }
18460 if (_v) {
18461 {
18462 void *ptr;
18463 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
18464 _v = 0;
18465 PyErr_Clear();
18466 } else {
18467 _v = 1;
18468 }
18469 }
18470 if (_v) {
18471 return _wrap_DateTime___sub____SWIG_2(self,args);
18472 }
18473 }
18474 }
18475
18476 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
18477 return NULL;
18478}
18479
18480
18481static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
18482 PyObject *resultobj;
18483 wxDateTime *arg1 = (wxDateTime *) 0 ;
18484 wxDateTime *arg2 = 0 ;
18485 bool result;
18486 PyObject * obj0 = 0 ;
18487 PyObject * obj1 = 0 ;
18488
18489 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
18490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18491 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18492 if (arg2 == NULL) {
18493 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18494 }
18495 {
18496 PyThreadState* __tstate = wxPyBeginAllowThreads();
18497 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2);
18498
18499 wxPyEndAllowThreads(__tstate);
18500 if (PyErr_Occurred()) SWIG_fail;
18501 }
18502 resultobj = PyInt_FromLong((long)result);
18503 return resultobj;
18504 fail:
18505 return NULL;
18506}
18507
18508
18509static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
18510 PyObject *resultobj;
18511 wxDateTime *arg1 = (wxDateTime *) 0 ;
18512 wxDateTime *arg2 = 0 ;
18513 bool result;
18514 PyObject * obj0 = 0 ;
18515 PyObject * obj1 = 0 ;
18516
18517 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
18518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18519 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18520 if (arg2 == NULL) {
18521 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18522 }
18523 {
18524 PyThreadState* __tstate = wxPyBeginAllowThreads();
18525 result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2);
18526
18527 wxPyEndAllowThreads(__tstate);
18528 if (PyErr_Occurred()) SWIG_fail;
18529 }
18530 resultobj = PyInt_FromLong((long)result);
18531 return resultobj;
18532 fail:
18533 return NULL;
18534}
18535
18536
18537static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
18538 PyObject *resultobj;
18539 wxDateTime *arg1 = (wxDateTime *) 0 ;
18540 wxDateTime *arg2 = 0 ;
18541 bool result;
18542 PyObject * obj0 = 0 ;
18543 PyObject * obj1 = 0 ;
18544
18545 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
18546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18547 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18548 if (arg2 == NULL) {
18549 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18550 }
18551 {
18552 PyThreadState* __tstate = wxPyBeginAllowThreads();
18553 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2);
18554
18555 wxPyEndAllowThreads(__tstate);
18556 if (PyErr_Occurred()) SWIG_fail;
18557 }
18558 resultobj = PyInt_FromLong((long)result);
18559 return resultobj;
18560 fail:
18561 return NULL;
18562}
18563
18564
18565static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
18566 PyObject *resultobj;
18567 wxDateTime *arg1 = (wxDateTime *) 0 ;
18568 wxDateTime *arg2 = 0 ;
18569 bool result;
18570 PyObject * obj0 = 0 ;
18571 PyObject * obj1 = 0 ;
18572
18573 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
18574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18575 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18576 if (arg2 == NULL) {
18577 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18578 }
18579 {
18580 PyThreadState* __tstate = wxPyBeginAllowThreads();
18581 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2);
18582
18583 wxPyEndAllowThreads(__tstate);
18584 if (PyErr_Occurred()) SWIG_fail;
18585 }
18586 resultobj = PyInt_FromLong((long)result);
18587 return resultobj;
18588 fail:
18589 return NULL;
18590}
18591
18592
18593static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
18594 PyObject *resultobj;
18595 wxDateTime *arg1 = (wxDateTime *) 0 ;
18596 wxDateTime *arg2 = 0 ;
18597 bool result;
18598 PyObject * obj0 = 0 ;
18599 PyObject * obj1 = 0 ;
18600
18601 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
18602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18603 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18604 if (arg2 == NULL) {
18605 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18606 }
18607 {
18608 PyThreadState* __tstate = wxPyBeginAllowThreads();
18609 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2);
18610
18611 wxPyEndAllowThreads(__tstate);
18612 if (PyErr_Occurred()) SWIG_fail;
18613 }
18614 resultobj = PyInt_FromLong((long)result);
18615 return resultobj;
18616 fail:
18617 return NULL;
18618}
18619
18620
18621static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
18622 PyObject *resultobj;
18623 wxDateTime *arg1 = (wxDateTime *) 0 ;
18624 wxDateTime *arg2 = 0 ;
18625 bool result;
18626 PyObject * obj0 = 0 ;
18627 PyObject * obj1 = 0 ;
18628
18629 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
18630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18631 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18632 if (arg2 == NULL) {
18633 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18634 }
18635 {
18636 PyThreadState* __tstate = wxPyBeginAllowThreads();
18637 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2);
18638
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = PyInt_FromLong((long)result);
18643 return resultobj;
18644 fail:
18645 return NULL;
18646}
18647
18648
18649static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj;
18651 wxDateTime *arg1 = (wxDateTime *) 0 ;
18652 wxString *arg2 = 0 ;
18653 int result;
e811c8ce 18654 bool temp2 = False ;
d14a1e28
RD
18655 PyObject * obj0 = 0 ;
18656 PyObject * obj1 = 0 ;
18657 char *kwnames[] = {
18658 (char *) "self",(char *) "date", NULL
18659 };
18660
18661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
18662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18663 {
18664 arg2 = wxString_in_helper(obj1);
18665 if (arg2 == NULL) SWIG_fail;
e811c8ce 18666 temp2 = True;
d14a1e28
RD
18667 }
18668 {
18669 PyThreadState* __tstate = wxPyBeginAllowThreads();
18670 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
18671
18672 wxPyEndAllowThreads(__tstate);
18673 if (PyErr_Occurred()) SWIG_fail;
18674 }
18675 resultobj = PyInt_FromLong((long)result);
18676 {
18677 if (temp2)
18678 delete arg2;
18679 }
18680 return resultobj;
18681 fail:
18682 {
18683 if (temp2)
18684 delete arg2;
18685 }
18686 return NULL;
18687}
18688
18689
18690static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
18691 PyObject *resultobj;
18692 wxDateTime *arg1 = (wxDateTime *) 0 ;
18693 wxString *arg2 = 0 ;
18694 wxString const &arg3_defvalue = wxPyDateFormatStr ;
18695 wxString *arg3 = (wxString *) &arg3_defvalue ;
18696 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
18697 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
18698 int result;
e811c8ce
RD
18699 bool temp2 = False ;
18700 bool temp3 = False ;
d14a1e28
RD
18701 PyObject * obj0 = 0 ;
18702 PyObject * obj1 = 0 ;
18703 PyObject * obj2 = 0 ;
18704 PyObject * obj3 = 0 ;
18705 char *kwnames[] = {
18706 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
18707 };
18708
18709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18711 {
18712 arg2 = wxString_in_helper(obj1);
18713 if (arg2 == NULL) SWIG_fail;
e811c8ce 18714 temp2 = True;
d14a1e28
RD
18715 }
18716 if (obj2) {
18717 {
18718 arg3 = wxString_in_helper(obj2);
18719 if (arg3 == NULL) SWIG_fail;
e811c8ce 18720 temp3 = True;
d14a1e28
RD
18721 }
18722 }
18723 if (obj3) {
18724 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18725 if (arg4 == NULL) {
18726 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18727 }
18728 }
18729 {
18730 PyThreadState* __tstate = wxPyBeginAllowThreads();
18731 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
18732
18733 wxPyEndAllowThreads(__tstate);
18734 if (PyErr_Occurred()) SWIG_fail;
18735 }
18736 resultobj = PyInt_FromLong((long)result);
18737 {
18738 if (temp2)
18739 delete arg2;
18740 }
18741 {
18742 if (temp3)
18743 delete arg3;
18744 }
18745 return resultobj;
18746 fail:
18747 {
18748 if (temp2)
18749 delete arg2;
18750 }
18751 {
18752 if (temp3)
18753 delete arg3;
18754 }
18755 return NULL;
18756}
18757
18758
18759static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18760 PyObject *resultobj;
18761 wxDateTime *arg1 = (wxDateTime *) 0 ;
18762 wxString *arg2 = 0 ;
18763 int result;
e811c8ce 18764 bool temp2 = False ;
d14a1e28
RD
18765 PyObject * obj0 = 0 ;
18766 PyObject * obj1 = 0 ;
18767 char *kwnames[] = {
18768 (char *) "self",(char *) "datetime", NULL
18769 };
18770
18771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
18772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18773 {
18774 arg2 = wxString_in_helper(obj1);
18775 if (arg2 == NULL) SWIG_fail;
e811c8ce 18776 temp2 = True;
d14a1e28
RD
18777 }
18778 {
18779 PyThreadState* __tstate = wxPyBeginAllowThreads();
18780 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
18781
18782 wxPyEndAllowThreads(__tstate);
18783 if (PyErr_Occurred()) SWIG_fail;
18784 }
18785 resultobj = PyInt_FromLong((long)result);
18786 {
18787 if (temp2)
18788 delete arg2;
18789 }
18790 return resultobj;
18791 fail:
18792 {
18793 if (temp2)
18794 delete arg2;
18795 }
18796 return NULL;
18797}
18798
18799
18800static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
18801 PyObject *resultobj;
18802 wxDateTime *arg1 = (wxDateTime *) 0 ;
18803 wxString *arg2 = 0 ;
18804 int result;
e811c8ce 18805 bool temp2 = False ;
d14a1e28
RD
18806 PyObject * obj0 = 0 ;
18807 PyObject * obj1 = 0 ;
18808 char *kwnames[] = {
18809 (char *) "self",(char *) "date", NULL
18810 };
18811
18812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
18813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18814 {
18815 arg2 = wxString_in_helper(obj1);
18816 if (arg2 == NULL) SWIG_fail;
e811c8ce 18817 temp2 = True;
d14a1e28
RD
18818 }
18819 {
18820 PyThreadState* __tstate = wxPyBeginAllowThreads();
18821 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
18822
18823 wxPyEndAllowThreads(__tstate);
18824 if (PyErr_Occurred()) SWIG_fail;
18825 }
18826 resultobj = PyInt_FromLong((long)result);
18827 {
18828 if (temp2)
18829 delete arg2;
18830 }
18831 return resultobj;
18832 fail:
18833 {
18834 if (temp2)
18835 delete arg2;
18836 }
18837 return NULL;
18838}
18839
18840
18841static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18842 PyObject *resultobj;
18843 wxDateTime *arg1 = (wxDateTime *) 0 ;
18844 wxString *arg2 = 0 ;
18845 int result;
e811c8ce 18846 bool temp2 = False ;
d14a1e28
RD
18847 PyObject * obj0 = 0 ;
18848 PyObject * obj1 = 0 ;
18849 char *kwnames[] = {
18850 (char *) "self",(char *) "time", NULL
18851 };
18852
18853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
18854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18855 {
18856 arg2 = wxString_in_helper(obj1);
18857 if (arg2 == NULL) SWIG_fail;
e811c8ce 18858 temp2 = True;
d14a1e28
RD
18859 }
18860 {
18861 PyThreadState* __tstate = wxPyBeginAllowThreads();
18862 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
18863
18864 wxPyEndAllowThreads(__tstate);
18865 if (PyErr_Occurred()) SWIG_fail;
18866 }
18867 resultobj = PyInt_FromLong((long)result);
18868 {
18869 if (temp2)
18870 delete arg2;
18871 }
18872 return resultobj;
18873 fail:
18874 {
18875 if (temp2)
18876 delete arg2;
18877 }
18878 return NULL;
18879}
18880
18881
18882static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
18883 PyObject *resultobj;
18884 wxDateTime *arg1 = (wxDateTime *) 0 ;
18885 wxString const &arg2_defvalue = wxPyDateFormatStr ;
18886 wxString *arg2 = (wxString *) &arg2_defvalue ;
18887 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
18888 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
18889 wxString result;
e811c8ce 18890 bool temp2 = False ;
7722248d 18891 bool temp3 = False ;
d14a1e28
RD
18892 PyObject * obj0 = 0 ;
18893 PyObject * obj1 = 0 ;
18894 PyObject * obj2 = 0 ;
18895 char *kwnames[] = {
18896 (char *) "self",(char *) "format",(char *) "tz", NULL
18897 };
18898
18899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
18900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18901 if (obj1) {
18902 {
18903 arg2 = wxString_in_helper(obj1);
18904 if (arg2 == NULL) SWIG_fail;
e811c8ce 18905 temp2 = True;
d14a1e28
RD
18906 }
18907 }
18908 if (obj2) {
18909 {
18910 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
7722248d 18911 temp3 = True;
d14a1e28
RD
18912 }
18913 }
18914 {
18915 PyThreadState* __tstate = wxPyBeginAllowThreads();
18916 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
18917
18918 wxPyEndAllowThreads(__tstate);
18919 if (PyErr_Occurred()) SWIG_fail;
18920 }
18921 {
18922#if wxUSE_UNICODE
18923 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18924#else
18925 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18926#endif
18927 }
18928 {
18929 if (temp2)
18930 delete arg2;
18931 }
18932 {
7722248d 18933 if (temp3) delete arg3;
d14a1e28
RD
18934 }
18935 return resultobj;
18936 fail:
18937 {
18938 if (temp2)
18939 delete arg2;
18940 }
18941 {
7722248d 18942 if (temp3) delete arg3;
d14a1e28
RD
18943 }
18944 return NULL;
18945}
18946
18947
18948static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj;
18950 wxDateTime *arg1 = (wxDateTime *) 0 ;
18951 wxString result;
18952 PyObject * obj0 = 0 ;
18953 char *kwnames[] = {
18954 (char *) "self", NULL
18955 };
18956
18957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
18958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18959 {
18960 PyThreadState* __tstate = wxPyBeginAllowThreads();
18961 result = ((wxDateTime const *)arg1)->FormatDate();
18962
18963 wxPyEndAllowThreads(__tstate);
18964 if (PyErr_Occurred()) SWIG_fail;
18965 }
18966 {
18967#if wxUSE_UNICODE
18968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18969#else
18970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18971#endif
18972 }
18973 return resultobj;
18974 fail:
18975 return NULL;
18976}
18977
18978
18979static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18980 PyObject *resultobj;
18981 wxDateTime *arg1 = (wxDateTime *) 0 ;
18982 wxString result;
18983 PyObject * obj0 = 0 ;
18984 char *kwnames[] = {
18985 (char *) "self", NULL
18986 };
18987
18988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
18989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18990 {
18991 PyThreadState* __tstate = wxPyBeginAllowThreads();
18992 result = ((wxDateTime const *)arg1)->FormatTime();
18993
18994 wxPyEndAllowThreads(__tstate);
18995 if (PyErr_Occurred()) SWIG_fail;
18996 }
18997 {
18998#if wxUSE_UNICODE
18999 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19000#else
19001 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19002#endif
19003 }
19004 return resultobj;
19005 fail:
19006 return NULL;
19007}
19008
19009
19010static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
19011 PyObject *resultobj;
19012 wxDateTime *arg1 = (wxDateTime *) 0 ;
19013 wxString result;
19014 PyObject * obj0 = 0 ;
19015 char *kwnames[] = {
19016 (char *) "self", NULL
19017 };
19018
19019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
19020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19021 {
19022 PyThreadState* __tstate = wxPyBeginAllowThreads();
19023 result = ((wxDateTime const *)arg1)->FormatISODate();
19024
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 {
19029#if wxUSE_UNICODE
19030 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19031#else
19032 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19033#endif
19034 }
19035 return resultobj;
19036 fail:
19037 return NULL;
19038}
19039
19040
19041static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19042 PyObject *resultobj;
19043 wxDateTime *arg1 = (wxDateTime *) 0 ;
19044 wxString result;
19045 PyObject * obj0 = 0 ;
19046 char *kwnames[] = {
19047 (char *) "self", NULL
19048 };
19049
19050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
19051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19052 {
19053 PyThreadState* __tstate = wxPyBeginAllowThreads();
19054 result = ((wxDateTime const *)arg1)->FormatISOTime();
19055
19056 wxPyEndAllowThreads(__tstate);
19057 if (PyErr_Occurred()) SWIG_fail;
19058 }
19059 {
19060#if wxUSE_UNICODE
19061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19062#else
19063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19064#endif
19065 }
19066 return resultobj;
19067 fail:
19068 return NULL;
19069}
19070
19071
19072static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
19073 PyObject *obj;
19074 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19075 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
19076 Py_INCREF(obj);
19077 return Py_BuildValue((char *)"");
19078}
19079static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
19080 PyObject *resultobj;
19081 long arg1 ;
19082 wxTimeSpan result;
19083 char *kwnames[] = {
19084 (char *) "sec", NULL
19085 };
19086
19087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Seconds",kwnames,&arg1)) goto fail;
19088 {
19089 PyThreadState* __tstate = wxPyBeginAllowThreads();
19090 result = wxTimeSpan::Seconds(arg1);
19091
19092 wxPyEndAllowThreads(__tstate);
19093 if (PyErr_Occurred()) SWIG_fail;
19094 }
19095 {
19096 wxTimeSpan * resultptr;
19097 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19098 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19099 }
19100 return resultobj;
19101 fail:
19102 return NULL;
19103}
19104
19105
19106static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj;
19108 wxTimeSpan result;
19109 char *kwnames[] = {
19110 NULL
19111 };
19112
19113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
19114 {
19115 PyThreadState* __tstate = wxPyBeginAllowThreads();
19116 result = wxTimeSpan::Second();
19117
19118 wxPyEndAllowThreads(__tstate);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 {
19122 wxTimeSpan * resultptr;
19123 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19124 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19125 }
19126 return resultobj;
19127 fail:
19128 return NULL;
19129}
19130
19131
19132static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
19133 PyObject *resultobj;
19134 long arg1 ;
19135 wxTimeSpan result;
19136 char *kwnames[] = {
19137 (char *) "min", NULL
19138 };
19139
19140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Minutes",kwnames,&arg1)) goto fail;
19141 {
19142 PyThreadState* __tstate = wxPyBeginAllowThreads();
19143 result = wxTimeSpan::Minutes(arg1);
19144
19145 wxPyEndAllowThreads(__tstate);
19146 if (PyErr_Occurred()) SWIG_fail;
19147 }
19148 {
19149 wxTimeSpan * resultptr;
19150 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19151 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19152 }
19153 return resultobj;
19154 fail:
19155 return NULL;
19156}
19157
19158
19159static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
19160 PyObject *resultobj;
19161 wxTimeSpan result;
19162 char *kwnames[] = {
19163 NULL
19164 };
19165
19166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
19167 {
19168 PyThreadState* __tstate = wxPyBeginAllowThreads();
19169 result = wxTimeSpan::Minute();
19170
19171 wxPyEndAllowThreads(__tstate);
19172 if (PyErr_Occurred()) SWIG_fail;
19173 }
19174 {
19175 wxTimeSpan * resultptr;
19176 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19177 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19178 }
19179 return resultobj;
19180 fail:
19181 return NULL;
19182}
19183
19184
19185static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
19186 PyObject *resultobj;
19187 long arg1 ;
19188 wxTimeSpan result;
19189 char *kwnames[] = {
19190 (char *) "hours", NULL
19191 };
19192
19193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Hours",kwnames,&arg1)) goto fail;
19194 {
19195 PyThreadState* __tstate = wxPyBeginAllowThreads();
19196 result = wxTimeSpan::Hours(arg1);
19197
19198 wxPyEndAllowThreads(__tstate);
19199 if (PyErr_Occurred()) SWIG_fail;
19200 }
19201 {
19202 wxTimeSpan * resultptr;
19203 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19204 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19205 }
19206 return resultobj;
19207 fail:
19208 return NULL;
19209}
19210
19211
19212static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
19213 PyObject *resultobj;
19214 wxTimeSpan result;
19215 char *kwnames[] = {
19216 NULL
19217 };
19218
19219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
19220 {
19221 PyThreadState* __tstate = wxPyBeginAllowThreads();
19222 result = wxTimeSpan::Hour();
19223
19224 wxPyEndAllowThreads(__tstate);
19225 if (PyErr_Occurred()) SWIG_fail;
19226 }
19227 {
19228 wxTimeSpan * resultptr;
19229 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19230 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19231 }
19232 return resultobj;
19233 fail:
19234 return NULL;
19235}
19236
19237
19238static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
19239 PyObject *resultobj;
19240 long arg1 ;
19241 wxTimeSpan result;
19242 char *kwnames[] = {
19243 (char *) "days", NULL
19244 };
19245
19246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Days",kwnames,&arg1)) goto fail;
19247 {
19248 PyThreadState* __tstate = wxPyBeginAllowThreads();
19249 result = wxTimeSpan::Days(arg1);
19250
19251 wxPyEndAllowThreads(__tstate);
19252 if (PyErr_Occurred()) SWIG_fail;
19253 }
19254 {
19255 wxTimeSpan * resultptr;
19256 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19257 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19258 }
19259 return resultobj;
19260 fail:
19261 return NULL;
19262}
19263
19264
19265static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
19266 PyObject *resultobj;
19267 wxTimeSpan result;
19268 char *kwnames[] = {
19269 NULL
19270 };
19271
19272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
19273 {
19274 PyThreadState* __tstate = wxPyBeginAllowThreads();
19275 result = wxTimeSpan::Day();
19276
19277 wxPyEndAllowThreads(__tstate);
19278 if (PyErr_Occurred()) SWIG_fail;
19279 }
19280 {
19281 wxTimeSpan * resultptr;
19282 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19283 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19284 }
19285 return resultobj;
19286 fail:
19287 return NULL;
19288}
19289
19290
19291static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
19292 PyObject *resultobj;
19293 long arg1 ;
19294 wxTimeSpan result;
19295 char *kwnames[] = {
19296 (char *) "days", NULL
19297 };
19298
19299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Weeks",kwnames,&arg1)) goto fail;
19300 {
19301 PyThreadState* __tstate = wxPyBeginAllowThreads();
19302 result = wxTimeSpan::Weeks(arg1);
19303
19304 wxPyEndAllowThreads(__tstate);
19305 if (PyErr_Occurred()) SWIG_fail;
19306 }
19307 {
19308 wxTimeSpan * resultptr;
19309 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19310 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19311 }
19312 return resultobj;
19313 fail:
19314 return NULL;
19315}
19316
19317
19318static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
19319 PyObject *resultobj;
19320 wxTimeSpan result;
19321 char *kwnames[] = {
19322 NULL
19323 };
19324
19325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
19326 {
19327 PyThreadState* __tstate = wxPyBeginAllowThreads();
19328 result = wxTimeSpan::Week();
19329
19330 wxPyEndAllowThreads(__tstate);
19331 if (PyErr_Occurred()) SWIG_fail;
19332 }
19333 {
19334 wxTimeSpan * resultptr;
19335 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19336 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19337 }
19338 return resultobj;
19339 fail:
19340 return NULL;
19341}
19342
19343
19344static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
19345 PyObject *resultobj;
19346 long arg1 = (long) 0 ;
19347 long arg2 = (long) 0 ;
19348 long arg3 = (long) 0 ;
19349 long arg4 = (long) 0 ;
19350 wxTimeSpan *result;
19351 char *kwnames[] = {
19352 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
19353 };
19354
19355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|llll:new_TimeSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
19356 {
19357 PyThreadState* __tstate = wxPyBeginAllowThreads();
19358 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
19359
19360 wxPyEndAllowThreads(__tstate);
19361 if (PyErr_Occurred()) SWIG_fail;
19362 }
19363 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1);
19364 return resultobj;
19365 fail:
19366 return NULL;
19367}
19368
19369
19370static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
19371 PyObject *resultobj;
19372 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19373 PyObject * obj0 = 0 ;
19374 char *kwnames[] = {
19375 (char *) "self", NULL
19376 };
19377
19378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
19379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19380 {
19381 PyThreadState* __tstate = wxPyBeginAllowThreads();
19382 delete arg1;
19383
19384 wxPyEndAllowThreads(__tstate);
19385 if (PyErr_Occurred()) SWIG_fail;
19386 }
19387 Py_INCREF(Py_None); resultobj = Py_None;
19388 return resultobj;
19389 fail:
19390 return NULL;
19391}
19392
19393
19394static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
19395 PyObject *resultobj;
19396 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19397 wxTimeSpan *arg2 = 0 ;
19398 wxTimeSpan *result;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 char *kwnames[] = {
19402 (char *) "self",(char *) "diff", NULL
19403 };
19404
19405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
19406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19407 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19408 if (arg2 == NULL) {
19409 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19410 }
19411 {
19412 PyThreadState* __tstate = wxPyBeginAllowThreads();
19413 {
19414 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19415 result = (wxTimeSpan *) &_result_ref;
19416 }
19417
19418 wxPyEndAllowThreads(__tstate);
19419 if (PyErr_Occurred()) SWIG_fail;
19420 }
19421 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19422 return resultobj;
19423 fail:
19424 return NULL;
19425}
19426
19427
19428static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19429 PyObject *resultobj;
19430 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19431 wxTimeSpan *arg2 = 0 ;
19432 wxTimeSpan *result;
19433 PyObject * obj0 = 0 ;
19434 PyObject * obj1 = 0 ;
19435 char *kwnames[] = {
19436 (char *) "self",(char *) "diff", NULL
19437 };
19438
19439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
19440 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19441 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19442 if (arg2 == NULL) {
19443 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19444 }
19445 {
19446 PyThreadState* __tstate = wxPyBeginAllowThreads();
19447 {
19448 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19449 result = (wxTimeSpan *) &_result_ref;
19450 }
19451
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19456 return resultobj;
19457 fail:
19458 return NULL;
19459}
19460
19461
19462static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
19463 PyObject *resultobj;
19464 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19465 int arg2 ;
19466 wxTimeSpan *result;
19467 PyObject * obj0 = 0 ;
19468 char *kwnames[] = {
19469 (char *) "self",(char *) "n", NULL
19470 };
19471
19472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan_Multiply",kwnames,&obj0,&arg2)) goto fail;
19473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19474 {
19475 PyThreadState* __tstate = wxPyBeginAllowThreads();
19476 {
19477 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
19478 result = (wxTimeSpan *) &_result_ref;
19479 }
19480
19481 wxPyEndAllowThreads(__tstate);
19482 if (PyErr_Occurred()) SWIG_fail;
19483 }
19484 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19485 return resultobj;
19486 fail:
19487 return NULL;
19488}
19489
19490
19491static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
19492 PyObject *resultobj;
19493 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19494 wxTimeSpan *result;
19495 PyObject * obj0 = 0 ;
19496 char *kwnames[] = {
19497 (char *) "self", NULL
19498 };
19499
19500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
19501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19502 {
19503 PyThreadState* __tstate = wxPyBeginAllowThreads();
19504 {
19505 wxTimeSpan &_result_ref = (arg1)->Neg();
19506 result = (wxTimeSpan *) &_result_ref;
19507 }
19508
19509 wxPyEndAllowThreads(__tstate);
19510 if (PyErr_Occurred()) SWIG_fail;
19511 }
19512 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19513 return resultobj;
19514 fail:
19515 return NULL;
19516}
19517
19518
19519static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
19520 PyObject *resultobj;
19521 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19522 wxTimeSpan result;
19523 PyObject * obj0 = 0 ;
19524 char *kwnames[] = {
19525 (char *) "self", NULL
19526 };
19527
19528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
19529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 result = ((wxTimeSpan const *)arg1)->Abs();
19533
19534 wxPyEndAllowThreads(__tstate);
19535 if (PyErr_Occurred()) SWIG_fail;
19536 }
19537 {
19538 wxTimeSpan * resultptr;
19539 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19540 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19541 }
19542 return resultobj;
19543 fail:
19544 return NULL;
19545}
19546
19547
19548static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
19549 PyObject *resultobj;
19550 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19551 wxTimeSpan *arg2 = 0 ;
19552 wxTimeSpan *result;
19553 PyObject * obj0 = 0 ;
19554 PyObject * obj1 = 0 ;
19555 char *kwnames[] = {
19556 (char *) "self",(char *) "diff", NULL
19557 };
19558
19559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
19560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19561 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19562 if (arg2 == NULL) {
19563 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19564 }
19565 {
19566 PyThreadState* __tstate = wxPyBeginAllowThreads();
19567 {
19568 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19569 result = (wxTimeSpan *) &_result_ref;
19570 }
19571
19572 wxPyEndAllowThreads(__tstate);
19573 if (PyErr_Occurred()) SWIG_fail;
19574 }
19575 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19576 return resultobj;
19577 fail:
19578 return NULL;
19579}
19580
19581
19582static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
19583 PyObject *resultobj;
19584 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19585 wxTimeSpan *arg2 = 0 ;
19586 wxTimeSpan *result;
19587 PyObject * obj0 = 0 ;
19588 PyObject * obj1 = 0 ;
19589 char *kwnames[] = {
19590 (char *) "self",(char *) "diff", NULL
19591 };
19592
19593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
19594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19595 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19596 if (arg2 == NULL) {
19597 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19598 }
19599 {
19600 PyThreadState* __tstate = wxPyBeginAllowThreads();
19601 {
19602 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
19603 result = (wxTimeSpan *) &_result_ref;
19604 }
19605
19606 wxPyEndAllowThreads(__tstate);
19607 if (PyErr_Occurred()) SWIG_fail;
19608 }
19609 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19610 return resultobj;
19611 fail:
19612 return NULL;
19613}
19614
19615
19616static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
19617 PyObject *resultobj;
19618 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19619 int arg2 ;
19620 wxTimeSpan *result;
19621 PyObject * obj0 = 0 ;
19622 char *kwnames[] = {
19623 (char *) "self",(char *) "n", NULL
19624 };
19625
19626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___imul__",kwnames,&obj0,&arg2)) goto fail;
19627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19628 {
19629 PyThreadState* __tstate = wxPyBeginAllowThreads();
19630 {
19631 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
19632 result = (wxTimeSpan *) &_result_ref;
19633 }
19634
19635 wxPyEndAllowThreads(__tstate);
19636 if (PyErr_Occurred()) SWIG_fail;
19637 }
19638 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19639 return resultobj;
19640 fail:
19641 return NULL;
19642}
19643
19644
19645static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
19646 PyObject *resultobj;
19647 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19648 wxTimeSpan *result;
19649 PyObject * obj0 = 0 ;
19650 char *kwnames[] = {
19651 (char *) "self", NULL
19652 };
19653
19654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
19655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19656 {
19657 PyThreadState* __tstate = wxPyBeginAllowThreads();
19658 {
19659 wxTimeSpan &_result_ref = (arg1)->operator -();
19660 result = (wxTimeSpan *) &_result_ref;
19661 }
19662
19663 wxPyEndAllowThreads(__tstate);
19664 if (PyErr_Occurred()) SWIG_fail;
19665 }
19666 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0);
19667 return resultobj;
19668 fail:
19669 return NULL;
19670}
19671
19672
19673static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
19674 PyObject *resultobj;
19675 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19676 wxTimeSpan *arg2 = 0 ;
19677 wxTimeSpan result;
19678 PyObject * obj0 = 0 ;
19679 PyObject * obj1 = 0 ;
19680 char *kwnames[] = {
19681 (char *) "self",(char *) "other", NULL
19682 };
19683
19684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
19685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19686 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19687 if (arg2 == NULL) {
19688 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19689 }
19690 {
19691 PyThreadState* __tstate = wxPyBeginAllowThreads();
19692 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
19693
19694 wxPyEndAllowThreads(__tstate);
19695 if (PyErr_Occurred()) SWIG_fail;
19696 }
19697 {
19698 wxTimeSpan * resultptr;
19699 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19700 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19701 }
19702 return resultobj;
19703 fail:
19704 return NULL;
19705}
19706
19707
19708static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
19709 PyObject *resultobj;
19710 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19711 wxTimeSpan *arg2 = 0 ;
19712 wxTimeSpan result;
19713 PyObject * obj0 = 0 ;
19714 PyObject * obj1 = 0 ;
19715 char *kwnames[] = {
19716 (char *) "self",(char *) "other", NULL
19717 };
19718
19719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
19720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19721 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19722 if (arg2 == NULL) {
19723 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19724 }
19725 {
19726 PyThreadState* __tstate = wxPyBeginAllowThreads();
19727 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
19728
19729 wxPyEndAllowThreads(__tstate);
19730 if (PyErr_Occurred()) SWIG_fail;
19731 }
19732 {
19733 wxTimeSpan * resultptr;
19734 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19735 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19736 }
19737 return resultobj;
19738 fail:
19739 return NULL;
19740}
19741
19742
19743static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
19744 PyObject *resultobj;
19745 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19746 int arg2 ;
19747 wxTimeSpan result;
19748 PyObject * obj0 = 0 ;
19749 char *kwnames[] = {
19750 (char *) "self",(char *) "n", NULL
19751 };
19752
19753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___mul__",kwnames,&obj0,&arg2)) goto fail;
19754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19755 {
19756 PyThreadState* __tstate = wxPyBeginAllowThreads();
19757 result = wxTimeSpan___mul__(arg1,arg2);
19758
19759 wxPyEndAllowThreads(__tstate);
19760 if (PyErr_Occurred()) SWIG_fail;
19761 }
19762 {
19763 wxTimeSpan * resultptr;
19764 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19765 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19766 }
19767 return resultobj;
19768 fail:
19769 return NULL;
19770}
19771
19772
19773static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
19774 PyObject *resultobj;
19775 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19776 int arg2 ;
19777 wxTimeSpan result;
19778 PyObject * obj0 = 0 ;
19779 char *kwnames[] = {
19780 (char *) "self",(char *) "n", NULL
19781 };
19782
19783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___rmul__",kwnames,&obj0,&arg2)) goto fail;
19784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19785 {
19786 PyThreadState* __tstate = wxPyBeginAllowThreads();
19787 result = wxTimeSpan___rmul__(arg1,arg2);
19788
19789 wxPyEndAllowThreads(__tstate);
19790 if (PyErr_Occurred()) SWIG_fail;
19791 }
19792 {
19793 wxTimeSpan * resultptr;
19794 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19795 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1);
19796 }
19797 return resultobj;
19798 fail:
19799 return NULL;
19800}
19801
19802
19803static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
19804 PyObject *resultobj;
19805 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19806 wxTimeSpan *arg2 = 0 ;
19807 bool result;
19808 PyObject * obj0 = 0 ;
19809 PyObject * obj1 = 0 ;
19810 char *kwnames[] = {
19811 (char *) "self",(char *) "other", NULL
19812 };
19813
19814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
19815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19816 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19817 if (arg2 == NULL) {
19818 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19819 }
19820 {
19821 PyThreadState* __tstate = wxPyBeginAllowThreads();
19822 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2);
19823
19824 wxPyEndAllowThreads(__tstate);
19825 if (PyErr_Occurred()) SWIG_fail;
19826 }
19827 resultobj = PyInt_FromLong((long)result);
19828 return resultobj;
19829 fail:
19830 return NULL;
19831}
19832
19833
19834static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
19835 PyObject *resultobj;
19836 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19837 wxTimeSpan *arg2 = 0 ;
19838 bool result;
19839 PyObject * obj0 = 0 ;
19840 PyObject * obj1 = 0 ;
19841 char *kwnames[] = {
19842 (char *) "self",(char *) "other", NULL
19843 };
19844
19845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
19846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19847 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19848 if (arg2 == NULL) {
19849 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19850 }
19851 {
19852 PyThreadState* __tstate = wxPyBeginAllowThreads();
19853 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2);
19854
19855 wxPyEndAllowThreads(__tstate);
19856 if (PyErr_Occurred()) SWIG_fail;
19857 }
19858 resultobj = PyInt_FromLong((long)result);
19859 return resultobj;
19860 fail:
19861 return NULL;
19862}
19863
19864
19865static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
19866 PyObject *resultobj;
19867 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19868 wxTimeSpan *arg2 = 0 ;
19869 bool result;
19870 PyObject * obj0 = 0 ;
19871 PyObject * obj1 = 0 ;
19872 char *kwnames[] = {
19873 (char *) "self",(char *) "other", NULL
19874 };
19875
19876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
19877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19878 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19879 if (arg2 == NULL) {
19880 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19881 }
19882 {
19883 PyThreadState* __tstate = wxPyBeginAllowThreads();
19884 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2);
19885
19886 wxPyEndAllowThreads(__tstate);
19887 if (PyErr_Occurred()) SWIG_fail;
19888 }
19889 resultobj = PyInt_FromLong((long)result);
19890 return resultobj;
19891 fail:
19892 return NULL;
19893}
19894
19895
19896static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
19897 PyObject *resultobj;
19898 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19899 wxTimeSpan *arg2 = 0 ;
19900 bool result;
19901 PyObject * obj0 = 0 ;
19902 PyObject * obj1 = 0 ;
19903 char *kwnames[] = {
19904 (char *) "self",(char *) "other", NULL
19905 };
19906
19907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
19908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19909 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19910 if (arg2 == NULL) {
19911 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19912 }
19913 {
19914 PyThreadState* __tstate = wxPyBeginAllowThreads();
19915 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2);
19916
19917 wxPyEndAllowThreads(__tstate);
19918 if (PyErr_Occurred()) SWIG_fail;
19919 }
19920 resultobj = PyInt_FromLong((long)result);
19921 return resultobj;
19922 fail:
19923 return NULL;
19924}
19925
19926
19927static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
19928 PyObject *resultobj;
19929 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19930 wxTimeSpan *arg2 = 0 ;
19931 bool result;
19932 PyObject * obj0 = 0 ;
19933 PyObject * obj1 = 0 ;
19934 char *kwnames[] = {
19935 (char *) "self",(char *) "other", NULL
19936 };
19937
19938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
19939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19940 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19941 if (arg2 == NULL) {
19942 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19943 }
19944 {
19945 PyThreadState* __tstate = wxPyBeginAllowThreads();
19946 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2);
19947
19948 wxPyEndAllowThreads(__tstate);
19949 if (PyErr_Occurred()) SWIG_fail;
19950 }
19951 resultobj = PyInt_FromLong((long)result);
19952 return resultobj;
19953 fail:
19954 return NULL;
19955}
19956
19957
19958static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
19959 PyObject *resultobj;
19960 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19961 wxTimeSpan *arg2 = 0 ;
19962 bool result;
19963 PyObject * obj0 = 0 ;
19964 PyObject * obj1 = 0 ;
19965 char *kwnames[] = {
19966 (char *) "self",(char *) "other", NULL
19967 };
19968
19969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
19970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19971 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19972 if (arg2 == NULL) {
19973 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19974 }
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2);
19978
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 resultobj = PyInt_FromLong((long)result);
19983 return resultobj;
19984 fail:
19985 return NULL;
19986}
19987
19988
19989static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
19990 PyObject *resultobj;
19991 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
19992 bool result;
19993 PyObject * obj0 = 0 ;
19994 char *kwnames[] = {
19995 (char *) "self", NULL
19996 };
19997
19998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
19999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20000 {
20001 PyThreadState* __tstate = wxPyBeginAllowThreads();
20002 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
20003
20004 wxPyEndAllowThreads(__tstate);
20005 if (PyErr_Occurred()) SWIG_fail;
20006 }
20007 resultobj = PyInt_FromLong((long)result);
20008 return resultobj;
20009 fail:
20010 return NULL;
20011}
20012
20013
20014static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
20015 PyObject *resultobj;
20016 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20017 bool result;
20018 PyObject * obj0 = 0 ;
20019 char *kwnames[] = {
20020 (char *) "self", NULL
20021 };
20022
20023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
20024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20025 {
20026 PyThreadState* __tstate = wxPyBeginAllowThreads();
20027 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
20028
20029 wxPyEndAllowThreads(__tstate);
20030 if (PyErr_Occurred()) SWIG_fail;
20031 }
20032 resultobj = PyInt_FromLong((long)result);
20033 return resultobj;
20034 fail:
20035 return NULL;
20036}
20037
20038
20039static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
20040 PyObject *resultobj;
20041 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20042 bool result;
20043 PyObject * obj0 = 0 ;
20044 char *kwnames[] = {
20045 (char *) "self", NULL
20046 };
20047
20048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
20049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20050 {
20051 PyThreadState* __tstate = wxPyBeginAllowThreads();
20052 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
20053
20054 wxPyEndAllowThreads(__tstate);
20055 if (PyErr_Occurred()) SWIG_fail;
20056 }
20057 resultobj = PyInt_FromLong((long)result);
20058 return resultobj;
20059 fail:
20060 return NULL;
20061}
20062
20063
20064static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20065 PyObject *resultobj;
20066 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20067 wxTimeSpan *arg2 = 0 ;
20068 bool result;
20069 PyObject * obj0 = 0 ;
20070 PyObject * obj1 = 0 ;
20071 char *kwnames[] = {
20072 (char *) "self",(char *) "ts", NULL
20073 };
20074
20075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
20076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20077 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20078 if (arg2 == NULL) {
20079 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20080 }
20081 {
20082 PyThreadState* __tstate = wxPyBeginAllowThreads();
20083 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
20084
20085 wxPyEndAllowThreads(__tstate);
20086 if (PyErr_Occurred()) SWIG_fail;
20087 }
20088 resultobj = PyInt_FromLong((long)result);
20089 return resultobj;
20090 fail:
20091 return NULL;
20092}
20093
20094
20095static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
20096 PyObject *resultobj;
20097 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20098 wxTimeSpan *arg2 = 0 ;
20099 bool result;
20100 PyObject * obj0 = 0 ;
20101 PyObject * obj1 = 0 ;
20102 char *kwnames[] = {
20103 (char *) "self",(char *) "ts", NULL
20104 };
20105
20106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
20107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20108 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20109 if (arg2 == NULL) {
20110 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20111 }
20112 {
20113 PyThreadState* __tstate = wxPyBeginAllowThreads();
20114 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
20115
20116 wxPyEndAllowThreads(__tstate);
20117 if (PyErr_Occurred()) SWIG_fail;
20118 }
20119 resultobj = PyInt_FromLong((long)result);
20120 return resultobj;
20121 fail:
20122 return NULL;
20123}
20124
20125
20126static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
20127 PyObject *resultobj;
20128 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20129 wxTimeSpan *arg2 = 0 ;
20130 bool result;
20131 PyObject * obj0 = 0 ;
20132 PyObject * obj1 = 0 ;
20133 char *kwnames[] = {
20134 (char *) "self",(char *) "t", NULL
20135 };
20136
20137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
20138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20139 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20140 if (arg2 == NULL) {
20141 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20142 }
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
20146
20147 wxPyEndAllowThreads(__tstate);
20148 if (PyErr_Occurred()) SWIG_fail;
20149 }
20150 resultobj = PyInt_FromLong((long)result);
20151 return resultobj;
20152 fail:
20153 return NULL;
20154}
20155
20156
20157static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
20158 PyObject *resultobj;
20159 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20160 int result;
20161 PyObject * obj0 = 0 ;
20162 char *kwnames[] = {
20163 (char *) "self", NULL
20164 };
20165
20166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
20167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20168 {
20169 PyThreadState* __tstate = wxPyBeginAllowThreads();
20170 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
20171
20172 wxPyEndAllowThreads(__tstate);
20173 if (PyErr_Occurred()) SWIG_fail;
20174 }
20175 resultobj = PyInt_FromLong((long)result);
20176 return resultobj;
20177 fail:
20178 return NULL;
20179}
20180
20181
20182static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
20183 PyObject *resultobj;
20184 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20185 int result;
20186 PyObject * obj0 = 0 ;
20187 char *kwnames[] = {
20188 (char *) "self", NULL
20189 };
20190
20191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
20192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20193 {
20194 PyThreadState* __tstate = wxPyBeginAllowThreads();
20195 result = (int)((wxTimeSpan const *)arg1)->GetDays();
20196
20197 wxPyEndAllowThreads(__tstate);
20198 if (PyErr_Occurred()) SWIG_fail;
20199 }
20200 resultobj = PyInt_FromLong((long)result);
20201 return resultobj;
20202 fail:
20203 return NULL;
20204}
20205
20206
20207static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
20208 PyObject *resultobj;
20209 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20210 int result;
20211 PyObject * obj0 = 0 ;
20212 char *kwnames[] = {
20213 (char *) "self", NULL
20214 };
20215
20216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
20217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20218 {
20219 PyThreadState* __tstate = wxPyBeginAllowThreads();
20220 result = (int)((wxTimeSpan const *)arg1)->GetHours();
20221
20222 wxPyEndAllowThreads(__tstate);
20223 if (PyErr_Occurred()) SWIG_fail;
20224 }
20225 resultobj = PyInt_FromLong((long)result);
20226 return resultobj;
20227 fail:
20228 return NULL;
20229}
20230
20231
20232static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj;
20234 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20235 int result;
20236 PyObject * obj0 = 0 ;
20237 char *kwnames[] = {
20238 (char *) "self", NULL
20239 };
20240
20241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
20242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20243 {
20244 PyThreadState* __tstate = wxPyBeginAllowThreads();
20245 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
20246
20247 wxPyEndAllowThreads(__tstate);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 }
20250 resultobj = PyInt_FromLong((long)result);
20251 return resultobj;
20252 fail:
20253 return NULL;
20254}
20255
20256
20257static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
20258 PyObject *resultobj;
20259 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20260 wxLongLong result;
20261 PyObject * obj0 = 0 ;
20262 char *kwnames[] = {
20263 (char *) "self", NULL
20264 };
20265
20266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
20267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20268 {
20269 PyThreadState* __tstate = wxPyBeginAllowThreads();
20270 result = ((wxTimeSpan const *)arg1)->GetSeconds();
20271
20272 wxPyEndAllowThreads(__tstate);
20273 if (PyErr_Occurred()) SWIG_fail;
20274 }
20275 {
20276 PyObject *hi, *lo, *shifter, *shifted;
20277 hi = PyLong_FromLong( (&result)->GetHi() );
20278 lo = PyLong_FromLong( (&result)->GetLo() );
20279 shifter = PyLong_FromLong(32);
20280 shifted = PyNumber_Lshift(hi, shifter);
20281 resultobj = PyNumber_Or(shifted, lo);
20282 Py_DECREF(hi);
20283 Py_DECREF(lo);
20284 Py_DECREF(shifter);
20285 Py_DECREF(shifted);
20286 }
20287 return resultobj;
20288 fail:
20289 return NULL;
20290}
20291
20292
20293static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
20294 PyObject *resultobj;
20295 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20296 wxLongLong result;
20297 PyObject * obj0 = 0 ;
20298 char *kwnames[] = {
20299 (char *) "self", NULL
20300 };
20301
20302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
20303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20304 {
20305 PyThreadState* __tstate = wxPyBeginAllowThreads();
20306 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
20307
20308 wxPyEndAllowThreads(__tstate);
20309 if (PyErr_Occurred()) SWIG_fail;
20310 }
20311 {
20312 PyObject *hi, *lo, *shifter, *shifted;
20313 hi = PyLong_FromLong( (&result)->GetHi() );
20314 lo = PyLong_FromLong( (&result)->GetLo() );
20315 shifter = PyLong_FromLong(32);
20316 shifted = PyNumber_Lshift(hi, shifter);
20317 resultobj = PyNumber_Or(shifted, lo);
20318 Py_DECREF(hi);
20319 Py_DECREF(lo);
20320 Py_DECREF(shifter);
20321 Py_DECREF(shifted);
20322 }
20323 return resultobj;
20324 fail:
20325 return NULL;
20326}
20327
20328
20329static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20330 PyObject *resultobj;
20331 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
20332 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
20333 wxString *arg2 = (wxString *) &arg2_defvalue ;
20334 wxString result;
e811c8ce 20335 bool temp2 = False ;
d14a1e28
RD
20336 PyObject * obj0 = 0 ;
20337 PyObject * obj1 = 0 ;
20338 char *kwnames[] = {
20339 (char *) "self",(char *) "format", NULL
20340 };
20341
20342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
20343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20344 if (obj1) {
20345 {
20346 arg2 = wxString_in_helper(obj1);
20347 if (arg2 == NULL) SWIG_fail;
e811c8ce 20348 temp2 = True;
d14a1e28
RD
20349 }
20350 }
20351 {
20352 PyThreadState* __tstate = wxPyBeginAllowThreads();
20353 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
20354
20355 wxPyEndAllowThreads(__tstate);
20356 if (PyErr_Occurred()) SWIG_fail;
20357 }
20358 {
20359#if wxUSE_UNICODE
20360 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20361#else
20362 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20363#endif
20364 }
20365 {
20366 if (temp2)
20367 delete arg2;
20368 }
20369 return resultobj;
20370 fail:
20371 {
20372 if (temp2)
20373 delete arg2;
20374 }
20375 return NULL;
20376}
20377
20378
20379static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
20380 PyObject *obj;
20381 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20382 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
20383 Py_INCREF(obj);
20384 return Py_BuildValue((char *)"");
20385}
20386static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
20387 PyObject *resultobj;
20388 int arg1 = (int) 0 ;
20389 int arg2 = (int) 0 ;
20390 int arg3 = (int) 0 ;
20391 int arg4 = (int) 0 ;
20392 wxDateSpan *result;
20393 char *kwnames[] = {
20394 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
20395 };
20396
20397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_DateSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail;
20398 {
20399 PyThreadState* __tstate = wxPyBeginAllowThreads();
20400 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
20401
20402 wxPyEndAllowThreads(__tstate);
20403 if (PyErr_Occurred()) SWIG_fail;
20404 }
20405 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1);
20406 return resultobj;
20407 fail:
20408 return NULL;
20409}
20410
20411
20412static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
20413 PyObject *resultobj;
20414 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20415 PyObject * obj0 = 0 ;
20416 char *kwnames[] = {
20417 (char *) "self", NULL
20418 };
20419
20420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
20421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20422 {
20423 PyThreadState* __tstate = wxPyBeginAllowThreads();
20424 delete arg1;
20425
20426 wxPyEndAllowThreads(__tstate);
20427 if (PyErr_Occurred()) SWIG_fail;
20428 }
20429 Py_INCREF(Py_None); resultobj = Py_None;
20430 return resultobj;
20431 fail:
20432 return NULL;
20433}
20434
20435
20436static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
20437 PyObject *resultobj;
20438 int arg1 ;
20439 wxDateSpan result;
20440 char *kwnames[] = {
20441 (char *) "days", NULL
20442 };
20443
20444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Days",kwnames,&arg1)) goto fail;
20445 {
20446 PyThreadState* __tstate = wxPyBeginAllowThreads();
20447 result = wxDateSpan::Days(arg1);
20448
20449 wxPyEndAllowThreads(__tstate);
20450 if (PyErr_Occurred()) SWIG_fail;
20451 }
20452 {
20453 wxDateSpan * resultptr;
20454 resultptr = new wxDateSpan((wxDateSpan &) result);
20455 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20456 }
20457 return resultobj;
20458 fail:
20459 return NULL;
20460}
20461
20462
20463static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
20464 PyObject *resultobj;
20465 wxDateSpan result;
20466 char *kwnames[] = {
20467 NULL
20468 };
20469
20470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
20471 {
20472 PyThreadState* __tstate = wxPyBeginAllowThreads();
20473 result = wxDateSpan::Day();
20474
20475 wxPyEndAllowThreads(__tstate);
20476 if (PyErr_Occurred()) SWIG_fail;
20477 }
20478 {
20479 wxDateSpan * resultptr;
20480 resultptr = new wxDateSpan((wxDateSpan &) result);
20481 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20482 }
20483 return resultobj;
20484 fail:
20485 return NULL;
20486}
20487
20488
20489static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
20490 PyObject *resultobj;
20491 int arg1 ;
20492 wxDateSpan result;
20493 char *kwnames[] = {
20494 (char *) "weeks", NULL
20495 };
20496
20497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Weeks",kwnames,&arg1)) goto fail;
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 result = wxDateSpan::Weeks(arg1);
20501
20502 wxPyEndAllowThreads(__tstate);
20503 if (PyErr_Occurred()) SWIG_fail;
20504 }
20505 {
20506 wxDateSpan * resultptr;
20507 resultptr = new wxDateSpan((wxDateSpan &) result);
20508 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20509 }
20510 return resultobj;
20511 fail:
20512 return NULL;
20513}
20514
20515
20516static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
20517 PyObject *resultobj;
20518 wxDateSpan result;
20519 char *kwnames[] = {
20520 NULL
20521 };
20522
20523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
20524 {
20525 PyThreadState* __tstate = wxPyBeginAllowThreads();
20526 result = wxDateSpan::Week();
20527
20528 wxPyEndAllowThreads(__tstate);
20529 if (PyErr_Occurred()) SWIG_fail;
20530 }
20531 {
20532 wxDateSpan * resultptr;
20533 resultptr = new wxDateSpan((wxDateSpan &) result);
20534 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20535 }
20536 return resultobj;
20537 fail:
20538 return NULL;
20539}
20540
20541
20542static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
20543 PyObject *resultobj;
20544 int arg1 ;
20545 wxDateSpan result;
20546 char *kwnames[] = {
20547 (char *) "mon", NULL
20548 };
20549
20550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Months",kwnames,&arg1)) goto fail;
20551 {
20552 PyThreadState* __tstate = wxPyBeginAllowThreads();
20553 result = wxDateSpan::Months(arg1);
20554
20555 wxPyEndAllowThreads(__tstate);
20556 if (PyErr_Occurred()) SWIG_fail;
20557 }
20558 {
20559 wxDateSpan * resultptr;
20560 resultptr = new wxDateSpan((wxDateSpan &) result);
20561 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20562 }
20563 return resultobj;
20564 fail:
20565 return NULL;
20566}
20567
20568
20569static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
20570 PyObject *resultobj;
20571 wxDateSpan result;
20572 char *kwnames[] = {
20573 NULL
20574 };
20575
20576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
20577 {
20578 PyThreadState* __tstate = wxPyBeginAllowThreads();
20579 result = wxDateSpan::Month();
20580
20581 wxPyEndAllowThreads(__tstate);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 {
20585 wxDateSpan * resultptr;
20586 resultptr = new wxDateSpan((wxDateSpan &) result);
20587 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20588 }
20589 return resultobj;
20590 fail:
20591 return NULL;
20592}
20593
20594
20595static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
20596 PyObject *resultobj;
20597 int arg1 ;
20598 wxDateSpan result;
20599 char *kwnames[] = {
20600 (char *) "years", NULL
20601 };
20602
20603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Years",kwnames,&arg1)) goto fail;
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 result = wxDateSpan::Years(arg1);
20607
20608 wxPyEndAllowThreads(__tstate);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 }
20611 {
20612 wxDateSpan * resultptr;
20613 resultptr = new wxDateSpan((wxDateSpan &) result);
20614 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20615 }
20616 return resultobj;
20617 fail:
20618 return NULL;
20619}
20620
20621
20622static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
20623 PyObject *resultobj;
20624 wxDateSpan result;
20625 char *kwnames[] = {
20626 NULL
20627 };
20628
20629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
20630 {
20631 PyThreadState* __tstate = wxPyBeginAllowThreads();
20632 result = wxDateSpan::Year();
20633
20634 wxPyEndAllowThreads(__tstate);
20635 if (PyErr_Occurred()) SWIG_fail;
20636 }
20637 {
20638 wxDateSpan * resultptr;
20639 resultptr = new wxDateSpan((wxDateSpan &) result);
20640 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
20641 }
20642 return resultobj;
20643 fail:
20644 return NULL;
20645}
20646
20647
20648static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
20649 PyObject *resultobj;
20650 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20651 int arg2 ;
20652 wxDateSpan *result;
20653 PyObject * obj0 = 0 ;
20654 char *kwnames[] = {
20655 (char *) "self",(char *) "n", NULL
20656 };
20657
20658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetYears",kwnames,&obj0,&arg2)) goto fail;
20659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20660 {
20661 PyThreadState* __tstate = wxPyBeginAllowThreads();
20662 {
20663 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
20664 result = (wxDateSpan *) &_result_ref;
20665 }
20666
20667 wxPyEndAllowThreads(__tstate);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 }
20670 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20671 return resultobj;
20672 fail:
20673 return NULL;
20674}
20675
20676
20677static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
20678 PyObject *resultobj;
20679 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20680 int arg2 ;
20681 wxDateSpan *result;
20682 PyObject * obj0 = 0 ;
20683 char *kwnames[] = {
20684 (char *) "self",(char *) "n", NULL
20685 };
20686
20687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetMonths",kwnames,&obj0,&arg2)) goto fail;
20688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20689 {
20690 PyThreadState* __tstate = wxPyBeginAllowThreads();
20691 {
20692 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
20693 result = (wxDateSpan *) &_result_ref;
20694 }
20695
20696 wxPyEndAllowThreads(__tstate);
20697 if (PyErr_Occurred()) SWIG_fail;
20698 }
20699 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20700 return resultobj;
20701 fail:
20702 return NULL;
20703}
20704
20705
20706static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
20707 PyObject *resultobj;
20708 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20709 int arg2 ;
20710 wxDateSpan *result;
20711 PyObject * obj0 = 0 ;
20712 char *kwnames[] = {
20713 (char *) "self",(char *) "n", NULL
20714 };
20715
20716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetWeeks",kwnames,&obj0,&arg2)) goto fail;
20717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20718 {
20719 PyThreadState* __tstate = wxPyBeginAllowThreads();
20720 {
20721 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
20722 result = (wxDateSpan *) &_result_ref;
20723 }
20724
20725 wxPyEndAllowThreads(__tstate);
20726 if (PyErr_Occurred()) SWIG_fail;
20727 }
20728 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20729 return resultobj;
20730 fail:
20731 return NULL;
20732}
20733
20734
20735static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
20736 PyObject *resultobj;
20737 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20738 int arg2 ;
20739 wxDateSpan *result;
20740 PyObject * obj0 = 0 ;
20741 char *kwnames[] = {
20742 (char *) "self",(char *) "n", NULL
20743 };
20744
20745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetDays",kwnames,&obj0,&arg2)) goto fail;
20746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20747 {
20748 PyThreadState* __tstate = wxPyBeginAllowThreads();
20749 {
20750 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
20751 result = (wxDateSpan *) &_result_ref;
20752 }
20753
20754 wxPyEndAllowThreads(__tstate);
20755 if (PyErr_Occurred()) SWIG_fail;
20756 }
20757 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20758 return resultobj;
20759 fail:
20760 return NULL;
20761}
20762
20763
20764static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
20765 PyObject *resultobj;
20766 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20767 int result;
20768 PyObject * obj0 = 0 ;
20769 char *kwnames[] = {
20770 (char *) "self", NULL
20771 };
20772
20773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
20774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20775 {
20776 PyThreadState* __tstate = wxPyBeginAllowThreads();
20777 result = (int)((wxDateSpan const *)arg1)->GetYears();
20778
20779 wxPyEndAllowThreads(__tstate);
20780 if (PyErr_Occurred()) SWIG_fail;
20781 }
20782 resultobj = PyInt_FromLong((long)result);
20783 return resultobj;
20784 fail:
20785 return NULL;
20786}
20787
20788
20789static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
20790 PyObject *resultobj;
20791 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20792 int result;
20793 PyObject * obj0 = 0 ;
20794 char *kwnames[] = {
20795 (char *) "self", NULL
20796 };
20797
20798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
20799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20800 {
20801 PyThreadState* __tstate = wxPyBeginAllowThreads();
20802 result = (int)((wxDateSpan const *)arg1)->GetMonths();
20803
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = PyInt_FromLong((long)result);
20808 return resultobj;
20809 fail:
20810 return NULL;
20811}
20812
20813
20814static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
20815 PyObject *resultobj;
20816 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20817 int result;
20818 PyObject * obj0 = 0 ;
20819 char *kwnames[] = {
20820 (char *) "self", NULL
20821 };
20822
20823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
20824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20825 {
20826 PyThreadState* __tstate = wxPyBeginAllowThreads();
20827 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
20828
20829 wxPyEndAllowThreads(__tstate);
20830 if (PyErr_Occurred()) SWIG_fail;
20831 }
20832 resultobj = PyInt_FromLong((long)result);
20833 return resultobj;
20834 fail:
20835 return NULL;
20836}
20837
20838
20839static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
20840 PyObject *resultobj;
20841 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20842 int result;
20843 PyObject * obj0 = 0 ;
20844 char *kwnames[] = {
20845 (char *) "self", NULL
20846 };
20847
20848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
20849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20850 {
20851 PyThreadState* __tstate = wxPyBeginAllowThreads();
20852 result = (int)((wxDateSpan const *)arg1)->GetDays();
20853
20854 wxPyEndAllowThreads(__tstate);
20855 if (PyErr_Occurred()) SWIG_fail;
20856 }
20857 resultobj = PyInt_FromLong((long)result);
20858 return resultobj;
20859 fail:
20860 return NULL;
20861}
20862
20863
20864static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
20865 PyObject *resultobj;
20866 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20867 int result;
20868 PyObject * obj0 = 0 ;
20869 char *kwnames[] = {
20870 (char *) "self", NULL
20871 };
20872
20873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
20874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20875 {
20876 PyThreadState* __tstate = wxPyBeginAllowThreads();
20877 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
20878
20879 wxPyEndAllowThreads(__tstate);
20880 if (PyErr_Occurred()) SWIG_fail;
20881 }
20882 resultobj = PyInt_FromLong((long)result);
20883 return resultobj;
20884 fail:
20885 return NULL;
20886}
20887
20888
20889static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
20890 PyObject *resultobj;
20891 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20892 wxDateSpan *arg2 = 0 ;
20893 wxDateSpan *result;
20894 PyObject * obj0 = 0 ;
20895 PyObject * obj1 = 0 ;
20896 char *kwnames[] = {
20897 (char *) "self",(char *) "other", NULL
20898 };
20899
20900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
20901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20902 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20903 if (arg2 == NULL) {
20904 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20905 }
20906 {
20907 PyThreadState* __tstate = wxPyBeginAllowThreads();
20908 {
20909 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20910 result = (wxDateSpan *) &_result_ref;
20911 }
20912
20913 wxPyEndAllowThreads(__tstate);
20914 if (PyErr_Occurred()) SWIG_fail;
20915 }
20916 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20917 return resultobj;
20918 fail:
20919 return NULL;
20920}
20921
20922
20923static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20924 PyObject *resultobj;
20925 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20926 wxDateSpan *arg2 = 0 ;
20927 wxDateSpan *result;
20928 PyObject * obj0 = 0 ;
20929 PyObject * obj1 = 0 ;
20930 char *kwnames[] = {
20931 (char *) "self",(char *) "other", NULL
20932 };
20933
20934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
20935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20936 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20937 if (arg2 == NULL) {
20938 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20939 }
20940 {
20941 PyThreadState* __tstate = wxPyBeginAllowThreads();
20942 {
20943 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20944 result = (wxDateSpan *) &_result_ref;
20945 }
20946
20947 wxPyEndAllowThreads(__tstate);
20948 if (PyErr_Occurred()) SWIG_fail;
20949 }
20950 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20951 return resultobj;
20952 fail:
20953 return NULL;
20954}
20955
20956
20957static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
20958 PyObject *resultobj;
20959 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20960 wxDateSpan *result;
20961 PyObject * obj0 = 0 ;
20962 char *kwnames[] = {
20963 (char *) "self", NULL
20964 };
20965
20966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
20967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20968 {
20969 PyThreadState* __tstate = wxPyBeginAllowThreads();
20970 {
20971 wxDateSpan &_result_ref = (arg1)->Neg();
20972 result = (wxDateSpan *) &_result_ref;
20973 }
20974
20975 wxPyEndAllowThreads(__tstate);
20976 if (PyErr_Occurred()) SWIG_fail;
20977 }
20978 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
20979 return resultobj;
20980 fail:
20981 return NULL;
20982}
20983
20984
20985static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
20986 PyObject *resultobj;
20987 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
20988 int arg2 ;
20989 wxDateSpan *result;
20990 PyObject * obj0 = 0 ;
20991 char *kwnames[] = {
20992 (char *) "self",(char *) "factor", NULL
20993 };
20994
20995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_Multiply",kwnames,&obj0,&arg2)) goto fail;
20996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 {
21000 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
21001 result = (wxDateSpan *) &_result_ref;
21002 }
21003
21004 wxPyEndAllowThreads(__tstate);
21005 if (PyErr_Occurred()) SWIG_fail;
21006 }
21007 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21008 return resultobj;
21009 fail:
21010 return NULL;
21011}
21012
21013
21014static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21015 PyObject *resultobj;
21016 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21017 wxDateSpan *arg2 = 0 ;
21018 wxDateSpan *result;
21019 PyObject * obj0 = 0 ;
21020 PyObject * obj1 = 0 ;
21021 char *kwnames[] = {
21022 (char *) "self",(char *) "other", NULL
21023 };
21024
21025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21027 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21028 if (arg2 == NULL) {
21029 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21030 }
21031 {
21032 PyThreadState* __tstate = wxPyBeginAllowThreads();
21033 {
21034 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
21035 result = (wxDateSpan *) &_result_ref;
21036 }
21037
21038 wxPyEndAllowThreads(__tstate);
21039 if (PyErr_Occurred()) SWIG_fail;
21040 }
21041 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21042 return resultobj;
21043 fail:
21044 return NULL;
21045}
21046
21047
21048static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21049 PyObject *resultobj;
21050 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21051 wxDateSpan *arg2 = 0 ;
21052 wxDateSpan *result;
21053 PyObject * obj0 = 0 ;
21054 PyObject * obj1 = 0 ;
21055 char *kwnames[] = {
21056 (char *) "self",(char *) "other", NULL
21057 };
21058
21059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21061 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21062 if (arg2 == NULL) {
21063 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21064 }
21065 {
21066 PyThreadState* __tstate = wxPyBeginAllowThreads();
21067 {
21068 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
21069 result = (wxDateSpan *) &_result_ref;
21070 }
21071
21072 wxPyEndAllowThreads(__tstate);
21073 if (PyErr_Occurred()) SWIG_fail;
21074 }
21075 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21076 return resultobj;
21077 fail:
21078 return NULL;
21079}
21080
21081
21082static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21083 PyObject *resultobj;
21084 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21085 wxDateSpan *result;
21086 PyObject * obj0 = 0 ;
21087 char *kwnames[] = {
21088 (char *) "self", NULL
21089 };
21090
21091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
21092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 {
21096 wxDateSpan &_result_ref = (arg1)->operator -();
21097 result = (wxDateSpan *) &_result_ref;
21098 }
21099
21100 wxPyEndAllowThreads(__tstate);
21101 if (PyErr_Occurred()) SWIG_fail;
21102 }
21103 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21104 return resultobj;
21105 fail:
21106 return NULL;
21107}
21108
21109
21110static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21111 PyObject *resultobj;
21112 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21113 int arg2 ;
21114 wxDateSpan *result;
21115 PyObject * obj0 = 0 ;
21116 char *kwnames[] = {
21117 (char *) "self",(char *) "factor", NULL
21118 };
21119
21120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___imul__",kwnames,&obj0,&arg2)) goto fail;
21121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21122 {
21123 PyThreadState* __tstate = wxPyBeginAllowThreads();
21124 {
21125 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
21126 result = (wxDateSpan *) &_result_ref;
21127 }
21128
21129 wxPyEndAllowThreads(__tstate);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 }
21132 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0);
21133 return resultobj;
21134 fail:
21135 return NULL;
21136}
21137
21138
21139static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21140 PyObject *resultobj;
21141 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21142 wxDateSpan *arg2 = 0 ;
21143 wxDateSpan result;
21144 PyObject * obj0 = 0 ;
21145 PyObject * obj1 = 0 ;
21146 char *kwnames[] = {
21147 (char *) "self",(char *) "other", NULL
21148 };
21149
21150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21152 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21153 if (arg2 == NULL) {
21154 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21155 }
21156 {
21157 PyThreadState* __tstate = wxPyBeginAllowThreads();
21158 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
21159
21160 wxPyEndAllowThreads(__tstate);
21161 if (PyErr_Occurred()) SWIG_fail;
21162 }
21163 {
21164 wxDateSpan * resultptr;
21165 resultptr = new wxDateSpan((wxDateSpan &) result);
21166 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
21167 }
21168 return resultobj;
21169 fail:
21170 return NULL;
21171}
21172
21173
21174static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj;
21176 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21177 wxDateSpan *arg2 = 0 ;
21178 wxDateSpan result;
21179 PyObject * obj0 = 0 ;
21180 PyObject * obj1 = 0 ;
21181 char *kwnames[] = {
21182 (char *) "self",(char *) "other", NULL
21183 };
21184
21185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21187 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21188 if (arg2 == NULL) {
21189 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21190 }
21191 {
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
21193 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
21194
21195 wxPyEndAllowThreads(__tstate);
21196 if (PyErr_Occurred()) SWIG_fail;
21197 }
21198 {
21199 wxDateSpan * resultptr;
21200 resultptr = new wxDateSpan((wxDateSpan &) result);
21201 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
21202 }
21203 return resultobj;
21204 fail:
21205 return NULL;
21206}
21207
21208
21209static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21210 PyObject *resultobj;
21211 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21212 int arg2 ;
21213 wxDateSpan result;
21214 PyObject * obj0 = 0 ;
21215 char *kwnames[] = {
21216 (char *) "self",(char *) "n", NULL
21217 };
21218
21219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___mul__",kwnames,&obj0,&arg2)) goto fail;
21220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21221 {
21222 PyThreadState* __tstate = wxPyBeginAllowThreads();
21223 result = wxDateSpan___mul__(arg1,arg2);
21224
21225 wxPyEndAllowThreads(__tstate);
21226 if (PyErr_Occurred()) SWIG_fail;
21227 }
21228 {
21229 wxDateSpan * resultptr;
21230 resultptr = new wxDateSpan((wxDateSpan &) result);
21231 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
21232 }
21233 return resultobj;
21234 fail:
21235 return NULL;
21236}
21237
21238
21239static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21240 PyObject *resultobj;
21241 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21242 int arg2 ;
21243 wxDateSpan result;
21244 PyObject * obj0 = 0 ;
21245 char *kwnames[] = {
21246 (char *) "self",(char *) "n", NULL
21247 };
21248
21249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___rmul__",kwnames,&obj0,&arg2)) goto fail;
21250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21251 {
21252 PyThreadState* __tstate = wxPyBeginAllowThreads();
21253 result = wxDateSpan___rmul__(arg1,arg2);
21254
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 {
21259 wxDateSpan * resultptr;
21260 resultptr = new wxDateSpan((wxDateSpan &) result);
21261 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1);
21262 }
21263 return resultobj;
21264 fail:
21265 return NULL;
21266}
21267
21268
21269static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
21270 PyObject *resultobj;
21271 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21272 wxDateSpan *arg2 = 0 ;
21273 bool result;
21274 PyObject * obj0 = 0 ;
21275 PyObject * obj1 = 0 ;
21276 char *kwnames[] = {
21277 (char *) "self",(char *) "other", NULL
21278 };
21279
21280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
21281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21282 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21283 if (arg2 == NULL) {
21284 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21285 }
21286 {
21287 PyThreadState* __tstate = wxPyBeginAllowThreads();
21288 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2);
21289
21290 wxPyEndAllowThreads(__tstate);
21291 if (PyErr_Occurred()) SWIG_fail;
21292 }
21293 resultobj = PyInt_FromLong((long)result);
21294 return resultobj;
21295 fail:
21296 return NULL;
21297}
21298
21299
21300static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
21301 PyObject *resultobj;
21302 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
21303 wxDateSpan *arg2 = 0 ;
21304 bool result;
21305 PyObject * obj0 = 0 ;
21306 PyObject * obj1 = 0 ;
21307 char *kwnames[] = {
21308 (char *) "self",(char *) "other", NULL
21309 };
21310
21311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
21312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21313 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21314 if (arg2 == NULL) {
21315 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21316 }
21317 {
21318 PyThreadState* __tstate = wxPyBeginAllowThreads();
21319 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2);
21320
21321 wxPyEndAllowThreads(__tstate);
21322 if (PyErr_Occurred()) SWIG_fail;
21323 }
21324 resultobj = PyInt_FromLong((long)result);
21325 return resultobj;
21326 fail:
21327 return NULL;
21328}
21329
21330
21331static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
21332 PyObject *obj;
21333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21334 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
21335 Py_INCREF(obj);
21336 return Py_BuildValue((char *)"");
21337}
21338static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21339 PyObject *resultobj;
21340 long result;
21341 char *kwnames[] = {
21342 NULL
21343 };
21344
21345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
21346 {
21347 PyThreadState* __tstate = wxPyBeginAllowThreads();
21348 result = (long)wxGetLocalTime();
21349
21350 wxPyEndAllowThreads(__tstate);
21351 if (PyErr_Occurred()) SWIG_fail;
21352 }
21353 resultobj = PyInt_FromLong((long)result);
21354 return resultobj;
21355 fail:
21356 return NULL;
21357}
21358
21359
21360static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21361 PyObject *resultobj;
21362 long result;
21363 char *kwnames[] = {
21364 NULL
21365 };
21366
21367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
21368 {
21369 PyThreadState* __tstate = wxPyBeginAllowThreads();
21370 result = (long)wxGetUTCTime();
21371
21372 wxPyEndAllowThreads(__tstate);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 }
21375 resultobj = PyInt_FromLong((long)result);
21376 return resultobj;
21377 fail:
21378 return NULL;
21379}
21380
21381
21382static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21383 PyObject *resultobj;
21384 long result;
21385 char *kwnames[] = {
21386 NULL
21387 };
21388
21389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
21390 {
21391 PyThreadState* __tstate = wxPyBeginAllowThreads();
21392 result = (long)wxGetCurrentTime();
21393
21394 wxPyEndAllowThreads(__tstate);
21395 if (PyErr_Occurred()) SWIG_fail;
21396 }
21397 resultobj = PyInt_FromLong((long)result);
21398 return resultobj;
21399 fail:
21400 return NULL;
21401}
21402
21403
21404static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
21405 PyObject *resultobj;
21406 wxLongLong result;
21407 char *kwnames[] = {
21408 NULL
21409 };
21410
21411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
21412 {
21413 PyThreadState* __tstate = wxPyBeginAllowThreads();
21414 result = wxGetLocalTimeMillis();
21415
21416 wxPyEndAllowThreads(__tstate);
21417 if (PyErr_Occurred()) SWIG_fail;
21418 }
21419 {
21420 PyObject *hi, *lo, *shifter, *shifted;
21421 hi = PyLong_FromLong( (&result)->GetHi() );
21422 lo = PyLong_FromLong( (&result)->GetLo() );
21423 shifter = PyLong_FromLong(32);
21424 shifted = PyNumber_Lshift(hi, shifter);
21425 resultobj = PyNumber_Or(shifted, lo);
21426 Py_DECREF(hi);
21427 Py_DECREF(lo);
21428 Py_DECREF(shifter);
21429 Py_DECREF(shifted);
21430 }
21431 return resultobj;
21432 fail:
21433 return NULL;
21434}
21435
21436
21437static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21438 PyObject *resultobj;
21439 int arg1 ;
21440 wxDataFormat *result;
21441 char *kwnames[] = {
21442 (char *) "type", NULL
21443 };
21444
21445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_DataFormat",kwnames,&arg1)) goto fail;
21446 {
21447 PyThreadState* __tstate = wxPyBeginAllowThreads();
21448 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
21449
21450 wxPyEndAllowThreads(__tstate);
21451 if (PyErr_Occurred()) SWIG_fail;
21452 }
21453 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1);
21454 return resultobj;
21455 fail:
21456 return NULL;
21457}
21458
21459
21460static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21461 PyObject *resultobj;
21462 wxString *arg1 = 0 ;
21463 wxDataFormat *result;
e811c8ce 21464 bool temp1 = False ;
d14a1e28
RD
21465 PyObject * obj0 = 0 ;
21466 char *kwnames[] = {
21467 (char *) "format", NULL
21468 };
21469
21470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
21471 {
21472 arg1 = wxString_in_helper(obj0);
21473 if (arg1 == NULL) SWIG_fail;
e811c8ce 21474 temp1 = True;
d14a1e28
RD
21475 }
21476 {
21477 PyThreadState* __tstate = wxPyBeginAllowThreads();
21478 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
21479
21480 wxPyEndAllowThreads(__tstate);
21481 if (PyErr_Occurred()) SWIG_fail;
21482 }
21483 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1);
21484 {
21485 if (temp1)
21486 delete arg1;
21487 }
21488 return resultobj;
21489 fail:
21490 {
21491 if (temp1)
21492 delete arg1;
21493 }
21494 return NULL;
21495}
21496
21497
21498static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21499 PyObject *resultobj;
21500 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21501 PyObject * obj0 = 0 ;
21502 char *kwnames[] = {
21503 (char *) "self", NULL
21504 };
21505
21506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
21507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21508 {
21509 PyThreadState* __tstate = wxPyBeginAllowThreads();
21510 delete arg1;
21511
21512 wxPyEndAllowThreads(__tstate);
21513 if (PyErr_Occurred()) SWIG_fail;
21514 }
21515 Py_INCREF(Py_None); resultobj = Py_None;
21516 return resultobj;
21517 fail:
21518 return NULL;
21519}
21520
21521
21522static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
21523 PyObject *resultobj;
21524 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21525 int arg2 ;
21526 bool result;
21527 PyObject * obj0 = 0 ;
21528
21529 if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___eq__",&obj0,&arg2)) goto fail;
21530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21531 {
21532 PyThreadState* __tstate = wxPyBeginAllowThreads();
21533 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
21534
21535 wxPyEndAllowThreads(__tstate);
21536 if (PyErr_Occurred()) SWIG_fail;
21537 }
21538 resultobj = PyInt_FromLong((long)result);
21539 return resultobj;
21540 fail:
21541 return NULL;
21542}
21543
21544
21545static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
21546 PyObject *resultobj;
21547 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21548 int arg2 ;
21549 bool result;
21550 PyObject * obj0 = 0 ;
21551
21552 if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___ne__",&obj0,&arg2)) goto fail;
21553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21554 {
21555 PyThreadState* __tstate = wxPyBeginAllowThreads();
21556 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
21557
21558 wxPyEndAllowThreads(__tstate);
21559 if (PyErr_Occurred()) SWIG_fail;
21560 }
21561 resultobj = PyInt_FromLong((long)result);
21562 return resultobj;
21563 fail:
21564 return NULL;
21565}
21566
21567
21568static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
21569 PyObject *resultobj;
21570 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21571 wxDataFormat *arg2 = 0 ;
21572 bool result;
21573 PyObject * obj0 = 0 ;
21574 PyObject * obj1 = 0 ;
21575
21576 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
21577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21578 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21579 if (arg2 == NULL) {
21580 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21581 }
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
21585
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 resultobj = PyInt_FromLong((long)result);
21590 return resultobj;
21591 fail:
21592 return NULL;
21593}
21594
21595
21596static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
21597 int argc;
21598 PyObject *argv[3];
21599 int ii;
21600
21601 argc = PyObject_Length(args);
21602 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
21603 argv[ii] = PyTuple_GetItem(args,ii);
21604 }
21605 if (argc == 2) {
21606 int _v;
21607 {
21608 void *ptr;
21609 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21610 _v = 0;
21611 PyErr_Clear();
21612 } else {
21613 _v = 1;
21614 }
21615 }
21616 if (_v) {
21617 {
21618 void *ptr;
21619 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21620 _v = 0;
21621 PyErr_Clear();
21622 } else {
21623 _v = 1;
21624 }
21625 }
21626 if (_v) {
21627 return _wrap_DataFormat___eq____SWIG_1(self,args);
21628 }
21629 }
21630 }
21631 if (argc == 2) {
21632 int _v;
21633 {
21634 void *ptr;
21635 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21636 _v = 0;
21637 PyErr_Clear();
21638 } else {
21639 _v = 1;
21640 }
21641 }
21642 if (_v) {
21643 {
21644 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
21645 }
21646 if (_v) {
21647 return _wrap_DataFormat___eq____SWIG_0(self,args);
21648 }
21649 }
21650 }
21651
21652 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
21653 return NULL;
21654}
21655
21656
21657static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
21658 PyObject *resultobj;
21659 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21660 wxDataFormat *arg2 = 0 ;
21661 bool result;
21662 PyObject * obj0 = 0 ;
21663 PyObject * obj1 = 0 ;
21664
21665 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
21666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21667 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21668 if (arg2 == NULL) {
21669 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21670 }
21671 {
21672 PyThreadState* __tstate = wxPyBeginAllowThreads();
21673 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
21674
21675 wxPyEndAllowThreads(__tstate);
21676 if (PyErr_Occurred()) SWIG_fail;
21677 }
21678 resultobj = PyInt_FromLong((long)result);
21679 return resultobj;
21680 fail:
21681 return NULL;
21682}
21683
21684
21685static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
21686 int argc;
21687 PyObject *argv[3];
21688 int ii;
21689
21690 argc = PyObject_Length(args);
21691 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
21692 argv[ii] = PyTuple_GetItem(args,ii);
21693 }
21694 if (argc == 2) {
21695 int _v;
21696 {
21697 void *ptr;
21698 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21699 _v = 0;
21700 PyErr_Clear();
21701 } else {
21702 _v = 1;
21703 }
21704 }
21705 if (_v) {
21706 {
21707 void *ptr;
21708 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21709 _v = 0;
21710 PyErr_Clear();
21711 } else {
21712 _v = 1;
21713 }
21714 }
21715 if (_v) {
21716 return _wrap_DataFormat___ne____SWIG_1(self,args);
21717 }
21718 }
21719 }
21720 if (argc == 2) {
21721 int _v;
21722 {
21723 void *ptr;
21724 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
21725 _v = 0;
21726 PyErr_Clear();
21727 } else {
21728 _v = 1;
21729 }
21730 }
21731 if (_v) {
21732 {
21733 _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
21734 }
21735 if (_v) {
21736 return _wrap_DataFormat___ne____SWIG_0(self,args);
21737 }
21738 }
21739 }
21740
21741 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
21742 return NULL;
21743}
21744
21745
21746static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
21747 PyObject *resultobj;
21748 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21749 int arg2 ;
21750 PyObject * obj0 = 0 ;
21751 char *kwnames[] = {
21752 (char *) "self",(char *) "format", NULL
21753 };
21754
21755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DataFormat_SetType",kwnames,&obj0,&arg2)) goto fail;
21756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21757 {
21758 PyThreadState* __tstate = wxPyBeginAllowThreads();
21759 (arg1)->SetType((wxDataFormatId )arg2);
21760
21761 wxPyEndAllowThreads(__tstate);
21762 if (PyErr_Occurred()) SWIG_fail;
21763 }
21764 Py_INCREF(Py_None); resultobj = Py_None;
21765 return resultobj;
21766 fail:
21767 return NULL;
21768}
21769
21770
21771static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
21772 PyObject *resultobj;
21773 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21774 int result;
21775 PyObject * obj0 = 0 ;
21776 char *kwnames[] = {
21777 (char *) "self", NULL
21778 };
21779
21780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
21781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 result = (int)((wxDataFormat const *)arg1)->GetType();
21785
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 resultobj = PyInt_FromLong((long)result);
21790 return resultobj;
21791 fail:
21792 return NULL;
21793}
21794
21795
21796static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21797 PyObject *resultobj;
21798 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21799 wxString result;
21800 PyObject * obj0 = 0 ;
21801 char *kwnames[] = {
21802 (char *) "self", NULL
21803 };
21804
21805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
21806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 result = ((wxDataFormat const *)arg1)->GetId();
21810
21811 wxPyEndAllowThreads(__tstate);
21812 if (PyErr_Occurred()) SWIG_fail;
21813 }
21814 {
21815#if wxUSE_UNICODE
21816 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21817#else
21818 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21819#endif
21820 }
21821 return resultobj;
21822 fail:
21823 return NULL;
21824}
21825
21826
21827static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21828 PyObject *resultobj;
21829 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
21830 wxString *arg2 = 0 ;
e811c8ce 21831 bool temp2 = False ;
d14a1e28
RD
21832 PyObject * obj0 = 0 ;
21833 PyObject * obj1 = 0 ;
21834 char *kwnames[] = {
21835 (char *) "self",(char *) "format", NULL
21836 };
21837
21838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
21839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21840 {
21841 arg2 = wxString_in_helper(obj1);
21842 if (arg2 == NULL) SWIG_fail;
e811c8ce 21843 temp2 = True;
d14a1e28
RD
21844 }
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 (arg1)->SetId((wxString const &)*arg2);
21848
21849 wxPyEndAllowThreads(__tstate);
21850 if (PyErr_Occurred()) SWIG_fail;
21851 }
21852 Py_INCREF(Py_None); resultobj = Py_None;
21853 {
21854 if (temp2)
21855 delete arg2;
21856 }
21857 return resultobj;
21858 fail:
21859 {
21860 if (temp2)
21861 delete arg2;
21862 }
21863 return NULL;
21864}
21865
21866
21867static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
21868 PyObject *obj;
21869 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21870 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
21871 Py_INCREF(obj);
21872 return Py_BuildValue((char *)"");
21873}
21874static int _wrap_FormatInvalid_set(PyObject *_val) {
21875 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
21876 return 1;
21877}
21878
21879
21880static PyObject *_wrap_FormatInvalid_get() {
21881 PyObject *pyobj;
21882
21883 pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0);
21884 return pyobj;
21885}
21886
21887
21888static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
21889 PyObject *resultobj;
21890 wxDataObject *arg1 = (wxDataObject *) 0 ;
21891 PyObject * obj0 = 0 ;
21892 char *kwnames[] = {
21893 (char *) "self", NULL
21894 };
21895
21896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
21897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21898 {
21899 PyThreadState* __tstate = wxPyBeginAllowThreads();
21900 delete arg1;
21901
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 Py_INCREF(Py_None); resultobj = Py_None;
21906 return resultobj;
21907 fail:
21908 return NULL;
21909}
21910
21911
21912static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21913 PyObject *resultobj;
21914 wxDataObject *arg1 = (wxDataObject *) 0 ;
21915 int arg2 = (int) wxDataObject::Get ;
21916 SwigValueWrapper< wxDataFormat > result;
21917 PyObject * obj0 = 0 ;
21918 char *kwnames[] = {
21919 (char *) "self",(char *) "dir", NULL
21920 };
21921
21922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetPreferredFormat",kwnames,&obj0,&arg2)) goto fail;
21923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21924 {
21925 PyThreadState* __tstate = wxPyBeginAllowThreads();
21926 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
21927
21928 wxPyEndAllowThreads(__tstate);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 }
21931 {
21932 wxDataFormat * resultptr;
21933 resultptr = new wxDataFormat((wxDataFormat &) result);
21934 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1);
21935 }
21936 return resultobj;
21937 fail:
21938 return NULL;
21939}
21940
21941
21942static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
21943 PyObject *resultobj;
21944 wxDataObject *arg1 = (wxDataObject *) 0 ;
21945 int arg2 = (int) wxDataObject::Get ;
21946 size_t result;
21947 PyObject * obj0 = 0 ;
21948 char *kwnames[] = {
21949 (char *) "self",(char *) "dir", NULL
21950 };
21951
21952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetFormatCount",kwnames,&obj0,&arg2)) goto fail;
21953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21954 {
21955 PyThreadState* __tstate = wxPyBeginAllowThreads();
21956 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
21957
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 resultobj = PyInt_FromLong((long)result);
21962 return resultobj;
21963 fail:
21964 return NULL;
21965}
21966
21967
21968static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
21969 PyObject *resultobj;
21970 wxDataObject *arg1 = (wxDataObject *) 0 ;
21971 wxDataFormat *arg2 = 0 ;
21972 int arg3 = (int) wxDataObject::Get ;
21973 bool result;
21974 PyObject * obj0 = 0 ;
21975 PyObject * obj1 = 0 ;
21976 char *kwnames[] = {
21977 (char *) "self",(char *) "format",(char *) "dir", NULL
21978 };
21979
21980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_IsSupported",kwnames,&obj0,&obj1,&arg3)) goto fail;
21981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21982 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21983 if (arg2 == NULL) {
21984 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
21985 }
21986 {
21987 PyThreadState* __tstate = wxPyBeginAllowThreads();
21988 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
21989
21990 wxPyEndAllowThreads(__tstate);
21991 if (PyErr_Occurred()) SWIG_fail;
21992 }
21993 resultobj = PyInt_FromLong((long)result);
21994 return resultobj;
21995 fail:
21996 return NULL;
21997}
21998
21999
22000static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22001 PyObject *resultobj;
22002 wxDataObject *arg1 = (wxDataObject *) 0 ;
22003 wxDataFormat *arg2 = 0 ;
22004 size_t result;
22005 PyObject * obj0 = 0 ;
22006 PyObject * obj1 = 0 ;
22007 char *kwnames[] = {
22008 (char *) "self",(char *) "format", NULL
22009 };
22010
22011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
22012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22013 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22014 if (arg2 == NULL) {
22015 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22016 }
22017 {
22018 PyThreadState* __tstate = wxPyBeginAllowThreads();
22019 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
22020
22021 wxPyEndAllowThreads(__tstate);
22022 if (PyErr_Occurred()) SWIG_fail;
22023 }
22024 resultobj = PyInt_FromLong((long)result);
22025 return resultobj;
22026 fail:
22027 return NULL;
22028}
22029
22030
22031static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
22032 PyObject *resultobj;
22033 wxDataObject *arg1 = (wxDataObject *) 0 ;
22034 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
22035 int arg3 = (int) wxDataObject::Get ;
22036 PyObject * obj0 = 0 ;
22037 PyObject * obj1 = 0 ;
22038 char *kwnames[] = {
22039 (char *) "self",(char *) "formats",(char *) "dir", NULL
22040 };
22041
22042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&arg3)) goto fail;
22043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22044 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22045 {
22046 PyThreadState* __tstate = wxPyBeginAllowThreads();
22047 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
22048
22049 wxPyEndAllowThreads(__tstate);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 }
22052 Py_INCREF(Py_None); resultobj = Py_None;
22053 return resultobj;
22054 fail:
22055 return NULL;
22056}
22057
22058
22059static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
22060 PyObject *resultobj;
22061 wxDataObject *arg1 = (wxDataObject *) 0 ;
22062 wxDataFormat *arg2 = 0 ;
22063 void *arg3 = (void *) 0 ;
22064 bool result;
22065 PyObject * obj0 = 0 ;
22066 PyObject * obj1 = 0 ;
22067 PyObject * obj2 = 0 ;
22068 char *kwnames[] = {
22069 (char *) "self",(char *) "format",(char *) "buf", NULL
22070 };
22071
22072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
22073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22074 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22075 if (arg2 == NULL) {
22076 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22077 }
22078 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
22082
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 resultobj = PyInt_FromLong((long)result);
22087 return resultobj;
22088 fail:
22089 return NULL;
22090}
22091
22092
22093static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
22094 PyObject *resultobj;
22095 wxDataObject *arg1 = (wxDataObject *) 0 ;
22096 wxDataFormat *arg2 = 0 ;
22097 size_t arg3 ;
22098 void *arg4 = (void *) 0 ;
22099 bool result;
22100 PyObject * obj0 = 0 ;
22101 PyObject * obj1 = 0 ;
22102 PyObject * obj2 = 0 ;
22103 PyObject * obj3 = 0 ;
22104 char *kwnames[] = {
22105 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
22106 };
22107
22108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22110 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22111 if (arg2 == NULL) {
22112 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22113 }
22114 arg3 = (size_t) PyInt_AsLong(obj2);
22115 if (PyErr_Occurred()) SWIG_fail;
22116 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
22120
22121 wxPyEndAllowThreads(__tstate);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 }
22124 resultobj = PyInt_FromLong((long)result);
22125 return resultobj;
22126 fail:
22127 return NULL;
22128}
22129
22130
22131static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
22132 PyObject *obj;
22133 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22134 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
22135 Py_INCREF(obj);
22136 return Py_BuildValue((char *)"");
22137}
22138static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
22139 PyObject *resultobj;
22140 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
22141 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
22142 wxDataObjectSimple *result;
22143 PyObject * obj0 = 0 ;
22144 char *kwnames[] = {
22145 (char *) "format", NULL
22146 };
22147
22148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
22149 if (obj0) {
22150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22151 if (arg1 == NULL) {
22152 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22153 }
22154 }
22155 {
22156 PyThreadState* __tstate = wxPyBeginAllowThreads();
22157 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
22158
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1);
22163 return resultobj;
22164 fail:
22165 return NULL;
22166}
22167
22168
22169static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj;
22171 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
22172 wxDataFormat *result;
22173 PyObject * obj0 = 0 ;
22174 char *kwnames[] = {
22175 (char *) "self", NULL
22176 };
22177
22178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
22179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22180 {
22181 PyThreadState* __tstate = wxPyBeginAllowThreads();
22182 {
22183 wxDataFormat const &_result_ref = (arg1)->GetFormat();
22184 result = (wxDataFormat *) &_result_ref;
22185 }
22186
22187 wxPyEndAllowThreads(__tstate);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 }
22190 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0);
22191 return resultobj;
22192 fail:
22193 return NULL;
22194}
22195
22196
22197static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
22198 PyObject *resultobj;
22199 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
22200 wxDataFormat *arg2 = 0 ;
22201 PyObject * obj0 = 0 ;
22202 PyObject * obj1 = 0 ;
22203 char *kwnames[] = {
22204 (char *) "self",(char *) "format", NULL
22205 };
22206
22207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
22208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22209 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22210 if (arg2 == NULL) {
22211 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22212 }
22213 {
22214 PyThreadState* __tstate = wxPyBeginAllowThreads();
22215 (arg1)->SetFormat((wxDataFormat const &)*arg2);
22216
22217 wxPyEndAllowThreads(__tstate);
22218 if (PyErr_Occurred()) SWIG_fail;
22219 }
22220 Py_INCREF(Py_None); resultobj = Py_None;
22221 return resultobj;
22222 fail:
22223 return NULL;
22224}
22225
22226
22227static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
22228 PyObject *obj;
22229 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22230 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
22231 Py_INCREF(obj);
22232 return Py_BuildValue((char *)"");
22233}
22234static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
22235 PyObject *resultobj;
22236 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
22237 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
22238 wxPyDataObjectSimple *result;
22239 PyObject * obj0 = 0 ;
22240 char *kwnames[] = {
22241 (char *) "format", NULL
22242 };
22243
22244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
22245 if (obj0) {
22246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22247 if (arg1 == NULL) {
22248 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22249 }
22250 }
22251 {
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
22254
22255 wxPyEndAllowThreads(__tstate);
22256 if (PyErr_Occurred()) SWIG_fail;
22257 }
22258 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1);
22259 return resultobj;
22260 fail:
22261 return NULL;
22262}
22263
22264
22265static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22266 PyObject *resultobj;
22267 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
22268 PyObject *arg2 = (PyObject *) 0 ;
22269 PyObject *arg3 = (PyObject *) 0 ;
22270 PyObject * obj0 = 0 ;
22271 PyObject * obj1 = 0 ;
22272 PyObject * obj2 = 0 ;
22273 char *kwnames[] = {
22274 (char *) "self",(char *) "self",(char *) "_class", NULL
22275 };
22276
22277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22279 arg2 = obj1;
22280 arg3 = obj2;
22281 {
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 (arg1)->_setCallbackInfo(arg2,arg3);
22284
22285 wxPyEndAllowThreads(__tstate);
22286 if (PyErr_Occurred()) SWIG_fail;
22287 }
22288 Py_INCREF(Py_None); resultobj = Py_None;
22289 return resultobj;
22290 fail:
22291 return NULL;
22292}
22293
22294
22295static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
22296 PyObject *obj;
22297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22298 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
22299 Py_INCREF(obj);
22300 return Py_BuildValue((char *)"");
22301}
22302static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
22303 PyObject *resultobj;
22304 wxDataObjectComposite *result;
22305 char *kwnames[] = {
22306 NULL
22307 };
22308
22309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
22310 {
22311 PyThreadState* __tstate = wxPyBeginAllowThreads();
22312 result = (wxDataObjectComposite *)new wxDataObjectComposite();
22313
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1);
22318 return resultobj;
22319 fail:
22320 return NULL;
22321}
22322
22323
22324static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
22325 PyObject *resultobj;
22326 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
22327 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
e811c8ce 22328 int arg3 = (int) False ;
d14a1e28
RD
22329 PyObject * obj0 = 0 ;
22330 PyObject * obj1 = 0 ;
22331 char *kwnames[] = {
22332 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
22333 };
22334
22335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObjectComposite_Add",kwnames,&obj0,&obj1,&arg3)) goto fail;
22336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22337 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22338 {
22339 PyThreadState* __tstate = wxPyBeginAllowThreads();
22340 (arg1)->Add(arg2,arg3);
22341
22342 wxPyEndAllowThreads(__tstate);
22343 if (PyErr_Occurred()) SWIG_fail;
22344 }
22345 Py_INCREF(Py_None); resultobj = Py_None;
22346 return resultobj;
22347 fail:
22348 return NULL;
22349}
22350
22351
22352static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
22353 PyObject *obj;
22354 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22355 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
22356 Py_INCREF(obj);
22357 return Py_BuildValue((char *)"");
22358}
22359static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22360 PyObject *resultobj;
22361 wxString const &arg1_defvalue = wxPyEmptyString ;
22362 wxString *arg1 = (wxString *) &arg1_defvalue ;
22363 wxTextDataObject *result;
e811c8ce 22364 bool temp1 = False ;
d14a1e28
RD
22365 PyObject * obj0 = 0 ;
22366 char *kwnames[] = {
22367 (char *) "text", NULL
22368 };
22369
22370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
22371 if (obj0) {
22372 {
22373 arg1 = wxString_in_helper(obj0);
22374 if (arg1 == NULL) SWIG_fail;
e811c8ce 22375 temp1 = True;
d14a1e28
RD
22376 }
22377 }
22378 {
22379 PyThreadState* __tstate = wxPyBeginAllowThreads();
22380 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
22381
22382 wxPyEndAllowThreads(__tstate);
22383 if (PyErr_Occurred()) SWIG_fail;
22384 }
22385 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1);
22386 {
22387 if (temp1)
22388 delete arg1;
22389 }
22390 return resultobj;
22391 fail:
22392 {
22393 if (temp1)
22394 delete arg1;
22395 }
22396 return NULL;
22397}
22398
22399
22400static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
22401 PyObject *resultobj;
22402 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
22403 size_t result;
22404 PyObject * obj0 = 0 ;
22405 char *kwnames[] = {
22406 (char *) "self", NULL
22407 };
22408
22409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
22410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22411 {
22412 PyThreadState* __tstate = wxPyBeginAllowThreads();
22413 result = (size_t)(arg1)->GetTextLength();
22414
22415 wxPyEndAllowThreads(__tstate);
22416 if (PyErr_Occurred()) SWIG_fail;
22417 }
22418 resultobj = PyInt_FromLong((long)result);
22419 return resultobj;
22420 fail:
22421 return NULL;
22422}
22423
22424
22425static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
22426 PyObject *resultobj;
22427 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
22428 wxString result;
22429 PyObject * obj0 = 0 ;
22430 char *kwnames[] = {
22431 (char *) "self", NULL
22432 };
22433
22434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
22435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 result = (arg1)->GetText();
22439
22440 wxPyEndAllowThreads(__tstate);
22441 if (PyErr_Occurred()) SWIG_fail;
22442 }
22443 {
22444#if wxUSE_UNICODE
22445 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22446#else
22447 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22448#endif
22449 }
22450 return resultobj;
22451 fail:
22452 return NULL;
22453}
22454
22455
22456static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
22457 PyObject *resultobj;
22458 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
22459 wxString *arg2 = 0 ;
e811c8ce 22460 bool temp2 = False ;
d14a1e28
RD
22461 PyObject * obj0 = 0 ;
22462 PyObject * obj1 = 0 ;
22463 char *kwnames[] = {
22464 (char *) "self",(char *) "text", NULL
22465 };
22466
22467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
22468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22469 {
22470 arg2 = wxString_in_helper(obj1);
22471 if (arg2 == NULL) SWIG_fail;
e811c8ce 22472 temp2 = True;
d14a1e28
RD
22473 }
22474 {
22475 PyThreadState* __tstate = wxPyBeginAllowThreads();
22476 (arg1)->SetText((wxString const &)*arg2);
22477
22478 wxPyEndAllowThreads(__tstate);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 Py_INCREF(Py_None); resultobj = Py_None;
22482 {
22483 if (temp2)
22484 delete arg2;
22485 }
22486 return resultobj;
22487 fail:
22488 {
22489 if (temp2)
22490 delete arg2;
22491 }
22492 return NULL;
22493}
22494
22495
22496static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
22497 PyObject *obj;
22498 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22499 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
22500 Py_INCREF(obj);
22501 return Py_BuildValue((char *)"");
22502}
22503static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22504 PyObject *resultobj;
22505 wxString const &arg1_defvalue = wxPyEmptyString ;
22506 wxString *arg1 = (wxString *) &arg1_defvalue ;
22507 wxPyTextDataObject *result;
e811c8ce 22508 bool temp1 = False ;
d14a1e28
RD
22509 PyObject * obj0 = 0 ;
22510 char *kwnames[] = {
22511 (char *) "text", NULL
22512 };
22513
22514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
22515 if (obj0) {
22516 {
22517 arg1 = wxString_in_helper(obj0);
22518 if (arg1 == NULL) SWIG_fail;
e811c8ce 22519 temp1 = True;
d14a1e28
RD
22520 }
22521 }
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
22524 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
22525
22526 wxPyEndAllowThreads(__tstate);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
22529 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1);
22530 {
22531 if (temp1)
22532 delete arg1;
22533 }
22534 return resultobj;
22535 fail:
22536 {
22537 if (temp1)
22538 delete arg1;
22539 }
22540 return NULL;
22541}
22542
22543
22544static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22545 PyObject *resultobj;
22546 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
22547 PyObject *arg2 = (PyObject *) 0 ;
22548 PyObject *arg3 = (PyObject *) 0 ;
22549 PyObject * obj0 = 0 ;
22550 PyObject * obj1 = 0 ;
22551 PyObject * obj2 = 0 ;
22552 char *kwnames[] = {
22553 (char *) "self",(char *) "self",(char *) "_class", NULL
22554 };
22555
22556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22558 arg2 = obj1;
22559 arg3 = obj2;
22560 {
22561 PyThreadState* __tstate = wxPyBeginAllowThreads();
22562 (arg1)->_setCallbackInfo(arg2,arg3);
22563
22564 wxPyEndAllowThreads(__tstate);
22565 if (PyErr_Occurred()) SWIG_fail;
22566 }
22567 Py_INCREF(Py_None); resultobj = Py_None;
22568 return resultobj;
22569 fail:
22570 return NULL;
22571}
22572
22573
22574static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
22575 PyObject *obj;
22576 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22577 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
22578 Py_INCREF(obj);
22579 return Py_BuildValue((char *)"");
22580}
22581static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22582 PyObject *resultobj;
22583 wxBitmap const &arg1_defvalue = wxNullBitmap ;
22584 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
22585 wxBitmapDataObject *result;
22586 PyObject * obj0 = 0 ;
22587 char *kwnames[] = {
22588 (char *) "bitmap", NULL
22589 };
22590
22591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
22592 if (obj0) {
22593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22594 if (arg1 == NULL) {
22595 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22596 }
22597 }
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
22601
22602 wxPyEndAllowThreads(__tstate);
22603 if (PyErr_Occurred()) SWIG_fail;
22604 }
22605 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1);
22606 return resultobj;
22607 fail:
22608 return NULL;
22609}
22610
22611
22612static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
22613 PyObject *resultobj;
22614 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
22615 wxBitmap result;
22616 PyObject * obj0 = 0 ;
22617 char *kwnames[] = {
22618 (char *) "self", NULL
22619 };
22620
22621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
22622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22623 {
22624 PyThreadState* __tstate = wxPyBeginAllowThreads();
22625 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
22626
22627 wxPyEndAllowThreads(__tstate);
22628 if (PyErr_Occurred()) SWIG_fail;
22629 }
22630 {
22631 wxBitmap * resultptr;
22632 resultptr = new wxBitmap((wxBitmap &) result);
22633 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
22634 }
22635 return resultobj;
22636 fail:
22637 return NULL;
22638}
22639
22640
22641static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
22642 PyObject *resultobj;
22643 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
22644 wxBitmap *arg2 = 0 ;
22645 PyObject * obj0 = 0 ;
22646 PyObject * obj1 = 0 ;
22647 char *kwnames[] = {
22648 (char *) "self",(char *) "bitmap", NULL
22649 };
22650
22651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
22652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22653 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22654 if (arg2 == NULL) {
22655 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22656 }
22657 {
22658 PyThreadState* __tstate = wxPyBeginAllowThreads();
22659 (arg1)->SetBitmap((wxBitmap const &)*arg2);
22660
22661 wxPyEndAllowThreads(__tstate);
22662 if (PyErr_Occurred()) SWIG_fail;
22663 }
22664 Py_INCREF(Py_None); resultobj = Py_None;
22665 return resultobj;
22666 fail:
22667 return NULL;
22668}
22669
22670
22671static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
22672 PyObject *obj;
22673 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22674 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
22675 Py_INCREF(obj);
22676 return Py_BuildValue((char *)"");
22677}
22678static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22679 PyObject *resultobj;
22680 wxBitmap const &arg1_defvalue = wxNullBitmap ;
22681 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
22682 wxPyBitmapDataObject *result;
22683 PyObject * obj0 = 0 ;
22684 char *kwnames[] = {
22685 (char *) "bitmap", NULL
22686 };
22687
22688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
22689 if (obj0) {
22690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22691 if (arg1 == NULL) {
22692 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22693 }
22694 }
22695 {
22696 PyThreadState* __tstate = wxPyBeginAllowThreads();
22697 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
22698
22699 wxPyEndAllowThreads(__tstate);
22700 if (PyErr_Occurred()) SWIG_fail;
22701 }
22702 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1);
22703 return resultobj;
22704 fail:
22705 return NULL;
22706}
22707
22708
22709static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
22710 PyObject *resultobj;
22711 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
22712 PyObject *arg2 = (PyObject *) 0 ;
22713 PyObject *arg3 = (PyObject *) 0 ;
22714 PyObject * obj0 = 0 ;
22715 PyObject * obj1 = 0 ;
22716 PyObject * obj2 = 0 ;
22717 char *kwnames[] = {
22718 (char *) "self",(char *) "self",(char *) "_class", NULL
22719 };
22720
22721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22723 arg2 = obj1;
22724 arg3 = obj2;
22725 {
22726 PyThreadState* __tstate = wxPyBeginAllowThreads();
22727 (arg1)->_setCallbackInfo(arg2,arg3);
22728
22729 wxPyEndAllowThreads(__tstate);
22730 if (PyErr_Occurred()) SWIG_fail;
22731 }
22732 Py_INCREF(Py_None); resultobj = Py_None;
22733 return resultobj;
22734 fail:
22735 return NULL;
22736}
22737
22738
22739static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
22740 PyObject *obj;
22741 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22742 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
22743 Py_INCREF(obj);
22744 return Py_BuildValue((char *)"");
22745}
22746static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22747 PyObject *resultobj;
22748 wxFileDataObject *result;
22749 char *kwnames[] = {
22750 NULL
22751 };
22752
22753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
22754 {
22755 PyThreadState* __tstate = wxPyBeginAllowThreads();
22756 result = (wxFileDataObject *)new wxFileDataObject();
22757
22758 wxPyEndAllowThreads(__tstate);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1);
22762 return resultobj;
22763 fail:
22764 return NULL;
22765}
22766
22767
22768static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
22769 PyObject *resultobj;
22770 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
22771 wxArrayString *result;
22772 PyObject * obj0 = 0 ;
22773 char *kwnames[] = {
22774 (char *) "self", NULL
22775 };
22776
22777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
22778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22779 {
22780 PyThreadState* __tstate = wxPyBeginAllowThreads();
22781 {
22782 wxArrayString const &_result_ref = (arg1)->GetFilenames();
22783 result = (wxArrayString *) &_result_ref;
22784 }
22785
22786 wxPyEndAllowThreads(__tstate);
22787 if (PyErr_Occurred()) SWIG_fail;
22788 }
22789 {
22790 resultobj = wxArrayString2PyList_helper(*result);
22791 }
22792 return resultobj;
22793 fail:
22794 return NULL;
22795}
22796
22797
22798static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
22799 PyObject *obj;
22800 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22801 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
22802 Py_INCREF(obj);
22803 return Py_BuildValue((char *)"");
22804}
22805static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22806 PyObject *resultobj;
22807 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
22808 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
22809 wxCustomDataObject *result;
22810 PyObject * obj0 = 0 ;
22811 char *kwnames[] = {
22812 (char *) "format", NULL
22813 };
22814
22815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
22816 if (obj0) {
22817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22818 if (arg1 == NULL) {
22819 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
22820 }
22821 }
22822 {
22823 PyThreadState* __tstate = wxPyBeginAllowThreads();
22824 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
22825
22826 wxPyEndAllowThreads(__tstate);
22827 if (PyErr_Occurred()) SWIG_fail;
22828 }
22829 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1);
22830 return resultobj;
22831 fail:
22832 return NULL;
22833}
22834
22835
22836static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
22837 PyObject *resultobj;
22838 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
22839 PyObject *arg2 = (PyObject *) 0 ;
22840 PyObject * obj0 = 0 ;
22841 PyObject * obj1 = 0 ;
22842 char *kwnames[] = {
22843 (char *) "self",(char *) "data", NULL
22844 };
22845
22846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
22847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22848 arg2 = obj1;
22849 {
22850 PyThreadState* __tstate = wxPyBeginAllowThreads();
22851 wxCustomDataObject_TakeData(arg1,arg2);
22852
22853 wxPyEndAllowThreads(__tstate);
22854 if (PyErr_Occurred()) SWIG_fail;
22855 }
22856 Py_INCREF(Py_None); resultobj = Py_None;
22857 return resultobj;
22858 fail:
22859 return NULL;
22860}
22861
22862
22863static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
22864 PyObject *resultobj;
22865 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
22866 PyObject *arg2 = (PyObject *) 0 ;
22867 bool result;
22868 PyObject * obj0 = 0 ;
22869 PyObject * obj1 = 0 ;
22870 char *kwnames[] = {
22871 (char *) "self",(char *) "data", NULL
22872 };
22873
22874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
22875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22876 arg2 = obj1;
22877 {
22878 PyThreadState* __tstate = wxPyBeginAllowThreads();
22879 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
22880
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 resultobj = PyInt_FromLong((long)result);
22885 return resultobj;
22886 fail:
22887 return NULL;
22888}
22889
22890
22891static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22892 PyObject *resultobj;
22893 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
22894 size_t result;
22895 PyObject * obj0 = 0 ;
22896 char *kwnames[] = {
22897 (char *) "self", NULL
22898 };
22899
22900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
22901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 result = (size_t)(arg1)->GetSize();
22905
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
22909 resultobj = PyInt_FromLong((long)result);
22910 return resultobj;
22911 fail:
22912 return NULL;
22913}
22914
22915
22916static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
22917 PyObject *resultobj;
22918 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
22919 PyObject *result;
22920 PyObject * obj0 = 0 ;
22921 char *kwnames[] = {
22922 (char *) "self", NULL
22923 };
22924
22925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
22926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22927 {
22928 PyThreadState* __tstate = wxPyBeginAllowThreads();
22929 result = (PyObject *)wxCustomDataObject_GetData(arg1);
22930
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 resultobj = result;
22935 return resultobj;
22936 fail:
22937 return NULL;
22938}
22939
22940
22941static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
22942 PyObject *obj;
22943 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22944 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
22945 Py_INCREF(obj);
22946 return Py_BuildValue((char *)"");
22947}
22948static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
22949 PyObject *resultobj;
22950 wxURLDataObject *result;
22951 char *kwnames[] = {
22952 NULL
22953 };
22954
22955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
22956 {
22957 PyThreadState* __tstate = wxPyBeginAllowThreads();
22958 result = (wxURLDataObject *)new wxURLDataObject();
22959
22960 wxPyEndAllowThreads(__tstate);
22961 if (PyErr_Occurred()) SWIG_fail;
22962 }
22963 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1);
22964 return resultobj;
22965 fail:
22966 return NULL;
22967}
22968
22969
22970static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
22971 PyObject *resultobj;
22972 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
22973 wxString result;
22974 PyObject * obj0 = 0 ;
22975 char *kwnames[] = {
22976 (char *) "self", NULL
22977 };
22978
22979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
22980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22981 {
22982 PyThreadState* __tstate = wxPyBeginAllowThreads();
22983 result = (arg1)->GetURL();
22984
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 {
22989#if wxUSE_UNICODE
22990 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22991#else
22992 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22993#endif
22994 }
22995 return resultobj;
22996 fail:
22997 return NULL;
22998}
22999
23000
23001static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
23002 PyObject *resultobj;
23003 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
23004 wxString *arg2 = 0 ;
e811c8ce 23005 bool temp2 = False ;
d14a1e28
RD
23006 PyObject * obj0 = 0 ;
23007 PyObject * obj1 = 0 ;
23008 char *kwnames[] = {
23009 (char *) "self",(char *) "url", NULL
23010 };
23011
23012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
23013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23014 {
23015 arg2 = wxString_in_helper(obj1);
23016 if (arg2 == NULL) SWIG_fail;
e811c8ce 23017 temp2 = True;
d14a1e28
RD
23018 }
23019 {
23020 PyThreadState* __tstate = wxPyBeginAllowThreads();
23021 (arg1)->SetURL((wxString const &)*arg2);
23022
23023 wxPyEndAllowThreads(__tstate);
23024 if (PyErr_Occurred()) SWIG_fail;
23025 }
23026 Py_INCREF(Py_None); resultobj = Py_None;
23027 {
23028 if (temp2)
23029 delete arg2;
23030 }
23031 return resultobj;
23032 fail:
23033 {
23034 if (temp2)
23035 delete arg2;
23036 }
23037 return NULL;
23038}
23039
23040
23041static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
23042 PyObject *obj;
23043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23044 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
23045 Py_INCREF(obj);
23046 return Py_BuildValue((char *)"");
23047}
23048static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23049 PyObject *resultobj;
23050 wxMetafileDataObject *result;
23051 char *kwnames[] = {
23052 NULL
23053 };
23054
23055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
23056 {
23057 PyThreadState* __tstate = wxPyBeginAllowThreads();
23058 result = (wxMetafileDataObject *)new wxMetafileDataObject();
23059
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1);
23064 return resultobj;
23065 fail:
23066 return NULL;
23067}
23068
23069
23070static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
23071 PyObject *obj;
23072 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23073 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
23074 Py_INCREF(obj);
23075 return Py_BuildValue((char *)"");
23076}
23077static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
23078 PyObject *resultobj;
23079 int arg1 ;
23080 bool result;
23081 char *kwnames[] = {
23082 (char *) "res", NULL
23083 };
23084
23085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IsDragResultOk",kwnames,&arg1)) goto fail;
23086 {
23087 PyThreadState* __tstate = wxPyBeginAllowThreads();
23088 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
23089
23090 wxPyEndAllowThreads(__tstate);
23091 if (PyErr_Occurred()) SWIG_fail;
23092 }
23093 resultobj = PyInt_FromLong((long)result);
23094 return resultobj;
23095 fail:
23096 return NULL;
23097}
23098
23099
23100static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
23101 PyObject *resultobj;
23102 wxWindow *arg1 = (wxWindow *) NULL ;
23103 wxIcon const &arg2_defvalue = wxNullIcon ;
23104 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
23105 wxIcon const &arg3_defvalue = wxNullIcon ;
23106 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
23107 wxIcon const &arg4_defvalue = wxNullIcon ;
23108 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
23109 wxPyDropSource *result;
23110 PyObject * obj0 = 0 ;
23111 PyObject * obj1 = 0 ;
23112 PyObject * obj2 = 0 ;
23113 PyObject * obj3 = 0 ;
23114 char *kwnames[] = {
23115 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
23116 };
23117
23118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23119 if (obj0) {
23120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23121 }
23122 if (obj1) {
23123 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23124 if (arg2 == NULL) {
23125 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23126 }
23127 }
23128 if (obj2) {
23129 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23130 if (arg3 == NULL) {
23131 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23132 }
23133 }
23134 if (obj3) {
23135 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23136 if (arg4 == NULL) {
23137 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23138 }
23139 }
23140 {
23141 PyThreadState* __tstate = wxPyBeginAllowThreads();
23142 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
23143
23144 wxPyEndAllowThreads(__tstate);
23145 if (PyErr_Occurred()) SWIG_fail;
23146 }
23147 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1);
23148 return resultobj;
23149 fail:
23150 return NULL;
23151}
23152
23153
23154static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23155 PyObject *resultobj;
23156 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23157 PyObject *arg2 = (PyObject *) 0 ;
23158 PyObject *arg3 = (PyObject *) 0 ;
23159 int arg4 ;
23160 PyObject * obj0 = 0 ;
23161 PyObject * obj1 = 0 ;
23162 PyObject * obj2 = 0 ;
23163 char *kwnames[] = {
23164 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
23165 };
23166
23167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
23168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23169 arg2 = obj1;
23170 arg3 = obj2;
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
23173 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
23174
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 Py_INCREF(Py_None); resultobj = Py_None;
23179 return resultobj;
23180 fail:
23181 return NULL;
23182}
23183
23184
23185static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
23186 PyObject *resultobj;
23187 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23188 PyObject * obj0 = 0 ;
23189 char *kwnames[] = {
23190 (char *) "self", NULL
23191 };
23192
23193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
23194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23195 {
23196 PyThreadState* __tstate = wxPyBeginAllowThreads();
23197 delete arg1;
23198
23199 wxPyEndAllowThreads(__tstate);
23200 if (PyErr_Occurred()) SWIG_fail;
23201 }
23202 Py_INCREF(Py_None); resultobj = Py_None;
23203 return resultobj;
23204 fail:
23205 return NULL;
23206}
23207
23208
23209static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23210 PyObject *resultobj;
23211 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23212 wxDataObject *arg2 = 0 ;
23213 PyObject * obj0 = 0 ;
23214 PyObject * obj1 = 0 ;
23215 char *kwnames[] = {
23216 (char *) "self",(char *) "data", NULL
23217 };
23218
23219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
23220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23221 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23222 if (arg2 == NULL) {
23223 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23224 }
23225 {
23226 PyThreadState* __tstate = wxPyBeginAllowThreads();
23227 (arg1)->SetData(*arg2);
23228
23229 wxPyEndAllowThreads(__tstate);
23230 if (PyErr_Occurred()) SWIG_fail;
23231 }
23232 Py_INCREF(Py_None); resultobj = Py_None;
23233 return resultobj;
23234 fail:
23235 return NULL;
23236}
23237
23238
23239static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23240 PyObject *resultobj;
23241 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23242 wxDataObject *result;
23243 PyObject * obj0 = 0 ;
23244 char *kwnames[] = {
23245 (char *) "self", NULL
23246 };
23247
23248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
23249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23250 {
23251 PyThreadState* __tstate = wxPyBeginAllowThreads();
23252 result = (wxDataObject *)(arg1)->GetDataObject();
23253
23254 wxPyEndAllowThreads(__tstate);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 }
23257 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0);
23258 return resultobj;
23259 fail:
23260 return NULL;
23261}
23262
23263
23264static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
23265 PyObject *resultobj;
23266 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23267 int arg2 ;
23268 wxCursor *arg3 = 0 ;
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj2 = 0 ;
23271 char *kwnames[] = {
23272 (char *) "self",(char *) "res",(char *) "cursor", NULL
23273 };
23274
23275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:DropSource_SetCursor",kwnames,&obj0,&arg2,&obj2)) goto fail;
23276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23277 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23278 if (arg3 == NULL) {
23279 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23280 }
23281 {
23282 PyThreadState* __tstate = wxPyBeginAllowThreads();
23283 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
23284
23285 wxPyEndAllowThreads(__tstate);
23286 if (PyErr_Occurred()) SWIG_fail;
23287 }
23288 Py_INCREF(Py_None); resultobj = Py_None;
23289 return resultobj;
23290 fail:
23291 return NULL;
23292}
23293
23294
23295static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
23296 PyObject *resultobj;
23297 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23298 int arg2 = (int) wxDrag_CopyOnly ;
23299 int result;
23300 PyObject * obj0 = 0 ;
23301 char *kwnames[] = {
23302 (char *) "self",(char *) "flags", NULL
23303 };
23304
23305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DropSource_DoDragDrop",kwnames,&obj0,&arg2)) goto fail;
23306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23307 {
23308 PyThreadState* __tstate = wxPyBeginAllowThreads();
23309 result = (int)(arg1)->DoDragDrop(arg2);
23310
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 resultobj = PyInt_FromLong((long)result);
23315 return resultobj;
23316 fail:
23317 return NULL;
23318}
23319
23320
23321static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
23322 PyObject *resultobj;
23323 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
23324 int arg2 ;
23325 bool result;
23326 PyObject * obj0 = 0 ;
23327 char *kwnames[] = {
23328 (char *) "self",(char *) "effect", NULL
23329 };
23330
23331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DropSource_base_GiveFeedback",kwnames,&obj0,&arg2)) goto fail;
23332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
23336
23337 wxPyEndAllowThreads(__tstate);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
23340 resultobj = PyInt_FromLong((long)result);
23341 return resultobj;
23342 fail:
23343 return NULL;
23344}
23345
23346
23347static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
23348 PyObject *obj;
23349 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23350 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
23351 Py_INCREF(obj);
23352 return Py_BuildValue((char *)"");
23353}
23354static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
23355 PyObject *resultobj;
23356 wxDataObject *arg1 = (wxDataObject *) NULL ;
23357 wxPyDropTarget *result;
23358 PyObject * obj0 = 0 ;
23359 char *kwnames[] = {
23360 (char *) "dataObject", NULL
23361 };
23362
23363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
23364 if (obj0) {
23365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23366 }
23367 {
23368 PyThreadState* __tstate = wxPyBeginAllowThreads();
23369 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
23370
23371 wxPyEndAllowThreads(__tstate);
23372 if (PyErr_Occurred()) SWIG_fail;
23373 }
23374 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1);
23375 return resultobj;
23376 fail:
23377 return NULL;
23378}
23379
23380
23381static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23382 PyObject *resultobj;
23383 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23384 PyObject *arg2 = (PyObject *) 0 ;
23385 PyObject *arg3 = (PyObject *) 0 ;
23386 PyObject * obj0 = 0 ;
23387 PyObject * obj1 = 0 ;
23388 PyObject * obj2 = 0 ;
23389 char *kwnames[] = {
23390 (char *) "self",(char *) "self",(char *) "_class", NULL
23391 };
23392
23393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23395 arg2 = obj1;
23396 arg3 = obj2;
23397 {
23398 PyThreadState* __tstate = wxPyBeginAllowThreads();
23399 (arg1)->_setCallbackInfo(arg2,arg3);
23400
23401 wxPyEndAllowThreads(__tstate);
23402 if (PyErr_Occurred()) SWIG_fail;
23403 }
23404 Py_INCREF(Py_None); resultobj = Py_None;
23405 return resultobj;
23406 fail:
23407 return NULL;
23408}
23409
23410
23411static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
23412 PyObject *resultobj;
23413 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23414 PyObject * obj0 = 0 ;
23415 char *kwnames[] = {
23416 (char *) "self", NULL
23417 };
23418
23419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
23420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23421 {
23422 PyThreadState* __tstate = wxPyBeginAllowThreads();
23423 delete arg1;
23424
23425 wxPyEndAllowThreads(__tstate);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 }
23428 Py_INCREF(Py_None); resultobj = Py_None;
23429 return resultobj;
23430 fail:
23431 return NULL;
23432}
23433
23434
23435static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23436 PyObject *resultobj;
23437 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23438 wxDataObject *result;
23439 PyObject * obj0 = 0 ;
23440 char *kwnames[] = {
23441 (char *) "self", NULL
23442 };
23443
23444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
23445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23446 {
23447 PyThreadState* __tstate = wxPyBeginAllowThreads();
23448 result = (wxDataObject *)(arg1)->GetDataObject();
23449
23450 wxPyEndAllowThreads(__tstate);
23451 if (PyErr_Occurred()) SWIG_fail;
23452 }
23453 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0);
23454 return resultobj;
23455 fail:
23456 return NULL;
23457}
23458
23459
23460static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23461 PyObject *resultobj;
23462 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23463 wxDataObject *arg2 = (wxDataObject *) 0 ;
23464 PyObject * obj0 = 0 ;
23465 PyObject * obj1 = 0 ;
23466 char *kwnames[] = {
23467 (char *) "self",(char *) "dataObject", NULL
23468 };
23469
23470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
23471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23472 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23473 {
23474 PyThreadState* __tstate = wxPyBeginAllowThreads();
23475 (arg1)->SetDataObject(arg2);
23476
23477 wxPyEndAllowThreads(__tstate);
23478 if (PyErr_Occurred()) SWIG_fail;
23479 }
23480 Py_INCREF(Py_None); resultobj = Py_None;
23481 return resultobj;
23482 fail:
23483 return NULL;
23484}
23485
23486
23487static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
23488 PyObject *resultobj;
23489 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
23490 int arg2 ;
23491 int arg3 ;
d14a1e28
RD
23492 int arg4 ;
23493 int result;
23494 PyObject * obj0 = 0 ;
23495 char *kwnames[] = {
23496 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23497 };
23498
23499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23501 {
23502 PyThreadState* __tstate = wxPyBeginAllowThreads();
23503 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
23504
23505 wxPyEndAllowThreads(__tstate);
23506 if (PyErr_Occurred()) SWIG_fail;
23507 }
23508 resultobj = PyInt_FromLong((long)result);
23509 return resultobj;
23510 fail:
23511 return NULL;
23512}
23513
23514
23515static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
23516 PyObject *resultobj;
23517 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
23518 int arg2 ;
23519 int arg3 ;
d14a1e28
RD
23520 int arg4 ;
23521 int result;
23522 PyObject * obj0 = 0 ;
23523 char *kwnames[] = {
23524 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23525 };
23526
23527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23529 {
23530 PyThreadState* __tstate = wxPyBeginAllowThreads();
23531 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
23532
23533 wxPyEndAllowThreads(__tstate);
23534 if (PyErr_Occurred()) SWIG_fail;
23535 }
23536 resultobj = PyInt_FromLong((long)result);
23537 return resultobj;
23538 fail:
23539 return NULL;
23540}
23541
23542
23543static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
23544 PyObject *resultobj;
23545 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23546 PyObject * obj0 = 0 ;
23547 char *kwnames[] = {
23548 (char *) "self", NULL
23549 };
23550
23551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
23552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23553 {
23554 PyThreadState* __tstate = wxPyBeginAllowThreads();
23555 (arg1)->base_OnLeave();
23556
23557 wxPyEndAllowThreads(__tstate);
23558 if (PyErr_Occurred()) SWIG_fail;
23559 }
23560 Py_INCREF(Py_None); resultobj = Py_None;
23561 return resultobj;
23562 fail:
23563 return NULL;
23564}
23565
23566
23567static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
23568 PyObject *resultobj;
23569 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
e811c8ce
RD
23570 int arg2 ;
23571 int arg3 ;
d14a1e28
RD
23572 bool result;
23573 PyObject * obj0 = 0 ;
23574 char *kwnames[] = {
23575 (char *) "self",(char *) "x",(char *) "y", NULL
23576 };
23577
23578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail;
23579 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23580 {
23581 PyThreadState* __tstate = wxPyBeginAllowThreads();
23582 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
23583
23584 wxPyEndAllowThreads(__tstate);
23585 if (PyErr_Occurred()) SWIG_fail;
23586 }
23587 resultobj = PyInt_FromLong((long)result);
23588 return resultobj;
23589 fail:
23590 return NULL;
23591}
23592
23593
23594static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
23595 PyObject *resultobj;
23596 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
23597 bool result;
23598 PyObject * obj0 = 0 ;
23599 char *kwnames[] = {
23600 (char *) "self", NULL
23601 };
23602
23603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
23604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23605 {
23606 PyThreadState* __tstate = wxPyBeginAllowThreads();
23607 result = (bool)(arg1)->GetData();
23608
23609 wxPyEndAllowThreads(__tstate);
23610 if (PyErr_Occurred()) SWIG_fail;
23611 }
23612 resultobj = PyInt_FromLong((long)result);
23613 return resultobj;
23614 fail:
23615 return NULL;
23616}
23617
23618
23619static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
23620 PyObject *obj;
23621 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23622 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
23623 Py_INCREF(obj);
23624 return Py_BuildValue((char *)"");
23625}
23626static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
23627 PyObject *resultobj;
23628 wxPyTextDropTarget *result;
23629 char *kwnames[] = {
23630 NULL
23631 };
23632
23633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
23634 {
23635 PyThreadState* __tstate = wxPyBeginAllowThreads();
23636 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
23637
23638 wxPyEndAllowThreads(__tstate);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1);
23642 return resultobj;
23643 fail:
23644 return NULL;
23645}
23646
23647
23648static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23649 PyObject *resultobj;
23650 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
23651 PyObject *arg2 = (PyObject *) 0 ;
23652 PyObject *arg3 = (PyObject *) 0 ;
23653 PyObject * obj0 = 0 ;
23654 PyObject * obj1 = 0 ;
23655 PyObject * obj2 = 0 ;
23656 char *kwnames[] = {
23657 (char *) "self",(char *) "self",(char *) "_class", NULL
23658 };
23659
23660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23662 arg2 = obj1;
23663 arg3 = obj2;
23664 {
23665 PyThreadState* __tstate = wxPyBeginAllowThreads();
23666 (arg1)->_setCallbackInfo(arg2,arg3);
23667
23668 wxPyEndAllowThreads(__tstate);
23669 if (PyErr_Occurred()) SWIG_fail;
23670 }
23671 Py_INCREF(Py_None); resultobj = Py_None;
23672 return resultobj;
23673 fail:
23674 return NULL;
23675}
23676
23677
23678static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
23679 PyObject *resultobj;
23680 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
23681 int arg2 ;
23682 int arg3 ;
d14a1e28
RD
23683 int arg4 ;
23684 int result;
23685 PyObject * obj0 = 0 ;
23686 char *kwnames[] = {
23687 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23688 };
23689
23690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23691 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23692 {
23693 PyThreadState* __tstate = wxPyBeginAllowThreads();
23694 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
23695
23696 wxPyEndAllowThreads(__tstate);
23697 if (PyErr_Occurred()) SWIG_fail;
23698 }
23699 resultobj = PyInt_FromLong((long)result);
23700 return resultobj;
23701 fail:
23702 return NULL;
23703}
23704
23705
23706static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
23707 PyObject *resultobj;
23708 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
23709 int arg2 ;
23710 int arg3 ;
d14a1e28
RD
23711 int arg4 ;
23712 int result;
23713 PyObject * obj0 = 0 ;
23714 char *kwnames[] = {
23715 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23716 };
23717
23718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
23723
23724 wxPyEndAllowThreads(__tstate);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 }
23727 resultobj = PyInt_FromLong((long)result);
23728 return resultobj;
23729 fail:
23730 return NULL;
23731}
23732
23733
23734static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
23735 PyObject *resultobj;
23736 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
23737 PyObject * obj0 = 0 ;
23738 char *kwnames[] = {
23739 (char *) "self", NULL
23740 };
23741
23742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
23743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23744 {
23745 PyThreadState* __tstate = wxPyBeginAllowThreads();
23746 (arg1)->base_OnLeave();
23747
23748 wxPyEndAllowThreads(__tstate);
23749 if (PyErr_Occurred()) SWIG_fail;
23750 }
23751 Py_INCREF(Py_None); resultobj = Py_None;
23752 return resultobj;
23753 fail:
23754 return NULL;
23755}
23756
23757
23758static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
23759 PyObject *resultobj;
23760 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
23761 int arg2 ;
23762 int arg3 ;
d14a1e28
RD
23763 bool result;
23764 PyObject * obj0 = 0 ;
23765 char *kwnames[] = {
23766 (char *) "self",(char *) "x",(char *) "y", NULL
23767 };
23768
23769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:TextDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail;
23770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23771 {
23772 PyThreadState* __tstate = wxPyBeginAllowThreads();
23773 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
23774
23775 wxPyEndAllowThreads(__tstate);
23776 if (PyErr_Occurred()) SWIG_fail;
23777 }
23778 resultobj = PyInt_FromLong((long)result);
23779 return resultobj;
23780 fail:
23781 return NULL;
23782}
23783
23784
23785static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
23786 PyObject *resultobj;
23787 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
e811c8ce
RD
23788 int arg2 ;
23789 int arg3 ;
d14a1e28
RD
23790 int arg4 ;
23791 int result;
23792 PyObject * obj0 = 0 ;
23793 char *kwnames[] = {
23794 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23795 };
23796
23797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23799 {
23800 PyThreadState* __tstate = wxPyBeginAllowThreads();
23801 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
23802
23803 wxPyEndAllowThreads(__tstate);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 }
23806 resultobj = PyInt_FromLong((long)result);
23807 return resultobj;
23808 fail:
23809 return NULL;
23810}
23811
23812
23813static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
23814 PyObject *obj;
23815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23816 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
23817 Py_INCREF(obj);
23818 return Py_BuildValue((char *)"");
23819}
23820static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
23821 PyObject *resultobj;
23822 wxPyFileDropTarget *result;
23823 char *kwnames[] = {
23824 NULL
23825 };
23826
23827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
23828 {
23829 PyThreadState* __tstate = wxPyBeginAllowThreads();
23830 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
23831
23832 wxPyEndAllowThreads(__tstate);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1);
23836 return resultobj;
23837 fail:
23838 return NULL;
23839}
23840
23841
23842static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
23843 PyObject *resultobj;
23844 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
23845 PyObject *arg2 = (PyObject *) 0 ;
23846 PyObject *arg3 = (PyObject *) 0 ;
23847 PyObject * obj0 = 0 ;
23848 PyObject * obj1 = 0 ;
23849 PyObject * obj2 = 0 ;
23850 char *kwnames[] = {
23851 (char *) "self",(char *) "self",(char *) "_class", NULL
23852 };
23853
23854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23856 arg2 = obj1;
23857 arg3 = obj2;
23858 {
23859 PyThreadState* __tstate = wxPyBeginAllowThreads();
23860 (arg1)->_setCallbackInfo(arg2,arg3);
23861
23862 wxPyEndAllowThreads(__tstate);
23863 if (PyErr_Occurred()) SWIG_fail;
23864 }
23865 Py_INCREF(Py_None); resultobj = Py_None;
23866 return resultobj;
23867 fail:
23868 return NULL;
23869}
23870
23871
23872static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
23873 PyObject *resultobj;
23874 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
23875 int arg2 ;
23876 int arg3 ;
d14a1e28
RD
23877 int arg4 ;
23878 int result;
23879 PyObject * obj0 = 0 ;
23880 char *kwnames[] = {
23881 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23882 };
23883
23884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23886 {
23887 PyThreadState* __tstate = wxPyBeginAllowThreads();
23888 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
23889
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = PyInt_FromLong((long)result);
23894 return resultobj;
23895 fail:
23896 return NULL;
23897}
23898
23899
23900static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
23901 PyObject *resultobj;
23902 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
23903 int arg2 ;
23904 int arg3 ;
d14a1e28
RD
23905 int arg4 ;
23906 int result;
23907 PyObject * obj0 = 0 ;
23908 char *kwnames[] = {
23909 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23910 };
23911
23912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23914 {
23915 PyThreadState* __tstate = wxPyBeginAllowThreads();
23916 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
23917
23918 wxPyEndAllowThreads(__tstate);
23919 if (PyErr_Occurred()) SWIG_fail;
23920 }
23921 resultobj = PyInt_FromLong((long)result);
23922 return resultobj;
23923 fail:
23924 return NULL;
23925}
23926
23927
23928static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
23929 PyObject *resultobj;
23930 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
23931 PyObject * obj0 = 0 ;
23932 char *kwnames[] = {
23933 (char *) "self", NULL
23934 };
23935
23936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
23937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 (arg1)->base_OnLeave();
23941
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 Py_INCREF(Py_None); resultobj = Py_None;
23946 return resultobj;
23947 fail:
23948 return NULL;
23949}
23950
23951
23952static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj;
23954 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
23955 int arg2 ;
23956 int arg3 ;
d14a1e28
RD
23957 bool result;
23958 PyObject * obj0 = 0 ;
23959 char *kwnames[] = {
23960 (char *) "self",(char *) "x",(char *) "y", NULL
23961 };
23962
23963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:FileDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail;
23964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23965 {
23966 PyThreadState* __tstate = wxPyBeginAllowThreads();
23967 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
23968
23969 wxPyEndAllowThreads(__tstate);
23970 if (PyErr_Occurred()) SWIG_fail;
23971 }
23972 resultobj = PyInt_FromLong((long)result);
23973 return resultobj;
23974 fail:
23975 return NULL;
23976}
23977
23978
23979static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
23980 PyObject *resultobj;
23981 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
e811c8ce
RD
23982 int arg2 ;
23983 int arg3 ;
d14a1e28
RD
23984 int arg4 ;
23985 int result;
23986 PyObject * obj0 = 0 ;
23987 char *kwnames[] = {
23988 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
23989 };
23990
23991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
23992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23993 {
23994 PyThreadState* __tstate = wxPyBeginAllowThreads();
23995 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
23996
23997 wxPyEndAllowThreads(__tstate);
23998 if (PyErr_Occurred()) SWIG_fail;
23999 }
24000 resultobj = PyInt_FromLong((long)result);
24001 return resultobj;
24002 fail:
24003 return NULL;
24004}
24005
24006
24007static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
24008 PyObject *obj;
24009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24010 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
24011 Py_INCREF(obj);
24012 return Py_BuildValue((char *)"");
24013}
24014static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24015 PyObject *resultobj;
24016 wxClipboard *result;
24017 char *kwnames[] = {
24018 NULL
24019 };
24020
24021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
24022 {
24023 PyThreadState* __tstate = wxPyBeginAllowThreads();
24024 result = (wxClipboard *)new wxClipboard();
24025
24026 wxPyEndAllowThreads(__tstate);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1);
24030 return resultobj;
24031 fail:
24032 return NULL;
24033}
24034
24035
24036static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24037 PyObject *resultobj;
24038 wxClipboard *arg1 = (wxClipboard *) 0 ;
24039 PyObject * obj0 = 0 ;
24040 char *kwnames[] = {
24041 (char *) "self", NULL
24042 };
24043
24044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
24045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24046 {
24047 PyThreadState* __tstate = wxPyBeginAllowThreads();
24048 delete arg1;
24049
24050 wxPyEndAllowThreads(__tstate);
24051 if (PyErr_Occurred()) SWIG_fail;
24052 }
24053 Py_INCREF(Py_None); resultobj = Py_None;
24054 return resultobj;
24055 fail:
24056 return NULL;
24057}
24058
24059
24060static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
24061 PyObject *resultobj;
24062 wxClipboard *arg1 = (wxClipboard *) 0 ;
24063 bool result;
24064 PyObject * obj0 = 0 ;
24065 char *kwnames[] = {
24066 (char *) "self", NULL
24067 };
24068
24069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
24070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24071 {
24072 PyThreadState* __tstate = wxPyBeginAllowThreads();
24073 result = (bool)(arg1)->Open();
24074
24075 wxPyEndAllowThreads(__tstate);
24076 if (PyErr_Occurred()) SWIG_fail;
24077 }
24078 resultobj = PyInt_FromLong((long)result);
24079 return resultobj;
24080 fail:
24081 return NULL;
24082}
24083
24084
24085static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
24086 PyObject *resultobj;
24087 wxClipboard *arg1 = (wxClipboard *) 0 ;
24088 PyObject * obj0 = 0 ;
24089 char *kwnames[] = {
24090 (char *) "self", NULL
24091 };
24092
24093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
24094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24095 {
24096 PyThreadState* __tstate = wxPyBeginAllowThreads();
24097 (arg1)->Close();
24098
24099 wxPyEndAllowThreads(__tstate);
24100 if (PyErr_Occurred()) SWIG_fail;
24101 }
24102 Py_INCREF(Py_None); resultobj = Py_None;
24103 return resultobj;
24104 fail:
24105 return NULL;
24106}
24107
24108
24109static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
24110 PyObject *resultobj;
24111 wxClipboard *arg1 = (wxClipboard *) 0 ;
24112 bool result;
24113 PyObject * obj0 = 0 ;
24114 char *kwnames[] = {
24115 (char *) "self", NULL
24116 };
24117
24118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
24119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 result = (bool)((wxClipboard const *)arg1)->IsOpened();
24123
24124 wxPyEndAllowThreads(__tstate);
24125 if (PyErr_Occurred()) SWIG_fail;
24126 }
24127 resultobj = PyInt_FromLong((long)result);
24128 return resultobj;
24129 fail:
24130 return NULL;
24131}
24132
24133
24134static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
24135 PyObject *resultobj;
24136 wxClipboard *arg1 = (wxClipboard *) 0 ;
24137 wxDataObject *arg2 = (wxDataObject *) 0 ;
24138 bool result;
24139 PyObject * obj0 = 0 ;
24140 PyObject * obj1 = 0 ;
24141 char *kwnames[] = {
24142 (char *) "self",(char *) "data", NULL
24143 };
24144
24145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
24146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24147 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24148 {
24149 PyThreadState* __tstate = wxPyBeginAllowThreads();
24150 result = (bool)(arg1)->AddData(arg2);
24151
24152 wxPyEndAllowThreads(__tstate);
24153 if (PyErr_Occurred()) SWIG_fail;
24154 }
24155 resultobj = PyInt_FromLong((long)result);
24156 return resultobj;
24157 fail:
24158 return NULL;
24159}
24160
24161
24162static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24163 PyObject *resultobj;
24164 wxClipboard *arg1 = (wxClipboard *) 0 ;
24165 wxDataObject *arg2 = (wxDataObject *) 0 ;
24166 bool result;
24167 PyObject * obj0 = 0 ;
24168 PyObject * obj1 = 0 ;
24169 char *kwnames[] = {
24170 (char *) "self",(char *) "data", NULL
24171 };
24172
24173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
24174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24175 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24176 {
24177 PyThreadState* __tstate = wxPyBeginAllowThreads();
24178 result = (bool)(arg1)->SetData(arg2);
24179
24180 wxPyEndAllowThreads(__tstate);
24181 if (PyErr_Occurred()) SWIG_fail;
24182 }
24183 resultobj = PyInt_FromLong((long)result);
24184 return resultobj;
24185 fail:
24186 return NULL;
24187}
24188
24189
24190static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24191 PyObject *resultobj;
24192 wxClipboard *arg1 = (wxClipboard *) 0 ;
24193 wxDataFormat *arg2 = 0 ;
24194 bool result;
24195 PyObject * obj0 = 0 ;
24196 PyObject * obj1 = 0 ;
24197 char *kwnames[] = {
24198 (char *) "self",(char *) "format", NULL
24199 };
24200
24201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
24202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24203 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24204 if (arg2 == NULL) {
24205 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24206 }
24207 {
24208 PyThreadState* __tstate = wxPyBeginAllowThreads();
24209 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
24210
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = PyInt_FromLong((long)result);
24215 return resultobj;
24216 fail:
24217 return NULL;
24218}
24219
24220
24221static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24222 PyObject *resultobj;
24223 wxClipboard *arg1 = (wxClipboard *) 0 ;
24224 wxDataObject *arg2 = 0 ;
24225 bool result;
24226 PyObject * obj0 = 0 ;
24227 PyObject * obj1 = 0 ;
24228 char *kwnames[] = {
24229 (char *) "self",(char *) "data", NULL
24230 };
24231
24232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
24233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24234 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24235 if (arg2 == NULL) {
24236 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24237 }
24238 {
24239 PyThreadState* __tstate = wxPyBeginAllowThreads();
24240 result = (bool)(arg1)->GetData(*arg2);
24241
24242 wxPyEndAllowThreads(__tstate);
24243 if (PyErr_Occurred()) SWIG_fail;
24244 }
24245 resultobj = PyInt_FromLong((long)result);
24246 return resultobj;
24247 fail:
24248 return NULL;
24249}
24250
24251
24252static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
24253 PyObject *resultobj;
24254 wxClipboard *arg1 = (wxClipboard *) 0 ;
24255 PyObject * obj0 = 0 ;
24256 char *kwnames[] = {
24257 (char *) "self", NULL
24258 };
24259
24260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
24261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24262 {
24263 PyThreadState* __tstate = wxPyBeginAllowThreads();
24264 (arg1)->Clear();
24265
24266 wxPyEndAllowThreads(__tstate);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
24269 Py_INCREF(Py_None); resultobj = Py_None;
24270 return resultobj;
24271 fail:
24272 return NULL;
24273}
24274
24275
24276static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
24277 PyObject *resultobj;
24278 wxClipboard *arg1 = (wxClipboard *) 0 ;
24279 bool result;
24280 PyObject * obj0 = 0 ;
24281 char *kwnames[] = {
24282 (char *) "self", NULL
24283 };
24284
24285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
24286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24287 {
24288 PyThreadState* __tstate = wxPyBeginAllowThreads();
24289 result = (bool)(arg1)->Flush();
24290
24291 wxPyEndAllowThreads(__tstate);
24292 if (PyErr_Occurred()) SWIG_fail;
24293 }
24294 resultobj = PyInt_FromLong((long)result);
24295 return resultobj;
24296 fail:
24297 return NULL;
24298}
24299
24300
24301static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
24302 PyObject *resultobj;
24303 wxClipboard *arg1 = (wxClipboard *) 0 ;
e811c8ce 24304 bool arg2 = (bool) False ;
d14a1e28
RD
24305 PyObject * obj0 = 0 ;
24306 PyObject * obj1 = 0 ;
24307 char *kwnames[] = {
24308 (char *) "self",(char *) "primary", NULL
24309 };
24310
24311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
24312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24313 if (obj1) {
24314 arg2 = PyInt_AsLong(obj1) ? true : false;
24315 if (PyErr_Occurred()) SWIG_fail;
24316 }
24317 {
24318 PyThreadState* __tstate = wxPyBeginAllowThreads();
24319 (arg1)->UsePrimarySelection(arg2);
24320
24321 wxPyEndAllowThreads(__tstate);
24322 if (PyErr_Occurred()) SWIG_fail;
24323 }
24324 Py_INCREF(Py_None); resultobj = Py_None;
24325 return resultobj;
24326 fail:
24327 return NULL;
24328}
24329
24330
24331static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
24332 PyObject *obj;
24333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24334 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
24335 Py_INCREF(obj);
24336 return Py_BuildValue((char *)"");
24337}
24338static int _wrap_TheClipboard_set(PyObject *_val) {
24339 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
24340 return 1;
24341}
24342
24343
24344static PyObject *_wrap_TheClipboard_get() {
24345 PyObject *pyobj;
24346
24347 pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0);
24348 return pyobj;
24349}
24350
24351
24352static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
24353 PyObject *resultobj;
24354 wxClipboard *arg1 = (wxClipboard *) NULL ;
24355 wxClipboardLocker *result;
24356 PyObject * obj0 = 0 ;
24357 char *kwnames[] = {
24358 (char *) "clipboard", NULL
24359 };
24360
24361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
24362 if (obj0) {
24363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24364 }
24365 {
24366 PyThreadState* __tstate = wxPyBeginAllowThreads();
24367 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
24368
24369 wxPyEndAllowThreads(__tstate);
24370 if (PyErr_Occurred()) SWIG_fail;
24371 }
24372 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1);
24373 return resultobj;
24374 fail:
24375 return NULL;
24376}
24377
24378
24379static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
24380 PyObject *resultobj;
24381 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
24382 PyObject * obj0 = 0 ;
24383 char *kwnames[] = {
24384 (char *) "self", NULL
24385 };
24386
24387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
24388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24389 {
24390 PyThreadState* __tstate = wxPyBeginAllowThreads();
24391 delete arg1;
24392
24393 wxPyEndAllowThreads(__tstate);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
24396 Py_INCREF(Py_None); resultobj = Py_None;
24397 return resultobj;
24398 fail:
24399 return NULL;
24400}
24401
24402
24403static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
24404 PyObject *resultobj;
24405 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
24406 bool result;
24407 PyObject * obj0 = 0 ;
24408 char *kwnames[] = {
24409 (char *) "self", NULL
24410 };
24411
24412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
24413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24414 {
24415 PyThreadState* __tstate = wxPyBeginAllowThreads();
24416 result = (bool)wxClipboardLocker___nonzero__(arg1);
24417
24418 wxPyEndAllowThreads(__tstate);
24419 if (PyErr_Occurred()) SWIG_fail;
24420 }
24421 resultobj = PyInt_FromLong((long)result);
24422 return resultobj;
24423 fail:
24424 return NULL;
24425}
24426
24427
24428static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
24429 PyObject *obj;
24430 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24431 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
24432 Py_INCREF(obj);
24433 return Py_BuildValue((char *)"");
24434}
24435static PyMethodDef SwigMethods[] = {
24436 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
24437 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
24438 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
24439 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
24440 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
24441 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
24442 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
24443 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
24444 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
24445 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
24446 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
24447 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
24448 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
24449 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
24450 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
24451 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
24452 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
24453 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
24454 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
24455 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
24456 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
24457 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
24458 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
24459 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
24460 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
24461 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
24462 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
24463 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
24464 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
24465 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
24466 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
24467 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
24468 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
24469 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
24470 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
24471 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
24472 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
24473 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
24474 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
24475 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
24476 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
24477 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
24478 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
24479 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
24480 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
24481 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
24482 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
24483 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
24484 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
24485 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
24486 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
24487 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
24488 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
24489 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
24490 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
24491 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
24492 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
24493 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
24494 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
24495 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
24496 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
24497 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
24498 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
24499 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
24500 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
24501 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
24502 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
24503 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
24504 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
24505 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
24506 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
24507 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
24508 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
24509 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
24510 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
24511 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
24512 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
24513 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
24514 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
24515 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
24516 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
24517 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
24518 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
24519 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
24520 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
d14a1e28 24521 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
322913ce 24522 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28 24523 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
322913ce 24524 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24525 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
24526 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
24527 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
24528 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
24529 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
24530 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
24531 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
24532 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
24533 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
24534 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
24535 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
24536 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
24537 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
24538 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
24539 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
24540 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
24541 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
24542 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
24543 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
24544 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
24545 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
24546 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
24547 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
24548 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
24549 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
24550 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
24551 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
24552 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
24553 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
24554 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
24555 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
24556 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
24557 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
24558 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
24559 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
24560 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
24561 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
24562 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
24563 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
24564 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
24565 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
24566 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
24567 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
24568 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
24569 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
24570 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
24571 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
24572 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
24573 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
24574 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
24575 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
24576 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
24577 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
24578 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
24579 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
24580 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
24581 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
24582 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
7722248d 24583 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24584 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
24585 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
24586 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24587 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
24588 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
24589 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
cc6dd355 24590 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24591 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
24592 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
24593 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
24594 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
24595 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
24596 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
24597 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
24598 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
24599 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
24600 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
24601 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
24602 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
24603 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
24604 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
24605 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
24606 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
24607 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
24608 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
24609 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
24610 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
24611 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
24612 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
24613 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
24614 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
24615 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
24616 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
24617 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
24618 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
24619 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
24620 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
24621 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
24622 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
24623 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
24624 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
24625 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
24626 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
24627 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
24628 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
24629 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
24630 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
24631 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
24632 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
24633 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
24634 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
24635 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
24636 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
24637 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
24638 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
24639 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
24640 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
24641 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
24642 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
24643 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
24644 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
24645 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
24646 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
24647 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
24648 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
24649 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
24650 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
24651 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
24652 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
24653 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
24654 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
24655 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
24656 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
cc6dd355 24657 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
d14a1e28
RD
24658 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
24659 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
24660 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
24661 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
24662 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
24663 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
24664 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
24665 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
24666 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
24667 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
24668 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
24669 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
24670 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
24671 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
24672 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
24673 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
24674 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
24675 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
24676 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
24677 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
24678 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
24679 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
24680 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
24681 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
24682 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
24683 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
24684 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
24685 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
24686 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
24687 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
24688 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
24689 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
24690 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
24691 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
24692 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
24693 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
24694 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
24695 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
24696 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
24697 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
24698 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
24699 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
24700 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
24701 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
24702 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
24703 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
24704 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
24705 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
24706 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
24707 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
24708 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
24709 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
24710 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
24711 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
24712 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
24713 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
24714 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
24715 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
24716 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
24717 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
24718 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
24719 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
24720 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
24721 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
24722 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
24723 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
24724 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
24725 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
24726 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
24727 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
24728 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
24729 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
24730 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
24731 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
24732 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
24733 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
24734 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
24735 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
24736 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
24737 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
24738 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
24739 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
24740 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
24741 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
24742 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
24743 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
24744 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
24745 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
24746 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
24747 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
24748 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
24749 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
24750 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
24751 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
24752 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
24753 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
24754 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
24755 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
24756 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
24757 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
24758 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
24759 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
24760 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
24761 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
24762 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
24763 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
24764 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
24765 { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS },
24766 { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS },
24767 { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS },
24768 { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS },
24769 { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS },
24770 { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS },
24771 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
24772 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
24773 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
24774 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
24775 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
24776 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
24777 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
24778 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
24779 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
24780 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
24781 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
24782 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
24783 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
24784 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
24785 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
24786 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
24787 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
24788 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
24789 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
24790 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
24791 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
24792 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
24793 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
24794 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
24795 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
24796 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
24797 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
24798 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
24799 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
24800 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
24801 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
24802 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
24803 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
24804 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
24805 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
24806 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
24807 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
24808 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
24809 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
24810 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
24811 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
24812 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
24813 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
24814 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
24815 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
24816 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
24817 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24818 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
24819 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
24820 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
24821 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
24822 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
24823 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
1e0c8722 24824 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
24825 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
24826 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
24827 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
24828 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
24829 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
24830 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
24831 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
24832 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
24833 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
24834 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
24835 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
24836 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
24837 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
24838 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
24839 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
24840 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
24841 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
24842 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
24843 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
24844 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
24845 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
24846 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
24847 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
24848 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
24849 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
24850 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
24851 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
24852 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
24853 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
24854 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
24855 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
24856 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
24857 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
24858 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
24859 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
24860 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
24861 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
24862 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
24863 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
24864 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
24865 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
24866 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
24867 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
24868 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
24869 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
24870 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
24871 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
24872 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
24873 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
24874 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
24875 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
24876 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
24877 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
24878 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
24879 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
24880 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
24881 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
24882 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
24883 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
24884 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
24885 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
24886 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
24887 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
24888 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
24889 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
24890 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
24891 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
24892 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
24893 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
24894 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
24895 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
24896 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
24897 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
24898 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
24899 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
24900 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
24901 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
24902 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
24903 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
24904 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
24905 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
24906 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
24907 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
24908 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
24909 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
24910 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
24911 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
24912 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
24913 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
24914 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
24915 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
24916 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
24917 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
24918 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
24919 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
24920 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
24921 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
24922 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
24923 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
24924 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
24925 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
24926 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
24927 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
24928 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
24929 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
24930 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
24931 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
24932 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
24933 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
24934 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
24935 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
24936 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
24937 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
24938 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
24939 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
24940 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
24941 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
24942 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
24943 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
24944 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
24945 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
24946 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
24947 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
24948 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
24949 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
24950 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
24951 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
24952 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
24953 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
24954 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
24955 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
24956 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
24957 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
24958 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
24959 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
24960 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
24961 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
24962 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
24963 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
24964 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
24965 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
24966 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
24967 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
24968 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
24969 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
24970 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
24971 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
24972 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
24973 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
24974 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
24975 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
24976 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
24977 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
24978 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
24979 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
24980 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
24981 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
24982 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
24983 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
24984 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
24985 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
24986 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
24987 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
24988 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
24989 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
24990 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
24991 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
24992 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
24993 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
24994 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
24995 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
24996 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
24997 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
24998 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
24999 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
25000 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
25001 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
25002 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
25003 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
25004 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
25005 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
25006 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
25007 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
25008 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
25009 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
25010 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
25011 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
25012 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
25013 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
25014 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
25015 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
25016 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
25017 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
25018 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
25019 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
25020 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
25021 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
25022 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
25023 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
25024 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
25025 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
25026 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
25027 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
25028 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
25029 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
25030 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
25031 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
25032 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
25033 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
25034 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
25035 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
25036 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
25037 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
25038 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
25039 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
25040 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
25041 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
25042 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
25043 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
25044 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
25045 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
25046 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
25047 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
25048 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
25049 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
25050 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
25051 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
25052 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
25053 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
25054 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
25055 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
25056 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
25057 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
25058 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
25059 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
25060 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
25061 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
25062 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
25063 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
25064 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
25065 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
25066 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
25067 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
25068 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
25069 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
25070 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
25071 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
25072 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
25073 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
25074 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
25075 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
25076 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
25077 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
25078 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
25079 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
25080 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
25081 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
25082 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
25083 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
25084 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
25085 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
25086 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
25087 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
25088 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
25089 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
25090 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
25091 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
25092 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
25093 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
25094 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
25095 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
25096 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
25097 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
25098 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25099 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
25100 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
25101 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
25102 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
25103 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
25104 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
25105 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
25106 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
25107 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
25108 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
25109 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25110 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
25111 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
25112 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
25113 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
25114 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
25115 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
25116 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25117 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
25118 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
25119 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
25120 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
25121 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
25122 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
25123 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
25124 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
25125 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
25126 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
25127 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
25128 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
25129 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
25130 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
25131 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
25132 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
25133 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
25134 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
25135 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25136 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
25137 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
25138 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
25139 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
25140 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
25141 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
25142 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
25143 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
25144 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25145 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
25146 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
25147 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
25148 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
25149 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
25150 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
25151 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
25152 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
25153 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
25154 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
25155 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25156 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
25157 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
25158 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
25159 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
25160 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
25161 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
25162 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
25163 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
25164 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
25165 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
25166 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
25167 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
25168 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
25169 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
25170 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
25171 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
25172 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
25173 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
25174 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
25175 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
25176 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
25177 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
25178 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
25179 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
25180 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
25181 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
25182 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
25183 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
25184 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
25185 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
25186 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
25187 { NULL, NULL }
25188};
25189
25190
25191/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25192
25193static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
25194 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
25195}
25196static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
25197 return (void *)((wxEvent *) ((wxMenuEvent *) x));
25198}
25199static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
25200 return (void *)((wxEvent *) ((wxCloseEvent *) x));
25201}
25202static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
25203 return (void *)((wxEvent *) ((wxMouseEvent *) x));
25204}
25205static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
25206 return (void *)((wxEvent *) ((wxEraseEvent *) x));
25207}
25208static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
25209 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
25210}
25211static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
25212 return (void *)((wxEvent *) ((wxTimerEvent *) x));
25213}
25214static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
25215 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
25216}
25217static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
25218 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
25219}
25220static void *_p_wxPyEventTo_p_wxEvent(void *x) {
25221 return (void *)((wxEvent *) ((wxPyEvent *) x));
25222}
25223static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
25224 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
25225}
25226static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
25227 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
25228}
25229static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
25230 return (void *)((wxEvent *) ((wxIdleEvent *) x));
25231}
25232static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
25233 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
25234}
25235static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
25236 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
25237}
25238static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
25239 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
25240}
25241static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
25242 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
25243}
25244static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
25245 return (void *)((wxEvent *) ((wxActivateEvent *) x));
25246}
25247static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
25248 return (void *)((wxEvent *) ((wxSizeEvent *) x));
25249}
25250static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
25251 return (void *)((wxEvent *) ((wxMoveEvent *) x));
25252}
25253static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
25254 return (void *)((wxEvent *) ((wxPaintEvent *) x));
25255}
25256static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
25257 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
25258}
25259static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
25260 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
25261}
25262static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
25263 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
25264}
25265static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
25266 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
25267}
25268static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
25269 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25270}
25271static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
25272 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
25273}
25274static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
25275 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
25276}
25277static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
25278 return (void *)((wxEvent *) ((wxFocusEvent *) x));
25279}
25280static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
25281 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
25282}
25283static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
25284 return (void *)((wxEvent *) ((wxProcessEvent *) x));
25285}
25286static void *_p_wxShowEventTo_p_wxEvent(void *x) {
25287 return (void *)((wxEvent *) ((wxShowEvent *) x));
25288}
25289static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
25290 return (void *)((wxEvent *) ((wxCommandEvent *) x));
25291}
25292static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
25293 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
25294}
25295static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
25296 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25297}
25298static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
25299 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
25300}
25301static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
25302 return (void *)((wxEvent *) ((wxKeyEvent *) x));
25303}
25304static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
25305 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
25306}
25307static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
25308 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
25309}
25310static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
25311 return (void *)((wxConfigBase *) ((wxConfig *) x));
25312}
25313static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
25314 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
25315}
25316static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
25317 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
25318}
25319static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
25320 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
25321}
25322static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
25323 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
25324}
25325static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
25326 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
25327}
25328static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
25329 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
25330}
25331static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
25332 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
25333}
25334static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
25335 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
25336}
25337static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
25338 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
25339}
25340static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
25341 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
25342}
25343static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
25344 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
25345}
25346static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
25347 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
25348}
25349static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
25350 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
25351}
25352static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
25353 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
25354}
25355static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
25356 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
25357}
25358static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
25359 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
25360}
25361static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
25362 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
25363}
25364static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
25365 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
25366}
25367static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
25368 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
25369}
25370static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
25371 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
25372}
25373static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
25374 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
25375}
25376static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
25377 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
25378}
25379static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
25380 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
25381}
25382static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
25383 return (void *)((wxEvtHandler *) ((wxWindow *) x));
25384}
25385static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
25386 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25387}
25388static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
25389 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
25390}
25391static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
25392 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
25393}
25394static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
25395 return (void *)((wxEvtHandler *) ((wxValidator *) x));
25396}
25397static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
25398 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
25399}
25400static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
25401 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
25402}
25403static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
25404 return (void *)((wxEvtHandler *) ((wxMenu *) x));
25405}
25406static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
25407 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
25408}
25409static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
25410 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
25411}
25412static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25413 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25414}
25415static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25416 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25417}
25418static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25419 return (void *)((wxObject *) ((wxSizerItem *) x));
25420}
25421static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25422 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25423}
25424static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25425 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25426}
25427static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25428 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25429}
25430static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25431 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25432}
25433static void *_p_wxSizerTo_p_wxObject(void *x) {
25434 return (void *)((wxObject *) ((wxSizer *) x));
25435}
25436static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25437 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25438}
25439static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
25440 return (void *)((wxObject *) ((wxFileHistory *) x));
25441}
25442static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25443 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25444}
25445static void *_p_wxEventTo_p_wxObject(void *x) {
25446 return (void *)((wxObject *) ((wxEvent *) x));
25447}
25448static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25449 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25450}
25451static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25452 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25453}
25454static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25455 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25456}
25457static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25458 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25459}
25460static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25461 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25462}
25463static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25464 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25465}
25466static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25467 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25468}
25469static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25470 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25471}
25472static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25473 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25474}
25475static void *_p_wxControlTo_p_wxObject(void *x) {
25476 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25477}
25478static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25479 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25480}
25481static void *_p_wxTimerEventTo_p_wxObject(void *x) {
25482 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
25483}
25484static void *_p_wxFSFileTo_p_wxObject(void *x) {
25485 return (void *)((wxObject *) ((wxFSFile *) x));
25486}
25487static void *_p_wxClipboardTo_p_wxObject(void *x) {
25488 return (void *)((wxObject *) ((wxClipboard *) x));
25489}
25490static void *_p_wxPySizerTo_p_wxObject(void *x) {
25491 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25492}
25493static void *_p_wxPyEventTo_p_wxObject(void *x) {
25494 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25495}
25496static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25497 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25498}
25499static void *_p_wxShowEventTo_p_wxObject(void *x) {
25500 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25501}
25502static void *_p_wxToolTipTo_p_wxObject(void *x) {
25503 return (void *)((wxObject *) ((wxToolTip *) x));
25504}
25505static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25506 return (void *)((wxObject *) ((wxMenuItem *) x));
25507}
25508static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25509 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25510}
25511static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25512 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25513}
25514static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25515 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25516}
25517static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25518 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25519}
25520static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25521 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25522}
25523static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25524 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25525}
25526static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25527 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25528}
25529static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25530 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25531}
25532static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25533 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25534}
25535static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25536 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25537}
25538static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25539 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25540}
25541static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25542 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25543}
25544static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25545 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25546}
25547static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25548 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25549}
25550static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25551 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25552}
25553static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25554 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25555}
25556static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25557 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25558}
25559static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25560 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25561}
25562static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25563 return (void *)((wxObject *) ((wxImageHandler *) x));
25564}
25565static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25566 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25567}
25568static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25569 return (void *)((wxObject *) ((wxEvtHandler *) x));
25570}
1e0c8722
RD
25571static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25572 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25573}
d14a1e28
RD
25574static void *_p_wxImageTo_p_wxObject(void *x) {
25575 return (void *)((wxObject *) ((wxImage *) x));
25576}
25577static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25578 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25579}
25580static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
25581 return (void *)((wxObject *) ((wxSystemOptions *) x));
25582}
25583static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
25584 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
25585}
25586static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25587 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25588}
25589static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25590 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25591}
25592static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25593 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25594}
25595static void *_p_wxWindowTo_p_wxObject(void *x) {
25596 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25597}
25598static void *_p_wxMenuTo_p_wxObject(void *x) {
25599 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25600}
25601static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25602 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25603}
25604static void *_p_wxPyProcessTo_p_wxObject(void *x) {
25605 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
25606}
25607static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25608 return (void *)((wxObject *) ((wxFileSystem *) x));
25609}
25610static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25611 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25612}
25613static void *_p_wxMenuEventTo_p_wxObject(void *x) {
25614 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
25615}
25616static void *_p_wxPyAppTo_p_wxObject(void *x) {
25617 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
25618}
25619static void *_p_wxCloseEventTo_p_wxObject(void *x) {
25620 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
25621}
25622static void *_p_wxMouseEventTo_p_wxObject(void *x) {
25623 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
25624}
25625static void *_p_wxEraseEventTo_p_wxObject(void *x) {
25626 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
25627}
25628static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
25629 return (void *)((wxObject *) ((wxBusyInfo *) x));
25630}
25631static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
25632 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
25633}
25634static void *_p_wxCommandEventTo_p_wxObject(void *x) {
25635 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
25636}
25637static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
25638 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
25639}
25640static void *_p_wxFocusEventTo_p_wxObject(void *x) {
25641 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
25642}
25643static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
25644 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
25645}
25646static void *_p_wxProcessEventTo_p_wxObject(void *x) {
25647 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
25648}
25649static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
25650 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25651}
25652static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
25653 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
25654}
25655static void *_p_wxValidatorTo_p_wxObject(void *x) {
25656 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
25657}
25658static void *_p_wxPyTimerTo_p_wxObject(void *x) {
25659 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
25660}
25661static void *_p_wxLogStderrTo_p_wxLog(void *x) {
25662 return (void *)((wxLog *) ((wxLogStderr *) x));
25663}
25664static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
25665 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
25666}
25667static void *_p_wxLogWindowTo_p_wxLog(void *x) {
25668 return (void *)((wxLog *) ((wxLogWindow *) x));
25669}
25670static void *_p_wxLogChainTo_p_wxLog(void *x) {
25671 return (void *)((wxLog *) ((wxLogChain *) x));
25672}
25673static void *_p_wxLogGuiTo_p_wxLog(void *x) {
25674 return (void *)((wxLog *) ((wxLogGui *) x));
25675}
25676static void *_p_wxPyLogTo_p_wxLog(void *x) {
25677 return (void *)((wxLog *) ((wxPyLog *) x));
25678}
25679static void *_p_wxControlTo_p_wxWindow(void *x) {
25680 return (void *)((wxWindow *) ((wxControl *) x));
25681}
25682static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
25683 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
25684}
25685static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
25686 return (void *)((wxWindow *) ((wxMenuBar *) x));
25687}
25688static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
25689 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
25690}
25691static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
25692 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
25693}
25694static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}};
25695static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}};
25696static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}};
25697static 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}};
25698static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}};
25699static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}};
25700static 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}};
25701static 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}};
25702static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}};
25703static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}};
25704static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}};
25705static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
25706static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}};
25707static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}};
25708static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}};
25709static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
25710static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
25711static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}};
25712static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}};
25713static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
25714static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}};
25715static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
25716static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}};
25717static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}};
25718static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}};
25719static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}};
25720static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}};
25721static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}};
25722static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}};
25723static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}};
25724static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}};
25725static 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}};
25726static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}};
25727static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}};
25728static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}};
25729static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}};
25730static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}};
25731static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}};
25732static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
25733static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}};
25734static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}};
25735static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}};
25736static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}};
25737static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}};
25738static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}};
25739static 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}};
25740static 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}};
25741static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
25742static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}};
25743static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}};
25744static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
25745static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}};
25746static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}};
25747static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}};
25748static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}};
25749static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}};
25750static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}};
25751static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}};
25752static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
25753static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}};
25754static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
1e0c8722 25755static 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
25756static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
25757static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}};
25758static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}};
25759static 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}};
25760static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
25761static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}};
25762static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
25763static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}};
25764static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}};
25765static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}};
25766static 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}};
25767static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}};
25768static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}};
25769static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}};
25770static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}};
25771static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}};
25772static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
25773static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}};
25774static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}};
25775static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}};
25776
25777static swig_type_info *swig_types_initial[] = {
25778_swigt__p_wxLogChain,
25779_swigt__p_wxMutexGuiLocker,
25780_swigt__p_wxFileHistory,
25781_swigt__p_wxLog,
25782_swigt__p_wxDateTime__TimeZone,
25783_swigt__p_wxMenu,
25784_swigt__p_wxEvent,
25785_swigt__p_wxConfigBase,
25786_swigt__p_wxWave,
25787_swigt__p_wxFileType,
25788_swigt__p_wxLogGui,
25789_swigt__p_wxFont,
25790_swigt__p_wxDataFormat,
25791_swigt__p_wxTimerEvent,
25792_swigt__p_wxCaret,
25793_swigt__p_int,
25794_swigt__p_wxSize,
25795_swigt__p_wxClipboard,
25796_swigt__p_wxStopWatch,
25797_swigt__p_wxDC,
25798_swigt__p_wxClipboardLocker,
25799_swigt__p_wxIcon,
25800_swigt__p_wxLogStderr,
25801_swigt__p_wxLogTextCtrl,
25802_swigt__p_wxTextCtrl,
25803_swigt__p_wxBusyCursor,
25804_swigt__p_wxFileDataObject,
25805_swigt__p_wxPyBitmapDataObject,
25806_swigt__p_wxPyTextDataObject,
25807_swigt__p_wxBitmapDataObject,
25808_swigt__p_wxTextDataObject,
25809_swigt__p_wxDataObject,
25810_swigt__p_wxCustomDataObject,
25811_swigt__p_wxURLDataObject,
25812_swigt__p_wxMetafileDataObject,
25813_swigt__p_wxTimerRunner,
25814_swigt__p_wxLogWindow,
25815_swigt__p_wxTimeSpan,
25816_swigt__p_wxArrayString,
25817_swigt__p_wxWindowDisabler,
25818_swigt__p_wxToolTip,
25819_swigt__p_wxDataObjectComposite,
25820_swigt__p_wxFileConfig,
25821_swigt__p_wxSystemSettings,
25822_swigt__p_wxPyDataObjectSimple,
25823_swigt__p_wxDataObjectSimple,
25824_swigt__p_wxEvtHandler,
25825_swigt__p_wxRect,
25826_swigt__p_wxSingleInstanceChecker,
25827_swigt__p_wxFileTypeInfo,
25828_swigt__p_wxFrame,
25829_swigt__p_wxTimer,
25830_swigt__p_wxMimeTypesManager,
25831_swigt__p_wxPyArtProvider,
25832_swigt__p_wxPyTipProvider,
25833_swigt__p_wxTipProvider,
25834_swigt__p_wxJoystick,
25835_swigt__p_wxSystemOptions,
25836_swigt__p_wxPoint,
25837_swigt__p_wxJoystickEvent,
25838_swigt__p_wxCursor,
25839_swigt__p_wxObject,
25840_swigt__p_wxOutputStream,
25841_swigt__p_wxDateTime,
25842_swigt__p_wxPyDropSource,
25843_swigt__p_wxWindow,
25844_swigt__p_wxString,
25845_swigt__p_wxPyProcess,
25846_swigt__p_wxBitmap,
25847_swigt__p_wxConfig,
25848_swigt__p_wxChar,
25849_swigt__p_wxBusyInfo,
25850_swigt__p_wxPyDropTarget,
25851_swigt__p_wxPyTextDropTarget,
25852_swigt__p_wxPyFileDropTarget,
25853_swigt__p_wxProcessEvent,
25854_swigt__p_wxPyLog,
25855_swigt__p_wxLogNull,
25856_swigt__p_wxColour,
25857_swigt__p_wxConfigPathChanger,
25858_swigt__p_wxPyTimer,
25859_swigt__p_wxDateSpan,
258600
25861};
25862
25863
25864/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
25865
25866static swig_const_info swig_const_table[] = {
25867{ SWIG_PY_INT, (char *)"SYS_OEM_FIXED_FONT", (long) wxSYS_OEM_FIXED_FONT, 0, 0, 0},
25868{ SWIG_PY_INT, (char *)"SYS_ANSI_FIXED_FONT", (long) wxSYS_ANSI_FIXED_FONT, 0, 0, 0},
25869{ SWIG_PY_INT, (char *)"SYS_ANSI_VAR_FONT", (long) wxSYS_ANSI_VAR_FONT, 0, 0, 0},
25870{ SWIG_PY_INT, (char *)"SYS_SYSTEM_FONT", (long) wxSYS_SYSTEM_FONT, 0, 0, 0},
25871{ SWIG_PY_INT, (char *)"SYS_DEVICE_DEFAULT_FONT", (long) wxSYS_DEVICE_DEFAULT_FONT, 0, 0, 0},
25872{ SWIG_PY_INT, (char *)"SYS_DEFAULT_PALETTE", (long) wxSYS_DEFAULT_PALETTE, 0, 0, 0},
25873{ SWIG_PY_INT, (char *)"SYS_SYSTEM_FIXED_FONT", (long) wxSYS_SYSTEM_FIXED_FONT, 0, 0, 0},
25874{ SWIG_PY_INT, (char *)"SYS_DEFAULT_GUI_FONT", (long) wxSYS_DEFAULT_GUI_FONT, 0, 0, 0},
25875{ SWIG_PY_INT, (char *)"SYS_ICONTITLE_FONT", (long) wxSYS_ICONTITLE_FONT, 0, 0, 0},
25876{ SWIG_PY_INT, (char *)"SYS_COLOUR_SCROLLBAR", (long) wxSYS_COLOUR_SCROLLBAR, 0, 0, 0},
25877{ SWIG_PY_INT, (char *)"SYS_COLOUR_BACKGROUND", (long) wxSYS_COLOUR_BACKGROUND, 0, 0, 0},
25878{ SWIG_PY_INT, (char *)"SYS_COLOUR_DESKTOP", (long) wxSYS_COLOUR_DESKTOP, 0, 0, 0},
25879{ SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVECAPTION", (long) wxSYS_COLOUR_ACTIVECAPTION, 0, 0, 0},
25880{ SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTION", (long) wxSYS_COLOUR_INACTIVECAPTION, 0, 0, 0},
25881{ SWIG_PY_INT, (char *)"SYS_COLOUR_MENU", (long) wxSYS_COLOUR_MENU, 0, 0, 0},
25882{ SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOW", (long) wxSYS_COLOUR_WINDOW, 0, 0, 0},
25883{ SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWFRAME", (long) wxSYS_COLOUR_WINDOWFRAME, 0, 0, 0},
25884{ SWIG_PY_INT, (char *)"SYS_COLOUR_MENUTEXT", (long) wxSYS_COLOUR_MENUTEXT, 0, 0, 0},
25885{ SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWTEXT", (long) wxSYS_COLOUR_WINDOWTEXT, 0, 0, 0},
25886{ SWIG_PY_INT, (char *)"SYS_COLOUR_CAPTIONTEXT", (long) wxSYS_COLOUR_CAPTIONTEXT, 0, 0, 0},
25887{ SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVEBORDER", (long) wxSYS_COLOUR_ACTIVEBORDER, 0, 0, 0},
25888{ SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVEBORDER", (long) wxSYS_COLOUR_INACTIVEBORDER, 0, 0, 0},
25889{ SWIG_PY_INT, (char *)"SYS_COLOUR_APPWORKSPACE", (long) wxSYS_COLOUR_APPWORKSPACE, 0, 0, 0},
25890{ SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHT", (long) wxSYS_COLOUR_HIGHLIGHT, 0, 0, 0},
25891{ SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHTTEXT", (long) wxSYS_COLOUR_HIGHLIGHTTEXT, 0, 0, 0},
25892{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNFACE", (long) wxSYS_COLOUR_BTNFACE, 0, 0, 0},
25893{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DFACE", (long) wxSYS_COLOUR_3DFACE, 0, 0, 0},
25894{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNSHADOW", (long) wxSYS_COLOUR_BTNSHADOW, 0, 0, 0},
25895{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DSHADOW", (long) wxSYS_COLOUR_3DSHADOW, 0, 0, 0},
25896{ SWIG_PY_INT, (char *)"SYS_COLOUR_GRAYTEXT", (long) wxSYS_COLOUR_GRAYTEXT, 0, 0, 0},
25897{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNTEXT", (long) wxSYS_COLOUR_BTNTEXT, 0, 0, 0},
25898{ SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTIONTEXT", (long) wxSYS_COLOUR_INACTIVECAPTIONTEXT, 0, 0, 0},
25899{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHIGHLIGHT", (long) wxSYS_COLOUR_BTNHIGHLIGHT, 0, 0, 0},
25900{ SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHILIGHT", (long) wxSYS_COLOUR_BTNHILIGHT, 0, 0, 0},
25901{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DHIGHLIGHT", (long) wxSYS_COLOUR_3DHIGHLIGHT, 0, 0, 0},
25902{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DHILIGHT", (long) wxSYS_COLOUR_3DHILIGHT, 0, 0, 0},
25903{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DDKSHADOW", (long) wxSYS_COLOUR_3DDKSHADOW, 0, 0, 0},
25904{ SWIG_PY_INT, (char *)"SYS_COLOUR_3DLIGHT", (long) wxSYS_COLOUR_3DLIGHT, 0, 0, 0},
25905{ SWIG_PY_INT, (char *)"SYS_COLOUR_INFOTEXT", (long) wxSYS_COLOUR_INFOTEXT, 0, 0, 0},
25906{ SWIG_PY_INT, (char *)"SYS_COLOUR_INFOBK", (long) wxSYS_COLOUR_INFOBK, 0, 0, 0},
25907{ SWIG_PY_INT, (char *)"SYS_COLOUR_LISTBOX", (long) wxSYS_COLOUR_LISTBOX, 0, 0, 0},
25908{ SWIG_PY_INT, (char *)"SYS_COLOUR_HOTLIGHT", (long) wxSYS_COLOUR_HOTLIGHT, 0, 0, 0},
25909{ SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTACTIVECAPTION, 0, 0, 0},
25910{ SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTINACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION, 0, 0, 0},
25911{ SWIG_PY_INT, (char *)"SYS_COLOUR_MENUHILIGHT", (long) wxSYS_COLOUR_MENUHILIGHT, 0, 0, 0},
25912{ SWIG_PY_INT, (char *)"SYS_COLOUR_MENUBAR", (long) wxSYS_COLOUR_MENUBAR, 0, 0, 0},
25913{ SWIG_PY_INT, (char *)"SYS_COLOUR_MAX", (long) wxSYS_COLOUR_MAX, 0, 0, 0},
25914{ SWIG_PY_INT, (char *)"SYS_MOUSE_BUTTONS", (long) wxSYS_MOUSE_BUTTONS, 0, 0, 0},
25915{ SWIG_PY_INT, (char *)"SYS_BORDER_X", (long) wxSYS_BORDER_X, 0, 0, 0},
25916{ SWIG_PY_INT, (char *)"SYS_BORDER_Y", (long) wxSYS_BORDER_Y, 0, 0, 0},
25917{ SWIG_PY_INT, (char *)"SYS_CURSOR_X", (long) wxSYS_CURSOR_X, 0, 0, 0},
25918{ SWIG_PY_INT, (char *)"SYS_CURSOR_Y", (long) wxSYS_CURSOR_Y, 0, 0, 0},
25919{ SWIG_PY_INT, (char *)"SYS_DCLICK_X", (long) wxSYS_DCLICK_X, 0, 0, 0},
25920{ SWIG_PY_INT, (char *)"SYS_DCLICK_Y", (long) wxSYS_DCLICK_Y, 0, 0, 0},
25921{ SWIG_PY_INT, (char *)"SYS_DRAG_X", (long) wxSYS_DRAG_X, 0, 0, 0},
25922{ SWIG_PY_INT, (char *)"SYS_DRAG_Y", (long) wxSYS_DRAG_Y, 0, 0, 0},
25923{ SWIG_PY_INT, (char *)"SYS_EDGE_X", (long) wxSYS_EDGE_X, 0, 0, 0},
25924{ SWIG_PY_INT, (char *)"SYS_EDGE_Y", (long) wxSYS_EDGE_Y, 0, 0, 0},
25925{ SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_X", (long) wxSYS_HSCROLL_ARROW_X, 0, 0, 0},
25926{ SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_Y", (long) wxSYS_HSCROLL_ARROW_Y, 0, 0, 0},
25927{ SWIG_PY_INT, (char *)"SYS_HTHUMB_X", (long) wxSYS_HTHUMB_X, 0, 0, 0},
25928{ SWIG_PY_INT, (char *)"SYS_ICON_X", (long) wxSYS_ICON_X, 0, 0, 0},
25929{ SWIG_PY_INT, (char *)"SYS_ICON_Y", (long) wxSYS_ICON_Y, 0, 0, 0},
25930{ SWIG_PY_INT, (char *)"SYS_ICONSPACING_X", (long) wxSYS_ICONSPACING_X, 0, 0, 0},
25931{ SWIG_PY_INT, (char *)"SYS_ICONSPACING_Y", (long) wxSYS_ICONSPACING_Y, 0, 0, 0},
25932{ SWIG_PY_INT, (char *)"SYS_WINDOWMIN_X", (long) wxSYS_WINDOWMIN_X, 0, 0, 0},
25933{ SWIG_PY_INT, (char *)"SYS_WINDOWMIN_Y", (long) wxSYS_WINDOWMIN_Y, 0, 0, 0},
25934{ SWIG_PY_INT, (char *)"SYS_SCREEN_X", (long) wxSYS_SCREEN_X, 0, 0, 0},
25935{ SWIG_PY_INT, (char *)"SYS_SCREEN_Y", (long) wxSYS_SCREEN_Y, 0, 0, 0},
25936{ SWIG_PY_INT, (char *)"SYS_FRAMESIZE_X", (long) wxSYS_FRAMESIZE_X, 0, 0, 0},
25937{ SWIG_PY_INT, (char *)"SYS_FRAMESIZE_Y", (long) wxSYS_FRAMESIZE_Y, 0, 0, 0},
25938{ SWIG_PY_INT, (char *)"SYS_SMALLICON_X", (long) wxSYS_SMALLICON_X, 0, 0, 0},
25939{ SWIG_PY_INT, (char *)"SYS_SMALLICON_Y", (long) wxSYS_SMALLICON_Y, 0, 0, 0},
25940{ SWIG_PY_INT, (char *)"SYS_HSCROLL_Y", (long) wxSYS_HSCROLL_Y, 0, 0, 0},
25941{ SWIG_PY_INT, (char *)"SYS_VSCROLL_X", (long) wxSYS_VSCROLL_X, 0, 0, 0},
25942{ SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_X", (long) wxSYS_VSCROLL_ARROW_X, 0, 0, 0},
25943{ SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_Y", (long) wxSYS_VSCROLL_ARROW_Y, 0, 0, 0},
25944{ SWIG_PY_INT, (char *)"SYS_VTHUMB_Y", (long) wxSYS_VTHUMB_Y, 0, 0, 0},
25945{ SWIG_PY_INT, (char *)"SYS_CAPTION_Y", (long) wxSYS_CAPTION_Y, 0, 0, 0},
25946{ SWIG_PY_INT, (char *)"SYS_MENU_Y", (long) wxSYS_MENU_Y, 0, 0, 0},
25947{ SWIG_PY_INT, (char *)"SYS_NETWORK_PRESENT", (long) wxSYS_NETWORK_PRESENT, 0, 0, 0},
25948{ SWIG_PY_INT, (char *)"SYS_PENWINDOWS_PRESENT", (long) wxSYS_PENWINDOWS_PRESENT, 0, 0, 0},
25949{ SWIG_PY_INT, (char *)"SYS_SHOW_SOUNDS", (long) wxSYS_SHOW_SOUNDS, 0, 0, 0},
25950{ SWIG_PY_INT, (char *)"SYS_SWAP_BUTTONS", (long) wxSYS_SWAP_BUTTONS, 0, 0, 0},
25951{ SWIG_PY_INT, (char *)"SYS_CAN_DRAW_FRAME_DECORATIONS", (long) wxSYS_CAN_DRAW_FRAME_DECORATIONS, 0, 0, 0},
25952{ SWIG_PY_INT, (char *)"SYS_CAN_ICONIZE_FRAME", (long) wxSYS_CAN_ICONIZE_FRAME, 0, 0, 0},
25953{ SWIG_PY_INT, (char *)"SYS_SCREEN_NONE", (long) wxSYS_SCREEN_NONE, 0, 0, 0},
25954{ SWIG_PY_INT, (char *)"SYS_SCREEN_TINY", (long) wxSYS_SCREEN_TINY, 0, 0, 0},
25955{ SWIG_PY_INT, (char *)"SYS_SCREEN_PDA", (long) wxSYS_SCREEN_PDA, 0, 0, 0},
25956{ SWIG_PY_INT, (char *)"SYS_SCREEN_SMALL", (long) wxSYS_SCREEN_SMALL, 0, 0, 0},
25957{ SWIG_PY_INT, (char *)"SYS_SCREEN_DESKTOP", (long) wxSYS_SCREEN_DESKTOP, 0, 0, 0},
25958{ SWIG_PY_INT, (char *)"SHUTDOWN_POWEROFF", (long) wxSHUTDOWN_POWEROFF, 0, 0, 0},
25959{ SWIG_PY_INT, (char *)"SHUTDOWN_REBOOT", (long) wxSHUTDOWN_REBOOT, 0, 0, 0},
25960{ SWIG_PY_INT, (char *)"TIMER_CONTINUOUS", (long) wxTIMER_CONTINUOUS, 0, 0, 0},
25961{ SWIG_PY_INT, (char *)"TIMER_ONE_SHOT", (long) wxTIMER_ONE_SHOT, 0, 0, 0},
25962{ SWIG_PY_INT, (char *)"wxEVT_TIMER", (long) wxEVT_TIMER, 0, 0, 0},
25963{ SWIG_PY_INT, (char *)"LOG_FatalError", (long) wxLOG_FatalError, 0, 0, 0},
25964{ SWIG_PY_INT, (char *)"LOG_Error", (long) wxLOG_Error, 0, 0, 0},
25965{ SWIG_PY_INT, (char *)"LOG_Warning", (long) wxLOG_Warning, 0, 0, 0},
25966{ SWIG_PY_INT, (char *)"LOG_Message", (long) wxLOG_Message, 0, 0, 0},
25967{ SWIG_PY_INT, (char *)"LOG_Status", (long) wxLOG_Status, 0, 0, 0},
25968{ SWIG_PY_INT, (char *)"LOG_Info", (long) wxLOG_Info, 0, 0, 0},
25969{ SWIG_PY_INT, (char *)"LOG_Debug", (long) wxLOG_Debug, 0, 0, 0},
25970{ SWIG_PY_INT, (char *)"LOG_Trace", (long) wxLOG_Trace, 0, 0, 0},
25971{ SWIG_PY_INT, (char *)"LOG_Progress", (long) wxLOG_Progress, 0, 0, 0},
25972{ SWIG_PY_INT, (char *)"LOG_User", (long) wxLOG_User, 0, 0, 0},
25973{ SWIG_PY_INT, (char *)"LOG_Max", (long) wxLOG_Max, 0, 0, 0},
25974{ SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0},
25975{ SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0},
25976{ SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0},
25977{ SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0},
25978{ SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0},
25979{ SWIG_PY_INT, (char *)"TraceMemAlloc", (long) 0x0001, 0, 0, 0},
25980{ SWIG_PY_INT, (char *)"TraceMessages", (long) 0x0002, 0, 0, 0},
25981{ SWIG_PY_INT, (char *)"TraceResAlloc", (long) 0x0004, 0, 0, 0},
25982{ SWIG_PY_INT, (char *)"TraceRefCount", (long) 0x0008, 0, 0, 0},
25983{ SWIG_PY_INT, (char *)"TraceOleCalls", (long) 0x0100, 0, 0, 0},
25984{ SWIG_PY_INT, (char *)"PROCESS_DEFAULT", (long) wxPROCESS_DEFAULT, 0, 0, 0},
25985{ SWIG_PY_INT, (char *)"PROCESS_REDIRECT", (long) wxPROCESS_REDIRECT, 0, 0, 0},
25986{ SWIG_PY_INT, (char *)"KILL_OK", (long) wxKILL_OK, 0, 0, 0},
25987{ SWIG_PY_INT, (char *)"KILL_BAD_SIGNAL", (long) wxKILL_BAD_SIGNAL, 0, 0, 0},
25988{ SWIG_PY_INT, (char *)"KILL_ACCESS_DENIED", (long) wxKILL_ACCESS_DENIED, 0, 0, 0},
25989{ SWIG_PY_INT, (char *)"KILL_NO_PROCESS", (long) wxKILL_NO_PROCESS, 0, 0, 0},
25990{ SWIG_PY_INT, (char *)"KILL_ERROR", (long) wxKILL_ERROR, 0, 0, 0},
25991{ SWIG_PY_INT, (char *)"SIGNONE", (long) wxSIGNONE, 0, 0, 0},
25992{ SWIG_PY_INT, (char *)"SIGHUP", (long) wxSIGHUP, 0, 0, 0},
25993{ SWIG_PY_INT, (char *)"SIGINT", (long) wxSIGINT, 0, 0, 0},
25994{ SWIG_PY_INT, (char *)"SIGQUIT", (long) wxSIGQUIT, 0, 0, 0},
25995{ SWIG_PY_INT, (char *)"SIGILL", (long) wxSIGILL, 0, 0, 0},
25996{ SWIG_PY_INT, (char *)"SIGTRAP", (long) wxSIGTRAP, 0, 0, 0},
25997{ SWIG_PY_INT, (char *)"SIGABRT", (long) wxSIGABRT, 0, 0, 0},
25998{ SWIG_PY_INT, (char *)"SIGIOT", (long) wxSIGIOT, 0, 0, 0},
25999{ SWIG_PY_INT, (char *)"SIGEMT", (long) wxSIGEMT, 0, 0, 0},
26000{ SWIG_PY_INT, (char *)"SIGFPE", (long) wxSIGFPE, 0, 0, 0},
26001{ SWIG_PY_INT, (char *)"SIGKILL", (long) wxSIGKILL, 0, 0, 0},
26002{ SWIG_PY_INT, (char *)"SIGBUS", (long) wxSIGBUS, 0, 0, 0},
26003{ SWIG_PY_INT, (char *)"SIGSEGV", (long) wxSIGSEGV, 0, 0, 0},
26004{ SWIG_PY_INT, (char *)"SIGSYS", (long) wxSIGSYS, 0, 0, 0},
26005{ SWIG_PY_INT, (char *)"SIGPIPE", (long) wxSIGPIPE, 0, 0, 0},
26006{ SWIG_PY_INT, (char *)"SIGALRM", (long) wxSIGALRM, 0, 0, 0},
26007{ SWIG_PY_INT, (char *)"SIGTERM", (long) wxSIGTERM, 0, 0, 0},
26008{ SWIG_PY_INT, (char *)"wxEVT_END_PROCESS", (long) wxEVT_END_PROCESS, 0, 0, 0},
26009{ SWIG_PY_INT, (char *)"EXEC_ASYNC", (long) wxEXEC_ASYNC, 0, 0, 0},
26010{ SWIG_PY_INT, (char *)"EXEC_SYNC", (long) wxEXEC_SYNC, 0, 0, 0},
26011{ SWIG_PY_INT, (char *)"EXEC_NOHIDE", (long) wxEXEC_NOHIDE, 0, 0, 0},
26012{ SWIG_PY_INT, (char *)"EXEC_MAKE_GROUP_LEADER", (long) wxEXEC_MAKE_GROUP_LEADER, 0, 0, 0},
26013{ SWIG_PY_INT, (char *)"JOYSTICK1", (long) wxJOYSTICK1, 0, 0, 0},
26014{ SWIG_PY_INT, (char *)"JOYSTICK2", (long) wxJOYSTICK2, 0, 0, 0},
26015{ SWIG_PY_INT, (char *)"JOY_BUTTON_ANY", (long) wxJOY_BUTTON_ANY, 0, 0, 0},
26016{ SWIG_PY_INT, (char *)"JOY_BUTTON1", (long) wxJOY_BUTTON1, 0, 0, 0},
26017{ SWIG_PY_INT, (char *)"JOY_BUTTON2", (long) wxJOY_BUTTON2, 0, 0, 0},
26018{ SWIG_PY_INT, (char *)"JOY_BUTTON3", (long) wxJOY_BUTTON3, 0, 0, 0},
26019{ SWIG_PY_INT, (char *)"JOY_BUTTON4", (long) wxJOY_BUTTON4, 0, 0, 0},
26020{ SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_DOWN", (long) wxEVT_JOY_BUTTON_DOWN, 0, 0, 0},
26021{ SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_UP", (long) wxEVT_JOY_BUTTON_UP, 0, 0, 0},
26022{ SWIG_PY_INT, (char *)"wxEVT_JOY_MOVE", (long) wxEVT_JOY_MOVE, 0, 0, 0},
26023{ SWIG_PY_INT, (char *)"wxEVT_JOY_ZMOVE", (long) wxEVT_JOY_ZMOVE, 0, 0, 0},
26024{ SWIG_PY_INT, (char *)"MAILCAP_STANDARD", (long) wxMAILCAP_STANDARD, 0, 0, 0},
26025{ SWIG_PY_INT, (char *)"MAILCAP_NETSCAPE", (long) wxMAILCAP_NETSCAPE, 0, 0, 0},
26026{ SWIG_PY_INT, (char *)"MAILCAP_KDE", (long) wxMAILCAP_KDE, 0, 0, 0},
26027{ SWIG_PY_INT, (char *)"MAILCAP_GNOME", (long) wxMAILCAP_GNOME, 0, 0, 0},
26028{ SWIG_PY_INT, (char *)"MAILCAP_ALL", (long) wxMAILCAP_ALL, 0, 0, 0},
26029{ SWIG_PY_INT, (char *)"CONFIG_USE_LOCAL_FILE", (long) wxCONFIG_USE_LOCAL_FILE, 0, 0, 0},
26030{ SWIG_PY_INT, (char *)"CONFIG_USE_GLOBAL_FILE", (long) wxCONFIG_USE_GLOBAL_FILE, 0, 0, 0},
26031{ SWIG_PY_INT, (char *)"CONFIG_USE_RELATIVE_PATH", (long) wxCONFIG_USE_RELATIVE_PATH, 0, 0, 0},
26032{ SWIG_PY_INT, (char *)"CONFIG_USE_NO_ESCAPE_CHARACTERS", (long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS, 0, 0, 0},
26033{ SWIG_PY_INT, (char *)"ConfigBase_Type_Unknown", (long) wxConfigBase::Type_Unknown, 0, 0, 0},
26034{ SWIG_PY_INT, (char *)"ConfigBase_Type_String", (long) wxConfigBase::Type_String, 0, 0, 0},
26035{ SWIG_PY_INT, (char *)"ConfigBase_Type_Boolean", (long) wxConfigBase::Type_Boolean, 0, 0, 0},
26036{ SWIG_PY_INT, (char *)"ConfigBase_Type_Integer", (long) wxConfigBase::Type_Integer, 0, 0, 0},
26037{ SWIG_PY_INT, (char *)"ConfigBase_Type_Float", (long) wxConfigBase::Type_Float, 0, 0, 0},
26038{ SWIG_PY_INT, (char *)"DateTime_Local", (long) wxDateTime::Local, 0, 0, 0},
26039{ SWIG_PY_INT, (char *)"DateTime_GMT_12", (long) wxDateTime::GMT_12, 0, 0, 0},
26040{ SWIG_PY_INT, (char *)"DateTime_GMT_11", (long) wxDateTime::GMT_11, 0, 0, 0},
26041{ SWIG_PY_INT, (char *)"DateTime_GMT_10", (long) wxDateTime::GMT_10, 0, 0, 0},
26042{ SWIG_PY_INT, (char *)"DateTime_GMT_9", (long) wxDateTime::GMT_9, 0, 0, 0},
26043{ SWIG_PY_INT, (char *)"DateTime_GMT_8", (long) wxDateTime::GMT_8, 0, 0, 0},
26044{ SWIG_PY_INT, (char *)"DateTime_GMT_7", (long) wxDateTime::GMT_7, 0, 0, 0},
26045{ SWIG_PY_INT, (char *)"DateTime_GMT_6", (long) wxDateTime::GMT_6, 0, 0, 0},
26046{ SWIG_PY_INT, (char *)"DateTime_GMT_5", (long) wxDateTime::GMT_5, 0, 0, 0},
26047{ SWIG_PY_INT, (char *)"DateTime_GMT_4", (long) wxDateTime::GMT_4, 0, 0, 0},
26048{ SWIG_PY_INT, (char *)"DateTime_GMT_3", (long) wxDateTime::GMT_3, 0, 0, 0},
26049{ SWIG_PY_INT, (char *)"DateTime_GMT_2", (long) wxDateTime::GMT_2, 0, 0, 0},
26050{ SWIG_PY_INT, (char *)"DateTime_GMT_1", (long) wxDateTime::GMT_1, 0, 0, 0},
26051{ SWIG_PY_INT, (char *)"DateTime_GMT0", (long) wxDateTime::GMT0, 0, 0, 0},
26052{ SWIG_PY_INT, (char *)"DateTime_GMT1", (long) wxDateTime::GMT1, 0, 0, 0},
26053{ SWIG_PY_INT, (char *)"DateTime_GMT2", (long) wxDateTime::GMT2, 0, 0, 0},
26054{ SWIG_PY_INT, (char *)"DateTime_GMT3", (long) wxDateTime::GMT3, 0, 0, 0},
26055{ SWIG_PY_INT, (char *)"DateTime_GMT4", (long) wxDateTime::GMT4, 0, 0, 0},
26056{ SWIG_PY_INT, (char *)"DateTime_GMT5", (long) wxDateTime::GMT5, 0, 0, 0},
26057{ SWIG_PY_INT, (char *)"DateTime_GMT6", (long) wxDateTime::GMT6, 0, 0, 0},
26058{ SWIG_PY_INT, (char *)"DateTime_GMT7", (long) wxDateTime::GMT7, 0, 0, 0},
26059{ SWIG_PY_INT, (char *)"DateTime_GMT8", (long) wxDateTime::GMT8, 0, 0, 0},
26060{ SWIG_PY_INT, (char *)"DateTime_GMT9", (long) wxDateTime::GMT9, 0, 0, 0},
26061{ SWIG_PY_INT, (char *)"DateTime_GMT10", (long) wxDateTime::GMT10, 0, 0, 0},
26062{ SWIG_PY_INT, (char *)"DateTime_GMT11", (long) wxDateTime::GMT11, 0, 0, 0},
26063{ SWIG_PY_INT, (char *)"DateTime_GMT12", (long) wxDateTime::GMT12, 0, 0, 0},
26064{ SWIG_PY_INT, (char *)"DateTime_WET", (long) wxDateTime::WET, 0, 0, 0},
26065{ SWIG_PY_INT, (char *)"DateTime_WEST", (long) wxDateTime::WEST, 0, 0, 0},
26066{ SWIG_PY_INT, (char *)"DateTime_CET", (long) wxDateTime::CET, 0, 0, 0},
26067{ SWIG_PY_INT, (char *)"DateTime_CEST", (long) wxDateTime::CEST, 0, 0, 0},
26068{ SWIG_PY_INT, (char *)"DateTime_EET", (long) wxDateTime::EET, 0, 0, 0},
26069{ SWIG_PY_INT, (char *)"DateTime_EEST", (long) wxDateTime::EEST, 0, 0, 0},
26070{ SWIG_PY_INT, (char *)"DateTime_MSK", (long) wxDateTime::MSK, 0, 0, 0},
26071{ SWIG_PY_INT, (char *)"DateTime_MSD", (long) wxDateTime::MSD, 0, 0, 0},
26072{ SWIG_PY_INT, (char *)"DateTime_AST", (long) wxDateTime::AST, 0, 0, 0},
26073{ SWIG_PY_INT, (char *)"DateTime_ADT", (long) wxDateTime::ADT, 0, 0, 0},
26074{ SWIG_PY_INT, (char *)"DateTime_EST", (long) wxDateTime::EST, 0, 0, 0},
26075{ SWIG_PY_INT, (char *)"DateTime_EDT", (long) wxDateTime::EDT, 0, 0, 0},
26076{ SWIG_PY_INT, (char *)"DateTime_CST", (long) wxDateTime::CST, 0, 0, 0},
26077{ SWIG_PY_INT, (char *)"DateTime_CDT", (long) wxDateTime::CDT, 0, 0, 0},
26078{ SWIG_PY_INT, (char *)"DateTime_MST", (long) wxDateTime::MST, 0, 0, 0},
26079{ SWIG_PY_INT, (char *)"DateTime_MDT", (long) wxDateTime::MDT, 0, 0, 0},
26080{ SWIG_PY_INT, (char *)"DateTime_PST", (long) wxDateTime::PST, 0, 0, 0},
26081{ SWIG_PY_INT, (char *)"DateTime_PDT", (long) wxDateTime::PDT, 0, 0, 0},
26082{ SWIG_PY_INT, (char *)"DateTime_HST", (long) wxDateTime::HST, 0, 0, 0},
26083{ SWIG_PY_INT, (char *)"DateTime_AKST", (long) wxDateTime::AKST, 0, 0, 0},
26084{ SWIG_PY_INT, (char *)"DateTime_AKDT", (long) wxDateTime::AKDT, 0, 0, 0},
26085{ SWIG_PY_INT, (char *)"DateTime_A_WST", (long) wxDateTime::A_WST, 0, 0, 0},
26086{ SWIG_PY_INT, (char *)"DateTime_A_CST", (long) wxDateTime::A_CST, 0, 0, 0},
26087{ SWIG_PY_INT, (char *)"DateTime_A_EST", (long) wxDateTime::A_EST, 0, 0, 0},
26088{ SWIG_PY_INT, (char *)"DateTime_A_ESST", (long) wxDateTime::A_ESST, 0, 0, 0},
26089{ SWIG_PY_INT, (char *)"DateTime_UTC", (long) wxDateTime::UTC, 0, 0, 0},
26090{ SWIG_PY_INT, (char *)"DateTime_Gregorian", (long) wxDateTime::Gregorian, 0, 0, 0},
26091{ SWIG_PY_INT, (char *)"DateTime_Julian", (long) wxDateTime::Julian, 0, 0, 0},
26092{ SWIG_PY_INT, (char *)"DateTime_Gr_Unknown", (long) wxDateTime::Gr_Unknown, 0, 0, 0},
26093{ SWIG_PY_INT, (char *)"DateTime_Gr_Standard", (long) wxDateTime::Gr_Standard, 0, 0, 0},
26094{ SWIG_PY_INT, (char *)"DateTime_Gr_Alaska", (long) wxDateTime::Gr_Alaska, 0, 0, 0},
26095{ SWIG_PY_INT, (char *)"DateTime_Gr_Albania", (long) wxDateTime::Gr_Albania, 0, 0, 0},
26096{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria", (long) wxDateTime::Gr_Austria, 0, 0, 0},
26097{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Brixen", (long) wxDateTime::Gr_Austria_Brixen, 0, 0, 0},
26098{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Salzburg", (long) wxDateTime::Gr_Austria_Salzburg, 0, 0, 0},
26099{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Tyrol", (long) wxDateTime::Gr_Austria_Tyrol, 0, 0, 0},
26100{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Carinthia", (long) wxDateTime::Gr_Austria_Carinthia, 0, 0, 0},
26101{ SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Styria", (long) wxDateTime::Gr_Austria_Styria, 0, 0, 0},
26102{ SWIG_PY_INT, (char *)"DateTime_Gr_Belgium", (long) wxDateTime::Gr_Belgium, 0, 0, 0},
26103{ SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria", (long) wxDateTime::Gr_Bulgaria, 0, 0, 0},
26104{ SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_1", (long) wxDateTime::Gr_Bulgaria_1, 0, 0, 0},
26105{ SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_2", (long) wxDateTime::Gr_Bulgaria_2, 0, 0, 0},
26106{ SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_3", (long) wxDateTime::Gr_Bulgaria_3, 0, 0, 0},
26107{ SWIG_PY_INT, (char *)"DateTime_Gr_Canada", (long) wxDateTime::Gr_Canada, 0, 0, 0},
26108{ SWIG_PY_INT, (char *)"DateTime_Gr_China", (long) wxDateTime::Gr_China, 0, 0, 0},
26109{ SWIG_PY_INT, (char *)"DateTime_Gr_China_1", (long) wxDateTime::Gr_China_1, 0, 0, 0},
26110{ SWIG_PY_INT, (char *)"DateTime_Gr_China_2", (long) wxDateTime::Gr_China_2, 0, 0, 0},
26111{ SWIG_PY_INT, (char *)"DateTime_Gr_Czechoslovakia", (long) wxDateTime::Gr_Czechoslovakia, 0, 0, 0},
26112{ SWIG_PY_INT, (char *)"DateTime_Gr_Denmark", (long) wxDateTime::Gr_Denmark, 0, 0, 0},
26113{ SWIG_PY_INT, (char *)"DateTime_Gr_Egypt", (long) wxDateTime::Gr_Egypt, 0, 0, 0},
26114{ SWIG_PY_INT, (char *)"DateTime_Gr_Estonia", (long) wxDateTime::Gr_Estonia, 0, 0, 0},
26115{ SWIG_PY_INT, (char *)"DateTime_Gr_Finland", (long) wxDateTime::Gr_Finland, 0, 0, 0},
26116{ SWIG_PY_INT, (char *)"DateTime_Gr_France", (long) wxDateTime::Gr_France, 0, 0, 0},
26117{ SWIG_PY_INT, (char *)"DateTime_Gr_France_Alsace", (long) wxDateTime::Gr_France_Alsace, 0, 0, 0},
26118{ SWIG_PY_INT, (char *)"DateTime_Gr_France_Lorraine", (long) wxDateTime::Gr_France_Lorraine, 0, 0, 0},
26119{ SWIG_PY_INT, (char *)"DateTime_Gr_France_Strasbourg", (long) wxDateTime::Gr_France_Strasbourg, 0, 0, 0},
26120{ SWIG_PY_INT, (char *)"DateTime_Gr_Germany", (long) wxDateTime::Gr_Germany, 0, 0, 0},
26121{ SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Catholic", (long) wxDateTime::Gr_Germany_Catholic, 0, 0, 0},
26122{ SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Prussia", (long) wxDateTime::Gr_Germany_Prussia, 0, 0, 0},
26123{ SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Protestant", (long) wxDateTime::Gr_Germany_Protestant, 0, 0, 0},
26124{ SWIG_PY_INT, (char *)"DateTime_Gr_GreatBritain", (long) wxDateTime::Gr_GreatBritain, 0, 0, 0},
26125{ SWIG_PY_INT, (char *)"DateTime_Gr_Greece", (long) wxDateTime::Gr_Greece, 0, 0, 0},
26126{ SWIG_PY_INT, (char *)"DateTime_Gr_Hungary", (long) wxDateTime::Gr_Hungary, 0, 0, 0},
26127{ SWIG_PY_INT, (char *)"DateTime_Gr_Ireland", (long) wxDateTime::Gr_Ireland, 0, 0, 0},
26128{ SWIG_PY_INT, (char *)"DateTime_Gr_Italy", (long) wxDateTime::Gr_Italy, 0, 0, 0},
26129{ SWIG_PY_INT, (char *)"DateTime_Gr_Japan", (long) wxDateTime::Gr_Japan, 0, 0, 0},
26130{ SWIG_PY_INT, (char *)"DateTime_Gr_Japan_1", (long) wxDateTime::Gr_Japan_1, 0, 0, 0},
26131{ SWIG_PY_INT, (char *)"DateTime_Gr_Japan_2", (long) wxDateTime::Gr_Japan_2, 0, 0, 0},
26132{ SWIG_PY_INT, (char *)"DateTime_Gr_Japan_3", (long) wxDateTime::Gr_Japan_3, 0, 0, 0},
26133{ SWIG_PY_INT, (char *)"DateTime_Gr_Latvia", (long) wxDateTime::Gr_Latvia, 0, 0, 0},
26134{ SWIG_PY_INT, (char *)"DateTime_Gr_Lithuania", (long) wxDateTime::Gr_Lithuania, 0, 0, 0},
26135{ SWIG_PY_INT, (char *)"DateTime_Gr_Luxemburg", (long) wxDateTime::Gr_Luxemburg, 0, 0, 0},
26136{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands", (long) wxDateTime::Gr_Netherlands, 0, 0, 0},
26137{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Groningen", (long) wxDateTime::Gr_Netherlands_Groningen, 0, 0, 0},
26138{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Gelderland", (long) wxDateTime::Gr_Netherlands_Gelderland, 0, 0, 0},
26139{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Utrecht", (long) wxDateTime::Gr_Netherlands_Utrecht, 0, 0, 0},
26140{ SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Friesland", (long) wxDateTime::Gr_Netherlands_Friesland, 0, 0, 0},
26141{ SWIG_PY_INT, (char *)"DateTime_Gr_Norway", (long) wxDateTime::Gr_Norway, 0, 0, 0},
26142{ SWIG_PY_INT, (char *)"DateTime_Gr_Poland", (long) wxDateTime::Gr_Poland, 0, 0, 0},
26143{ SWIG_PY_INT, (char *)"DateTime_Gr_Portugal", (long) wxDateTime::Gr_Portugal, 0, 0, 0},
26144{ SWIG_PY_INT, (char *)"DateTime_Gr_Romania", (long) wxDateTime::Gr_Romania, 0, 0, 0},
26145{ SWIG_PY_INT, (char *)"DateTime_Gr_Russia", (long) wxDateTime::Gr_Russia, 0, 0, 0},
26146{ SWIG_PY_INT, (char *)"DateTime_Gr_Scotland", (long) wxDateTime::Gr_Scotland, 0, 0, 0},
26147{ SWIG_PY_INT, (char *)"DateTime_Gr_Spain", (long) wxDateTime::Gr_Spain, 0, 0, 0},
26148{ SWIG_PY_INT, (char *)"DateTime_Gr_Sweden", (long) wxDateTime::Gr_Sweden, 0, 0, 0},
26149{ SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland", (long) wxDateTime::Gr_Switzerland, 0, 0, 0},
26150{ SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Catholic", (long) wxDateTime::Gr_Switzerland_Catholic, 0, 0, 0},
26151{ SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Protestant", (long) wxDateTime::Gr_Switzerland_Protestant, 0, 0, 0},
26152{ SWIG_PY_INT, (char *)"DateTime_Gr_Turkey", (long) wxDateTime::Gr_Turkey, 0, 0, 0},
26153{ SWIG_PY_INT, (char *)"DateTime_Gr_USA", (long) wxDateTime::Gr_USA, 0, 0, 0},
26154{ SWIG_PY_INT, (char *)"DateTime_Gr_Wales", (long) wxDateTime::Gr_Wales, 0, 0, 0},
26155{ SWIG_PY_INT, (char *)"DateTime_Gr_Yugoslavia", (long) wxDateTime::Gr_Yugoslavia, 0, 0, 0},
26156{ SWIG_PY_INT, (char *)"DateTime_Country_Unknown", (long) wxDateTime::Country_Unknown, 0, 0, 0},
26157{ SWIG_PY_INT, (char *)"DateTime_Country_Default", (long) wxDateTime::Country_Default, 0, 0, 0},
26158{ SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_Start", (long) wxDateTime::Country_WesternEurope_Start, 0, 0, 0},
26159{ SWIG_PY_INT, (char *)"DateTime_Country_EEC", (long) wxDateTime::Country_EEC, 0, 0, 0},
26160{ SWIG_PY_INT, (char *)"DateTime_France", (long) wxDateTime::France, 0, 0, 0},
26161{ SWIG_PY_INT, (char *)"DateTime_Germany", (long) wxDateTime::Germany, 0, 0, 0},
26162{ SWIG_PY_INT, (char *)"DateTime_UK", (long) wxDateTime::UK, 0, 0, 0},
26163{ SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_End", (long) wxDateTime::Country_WesternEurope_End, 0, 0, 0},
26164{ SWIG_PY_INT, (char *)"DateTime_Russia", (long) wxDateTime::Russia, 0, 0, 0},
26165{ SWIG_PY_INT, (char *)"DateTime_USA", (long) wxDateTime::USA, 0, 0, 0},
26166{ SWIG_PY_INT, (char *)"DateTime_Jan", (long) wxDateTime::Jan, 0, 0, 0},
26167{ SWIG_PY_INT, (char *)"DateTime_Feb", (long) wxDateTime::Feb, 0, 0, 0},
26168{ SWIG_PY_INT, (char *)"DateTime_Mar", (long) wxDateTime::Mar, 0, 0, 0},
26169{ SWIG_PY_INT, (char *)"DateTime_Apr", (long) wxDateTime::Apr, 0, 0, 0},
26170{ SWIG_PY_INT, (char *)"DateTime_May", (long) wxDateTime::May, 0, 0, 0},
26171{ SWIG_PY_INT, (char *)"DateTime_Jun", (long) wxDateTime::Jun, 0, 0, 0},
26172{ SWIG_PY_INT, (char *)"DateTime_Jul", (long) wxDateTime::Jul, 0, 0, 0},
26173{ SWIG_PY_INT, (char *)"DateTime_Aug", (long) wxDateTime::Aug, 0, 0, 0},
26174{ SWIG_PY_INT, (char *)"DateTime_Sep", (long) wxDateTime::Sep, 0, 0, 0},
26175{ SWIG_PY_INT, (char *)"DateTime_Oct", (long) wxDateTime::Oct, 0, 0, 0},
26176{ SWIG_PY_INT, (char *)"DateTime_Nov", (long) wxDateTime::Nov, 0, 0, 0},
26177{ SWIG_PY_INT, (char *)"DateTime_Dec", (long) wxDateTime::Dec, 0, 0, 0},
26178{ SWIG_PY_INT, (char *)"DateTime_Inv_Month", (long) wxDateTime::Inv_Month, 0, 0, 0},
26179{ SWIG_PY_INT, (char *)"DateTime_Sun", (long) wxDateTime::Sun, 0, 0, 0},
26180{ SWIG_PY_INT, (char *)"DateTime_Mon", (long) wxDateTime::Mon, 0, 0, 0},
26181{ SWIG_PY_INT, (char *)"DateTime_Tue", (long) wxDateTime::Tue, 0, 0, 0},
26182{ SWIG_PY_INT, (char *)"DateTime_Wed", (long) wxDateTime::Wed, 0, 0, 0},
26183{ SWIG_PY_INT, (char *)"DateTime_Thu", (long) wxDateTime::Thu, 0, 0, 0},
26184{ SWIG_PY_INT, (char *)"DateTime_Fri", (long) wxDateTime::Fri, 0, 0, 0},
26185{ SWIG_PY_INT, (char *)"DateTime_Sat", (long) wxDateTime::Sat, 0, 0, 0},
26186{ SWIG_PY_INT, (char *)"DateTime_Inv_WeekDay", (long) wxDateTime::Inv_WeekDay, 0, 0, 0},
26187{ SWIG_PY_INT, (char *)"DateTime_Inv_Year", (long) wxDateTime::Inv_Year, 0, 0, 0},
26188{ SWIG_PY_INT, (char *)"DateTime_Name_Full", (long) wxDateTime::Name_Full, 0, 0, 0},
26189{ SWIG_PY_INT, (char *)"DateTime_Name_Abbr", (long) wxDateTime::Name_Abbr, 0, 0, 0},
26190{ SWIG_PY_INT, (char *)"DateTime_Default_First", (long) wxDateTime::Default_First, 0, 0, 0},
26191{ SWIG_PY_INT, (char *)"DateTime_Monday_First", (long) wxDateTime::Monday_First, 0, 0, 0},
26192{ SWIG_PY_INT, (char *)"DateTime_Sunday_First", (long) wxDateTime::Sunday_First, 0, 0, 0},
26193{ SWIG_PY_INT, (char *)"DF_INVALID", (long) wxDF_INVALID, 0, 0, 0},
26194{ SWIG_PY_INT, (char *)"DF_TEXT", (long) wxDF_TEXT, 0, 0, 0},
26195{ SWIG_PY_INT, (char *)"DF_BITMAP", (long) wxDF_BITMAP, 0, 0, 0},
26196{ SWIG_PY_INT, (char *)"DF_METAFILE", (long) wxDF_METAFILE, 0, 0, 0},
26197{ SWIG_PY_INT, (char *)"DF_SYLK", (long) wxDF_SYLK, 0, 0, 0},
26198{ SWIG_PY_INT, (char *)"DF_DIF", (long) wxDF_DIF, 0, 0, 0},
26199{ SWIG_PY_INT, (char *)"DF_TIFF", (long) wxDF_TIFF, 0, 0, 0},
26200{ SWIG_PY_INT, (char *)"DF_OEMTEXT", (long) wxDF_OEMTEXT, 0, 0, 0},
26201{ SWIG_PY_INT, (char *)"DF_DIB", (long) wxDF_DIB, 0, 0, 0},
26202{ SWIG_PY_INT, (char *)"DF_PALETTE", (long) wxDF_PALETTE, 0, 0, 0},
26203{ SWIG_PY_INT, (char *)"DF_PENDATA", (long) wxDF_PENDATA, 0, 0, 0},
26204{ SWIG_PY_INT, (char *)"DF_RIFF", (long) wxDF_RIFF, 0, 0, 0},
26205{ SWIG_PY_INT, (char *)"DF_WAVE", (long) wxDF_WAVE, 0, 0, 0},
26206{ SWIG_PY_INT, (char *)"DF_UNICODETEXT", (long) wxDF_UNICODETEXT, 0, 0, 0},
26207{ SWIG_PY_INT, (char *)"DF_ENHMETAFILE", (long) wxDF_ENHMETAFILE, 0, 0, 0},
26208{ SWIG_PY_INT, (char *)"DF_FILENAME", (long) wxDF_FILENAME, 0, 0, 0},
26209{ SWIG_PY_INT, (char *)"DF_LOCALE", (long) wxDF_LOCALE, 0, 0, 0},
26210{ SWIG_PY_INT, (char *)"DF_PRIVATE", (long) wxDF_PRIVATE, 0, 0, 0},
26211{ SWIG_PY_INT, (char *)"DF_HTML", (long) wxDF_HTML, 0, 0, 0},
26212{ SWIG_PY_INT, (char *)"DF_MAX", (long) wxDF_MAX, 0, 0, 0},
26213{ SWIG_PY_INT, (char *)"DataObject_Get", (long) wxDataObject::Get, 0, 0, 0},
26214{ SWIG_PY_INT, (char *)"DataObject_Set", (long) wxDataObject::Set, 0, 0, 0},
26215{ SWIG_PY_INT, (char *)"DataObject_Both", (long) wxDataObject::Both, 0, 0, 0},
26216{ SWIG_PY_INT, (char *)"Drag_CopyOnly", (long) wxDrag_CopyOnly, 0, 0, 0},
26217{ SWIG_PY_INT, (char *)"Drag_AllowMove", (long) wxDrag_AllowMove, 0, 0, 0},
26218{ SWIG_PY_INT, (char *)"Drag_DefaultMove", (long) wxDrag_DefaultMove, 0, 0, 0},
26219{ SWIG_PY_INT, (char *)"DragError", (long) wxDragError, 0, 0, 0},
26220{ SWIG_PY_INT, (char *)"DragNone", (long) wxDragNone, 0, 0, 0},
26221{ SWIG_PY_INT, (char *)"DragCopy", (long) wxDragCopy, 0, 0, 0},
26222{ SWIG_PY_INT, (char *)"DragMove", (long) wxDragMove, 0, 0, 0},
26223{ SWIG_PY_INT, (char *)"DragLink", (long) wxDragLink, 0, 0, 0},
26224{ SWIG_PY_INT, (char *)"DragCancel", (long) wxDragCancel, 0, 0, 0},
26225{0}};
26226
26227#ifdef __cplusplus
26228}
26229#endif
26230
26231#ifdef __cplusplus
26232extern "C"
26233#endif
26234SWIGEXPORT(void) SWIG_init(void) {
26235 static PyObject *SWIG_globals = 0;
26236 static int typeinit = 0;
26237 PyObject *m, *d;
26238 int i;
26239 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
26240 m = Py_InitModule((char *) SWIG_name, SwigMethods);
26241 d = PyModule_GetDict(m);
26242
26243 if (!typeinit) {
26244 for (i = 0; swig_types_initial[i]; i++) {
26245 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
26246 }
26247 typeinit = 1;
26248 }
26249 SWIG_InstallConstants(d,swig_const_table);
26250
26251 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
26252 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
26253
26254 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
26255
26256 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
26257 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
26258 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
26259 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
26260 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
26261 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
26262 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
26263 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
26264 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
26265 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
26266 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
26267 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
26268 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
26269 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
26270 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
26271 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
26272 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
26273 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
26274 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
26275 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
26276 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
26277 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
26278 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
26279 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
26280 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
26281 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
26282 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
26283 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
26284 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
26285 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
26286 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
26287 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
26288 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
26289 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
26290 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
26291 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
26292 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
26293 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
26294 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
26295 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
26296 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
26297 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
26298 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
26299 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
26300
26301 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
26302
26303 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
26304
26305 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
26306 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
26307 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
26308 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
26309
26310 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
26311}
26312