]>
Commit | Line | Data |
---|---|---|
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 | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
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; } | |
25 | private: | |
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 | |
48 | ||
49 | ||
50 | /*********************************************************************** | |
51 | * common.swg for wxPython | |
52 | * | |
53 | * Include only the function prototypes and such from SWIG's common.swg, | |
54 | * but not the runtime functions themselves. This helps keep the | |
55 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
56 | * anyway. | |
57 | * | |
58 | ************************************************************************/ | |
59 | ||
60 | #include <string.h> | |
61 | ||
62 | #if defined(_WIN32) || defined(__WIN32__) | |
63 | # if defined(_MSC_VER) | |
64 | # if defined(STATIC_LINKED) | |
65 | # define SWIGEXPORT(a) a | |
66 | # define SWIGIMPORT(a) extern a | |
67 | # else | |
68 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # endif | |
71 | # else | |
72 | # if defined(__BORLANDC__) | |
73 | # define SWIGEXPORT(a) a _export | |
74 | # define SWIGIMPORT(a) a _export | |
75 | # else | |
76 | # define SWIGEXPORT(a) a | |
77 | # define SWIGIMPORT(a) a | |
78 | # endif | |
79 | # endif | |
80 | #else | |
81 | # define SWIGEXPORT(a) a | |
82 | # define SWIGIMPORT(a) a | |
83 | #endif | |
84 | ||
85 | #ifdef SWIG_GLOBAL | |
86 | #define SWIGRUNTIME(a) SWIGEXPORT(a) | |
87 | #else | |
88 | #define SWIGRUNTIME(a) static a | |
89 | #endif | |
90 | ||
91 | ||
92 | #ifdef __cplusplus | |
93 | extern "C" { | |
94 | #endif | |
95 | ||
96 | typedef void *(*swig_converter_func)(void *); | |
97 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
98 | ||
99 | typedef struct swig_type_info { | |
423f194a | 100 | const char *name; |
d14a1e28 RD |
101 | swig_converter_func converter; |
102 | const char *str; | |
423f194a | 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 | ||
110 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
112 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
114 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
116 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
117 | ||
118 | ||
119 | #ifdef __cplusplus | |
120 | } | |
423f194a | 121 | |
d14a1e28 RD |
122 | #endif |
123 | ||
124 | /*********************************************************************** | |
125 | * pyrun.swg for wxPython | |
126 | * | |
127 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
128 | * but not the runtime functions themselves. This helps keep the | |
129 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
130 | * anyway. | |
131 | * | |
132 | ************************************************************************/ | |
133 | ||
134 | ||
135 | #include "Python.h" | |
136 | ||
137 | #ifdef __cplusplus | |
138 | extern "C" { | |
139 | #endif | |
140 | ||
141 | #define SWIG_PY_INT 1 | |
142 | #define SWIG_PY_FLOAT 2 | |
143 | #define SWIG_PY_STRING 3 | |
144 | #define SWIG_PY_POINTER 4 | |
145 | #define SWIG_PY_BINARY 5 | |
146 | ||
147 | /* Flags for pointer conversion */ | |
148 | ||
149 | #define SWIG_POINTER_EXCEPTION 0x1 | |
150 | #define SWIG_POINTER_DISOWN 0x2 | |
151 | ||
152 | /* Exception handling in wrappers */ | |
153 | #define SWIG_fail goto fail | |
154 | ||
155 | /* Constant information structure */ | |
156 | typedef struct swig_const_info { | |
157 | int type; | |
158 | char *name; | |
159 | long lvalue; | |
160 | double dvalue; | |
161 | void *pvalue; | |
162 | swig_type_info **ptype; | |
163 | } swig_const_info; | |
164 | ||
165 | ||
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_PackData(c, ptr, sz) \ | |
183 | SWIG_Python_PackData(c, ptr, sz) | |
184 | #define SWIG_UnpackData(c, ptr, sz) \ | |
185 | SWIG_Python_UnpackData(c, ptr, sz) | |
186 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
187 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
188 | #define SWIG_InstallConstants(d, constants) \ | |
189 | SWIG_Python_InstallConstants(d, constants) | |
190 | ||
191 | ||
192 | SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
193 | SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
194 | SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
195 | ||
196 | SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void); | |
197 | SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
198 | SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
199 | SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int); | |
200 | SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int); | |
201 | SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
202 | SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
203 | ||
204 | ||
205 | /* Contract support */ | |
206 | ||
423f194a | 207 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 208 | |
d14a1e28 RD |
209 | |
210 | #ifdef __cplusplus | |
211 | } | |
212 | #endif | |
213 | ||
214 | ||
215 | ||
216 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
217 | ||
218 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
219 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
220 | #define SWIGTYPE_p_wxMetafile swig_types[2] | |
221 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
222 | #define SWIGTYPE_p_wxLog swig_types[4] | |
223 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
224 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
225 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
226 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
227 | #define SWIGTYPE_p_wxWave swig_types[9] | |
228 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
229 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
230 | #define SWIGTYPE_p_wxFont swig_types[12] | |
231 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
232 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
233 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
234 | #define SWIGTYPE_p_int swig_types[16] | |
235 | #define SWIGTYPE_p_wxSize swig_types[17] | |
236 | #define SWIGTYPE_p_wxClipboard swig_types[18] | |
237 | #define SWIGTYPE_p_wxStopWatch swig_types[19] | |
238 | #define SWIGTYPE_p_wxDC swig_types[20] | |
239 | #define SWIGTYPE_p_wxClipboardLocker swig_types[21] | |
240 | #define SWIGTYPE_p_wxIcon swig_types[22] | |
241 | #define SWIGTYPE_p_wxLogStderr swig_types[23] | |
242 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[24] | |
243 | #define SWIGTYPE_p_wxTextCtrl swig_types[25] | |
244 | #define SWIGTYPE_p_wxBusyCursor swig_types[26] | |
245 | #define SWIGTYPE_p_wxFileDataObject swig_types[27] | |
246 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[28] | |
247 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[29] | |
248 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[30] | |
249 | #define SWIGTYPE_p_wxTextDataObject swig_types[31] | |
250 | #define SWIGTYPE_p_wxDataObject swig_types[32] | |
251 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
252 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
253 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
254 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] | |
255 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
256 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
257 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
258 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
259 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
260 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
261 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
262 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
263 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[45] | |
264 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[46] | |
265 | #define SWIGTYPE_p_wxEvtHandler swig_types[47] | |
266 | #define SWIGTYPE_p_wxRect swig_types[48] | |
267 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[49] | |
268 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[50] | |
269 | #define SWIGTYPE_p_wxFrame swig_types[51] | |
270 | #define SWIGTYPE_p_wxTimer swig_types[52] | |
271 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[53] | |
272 | #define SWIGTYPE_p_wxPyArtProvider swig_types[54] | |
273 | #define SWIGTYPE_p_wxPyTipProvider swig_types[55] | |
274 | #define SWIGTYPE_p_wxTipProvider swig_types[56] | |
275 | #define SWIGTYPE_p_wxJoystick swig_types[57] | |
276 | #define SWIGTYPE_p_wxSystemOptions swig_types[58] | |
277 | #define SWIGTYPE_p_wxPoint swig_types[59] | |
278 | #define SWIGTYPE_p_wxJoystickEvent swig_types[60] | |
279 | #define SWIGTYPE_p_wxCursor swig_types[61] | |
280 | #define SWIGTYPE_p_wxObject swig_types[62] | |
281 | #define SWIGTYPE_p_wxOutputStream swig_types[63] | |
282 | #define SWIGTYPE_p_wxDateTime swig_types[64] | |
283 | #define SWIGTYPE_p_wxPyDropSource swig_types[65] | |
284 | #define SWIGTYPE_p_wxWindow swig_types[66] | |
285 | #define SWIGTYPE_p_wxString swig_types[67] | |
286 | #define SWIGTYPE_p_wxPyProcess swig_types[68] | |
287 | #define SWIGTYPE_p_wxBitmap swig_types[69] | |
288 | #define SWIGTYPE_p_wxConfig swig_types[70] | |
289 | #define SWIGTYPE_p_wxChar swig_types[71] | |
290 | #define SWIGTYPE_p_wxBusyInfo swig_types[72] | |
291 | #define SWIGTYPE_p_wxPyDropTarget swig_types[73] | |
292 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[74] | |
293 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[75] | |
294 | #define SWIGTYPE_p_wxProcessEvent swig_types[76] | |
295 | #define SWIGTYPE_p_wxPyLog swig_types[77] | |
296 | #define SWIGTYPE_p_wxLogNull swig_types[78] | |
297 | #define SWIGTYPE_p_wxColour swig_types[79] | |
298 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[80] | |
299 | #define SWIGTYPE_p_wxPyTimer swig_types[81] | |
300 | #define SWIGTYPE_p_wxDateSpan swig_types[82] | |
301 | static swig_type_info *swig_types[84]; | |
302 | ||
303 | /* -------- TYPES TABLE (END) -------- */ | |
304 | ||
305 | ||
306 | /*----------------------------------------------- | |
307 | @(target):= _misc.so | |
308 | ------------------------------------------------*/ | |
309 | #define SWIG_init init_misc | |
310 | ||
311 | #define SWIG_name "_misc" | |
312 | ||
313 | #include "wx/wxPython/wxPython.h" | |
314 | #include "wx/wxPython/pyclasses.h" | |
315 | #include "wx/wxPython/pyistream.h" | |
316 | ||
317 | DECLARE_DEF_STRING(EmptyString); | |
318 | ||
319 | ||
320 | ||
321 | ||
322 | ||
323 | DECLARE_DEF_STRING(FileSelectorPromptStr); | |
324 | DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); | |
325 | DECLARE_DEF_STRING(DirSelectorPromptStr); | |
326 | ||
327 | ||
328 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
329 | PyObject* o2; | |
330 | PyObject* o3; | |
331 | ||
332 | if (!target) { | |
333 | target = o; | |
334 | } else if (target == Py_None) { | |
335 | Py_DECREF(Py_None); | |
336 | target = o; | |
337 | } else { | |
338 | if (!PyTuple_Check(target)) { | |
339 | o2 = target; | |
340 | target = PyTuple_New(1); | |
341 | PyTuple_SetItem(target, 0, o2); | |
342 | } | |
343 | o3 = PyTuple_New(1); | |
344 | PyTuple_SetItem(o3, 0, o); | |
345 | ||
346 | o2 = target; | |
347 | target = PySequence_Concat(o2, o3); | |
348 | Py_DECREF(o2); | |
349 | Py_DECREF(o3); | |
350 | } | |
351 | return target; | |
352 | } | |
353 | ||
354 | ||
355 | bool wxThread_IsMain() { | |
356 | #ifdef WXP_WITH_THREAD | |
357 | return wxThread::IsMain(); | |
358 | #else | |
423f194a | 359 | return True; |
d14a1e28 RD |
360 | #endif |
361 | } | |
362 | ||
363 | ||
364 | int wxCaret_GetBlinkTime() { | |
365 | return wxCaret::GetBlinkTime(); | |
366 | } | |
367 | ||
368 | void wxCaret_SetBlinkTime(int milliseconds) { | |
369 | wxCaret::SetBlinkTime(milliseconds); | |
370 | } | |
371 | ||
372 | ||
373 | #include <wx/snglinst.h> | |
374 | ||
375 | ||
376 | #ifdef __WXMSW__ | |
377 | #include <wx/msw/private.h> | |
378 | #include <wx/dynload.h> | |
379 | #endif | |
380 | ||
381 | ||
382 | ||
383 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
384 | { | |
385 | #ifdef __WXMSW__ | |
386 | ||
387 | switch (method) | |
388 | { | |
389 | case 1: | |
390 | // This one only partially works. Appears to be an undocumented | |
391 | // "standard" convention that not all widgets adhear to. For | |
392 | // example, for some widgets backgrounds or non-client areas may | |
393 | // not be painted. | |
394 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
395 | break; | |
396 | ||
397 | case 2: | |
398 | // This one works much better, except for on XP. On Win2k nearly | |
399 | // all widgets and their children are captured correctly[**]. On | |
400 | // XP with Themes activated most native widgets draw only | |
401 | // partially, if at all. Without themes it works just like on | |
402 | // Win2k. | |
403 | // | |
404 | // ** For example the radio buttons in a wxRadioBox are not its | |
405 | // children by default, but you can capture it via the panel | |
406 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
407 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
408 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
409 | PRF_ERASEBKGND | PRF_OWNED ); | |
410 | break; | |
411 | ||
412 | case 3: | |
413 | // This one is only defined in the latest SDK and is only | |
414 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
415 | // so I expect that it will work similar to the above. Since it | |
416 | // is avaialble only on XP, it can't be compiled like this and | |
417 | // will have to be loaded dynamically. | |
418 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
419 | ||
420 | // fall through | |
421 | ||
422 | case 4: | |
423 | // Use PrintWindow if available, or fallback to WM_PRINT | |
424 | // otherwise. Unfortunately using PrintWindow is even worse than | |
425 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
426 | // at all, with or without Themes. | |
427 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
423f194a | 428 | static bool s_triedToLoad = False; |
d14a1e28 RD |
429 | static PrintWindow_t pfnPrintWindow = NULL; |
430 | if ( !s_triedToLoad ) | |
431 | { | |
432 | ||
423f194a | 433 | s_triedToLoad = True; |
d14a1e28 RD |
434 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
435 | if ( dllUser32.IsLoaded() ) | |
436 | { | |
437 | wxLogNull nolog; // Don't report errors here | |
438 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
439 | } | |
440 | } | |
441 | if (pfnPrintWindow) | |
442 | { | |
443 | printf("Using PrintWindow\n"); | |
444 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
445 | } | |
446 | else | |
447 | { | |
448 | printf("Using WM_PRINT\n"); | |
449 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
450 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
451 | } | |
452 | } | |
453 | #endif | |
454 | } | |
455 | ||
456 | ||
457 | ||
458 | #include <wx/tipdlg.h> | |
459 | ||
460 | ||
461 | class wxPyTipProvider : public wxTipProvider { | |
462 | public: | |
463 | wxPyTipProvider(size_t currentTip) | |
464 | : wxTipProvider(currentTip) {} | |
465 | ||
466 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
467 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
468 | PYPRIVATE; | |
469 | }; | |
470 | ||
471 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
472 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
473 | ||
474 | ||
475 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
476 | ||
477 | wxString Log_TimeStamp(){ | |
478 | wxString msg; | |
479 | wxLog::TimeStamp(&msg); | |
480 | return msg; | |
481 | } | |
482 | void wxLog_Destroy(wxLog *self){ delete self; } | |
483 | ||
484 | // A wxLog class that can be derived from in wxPython | |
485 | class wxPyLog : public wxLog { | |
486 | public: | |
487 | wxPyLog() : wxLog() {} | |
488 | ||
489 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
490 | bool found; | |
491 | wxPyBeginBlockThreads(); | |
492 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
493 | PyObject* s = wx2PyString(szString); | |
494 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
495 | Py_DECREF(s); | |
496 | } | |
497 | wxPyEndBlockThreads(); | |
498 | if (! found) | |
499 | wxLog::DoLog(level, szString, t); | |
500 | } | |
501 | ||
502 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
503 | bool found; | |
504 | wxPyBeginBlockThreads(); | |
505 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
506 | PyObject* s = wx2PyString(szString); | |
507 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
508 | Py_DECREF(s); | |
509 | } | |
510 | wxPyEndBlockThreads(); | |
511 | if (! found) | |
512 | wxLog::DoLogString(szString, t); | |
513 | } | |
514 | ||
515 | PYPRIVATE; | |
516 | }; | |
517 | ||
518 | ||
519 | ||
520 | ||
521 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
522 | ||
523 | ||
524 | #include <wx/joystick.h> | |
525 | ||
526 | ||
527 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
528 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
529 | class wxJoystick : public wxObject { | |
530 | public: | |
531 | wxJoystick(int joystick = wxJOYSTICK1) { | |
532 | wxPyBeginBlockThreads(); | |
533 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); | |
534 | wxPyEndBlockThreads(); | |
535 | } | |
536 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
537 | int GetZPosition() { return -1; } | |
538 | int GetButtonState() { return -1; } | |
539 | int GetPOVPosition() { return -1; } | |
540 | int GetPOVCTSPosition() { return -1; } | |
541 | int GetRudderPosition() { return -1; } | |
542 | int GetUPosition() { return -1; } | |
543 | int GetVPosition() { return -1; } | |
544 | int GetMovementThreshold() { return -1; } | |
545 | void SetMovementThreshold(int threshold) {} | |
546 | ||
423f194a | 547 | bool IsOk(void) { return False; } |
d14a1e28 RD |
548 | int GetNumberJoysticks() { return -1; } |
549 | int GetManufacturerId() { return -1; } | |
550 | int GetProductId() { return -1; } | |
551 | wxString GetProductName() { return ""; } | |
552 | int GetXMin() { return -1; } | |
553 | int GetYMin() { return -1; } | |
554 | int GetZMin() { return -1; } | |
555 | int GetXMax() { return -1; } | |
556 | int GetYMax() { return -1; } | |
557 | int GetZMax() { return -1; } | |
558 | int GetNumberButtons() { return -1; } | |
559 | int GetNumberAxes() { return -1; } | |
560 | int GetMaxButtons() { return -1; } | |
561 | int GetMaxAxes() { return -1; } | |
562 | int GetPollingMin() { return -1; } | |
563 | int GetPollingMax() { return -1; } | |
564 | int GetRudderMin() { return -1; } | |
565 | int GetRudderMax() { return -1; } | |
566 | int GetUMin() { return -1; } | |
567 | int GetUMax() { return -1; } | |
568 | int GetVMin() { return -1; } | |
569 | int GetVMax() { return -1; } | |
570 | ||
423f194a RD |
571 | bool HasRudder() { return False; } |
572 | bool HasZ() { return False; } | |
573 | bool HasU() { return False; } | |
574 | bool HasV() { return False; } | |
575 | bool HasPOV() { return False; } | |
576 | bool HasPOV4Dir() { return False; } | |
577 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 578 | |
423f194a RD |
579 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
580 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
581 | }; |
582 | #endif | |
583 | ||
584 | ||
585 | #include <wx/wave.h> | |
586 | ||
587 | ||
588 | #if !wxUSE_WAVE | |
589 | // A C++ stub class for wxWave for platforms that don't have it. | |
590 | class wxWave : public wxObject | |
591 | { | |
592 | public: | |
423f194a | 593 | wxWave(const wxString& fileName, bool isResource = False) { |
d14a1e28 RD |
594 | wxPyBeginBlockThreads(); |
595 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); | |
596 | wxPyEndBlockThreads(); | |
597 | } | |
598 | wxWave(int size, const wxByte* data) { | |
599 | wxPyBeginBlockThreads(); | |
600 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); | |
601 | wxPyEndBlockThreads(); | |
602 | } | |
603 | ||
604 | ~wxWave() {} | |
605 | ||
423f194a RD |
606 | bool IsOk() const { return False; } |
607 | bool Play(bool async = True, bool looped = False) const { return False; } | |
d14a1e28 RD |
608 | }; |
609 | ||
610 | #endif | |
611 | ||
612 | wxWave *new_wxWave(wxString const &data){ | |
613 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
614 | } | |
615 | ||
616 | #include <wx/mimetype.h> | |
617 | ||
618 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
619 | wxString str; | |
620 | if (self->GetMimeType(&str)) | |
621 | return wx2PyString(str); | |
622 | else | |
623 | RETURN_NONE(); | |
624 | } | |
625 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
626 | wxArrayString arr; | |
627 | if (self->GetMimeTypes(arr)) | |
628 | return wxArrayString2PyList_helper(arr); | |
629 | else | |
630 | RETURN_NONE(); | |
631 | } | |
632 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
633 | wxArrayString arr; | |
634 | if (self->GetExtensions(arr)) | |
635 | return wxArrayString2PyList_helper(arr); | |
636 | else | |
637 | RETURN_NONE(); | |
638 | } | |
639 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
640 | wxIconLocation loc; | |
641 | if (self->GetIcon(&loc)) | |
642 | return new wxIcon(loc); | |
643 | else | |
644 | return NULL; | |
645 | } | |
646 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
647 | wxIconLocation loc; | |
648 | if (self->GetIcon(&loc)) { | |
649 | wxString iconFile = loc.GetFileName(); | |
650 | int iconIndex = -1; | |
651 | ||
652 | iconIndex = loc.GetIndex(); | |
653 | ||
654 | // Make a tuple and put the values in it | |
655 | wxPyBeginBlockThreads(); | |
656 | PyObject* tuple = PyTuple_New(3); | |
657 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
423f194a | 658 | wxT("wxIcon"), True)); |
d14a1e28 RD |
659 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
660 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
661 | wxPyEndBlockThreads(); | |
662 | return tuple; | |
663 | } | |
664 | else | |
665 | RETURN_NONE(); | |
666 | } | |
667 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
668 | wxString str; | |
669 | if (self->GetDescription(&str)) | |
670 | return wx2PyString(str); | |
671 | else | |
672 | RETURN_NONE(); | |
673 | } | |
674 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
675 | wxString str; | |
676 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
677 | return wx2PyString(str); | |
678 | else | |
679 | RETURN_NONE(); | |
680 | } | |
681 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
682 | wxString str; | |
683 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
684 | return wx2PyString(str); | |
685 | else | |
686 | RETURN_NONE(); | |
687 | } | |
688 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
689 | wxArrayString verbs; | |
690 | wxArrayString commands; | |
691 | if (self->GetAllCommands(&verbs, &commands, | |
692 | wxFileType::MessageParameters(filename, mimetype))) { | |
693 | wxPyBeginBlockThreads(); | |
694 | PyObject* tuple = PyTuple_New(2); | |
695 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
696 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
697 | wxPyEndBlockThreads(); | |
698 | return tuple; | |
699 | } | |
700 | else | |
701 | RETURN_NONE(); | |
702 | } | |
703 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
704 | return wxFileType::ExpandCommand(command, | |
705 | wxFileType::MessageParameters(filename, mimetype)); | |
706 | } | |
707 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
708 | wxArrayString arr; | |
709 | self->EnumAllFileTypes(arr); | |
710 | return wxArrayString2PyList_helper(arr); | |
711 | } | |
712 | ||
713 | #include <wx/artprov.h> | |
714 | ||
715 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
716 | static const wxString wxPyART_MENU(wxART_MENU); | |
717 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
718 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
719 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
720 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
721 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
722 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
723 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
724 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
725 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
726 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
727 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
728 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
729 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
730 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
731 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
732 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
733 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
734 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
735 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
736 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
737 | static const wxString wxPyART_HELP(wxART_HELP); | |
738 | static const wxString wxPyART_TIP(wxART_TIP); | |
739 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
740 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
741 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
742 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
743 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
744 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
745 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
746 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
747 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
748 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
749 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
750 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
751 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
752 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
753 | // Python aware wxArtProvider | |
754 | class wxPyArtProvider : public wxArtProvider { | |
755 | public: | |
756 | ||
757 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
758 | const wxArtClient& client, | |
759 | const wxSize& size) { | |
760 | wxBitmap rval = wxNullBitmap; | |
761 | wxPyBeginBlockThreads(); | |
762 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
763 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
764 | PyObject* ro; | |
765 | wxBitmap* ptr; | |
766 | PyObject* s1, *s2; | |
767 | s1 = wx2PyString(id); | |
768 | s2 = wx2PyString(client); | |
769 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
770 | Py_DECREF(so); | |
771 | Py_DECREF(s1); | |
772 | Py_DECREF(s2); | |
773 | if (ro) { | |
774 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
775 | rval = *ptr; | |
776 | Py_DECREF(ro); | |
777 | } | |
778 | } | |
779 | wxPyEndBlockThreads(); | |
780 | return rval; | |
781 | } | |
782 | ||
783 | PYPRIVATE; | |
784 | }; | |
785 | ||
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 | ||
799 | PyObject *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 | } | |
807 | PyObject *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 | } | |
814 | PyObject *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 | } | |
822 | PyObject *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 | } | |
829 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
830 | long rv; | |
831 | self->Read(key, &rv, defaultVal); | |
832 | return rv; | |
833 | } | |
834 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
835 | double rv; | |
836 | self->Read(key, &rv, defaultVal); | |
837 | return rv; | |
838 | } | |
839 | bool 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 | ||
854 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
855 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
856 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
857 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
858 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
859 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; } | |
860 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; } | |
861 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; } | |
862 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; } | |
863 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; } | |
864 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; } | |
865 | int 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 | } | |
872 | int 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 | } | |
879 | int 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 | } | |
886 | int 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 | } | |
893 | int 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 | } | |
900 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
901 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
902 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
903 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
904 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; } | |
905 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; } | |
906 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; } | |
907 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; } | |
908 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; } | |
909 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; } | |
910 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
911 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
912 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
913 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
914 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; } | |
915 | bool 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 | |
920 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
921 | public: | |
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 | ||
931 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
932 | ||
933 | bool 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 | ||
423f194a | 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 | ||
955 | bool 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. | |
423f194a | 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 | |
970 | class wxPyTextDataObject : public wxTextDataObject { | |
971 | public: | |
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 | ||
981 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
982 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
983 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
984 | ||
985 | ||
986 | // Create a new class for wxPython to use | |
987 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
988 | public: | |
989 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
990 | : wxBitmapDataObject(bitmap) {} | |
991 | ||
992 | wxBitmap GetBitmap() const; | |
993 | void SetBitmap(const wxBitmap& bitmap); | |
994 | PYPRIVATE; | |
995 | }; | |
996 | ||
997 | wxBitmap 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 | ||
1014 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1015 | wxPyBeginBlockThreads(); | |
1016 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
423f194a | 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 | ||
1024 | void 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 | } | |
1034 | bool 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."); | |
423f194a | 1041 | return False; |
d14a1e28 RD |
1042 | } |
1043 | } | |
1044 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1045 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1046 | } | |
1047 | ||
1048 | #include <wx/metafile.h> | |
1049 | ||
1050 | ||
d14a1e28 RD |
1051 | |
1052 | ||
d14a1e28 RD |
1053 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1054 | ||
1055 | ||
d14a1e28 RD |
1056 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1057 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1058 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1059 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1060 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1061 | ||
1062 | ||
d14a1e28 RD |
1063 | class wxPyTextDropTarget : public wxTextDropTarget { |
1064 | public: | |
1065 | wxPyTextDropTarget() {} | |
1066 | ||
1067 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1068 | ||
1069 | DEC_PYCALLBACK__(OnLeave); | |
1070 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1071 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1072 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1073 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1074 | ||
1075 | PYPRIVATE; | |
1076 | }; | |
1077 | ||
1078 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1079 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1080 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1081 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1082 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1083 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1084 | ||
1085 | ||
1086 | ||
1087 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1088 | public: | |
1089 | wxPyFileDropTarget() {} | |
1090 | ||
1091 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1092 | ||
1093 | DEC_PYCALLBACK__(OnLeave); | |
1094 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1095 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1096 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1097 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1098 | ||
1099 | PYPRIVATE; | |
1100 | }; | |
1101 | ||
1102 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1103 | const wxArrayString& filenames) { | |
423f194a | 1104 | bool rval = False; |
d14a1e28 RD |
1105 | wxPyBeginBlockThreads(); |
1106 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1107 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1108 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1109 | Py_DECREF(list); | |
1110 | } | |
1111 | wxPyEndBlockThreads(); | |
1112 | return rval; | |
1113 | } | |
1114 | ||
1115 | ||
1116 | ||
1117 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1118 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1119 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1120 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1121 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1122 | ||
1123 | ||
1124 | ||
1125 | ||
1126 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1127 | #ifdef __cplusplus | |
1128 | extern "C" { | |
1129 | #endif | |
1130 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1131 | PyObject *resultobj; | |
1132 | int arg1 ; | |
1133 | wxColour result; | |
1134 | char *kwnames[] = { | |
1135 | (char *) "index", NULL | |
1136 | }; | |
1137 | ||
1138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetColour",kwnames,&arg1)) goto fail; | |
1139 | { | |
1140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1141 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1142 | ||
1143 | wxPyEndAllowThreads(__tstate); | |
1144 | if (PyErr_Occurred()) SWIG_fail; | |
1145 | } | |
1146 | { | |
1147 | wxColour * resultptr; | |
1148 | resultptr = new wxColour((wxColour &) result); | |
1149 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1150 | } | |
1151 | return resultobj; | |
1152 | fail: | |
1153 | return NULL; | |
1154 | } | |
1155 | ||
1156 | ||
1157 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1158 | PyObject *resultobj; | |
1159 | int arg1 ; | |
1160 | wxFont result; | |
1161 | char *kwnames[] = { | |
1162 | (char *) "index", NULL | |
1163 | }; | |
1164 | ||
1165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetFont",kwnames,&arg1)) goto fail; | |
1166 | { | |
1167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1168 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1169 | ||
1170 | wxPyEndAllowThreads(__tstate); | |
1171 | if (PyErr_Occurred()) SWIG_fail; | |
1172 | } | |
1173 | { | |
1174 | wxFont * resultptr; | |
1175 | resultptr = new wxFont((wxFont &) result); | |
1176 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
1177 | } | |
1178 | return resultobj; | |
1179 | fail: | |
1180 | return NULL; | |
1181 | } | |
1182 | ||
1183 | ||
1184 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1185 | PyObject *resultobj; | |
1186 | int arg1 ; | |
1187 | int result; | |
1188 | char *kwnames[] = { | |
1189 | (char *) "index", NULL | |
1190 | }; | |
1191 | ||
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetMetric",kwnames,&arg1)) goto fail; | |
1193 | { | |
1194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1195 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1196 | ||
1197 | wxPyEndAllowThreads(__tstate); | |
1198 | if (PyErr_Occurred()) SWIG_fail; | |
1199 | } | |
1200 | resultobj = PyInt_FromLong((long)result); | |
1201 | return resultobj; | |
1202 | fail: | |
1203 | return NULL; | |
1204 | } | |
1205 | ||
1206 | ||
1207 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1208 | PyObject *resultobj; | |
1209 | int arg1 ; | |
1210 | bool result; | |
1211 | char *kwnames[] = { | |
1212 | (char *) "index", NULL | |
1213 | }; | |
1214 | ||
1215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_HasFeature",kwnames,&arg1)) goto fail; | |
1216 | { | |
1217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1218 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1219 | ||
1220 | wxPyEndAllowThreads(__tstate); | |
1221 | if (PyErr_Occurred()) SWIG_fail; | |
1222 | } | |
1223 | resultobj = PyInt_FromLong((long)result); | |
1224 | return resultobj; | |
1225 | fail: | |
1226 | return NULL; | |
1227 | } | |
1228 | ||
1229 | ||
1230 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1231 | PyObject *resultobj; | |
1232 | int result; | |
1233 | char *kwnames[] = { | |
1234 | NULL | |
1235 | }; | |
1236 | ||
1237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1238 | { | |
1239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1240 | result = (int)wxSystemSettings::GetScreenType(); | |
1241 | ||
1242 | wxPyEndAllowThreads(__tstate); | |
1243 | if (PyErr_Occurred()) SWIG_fail; | |
1244 | } | |
1245 | resultobj = PyInt_FromLong((long)result); | |
1246 | return resultobj; | |
1247 | fail: | |
1248 | return NULL; | |
1249 | } | |
1250 | ||
1251 | ||
1252 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1253 | PyObject *resultobj; | |
1254 | int arg1 ; | |
1255 | char *kwnames[] = { | |
1256 | (char *) "screen", NULL | |
1257 | }; | |
1258 | ||
1259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_SetScreenType",kwnames,&arg1)) goto fail; | |
1260 | { | |
1261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1262 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1263 | ||
1264 | wxPyEndAllowThreads(__tstate); | |
1265 | if (PyErr_Occurred()) SWIG_fail; | |
1266 | } | |
1267 | Py_INCREF(Py_None); resultobj = Py_None; | |
1268 | return resultobj; | |
1269 | fail: | |
1270 | return NULL; | |
1271 | } | |
1272 | ||
1273 | ||
1274 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1275 | PyObject *obj; | |
1276 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1277 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1278 | Py_INCREF(obj); | |
1279 | return Py_BuildValue((char *)""); | |
1280 | } | |
1281 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1282 | PyObject *resultobj; | |
1283 | wxSystemOptions *result; | |
1284 | char *kwnames[] = { | |
1285 | NULL | |
1286 | }; | |
1287 | ||
1288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1289 | { | |
1290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1291 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1292 | ||
1293 | wxPyEndAllowThreads(__tstate); | |
1294 | if (PyErr_Occurred()) SWIG_fail; | |
1295 | } | |
1296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1); | |
1297 | return resultobj; | |
1298 | fail: | |
1299 | return NULL; | |
1300 | } | |
1301 | ||
1302 | ||
1303 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1304 | PyObject *resultobj; | |
1305 | wxString *arg1 = 0 ; | |
1306 | wxString *arg2 = 0 ; | |
423f194a RD |
1307 | bool temp1 = False ; |
1308 | bool temp2 = False ; | |
d14a1e28 RD |
1309 | PyObject * obj0 = 0 ; |
1310 | PyObject * obj1 = 0 ; | |
1311 | char *kwnames[] = { | |
1312 | (char *) "name",(char *) "value", NULL | |
1313 | }; | |
1314 | ||
1315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1316 | { | |
1317 | arg1 = wxString_in_helper(obj0); | |
1318 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1319 | temp1 = True; |
d14a1e28 RD |
1320 | } |
1321 | { | |
1322 | arg2 = wxString_in_helper(obj1); | |
1323 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 1324 | temp2 = True; |
d14a1e28 RD |
1325 | } |
1326 | { | |
1327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1328 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1329 | ||
1330 | wxPyEndAllowThreads(__tstate); | |
1331 | if (PyErr_Occurred()) SWIG_fail; | |
1332 | } | |
1333 | Py_INCREF(Py_None); resultobj = Py_None; | |
1334 | { | |
1335 | if (temp1) | |
1336 | delete arg1; | |
1337 | } | |
1338 | { | |
1339 | if (temp2) | |
1340 | delete arg2; | |
1341 | } | |
1342 | return resultobj; | |
1343 | fail: | |
1344 | { | |
1345 | if (temp1) | |
1346 | delete arg1; | |
1347 | } | |
1348 | { | |
1349 | if (temp2) | |
1350 | delete arg2; | |
1351 | } | |
1352 | return NULL; | |
1353 | } | |
1354 | ||
1355 | ||
1356 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1357 | PyObject *resultobj; | |
1358 | wxString *arg1 = 0 ; | |
1359 | int arg2 ; | |
423f194a | 1360 | bool temp1 = False ; |
d14a1e28 RD |
1361 | PyObject * obj0 = 0 ; |
1362 | char *kwnames[] = { | |
1363 | (char *) "name",(char *) "value", NULL | |
1364 | }; | |
1365 | ||
1366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SystemOptions_SetOptionInt",kwnames,&obj0,&arg2)) goto fail; | |
1367 | { | |
1368 | arg1 = wxString_in_helper(obj0); | |
1369 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1370 | temp1 = True; |
d14a1e28 RD |
1371 | } |
1372 | { | |
1373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1374 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1375 | ||
1376 | wxPyEndAllowThreads(__tstate); | |
1377 | if (PyErr_Occurred()) SWIG_fail; | |
1378 | } | |
1379 | Py_INCREF(Py_None); resultobj = Py_None; | |
1380 | { | |
1381 | if (temp1) | |
1382 | delete arg1; | |
1383 | } | |
1384 | return resultobj; | |
1385 | fail: | |
1386 | { | |
1387 | if (temp1) | |
1388 | delete arg1; | |
1389 | } | |
1390 | return NULL; | |
1391 | } | |
1392 | ||
1393 | ||
1394 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1395 | PyObject *resultobj; | |
1396 | wxString *arg1 = 0 ; | |
1397 | wxString result; | |
423f194a | 1398 | bool temp1 = False ; |
d14a1e28 RD |
1399 | PyObject * obj0 = 0 ; |
1400 | char *kwnames[] = { | |
1401 | (char *) "name", NULL | |
1402 | }; | |
1403 | ||
1404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1405 | { | |
1406 | arg1 = wxString_in_helper(obj0); | |
1407 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1408 | temp1 = True; |
d14a1e28 RD |
1409 | } |
1410 | { | |
1411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1412 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1413 | ||
1414 | wxPyEndAllowThreads(__tstate); | |
1415 | if (PyErr_Occurred()) SWIG_fail; | |
1416 | } | |
1417 | { | |
1418 | #if wxUSE_UNICODE | |
1419 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1420 | #else | |
1421 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1422 | #endif | |
1423 | } | |
1424 | { | |
1425 | if (temp1) | |
1426 | delete arg1; | |
1427 | } | |
1428 | return resultobj; | |
1429 | fail: | |
1430 | { | |
1431 | if (temp1) | |
1432 | delete arg1; | |
1433 | } | |
1434 | return NULL; | |
1435 | } | |
1436 | ||
1437 | ||
1438 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1439 | PyObject *resultobj; | |
1440 | wxString *arg1 = 0 ; | |
1441 | int result; | |
423f194a | 1442 | bool temp1 = False ; |
d14a1e28 RD |
1443 | PyObject * obj0 = 0 ; |
1444 | char *kwnames[] = { | |
1445 | (char *) "name", NULL | |
1446 | }; | |
1447 | ||
1448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1449 | { | |
1450 | arg1 = wxString_in_helper(obj0); | |
1451 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1452 | temp1 = True; |
d14a1e28 RD |
1453 | } |
1454 | { | |
1455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1456 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1457 | ||
1458 | wxPyEndAllowThreads(__tstate); | |
1459 | if (PyErr_Occurred()) SWIG_fail; | |
1460 | } | |
1461 | resultobj = PyInt_FromLong((long)result); | |
1462 | { | |
1463 | if (temp1) | |
1464 | delete arg1; | |
1465 | } | |
1466 | return resultobj; | |
1467 | fail: | |
1468 | { | |
1469 | if (temp1) | |
1470 | delete arg1; | |
1471 | } | |
1472 | return NULL; | |
1473 | } | |
1474 | ||
1475 | ||
1476 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1477 | PyObject *resultobj; | |
1478 | wxString *arg1 = 0 ; | |
1479 | bool result; | |
423f194a | 1480 | bool temp1 = False ; |
d14a1e28 RD |
1481 | PyObject * obj0 = 0 ; |
1482 | char *kwnames[] = { | |
1483 | (char *) "name", NULL | |
1484 | }; | |
1485 | ||
1486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1487 | { | |
1488 | arg1 = wxString_in_helper(obj0); | |
1489 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1490 | temp1 = True; |
d14a1e28 RD |
1491 | } |
1492 | { | |
1493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1494 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1495 | ||
1496 | wxPyEndAllowThreads(__tstate); | |
1497 | if (PyErr_Occurred()) SWIG_fail; | |
1498 | } | |
1499 | resultobj = PyInt_FromLong((long)result); | |
1500 | { | |
1501 | if (temp1) | |
1502 | delete arg1; | |
1503 | } | |
1504 | return resultobj; | |
1505 | fail: | |
1506 | { | |
1507 | if (temp1) | |
1508 | delete arg1; | |
1509 | } | |
1510 | return NULL; | |
1511 | } | |
1512 | ||
1513 | ||
1514 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1515 | PyObject *obj; | |
1516 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1517 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1518 | Py_INCREF(obj); | |
1519 | return Py_BuildValue((char *)""); | |
1520 | } | |
1521 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1522 | PyObject *resultobj; | |
1523 | long result; | |
1524 | char *kwnames[] = { | |
1525 | NULL | |
1526 | }; | |
1527 | ||
1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1529 | { | |
1530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1531 | result = (long)wxNewId(); | |
1532 | ||
1533 | wxPyEndAllowThreads(__tstate); | |
1534 | if (PyErr_Occurred()) SWIG_fail; | |
1535 | } | |
1536 | resultobj = PyInt_FromLong((long)result); | |
1537 | return resultobj; | |
1538 | fail: | |
1539 | return NULL; | |
1540 | } | |
1541 | ||
1542 | ||
1543 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1544 | PyObject *resultobj; | |
1545 | long arg1 ; | |
1546 | char *kwnames[] = { | |
1547 | (char *) "id", NULL | |
1548 | }; | |
1549 | ||
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:RegisterId",kwnames,&arg1)) goto fail; | |
1551 | { | |
1552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1553 | wxRegisterId(arg1); | |
1554 | ||
1555 | wxPyEndAllowThreads(__tstate); | |
1556 | if (PyErr_Occurred()) SWIG_fail; | |
1557 | } | |
1558 | Py_INCREF(Py_None); resultobj = Py_None; | |
1559 | return resultobj; | |
1560 | fail: | |
1561 | return NULL; | |
1562 | } | |
1563 | ||
1564 | ||
1565 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject *resultobj; | |
1567 | long result; | |
1568 | char *kwnames[] = { | |
1569 | NULL | |
1570 | }; | |
1571 | ||
1572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1573 | { | |
1574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1575 | result = (long)wxGetCurrentId(); | |
1576 | ||
1577 | wxPyEndAllowThreads(__tstate); | |
1578 | if (PyErr_Occurred()) SWIG_fail; | |
1579 | } | |
1580 | resultobj = PyInt_FromLong((long)result); | |
1581 | return resultobj; | |
1582 | fail: | |
1583 | return NULL; | |
1584 | } | |
1585 | ||
1586 | ||
1587 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1588 | PyObject *resultobj; | |
1589 | char *kwnames[] = { | |
1590 | NULL | |
1591 | }; | |
1592 | ||
1593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1594 | { | |
1595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1596 | wxBell(); | |
1597 | ||
1598 | wxPyEndAllowThreads(__tstate); | |
1599 | if (PyErr_Occurred()) SWIG_fail; | |
1600 | } | |
1601 | Py_INCREF(Py_None); resultobj = Py_None; | |
1602 | return resultobj; | |
1603 | fail: | |
1604 | return NULL; | |
1605 | } | |
1606 | ||
1607 | ||
1608 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1609 | PyObject *resultobj; | |
1610 | char *kwnames[] = { | |
1611 | NULL | |
1612 | }; | |
1613 | ||
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1615 | { | |
1616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1617 | wxEndBusyCursor(); | |
1618 | ||
1619 | wxPyEndAllowThreads(__tstate); | |
1620 | if (PyErr_Occurred()) SWIG_fail; | |
1621 | } | |
1622 | Py_INCREF(Py_None); resultobj = Py_None; | |
1623 | return resultobj; | |
1624 | fail: | |
1625 | return NULL; | |
1626 | } | |
1627 | ||
1628 | ||
1629 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1630 | PyObject *resultobj; | |
423f194a | 1631 | bool arg1 = (bool) True ; |
d14a1e28 RD |
1632 | long result; |
1633 | PyObject * obj0 = 0 ; | |
1634 | char *kwnames[] = { | |
1635 | (char *) "resetTimer", NULL | |
1636 | }; | |
1637 | ||
1638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1639 | if (obj0) { | |
1640 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
1641 | if (PyErr_Occurred()) SWIG_fail; | |
1642 | } | |
1643 | { | |
1644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1645 | result = (long)wxGetElapsedTime(arg1); | |
1646 | ||
1647 | wxPyEndAllowThreads(__tstate); | |
1648 | if (PyErr_Occurred()) SWIG_fail; | |
1649 | } | |
1650 | resultobj = PyInt_FromLong((long)result); | |
1651 | return resultobj; | |
1652 | fail: | |
1653 | return NULL; | |
1654 | } | |
1655 | ||
1656 | ||
1657 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1658 | PyObject *resultobj; | |
1659 | int *arg1 = (int *) 0 ; | |
1660 | int *arg2 = (int *) 0 ; | |
1661 | int temp1 ; | |
1662 | int temp2 ; | |
1663 | char *kwnames[] = { | |
1664 | NULL | |
1665 | }; | |
1666 | ||
1667 | arg1 = &temp1; | |
1668 | arg2 = &temp2; | |
1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1670 | { | |
1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1672 | wxGetMousePosition(arg1,arg2); | |
1673 | ||
1674 | wxPyEndAllowThreads(__tstate); | |
1675 | if (PyErr_Occurred()) SWIG_fail; | |
1676 | } | |
1677 | Py_INCREF(Py_None); resultobj = Py_None; | |
1678 | { | |
1679 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1680 | resultobj = t_output_helper(resultobj,o); | |
1681 | } | |
1682 | { | |
1683 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1684 | resultobj = t_output_helper(resultobj,o); | |
1685 | } | |
1686 | return resultobj; | |
1687 | fail: | |
1688 | return NULL; | |
1689 | } | |
1690 | ||
1691 | ||
1692 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1693 | PyObject *resultobj; | |
1694 | bool result; | |
1695 | char *kwnames[] = { | |
1696 | NULL | |
1697 | }; | |
1698 | ||
1699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1700 | { | |
1701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1702 | result = (bool)wxIsBusy(); | |
1703 | ||
1704 | wxPyEndAllowThreads(__tstate); | |
1705 | if (PyErr_Occurred()) SWIG_fail; | |
1706 | } | |
1707 | resultobj = PyInt_FromLong((long)result); | |
1708 | return resultobj; | |
1709 | fail: | |
1710 | return NULL; | |
1711 | } | |
1712 | ||
1713 | ||
1714 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1715 | PyObject *resultobj; | |
1716 | wxString result; | |
1717 | char *kwnames[] = { | |
1718 | NULL | |
1719 | }; | |
1720 | ||
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1722 | { | |
1723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1724 | result = wxNow(); | |
1725 | ||
1726 | wxPyEndAllowThreads(__tstate); | |
1727 | if (PyErr_Occurred()) SWIG_fail; | |
1728 | } | |
1729 | { | |
1730 | #if wxUSE_UNICODE | |
1731 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1732 | #else | |
1733 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1734 | #endif | |
1735 | } | |
1736 | return resultobj; | |
1737 | fail: | |
1738 | return NULL; | |
1739 | } | |
1740 | ||
1741 | ||
1742 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1743 | PyObject *resultobj; | |
1744 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1745 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1746 | bool result; | |
423f194a | 1747 | bool temp1 = False ; |
d14a1e28 RD |
1748 | PyObject * obj0 = 0 ; |
1749 | char *kwnames[] = { | |
1750 | (char *) "command", NULL | |
1751 | }; | |
1752 | ||
1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1754 | if (obj0) { | |
1755 | { | |
1756 | arg1 = wxString_in_helper(obj0); | |
1757 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1758 | temp1 = True; |
d14a1e28 RD |
1759 | } |
1760 | } | |
1761 | { | |
1762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1763 | result = (bool)wxShell((wxString const &)*arg1); | |
1764 | ||
1765 | wxPyEndAllowThreads(__tstate); | |
1766 | if (PyErr_Occurred()) SWIG_fail; | |
1767 | } | |
1768 | resultobj = PyInt_FromLong((long)result); | |
1769 | { | |
1770 | if (temp1) | |
1771 | delete arg1; | |
1772 | } | |
1773 | return resultobj; | |
1774 | fail: | |
1775 | { | |
1776 | if (temp1) | |
1777 | delete arg1; | |
1778 | } | |
1779 | return NULL; | |
1780 | } | |
1781 | ||
1782 | ||
1783 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1784 | PyObject *resultobj; | |
1785 | char *kwnames[] = { | |
1786 | NULL | |
1787 | }; | |
1788 | ||
1789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
1790 | { | |
1791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1792 | wxStartTimer(); | |
1793 | ||
1794 | wxPyEndAllowThreads(__tstate); | |
1795 | if (PyErr_Occurred()) SWIG_fail; | |
1796 | } | |
1797 | Py_INCREF(Py_None); resultobj = Py_None; | |
1798 | return resultobj; | |
1799 | fail: | |
1800 | return NULL; | |
1801 | } | |
1802 | ||
1803 | ||
1804 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1805 | PyObject *resultobj; | |
1806 | int *arg1 = (int *) 0 ; | |
1807 | int *arg2 = (int *) 0 ; | |
1808 | int result; | |
1809 | int temp1 ; | |
1810 | int temp2 ; | |
1811 | char *kwnames[] = { | |
1812 | NULL | |
1813 | }; | |
1814 | ||
1815 | arg1 = &temp1; | |
1816 | arg2 = &temp2; | |
1817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
1818 | { | |
1819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1820 | result = (int)wxGetOsVersion(arg1,arg2); | |
1821 | ||
1822 | wxPyEndAllowThreads(__tstate); | |
1823 | if (PyErr_Occurred()) SWIG_fail; | |
1824 | } | |
1825 | resultobj = PyInt_FromLong((long)result); | |
1826 | { | |
1827 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1828 | resultobj = t_output_helper(resultobj,o); | |
1829 | } | |
1830 | { | |
1831 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1832 | resultobj = t_output_helper(resultobj,o); | |
1833 | } | |
1834 | return resultobj; | |
1835 | fail: | |
1836 | return NULL; | |
1837 | } | |
1838 | ||
1839 | ||
1840 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1841 | PyObject *resultobj; | |
1842 | wxString result; | |
1843 | char *kwnames[] = { | |
1844 | NULL | |
1845 | }; | |
1846 | ||
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
1848 | { | |
1849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1850 | result = wxGetOsDescription(); | |
1851 | ||
1852 | wxPyEndAllowThreads(__tstate); | |
1853 | if (PyErr_Occurred()) SWIG_fail; | |
1854 | } | |
1855 | { | |
1856 | #if wxUSE_UNICODE | |
1857 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1858 | #else | |
1859 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1860 | #endif | |
1861 | } | |
1862 | return resultobj; | |
1863 | fail: | |
1864 | return NULL; | |
1865 | } | |
1866 | ||
1867 | ||
1868 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1869 | PyObject *resultobj; | |
1870 | long result; | |
1871 | char *kwnames[] = { | |
1872 | NULL | |
1873 | }; | |
1874 | ||
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
1876 | { | |
1877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1878 | result = (long)wxGetFreeMemory(); | |
1879 | ||
1880 | wxPyEndAllowThreads(__tstate); | |
1881 | if (PyErr_Occurred()) SWIG_fail; | |
1882 | } | |
1883 | resultobj = PyInt_FromLong((long)result); | |
1884 | return resultobj; | |
1885 | fail: | |
1886 | return NULL; | |
1887 | } | |
1888 | ||
1889 | ||
1890 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1891 | PyObject *resultobj; | |
1892 | int arg1 ; | |
1893 | bool result; | |
1894 | char *kwnames[] = { | |
1895 | (char *) "wFlags", NULL | |
1896 | }; | |
1897 | ||
1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Shutdown",kwnames,&arg1)) goto fail; | |
1899 | { | |
1900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1901 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
1902 | ||
1903 | wxPyEndAllowThreads(__tstate); | |
1904 | if (PyErr_Occurred()) SWIG_fail; | |
1905 | } | |
1906 | resultobj = PyInt_FromLong((long)result); | |
1907 | return resultobj; | |
1908 | fail: | |
1909 | return NULL; | |
1910 | } | |
1911 | ||
1912 | ||
1913 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1914 | PyObject *resultobj; | |
1915 | int arg1 ; | |
1916 | char *kwnames[] = { | |
1917 | (char *) "secs", NULL | |
1918 | }; | |
1919 | ||
1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Sleep",kwnames,&arg1)) goto fail; | |
1921 | { | |
1922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1923 | wxSleep(arg1); | |
1924 | ||
1925 | wxPyEndAllowThreads(__tstate); | |
1926 | if (PyErr_Occurred()) SWIG_fail; | |
1927 | } | |
1928 | Py_INCREF(Py_None); resultobj = Py_None; | |
1929 | return resultobj; | |
1930 | fail: | |
1931 | return NULL; | |
1932 | } | |
1933 | ||
1934 | ||
1935 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1936 | PyObject *resultobj; | |
1937 | unsigned long arg1 ; | |
1938 | PyObject * obj0 = 0 ; | |
1939 | char *kwnames[] = { | |
1940 | (char *) "milliseconds", NULL | |
1941 | }; | |
1942 | ||
1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
1944 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | { | |
1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1948 | wxUsleep(arg1); | |
1949 | ||
1950 | wxPyEndAllowThreads(__tstate); | |
1951 | if (PyErr_Occurred()) SWIG_fail; | |
1952 | } | |
1953 | Py_INCREF(Py_None); resultobj = Py_None; | |
1954 | return resultobj; | |
1955 | fail: | |
1956 | return NULL; | |
1957 | } | |
1958 | ||
1959 | ||
1960 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1961 | PyObject *resultobj; | |
1962 | bool arg1 ; | |
1963 | PyObject * obj0 = 0 ; | |
1964 | char *kwnames[] = { | |
1965 | (char *) "enable", NULL | |
1966 | }; | |
1967 | ||
1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
1969 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
1970 | if (PyErr_Occurred()) SWIG_fail; | |
1971 | { | |
1972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1973 | wxEnableTopLevelWindows(arg1); | |
1974 | ||
1975 | wxPyEndAllowThreads(__tstate); | |
1976 | if (PyErr_Occurred()) SWIG_fail; | |
1977 | } | |
1978 | Py_INCREF(Py_None); resultobj = Py_None; | |
1979 | return resultobj; | |
1980 | fail: | |
1981 | return NULL; | |
1982 | } | |
1983 | ||
1984 | ||
1985 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1986 | PyObject *resultobj; | |
1987 | wxString *arg1 = 0 ; | |
1988 | wxString result; | |
423f194a | 1989 | bool temp1 = False ; |
d14a1e28 RD |
1990 | PyObject * obj0 = 0 ; |
1991 | char *kwnames[] = { | |
1992 | (char *) "in", NULL | |
1993 | }; | |
1994 | ||
1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
1996 | { | |
1997 | arg1 = wxString_in_helper(obj0); | |
1998 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1999 | temp1 = True; |
d14a1e28 RD |
2000 | } |
2001 | { | |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
2008 | { | |
2009 | #if wxUSE_UNICODE | |
2010 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2011 | #else | |
2012 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2013 | #endif | |
2014 | } | |
2015 | { | |
2016 | if (temp1) | |
2017 | delete arg1; | |
2018 | } | |
2019 | return resultobj; | |
2020 | fail: | |
2021 | { | |
2022 | if (temp1) | |
2023 | delete arg1; | |
2024 | } | |
2025 | return NULL; | |
2026 | } | |
2027 | ||
2028 | ||
2029 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2030 | PyObject *resultobj; | |
2031 | wxString result; | |
2032 | char *kwnames[] = { | |
2033 | NULL | |
2034 | }; | |
2035 | ||
2036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2037 | { | |
2038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2039 | result = wxGetEmailAddress(); | |
2040 | ||
2041 | wxPyEndAllowThreads(__tstate); | |
2042 | if (PyErr_Occurred()) SWIG_fail; | |
2043 | } | |
2044 | { | |
2045 | #if wxUSE_UNICODE | |
2046 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2047 | #else | |
2048 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2049 | #endif | |
2050 | } | |
2051 | return resultobj; | |
2052 | fail: | |
2053 | return NULL; | |
2054 | } | |
2055 | ||
2056 | ||
2057 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2058 | PyObject *resultobj; | |
2059 | wxString result; | |
2060 | char *kwnames[] = { | |
2061 | NULL | |
2062 | }; | |
2063 | ||
2064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2065 | { | |
2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2067 | result = wxGetHostName(); | |
2068 | ||
2069 | wxPyEndAllowThreads(__tstate); | |
2070 | if (PyErr_Occurred()) SWIG_fail; | |
2071 | } | |
2072 | { | |
2073 | #if wxUSE_UNICODE | |
2074 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2075 | #else | |
2076 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2077 | #endif | |
2078 | } | |
2079 | return resultobj; | |
2080 | fail: | |
2081 | return NULL; | |
2082 | } | |
2083 | ||
2084 | ||
2085 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2086 | PyObject *resultobj; | |
2087 | wxString result; | |
2088 | char *kwnames[] = { | |
2089 | NULL | |
2090 | }; | |
2091 | ||
2092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2093 | { | |
2094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2095 | result = wxGetFullHostName(); | |
2096 | ||
2097 | wxPyEndAllowThreads(__tstate); | |
2098 | if (PyErr_Occurred()) SWIG_fail; | |
2099 | } | |
2100 | { | |
2101 | #if wxUSE_UNICODE | |
2102 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2103 | #else | |
2104 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2105 | #endif | |
2106 | } | |
2107 | return resultobj; | |
2108 | fail: | |
2109 | return NULL; | |
2110 | } | |
2111 | ||
2112 | ||
2113 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2114 | PyObject *resultobj; | |
2115 | wxString result; | |
2116 | char *kwnames[] = { | |
2117 | NULL | |
2118 | }; | |
2119 | ||
2120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2121 | { | |
2122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2123 | result = wxGetUserId(); | |
2124 | ||
2125 | wxPyEndAllowThreads(__tstate); | |
2126 | if (PyErr_Occurred()) SWIG_fail; | |
2127 | } | |
2128 | { | |
2129 | #if wxUSE_UNICODE | |
2130 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2131 | #else | |
2132 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2133 | #endif | |
2134 | } | |
2135 | return resultobj; | |
2136 | fail: | |
2137 | return NULL; | |
2138 | } | |
2139 | ||
2140 | ||
2141 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject *resultobj; | |
2143 | wxString result; | |
2144 | char *kwnames[] = { | |
2145 | NULL | |
2146 | }; | |
2147 | ||
2148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2149 | { | |
2150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2151 | result = wxGetUserName(); | |
2152 | ||
2153 | wxPyEndAllowThreads(__tstate); | |
2154 | if (PyErr_Occurred()) SWIG_fail; | |
2155 | } | |
2156 | { | |
2157 | #if wxUSE_UNICODE | |
2158 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2159 | #else | |
2160 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2161 | #endif | |
2162 | } | |
2163 | return resultobj; | |
2164 | fail: | |
2165 | return NULL; | |
2166 | } | |
2167 | ||
2168 | ||
2169 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2170 | PyObject *resultobj; | |
2171 | wxString result; | |
2172 | char *kwnames[] = { | |
2173 | NULL | |
2174 | }; | |
2175 | ||
2176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2177 | { | |
2178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2179 | result = wxGetHomeDir(); | |
2180 | ||
2181 | wxPyEndAllowThreads(__tstate); | |
2182 | if (PyErr_Occurred()) SWIG_fail; | |
2183 | } | |
2184 | { | |
2185 | #if wxUSE_UNICODE | |
2186 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2187 | #else | |
2188 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2189 | #endif | |
2190 | } | |
2191 | return resultobj; | |
2192 | fail: | |
2193 | return NULL; | |
2194 | } | |
2195 | ||
2196 | ||
2197 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2198 | PyObject *resultobj; | |
2199 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2200 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2201 | wxString result; | |
423f194a | 2202 | bool temp1 = False ; |
d14a1e28 RD |
2203 | PyObject * obj0 = 0 ; |
2204 | char *kwnames[] = { | |
2205 | (char *) "user", NULL | |
2206 | }; | |
2207 | ||
2208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2209 | if (obj0) { | |
2210 | { | |
2211 | arg1 = wxString_in_helper(obj0); | |
2212 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2213 | temp1 = True; |
d14a1e28 RD |
2214 | } |
2215 | } | |
2216 | { | |
2217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2218 | result = wxGetUserHome((wxString const &)*arg1); | |
2219 | ||
2220 | wxPyEndAllowThreads(__tstate); | |
2221 | if (PyErr_Occurred()) SWIG_fail; | |
2222 | } | |
2223 | { | |
2224 | #if wxUSE_UNICODE | |
2225 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2226 | #else | |
2227 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2228 | #endif | |
2229 | } | |
2230 | { | |
2231 | if (temp1) | |
2232 | delete arg1; | |
2233 | } | |
2234 | return resultobj; | |
2235 | fail: | |
2236 | { | |
2237 | if (temp1) | |
2238 | delete arg1; | |
2239 | } | |
2240 | return NULL; | |
2241 | } | |
2242 | ||
2243 | ||
2244 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2245 | PyObject *resultobj; | |
2246 | unsigned long result; | |
2247 | char *kwnames[] = { | |
2248 | NULL | |
2249 | }; | |
2250 | ||
2251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2252 | { | |
2253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2254 | result = (unsigned long)wxGetProcessId(); | |
2255 | ||
2256 | wxPyEndAllowThreads(__tstate); | |
2257 | if (PyErr_Occurred()) SWIG_fail; | |
2258 | } | |
2259 | resultobj = PyInt_FromLong((long)result); | |
2260 | return resultobj; | |
2261 | fail: | |
2262 | return NULL; | |
2263 | } | |
2264 | ||
2265 | ||
2266 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2267 | PyObject *resultobj; | |
2268 | char *kwnames[] = { | |
2269 | NULL | |
2270 | }; | |
2271 | ||
2272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2273 | { | |
2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2275 | wxTrap(); | |
2276 | ||
2277 | wxPyEndAllowThreads(__tstate); | |
2278 | if (PyErr_Occurred()) SWIG_fail; | |
2279 | } | |
2280 | Py_INCREF(Py_None); resultobj = Py_None; | |
2281 | return resultobj; | |
2282 | fail: | |
2283 | return NULL; | |
2284 | } | |
2285 | ||
2286 | ||
2287 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2288 | PyObject *resultobj; | |
2289 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2290 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2291 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2292 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2293 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2294 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2295 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2296 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2297 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2298 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2299 | int arg6 = (int) 0 ; | |
2300 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2301 | int arg8 = (int) -1 ; | |
2302 | int arg9 = (int) -1 ; | |
2303 | wxString result; | |
423f194a RD |
2304 | bool temp1 = False ; |
2305 | bool temp2 = False ; | |
2306 | bool temp3 = False ; | |
2307 | bool temp4 = False ; | |
2308 | bool temp5 = False ; | |
d14a1e28 RD |
2309 | PyObject * obj0 = 0 ; |
2310 | PyObject * obj1 = 0 ; | |
2311 | PyObject * obj2 = 0 ; | |
2312 | PyObject * obj3 = 0 ; | |
2313 | PyObject * obj4 = 0 ; | |
2314 | PyObject * obj6 = 0 ; | |
2315 | char *kwnames[] = { | |
2316 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2317 | }; | |
2318 | ||
2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOiOii:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&arg9)) goto fail; | |
2320 | if (obj0) { | |
2321 | { | |
2322 | arg1 = wxString_in_helper(obj0); | |
2323 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2324 | temp1 = True; |
d14a1e28 RD |
2325 | } |
2326 | } | |
2327 | if (obj1) { | |
2328 | { | |
2329 | arg2 = wxString_in_helper(obj1); | |
2330 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2331 | temp2 = True; |
d14a1e28 RD |
2332 | } |
2333 | } | |
2334 | if (obj2) { | |
2335 | { | |
2336 | arg3 = wxString_in_helper(obj2); | |
2337 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2338 | temp3 = True; |
d14a1e28 RD |
2339 | } |
2340 | } | |
2341 | if (obj3) { | |
2342 | { | |
2343 | arg4 = wxString_in_helper(obj3); | |
2344 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2345 | temp4 = True; |
d14a1e28 RD |
2346 | } |
2347 | } | |
2348 | if (obj4) { | |
2349 | { | |
2350 | arg5 = wxString_in_helper(obj4); | |
2351 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 2352 | temp5 = True; |
d14a1e28 RD |
2353 | } |
2354 | } | |
2355 | if (obj6) { | |
2356 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2357 | } | |
2358 | { | |
2359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2360 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2361 | ||
2362 | wxPyEndAllowThreads(__tstate); | |
2363 | if (PyErr_Occurred()) SWIG_fail; | |
2364 | } | |
2365 | { | |
2366 | #if wxUSE_UNICODE | |
2367 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2368 | #else | |
2369 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2370 | #endif | |
2371 | } | |
2372 | { | |
2373 | if (temp1) | |
2374 | delete arg1; | |
2375 | } | |
2376 | { | |
2377 | if (temp2) | |
2378 | delete arg2; | |
2379 | } | |
2380 | { | |
2381 | if (temp3) | |
2382 | delete arg3; | |
2383 | } | |
2384 | { | |
2385 | if (temp4) | |
2386 | delete arg4; | |
2387 | } | |
2388 | { | |
2389 | if (temp5) | |
2390 | delete arg5; | |
2391 | } | |
2392 | return resultobj; | |
2393 | fail: | |
2394 | { | |
2395 | if (temp1) | |
2396 | delete arg1; | |
2397 | } | |
2398 | { | |
2399 | if (temp2) | |
2400 | delete arg2; | |
2401 | } | |
2402 | { | |
2403 | if (temp3) | |
2404 | delete arg3; | |
2405 | } | |
2406 | { | |
2407 | if (temp4) | |
2408 | delete arg4; | |
2409 | } | |
2410 | { | |
2411 | if (temp5) | |
2412 | delete arg5; | |
2413 | } | |
2414 | return NULL; | |
2415 | } | |
2416 | ||
2417 | ||
2418 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2419 | PyObject *resultobj; | |
2420 | wxString *arg1 = 0 ; | |
2421 | wxString *arg2 = 0 ; | |
2422 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2423 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2424 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2425 | wxString result; | |
423f194a RD |
2426 | bool temp1 = False ; |
2427 | bool temp2 = False ; | |
2428 | bool temp3 = False ; | |
d14a1e28 RD |
2429 | PyObject * obj0 = 0 ; |
2430 | PyObject * obj1 = 0 ; | |
2431 | PyObject * obj2 = 0 ; | |
2432 | PyObject * obj3 = 0 ; | |
2433 | char *kwnames[] = { | |
2434 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2435 | }; | |
2436 | ||
2437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2438 | { | |
2439 | arg1 = wxString_in_helper(obj0); | |
2440 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2441 | temp1 = True; |
d14a1e28 RD |
2442 | } |
2443 | { | |
2444 | arg2 = wxString_in_helper(obj1); | |
2445 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2446 | temp2 = True; |
d14a1e28 RD |
2447 | } |
2448 | if (obj2) { | |
2449 | { | |
2450 | arg3 = wxString_in_helper(obj2); | |
2451 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2452 | temp3 = True; |
d14a1e28 RD |
2453 | } |
2454 | } | |
2455 | if (obj3) { | |
2456 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2457 | } | |
2458 | { | |
2459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2460 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2461 | ||
2462 | wxPyEndAllowThreads(__tstate); | |
2463 | if (PyErr_Occurred()) SWIG_fail; | |
2464 | } | |
2465 | { | |
2466 | #if wxUSE_UNICODE | |
2467 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2468 | #else | |
2469 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2470 | #endif | |
2471 | } | |
2472 | { | |
2473 | if (temp1) | |
2474 | delete arg1; | |
2475 | } | |
2476 | { | |
2477 | if (temp2) | |
2478 | delete arg2; | |
2479 | } | |
2480 | { | |
2481 | if (temp3) | |
2482 | delete arg3; | |
2483 | } | |
2484 | return resultobj; | |
2485 | fail: | |
2486 | { | |
2487 | if (temp1) | |
2488 | delete arg1; | |
2489 | } | |
2490 | { | |
2491 | if (temp2) | |
2492 | delete arg2; | |
2493 | } | |
2494 | { | |
2495 | if (temp3) | |
2496 | delete arg3; | |
2497 | } | |
2498 | return NULL; | |
2499 | } | |
2500 | ||
2501 | ||
2502 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject *resultobj; | |
2504 | wxString *arg1 = 0 ; | |
2505 | wxString *arg2 = 0 ; | |
2506 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2507 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2508 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2509 | wxString result; | |
423f194a RD |
2510 | bool temp1 = False ; |
2511 | bool temp2 = False ; | |
2512 | bool temp3 = False ; | |
d14a1e28 RD |
2513 | PyObject * obj0 = 0 ; |
2514 | PyObject * obj1 = 0 ; | |
2515 | PyObject * obj2 = 0 ; | |
2516 | PyObject * obj3 = 0 ; | |
2517 | char *kwnames[] = { | |
2518 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2519 | }; | |
2520 | ||
2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2522 | { | |
2523 | arg1 = wxString_in_helper(obj0); | |
2524 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2525 | temp1 = True; |
d14a1e28 RD |
2526 | } |
2527 | { | |
2528 | arg2 = wxString_in_helper(obj1); | |
2529 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2530 | temp2 = True; |
d14a1e28 RD |
2531 | } |
2532 | if (obj2) { | |
2533 | { | |
2534 | arg3 = wxString_in_helper(obj2); | |
2535 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2536 | temp3 = True; |
d14a1e28 RD |
2537 | } |
2538 | } | |
2539 | if (obj3) { | |
2540 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2541 | } | |
2542 | { | |
2543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2544 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2545 | ||
2546 | wxPyEndAllowThreads(__tstate); | |
2547 | if (PyErr_Occurred()) SWIG_fail; | |
2548 | } | |
2549 | { | |
2550 | #if wxUSE_UNICODE | |
2551 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2552 | #else | |
2553 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2554 | #endif | |
2555 | } | |
2556 | { | |
2557 | if (temp1) | |
2558 | delete arg1; | |
2559 | } | |
2560 | { | |
2561 | if (temp2) | |
2562 | delete arg2; | |
2563 | } | |
2564 | { | |
2565 | if (temp3) | |
2566 | delete arg3; | |
2567 | } | |
2568 | return resultobj; | |
2569 | fail: | |
2570 | { | |
2571 | if (temp1) | |
2572 | delete arg1; | |
2573 | } | |
2574 | { | |
2575 | if (temp2) | |
2576 | delete arg2; | |
2577 | } | |
2578 | { | |
2579 | if (temp3) | |
2580 | delete arg3; | |
2581 | } | |
2582 | return NULL; | |
2583 | } | |
2584 | ||
2585 | ||
2586 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2587 | PyObject *resultobj; | |
2588 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2589 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2590 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2591 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2592 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2593 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2594 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2595 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2596 | wxString result; | |
423f194a RD |
2597 | bool temp1 = False ; |
2598 | bool temp2 = False ; | |
d14a1e28 RD |
2599 | wxPoint temp4 ; |
2600 | PyObject * obj0 = 0 ; | |
2601 | PyObject * obj1 = 0 ; | |
2602 | PyObject * obj3 = 0 ; | |
2603 | PyObject * obj4 = 0 ; | |
2604 | char *kwnames[] = { | |
2605 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2606 | }; | |
2607 | ||
2608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOlOO:DirSelector",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
2609 | if (obj0) { | |
2610 | { | |
2611 | arg1 = wxString_in_helper(obj0); | |
2612 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2613 | temp1 = True; |
d14a1e28 RD |
2614 | } |
2615 | } | |
2616 | if (obj1) { | |
2617 | { | |
2618 | arg2 = wxString_in_helper(obj1); | |
2619 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2620 | temp2 = True; |
d14a1e28 RD |
2621 | } |
2622 | } | |
2623 | if (obj3) { | |
2624 | { | |
2625 | arg4 = &temp4; | |
2626 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2627 | } | |
2628 | } | |
2629 | if (obj4) { | |
2630 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2631 | } | |
2632 | { | |
2633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2634 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2635 | ||
2636 | wxPyEndAllowThreads(__tstate); | |
2637 | if (PyErr_Occurred()) SWIG_fail; | |
2638 | } | |
2639 | { | |
2640 | #if wxUSE_UNICODE | |
2641 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2642 | #else | |
2643 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2644 | #endif | |
2645 | } | |
2646 | { | |
2647 | if (temp1) | |
2648 | delete arg1; | |
2649 | } | |
2650 | { | |
2651 | if (temp2) | |
2652 | delete arg2; | |
2653 | } | |
2654 | return resultobj; | |
2655 | fail: | |
2656 | { | |
2657 | if (temp1) | |
2658 | delete arg1; | |
2659 | } | |
2660 | { | |
2661 | if (temp2) | |
2662 | delete arg2; | |
2663 | } | |
2664 | return NULL; | |
2665 | } | |
2666 | ||
2667 | ||
2668 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2669 | PyObject *resultobj; | |
2670 | wxString *arg1 = 0 ; | |
2671 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2672 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2673 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2674 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2675 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2676 | int arg5 = (int) -1 ; | |
2677 | int arg6 = (int) -1 ; | |
423f194a | 2678 | bool arg7 = (bool) True ; |
d14a1e28 | 2679 | wxString result; |
423f194a RD |
2680 | bool temp1 = False ; |
2681 | bool temp2 = False ; | |
2682 | bool temp3 = False ; | |
d14a1e28 RD |
2683 | PyObject * obj0 = 0 ; |
2684 | PyObject * obj1 = 0 ; | |
2685 | PyObject * obj2 = 0 ; | |
2686 | PyObject * obj3 = 0 ; | |
2687 | PyObject * obj6 = 0 ; | |
2688 | char *kwnames[] = { | |
2689 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2690 | }; | |
2691 | ||
2692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOiiO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
2693 | { | |
2694 | arg1 = wxString_in_helper(obj0); | |
2695 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2696 | temp1 = True; |
d14a1e28 RD |
2697 | } |
2698 | if (obj1) { | |
2699 | { | |
2700 | arg2 = wxString_in_helper(obj1); | |
2701 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2702 | temp2 = True; |
d14a1e28 RD |
2703 | } |
2704 | } | |
2705 | if (obj2) { | |
2706 | { | |
2707 | arg3 = wxString_in_helper(obj2); | |
2708 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2709 | temp3 = True; |
d14a1e28 RD |
2710 | } |
2711 | } | |
2712 | if (obj3) { | |
2713 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2714 | } | |
2715 | if (obj6) { | |
2716 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
2717 | if (PyErr_Occurred()) SWIG_fail; | |
2718 | } | |
2719 | { | |
2720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2721 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
2722 | ||
2723 | wxPyEndAllowThreads(__tstate); | |
2724 | if (PyErr_Occurred()) SWIG_fail; | |
2725 | } | |
2726 | { | |
2727 | #if wxUSE_UNICODE | |
2728 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2729 | #else | |
2730 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2731 | #endif | |
2732 | } | |
2733 | { | |
2734 | if (temp1) | |
2735 | delete arg1; | |
2736 | } | |
2737 | { | |
2738 | if (temp2) | |
2739 | delete arg2; | |
2740 | } | |
2741 | { | |
2742 | if (temp3) | |
2743 | delete arg3; | |
2744 | } | |
2745 | return resultobj; | |
2746 | fail: | |
2747 | { | |
2748 | if (temp1) | |
2749 | delete arg1; | |
2750 | } | |
2751 | { | |
2752 | if (temp2) | |
2753 | delete arg2; | |
2754 | } | |
2755 | { | |
2756 | if (temp3) | |
2757 | delete arg3; | |
2758 | } | |
2759 | return NULL; | |
2760 | } | |
2761 | ||
2762 | ||
2763 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2764 | PyObject *resultobj; | |
2765 | wxString *arg1 = 0 ; | |
2766 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2767 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2768 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2769 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2770 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2771 | wxString result; | |
423f194a RD |
2772 | bool temp1 = False ; |
2773 | bool temp2 = False ; | |
2774 | bool temp3 = False ; | |
d14a1e28 RD |
2775 | PyObject * obj0 = 0 ; |
2776 | PyObject * obj1 = 0 ; | |
2777 | PyObject * obj2 = 0 ; | |
2778 | PyObject * obj3 = 0 ; | |
2779 | char *kwnames[] = { | |
2780 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
2781 | }; | |
2782 | ||
2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2784 | { | |
2785 | arg1 = wxString_in_helper(obj0); | |
2786 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2787 | temp1 = True; |
d14a1e28 RD |
2788 | } |
2789 | if (obj1) { | |
2790 | { | |
2791 | arg2 = wxString_in_helper(obj1); | |
2792 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2793 | temp2 = True; |
d14a1e28 RD |
2794 | } |
2795 | } | |
2796 | if (obj2) { | |
2797 | { | |
2798 | arg3 = wxString_in_helper(obj2); | |
2799 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2800 | temp3 = True; |
d14a1e28 RD |
2801 | } |
2802 | } | |
2803 | if (obj3) { | |
2804 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2805 | } | |
2806 | { | |
2807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2808 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2809 | ||
2810 | wxPyEndAllowThreads(__tstate); | |
2811 | if (PyErr_Occurred()) SWIG_fail; | |
2812 | } | |
2813 | { | |
2814 | #if wxUSE_UNICODE | |
2815 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2816 | #else | |
2817 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2818 | #endif | |
2819 | } | |
2820 | { | |
2821 | if (temp1) | |
2822 | delete arg1; | |
2823 | } | |
2824 | { | |
2825 | if (temp2) | |
2826 | delete arg2; | |
2827 | } | |
2828 | { | |
2829 | if (temp3) | |
2830 | delete arg3; | |
2831 | } | |
2832 | return resultobj; | |
2833 | fail: | |
2834 | { | |
2835 | if (temp1) | |
2836 | delete arg1; | |
2837 | } | |
2838 | { | |
2839 | if (temp2) | |
2840 | delete arg2; | |
2841 | } | |
2842 | { | |
2843 | if (temp3) | |
2844 | delete arg3; | |
2845 | } | |
2846 | return NULL; | |
2847 | } | |
2848 | ||
2849 | ||
2850 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2851 | PyObject *resultobj; | |
2852 | wxString *arg1 = 0 ; | |
2853 | wxString *arg2 = 0 ; | |
2854 | int arg3 ; | |
2855 | wxString *arg4 = (wxString *) 0 ; | |
2856 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2857 | int arg6 = (int) -1 ; | |
2858 | int arg7 = (int) -1 ; | |
423f194a | 2859 | bool arg8 = (bool) True ; |
d14a1e28 RD |
2860 | int arg9 = (int) 150 ; |
2861 | int arg10 = (int) 200 ; | |
2862 | wxString result; | |
423f194a RD |
2863 | bool temp1 = False ; |
2864 | bool temp2 = False ; | |
d14a1e28 RD |
2865 | PyObject * obj0 = 0 ; |
2866 | PyObject * obj1 = 0 ; | |
2867 | PyObject * obj2 = 0 ; | |
2868 | PyObject * obj3 = 0 ; | |
2869 | PyObject * obj6 = 0 ; | |
2870 | char *kwnames[] = { | |
2871 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
2872 | }; | |
2873 | ||
2874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
2875 | { | |
2876 | arg1 = wxString_in_helper(obj0); | |
2877 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2878 | temp1 = True; |
d14a1e28 RD |
2879 | } |
2880 | { | |
2881 | arg2 = wxString_in_helper(obj1); | |
2882 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2883 | temp2 = True; |
d14a1e28 RD |
2884 | } |
2885 | { | |
2886 | arg3 = PyList_Size(obj2); | |
2887 | arg4 = wxString_LIST_helper(obj2); | |
2888 | if (arg4 == NULL) SWIG_fail; | |
2889 | } | |
2890 | if (obj3) { | |
2891 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2892 | } | |
2893 | if (obj6) { | |
2894 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
2895 | if (PyErr_Occurred()) SWIG_fail; | |
2896 | } | |
2897 | { | |
2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2899 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
2900 | ||
2901 | wxPyEndAllowThreads(__tstate); | |
2902 | if (PyErr_Occurred()) SWIG_fail; | |
2903 | } | |
2904 | { | |
2905 | #if wxUSE_UNICODE | |
2906 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2907 | #else | |
2908 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2909 | #endif | |
2910 | } | |
2911 | { | |
2912 | if (temp1) | |
2913 | delete arg1; | |
2914 | } | |
2915 | { | |
2916 | if (temp2) | |
2917 | delete arg2; | |
2918 | } | |
2919 | { | |
2920 | if (arg4) delete [] arg4; | |
2921 | } | |
2922 | return resultobj; | |
2923 | fail: | |
2924 | { | |
2925 | if (temp1) | |
2926 | delete arg1; | |
2927 | } | |
2928 | { | |
2929 | if (temp2) | |
2930 | delete arg2; | |
2931 | } | |
2932 | { | |
2933 | if (arg4) delete [] arg4; | |
2934 | } | |
2935 | return NULL; | |
2936 | } | |
2937 | ||
2938 | ||
2939 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2940 | PyObject *resultobj; | |
2941 | wxString *arg1 = 0 ; | |
2942 | wxString *arg2 = 0 ; | |
2943 | int arg3 ; | |
2944 | wxString *arg4 = (wxString *) 0 ; | |
2945 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2946 | int arg6 = (int) -1 ; | |
2947 | int arg7 = (int) -1 ; | |
423f194a | 2948 | bool arg8 = (bool) True ; |
d14a1e28 RD |
2949 | int arg9 = (int) 150 ; |
2950 | int arg10 = (int) 200 ; | |
2951 | int result; | |
423f194a RD |
2952 | bool temp1 = False ; |
2953 | bool temp2 = False ; | |
d14a1e28 RD |
2954 | PyObject * obj0 = 0 ; |
2955 | PyObject * obj1 = 0 ; | |
2956 | PyObject * obj2 = 0 ; | |
2957 | PyObject * obj3 = 0 ; | |
2958 | PyObject * obj6 = 0 ; | |
2959 | char *kwnames[] = { | |
2960 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
2961 | }; | |
2962 | ||
2963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
2964 | { | |
2965 | arg1 = wxString_in_helper(obj0); | |
2966 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2967 | temp1 = True; |
d14a1e28 RD |
2968 | } |
2969 | { | |
2970 | arg2 = wxString_in_helper(obj1); | |
2971 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2972 | temp2 = True; |
d14a1e28 RD |
2973 | } |
2974 | { | |
2975 | arg3 = PyList_Size(obj2); | |
2976 | arg4 = wxString_LIST_helper(obj2); | |
2977 | if (arg4 == NULL) SWIG_fail; | |
2978 | } | |
2979 | if (obj3) { | |
2980 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2981 | } | |
2982 | if (obj6) { | |
2983 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
2984 | if (PyErr_Occurred()) SWIG_fail; | |
2985 | } | |
2986 | { | |
2987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2988 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
2989 | ||
2990 | wxPyEndAllowThreads(__tstate); | |
2991 | if (PyErr_Occurred()) SWIG_fail; | |
2992 | } | |
2993 | resultobj = PyInt_FromLong((long)result); | |
2994 | { | |
2995 | if (temp1) | |
2996 | delete arg1; | |
2997 | } | |
2998 | { | |
2999 | if (temp2) | |
3000 | delete arg2; | |
3001 | } | |
3002 | { | |
3003 | if (arg4) delete [] arg4; | |
3004 | } | |
3005 | return resultobj; | |
3006 | fail: | |
3007 | { | |
3008 | if (temp1) | |
3009 | delete arg1; | |
3010 | } | |
3011 | { | |
3012 | if (temp2) | |
3013 | delete arg2; | |
3014 | } | |
3015 | { | |
3016 | if (arg4) delete [] arg4; | |
3017 | } | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | ||
3022 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3023 | PyObject *resultobj; | |
3024 | wxString *arg1 = 0 ; | |
3025 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3026 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3027 | int arg3 = (int) wxOK|wxCENTRE ; | |
3028 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3029 | int arg5 = (int) -1 ; | |
3030 | int arg6 = (int) -1 ; | |
3031 | int result; | |
423f194a RD |
3032 | bool temp1 = False ; |
3033 | bool temp2 = False ; | |
d14a1e28 RD |
3034 | PyObject * obj0 = 0 ; |
3035 | PyObject * obj1 = 0 ; | |
3036 | PyObject * obj3 = 0 ; | |
3037 | char *kwnames[] = { | |
3038 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3039 | }; | |
3040 | ||
3041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOii:MessageBox",kwnames,&obj0,&obj1,&arg3,&obj3,&arg5,&arg6)) goto fail; | |
3042 | { | |
3043 | arg1 = wxString_in_helper(obj0); | |
3044 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3045 | temp1 = True; |
d14a1e28 RD |
3046 | } |
3047 | if (obj1) { | |
3048 | { | |
3049 | arg2 = wxString_in_helper(obj1); | |
3050 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3051 | temp2 = True; |
d14a1e28 RD |
3052 | } |
3053 | } | |
3054 | if (obj3) { | |
3055 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3056 | } | |
3057 | { | |
3058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3059 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3060 | ||
3061 | wxPyEndAllowThreads(__tstate); | |
3062 | if (PyErr_Occurred()) SWIG_fail; | |
3063 | } | |
3064 | resultobj = PyInt_FromLong((long)result); | |
3065 | { | |
3066 | if (temp1) | |
3067 | delete arg1; | |
3068 | } | |
3069 | { | |
3070 | if (temp2) | |
3071 | delete arg2; | |
3072 | } | |
3073 | return resultobj; | |
3074 | fail: | |
3075 | { | |
3076 | if (temp1) | |
3077 | delete arg1; | |
3078 | } | |
3079 | { | |
3080 | if (temp2) | |
3081 | delete arg2; | |
3082 | } | |
3083 | return NULL; | |
3084 | } | |
3085 | ||
3086 | ||
3087 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3088 | PyObject *resultobj; | |
3089 | wxString *arg1 = 0 ; | |
3090 | wxString *arg2 = 0 ; | |
3091 | wxString *arg3 = 0 ; | |
3092 | long arg4 ; | |
3093 | long arg5 = (long) 0 ; | |
3094 | long arg6 = (long) 100 ; | |
3095 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3096 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3097 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3098 | long result; | |
423f194a RD |
3099 | bool temp1 = False ; |
3100 | bool temp2 = False ; | |
3101 | bool temp3 = False ; | |
d14a1e28 RD |
3102 | wxPoint temp8 ; |
3103 | PyObject * obj0 = 0 ; | |
3104 | PyObject * obj1 = 0 ; | |
3105 | PyObject * obj2 = 0 ; | |
3106 | PyObject * obj6 = 0 ; | |
3107 | PyObject * obj7 = 0 ; | |
3108 | char *kwnames[] = { | |
3109 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3110 | }; | |
3111 | ||
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOl|llOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7)) goto fail; | |
3113 | { | |
3114 | arg1 = wxString_in_helper(obj0); | |
3115 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3116 | temp1 = True; |
d14a1e28 RD |
3117 | } |
3118 | { | |
3119 | arg2 = wxString_in_helper(obj1); | |
3120 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3121 | temp2 = True; |
d14a1e28 RD |
3122 | } |
3123 | { | |
3124 | arg3 = wxString_in_helper(obj2); | |
3125 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3126 | temp3 = True; |
d14a1e28 RD |
3127 | } |
3128 | if (obj6) { | |
3129 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3130 | } | |
3131 | if (obj7) { | |
3132 | { | |
3133 | arg8 = &temp8; | |
3134 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3135 | } | |
3136 | } | |
3137 | { | |
3138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3139 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3140 | ||
3141 | wxPyEndAllowThreads(__tstate); | |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
3143 | } | |
3144 | resultobj = PyInt_FromLong((long)result); | |
3145 | { | |
3146 | if (temp1) | |
3147 | delete arg1; | |
3148 | } | |
3149 | { | |
3150 | if (temp2) | |
3151 | delete arg2; | |
3152 | } | |
3153 | { | |
3154 | if (temp3) | |
3155 | delete arg3; | |
3156 | } | |
3157 | return resultobj; | |
3158 | fail: | |
3159 | { | |
3160 | if (temp1) | |
3161 | delete arg1; | |
3162 | } | |
3163 | { | |
3164 | if (temp2) | |
3165 | delete arg2; | |
3166 | } | |
3167 | { | |
3168 | if (temp3) | |
3169 | delete arg3; | |
3170 | } | |
3171 | return NULL; | |
3172 | } | |
3173 | ||
3174 | ||
3175 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject *resultobj; | |
3177 | bool result; | |
3178 | char *kwnames[] = { | |
3179 | NULL | |
3180 | }; | |
3181 | ||
3182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3183 | { | |
3184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3185 | result = (bool)wxColourDisplay(); | |
3186 | ||
3187 | wxPyEndAllowThreads(__tstate); | |
3188 | if (PyErr_Occurred()) SWIG_fail; | |
3189 | } | |
3190 | resultobj = PyInt_FromLong((long)result); | |
3191 | return resultobj; | |
3192 | fail: | |
3193 | return NULL; | |
3194 | } | |
3195 | ||
3196 | ||
3197 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3198 | PyObject *resultobj; | |
3199 | int result; | |
3200 | char *kwnames[] = { | |
3201 | NULL | |
3202 | }; | |
3203 | ||
3204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3205 | { | |
3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3207 | result = (int)wxDisplayDepth(); | |
3208 | ||
3209 | wxPyEndAllowThreads(__tstate); | |
3210 | if (PyErr_Occurred()) SWIG_fail; | |
3211 | } | |
3212 | resultobj = PyInt_FromLong((long)result); | |
3213 | return resultobj; | |
3214 | fail: | |
3215 | return NULL; | |
3216 | } | |
3217 | ||
3218 | ||
3219 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3220 | PyObject *resultobj; | |
3221 | int result; | |
3222 | char *kwnames[] = { | |
3223 | NULL | |
3224 | }; | |
3225 | ||
3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3227 | { | |
3228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3229 | result = (int)wxGetDisplayDepth(); | |
3230 | ||
3231 | wxPyEndAllowThreads(__tstate); | |
3232 | if (PyErr_Occurred()) SWIG_fail; | |
3233 | } | |
3234 | resultobj = PyInt_FromLong((long)result); | |
3235 | return resultobj; | |
3236 | fail: | |
3237 | return NULL; | |
3238 | } | |
3239 | ||
3240 | ||
3241 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3242 | PyObject *resultobj; | |
3243 | int *arg1 = (int *) 0 ; | |
3244 | int *arg2 = (int *) 0 ; | |
3245 | int temp1 ; | |
3246 | int temp2 ; | |
3247 | char *kwnames[] = { | |
3248 | NULL | |
3249 | }; | |
3250 | ||
3251 | arg1 = &temp1; | |
3252 | arg2 = &temp2; | |
3253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3254 | { | |
3255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3256 | wxDisplaySize(arg1,arg2); | |
3257 | ||
3258 | wxPyEndAllowThreads(__tstate); | |
3259 | if (PyErr_Occurred()) SWIG_fail; | |
3260 | } | |
3261 | Py_INCREF(Py_None); resultobj = Py_None; | |
3262 | { | |
3263 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3264 | resultobj = t_output_helper(resultobj,o); | |
3265 | } | |
3266 | { | |
3267 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3268 | resultobj = t_output_helper(resultobj,o); | |
3269 | } | |
3270 | return resultobj; | |
3271 | fail: | |
3272 | return NULL; | |
3273 | } | |
3274 | ||
3275 | ||
3276 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3277 | PyObject *resultobj; | |
3278 | wxSize result; | |
3279 | char *kwnames[] = { | |
3280 | NULL | |
3281 | }; | |
3282 | ||
3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3284 | { | |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3286 | result = wxGetDisplaySize(); | |
3287 | ||
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
3291 | { | |
3292 | wxSize * resultptr; | |
3293 | resultptr = new wxSize((wxSize &) result); | |
3294 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3295 | } | |
3296 | return resultobj; | |
3297 | fail: | |
3298 | return NULL; | |
3299 | } | |
3300 | ||
3301 | ||
3302 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3303 | PyObject *resultobj; | |
3304 | int *arg1 = (int *) 0 ; | |
3305 | int *arg2 = (int *) 0 ; | |
3306 | int temp1 ; | |
3307 | int temp2 ; | |
3308 | char *kwnames[] = { | |
3309 | NULL | |
3310 | }; | |
3311 | ||
3312 | arg1 = &temp1; | |
3313 | arg2 = &temp2; | |
3314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3315 | { | |
3316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3317 | wxDisplaySizeMM(arg1,arg2); | |
3318 | ||
3319 | wxPyEndAllowThreads(__tstate); | |
3320 | if (PyErr_Occurred()) SWIG_fail; | |
3321 | } | |
3322 | Py_INCREF(Py_None); resultobj = Py_None; | |
3323 | { | |
3324 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3325 | resultobj = t_output_helper(resultobj,o); | |
3326 | } | |
3327 | { | |
3328 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3329 | resultobj = t_output_helper(resultobj,o); | |
3330 | } | |
3331 | return resultobj; | |
3332 | fail: | |
3333 | return NULL; | |
3334 | } | |
3335 | ||
3336 | ||
3337 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3338 | PyObject *resultobj; | |
3339 | wxSize result; | |
3340 | char *kwnames[] = { | |
3341 | NULL | |
3342 | }; | |
3343 | ||
3344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3345 | { | |
3346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3347 | result = wxGetDisplaySizeMM(); | |
3348 | ||
3349 | wxPyEndAllowThreads(__tstate); | |
3350 | if (PyErr_Occurred()) SWIG_fail; | |
3351 | } | |
3352 | { | |
3353 | wxSize * resultptr; | |
3354 | resultptr = new wxSize((wxSize &) result); | |
3355 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3356 | } | |
3357 | return resultobj; | |
3358 | fail: | |
3359 | return NULL; | |
3360 | } | |
3361 | ||
3362 | ||
3363 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3364 | PyObject *resultobj; | |
3365 | int *arg1 = (int *) 0 ; | |
3366 | int *arg2 = (int *) 0 ; | |
3367 | int *arg3 = (int *) 0 ; | |
3368 | int *arg4 = (int *) 0 ; | |
3369 | int temp1 ; | |
3370 | int temp2 ; | |
3371 | int temp3 ; | |
3372 | int temp4 ; | |
3373 | char *kwnames[] = { | |
3374 | NULL | |
3375 | }; | |
3376 | ||
3377 | arg1 = &temp1; | |
3378 | arg2 = &temp2; | |
3379 | arg3 = &temp3; | |
3380 | arg4 = &temp4; | |
3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3382 | { | |
3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3384 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3385 | ||
3386 | wxPyEndAllowThreads(__tstate); | |
3387 | if (PyErr_Occurred()) SWIG_fail; | |
3388 | } | |
3389 | Py_INCREF(Py_None); resultobj = Py_None; | |
3390 | { | |
3391 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3392 | resultobj = t_output_helper(resultobj,o); | |
3393 | } | |
3394 | { | |
3395 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3396 | resultobj = t_output_helper(resultobj,o); | |
3397 | } | |
3398 | { | |
3399 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3400 | resultobj = t_output_helper(resultobj,o); | |
3401 | } | |
3402 | { | |
3403 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3404 | resultobj = t_output_helper(resultobj,o); | |
3405 | } | |
3406 | return resultobj; | |
3407 | fail: | |
3408 | return NULL; | |
3409 | } | |
3410 | ||
3411 | ||
3412 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3413 | PyObject *resultobj; | |
3414 | wxRect result; | |
3415 | char *kwnames[] = { | |
3416 | NULL | |
3417 | }; | |
3418 | ||
3419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3420 | { | |
3421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3422 | result = wxGetClientDisplayRect(); | |
3423 | ||
3424 | wxPyEndAllowThreads(__tstate); | |
3425 | if (PyErr_Occurred()) SWIG_fail; | |
3426 | } | |
3427 | { | |
3428 | wxRect * resultptr; | |
3429 | resultptr = new wxRect((wxRect &) result); | |
3430 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3431 | } | |
3432 | return resultobj; | |
3433 | fail: | |
3434 | return NULL; | |
3435 | } | |
3436 | ||
3437 | ||
3438 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3439 | PyObject *resultobj; | |
3440 | wxCursor *arg1 = 0 ; | |
3441 | PyObject * obj0 = 0 ; | |
3442 | char *kwnames[] = { | |
3443 | (char *) "cursor", NULL | |
3444 | }; | |
3445 | ||
3446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3448 | if (arg1 == NULL) { | |
3449 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3450 | } | |
3451 | { | |
3452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3453 | wxSetCursor(*arg1); | |
3454 | ||
3455 | wxPyEndAllowThreads(__tstate); | |
3456 | if (PyErr_Occurred()) SWIG_fail; | |
3457 | } | |
3458 | Py_INCREF(Py_None); resultobj = Py_None; | |
3459 | return resultobj; | |
3460 | fail: | |
3461 | return NULL; | |
3462 | } | |
3463 | ||
3464 | ||
3465 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3466 | PyObject *resultobj; | |
3467 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3468 | PyObject * obj0 = 0 ; | |
3469 | char *kwnames[] = { | |
3470 | (char *) "cursor", NULL | |
3471 | }; | |
3472 | ||
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3474 | if (obj0) { | |
3475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3476 | } | |
3477 | { | |
3478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3479 | wxBeginBusyCursor(arg1); | |
3480 | ||
3481 | wxPyEndAllowThreads(__tstate); | |
3482 | if (PyErr_Occurred()) SWIG_fail; | |
3483 | } | |
3484 | Py_INCREF(Py_None); resultobj = Py_None; | |
3485 | return resultobj; | |
3486 | fail: | |
3487 | return NULL; | |
3488 | } | |
3489 | ||
3490 | ||
3491 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3492 | PyObject *resultobj; | |
3493 | wxWindow *result; | |
3494 | char *kwnames[] = { | |
3495 | NULL | |
3496 | }; | |
3497 | ||
3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3499 | { | |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | result = (wxWindow *)wxGetActiveWindow(); | |
3502 | ||
3503 | wxPyEndAllowThreads(__tstate); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
3506 | { | |
3507 | resultobj = wxPyMake_wxObject(result); | |
3508 | } | |
3509 | return resultobj; | |
3510 | fail: | |
3511 | return NULL; | |
3512 | } | |
3513 | ||
3514 | ||
3515 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3516 | PyObject *resultobj; | |
3517 | wxPoint *arg1 = 0 ; | |
3518 | wxWindow *result; | |
3519 | wxPoint temp1 ; | |
3520 | PyObject * obj0 = 0 ; | |
3521 | char *kwnames[] = { | |
3522 | (char *) "pt", NULL | |
3523 | }; | |
3524 | ||
3525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3526 | { | |
3527 | arg1 = &temp1; | |
3528 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3529 | } | |
3530 | { | |
3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3532 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3533 | ||
3534 | wxPyEndAllowThreads(__tstate); | |
3535 | if (PyErr_Occurred()) SWIG_fail; | |
3536 | } | |
3537 | { | |
3538 | resultobj = wxPyMake_wxObject(result); | |
3539 | } | |
3540 | return resultobj; | |
3541 | fail: | |
3542 | return NULL; | |
3543 | } | |
3544 | ||
3545 | ||
3546 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3547 | PyObject *resultobj; | |
3548 | wxPoint *arg1 = 0 ; | |
3549 | wxWindow *result; | |
3550 | wxPoint temp1 ; | |
3551 | PyObject * obj0 = 0 ; | |
3552 | char *kwnames[] = { | |
3553 | (char *) "pt", NULL | |
3554 | }; | |
3555 | ||
3556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3557 | { | |
3558 | arg1 = &temp1; | |
3559 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3560 | } | |
3561 | { | |
3562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3563 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3564 | ||
3565 | wxPyEndAllowThreads(__tstate); | |
3566 | if (PyErr_Occurred()) SWIG_fail; | |
3567 | } | |
3568 | { | |
3569 | resultobj = wxPyMake_wxObject(result); | |
3570 | } | |
3571 | return resultobj; | |
3572 | fail: | |
3573 | return NULL; | |
3574 | } | |
3575 | ||
3576 | ||
3577 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3578 | PyObject *resultobj; | |
3579 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3580 | wxWindow *result; | |
3581 | PyObject * obj0 = 0 ; | |
3582 | char *kwnames[] = { | |
3583 | (char *) "win", NULL | |
3584 | }; | |
3585 | ||
3586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3588 | { | |
3589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3590 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3591 | ||
3592 | wxPyEndAllowThreads(__tstate); | |
3593 | if (PyErr_Occurred()) SWIG_fail; | |
3594 | } | |
3595 | { | |
3596 | resultobj = wxPyMake_wxObject(result); | |
3597 | } | |
3598 | return resultobj; | |
3599 | fail: | |
3600 | return NULL; | |
3601 | } | |
3602 | ||
3603 | ||
3604 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3605 | PyObject *resultobj; | |
3606 | char *kwnames[] = { | |
3607 | NULL | |
3608 | }; | |
3609 | ||
3610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
3611 | { | |
3612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3613 | wxWakeUpMainThread(); | |
3614 | ||
3615 | wxPyEndAllowThreads(__tstate); | |
3616 | if (PyErr_Occurred()) SWIG_fail; | |
3617 | } | |
3618 | Py_INCREF(Py_None); resultobj = Py_None; | |
3619 | return resultobj; | |
3620 | fail: | |
3621 | return NULL; | |
3622 | } | |
3623 | ||
3624 | ||
3625 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3626 | PyObject *resultobj; | |
3627 | char *kwnames[] = { | |
3628 | NULL | |
3629 | }; | |
3630 | ||
3631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
3632 | { | |
3633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3634 | wxMutexGuiEnter(); | |
3635 | ||
3636 | wxPyEndAllowThreads(__tstate); | |
3637 | if (PyErr_Occurred()) SWIG_fail; | |
3638 | } | |
3639 | Py_INCREF(Py_None); resultobj = Py_None; | |
3640 | return resultobj; | |
3641 | fail: | |
3642 | return NULL; | |
3643 | } | |
3644 | ||
3645 | ||
3646 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3647 | PyObject *resultobj; | |
3648 | char *kwnames[] = { | |
3649 | NULL | |
3650 | }; | |
3651 | ||
3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
3653 | { | |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | wxMutexGuiLeave(); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
3660 | Py_INCREF(Py_None); resultobj = Py_None; | |
3661 | return resultobj; | |
3662 | fail: | |
3663 | return NULL; | |
3664 | } | |
3665 | ||
3666 | ||
3667 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3668 | PyObject *resultobj; | |
3669 | wxMutexGuiLocker *result; | |
3670 | char *kwnames[] = { | |
3671 | NULL | |
3672 | }; | |
3673 | ||
3674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
3675 | { | |
3676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3677 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
3678 | ||
3679 | wxPyEndAllowThreads(__tstate); | |
3680 | if (PyErr_Occurred()) SWIG_fail; | |
3681 | } | |
3682 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
3683 | return resultobj; | |
3684 | fail: | |
3685 | return NULL; | |
3686 | } | |
3687 | ||
3688 | ||
3689 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3690 | PyObject *resultobj; | |
3691 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
3692 | PyObject * obj0 = 0 ; | |
3693 | char *kwnames[] = { | |
3694 | (char *) "self", NULL | |
3695 | }; | |
3696 | ||
3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
3698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3699 | { | |
3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3701 | delete arg1; | |
3702 | ||
3703 | wxPyEndAllowThreads(__tstate); | |
3704 | if (PyErr_Occurred()) SWIG_fail; | |
3705 | } | |
3706 | Py_INCREF(Py_None); resultobj = Py_None; | |
3707 | return resultobj; | |
3708 | fail: | |
3709 | return NULL; | |
3710 | } | |
3711 | ||
3712 | ||
3713 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
3714 | PyObject *obj; | |
3715 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3716 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
3717 | Py_INCREF(obj); | |
3718 | return Py_BuildValue((char *)""); | |
3719 | } | |
3720 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3721 | PyObject *resultobj; | |
3722 | bool result; | |
3723 | char *kwnames[] = { | |
3724 | NULL | |
3725 | }; | |
3726 | ||
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
3728 | { | |
3729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3730 | result = (bool)wxThread_IsMain(); | |
3731 | ||
3732 | wxPyEndAllowThreads(__tstate); | |
3733 | if (PyErr_Occurred()) SWIG_fail; | |
3734 | } | |
3735 | resultobj = PyInt_FromLong((long)result); | |
3736 | return resultobj; | |
3737 | fail: | |
3738 | return NULL; | |
3739 | } | |
3740 | ||
3741 | ||
3742 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3743 | PyObject *resultobj; | |
3744 | wxString *arg1 = 0 ; | |
3745 | wxToolTip *result; | |
423f194a | 3746 | bool temp1 = False ; |
d14a1e28 RD |
3747 | PyObject * obj0 = 0 ; |
3748 | char *kwnames[] = { | |
3749 | (char *) "tip", NULL | |
3750 | }; | |
3751 | ||
3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
3753 | { | |
3754 | arg1 = wxString_in_helper(obj0); | |
3755 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3756 | temp1 = True; |
d14a1e28 RD |
3757 | } |
3758 | { | |
3759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3760 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
3761 | ||
3762 | wxPyEndAllowThreads(__tstate); | |
3763 | if (PyErr_Occurred()) SWIG_fail; | |
3764 | } | |
3765 | { | |
3766 | resultobj = wxPyMake_wxObject(result); | |
3767 | } | |
3768 | { | |
3769 | if (temp1) | |
3770 | delete arg1; | |
3771 | } | |
3772 | return resultobj; | |
3773 | fail: | |
3774 | { | |
3775 | if (temp1) | |
3776 | delete arg1; | |
3777 | } | |
3778 | return NULL; | |
3779 | } | |
3780 | ||
3781 | ||
3782 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3783 | PyObject *resultobj; | |
3784 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3785 | wxString *arg2 = 0 ; | |
423f194a | 3786 | bool temp2 = False ; |
d14a1e28 RD |
3787 | PyObject * obj0 = 0 ; |
3788 | PyObject * obj1 = 0 ; | |
3789 | char *kwnames[] = { | |
3790 | (char *) "self",(char *) "tip", NULL | |
3791 | }; | |
3792 | ||
3793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
3794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3795 | { | |
3796 | arg2 = wxString_in_helper(obj1); | |
3797 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3798 | temp2 = True; |
d14a1e28 RD |
3799 | } |
3800 | { | |
3801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3802 | (arg1)->SetTip((wxString const &)*arg2); | |
3803 | ||
3804 | wxPyEndAllowThreads(__tstate); | |
3805 | if (PyErr_Occurred()) SWIG_fail; | |
3806 | } | |
3807 | Py_INCREF(Py_None); resultobj = Py_None; | |
3808 | { | |
3809 | if (temp2) | |
3810 | delete arg2; | |
3811 | } | |
3812 | return resultobj; | |
3813 | fail: | |
3814 | { | |
3815 | if (temp2) | |
3816 | delete arg2; | |
3817 | } | |
3818 | return NULL; | |
3819 | } | |
3820 | ||
3821 | ||
3822 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3823 | PyObject *resultobj; | |
3824 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3825 | wxString result; | |
3826 | PyObject * obj0 = 0 ; | |
3827 | char *kwnames[] = { | |
3828 | (char *) "self", NULL | |
3829 | }; | |
3830 | ||
3831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
3832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3833 | { | |
3834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3835 | result = (arg1)->GetTip(); | |
3836 | ||
3837 | wxPyEndAllowThreads(__tstate); | |
3838 | if (PyErr_Occurred()) SWIG_fail; | |
3839 | } | |
3840 | { | |
3841 | #if wxUSE_UNICODE | |
3842 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3843 | #else | |
3844 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3845 | #endif | |
3846 | } | |
3847 | return resultobj; | |
3848 | fail: | |
3849 | return NULL; | |
3850 | } | |
3851 | ||
3852 | ||
3853 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3854 | PyObject *resultobj; | |
3855 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3856 | wxWindow *result; | |
3857 | PyObject * obj0 = 0 ; | |
3858 | char *kwnames[] = { | |
3859 | (char *) "self", NULL | |
3860 | }; | |
3861 | ||
3862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
3863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3864 | { | |
3865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3866 | result = (wxWindow *)(arg1)->GetWindow(); | |
3867 | ||
3868 | wxPyEndAllowThreads(__tstate); | |
3869 | if (PyErr_Occurred()) SWIG_fail; | |
3870 | } | |
3871 | { | |
3872 | resultobj = wxPyMake_wxObject(result); | |
3873 | } | |
3874 | return resultobj; | |
3875 | fail: | |
3876 | return NULL; | |
3877 | } | |
3878 | ||
3879 | ||
3880 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3881 | PyObject *resultobj; | |
3882 | bool arg1 ; | |
3883 | PyObject * obj0 = 0 ; | |
3884 | char *kwnames[] = { | |
3885 | (char *) "flag", NULL | |
3886 | }; | |
3887 | ||
3888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
3889 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | { | |
3892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3893 | wxToolTip::Enable(arg1); | |
3894 | ||
3895 | wxPyEndAllowThreads(__tstate); | |
3896 | if (PyErr_Occurred()) SWIG_fail; | |
3897 | } | |
3898 | Py_INCREF(Py_None); resultobj = Py_None; | |
3899 | return resultobj; | |
3900 | fail: | |
3901 | return NULL; | |
3902 | } | |
3903 | ||
3904 | ||
3905 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3906 | PyObject *resultobj; | |
3907 | long arg1 ; | |
3908 | char *kwnames[] = { | |
3909 | (char *) "milliseconds", NULL | |
3910 | }; | |
3911 | ||
3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:ToolTip_SetDelay",kwnames,&arg1)) goto fail; | |
3913 | { | |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | wxToolTip::SetDelay(arg1); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
3920 | Py_INCREF(Py_None); resultobj = Py_None; | |
3921 | return resultobj; | |
3922 | fail: | |
3923 | return NULL; | |
3924 | } | |
3925 | ||
3926 | ||
3927 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
3928 | PyObject *obj; | |
3929 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3930 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
3931 | Py_INCREF(obj); | |
3932 | return Py_BuildValue((char *)""); | |
3933 | } | |
3934 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3935 | PyObject *resultobj; | |
3936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3937 | wxSize *arg2 = 0 ; | |
3938 | wxCaret *result; | |
3939 | wxSize temp2 ; | |
3940 | PyObject * obj0 = 0 ; | |
3941 | PyObject * obj1 = 0 ; | |
3942 | char *kwnames[] = { | |
3943 | (char *) "window",(char *) "size", NULL | |
3944 | }; | |
3945 | ||
3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
3947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3948 | { | |
3949 | arg2 = &temp2; | |
3950 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3951 | } | |
3952 | { | |
3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3954 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
3955 | ||
3956 | wxPyEndAllowThreads(__tstate); | |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
3958 | } | |
3959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
3960 | return resultobj; | |
3961 | fail: | |
3962 | return NULL; | |
3963 | } | |
3964 | ||
3965 | ||
3966 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject *resultobj; | |
3968 | wxCaret *arg1 = (wxCaret *) 0 ; | |
3969 | PyObject * obj0 = 0 ; | |
3970 | char *kwnames[] = { | |
3971 | (char *) "self", NULL | |
3972 | }; | |
3973 | ||
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
3975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3976 | { | |
3977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3978 | delete arg1; | |
3979 | ||
3980 | wxPyEndAllowThreads(__tstate); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
3983 | Py_INCREF(Py_None); resultobj = Py_None; | |
3984 | return resultobj; | |
3985 | fail: | |
3986 | return NULL; | |
3987 | } | |
3988 | ||
3989 | ||
3990 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3991 | PyObject *resultobj; | |
3992 | wxCaret *arg1 = (wxCaret *) 0 ; | |
3993 | bool result; | |
3994 | PyObject * obj0 = 0 ; | |
3995 | char *kwnames[] = { | |
3996 | (char *) "self", NULL | |
3997 | }; | |
3998 | ||
3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4001 | { | |
4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4003 | result = (bool)(arg1)->IsOk(); | |
4004 | ||
4005 | wxPyEndAllowThreads(__tstate); | |
4006 | if (PyErr_Occurred()) SWIG_fail; | |
4007 | } | |
4008 | resultobj = PyInt_FromLong((long)result); | |
4009 | return resultobj; | |
4010 | fail: | |
4011 | return NULL; | |
4012 | } | |
4013 | ||
4014 | ||
4015 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4016 | PyObject *resultobj; | |
4017 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4018 | bool result; | |
4019 | PyObject * obj0 = 0 ; | |
4020 | char *kwnames[] = { | |
4021 | (char *) "self", NULL | |
4022 | }; | |
4023 | ||
4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4026 | { | |
4027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4028 | result = (bool)(arg1)->IsVisible(); | |
4029 | ||
4030 | wxPyEndAllowThreads(__tstate); | |
4031 | if (PyErr_Occurred()) SWIG_fail; | |
4032 | } | |
4033 | resultobj = PyInt_FromLong((long)result); | |
4034 | return resultobj; | |
4035 | fail: | |
4036 | return NULL; | |
4037 | } | |
4038 | ||
4039 | ||
44127b65 RD |
4040 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4041 | PyObject *resultobj; | |
4042 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4043 | wxPoint result; | |
4044 | PyObject * obj0 = 0 ; | |
4045 | char *kwnames[] = { | |
4046 | (char *) "self", NULL | |
4047 | }; | |
4048 | ||
4049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4051 | { | |
4052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4053 | result = (arg1)->GetPosition(); | |
4054 | ||
4055 | wxPyEndAllowThreads(__tstate); | |
4056 | if (PyErr_Occurred()) SWIG_fail; | |
4057 | } | |
4058 | { | |
4059 | wxPoint * resultptr; | |
4060 | resultptr = new wxPoint((wxPoint &) result); | |
4061 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4062 | } | |
4063 | return resultobj; | |
4064 | fail: | |
4065 | return NULL; | |
4066 | } | |
4067 | ||
4068 | ||
d14a1e28 RD |
4069 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4070 | PyObject *resultobj; | |
4071 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4072 | int *arg2 = (int *) 0 ; | |
4073 | int *arg3 = (int *) 0 ; | |
4074 | int temp2 ; | |
4075 | int temp3 ; | |
4076 | PyObject * obj0 = 0 ; | |
4077 | char *kwnames[] = { | |
4078 | (char *) "self", NULL | |
4079 | }; | |
4080 | ||
4081 | arg2 = &temp2; | |
4082 | arg3 = &temp3; | |
4083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | (arg1)->GetPosition(arg2,arg3); | |
4088 | ||
4089 | wxPyEndAllowThreads(__tstate); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | } | |
4092 | Py_INCREF(Py_None); resultobj = Py_None; | |
4093 | { | |
4094 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4095 | resultobj = t_output_helper(resultobj,o); | |
4096 | } | |
4097 | { | |
4098 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4099 | resultobj = t_output_helper(resultobj,o); | |
4100 | } | |
4101 | return resultobj; | |
4102 | fail: | |
4103 | return NULL; | |
4104 | } | |
4105 | ||
4106 | ||
44127b65 | 4107 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4108 | PyObject *resultobj; |
4109 | wxCaret *arg1 = (wxCaret *) 0 ; | |
44127b65 | 4110 | wxSize result; |
d14a1e28 RD |
4111 | PyObject * obj0 = 0 ; |
4112 | char *kwnames[] = { | |
4113 | (char *) "self", NULL | |
4114 | }; | |
4115 | ||
44127b65 | 4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4118 | { | |
4119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 4120 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4121 | |
4122 | wxPyEndAllowThreads(__tstate); | |
4123 | if (PyErr_Occurred()) SWIG_fail; | |
4124 | } | |
4125 | { | |
44127b65 RD |
4126 | wxSize * resultptr; |
4127 | resultptr = new wxSize((wxSize &) result); | |
4128 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
d14a1e28 RD |
4129 | } |
4130 | return resultobj; | |
4131 | fail: | |
4132 | return NULL; | |
4133 | } | |
4134 | ||
4135 | ||
4136 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4137 | PyObject *resultobj; | |
4138 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4139 | int *arg2 = (int *) 0 ; | |
4140 | int *arg3 = (int *) 0 ; | |
4141 | int temp2 ; | |
4142 | int temp3 ; | |
4143 | PyObject * obj0 = 0 ; | |
4144 | char *kwnames[] = { | |
4145 | (char *) "self", NULL | |
4146 | }; | |
4147 | ||
4148 | arg2 = &temp2; | |
4149 | arg3 = &temp3; | |
4150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4152 | { | |
4153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4154 | (arg1)->GetSize(arg2,arg3); | |
4155 | ||
4156 | wxPyEndAllowThreads(__tstate); | |
4157 | if (PyErr_Occurred()) SWIG_fail; | |
4158 | } | |
4159 | Py_INCREF(Py_None); resultobj = Py_None; | |
4160 | { | |
4161 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4162 | resultobj = t_output_helper(resultobj,o); | |
4163 | } | |
4164 | { | |
4165 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4166 | resultobj = t_output_helper(resultobj,o); | |
4167 | } | |
4168 | return resultobj; | |
4169 | fail: | |
4170 | return NULL; | |
4171 | } | |
4172 | ||
4173 | ||
d14a1e28 RD |
4174 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4175 | PyObject *resultobj; | |
4176 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4177 | wxWindow *result; | |
4178 | PyObject * obj0 = 0 ; | |
4179 | char *kwnames[] = { | |
4180 | (char *) "self", NULL | |
4181 | }; | |
4182 | ||
4183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4185 | { | |
4186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4187 | result = (wxWindow *)(arg1)->GetWindow(); | |
4188 | ||
4189 | wxPyEndAllowThreads(__tstate); | |
4190 | if (PyErr_Occurred()) SWIG_fail; | |
4191 | } | |
4192 | { | |
4193 | resultobj = wxPyMake_wxObject(result); | |
4194 | } | |
4195 | return resultobj; | |
4196 | fail: | |
4197 | return NULL; | |
4198 | } | |
4199 | ||
4200 | ||
4201 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4202 | PyObject *resultobj; | |
4203 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4204 | int arg2 ; | |
4205 | int arg3 ; | |
4206 | PyObject * obj0 = 0 ; | |
4207 | char *kwnames[] = { | |
4208 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4209 | }; | |
4210 | ||
4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_MoveXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4213 | { | |
4214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4215 | (arg1)->Move(arg2,arg3); | |
4216 | ||
4217 | wxPyEndAllowThreads(__tstate); | |
4218 | if (PyErr_Occurred()) SWIG_fail; | |
4219 | } | |
4220 | Py_INCREF(Py_None); resultobj = Py_None; | |
4221 | return resultobj; | |
4222 | fail: | |
4223 | return NULL; | |
4224 | } | |
4225 | ||
4226 | ||
4227 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4228 | PyObject *resultobj; | |
4229 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4230 | wxPoint *arg2 = 0 ; | |
4231 | wxPoint temp2 ; | |
4232 | PyObject * obj0 = 0 ; | |
4233 | PyObject * obj1 = 0 ; | |
4234 | char *kwnames[] = { | |
4235 | (char *) "self",(char *) "pt", NULL | |
4236 | }; | |
4237 | ||
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4240 | { | |
4241 | arg2 = &temp2; | |
4242 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4243 | } | |
4244 | { | |
4245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4246 | (arg1)->Move((wxPoint const &)*arg2); | |
4247 | ||
4248 | wxPyEndAllowThreads(__tstate); | |
4249 | if (PyErr_Occurred()) SWIG_fail; | |
4250 | } | |
4251 | Py_INCREF(Py_None); resultobj = Py_None; | |
4252 | return resultobj; | |
4253 | fail: | |
4254 | return NULL; | |
4255 | } | |
4256 | ||
4257 | ||
4258 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4259 | PyObject *resultobj; | |
4260 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4261 | int arg2 ; | |
4262 | int arg3 ; | |
4263 | PyObject * obj0 = 0 ; | |
4264 | char *kwnames[] = { | |
4265 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4266 | }; | |
4267 | ||
4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4270 | { | |
4271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4272 | (arg1)->SetSize(arg2,arg3); | |
4273 | ||
4274 | wxPyEndAllowThreads(__tstate); | |
4275 | if (PyErr_Occurred()) SWIG_fail; | |
4276 | } | |
4277 | Py_INCREF(Py_None); resultobj = Py_None; | |
4278 | return resultobj; | |
4279 | fail: | |
4280 | return NULL; | |
4281 | } | |
4282 | ||
4283 | ||
4284 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4285 | PyObject *resultobj; | |
4286 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4287 | wxSize *arg2 = 0 ; | |
4288 | wxSize temp2 ; | |
4289 | PyObject * obj0 = 0 ; | |
4290 | PyObject * obj1 = 0 ; | |
4291 | char *kwnames[] = { | |
4292 | (char *) "self",(char *) "size", NULL | |
4293 | }; | |
4294 | ||
4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4297 | { | |
4298 | arg2 = &temp2; | |
4299 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4300 | } | |
4301 | { | |
4302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4303 | (arg1)->SetSize((wxSize const &)*arg2); | |
4304 | ||
4305 | wxPyEndAllowThreads(__tstate); | |
4306 | if (PyErr_Occurred()) SWIG_fail; | |
4307 | } | |
4308 | Py_INCREF(Py_None); resultobj = Py_None; | |
4309 | return resultobj; | |
4310 | fail: | |
4311 | return NULL; | |
4312 | } | |
4313 | ||
4314 | ||
4315 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4316 | PyObject *resultobj; | |
4317 | wxCaret *arg1 = (wxCaret *) 0 ; | |
423f194a | 4318 | int arg2 = (int) True ; |
d14a1e28 RD |
4319 | PyObject * obj0 = 0 ; |
4320 | char *kwnames[] = { | |
4321 | (char *) "self",(char *) "show", NULL | |
4322 | }; | |
4323 | ||
4324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Caret_Show",kwnames,&obj0,&arg2)) goto fail; | |
4325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4326 | { | |
4327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4328 | (arg1)->Show(arg2); | |
4329 | ||
4330 | wxPyEndAllowThreads(__tstate); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | } | |
4333 | Py_INCREF(Py_None); resultobj = Py_None; | |
4334 | return resultobj; | |
4335 | fail: | |
4336 | return NULL; | |
4337 | } | |
4338 | ||
4339 | ||
4340 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4341 | PyObject *resultobj; | |
4342 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4343 | PyObject * obj0 = 0 ; | |
4344 | char *kwnames[] = { | |
4345 | (char *) "self", NULL | |
4346 | }; | |
4347 | ||
4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4350 | { | |
4351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4352 | (arg1)->Hide(); | |
4353 | ||
4354 | wxPyEndAllowThreads(__tstate); | |
4355 | if (PyErr_Occurred()) SWIG_fail; | |
4356 | } | |
4357 | Py_INCREF(Py_None); resultobj = Py_None; | |
4358 | return resultobj; | |
4359 | fail: | |
4360 | return NULL; | |
4361 | } | |
4362 | ||
4363 | ||
4364 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4365 | PyObject *obj; | |
4366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4367 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4368 | Py_INCREF(obj); | |
4369 | return Py_BuildValue((char *)""); | |
4370 | } | |
4371 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4372 | PyObject *resultobj; | |
4373 | int result; | |
4374 | char *kwnames[] = { | |
4375 | NULL | |
4376 | }; | |
4377 | ||
4378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4379 | { | |
4380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4381 | result = (int)wxCaret_GetBlinkTime(); | |
4382 | ||
4383 | wxPyEndAllowThreads(__tstate); | |
4384 | if (PyErr_Occurred()) SWIG_fail; | |
4385 | } | |
4386 | resultobj = PyInt_FromLong((long)result); | |
4387 | return resultobj; | |
4388 | fail: | |
4389 | return NULL; | |
4390 | } | |
4391 | ||
4392 | ||
4393 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4394 | PyObject *resultobj; | |
4395 | int arg1 ; | |
4396 | char *kwnames[] = { | |
4397 | (char *) "milliseconds", NULL | |
4398 | }; | |
4399 | ||
4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Caret_SetBlinkTime",kwnames,&arg1)) goto fail; | |
4401 | { | |
4402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4403 | wxCaret_SetBlinkTime(arg1); | |
4404 | ||
4405 | wxPyEndAllowThreads(__tstate); | |
4406 | if (PyErr_Occurred()) SWIG_fail; | |
4407 | } | |
4408 | Py_INCREF(Py_None); resultobj = Py_None; | |
4409 | return resultobj; | |
4410 | fail: | |
4411 | return NULL; | |
4412 | } | |
4413 | ||
4414 | ||
4415 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4416 | PyObject *resultobj; | |
4417 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4418 | wxBusyCursor *result; | |
4419 | PyObject * obj0 = 0 ; | |
4420 | char *kwnames[] = { | |
4421 | (char *) "cursor", NULL | |
4422 | }; | |
4423 | ||
4424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4425 | if (obj0) { | |
4426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4427 | } | |
4428 | { | |
4429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4430 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4431 | ||
4432 | wxPyEndAllowThreads(__tstate); | |
4433 | if (PyErr_Occurred()) SWIG_fail; | |
4434 | } | |
4435 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4436 | return resultobj; | |
4437 | fail: | |
4438 | return NULL; | |
4439 | } | |
4440 | ||
4441 | ||
4442 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4443 | PyObject *resultobj; | |
4444 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4445 | PyObject * obj0 = 0 ; | |
4446 | char *kwnames[] = { | |
4447 | (char *) "self", NULL | |
4448 | }; | |
4449 | ||
4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4452 | { | |
4453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4454 | delete arg1; | |
4455 | ||
4456 | wxPyEndAllowThreads(__tstate); | |
4457 | if (PyErr_Occurred()) SWIG_fail; | |
4458 | } | |
4459 | Py_INCREF(Py_None); resultobj = Py_None; | |
4460 | return resultobj; | |
4461 | fail: | |
4462 | return NULL; | |
4463 | } | |
4464 | ||
4465 | ||
4466 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4467 | PyObject *obj; | |
4468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4469 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4470 | Py_INCREF(obj); | |
4471 | return Py_BuildValue((char *)""); | |
4472 | } | |
4473 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4474 | PyObject *resultobj; | |
4475 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4476 | wxWindowDisabler *result; | |
4477 | PyObject * obj0 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "winToSkip", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4483 | if (obj0) { | |
4484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4485 | } | |
4486 | { | |
4487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4488 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4489 | ||
4490 | wxPyEndAllowThreads(__tstate); | |
4491 | if (PyErr_Occurred()) SWIG_fail; | |
4492 | } | |
4493 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4494 | return resultobj; | |
4495 | fail: | |
4496 | return NULL; | |
4497 | } | |
4498 | ||
4499 | ||
4500 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4501 | PyObject *resultobj; | |
4502 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4503 | PyObject * obj0 = 0 ; | |
4504 | char *kwnames[] = { | |
4505 | (char *) "self", NULL | |
4506 | }; | |
4507 | ||
4508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4510 | { | |
4511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4512 | delete arg1; | |
4513 | ||
4514 | wxPyEndAllowThreads(__tstate); | |
4515 | if (PyErr_Occurred()) SWIG_fail; | |
4516 | } | |
4517 | Py_INCREF(Py_None); resultobj = Py_None; | |
4518 | return resultobj; | |
4519 | fail: | |
4520 | return NULL; | |
4521 | } | |
4522 | ||
4523 | ||
4524 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4525 | PyObject *obj; | |
4526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4527 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4528 | Py_INCREF(obj); | |
4529 | return Py_BuildValue((char *)""); | |
4530 | } | |
4531 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4532 | PyObject *resultobj; | |
4533 | wxString *arg1 = 0 ; | |
4534 | wxBusyInfo *result; | |
423f194a | 4535 | bool temp1 = False ; |
d14a1e28 RD |
4536 | PyObject * obj0 = 0 ; |
4537 | char *kwnames[] = { | |
4538 | (char *) "message", NULL | |
4539 | }; | |
4540 | ||
4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4542 | { | |
4543 | arg1 = wxString_in_helper(obj0); | |
4544 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4545 | temp1 = True; |
d14a1e28 RD |
4546 | } |
4547 | { | |
4548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4549 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
4550 | ||
4551 | wxPyEndAllowThreads(__tstate); | |
4552 | if (PyErr_Occurred()) SWIG_fail; | |
4553 | } | |
4554 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
4555 | { | |
4556 | if (temp1) | |
4557 | delete arg1; | |
4558 | } | |
4559 | return resultobj; | |
4560 | fail: | |
4561 | { | |
4562 | if (temp1) | |
4563 | delete arg1; | |
4564 | } | |
4565 | return NULL; | |
4566 | } | |
4567 | ||
4568 | ||
4569 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject *resultobj; | |
4571 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
4572 | PyObject * obj0 = 0 ; | |
4573 | char *kwnames[] = { | |
4574 | (char *) "self", NULL | |
4575 | }; | |
4576 | ||
4577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
4578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4579 | { | |
4580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4581 | delete arg1; | |
4582 | ||
4583 | wxPyEndAllowThreads(__tstate); | |
4584 | if (PyErr_Occurred()) SWIG_fail; | |
4585 | } | |
4586 | Py_INCREF(Py_None); resultobj = Py_None; | |
4587 | return resultobj; | |
4588 | fail: | |
4589 | return NULL; | |
4590 | } | |
4591 | ||
4592 | ||
4593 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
4594 | PyObject *obj; | |
4595 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4596 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
4597 | Py_INCREF(obj); | |
4598 | return Py_BuildValue((char *)""); | |
4599 | } | |
4600 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4601 | PyObject *resultobj; | |
4602 | wxStopWatch *result; | |
4603 | char *kwnames[] = { | |
4604 | NULL | |
4605 | }; | |
4606 | ||
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
4608 | { | |
4609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4610 | result = (wxStopWatch *)new wxStopWatch(); | |
4611 | ||
4612 | wxPyEndAllowThreads(__tstate); | |
4613 | if (PyErr_Occurred()) SWIG_fail; | |
4614 | } | |
4615 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
4616 | return resultobj; | |
4617 | fail: | |
4618 | return NULL; | |
4619 | } | |
4620 | ||
4621 | ||
4622 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4623 | PyObject *resultobj; | |
4624 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4625 | long arg2 = (long) 0 ; | |
4626 | PyObject * obj0 = 0 ; | |
4627 | char *kwnames[] = { | |
4628 | (char *) "self",(char *) "t0", NULL | |
4629 | }; | |
4630 | ||
4631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:StopWatch_Start",kwnames,&obj0,&arg2)) goto fail; | |
4632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4633 | { | |
4634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4635 | (arg1)->Start(arg2); | |
4636 | ||
4637 | wxPyEndAllowThreads(__tstate); | |
4638 | if (PyErr_Occurred()) SWIG_fail; | |
4639 | } | |
4640 | Py_INCREF(Py_None); resultobj = Py_None; | |
4641 | return resultobj; | |
4642 | fail: | |
4643 | return NULL; | |
4644 | } | |
4645 | ||
4646 | ||
4647 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4648 | PyObject *resultobj; | |
4649 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4650 | PyObject * obj0 = 0 ; | |
4651 | char *kwnames[] = { | |
4652 | (char *) "self", NULL | |
4653 | }; | |
4654 | ||
4655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
4656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4657 | { | |
4658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4659 | (arg1)->Pause(); | |
4660 | ||
4661 | wxPyEndAllowThreads(__tstate); | |
4662 | if (PyErr_Occurred()) SWIG_fail; | |
4663 | } | |
4664 | Py_INCREF(Py_None); resultobj = Py_None; | |
4665 | return resultobj; | |
4666 | fail: | |
4667 | return NULL; | |
4668 | } | |
4669 | ||
4670 | ||
4671 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4672 | PyObject *resultobj; | |
4673 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4674 | PyObject * obj0 = 0 ; | |
4675 | char *kwnames[] = { | |
4676 | (char *) "self", NULL | |
4677 | }; | |
4678 | ||
4679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
4680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4681 | { | |
4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4683 | (arg1)->Resume(); | |
4684 | ||
4685 | wxPyEndAllowThreads(__tstate); | |
4686 | if (PyErr_Occurred()) SWIG_fail; | |
4687 | } | |
4688 | Py_INCREF(Py_None); resultobj = Py_None; | |
4689 | return resultobj; | |
4690 | fail: | |
4691 | return NULL; | |
4692 | } | |
4693 | ||
4694 | ||
4695 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4696 | PyObject *resultobj; | |
4697 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4698 | long result; | |
4699 | PyObject * obj0 = 0 ; | |
4700 | char *kwnames[] = { | |
4701 | (char *) "self", NULL | |
4702 | }; | |
4703 | ||
4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
4705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4706 | { | |
4707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4708 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
4709 | ||
4710 | wxPyEndAllowThreads(__tstate); | |
4711 | if (PyErr_Occurred()) SWIG_fail; | |
4712 | } | |
4713 | resultobj = PyInt_FromLong((long)result); | |
4714 | return resultobj; | |
4715 | fail: | |
4716 | return NULL; | |
4717 | } | |
4718 | ||
4719 | ||
4720 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
4721 | PyObject *obj; | |
4722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4723 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
4724 | Py_INCREF(obj); | |
4725 | return Py_BuildValue((char *)""); | |
4726 | } | |
4727 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4728 | PyObject *resultobj; | |
4729 | int arg1 = (int) 9 ; | |
4730 | wxFileHistory *result; | |
4731 | char *kwnames[] = { | |
4732 | (char *) "maxFiles", NULL | |
4733 | }; | |
4734 | ||
4735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_FileHistory",kwnames,&arg1)) goto fail; | |
4736 | { | |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
4742 | } | |
4743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
4744 | return resultobj; | |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject *resultobj; | |
4752 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4753 | PyObject * obj0 = 0 ; | |
4754 | char *kwnames[] = { | |
4755 | (char *) "self", NULL | |
4756 | }; | |
4757 | ||
4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
4759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4760 | { | |
4761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4762 | delete arg1; | |
4763 | ||
4764 | wxPyEndAllowThreads(__tstate); | |
4765 | if (PyErr_Occurred()) SWIG_fail; | |
4766 | } | |
4767 | Py_INCREF(Py_None); resultobj = Py_None; | |
4768 | return resultobj; | |
4769 | fail: | |
4770 | return NULL; | |
4771 | } | |
4772 | ||
4773 | ||
4774 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4775 | PyObject *resultobj; | |
4776 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4777 | wxString *arg2 = 0 ; | |
423f194a | 4778 | bool temp2 = False ; |
d14a1e28 RD |
4779 | PyObject * obj0 = 0 ; |
4780 | PyObject * obj1 = 0 ; | |
4781 | char *kwnames[] = { | |
4782 | (char *) "self",(char *) "file", NULL | |
4783 | }; | |
4784 | ||
4785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
4786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4787 | { | |
4788 | arg2 = wxString_in_helper(obj1); | |
4789 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4790 | temp2 = True; |
d14a1e28 RD |
4791 | } |
4792 | { | |
4793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4794 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
4795 | ||
4796 | wxPyEndAllowThreads(__tstate); | |
4797 | if (PyErr_Occurred()) SWIG_fail; | |
4798 | } | |
4799 | Py_INCREF(Py_None); resultobj = Py_None; | |
4800 | { | |
4801 | if (temp2) | |
4802 | delete arg2; | |
4803 | } | |
4804 | return resultobj; | |
4805 | fail: | |
4806 | { | |
4807 | if (temp2) | |
4808 | delete arg2; | |
4809 | } | |
4810 | return NULL; | |
4811 | } | |
4812 | ||
4813 | ||
4814 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4815 | PyObject *resultobj; | |
4816 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4817 | int arg2 ; | |
4818 | PyObject * obj0 = 0 ; | |
4819 | char *kwnames[] = { | |
4820 | (char *) "self",(char *) "i", NULL | |
4821 | }; | |
4822 | ||
4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&arg2)) goto fail; | |
4824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4825 | { | |
4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4827 | (arg1)->RemoveFileFromHistory(arg2); | |
4828 | ||
4829 | wxPyEndAllowThreads(__tstate); | |
4830 | if (PyErr_Occurred()) SWIG_fail; | |
4831 | } | |
4832 | Py_INCREF(Py_None); resultobj = Py_None; | |
4833 | return resultobj; | |
4834 | fail: | |
4835 | return NULL; | |
4836 | } | |
4837 | ||
4838 | ||
4839 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4840 | PyObject *resultobj; | |
4841 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4842 | int result; | |
4843 | PyObject * obj0 = 0 ; | |
4844 | char *kwnames[] = { | |
4845 | (char *) "self", NULL | |
4846 | }; | |
4847 | ||
4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
4849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4850 | { | |
4851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4852 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
4853 | ||
4854 | wxPyEndAllowThreads(__tstate); | |
4855 | if (PyErr_Occurred()) SWIG_fail; | |
4856 | } | |
4857 | resultobj = PyInt_FromLong((long)result); | |
4858 | return resultobj; | |
4859 | fail: | |
4860 | return NULL; | |
4861 | } | |
4862 | ||
4863 | ||
4864 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4865 | PyObject *resultobj; | |
4866 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4867 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4868 | PyObject * obj0 = 0 ; | |
4869 | PyObject * obj1 = 0 ; | |
4870 | char *kwnames[] = { | |
4871 | (char *) "self",(char *) "menu", NULL | |
4872 | }; | |
4873 | ||
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
4875 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4876 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4877 | { | |
4878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4879 | (arg1)->UseMenu(arg2); | |
4880 | ||
4881 | wxPyEndAllowThreads(__tstate); | |
4882 | if (PyErr_Occurred()) SWIG_fail; | |
4883 | } | |
4884 | Py_INCREF(Py_None); resultobj = Py_None; | |
4885 | return resultobj; | |
4886 | fail: | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
4891 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject *resultobj; | |
4893 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4894 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | PyObject * obj1 = 0 ; | |
4897 | char *kwnames[] = { | |
4898 | (char *) "self",(char *) "menu", NULL | |
4899 | }; | |
4900 | ||
4901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
4902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4903 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4904 | { | |
4905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4906 | (arg1)->RemoveMenu(arg2); | |
4907 | ||
4908 | wxPyEndAllowThreads(__tstate); | |
4909 | if (PyErr_Occurred()) SWIG_fail; | |
4910 | } | |
4911 | Py_INCREF(Py_None); resultobj = Py_None; | |
4912 | return resultobj; | |
4913 | fail: | |
4914 | return NULL; | |
4915 | } | |
4916 | ||
4917 | ||
4918 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4919 | PyObject *resultobj; | |
4920 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4921 | wxConfigBase *arg2 = 0 ; | |
4922 | PyObject * obj0 = 0 ; | |
4923 | PyObject * obj1 = 0 ; | |
4924 | char *kwnames[] = { | |
4925 | (char *) "self",(char *) "config", NULL | |
4926 | }; | |
4927 | ||
4928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
4929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4931 | if (arg2 == NULL) { | |
4932 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4933 | } | |
4934 | { | |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | (arg1)->Load(*arg2); | |
4937 | ||
4938 | wxPyEndAllowThreads(__tstate); | |
4939 | if (PyErr_Occurred()) SWIG_fail; | |
4940 | } | |
4941 | Py_INCREF(Py_None); resultobj = Py_None; | |
4942 | return resultobj; | |
4943 | fail: | |
4944 | return NULL; | |
4945 | } | |
4946 | ||
4947 | ||
4948 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4949 | PyObject *resultobj; | |
4950 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4951 | wxConfigBase *arg2 = 0 ; | |
4952 | PyObject * obj0 = 0 ; | |
4953 | PyObject * obj1 = 0 ; | |
4954 | char *kwnames[] = { | |
4955 | (char *) "self",(char *) "config", NULL | |
4956 | }; | |
4957 | ||
4958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
4959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4960 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4961 | if (arg2 == NULL) { | |
4962 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4963 | } | |
4964 | { | |
4965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4966 | (arg1)->Save(*arg2); | |
4967 | ||
4968 | wxPyEndAllowThreads(__tstate); | |
4969 | if (PyErr_Occurred()) SWIG_fail; | |
4970 | } | |
4971 | Py_INCREF(Py_None); resultobj = Py_None; | |
4972 | return resultobj; | |
4973 | fail: | |
4974 | return NULL; | |
4975 | } | |
4976 | ||
4977 | ||
4978 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4979 | PyObject *resultobj; | |
4980 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4981 | PyObject * obj0 = 0 ; | |
4982 | char *kwnames[] = { | |
4983 | (char *) "self", NULL | |
4984 | }; | |
4985 | ||
4986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
4987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4988 | { | |
4989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4990 | (arg1)->AddFilesToMenu(); | |
4991 | ||
4992 | wxPyEndAllowThreads(__tstate); | |
4993 | if (PyErr_Occurred()) SWIG_fail; | |
4994 | } | |
4995 | Py_INCREF(Py_None); resultobj = Py_None; | |
4996 | return resultobj; | |
4997 | fail: | |
4998 | return NULL; | |
4999 | } | |
5000 | ||
5001 | ||
5002 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5003 | PyObject *resultobj; | |
5004 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5005 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5006 | PyObject * obj0 = 0 ; | |
5007 | PyObject * obj1 = 0 ; | |
5008 | char *kwnames[] = { | |
5009 | (char *) "self",(char *) "menu", NULL | |
5010 | }; | |
5011 | ||
5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5014 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5015 | { | |
5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5017 | (arg1)->AddFilesToMenu(arg2); | |
5018 | ||
5019 | wxPyEndAllowThreads(__tstate); | |
5020 | if (PyErr_Occurred()) SWIG_fail; | |
5021 | } | |
5022 | Py_INCREF(Py_None); resultobj = Py_None; | |
5023 | return resultobj; | |
5024 | fail: | |
5025 | return NULL; | |
5026 | } | |
5027 | ||
5028 | ||
5029 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5030 | PyObject *resultobj; | |
5031 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5032 | int arg2 ; | |
5033 | wxString result; | |
5034 | PyObject * obj0 = 0 ; | |
5035 | char *kwnames[] = { | |
5036 | (char *) "self",(char *) "i", NULL | |
5037 | }; | |
5038 | ||
5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_GetHistoryFile",kwnames,&obj0,&arg2)) goto fail; | |
5040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5041 | { | |
5042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5043 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5044 | ||
5045 | wxPyEndAllowThreads(__tstate); | |
5046 | if (PyErr_Occurred()) SWIG_fail; | |
5047 | } | |
5048 | { | |
5049 | #if wxUSE_UNICODE | |
5050 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5051 | #else | |
5052 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5053 | #endif | |
5054 | } | |
5055 | return resultobj; | |
5056 | fail: | |
5057 | return NULL; | |
5058 | } | |
5059 | ||
5060 | ||
5061 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5062 | PyObject *resultobj; | |
5063 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5064 | int result; | |
5065 | PyObject * obj0 = 0 ; | |
5066 | char *kwnames[] = { | |
5067 | (char *) "self", NULL | |
5068 | }; | |
5069 | ||
5070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5072 | { | |
5073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5074 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5075 | ||
5076 | wxPyEndAllowThreads(__tstate); | |
5077 | if (PyErr_Occurred()) SWIG_fail; | |
5078 | } | |
5079 | resultobj = PyInt_FromLong((long)result); | |
5080 | return resultobj; | |
5081 | fail: | |
5082 | return NULL; | |
5083 | } | |
5084 | ||
5085 | ||
5086 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5087 | PyObject *obj; | |
5088 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5089 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5090 | Py_INCREF(obj); | |
5091 | return Py_BuildValue((char *)""); | |
5092 | } | |
5093 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5094 | PyObject *resultobj; | |
5095 | wxString *arg1 = 0 ; | |
5096 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5097 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5098 | wxSingleInstanceChecker *result; | |
423f194a RD |
5099 | bool temp1 = False ; |
5100 | bool temp2 = False ; | |
d14a1e28 RD |
5101 | PyObject * obj0 = 0 ; |
5102 | PyObject * obj1 = 0 ; | |
5103 | char *kwnames[] = { | |
5104 | (char *) "name",(char *) "path", NULL | |
5105 | }; | |
5106 | ||
5107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5108 | { | |
5109 | arg1 = wxString_in_helper(obj0); | |
5110 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5111 | temp1 = True; |
d14a1e28 RD |
5112 | } |
5113 | if (obj1) { | |
5114 | { | |
5115 | arg2 = wxString_in_helper(obj1); | |
5116 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5117 | temp2 = True; |
d14a1e28 RD |
5118 | } |
5119 | } | |
5120 | { | |
5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5122 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5123 | ||
5124 | wxPyEndAllowThreads(__tstate); | |
5125 | if (PyErr_Occurred()) SWIG_fail; | |
5126 | } | |
5127 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5128 | { | |
5129 | if (temp1) | |
5130 | delete arg1; | |
5131 | } | |
5132 | { | |
5133 | if (temp2) | |
5134 | delete arg2; | |
5135 | } | |
5136 | return resultobj; | |
5137 | fail: | |
5138 | { | |
5139 | if (temp1) | |
5140 | delete arg1; | |
5141 | } | |
5142 | { | |
5143 | if (temp2) | |
5144 | delete arg2; | |
5145 | } | |
5146 | return NULL; | |
5147 | } | |
5148 | ||
5149 | ||
5150 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5151 | PyObject *resultobj; | |
5152 | wxSingleInstanceChecker *result; | |
5153 | char *kwnames[] = { | |
5154 | NULL | |
5155 | }; | |
5156 | ||
5157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5158 | { | |
5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5160 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5161 | ||
5162 | wxPyEndAllowThreads(__tstate); | |
5163 | if (PyErr_Occurred()) SWIG_fail; | |
5164 | } | |
5165 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5166 | return resultobj; | |
5167 | fail: | |
5168 | return NULL; | |
5169 | } | |
5170 | ||
5171 | ||
5172 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5173 | PyObject *resultobj; | |
5174 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5175 | PyObject * obj0 = 0 ; | |
5176 | char *kwnames[] = { | |
5177 | (char *) "self", NULL | |
5178 | }; | |
5179 | ||
5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5182 | { | |
5183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5184 | delete arg1; | |
5185 | ||
5186 | wxPyEndAllowThreads(__tstate); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
5189 | Py_INCREF(Py_None); resultobj = Py_None; | |
5190 | return resultobj; | |
5191 | fail: | |
5192 | return NULL; | |
5193 | } | |
5194 | ||
5195 | ||
5196 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5197 | PyObject *resultobj; | |
5198 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5199 | wxString *arg2 = 0 ; | |
5200 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5201 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5202 | bool result; | |
423f194a RD |
5203 | bool temp2 = False ; |
5204 | bool temp3 = False ; | |
d14a1e28 RD |
5205 | PyObject * obj0 = 0 ; |
5206 | PyObject * obj1 = 0 ; | |
5207 | PyObject * obj2 = 0 ; | |
5208 | char *kwnames[] = { | |
5209 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5210 | }; | |
5211 | ||
5212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5214 | { | |
5215 | arg2 = wxString_in_helper(obj1); | |
5216 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5217 | temp2 = True; |
d14a1e28 RD |
5218 | } |
5219 | if (obj2) { | |
5220 | { | |
5221 | arg3 = wxString_in_helper(obj2); | |
5222 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5223 | temp3 = True; |
d14a1e28 RD |
5224 | } |
5225 | } | |
5226 | { | |
5227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5228 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5229 | ||
5230 | wxPyEndAllowThreads(__tstate); | |
5231 | if (PyErr_Occurred()) SWIG_fail; | |
5232 | } | |
5233 | resultobj = PyInt_FromLong((long)result); | |
5234 | { | |
5235 | if (temp2) | |
5236 | delete arg2; | |
5237 | } | |
5238 | { | |
5239 | if (temp3) | |
5240 | delete arg3; | |
5241 | } | |
5242 | return resultobj; | |
5243 | fail: | |
5244 | { | |
5245 | if (temp2) | |
5246 | delete arg2; | |
5247 | } | |
5248 | { | |
5249 | if (temp3) | |
5250 | delete arg3; | |
5251 | } | |
5252 | return NULL; | |
5253 | } | |
5254 | ||
5255 | ||
5256 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject *resultobj; | |
5258 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5259 | bool result; | |
5260 | PyObject * obj0 = 0 ; | |
5261 | char *kwnames[] = { | |
5262 | (char *) "self", NULL | |
5263 | }; | |
5264 | ||
5265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5267 | { | |
5268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5269 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5270 | ||
5271 | wxPyEndAllowThreads(__tstate); | |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
5273 | } | |
5274 | resultobj = PyInt_FromLong((long)result); | |
5275 | return resultobj; | |
5276 | fail: | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
5281 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5282 | PyObject *obj; | |
5283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5284 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5285 | Py_INCREF(obj); | |
5286 | return Py_BuildValue((char *)""); | |
5287 | } | |
5288 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject *resultobj; | |
5290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5291 | wxDC *arg2 = 0 ; | |
5292 | int arg3 ; | |
5293 | PyObject * obj0 = 0 ; | |
5294 | PyObject * obj1 = 0 ; | |
5295 | char *kwnames[] = { | |
5296 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5297 | }; | |
5298 | ||
5299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DrawWindowOnDC",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5300 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5301 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5302 | if (arg2 == NULL) { | |
5303 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5304 | } | |
5305 | { | |
5306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5307 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5308 | ||
5309 | wxPyEndAllowThreads(__tstate); | |
5310 | if (PyErr_Occurred()) SWIG_fail; | |
5311 | } | |
5312 | Py_INCREF(Py_None); resultobj = Py_None; | |
5313 | return resultobj; | |
5314 | fail: | |
5315 | return NULL; | |
5316 | } | |
5317 | ||
5318 | ||
5319 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5320 | PyObject *resultobj; | |
5321 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5322 | PyObject * obj0 = 0 ; | |
5323 | char *kwnames[] = { | |
5324 | (char *) "self", NULL | |
5325 | }; | |
5326 | ||
5327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5329 | { | |
5330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5331 | delete arg1; | |
5332 | ||
5333 | wxPyEndAllowThreads(__tstate); | |
5334 | if (PyErr_Occurred()) SWIG_fail; | |
5335 | } | |
5336 | Py_INCREF(Py_None); resultobj = Py_None; | |
5337 | return resultobj; | |
5338 | fail: | |
5339 | return NULL; | |
5340 | } | |
5341 | ||
5342 | ||
5343 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5344 | PyObject *resultobj; | |
5345 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5346 | wxString result; | |
5347 | PyObject * obj0 = 0 ; | |
5348 | char *kwnames[] = { | |
5349 | (char *) "self", NULL | |
5350 | }; | |
5351 | ||
5352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5354 | { | |
5355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5356 | result = (arg1)->GetTip(); | |
5357 | ||
5358 | wxPyEndAllowThreads(__tstate); | |
5359 | if (PyErr_Occurred()) SWIG_fail; | |
5360 | } | |
5361 | { | |
5362 | #if wxUSE_UNICODE | |
5363 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5364 | #else | |
5365 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5366 | #endif | |
5367 | } | |
5368 | return resultobj; | |
5369 | fail: | |
5370 | return NULL; | |
5371 | } | |
5372 | ||
5373 | ||
5374 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5375 | PyObject *resultobj; | |
5376 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5377 | size_t result; | |
5378 | PyObject * obj0 = 0 ; | |
5379 | char *kwnames[] = { | |
5380 | (char *) "self", NULL | |
5381 | }; | |
5382 | ||
5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5385 | { | |
5386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5387 | result = (size_t)(arg1)->GetCurrentTip(); | |
5388 | ||
5389 | wxPyEndAllowThreads(__tstate); | |
5390 | if (PyErr_Occurred()) SWIG_fail; | |
5391 | } | |
5392 | resultobj = PyInt_FromLong((long)result); | |
5393 | return resultobj; | |
5394 | fail: | |
5395 | return NULL; | |
5396 | } | |
5397 | ||
5398 | ||
5399 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5400 | PyObject *resultobj; | |
5401 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5402 | wxString *arg2 = 0 ; | |
5403 | wxString result; | |
423f194a | 5404 | bool temp2 = False ; |
d14a1e28 RD |
5405 | PyObject * obj0 = 0 ; |
5406 | PyObject * obj1 = 0 ; | |
5407 | char *kwnames[] = { | |
5408 | (char *) "self",(char *) "tip", NULL | |
5409 | }; | |
5410 | ||
5411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5413 | { | |
5414 | arg2 = wxString_in_helper(obj1); | |
5415 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5416 | temp2 = True; |
d14a1e28 RD |
5417 | } |
5418 | { | |
5419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5420 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5421 | ||
5422 | wxPyEndAllowThreads(__tstate); | |
5423 | if (PyErr_Occurred()) SWIG_fail; | |
5424 | } | |
5425 | { | |
5426 | #if wxUSE_UNICODE | |
5427 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5428 | #else | |
5429 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5430 | #endif | |
5431 | } | |
5432 | { | |
5433 | if (temp2) | |
5434 | delete arg2; | |
5435 | } | |
5436 | return resultobj; | |
5437 | fail: | |
5438 | { | |
5439 | if (temp2) | |
5440 | delete arg2; | |
5441 | } | |
5442 | return NULL; | |
5443 | } | |
5444 | ||
5445 | ||
5446 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5447 | PyObject *obj; | |
5448 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5449 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5450 | Py_INCREF(obj); | |
5451 | return Py_BuildValue((char *)""); | |
5452 | } | |
5453 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5454 | PyObject *resultobj; | |
5455 | size_t arg1 ; | |
5456 | wxPyTipProvider *result; | |
5457 | PyObject * obj0 = 0 ; | |
5458 | char *kwnames[] = { | |
5459 | (char *) "currentTip", NULL | |
5460 | }; | |
5461 | ||
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
5463 | arg1 = (size_t) PyInt_AsLong(obj0); | |
5464 | if (PyErr_Occurred()) SWIG_fail; | |
5465 | { | |
5466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5467 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5468 | ||
5469 | wxPyEndAllowThreads(__tstate); | |
5470 | if (PyErr_Occurred()) SWIG_fail; | |
5471 | } | |
5472 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5473 | return resultobj; | |
5474 | fail: | |
5475 | return NULL; | |
5476 | } | |
5477 | ||
5478 | ||
5479 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5480 | PyObject *resultobj; | |
5481 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5482 | PyObject *arg2 = (PyObject *) 0 ; | |
5483 | PyObject *arg3 = (PyObject *) 0 ; | |
5484 | PyObject * obj0 = 0 ; | |
5485 | PyObject * obj1 = 0 ; | |
5486 | PyObject * obj2 = 0 ; | |
5487 | char *kwnames[] = { | |
5488 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5489 | }; | |
5490 | ||
5491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5493 | arg2 = obj1; | |
5494 | arg3 = obj2; | |
5495 | { | |
5496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5497 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5498 | ||
5499 | wxPyEndAllowThreads(__tstate); | |
5500 | if (PyErr_Occurred()) SWIG_fail; | |
5501 | } | |
5502 | Py_INCREF(Py_None); resultobj = Py_None; | |
5503 | return resultobj; | |
5504 | fail: | |
5505 | return NULL; | |
5506 | } | |
5507 | ||
5508 | ||
5509 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5510 | PyObject *obj; | |
5511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5512 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5513 | Py_INCREF(obj); | |
5514 | return Py_BuildValue((char *)""); | |
5515 | } | |
5516 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5517 | PyObject *resultobj; | |
5518 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5519 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
423f194a | 5520 | bool arg3 = (bool) True ; |
d14a1e28 RD |
5521 | bool result; |
5522 | PyObject * obj0 = 0 ; | |
5523 | PyObject * obj1 = 0 ; | |
5524 | PyObject * obj2 = 0 ; | |
5525 | char *kwnames[] = { | |
5526 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
5527 | }; | |
5528 | ||
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5531 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5532 | if (obj2) { | |
5533 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5534 | if (PyErr_Occurred()) SWIG_fail; | |
5535 | } | |
5536 | { | |
5537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5538 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
5539 | ||
5540 | wxPyEndAllowThreads(__tstate); | |
5541 | if (PyErr_Occurred()) SWIG_fail; | |
5542 | } | |
5543 | resultobj = PyInt_FromLong((long)result); | |
5544 | return resultobj; | |
5545 | fail: | |
5546 | return NULL; | |
5547 | } | |
5548 | ||
5549 | ||
5550 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5551 | PyObject *resultobj; | |
5552 | wxString *arg1 = 0 ; | |
5553 | size_t arg2 ; | |
5554 | wxTipProvider *result; | |
423f194a | 5555 | bool temp1 = False ; |
d14a1e28 RD |
5556 | PyObject * obj0 = 0 ; |
5557 | PyObject * obj1 = 0 ; | |
5558 | char *kwnames[] = { | |
5559 | (char *) "filename",(char *) "currentTip", NULL | |
5560 | }; | |
5561 | ||
5562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
5563 | { | |
5564 | arg1 = wxString_in_helper(obj0); | |
5565 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5566 | temp1 = True; |
d14a1e28 RD |
5567 | } |
5568 | arg2 = (size_t) PyInt_AsLong(obj1); | |
5569 | if (PyErr_Occurred()) SWIG_fail; | |
5570 | { | |
5571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5572 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
5573 | ||
5574 | wxPyEndAllowThreads(__tstate); | |
5575 | if (PyErr_Occurred()) SWIG_fail; | |
5576 | } | |
5577 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
5578 | { | |
5579 | if (temp1) | |
5580 | delete arg1; | |
5581 | } | |
5582 | return resultobj; | |
5583 | fail: | |
5584 | { | |
5585 | if (temp1) | |
5586 | delete arg1; | |
5587 | } | |
5588 | return NULL; | |
5589 | } | |
5590 | ||
5591 | ||
5592 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5593 | PyObject *resultobj; | |
5594 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
5595 | int arg2 = (int) -1 ; | |
5596 | wxPyTimer *result; | |
5597 | PyObject * obj0 = 0 ; | |
5598 | char *kwnames[] = { | |
5599 | (char *) "owner",(char *) "id", NULL | |
5600 | }; | |
5601 | ||
5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Timer",kwnames,&obj0,&arg2)) goto fail; | |
5603 | if (obj0) { | |
5604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5605 | } | |
5606 | { | |
5607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5608 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
5609 | ||
5610 | wxPyEndAllowThreads(__tstate); | |
5611 | if (PyErr_Occurred()) SWIG_fail; | |
5612 | } | |
5613 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
5614 | return resultobj; | |
5615 | fail: | |
5616 | return NULL; | |
5617 | } | |
5618 | ||
5619 | ||
5620 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5621 | PyObject *resultobj; | |
5622 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5623 | PyObject * obj0 = 0 ; | |
5624 | char *kwnames[] = { | |
5625 | (char *) "self", NULL | |
5626 | }; | |
5627 | ||
5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
5629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5630 | { | |
5631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5632 | delete arg1; | |
5633 | ||
5634 | wxPyEndAllowThreads(__tstate); | |
5635 | if (PyErr_Occurred()) SWIG_fail; | |
5636 | } | |
5637 | Py_INCREF(Py_None); resultobj = Py_None; | |
5638 | return resultobj; | |
5639 | fail: | |
5640 | return NULL; | |
5641 | } | |
5642 | ||
5643 | ||
44127b65 RD |
5644 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
5645 | PyObject *resultobj; | |
5646 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5647 | PyObject *arg2 = (PyObject *) 0 ; | |
5648 | PyObject *arg3 = (PyObject *) 0 ; | |
5649 | PyObject * obj0 = 0 ; | |
5650 | PyObject * obj1 = 0 ; | |
5651 | PyObject * obj2 = 0 ; | |
5652 | char *kwnames[] = { | |
5653 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5654 | }; | |
5655 | ||
5656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5658 | arg2 = obj1; | |
5659 | arg3 = obj2; | |
5660 | { | |
5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5662 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5663 | ||
5664 | wxPyEndAllowThreads(__tstate); | |
5665 | if (PyErr_Occurred()) SWIG_fail; | |
5666 | } | |
5667 | Py_INCREF(Py_None); resultobj = Py_None; | |
5668 | return resultobj; | |
5669 | fail: | |
5670 | return NULL; | |
5671 | } | |
5672 | ||
5673 | ||
d14a1e28 RD |
5674 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
5675 | PyObject *resultobj; | |
5676 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5677 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
5678 | int arg3 = (int) -1 ; | |
5679 | PyObject * obj0 = 0 ; | |
5680 | PyObject * obj1 = 0 ; | |
5681 | char *kwnames[] = { | |
5682 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
5683 | }; | |
5684 | ||
5685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Timer_SetOwner",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5687 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5688 | { | |
5689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5690 | (arg1)->SetOwner(arg2,arg3); | |
5691 | ||
5692 | wxPyEndAllowThreads(__tstate); | |
5693 | if (PyErr_Occurred()) SWIG_fail; | |
5694 | } | |
5695 | Py_INCREF(Py_None); resultobj = Py_None; | |
5696 | return resultobj; | |
5697 | fail: | |
5698 | return NULL; | |
5699 | } | |
5700 | ||
5701 | ||
5702 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5703 | PyObject *resultobj; | |
5704 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5705 | int arg2 = (int) -1 ; | |
423f194a | 5706 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5707 | bool result; |
5708 | PyObject * obj0 = 0 ; | |
5709 | PyObject * obj2 = 0 ; | |
5710 | char *kwnames[] = { | |
5711 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
5712 | }; | |
5713 | ||
5714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Timer_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
5715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5716 | if (obj2) { | |
5717 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5718 | if (PyErr_Occurred()) SWIG_fail; | |
5719 | } | |
5720 | { | |
5721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5722 | result = (bool)(arg1)->Start(arg2,arg3); | |
5723 | ||
5724 | wxPyEndAllowThreads(__tstate); | |
5725 | if (PyErr_Occurred()) SWIG_fail; | |
5726 | } | |
5727 | resultobj = PyInt_FromLong((long)result); | |
5728 | return resultobj; | |
5729 | fail: | |
5730 | return NULL; | |
5731 | } | |
5732 | ||
5733 | ||
5734 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5735 | PyObject *resultobj; | |
5736 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5737 | PyObject * obj0 = 0 ; | |
5738 | char *kwnames[] = { | |
5739 | (char *) "self", NULL | |
5740 | }; | |
5741 | ||
5742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
5743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5744 | { | |
5745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5746 | (arg1)->Stop(); | |
5747 | ||
5748 | wxPyEndAllowThreads(__tstate); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
5750 | } | |
5751 | Py_INCREF(Py_None); resultobj = Py_None; | |
5752 | return resultobj; | |
5753 | fail: | |
5754 | return NULL; | |
5755 | } | |
5756 | ||
5757 | ||
d14a1e28 RD |
5758 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
5759 | PyObject *resultobj; | |
5760 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5761 | bool result; | |
5762 | PyObject * obj0 = 0 ; | |
5763 | char *kwnames[] = { | |
5764 | (char *) "self", NULL | |
5765 | }; | |
5766 | ||
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
5768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5769 | { | |
5770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5771 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
5772 | ||
5773 | wxPyEndAllowThreads(__tstate); | |
5774 | if (PyErr_Occurred()) SWIG_fail; | |
5775 | } | |
5776 | resultobj = PyInt_FromLong((long)result); | |
5777 | return resultobj; | |
5778 | fail: | |
5779 | return NULL; | |
5780 | } | |
5781 | ||
5782 | ||
5783 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5784 | PyObject *resultobj; | |
5785 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5786 | int result; | |
5787 | PyObject * obj0 = 0 ; | |
5788 | char *kwnames[] = { | |
5789 | (char *) "self", NULL | |
5790 | }; | |
5791 | ||
5792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
5793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5794 | { | |
5795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5796 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
5797 | ||
5798 | wxPyEndAllowThreads(__tstate); | |
5799 | if (PyErr_Occurred()) SWIG_fail; | |
5800 | } | |
5801 | resultobj = PyInt_FromLong((long)result); | |
5802 | return resultobj; | |
5803 | fail: | |
5804 | return NULL; | |
5805 | } | |
5806 | ||
5807 | ||
5808 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5809 | PyObject *resultobj; | |
5810 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5811 | bool result; | |
5812 | PyObject * obj0 = 0 ; | |
5813 | char *kwnames[] = { | |
5814 | (char *) "self", NULL | |
5815 | }; | |
5816 | ||
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
5818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5819 | { | |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) SWIG_fail; | |
5825 | } | |
5826 | resultobj = PyInt_FromLong((long)result); | |
5827 | return resultobj; | |
5828 | fail: | |
5829 | return NULL; | |
5830 | } | |
5831 | ||
5832 | ||
5833 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { | |
5834 | PyObject *obj; | |
5835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5836 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
5837 | Py_INCREF(obj); | |
5838 | return Py_BuildValue((char *)""); | |
5839 | } | |
5840 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5841 | PyObject *resultobj; | |
5842 | int arg1 = (int) 0 ; | |
5843 | int arg2 = (int) 0 ; | |
5844 | wxTimerEvent *result; | |
5845 | char *kwnames[] = { | |
5846 | (char *) "timerid",(char *) "interval", NULL | |
5847 | }; | |
5848 | ||
5849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TimerEvent",kwnames,&arg1,&arg2)) goto fail; | |
5850 | { | |
5851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5852 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
5853 | ||
5854 | wxPyEndAllowThreads(__tstate); | |
5855 | if (PyErr_Occurred()) SWIG_fail; | |
5856 | } | |
5857 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
5858 | return resultobj; | |
5859 | fail: | |
5860 | return NULL; | |
5861 | } | |
5862 | ||
5863 | ||
5864 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject *resultobj; | |
5866 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
5867 | int result; | |
5868 | PyObject * obj0 = 0 ; | |
5869 | char *kwnames[] = { | |
5870 | (char *) "self", NULL | |
5871 | }; | |
5872 | ||
5873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
5874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5875 | { | |
5876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5877 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
5878 | ||
5879 | wxPyEndAllowThreads(__tstate); | |
5880 | if (PyErr_Occurred()) SWIG_fail; | |
5881 | } | |
5882 | resultobj = PyInt_FromLong((long)result); | |
5883 | return resultobj; | |
5884 | fail: | |
5885 | return NULL; | |
5886 | } | |
5887 | ||
5888 | ||
5889 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
5890 | PyObject *obj; | |
5891 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5892 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
5893 | Py_INCREF(obj); | |
5894 | return Py_BuildValue((char *)""); | |
5895 | } | |
5896 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
5897 | PyObject *resultobj; | |
5898 | wxTimer *arg1 = 0 ; | |
5899 | wxTimerRunner *result; | |
5900 | PyObject * obj0 = 0 ; | |
5901 | ||
5902 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
5903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5904 | if (arg1 == NULL) { | |
5905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5906 | } | |
5907 | { | |
5908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5909 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
5910 | ||
5911 | wxPyEndAllowThreads(__tstate); | |
5912 | if (PyErr_Occurred()) SWIG_fail; | |
5913 | } | |
5914 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
5915 | return resultobj; | |
5916 | fail: | |
5917 | return NULL; | |
5918 | } | |
5919 | ||
5920 | ||
5921 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
5922 | PyObject *resultobj; | |
5923 | wxTimer *arg1 = 0 ; | |
5924 | int arg2 ; | |
423f194a | 5925 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5926 | wxTimerRunner *result; |
5927 | PyObject * obj0 = 0 ; | |
5928 | PyObject * obj2 = 0 ; | |
5929 | ||
5930 | if(!PyArg_ParseTuple(args,(char *)"Oi|O:new_TimerRunner",&obj0,&arg2,&obj2)) goto fail; | |
5931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5932 | if (arg1 == NULL) { | |
5933 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5934 | } | |
5935 | if (obj2) { | |
5936 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5937 | if (PyErr_Occurred()) SWIG_fail; | |
5938 | } | |
5939 | { | |
5940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5941 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
5942 | ||
5943 | wxPyEndAllowThreads(__tstate); | |
5944 | if (PyErr_Occurred()) SWIG_fail; | |
5945 | } | |
5946 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
5947 | return resultobj; | |
5948 | fail: | |
5949 | return NULL; | |
5950 | } | |
5951 | ||
5952 | ||
5953 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
5954 | int argc; | |
5955 | PyObject *argv[4]; | |
5956 | int ii; | |
5957 | ||
5958 | argc = PyObject_Length(args); | |
5959 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
5960 | argv[ii] = PyTuple_GetItem(args,ii); | |
5961 | } | |
5962 | if (argc == 1) { | |
5963 | int _v; | |
5964 | { | |
5965 | void *ptr; | |
5966 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
5967 | _v = 0; | |
5968 | PyErr_Clear(); | |
5969 | } else { | |
5970 | _v = 1; | |
5971 | } | |
5972 | } | |
5973 | if (_v) { | |
5974 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
5975 | } | |
5976 | } | |
5977 | if ((argc >= 2) && (argc <= 3)) { | |
5978 | int _v; | |
5979 | { | |
5980 | void *ptr; | |
5981 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
5982 | _v = 0; | |
5983 | PyErr_Clear(); | |
5984 | } else { | |
5985 | _v = 1; | |
5986 | } | |
5987 | } | |
5988 | if (_v) { | |
5989 | { | |
5990 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
5991 | } | |
5992 | if (_v) { | |
5993 | if (argc <= 2) { | |
5994 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
5995 | } | |
5996 | { | |
5997 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
5998 | } | |
5999 | if (_v) { | |
6000 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6001 | } | |
6002 | } | |
6003 | } | |
6004 | } | |
6005 | ||
6006 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
6011 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj; | |
6013 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6014 | PyObject * obj0 = 0 ; | |
6015 | char *kwnames[] = { | |
6016 | (char *) "self", NULL | |
6017 | }; | |
6018 | ||
6019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6021 | { | |
6022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6023 | delete arg1; | |
6024 | ||
6025 | wxPyEndAllowThreads(__tstate); | |
6026 | if (PyErr_Occurred()) SWIG_fail; | |
6027 | } | |
6028 | Py_INCREF(Py_None); resultobj = Py_None; | |
6029 | return resultobj; | |
6030 | fail: | |
6031 | return NULL; | |
6032 | } | |
6033 | ||
6034 | ||
6035 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6036 | PyObject *resultobj; | |
6037 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6038 | int arg2 ; | |
423f194a | 6039 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6040 | PyObject * obj0 = 0 ; |
6041 | PyObject * obj2 = 0 ; | |
6042 | char *kwnames[] = { | |
6043 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6044 | }; | |
6045 | ||
6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:TimerRunner_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6048 | if (obj2) { | |
6049 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | } | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | (arg1)->Start(arg2,arg3); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | Py_INCREF(Py_None); resultobj = Py_None; | |
6060 | return resultobj; | |
6061 | fail: | |
6062 | return NULL; | |
6063 | } | |
6064 | ||
6065 | ||
6066 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6067 | PyObject *obj; | |
6068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6069 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6070 | Py_INCREF(obj); | |
6071 | return Py_BuildValue((char *)""); | |
6072 | } | |
6073 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6074 | PyObject *resultobj; | |
6075 | wxLog *result; | |
6076 | char *kwnames[] = { | |
6077 | NULL | |
6078 | }; | |
6079 | ||
6080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6081 | { | |
6082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6083 | result = (wxLog *)new wxLog(); | |
6084 | ||
6085 | wxPyEndAllowThreads(__tstate); | |
6086 | if (PyErr_Occurred()) SWIG_fail; | |
6087 | } | |
6088 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6089 | return resultobj; | |
6090 | fail: | |
6091 | return NULL; | |
6092 | } | |
6093 | ||
6094 | ||
6095 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6096 | PyObject *resultobj; | |
6097 | bool result; | |
6098 | char *kwnames[] = { | |
6099 | NULL | |
6100 | }; | |
6101 | ||
6102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6103 | { | |
6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6105 | result = (bool)wxLog::IsEnabled(); | |
6106 | ||
6107 | wxPyEndAllowThreads(__tstate); | |
6108 | if (PyErr_Occurred()) SWIG_fail; | |
6109 | } | |
6110 | resultobj = PyInt_FromLong((long)result); | |
6111 | return resultobj; | |
6112 | fail: | |
6113 | return NULL; | |
6114 | } | |
6115 | ||
6116 | ||
6117 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6118 | PyObject *resultobj; | |
423f194a | 6119 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6120 | bool result; |
6121 | PyObject * obj0 = 0 ; | |
6122 | char *kwnames[] = { | |
6123 | (char *) "doIt", NULL | |
6124 | }; | |
6125 | ||
6126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6127 | if (obj0) { | |
6128 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6129 | if (PyErr_Occurred()) SWIG_fail; | |
6130 | } | |
6131 | { | |
6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6133 | result = (bool)wxLog::EnableLogging(arg1); | |
6134 | ||
6135 | wxPyEndAllowThreads(__tstate); | |
6136 | if (PyErr_Occurred()) SWIG_fail; | |
6137 | } | |
6138 | resultobj = PyInt_FromLong((long)result); | |
6139 | return resultobj; | |
6140 | fail: | |
6141 | return NULL; | |
6142 | } | |
6143 | ||
6144 | ||
6145 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6146 | PyObject *resultobj; | |
6147 | wxLogLevel arg1 ; | |
6148 | wxChar *arg2 = (wxChar *) 0 ; | |
6149 | time_t arg3 ; | |
6150 | PyObject * obj0 = 0 ; | |
6151 | PyObject * obj1 = 0 ; | |
6152 | PyObject * obj2 = 0 ; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6158 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6159 | if (PyErr_Occurred()) SWIG_fail; | |
6160 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6161 | arg3 = (time_t) PyInt_AsLong(obj2); | |
6162 | if (PyErr_Occurred()) SWIG_fail; | |
6163 | { | |
6164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6165 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6166 | ||
6167 | wxPyEndAllowThreads(__tstate); | |
6168 | if (PyErr_Occurred()) SWIG_fail; | |
6169 | } | |
6170 | Py_INCREF(Py_None); resultobj = Py_None; | |
6171 | return resultobj; | |
6172 | fail: | |
6173 | return NULL; | |
6174 | } | |
6175 | ||
6176 | ||
6177 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6178 | PyObject *resultobj; | |
6179 | wxLog *arg1 = (wxLog *) 0 ; | |
6180 | PyObject * obj0 = 0 ; | |
6181 | char *kwnames[] = { | |
6182 | (char *) "self", NULL | |
6183 | }; | |
6184 | ||
6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6187 | { | |
6188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6189 | (arg1)->Flush(); | |
6190 | ||
6191 | wxPyEndAllowThreads(__tstate); | |
6192 | if (PyErr_Occurred()) SWIG_fail; | |
6193 | } | |
6194 | Py_INCREF(Py_None); resultobj = Py_None; | |
6195 | return resultobj; | |
6196 | fail: | |
6197 | return NULL; | |
6198 | } | |
6199 | ||
6200 | ||
6201 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6202 | PyObject *resultobj; | |
6203 | char *kwnames[] = { | |
6204 | NULL | |
6205 | }; | |
6206 | ||
6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6208 | { | |
6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6210 | wxLog::FlushActive(); | |
6211 | ||
6212 | wxPyEndAllowThreads(__tstate); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
6214 | } | |
6215 | Py_INCREF(Py_None); resultobj = Py_None; | |
6216 | return resultobj; | |
6217 | fail: | |
6218 | return NULL; | |
6219 | } | |
6220 | ||
6221 | ||
6222 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6223 | PyObject *resultobj; | |
6224 | wxLog *result; | |
6225 | char *kwnames[] = { | |
6226 | NULL | |
6227 | }; | |
6228 | ||
6229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6230 | { | |
6231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6232 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6233 | ||
6234 | wxPyEndAllowThreads(__tstate); | |
6235 | if (PyErr_Occurred()) SWIG_fail; | |
6236 | } | |
6237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6238 | return resultobj; | |
6239 | fail: | |
6240 | return NULL; | |
6241 | } | |
6242 | ||
6243 | ||
6244 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6245 | PyObject *resultobj; | |
6246 | wxLog *arg1 = (wxLog *) 0 ; | |
6247 | wxLog *result; | |
6248 | PyObject * obj0 = 0 ; | |
6249 | char *kwnames[] = { | |
6250 | (char *) "pLogger", NULL | |
6251 | }; | |
6252 | ||
6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6255 | { | |
6256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6257 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6258 | ||
6259 | wxPyEndAllowThreads(__tstate); | |
6260 | if (PyErr_Occurred()) SWIG_fail; | |
6261 | } | |
6262 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6263 | return resultobj; | |
6264 | fail: | |
6265 | return NULL; | |
6266 | } | |
6267 | ||
6268 | ||
6269 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject *resultobj; | |
6271 | char *kwnames[] = { | |
6272 | NULL | |
6273 | }; | |
6274 | ||
6275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6276 | { | |
6277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6278 | wxLog::Suspend(); | |
6279 | ||
6280 | wxPyEndAllowThreads(__tstate); | |
6281 | if (PyErr_Occurred()) SWIG_fail; | |
6282 | } | |
6283 | Py_INCREF(Py_None); resultobj = Py_None; | |
6284 | return resultobj; | |
6285 | fail: | |
6286 | return NULL; | |
6287 | } | |
6288 | ||
6289 | ||
6290 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6291 | PyObject *resultobj; | |
6292 | char *kwnames[] = { | |
6293 | NULL | |
6294 | }; | |
6295 | ||
6296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6297 | { | |
6298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6299 | wxLog::Resume(); | |
6300 | ||
6301 | wxPyEndAllowThreads(__tstate); | |
6302 | if (PyErr_Occurred()) SWIG_fail; | |
6303 | } | |
6304 | Py_INCREF(Py_None); resultobj = Py_None; | |
6305 | return resultobj; | |
6306 | fail: | |
6307 | return NULL; | |
6308 | } | |
6309 | ||
6310 | ||
6311 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6312 | PyObject *resultobj; | |
423f194a | 6313 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6314 | PyObject * obj0 = 0 ; |
6315 | char *kwnames[] = { | |
6316 | (char *) "bVerbose", NULL | |
6317 | }; | |
6318 | ||
6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6320 | if (obj0) { | |
6321 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6322 | if (PyErr_Occurred()) SWIG_fail; | |
6323 | } | |
6324 | { | |
6325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6326 | wxLog::SetVerbose(arg1); | |
6327 | ||
6328 | wxPyEndAllowThreads(__tstate); | |
6329 | if (PyErr_Occurred()) SWIG_fail; | |
6330 | } | |
6331 | Py_INCREF(Py_None); resultobj = Py_None; | |
6332 | return resultobj; | |
6333 | fail: | |
6334 | return NULL; | |
6335 | } | |
6336 | ||
6337 | ||
6338 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6339 | PyObject *resultobj; | |
6340 | wxLogLevel arg1 ; | |
6341 | PyObject * obj0 = 0 ; | |
6342 | char *kwnames[] = { | |
6343 | (char *) "logLevel", NULL | |
6344 | }; | |
6345 | ||
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
6347 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | { | |
6350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6351 | wxLog::SetLogLevel(arg1); | |
6352 | ||
6353 | wxPyEndAllowThreads(__tstate); | |
6354 | if (PyErr_Occurred()) SWIG_fail; | |
6355 | } | |
6356 | Py_INCREF(Py_None); resultobj = Py_None; | |
6357 | return resultobj; | |
6358 | fail: | |
6359 | return NULL; | |
6360 | } | |
6361 | ||
6362 | ||
6363 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6364 | PyObject *resultobj; | |
6365 | char *kwnames[] = { | |
6366 | NULL | |
6367 | }; | |
6368 | ||
6369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6370 | { | |
6371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6372 | wxLog::DontCreateOnDemand(); | |
6373 | ||
6374 | wxPyEndAllowThreads(__tstate); | |
6375 | if (PyErr_Occurred()) SWIG_fail; | |
6376 | } | |
6377 | Py_INCREF(Py_None); resultobj = Py_None; | |
6378 | return resultobj; | |
6379 | fail: | |
6380 | return NULL; | |
6381 | } | |
6382 | ||
6383 | ||
6384 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6385 | PyObject *resultobj; | |
6386 | wxTraceMask arg1 ; | |
6387 | PyObject * obj0 = 0 ; | |
6388 | char *kwnames[] = { | |
6389 | (char *) "ulMask", NULL | |
6390 | }; | |
6391 | ||
6392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
6393 | arg1 = (wxTraceMask) PyInt_AsLong(obj0); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | { | |
6396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6397 | wxLog::SetTraceMask(arg1); | |
6398 | ||
6399 | wxPyEndAllowThreads(__tstate); | |
6400 | if (PyErr_Occurred()) SWIG_fail; | |
6401 | } | |
6402 | Py_INCREF(Py_None); resultobj = Py_None; | |
6403 | return resultobj; | |
6404 | fail: | |
6405 | return NULL; | |
6406 | } | |
6407 | ||
6408 | ||
6409 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6410 | PyObject *resultobj; | |
6411 | wxString *arg1 = 0 ; | |
423f194a | 6412 | bool temp1 = False ; |
d14a1e28 RD |
6413 | PyObject * obj0 = 0 ; |
6414 | char *kwnames[] = { | |
6415 | (char *) "str", NULL | |
6416 | }; | |
6417 | ||
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
6419 | { | |
6420 | arg1 = wxString_in_helper(obj0); | |
6421 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6422 | temp1 = True; |
d14a1e28 RD |
6423 | } |
6424 | { | |
6425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6426 | wxLog::AddTraceMask((wxString const &)*arg1); | |
6427 | ||
6428 | wxPyEndAllowThreads(__tstate); | |
6429 | if (PyErr_Occurred()) SWIG_fail; | |
6430 | } | |
6431 | Py_INCREF(Py_None); resultobj = Py_None; | |
6432 | { | |
6433 | if (temp1) | |
6434 | delete arg1; | |
6435 | } | |
6436 | return resultobj; | |
6437 | fail: | |
6438 | { | |
6439 | if (temp1) | |
6440 | delete arg1; | |
6441 | } | |
6442 | return NULL; | |
6443 | } | |
6444 | ||
6445 | ||
6446 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6447 | PyObject *resultobj; | |
6448 | wxString *arg1 = 0 ; | |
423f194a | 6449 | bool temp1 = False ; |
d14a1e28 RD |
6450 | PyObject * obj0 = 0 ; |
6451 | char *kwnames[] = { | |
6452 | (char *) "str", NULL | |
6453 | }; | |
6454 | ||
6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
6456 | { | |
6457 | arg1 = wxString_in_helper(obj0); | |
6458 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6459 | temp1 = True; |
d14a1e28 RD |
6460 | } |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
6464 | ||
6465 | wxPyEndAllowThreads(__tstate); | |
6466 | if (PyErr_Occurred()) SWIG_fail; | |
6467 | } | |
6468 | Py_INCREF(Py_None); resultobj = Py_None; | |
6469 | { | |
6470 | if (temp1) | |
6471 | delete arg1; | |
6472 | } | |
6473 | return resultobj; | |
6474 | fail: | |
6475 | { | |
6476 | if (temp1) | |
6477 | delete arg1; | |
6478 | } | |
6479 | return NULL; | |
6480 | } | |
6481 | ||
6482 | ||
6483 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6484 | PyObject *resultobj; | |
6485 | char *kwnames[] = { | |
6486 | NULL | |
6487 | }; | |
6488 | ||
6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
6490 | { | |
6491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6492 | wxLog::ClearTraceMasks(); | |
6493 | ||
6494 | wxPyEndAllowThreads(__tstate); | |
6495 | if (PyErr_Occurred()) SWIG_fail; | |
6496 | } | |
6497 | Py_INCREF(Py_None); resultobj = Py_None; | |
6498 | return resultobj; | |
6499 | fail: | |
6500 | return NULL; | |
6501 | } | |
6502 | ||
6503 | ||
6504 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6505 | PyObject *resultobj; | |
6506 | wxArrayString *result; | |
6507 | char *kwnames[] = { | |
6508 | NULL | |
6509 | }; | |
6510 | ||
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
6512 | { | |
6513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6514 | { | |
6515 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
6516 | result = (wxArrayString *) &_result_ref; | |
6517 | } | |
6518 | ||
6519 | wxPyEndAllowThreads(__tstate); | |
6520 | if (PyErr_Occurred()) SWIG_fail; | |
6521 | } | |
6522 | { | |
6523 | resultobj = wxArrayString2PyList_helper(*result); | |
6524 | } | |
6525 | return resultobj; | |
6526 | fail: | |
6527 | return NULL; | |
6528 | } | |
6529 | ||
6530 | ||
6531 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6532 | PyObject *resultobj; | |
6533 | wxChar *arg1 = (wxChar *) 0 ; | |
6534 | PyObject * obj0 = 0 ; | |
6535 | char *kwnames[] = { | |
6536 | (char *) "ts", NULL | |
6537 | }; | |
6538 | ||
6539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
6540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6541 | { | |
6542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6543 | wxLog::SetTimestamp((wxChar const *)arg1); | |
6544 | ||
6545 | wxPyEndAllowThreads(__tstate); | |
6546 | if (PyErr_Occurred()) SWIG_fail; | |
6547 | } | |
6548 | Py_INCREF(Py_None); resultobj = Py_None; | |
6549 | return resultobj; | |
6550 | fail: | |
6551 | return NULL; | |
6552 | } | |
6553 | ||
6554 | ||
6555 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6556 | PyObject *resultobj; | |
6557 | bool result; | |
6558 | char *kwnames[] = { | |
6559 | NULL | |
6560 | }; | |
6561 | ||
6562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
6563 | { | |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | result = (bool)wxLog::GetVerbose(); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | resultobj = PyInt_FromLong((long)result); | |
6571 | return resultobj; | |
6572 | fail: | |
6573 | return NULL; | |
6574 | } | |
6575 | ||
6576 | ||
6577 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6578 | PyObject *resultobj; | |
6579 | wxTraceMask result; | |
6580 | char *kwnames[] = { | |
6581 | NULL | |
6582 | }; | |
6583 | ||
6584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
6585 | { | |
6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6587 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
6588 | ||
6589 | wxPyEndAllowThreads(__tstate); | |
6590 | if (PyErr_Occurred()) SWIG_fail; | |
6591 | } | |
6592 | resultobj = PyInt_FromLong((long)result); | |
6593 | return resultobj; | |
6594 | fail: | |
6595 | return NULL; | |
6596 | } | |
6597 | ||
6598 | ||
6599 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6600 | PyObject *resultobj; | |
6601 | wxChar *arg1 = (wxChar *) 0 ; | |
6602 | bool result; | |
6603 | PyObject * obj0 = 0 ; | |
6604 | char *kwnames[] = { | |
6605 | (char *) "mask", NULL | |
6606 | }; | |
6607 | ||
6608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
6609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6610 | { | |
6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6612 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
6613 | ||
6614 | wxPyEndAllowThreads(__tstate); | |
6615 | if (PyErr_Occurred()) SWIG_fail; | |
6616 | } | |
6617 | resultobj = PyInt_FromLong((long)result); | |
6618 | return resultobj; | |
6619 | fail: | |
6620 | return NULL; | |
6621 | } | |
6622 | ||
6623 | ||
6624 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6625 | PyObject *resultobj; | |
6626 | wxLogLevel result; | |
6627 | char *kwnames[] = { | |
6628 | NULL | |
6629 | }; | |
6630 | ||
6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
6632 | { | |
6633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6634 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
6635 | ||
6636 | wxPyEndAllowThreads(__tstate); | |
6637 | if (PyErr_Occurred()) SWIG_fail; | |
6638 | } | |
6639 | resultobj = PyInt_FromLong((long)result); | |
6640 | return resultobj; | |
6641 | fail: | |
6642 | return NULL; | |
6643 | } | |
6644 | ||
6645 | ||
6646 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6647 | PyObject *resultobj; | |
6648 | wxChar *result; | |
6649 | char *kwnames[] = { | |
6650 | NULL | |
6651 | }; | |
6652 | ||
6653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
6654 | { | |
6655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6656 | result = (wxChar *)wxLog::GetTimestamp(); | |
6657 | ||
6658 | wxPyEndAllowThreads(__tstate); | |
6659 | if (PyErr_Occurred()) SWIG_fail; | |
6660 | } | |
6661 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
6662 | return resultobj; | |
6663 | fail: | |
6664 | return NULL; | |
6665 | } | |
6666 | ||
6667 | ||
6668 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6669 | PyObject *resultobj; | |
6670 | wxString result; | |
6671 | char *kwnames[] = { | |
6672 | NULL | |
6673 | }; | |
6674 | ||
6675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
6676 | { | |
6677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6678 | result = Log_TimeStamp(); | |
6679 | ||
6680 | wxPyEndAllowThreads(__tstate); | |
6681 | if (PyErr_Occurred()) SWIG_fail; | |
6682 | } | |
6683 | { | |
6684 | #if wxUSE_UNICODE | |
6685 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6686 | #else | |
6687 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6688 | #endif | |
6689 | } | |
6690 | return resultobj; | |
6691 | fail: | |
6692 | return NULL; | |
6693 | } | |
6694 | ||
6695 | ||
6696 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6697 | PyObject *resultobj; | |
6698 | wxLog *arg1 = (wxLog *) 0 ; | |
6699 | PyObject * obj0 = 0 ; | |
6700 | char *kwnames[] = { | |
6701 | (char *) "self", NULL | |
6702 | }; | |
6703 | ||
6704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
6705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6706 | { | |
6707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6708 | wxLog_Destroy(arg1); | |
6709 | ||
6710 | wxPyEndAllowThreads(__tstate); | |
6711 | if (PyErr_Occurred()) SWIG_fail; | |
6712 | } | |
6713 | Py_INCREF(Py_None); resultobj = Py_None; | |
6714 | return resultobj; | |
6715 | fail: | |
6716 | return NULL; | |
6717 | } | |
6718 | ||
6719 | ||
6720 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
6721 | PyObject *obj; | |
6722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6723 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
6724 | Py_INCREF(obj); | |
6725 | return Py_BuildValue((char *)""); | |
6726 | } | |
6727 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6728 | PyObject *resultobj; | |
6729 | wxLogStderr *result; | |
6730 | char *kwnames[] = { | |
6731 | NULL | |
6732 | }; | |
6733 | ||
6734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
6735 | { | |
6736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6737 | result = (wxLogStderr *)new wxLogStderr(); | |
6738 | ||
6739 | wxPyEndAllowThreads(__tstate); | |
6740 | if (PyErr_Occurred()) SWIG_fail; | |
6741 | } | |
6742 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
6743 | return resultobj; | |
6744 | fail: | |
6745 | return NULL; | |
6746 | } | |
6747 | ||
6748 | ||
6749 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
6750 | PyObject *obj; | |
6751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6752 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
6753 | Py_INCREF(obj); | |
6754 | return Py_BuildValue((char *)""); | |
6755 | } | |
6756 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6757 | PyObject *resultobj; | |
6758 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6759 | wxLogTextCtrl *result; | |
6760 | PyObject * obj0 = 0 ; | |
6761 | char *kwnames[] = { | |
6762 | (char *) "pTextCtrl", NULL | |
6763 | }; | |
6764 | ||
6765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
6766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6767 | { | |
6768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6769 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
6770 | ||
6771 | wxPyEndAllowThreads(__tstate); | |
6772 | if (PyErr_Occurred()) SWIG_fail; | |
6773 | } | |
6774 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
6775 | return resultobj; | |
6776 | fail: | |
6777 | return NULL; | |
6778 | } | |
6779 | ||
6780 | ||
6781 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
6782 | PyObject *obj; | |
6783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6784 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
6785 | Py_INCREF(obj); | |
6786 | return Py_BuildValue((char *)""); | |
6787 | } | |
6788 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6789 | PyObject *resultobj; | |
6790 | wxLogGui *result; | |
6791 | char *kwnames[] = { | |
6792 | NULL | |
6793 | }; | |
6794 | ||
6795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
6796 | { | |
6797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6798 | result = (wxLogGui *)new wxLogGui(); | |
6799 | ||
6800 | wxPyEndAllowThreads(__tstate); | |
6801 | if (PyErr_Occurred()) SWIG_fail; | |
6802 | } | |
6803 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
6804 | return resultobj; | |
6805 | fail: | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
6811 | PyObject *obj; | |
6812 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6813 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
6814 | Py_INCREF(obj); | |
6815 | return Py_BuildValue((char *)""); | |
6816 | } | |
6817 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6818 | PyObject *resultobj; | |
6819 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6820 | wxString *arg2 = 0 ; | |
423f194a RD |
6821 | bool arg3 = (bool) True ; |
6822 | bool arg4 = (bool) True ; | |
d14a1e28 | 6823 | wxLogWindow *result; |
423f194a | 6824 | bool temp2 = False ; |
d14a1e28 RD |
6825 | PyObject * obj0 = 0 ; |
6826 | PyObject * obj1 = 0 ; | |
6827 | PyObject * obj2 = 0 ; | |
6828 | PyObject * obj3 = 0 ; | |
6829 | char *kwnames[] = { | |
6830 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
6831 | }; | |
6832 | ||
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6835 | { | |
6836 | arg2 = wxString_in_helper(obj1); | |
6837 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6838 | temp2 = True; |
d14a1e28 RD |
6839 | } |
6840 | if (obj2) { | |
6841 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
6844 | if (obj3) { | |
6845 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6846 | if (PyErr_Occurred()) SWIG_fail; | |
6847 | } | |
6848 | { | |
6849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6850 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
6851 | ||
6852 | wxPyEndAllowThreads(__tstate); | |
6853 | if (PyErr_Occurred()) SWIG_fail; | |
6854 | } | |
6855 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
6856 | { | |
6857 | if (temp2) | |
6858 | delete arg2; | |
6859 | } | |
6860 | return resultobj; | |
6861 | fail: | |
6862 | { | |
6863 | if (temp2) | |
6864 | delete arg2; | |
6865 | } | |
6866 | return NULL; | |
6867 | } | |
6868 | ||
6869 | ||
6870 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6871 | PyObject *resultobj; | |
6872 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
423f194a | 6873 | bool arg2 = (bool) True ; |
d14a1e28 RD |
6874 | PyObject * obj0 = 0 ; |
6875 | PyObject * obj1 = 0 ; | |
6876 | char *kwnames[] = { | |
6877 | (char *) "self",(char *) "bShow", NULL | |
6878 | }; | |
6879 | ||
6880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
6881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6882 | if (obj1) { | |
6883 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
6884 | if (PyErr_Occurred()) SWIG_fail; | |
6885 | } | |
6886 | { | |
6887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6888 | (arg1)->Show(arg2); | |
6889 | ||
6890 | wxPyEndAllowThreads(__tstate); | |
6891 | if (PyErr_Occurred()) SWIG_fail; | |
6892 | } | |
6893 | Py_INCREF(Py_None); resultobj = Py_None; | |
6894 | return resultobj; | |
6895 | fail: | |
6896 | return NULL; | |
6897 | } | |
6898 | ||
6899 | ||
6900 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6901 | PyObject *resultobj; | |
6902 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6903 | wxFrame *result; | |
6904 | PyObject * obj0 = 0 ; | |
6905 | char *kwnames[] = { | |
6906 | (char *) "self", NULL | |
6907 | }; | |
6908 | ||
6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
6910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6911 | { | |
6912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6913 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
6914 | ||
6915 | wxPyEndAllowThreads(__tstate); | |
6916 | if (PyErr_Occurred()) SWIG_fail; | |
6917 | } | |
6918 | { | |
6919 | resultobj = wxPyMake_wxObject(result); | |
6920 | } | |
6921 | return resultobj; | |
6922 | fail: | |
6923 | return NULL; | |
6924 | } | |
6925 | ||
6926 | ||
6927 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6928 | PyObject *resultobj; | |
6929 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6930 | wxLog *result; | |
6931 | PyObject * obj0 = 0 ; | |
6932 | char *kwnames[] = { | |
6933 | (char *) "self", NULL | |
6934 | }; | |
6935 | ||
6936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
6937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6938 | { | |
6939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6940 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
6941 | ||
6942 | wxPyEndAllowThreads(__tstate); | |
6943 | if (PyErr_Occurred()) SWIG_fail; | |
6944 | } | |
6945 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6946 | return resultobj; | |
6947 | fail: | |
6948 | return NULL; | |
6949 | } | |
6950 | ||
6951 | ||
6952 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6953 | PyObject *resultobj; | |
6954 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6955 | bool result; | |
6956 | PyObject * obj0 = 0 ; | |
6957 | char *kwnames[] = { | |
6958 | (char *) "self", NULL | |
6959 | }; | |
6960 | ||
6961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
6962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6963 | { | |
6964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6965 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
6966 | ||
6967 | wxPyEndAllowThreads(__tstate); | |
6968 | if (PyErr_Occurred()) SWIG_fail; | |
6969 | } | |
6970 | resultobj = PyInt_FromLong((long)result); | |
6971 | return resultobj; | |
6972 | fail: | |
6973 | return NULL; | |
6974 | } | |
6975 | ||
6976 | ||
6977 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6978 | PyObject *resultobj; | |
6979 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6980 | bool arg2 ; | |
6981 | PyObject * obj0 = 0 ; | |
6982 | PyObject * obj1 = 0 ; | |
6983 | char *kwnames[] = { | |
6984 | (char *) "self",(char *) "bDoPass", NULL | |
6985 | }; | |
6986 | ||
6987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
6988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6989 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
6990 | if (PyErr_Occurred()) SWIG_fail; | |
6991 | { | |
6992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6993 | (arg1)->PassMessages(arg2); | |
6994 | ||
6995 | wxPyEndAllowThreads(__tstate); | |
6996 | if (PyErr_Occurred()) SWIG_fail; | |
6997 | } | |
6998 | Py_INCREF(Py_None); resultobj = Py_None; | |
6999 | return resultobj; | |
7000 | fail: | |
7001 | return NULL; | |
7002 | } | |
7003 | ||
7004 | ||
7005 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7006 | PyObject *obj; | |
7007 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7008 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7009 | Py_INCREF(obj); | |
7010 | return Py_BuildValue((char *)""); | |
7011 | } | |
7012 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7013 | PyObject *resultobj; | |
7014 | wxLog *arg1 = (wxLog *) 0 ; | |
7015 | wxLogChain *result; | |
7016 | PyObject * obj0 = 0 ; | |
7017 | char *kwnames[] = { | |
7018 | (char *) "logger", NULL | |
7019 | }; | |
7020 | ||
7021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | result = (wxLogChain *)new wxLogChain(arg1); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
7030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7031 | return resultobj; | |
7032 | fail: | |
7033 | return NULL; | |
7034 | } | |
7035 | ||
7036 | ||
7037 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7038 | PyObject *resultobj; | |
7039 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7040 | wxLog *arg2 = (wxLog *) 0 ; | |
7041 | PyObject * obj0 = 0 ; | |
7042 | PyObject * obj1 = 0 ; | |
7043 | char *kwnames[] = { | |
7044 | (char *) "self",(char *) "logger", NULL | |
7045 | }; | |
7046 | ||
7047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7049 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7050 | { | |
7051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7052 | (arg1)->SetLog(arg2); | |
7053 | ||
7054 | wxPyEndAllowThreads(__tstate); | |
7055 | if (PyErr_Occurred()) SWIG_fail; | |
7056 | } | |
7057 | Py_INCREF(Py_None); resultobj = Py_None; | |
7058 | return resultobj; | |
7059 | fail: | |
7060 | return NULL; | |
7061 | } | |
7062 | ||
7063 | ||
7064 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject *resultobj; | |
7066 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7067 | bool arg2 ; | |
7068 | PyObject * obj0 = 0 ; | |
7069 | PyObject * obj1 = 0 ; | |
7070 | char *kwnames[] = { | |
7071 | (char *) "self",(char *) "bDoPass", NULL | |
7072 | }; | |
7073 | ||
7074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7076 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7077 | if (PyErr_Occurred()) SWIG_fail; | |
7078 | { | |
7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7080 | (arg1)->PassMessages(arg2); | |
7081 | ||
7082 | wxPyEndAllowThreads(__tstate); | |
7083 | if (PyErr_Occurred()) SWIG_fail; | |
7084 | } | |
7085 | Py_INCREF(Py_None); resultobj = Py_None; | |
7086 | return resultobj; | |
7087 | fail: | |
7088 | return NULL; | |
7089 | } | |
7090 | ||
7091 | ||
7092 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7093 | PyObject *resultobj; | |
7094 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7095 | bool result; | |
7096 | PyObject * obj0 = 0 ; | |
7097 | char *kwnames[] = { | |
7098 | (char *) "self", NULL | |
7099 | }; | |
7100 | ||
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7103 | { | |
7104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7105 | result = (bool)(arg1)->IsPassingMessages(); | |
7106 | ||
7107 | wxPyEndAllowThreads(__tstate); | |
7108 | if (PyErr_Occurred()) SWIG_fail; | |
7109 | } | |
7110 | resultobj = PyInt_FromLong((long)result); | |
7111 | return resultobj; | |
7112 | fail: | |
7113 | return NULL; | |
7114 | } | |
7115 | ||
7116 | ||
7117 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7118 | PyObject *resultobj; | |
7119 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7120 | wxLog *result; | |
7121 | PyObject * obj0 = 0 ; | |
7122 | char *kwnames[] = { | |
7123 | (char *) "self", NULL | |
7124 | }; | |
7125 | ||
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | result = (wxLog *)(arg1)->GetOldLog(); | |
7131 | ||
7132 | wxPyEndAllowThreads(__tstate); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7136 | return resultobj; | |
7137 | fail: | |
7138 | return NULL; | |
7139 | } | |
7140 | ||
7141 | ||
7142 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7143 | PyObject *obj; | |
7144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7145 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7146 | Py_INCREF(obj); | |
7147 | return Py_BuildValue((char *)""); | |
7148 | } | |
7149 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7150 | PyObject *resultobj; | |
7151 | unsigned long result; | |
7152 | char *kwnames[] = { | |
7153 | NULL | |
7154 | }; | |
7155 | ||
7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7157 | { | |
7158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7159 | result = (unsigned long)wxSysErrorCode(); | |
7160 | ||
7161 | wxPyEndAllowThreads(__tstate); | |
7162 | if (PyErr_Occurred()) SWIG_fail; | |
7163 | } | |
7164 | resultobj = PyInt_FromLong((long)result); | |
7165 | return resultobj; | |
7166 | fail: | |
7167 | return NULL; | |
7168 | } | |
7169 | ||
7170 | ||
7171 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7172 | PyObject *resultobj; | |
7173 | unsigned long arg1 = (unsigned long) 0 ; | |
7174 | wxString result; | |
7175 | PyObject * obj0 = 0 ; | |
7176 | char *kwnames[] = { | |
7177 | (char *) "nErrCode", NULL | |
7178 | }; | |
7179 | ||
7180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7181 | if (obj0) { | |
7182 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | } | |
7185 | { | |
7186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7187 | result = wxSysErrorMsg(arg1); | |
7188 | ||
7189 | wxPyEndAllowThreads(__tstate); | |
7190 | if (PyErr_Occurred()) SWIG_fail; | |
7191 | } | |
7192 | { | |
7193 | #if wxUSE_UNICODE | |
7194 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7195 | #else | |
7196 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7197 | #endif | |
7198 | } | |
7199 | return resultobj; | |
7200 | fail: | |
7201 | return NULL; | |
7202 | } | |
7203 | ||
7204 | ||
7205 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7206 | PyObject *resultobj; | |
7207 | wxString *arg1 = 0 ; | |
423f194a | 7208 | bool temp1 = False ; |
d14a1e28 RD |
7209 | PyObject * obj0 = 0 ; |
7210 | char *kwnames[] = { | |
7211 | (char *) "msg", NULL | |
7212 | }; | |
7213 | ||
7214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7215 | { | |
7216 | arg1 = wxString_in_helper(obj0); | |
7217 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7218 | temp1 = True; |
d14a1e28 RD |
7219 | } |
7220 | { | |
7221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7222 | wxLogFatalError((wxString const &)*arg1); | |
7223 | ||
7224 | wxPyEndAllowThreads(__tstate); | |
7225 | if (PyErr_Occurred()) SWIG_fail; | |
7226 | } | |
7227 | Py_INCREF(Py_None); resultobj = Py_None; | |
7228 | { | |
7229 | if (temp1) | |
7230 | delete arg1; | |
7231 | } | |
7232 | return resultobj; | |
7233 | fail: | |
7234 | { | |
7235 | if (temp1) | |
7236 | delete arg1; | |
7237 | } | |
7238 | return NULL; | |
7239 | } | |
7240 | ||
7241 | ||
7242 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7243 | PyObject *resultobj; | |
7244 | wxString *arg1 = 0 ; | |
423f194a | 7245 | bool temp1 = False ; |
d14a1e28 RD |
7246 | PyObject * obj0 = 0 ; |
7247 | char *kwnames[] = { | |
7248 | (char *) "msg", NULL | |
7249 | }; | |
7250 | ||
7251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7252 | { | |
7253 | arg1 = wxString_in_helper(obj0); | |
7254 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7255 | temp1 = True; |
d14a1e28 RD |
7256 | } |
7257 | { | |
7258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7259 | wxLogError((wxString const &)*arg1); | |
7260 | ||
7261 | wxPyEndAllowThreads(__tstate); | |
7262 | if (PyErr_Occurred()) SWIG_fail; | |
7263 | } | |
7264 | Py_INCREF(Py_None); resultobj = Py_None; | |
7265 | { | |
7266 | if (temp1) | |
7267 | delete arg1; | |
7268 | } | |
7269 | return resultobj; | |
7270 | fail: | |
7271 | { | |
7272 | if (temp1) | |
7273 | delete arg1; | |
7274 | } | |
7275 | return NULL; | |
7276 | } | |
7277 | ||
7278 | ||
7279 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7280 | PyObject *resultobj; | |
7281 | wxString *arg1 = 0 ; | |
423f194a | 7282 | bool temp1 = False ; |
d14a1e28 RD |
7283 | PyObject * obj0 = 0 ; |
7284 | char *kwnames[] = { | |
7285 | (char *) "msg", NULL | |
7286 | }; | |
7287 | ||
7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7289 | { | |
7290 | arg1 = wxString_in_helper(obj0); | |
7291 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7292 | temp1 = True; |
d14a1e28 RD |
7293 | } |
7294 | { | |
7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7296 | wxLogWarning((wxString const &)*arg1); | |
7297 | ||
7298 | wxPyEndAllowThreads(__tstate); | |
7299 | if (PyErr_Occurred()) SWIG_fail; | |
7300 | } | |
7301 | Py_INCREF(Py_None); resultobj = Py_None; | |
7302 | { | |
7303 | if (temp1) | |
7304 | delete arg1; | |
7305 | } | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | { | |
7309 | if (temp1) | |
7310 | delete arg1; | |
7311 | } | |
7312 | return NULL; | |
7313 | } | |
7314 | ||
7315 | ||
7316 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7317 | PyObject *resultobj; | |
7318 | wxString *arg1 = 0 ; | |
423f194a | 7319 | bool temp1 = False ; |
d14a1e28 RD |
7320 | PyObject * obj0 = 0 ; |
7321 | char *kwnames[] = { | |
7322 | (char *) "msg", NULL | |
7323 | }; | |
7324 | ||
7325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7326 | { | |
7327 | arg1 = wxString_in_helper(obj0); | |
7328 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7329 | temp1 = True; |
d14a1e28 RD |
7330 | } |
7331 | { | |
7332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7333 | wxLogMessage((wxString const &)*arg1); | |
7334 | ||
7335 | wxPyEndAllowThreads(__tstate); | |
7336 | if (PyErr_Occurred()) SWIG_fail; | |
7337 | } | |
7338 | Py_INCREF(Py_None); resultobj = Py_None; | |
7339 | { | |
7340 | if (temp1) | |
7341 | delete arg1; | |
7342 | } | |
7343 | return resultobj; | |
7344 | fail: | |
7345 | { | |
7346 | if (temp1) | |
7347 | delete arg1; | |
7348 | } | |
7349 | return NULL; | |
7350 | } | |
7351 | ||
7352 | ||
7353 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7354 | PyObject *resultobj; | |
7355 | wxString *arg1 = 0 ; | |
423f194a | 7356 | bool temp1 = False ; |
d14a1e28 RD |
7357 | PyObject * obj0 = 0 ; |
7358 | char *kwnames[] = { | |
7359 | (char *) "msg", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7363 | { | |
7364 | arg1 = wxString_in_helper(obj0); | |
7365 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7366 | temp1 = True; |
d14a1e28 RD |
7367 | } |
7368 | { | |
7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7370 | wxLogInfo((wxString const &)*arg1); | |
7371 | ||
7372 | wxPyEndAllowThreads(__tstate); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
7375 | Py_INCREF(Py_None); resultobj = Py_None; | |
7376 | { | |
7377 | if (temp1) | |
7378 | delete arg1; | |
7379 | } | |
7380 | return resultobj; | |
7381 | fail: | |
7382 | { | |
7383 | if (temp1) | |
7384 | delete arg1; | |
7385 | } | |
7386 | return NULL; | |
7387 | } | |
7388 | ||
7389 | ||
7390 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7391 | PyObject *resultobj; | |
7392 | wxString *arg1 = 0 ; | |
423f194a | 7393 | bool temp1 = False ; |
d14a1e28 RD |
7394 | PyObject * obj0 = 0 ; |
7395 | char *kwnames[] = { | |
7396 | (char *) "msg", NULL | |
7397 | }; | |
7398 | ||
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
7400 | { | |
7401 | arg1 = wxString_in_helper(obj0); | |
7402 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7403 | temp1 = True; |
d14a1e28 RD |
7404 | } |
7405 | { | |
7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7407 | wxLogDebug((wxString const &)*arg1); | |
7408 | ||
7409 | wxPyEndAllowThreads(__tstate); | |
7410 | if (PyErr_Occurred()) SWIG_fail; | |
7411 | } | |
7412 | Py_INCREF(Py_None); resultobj = Py_None; | |
7413 | { | |
7414 | if (temp1) | |
7415 | delete arg1; | |
7416 | } | |
7417 | return resultobj; | |
7418 | fail: | |
7419 | { | |
7420 | if (temp1) | |
7421 | delete arg1; | |
7422 | } | |
7423 | return NULL; | |
7424 | } | |
7425 | ||
7426 | ||
7427 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7428 | PyObject *resultobj; | |
7429 | wxString *arg1 = 0 ; | |
423f194a | 7430 | bool temp1 = False ; |
d14a1e28 RD |
7431 | PyObject * obj0 = 0 ; |
7432 | char *kwnames[] = { | |
7433 | (char *) "msg", NULL | |
7434 | }; | |
7435 | ||
7436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
7437 | { | |
7438 | arg1 = wxString_in_helper(obj0); | |
7439 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7440 | temp1 = True; |
d14a1e28 RD |
7441 | } |
7442 | { | |
7443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7444 | wxLogVerbose((wxString const &)*arg1); | |
7445 | ||
7446 | wxPyEndAllowThreads(__tstate); | |
7447 | if (PyErr_Occurred()) SWIG_fail; | |
7448 | } | |
7449 | Py_INCREF(Py_None); resultobj = Py_None; | |
7450 | { | |
7451 | if (temp1) | |
7452 | delete arg1; | |
7453 | } | |
7454 | return resultobj; | |
7455 | fail: | |
7456 | { | |
7457 | if (temp1) | |
7458 | delete arg1; | |
7459 | } | |
7460 | return NULL; | |
7461 | } | |
7462 | ||
7463 | ||
7464 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7465 | PyObject *resultobj; | |
7466 | wxString *arg1 = 0 ; | |
423f194a | 7467 | bool temp1 = False ; |
d14a1e28 RD |
7468 | PyObject * obj0 = 0 ; |
7469 | char *kwnames[] = { | |
7470 | (char *) "msg", NULL | |
7471 | }; | |
7472 | ||
7473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
7474 | { | |
7475 | arg1 = wxString_in_helper(obj0); | |
7476 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7477 | temp1 = True; |
d14a1e28 RD |
7478 | } |
7479 | { | |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7481 | wxLogStatus((wxString const &)*arg1); | |
7482 | ||
7483 | wxPyEndAllowThreads(__tstate); | |
7484 | if (PyErr_Occurred()) SWIG_fail; | |
7485 | } | |
7486 | Py_INCREF(Py_None); resultobj = Py_None; | |
7487 | { | |
7488 | if (temp1) | |
7489 | delete arg1; | |
7490 | } | |
7491 | return resultobj; | |
7492 | fail: | |
7493 | { | |
7494 | if (temp1) | |
7495 | delete arg1; | |
7496 | } | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
7501 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7502 | PyObject *resultobj; | |
7503 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7504 | wxString *arg2 = 0 ; | |
423f194a | 7505 | bool temp2 = False ; |
d14a1e28 RD |
7506 | PyObject * obj0 = 0 ; |
7507 | PyObject * obj1 = 0 ; | |
7508 | char *kwnames[] = { | |
7509 | (char *) "pFrame",(char *) "msg", NULL | |
7510 | }; | |
7511 | ||
7512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
7513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7514 | { | |
7515 | arg2 = wxString_in_helper(obj1); | |
7516 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7517 | temp2 = True; |
d14a1e28 RD |
7518 | } |
7519 | { | |
7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7521 | wxLogStatus(arg1,(wxString const &)*arg2); | |
7522 | ||
7523 | wxPyEndAllowThreads(__tstate); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
7526 | Py_INCREF(Py_None); resultobj = Py_None; | |
7527 | { | |
7528 | if (temp2) | |
7529 | delete arg2; | |
7530 | } | |
7531 | return resultobj; | |
7532 | fail: | |
7533 | { | |
7534 | if (temp2) | |
7535 | delete arg2; | |
7536 | } | |
7537 | return NULL; | |
7538 | } | |
7539 | ||
7540 | ||
7541 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7542 | PyObject *resultobj; | |
7543 | wxString *arg1 = 0 ; | |
423f194a | 7544 | bool temp1 = False ; |
d14a1e28 RD |
7545 | PyObject * obj0 = 0 ; |
7546 | char *kwnames[] = { | |
7547 | (char *) "msg", NULL | |
7548 | }; | |
7549 | ||
7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
7551 | { | |
7552 | arg1 = wxString_in_helper(obj0); | |
7553 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7554 | temp1 = True; |
d14a1e28 RD |
7555 | } |
7556 | { | |
7557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7558 | wxLogSysError((wxString const &)*arg1); | |
7559 | ||
7560 | wxPyEndAllowThreads(__tstate); | |
7561 | if (PyErr_Occurred()) SWIG_fail; | |
7562 | } | |
7563 | Py_INCREF(Py_None); resultobj = Py_None; | |
7564 | { | |
7565 | if (temp1) | |
7566 | delete arg1; | |
7567 | } | |
7568 | return resultobj; | |
7569 | fail: | |
7570 | { | |
7571 | if (temp1) | |
7572 | delete arg1; | |
7573 | } | |
7574 | return NULL; | |
7575 | } | |
7576 | ||
7577 | ||
7578 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7579 | PyObject *resultobj; | |
7580 | wxString *arg1 = 0 ; | |
423f194a | 7581 | bool temp1 = False ; |
d14a1e28 RD |
7582 | PyObject * obj0 = 0 ; |
7583 | char *kwnames[] = { | |
7584 | (char *) "msg", NULL | |
7585 | }; | |
7586 | ||
7587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogTrace",kwnames,&obj0)) goto fail; | |
7588 | { | |
7589 | arg1 = wxString_in_helper(obj0); | |
7590 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7591 | temp1 = True; |
d14a1e28 RD |
7592 | } |
7593 | { | |
7594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7595 | wxLogTrace((wxString const &)*arg1); | |
7596 | ||
7597 | wxPyEndAllowThreads(__tstate); | |
7598 | if (PyErr_Occurred()) SWIG_fail; | |
7599 | } | |
7600 | Py_INCREF(Py_None); resultobj = Py_None; | |
7601 | { | |
7602 | if (temp1) | |
7603 | delete arg1; | |
7604 | } | |
7605 | return resultobj; | |
7606 | fail: | |
7607 | { | |
7608 | if (temp1) | |
7609 | delete arg1; | |
7610 | } | |
7611 | return NULL; | |
7612 | } | |
7613 | ||
7614 | ||
7615 | static PyObject *_wrap_LogTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7616 | PyObject *resultobj; | |
7617 | wxString *arg1 = 0 ; | |
7618 | wxString *arg2 = 0 ; | |
423f194a RD |
7619 | bool temp1 = False ; |
7620 | bool temp2 = False ; | |
d14a1e28 RD |
7621 | PyObject * obj0 = 0 ; |
7622 | PyObject * obj1 = 0 ; | |
7623 | char *kwnames[] = { | |
7624 | (char *) "mask",(char *) "msg", NULL | |
7625 | }; | |
7626 | ||
7627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogTraceMask",kwnames,&obj0,&obj1)) goto fail; | |
7628 | { | |
7629 | arg1 = wxString_in_helper(obj0); | |
7630 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7631 | temp1 = True; |
d14a1e28 RD |
7632 | } |
7633 | { | |
7634 | arg2 = wxString_in_helper(obj1); | |
7635 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7636 | temp2 = True; |
d14a1e28 RD |
7637 | } |
7638 | { | |
7639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7640 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
7641 | ||
7642 | wxPyEndAllowThreads(__tstate); | |
7643 | if (PyErr_Occurred()) SWIG_fail; | |
7644 | } | |
7645 | Py_INCREF(Py_None); resultobj = Py_None; | |
7646 | { | |
7647 | if (temp1) | |
7648 | delete arg1; | |
7649 | } | |
7650 | { | |
7651 | if (temp2) | |
7652 | delete arg2; | |
7653 | } | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | { | |
7657 | if (temp1) | |
7658 | delete arg1; | |
7659 | } | |
7660 | { | |
7661 | if (temp2) | |
7662 | delete arg2; | |
7663 | } | |
7664 | return NULL; | |
7665 | } | |
7666 | ||
7667 | ||
7668 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7669 | PyObject *resultobj; | |
7670 | unsigned long arg1 ; | |
7671 | wxString *arg2 = 0 ; | |
423f194a | 7672 | bool temp2 = False ; |
d14a1e28 RD |
7673 | PyObject * obj0 = 0 ; |
7674 | PyObject * obj1 = 0 ; | |
7675 | char *kwnames[] = { | |
7676 | (char *) "level",(char *) "msg", NULL | |
7677 | }; | |
7678 | ||
7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
7680 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | { | |
7683 | arg2 = wxString_in_helper(obj1); | |
7684 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7685 | temp2 = True; |
d14a1e28 RD |
7686 | } |
7687 | { | |
7688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7689 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
7690 | ||
7691 | wxPyEndAllowThreads(__tstate); | |
7692 | if (PyErr_Occurred()) SWIG_fail; | |
7693 | } | |
7694 | Py_INCREF(Py_None); resultobj = Py_None; | |
7695 | { | |
7696 | if (temp2) | |
7697 | delete arg2; | |
7698 | } | |
7699 | return resultobj; | |
7700 | fail: | |
7701 | { | |
7702 | if (temp2) | |
7703 | delete arg2; | |
7704 | } | |
7705 | return NULL; | |
7706 | } | |
7707 | ||
7708 | ||
7709 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7710 | PyObject *resultobj; | |
7711 | wxString *arg1 = 0 ; | |
7712 | wxString *arg2 = 0 ; | |
423f194a RD |
7713 | bool temp1 = False ; |
7714 | bool temp2 = False ; | |
d14a1e28 RD |
7715 | PyObject * obj0 = 0 ; |
7716 | PyObject * obj1 = 0 ; | |
7717 | char *kwnames[] = { | |
7718 | (char *) "title",(char *) "text", NULL | |
7719 | }; | |
7720 | ||
7721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
7722 | { | |
7723 | arg1 = wxString_in_helper(obj0); | |
7724 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7725 | temp1 = True; |
d14a1e28 RD |
7726 | } |
7727 | { | |
7728 | arg2 = wxString_in_helper(obj1); | |
7729 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7730 | temp2 = True; |
d14a1e28 RD |
7731 | } |
7732 | { | |
7733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7734 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
7735 | ||
7736 | wxPyEndAllowThreads(__tstate); | |
7737 | if (PyErr_Occurred()) SWIG_fail; | |
7738 | } | |
7739 | Py_INCREF(Py_None); resultobj = Py_None; | |
7740 | { | |
7741 | if (temp1) | |
7742 | delete arg1; | |
7743 | } | |
7744 | { | |
7745 | if (temp2) | |
7746 | delete arg2; | |
7747 | } | |
7748 | return resultobj; | |
7749 | fail: | |
7750 | { | |
7751 | if (temp1) | |
7752 | delete arg1; | |
7753 | } | |
7754 | { | |
7755 | if (temp2) | |
7756 | delete arg2; | |
7757 | } | |
7758 | return NULL; | |
7759 | } | |
7760 | ||
7761 | ||
7762 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7763 | PyObject *resultobj; | |
7764 | wxLogNull *result; | |
7765 | char *kwnames[] = { | |
7766 | NULL | |
7767 | }; | |
7768 | ||
7769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
7770 | { | |
7771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7772 | result = (wxLogNull *)new wxLogNull(); | |
7773 | ||
7774 | wxPyEndAllowThreads(__tstate); | |
7775 | if (PyErr_Occurred()) SWIG_fail; | |
7776 | } | |
7777 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
7778 | return resultobj; | |
7779 | fail: | |
7780 | return NULL; | |
7781 | } | |
7782 | ||
7783 | ||
7784 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7785 | PyObject *resultobj; | |
7786 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
7787 | PyObject * obj0 = 0 ; | |
7788 | char *kwnames[] = { | |
7789 | (char *) "self", NULL | |
7790 | }; | |
7791 | ||
7792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
7793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7794 | { | |
7795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7796 | delete arg1; | |
7797 | ||
7798 | wxPyEndAllowThreads(__tstate); | |
7799 | if (PyErr_Occurred()) SWIG_fail; | |
7800 | } | |
7801 | Py_INCREF(Py_None); resultobj = Py_None; | |
7802 | return resultobj; | |
7803 | fail: | |
7804 | return NULL; | |
7805 | } | |
7806 | ||
7807 | ||
7808 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
7809 | PyObject *obj; | |
7810 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7811 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
7812 | Py_INCREF(obj); | |
7813 | return Py_BuildValue((char *)""); | |
7814 | } | |
7815 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7816 | PyObject *resultobj; | |
7817 | wxPyLog *result; | |
7818 | char *kwnames[] = { | |
7819 | NULL | |
7820 | }; | |
7821 | ||
7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
7823 | { | |
7824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7825 | result = (wxPyLog *)new wxPyLog(); | |
7826 | ||
7827 | wxPyEndAllowThreads(__tstate); | |
7828 | if (PyErr_Occurred()) SWIG_fail; | |
7829 | } | |
7830 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
7831 | return resultobj; | |
7832 | fail: | |
7833 | return NULL; | |
7834 | } | |
7835 | ||
7836 | ||
7837 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7838 | PyObject *resultobj; | |
7839 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
7840 | PyObject *arg2 = (PyObject *) 0 ; | |
7841 | PyObject *arg3 = (PyObject *) 0 ; | |
7842 | PyObject * obj0 = 0 ; | |
7843 | PyObject * obj1 = 0 ; | |
7844 | PyObject * obj2 = 0 ; | |
7845 | char *kwnames[] = { | |
7846 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
7847 | }; | |
7848 | ||
7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7851 | arg2 = obj1; | |
7852 | arg3 = obj2; | |
7853 | { | |
7854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7855 | (arg1)->_setCallbackInfo(arg2,arg3); | |
7856 | ||
7857 | wxPyEndAllowThreads(__tstate); | |
7858 | if (PyErr_Occurred()) SWIG_fail; | |
7859 | } | |
7860 | Py_INCREF(Py_None); resultobj = Py_None; | |
7861 | return resultobj; | |
7862 | fail: | |
7863 | return NULL; | |
7864 | } | |
7865 | ||
7866 | ||
7867 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
7868 | PyObject *obj; | |
7869 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7870 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
7871 | Py_INCREF(obj); | |
7872 | return Py_BuildValue((char *)""); | |
7873 | } | |
7874 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7875 | PyObject *resultobj; | |
7876 | int arg1 ; | |
7877 | int arg2 = (int) wxSIGTERM ; | |
7878 | int result; | |
7879 | char *kwnames[] = { | |
7880 | (char *) "pid",(char *) "sig", NULL | |
7881 | }; | |
7882 | ||
7883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:Process_Kill",kwnames,&arg1,&arg2)) goto fail; | |
7884 | { | |
7885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7886 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
7887 | ||
7888 | wxPyEndAllowThreads(__tstate); | |
7889 | if (PyErr_Occurred()) SWIG_fail; | |
7890 | } | |
7891 | resultobj = PyInt_FromLong((long)result); | |
7892 | return resultobj; | |
7893 | fail: | |
7894 | return NULL; | |
7895 | } | |
7896 | ||
7897 | ||
7898 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7899 | PyObject *resultobj; | |
7900 | int arg1 ; | |
7901 | bool result; | |
7902 | char *kwnames[] = { | |
7903 | (char *) "pid", NULL | |
7904 | }; | |
7905 | ||
7906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Process_Exists",kwnames,&arg1)) goto fail; | |
7907 | { | |
7908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7909 | result = (bool)wxPyProcess::Exists(arg1); | |
7910 | ||
7911 | wxPyEndAllowThreads(__tstate); | |
7912 | if (PyErr_Occurred()) SWIG_fail; | |
7913 | } | |
7914 | resultobj = PyInt_FromLong((long)result); | |
7915 | return resultobj; | |
7916 | fail: | |
7917 | return NULL; | |
7918 | } | |
7919 | ||
7920 | ||
7921 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7922 | PyObject *resultobj; | |
7923 | wxString *arg1 = 0 ; | |
7924 | int arg2 = (int) wxEXEC_ASYNC ; | |
7925 | wxPyProcess *result; | |
423f194a | 7926 | bool temp1 = False ; |
d14a1e28 RD |
7927 | PyObject * obj0 = 0 ; |
7928 | char *kwnames[] = { | |
7929 | (char *) "cmd",(char *) "flags", NULL | |
7930 | }; | |
7931 | ||
7932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Process_Open",kwnames,&obj0,&arg2)) goto fail; | |
7933 | { | |
7934 | arg1 = wxString_in_helper(obj0); | |
7935 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7936 | temp1 = True; |
d14a1e28 RD |
7937 | } |
7938 | { | |
7939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7940 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
7941 | ||
7942 | wxPyEndAllowThreads(__tstate); | |
7943 | if (PyErr_Occurred()) SWIG_fail; | |
7944 | } | |
7945 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
7946 | { | |
7947 | if (temp1) | |
7948 | delete arg1; | |
7949 | } | |
7950 | return resultobj; | |
7951 | fail: | |
7952 | { | |
7953 | if (temp1) | |
7954 | delete arg1; | |
7955 | } | |
7956 | return NULL; | |
7957 | } | |
7958 | ||
7959 | ||
7960 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7961 | PyObject *resultobj; | |
7962 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
7963 | int arg2 = (int) -1 ; | |
7964 | wxPyProcess *result; | |
7965 | PyObject * obj0 = 0 ; | |
7966 | char *kwnames[] = { | |
7967 | (char *) "parent",(char *) "id", NULL | |
7968 | }; | |
7969 | ||
7970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Process",kwnames,&obj0,&arg2)) goto fail; | |
7971 | if (obj0) { | |
7972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7973 | } | |
7974 | { | |
7975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7976 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
7977 | ||
7978 | wxPyEndAllowThreads(__tstate); | |
7979 | if (PyErr_Occurred()) SWIG_fail; | |
7980 | } | |
7981 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
7982 | return resultobj; | |
7983 | fail: | |
7984 | return NULL; | |
7985 | } | |
7986 | ||
7987 | ||
7988 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7989 | PyObject *resultobj; | |
7990 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
7991 | PyObject *arg2 = (PyObject *) 0 ; | |
7992 | PyObject *arg3 = (PyObject *) 0 ; | |
7993 | PyObject * obj0 = 0 ; | |
7994 | PyObject * obj1 = 0 ; | |
7995 | PyObject * obj2 = 0 ; | |
7996 | char *kwnames[] = { | |
7997 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
7998 | }; | |
7999 | ||
8000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8002 | arg2 = obj1; | |
8003 | arg3 = obj2; | |
8004 | { | |
8005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8006 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8007 | ||
8008 | wxPyEndAllowThreads(__tstate); | |
8009 | if (PyErr_Occurred()) SWIG_fail; | |
8010 | } | |
8011 | Py_INCREF(Py_None); resultobj = Py_None; | |
8012 | return resultobj; | |
8013 | fail: | |
8014 | return NULL; | |
8015 | } | |
8016 | ||
8017 | ||
8018 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8019 | PyObject *resultobj; | |
8020 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8021 | int arg2 ; | |
8022 | int arg3 ; | |
8023 | PyObject * obj0 = 0 ; | |
8024 | char *kwnames[] = { | |
8025 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8026 | }; | |
8027 | ||
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Process_base_OnTerminate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8030 | { | |
8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8032 | (arg1)->base_OnTerminate(arg2,arg3); | |
8033 | ||
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) SWIG_fail; | |
8036 | } | |
8037 | Py_INCREF(Py_None); resultobj = Py_None; | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject *resultobj; | |
8046 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8047 | PyObject * obj0 = 0 ; | |
8048 | char *kwnames[] = { | |
8049 | (char *) "self", NULL | |
8050 | }; | |
8051 | ||
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8054 | { | |
8055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8056 | (arg1)->Redirect(); | |
8057 | ||
8058 | wxPyEndAllowThreads(__tstate); | |
8059 | if (PyErr_Occurred()) SWIG_fail; | |
8060 | } | |
8061 | Py_INCREF(Py_None); resultobj = Py_None; | |
8062 | return resultobj; | |
8063 | fail: | |
8064 | return NULL; | |
8065 | } | |
8066 | ||
8067 | ||
8068 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8069 | PyObject *resultobj; | |
8070 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8071 | bool result; | |
8072 | PyObject * obj0 = 0 ; | |
8073 | char *kwnames[] = { | |
8074 | (char *) "self", NULL | |
8075 | }; | |
8076 | ||
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8079 | { | |
8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8081 | result = (bool)(arg1)->IsRedirected(); | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) SWIG_fail; | |
8085 | } | |
8086 | resultobj = PyInt_FromLong((long)result); | |
8087 | return resultobj; | |
8088 | fail: | |
8089 | return NULL; | |
8090 | } | |
8091 | ||
8092 | ||
8093 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8094 | PyObject *resultobj; | |
8095 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8096 | PyObject * obj0 = 0 ; | |
8097 | char *kwnames[] = { | |
8098 | (char *) "self", NULL | |
8099 | }; | |
8100 | ||
8101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8103 | { | |
8104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8105 | (arg1)->Detach(); | |
8106 | ||
8107 | wxPyEndAllowThreads(__tstate); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
8110 | Py_INCREF(Py_None); resultobj = Py_None; | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
8117 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8118 | PyObject *resultobj; | |
8119 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8120 | wxInputStream *result; | |
8121 | PyObject * obj0 = 0 ; | |
8122 | char *kwnames[] = { | |
8123 | (char *) "self", NULL | |
8124 | }; | |
8125 | ||
8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8128 | { | |
8129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8130 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8131 | ||
8132 | wxPyEndAllowThreads(__tstate); | |
8133 | if (PyErr_Occurred()) SWIG_fail; | |
8134 | } | |
8135 | { | |
8136 | wxPyInputStream * _ptr = NULL; | |
8137 | ||
8138 | if (result) { | |
8139 | _ptr = new wxPyInputStream(result); | |
8140 | } | |
423f194a | 8141 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8142 | } |
8143 | return resultobj; | |
8144 | fail: | |
8145 | return NULL; | |
8146 | } | |
8147 | ||
8148 | ||
8149 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8150 | PyObject *resultobj; | |
8151 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8152 | wxInputStream *result; | |
8153 | PyObject * obj0 = 0 ; | |
8154 | char *kwnames[] = { | |
8155 | (char *) "self", NULL | |
8156 | }; | |
8157 | ||
8158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8160 | { | |
8161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8162 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8163 | ||
8164 | wxPyEndAllowThreads(__tstate); | |
8165 | if (PyErr_Occurred()) SWIG_fail; | |
8166 | } | |
8167 | { | |
8168 | wxPyInputStream * _ptr = NULL; | |
8169 | ||
8170 | if (result) { | |
8171 | _ptr = new wxPyInputStream(result); | |
8172 | } | |
423f194a | 8173 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8174 | } |
8175 | return resultobj; | |
8176 | fail: | |
8177 | return NULL; | |
8178 | } | |
8179 | ||
8180 | ||
8181 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8182 | PyObject *resultobj; | |
8183 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8184 | wxOutputStream *result; | |
8185 | PyObject * obj0 = 0 ; | |
8186 | char *kwnames[] = { | |
8187 | (char *) "self", NULL | |
8188 | }; | |
8189 | ||
8190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
8191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8192 | { | |
8193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8194 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8195 | ||
8196 | wxPyEndAllowThreads(__tstate); | |
8197 | if (PyErr_Occurred()) SWIG_fail; | |
8198 | } | |
8199 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8200 | return resultobj; | |
8201 | fail: | |
8202 | return NULL; | |
8203 | } | |
8204 | ||
8205 | ||
8206 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8207 | PyObject *resultobj; | |
8208 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8209 | PyObject * obj0 = 0 ; | |
8210 | char *kwnames[] = { | |
8211 | (char *) "self", NULL | |
8212 | }; | |
8213 | ||
8214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",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 | (arg1)->CloseOutput(); | |
8219 | ||
8220 | wxPyEndAllowThreads(__tstate); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
8222 | } | |
8223 | Py_INCREF(Py_None); resultobj = Py_None; | |
8224 | return resultobj; | |
8225 | fail: | |
8226 | return NULL; | |
8227 | } | |
8228 | ||
8229 | ||
8230 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8231 | PyObject *resultobj; | |
8232 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8233 | bool result; | |
8234 | PyObject * obj0 = 0 ; | |
8235 | char *kwnames[] = { | |
8236 | (char *) "self", NULL | |
8237 | }; | |
8238 | ||
8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8241 | { | |
8242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8243 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8244 | ||
8245 | wxPyEndAllowThreads(__tstate); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | resultobj = PyInt_FromLong((long)result); | |
8249 | return resultobj; | |
8250 | fail: | |
8251 | return NULL; | |
8252 | } | |
8253 | ||
8254 | ||
8255 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8256 | PyObject *resultobj; | |
8257 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8258 | bool result; | |
8259 | PyObject * obj0 = 0 ; | |
8260 | char *kwnames[] = { | |
8261 | (char *) "self", NULL | |
8262 | }; | |
8263 | ||
8264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8266 | { | |
8267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8268 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8269 | ||
8270 | wxPyEndAllowThreads(__tstate); | |
8271 | if (PyErr_Occurred()) SWIG_fail; | |
8272 | } | |
8273 | resultobj = PyInt_FromLong((long)result); | |
8274 | return resultobj; | |
8275 | fail: | |
8276 | return NULL; | |
8277 | } | |
8278 | ||
8279 | ||
8280 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8281 | PyObject *resultobj; | |
8282 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8283 | bool result; | |
8284 | PyObject * obj0 = 0 ; | |
8285 | char *kwnames[] = { | |
8286 | (char *) "self", NULL | |
8287 | }; | |
8288 | ||
8289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8291 | { | |
8292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8293 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8294 | ||
8295 | wxPyEndAllowThreads(__tstate); | |
8296 | if (PyErr_Occurred()) SWIG_fail; | |
8297 | } | |
8298 | resultobj = PyInt_FromLong((long)result); | |
8299 | return resultobj; | |
8300 | fail: | |
8301 | return NULL; | |
8302 | } | |
8303 | ||
8304 | ||
8305 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
8306 | PyObject *obj; | |
8307 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8308 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
8309 | Py_INCREF(obj); | |
8310 | return Py_BuildValue((char *)""); | |
8311 | } | |
8312 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8313 | PyObject *resultobj; | |
8314 | int arg1 = (int) 0 ; | |
8315 | int arg2 = (int) 0 ; | |
8316 | int arg3 = (int) 0 ; | |
8317 | wxProcessEvent *result; | |
8318 | char *kwnames[] = { | |
8319 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
8320 | }; | |
8321 | ||
8322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ProcessEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
8323 | { | |
8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8325 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
8326 | ||
8327 | wxPyEndAllowThreads(__tstate); | |
8328 | if (PyErr_Occurred()) SWIG_fail; | |
8329 | } | |
8330 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
8331 | return resultobj; | |
8332 | fail: | |
8333 | return NULL; | |
8334 | } | |
8335 | ||
8336 | ||
8337 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8338 | PyObject *resultobj; | |
8339 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8340 | int result; | |
8341 | PyObject * obj0 = 0 ; | |
8342 | char *kwnames[] = { | |
8343 | (char *) "self", NULL | |
8344 | }; | |
8345 | ||
8346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
8347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8348 | { | |
8349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8350 | result = (int)(arg1)->GetPid(); | |
8351 | ||
8352 | wxPyEndAllowThreads(__tstate); | |
8353 | if (PyErr_Occurred()) SWIG_fail; | |
8354 | } | |
8355 | resultobj = PyInt_FromLong((long)result); | |
8356 | return resultobj; | |
8357 | fail: | |
8358 | return NULL; | |
8359 | } | |
8360 | ||
8361 | ||
8362 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8363 | PyObject *resultobj; | |
8364 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8365 | int result; | |
8366 | PyObject * obj0 = 0 ; | |
8367 | char *kwnames[] = { | |
8368 | (char *) "self", NULL | |
8369 | }; | |
8370 | ||
8371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
8372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8373 | { | |
8374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8375 | result = (int)(arg1)->GetExitCode(); | |
8376 | ||
8377 | wxPyEndAllowThreads(__tstate); | |
8378 | if (PyErr_Occurred()) SWIG_fail; | |
8379 | } | |
8380 | resultobj = PyInt_FromLong((long)result); | |
8381 | return resultobj; | |
8382 | fail: | |
8383 | return NULL; | |
8384 | } | |
8385 | ||
8386 | ||
8387 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8388 | PyObject *resultobj; | |
8389 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8390 | int arg2 ; | |
8391 | PyObject * obj0 = 0 ; | |
8392 | char *kwnames[] = { | |
8393 | (char *) "self",(char *) "m_pid", NULL | |
8394 | }; | |
8395 | ||
8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_pid_set",kwnames,&obj0,&arg2)) goto fail; | |
8397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8398 | if (arg1) (arg1)->m_pid = arg2; | |
8399 | ||
8400 | Py_INCREF(Py_None); resultobj = Py_None; | |
8401 | return resultobj; | |
8402 | fail: | |
8403 | return NULL; | |
8404 | } | |
8405 | ||
8406 | ||
8407 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8408 | PyObject *resultobj; | |
8409 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8410 | int result; | |
8411 | PyObject * obj0 = 0 ; | |
8412 | char *kwnames[] = { | |
8413 | (char *) "self", NULL | |
8414 | }; | |
8415 | ||
8416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
8417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8418 | result = (int) ((arg1)->m_pid); | |
8419 | ||
8420 | resultobj = PyInt_FromLong((long)result); | |
8421 | return resultobj; | |
8422 | fail: | |
8423 | return NULL; | |
8424 | } | |
8425 | ||
8426 | ||
8427 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8428 | PyObject *resultobj; | |
8429 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8430 | int arg2 ; | |
8431 | PyObject * obj0 = 0 ; | |
8432 | char *kwnames[] = { | |
8433 | (char *) "self",(char *) "m_exitcode", NULL | |
8434 | }; | |
8435 | ||
8436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_exitcode_set",kwnames,&obj0,&arg2)) goto fail; | |
8437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8438 | if (arg1) (arg1)->m_exitcode = arg2; | |
8439 | ||
8440 | Py_INCREF(Py_None); resultobj = Py_None; | |
8441 | return resultobj; | |
8442 | fail: | |
8443 | return NULL; | |
8444 | } | |
8445 | ||
8446 | ||
8447 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8448 | PyObject *resultobj; | |
8449 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8450 | int result; | |
8451 | PyObject * obj0 = 0 ; | |
8452 | char *kwnames[] = { | |
8453 | (char *) "self", NULL | |
8454 | }; | |
8455 | ||
8456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
8457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8458 | result = (int) ((arg1)->m_exitcode); | |
8459 | ||
8460 | resultobj = PyInt_FromLong((long)result); | |
8461 | return resultobj; | |
8462 | fail: | |
8463 | return NULL; | |
8464 | } | |
8465 | ||
8466 | ||
8467 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
8468 | PyObject *obj; | |
8469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8470 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
8471 | Py_INCREF(obj); | |
8472 | return Py_BuildValue((char *)""); | |
8473 | } | |
8474 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8475 | PyObject *resultobj; | |
8476 | wxString *arg1 = 0 ; | |
8477 | int arg2 = (int) wxEXEC_ASYNC ; | |
8478 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
8479 | long result; | |
423f194a | 8480 | bool temp1 = False ; |
d14a1e28 RD |
8481 | PyObject * obj0 = 0 ; |
8482 | PyObject * obj2 = 0 ; | |
8483 | char *kwnames[] = { | |
8484 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
8485 | }; | |
8486 | ||
8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Execute",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8488 | { | |
8489 | arg1 = wxString_in_helper(obj0); | |
8490 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8491 | temp1 = True; |
d14a1e28 RD |
8492 | } |
8493 | if (obj2) { | |
8494 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8495 | } | |
8496 | { | |
8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8498 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
8499 | ||
8500 | wxPyEndAllowThreads(__tstate); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | } | |
8503 | resultobj = PyInt_FromLong((long)result); | |
8504 | { | |
8505 | if (temp1) | |
8506 | delete arg1; | |
8507 | } | |
8508 | return resultobj; | |
8509 | fail: | |
8510 | { | |
8511 | if (temp1) | |
8512 | delete arg1; | |
8513 | } | |
8514 | return NULL; | |
8515 | } | |
8516 | ||
8517 | ||
8518 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8519 | PyObject *resultobj; | |
8520 | int arg1 = (int) wxJOYSTICK1 ; | |
8521 | wxJoystick *result; | |
8522 | char *kwnames[] = { | |
8523 | (char *) "joystick", NULL | |
8524 | }; | |
8525 | ||
8526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_Joystick",kwnames,&arg1)) goto fail; | |
8527 | { | |
8528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8529 | result = (wxJoystick *)new wxJoystick(arg1); | |
8530 | ||
8531 | wxPyEndAllowThreads(__tstate); | |
8532 | if (PyErr_Occurred()) SWIG_fail; | |
8533 | } | |
8534 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
8535 | return resultobj; | |
8536 | fail: | |
8537 | return NULL; | |
8538 | } | |
8539 | ||
8540 | ||
8541 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8542 | PyObject *resultobj; | |
8543 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8544 | PyObject * obj0 = 0 ; | |
8545 | char *kwnames[] = { | |
8546 | (char *) "self", NULL | |
8547 | }; | |
8548 | ||
8549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
8550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8551 | { | |
8552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8553 | delete arg1; | |
8554 | ||
8555 | wxPyEndAllowThreads(__tstate); | |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
8557 | } | |
8558 | Py_INCREF(Py_None); resultobj = Py_None; | |
8559 | return resultobj; | |
8560 | fail: | |
8561 | return NULL; | |
8562 | } | |
8563 | ||
8564 | ||
8565 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8566 | PyObject *resultobj; | |
8567 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8568 | wxPoint result; | |
8569 | PyObject * obj0 = 0 ; | |
8570 | char *kwnames[] = { | |
8571 | (char *) "self", NULL | |
8572 | }; | |
8573 | ||
8574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
8575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8576 | { | |
8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8578 | result = (arg1)->GetPosition(); | |
8579 | ||
8580 | wxPyEndAllowThreads(__tstate); | |
8581 | if (PyErr_Occurred()) SWIG_fail; | |
8582 | } | |
8583 | { | |
8584 | wxPoint * resultptr; | |
8585 | resultptr = new wxPoint((wxPoint &) result); | |
8586 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
8587 | } | |
8588 | return resultobj; | |
8589 | fail: | |
8590 | return NULL; | |
8591 | } | |
8592 | ||
8593 | ||
8594 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8595 | PyObject *resultobj; | |
8596 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8597 | int result; | |
8598 | PyObject * obj0 = 0 ; | |
8599 | char *kwnames[] = { | |
8600 | (char *) "self", NULL | |
8601 | }; | |
8602 | ||
8603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
8604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8605 | { | |
8606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8607 | result = (int)(arg1)->GetZPosition(); | |
8608 | ||
8609 | wxPyEndAllowThreads(__tstate); | |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
8611 | } | |
8612 | resultobj = PyInt_FromLong((long)result); | |
8613 | return resultobj; | |
8614 | fail: | |
8615 | return NULL; | |
8616 | } | |
8617 | ||
8618 | ||
8619 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8620 | PyObject *resultobj; | |
8621 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8622 | int result; | |
8623 | PyObject * obj0 = 0 ; | |
8624 | char *kwnames[] = { | |
8625 | (char *) "self", NULL | |
8626 | }; | |
8627 | ||
8628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
8629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8630 | { | |
8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8632 | result = (int)(arg1)->GetButtonState(); | |
8633 | ||
8634 | wxPyEndAllowThreads(__tstate); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | } | |
8637 | resultobj = PyInt_FromLong((long)result); | |
8638 | return resultobj; | |
8639 | fail: | |
8640 | return NULL; | |
8641 | } | |
8642 | ||
8643 | ||
8644 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8645 | PyObject *resultobj; | |
8646 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8647 | int result; | |
8648 | PyObject * obj0 = 0 ; | |
8649 | char *kwnames[] = { | |
8650 | (char *) "self", NULL | |
8651 | }; | |
8652 | ||
8653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
8654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8655 | { | |
8656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8657 | result = (int)(arg1)->GetPOVPosition(); | |
8658 | ||
8659 | wxPyEndAllowThreads(__tstate); | |
8660 | if (PyErr_Occurred()) SWIG_fail; | |
8661 | } | |
8662 | resultobj = PyInt_FromLong((long)result); | |
8663 | return resultobj; | |
8664 | fail: | |
8665 | return NULL; | |
8666 | } | |
8667 | ||
8668 | ||
8669 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8670 | PyObject *resultobj; | |
8671 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8672 | int result; | |
8673 | PyObject * obj0 = 0 ; | |
8674 | char *kwnames[] = { | |
8675 | (char *) "self", NULL | |
8676 | }; | |
8677 | ||
8678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
8679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8680 | { | |
8681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8682 | result = (int)(arg1)->GetPOVCTSPosition(); | |
8683 | ||
8684 | wxPyEndAllowThreads(__tstate); | |
8685 | if (PyErr_Occurred()) SWIG_fail; | |
8686 | } | |
8687 | resultobj = PyInt_FromLong((long)result); | |
8688 | return resultobj; | |
8689 | fail: | |
8690 | return NULL; | |
8691 | } | |
8692 | ||
8693 | ||
8694 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8695 | PyObject *resultobj; | |
8696 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8697 | int result; | |
8698 | PyObject * obj0 = 0 ; | |
8699 | char *kwnames[] = { | |
8700 | (char *) "self", NULL | |
8701 | }; | |
8702 | ||
8703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
8704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8705 | { | |
8706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8707 | result = (int)(arg1)->GetRudderPosition(); | |
8708 | ||
8709 | wxPyEndAllowThreads(__tstate); | |
8710 | if (PyErr_Occurred()) SWIG_fail; | |
8711 | } | |
8712 | resultobj = PyInt_FromLong((long)result); | |
8713 | return resultobj; | |
8714 | fail: | |
8715 | return NULL; | |
8716 | } | |
8717 | ||
8718 | ||
8719 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8720 | PyObject *resultobj; | |
8721 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8722 | int result; | |
8723 | PyObject * obj0 = 0 ; | |
8724 | char *kwnames[] = { | |
8725 | (char *) "self", NULL | |
8726 | }; | |
8727 | ||
8728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
8729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8730 | { | |
8731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8732 | result = (int)(arg1)->GetUPosition(); | |
8733 | ||
8734 | wxPyEndAllowThreads(__tstate); | |
8735 | if (PyErr_Occurred()) SWIG_fail; | |
8736 | } | |
8737 | resultobj = PyInt_FromLong((long)result); | |
8738 | return resultobj; | |
8739 | fail: | |
8740 | return NULL; | |
8741 | } | |
8742 | ||
8743 | ||
8744 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8745 | PyObject *resultobj; | |
8746 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8747 | int result; | |
8748 | PyObject * obj0 = 0 ; | |
8749 | char *kwnames[] = { | |
8750 | (char *) "self", NULL | |
8751 | }; | |
8752 | ||
8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
8754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8755 | { | |
8756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8757 | result = (int)(arg1)->GetVPosition(); | |
8758 | ||
8759 | wxPyEndAllowThreads(__tstate); | |
8760 | if (PyErr_Occurred()) SWIG_fail; | |
8761 | } | |
8762 | resultobj = PyInt_FromLong((long)result); | |
8763 | return resultobj; | |
8764 | fail: | |
8765 | return NULL; | |
8766 | } | |
8767 | ||
8768 | ||
8769 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8770 | PyObject *resultobj; | |
8771 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8772 | int result; | |
8773 | PyObject * obj0 = 0 ; | |
8774 | char *kwnames[] = { | |
8775 | (char *) "self", NULL | |
8776 | }; | |
8777 | ||
8778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
8779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8780 | { | |
8781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8782 | result = (int)(arg1)->GetMovementThreshold(); | |
8783 | ||
8784 | wxPyEndAllowThreads(__tstate); | |
8785 | if (PyErr_Occurred()) SWIG_fail; | |
8786 | } | |
8787 | resultobj = PyInt_FromLong((long)result); | |
8788 | return resultobj; | |
8789 | fail: | |
8790 | return NULL; | |
8791 | } | |
8792 | ||
8793 | ||
8794 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8795 | PyObject *resultobj; | |
8796 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8797 | int arg2 ; | |
8798 | PyObject * obj0 = 0 ; | |
8799 | char *kwnames[] = { | |
8800 | (char *) "self",(char *) "threshold", NULL | |
8801 | }; | |
8802 | ||
8803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Joystick_SetMovementThreshold",kwnames,&obj0,&arg2)) goto fail; | |
8804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8805 | { | |
8806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8807 | (arg1)->SetMovementThreshold(arg2); | |
8808 | ||
8809 | wxPyEndAllowThreads(__tstate); | |
8810 | if (PyErr_Occurred()) SWIG_fail; | |
8811 | } | |
8812 | Py_INCREF(Py_None); resultobj = Py_None; | |
8813 | return resultobj; | |
8814 | fail: | |
8815 | return NULL; | |
8816 | } | |
8817 | ||
8818 | ||
8819 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8820 | PyObject *resultobj; | |
8821 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8822 | bool result; | |
8823 | PyObject * obj0 = 0 ; | |
8824 | char *kwnames[] = { | |
8825 | (char *) "self", NULL | |
8826 | }; | |
8827 | ||
8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
8829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8830 | { | |
8831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8832 | result = (bool)(arg1)->IsOk(); | |
8833 | ||
8834 | wxPyEndAllowThreads(__tstate); | |
8835 | if (PyErr_Occurred()) SWIG_fail; | |
8836 | } | |
8837 | resultobj = PyInt_FromLong((long)result); | |
8838 | return resultobj; | |
8839 | fail: | |
8840 | return NULL; | |
8841 | } | |
8842 | ||
8843 | ||
8844 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8845 | PyObject *resultobj; | |
8846 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8847 | int result; | |
8848 | PyObject * obj0 = 0 ; | |
8849 | char *kwnames[] = { | |
8850 | (char *) "self", NULL | |
8851 | }; | |
8852 | ||
8853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
8854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8855 | { | |
8856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8857 | result = (int)(arg1)->GetNumberJoysticks(); | |
8858 | ||
8859 | wxPyEndAllowThreads(__tstate); | |
8860 | if (PyErr_Occurred()) SWIG_fail; | |
8861 | } | |
8862 | resultobj = PyInt_FromLong((long)result); | |
8863 | return resultobj; | |
8864 | fail: | |
8865 | return NULL; | |
8866 | } | |
8867 | ||
8868 | ||
8869 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8870 | PyObject *resultobj; | |
8871 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8872 | int result; | |
8873 | PyObject * obj0 = 0 ; | |
8874 | char *kwnames[] = { | |
8875 | (char *) "self", NULL | |
8876 | }; | |
8877 | ||
8878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
8879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8880 | { | |
8881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8882 | result = (int)(arg1)->GetManufacturerId(); | |
8883 | ||
8884 | wxPyEndAllowThreads(__tstate); | |
8885 | if (PyErr_Occurred()) SWIG_fail; | |
8886 | } | |
8887 | resultobj = PyInt_FromLong((long)result); | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | return NULL; | |
8891 | } | |
8892 | ||
8893 | ||
8894 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8895 | PyObject *resultobj; | |
8896 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8897 | int result; | |
8898 | PyObject * obj0 = 0 ; | |
8899 | char *kwnames[] = { | |
8900 | (char *) "self", NULL | |
8901 | }; | |
8902 | ||
8903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
8904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8905 | { | |
8906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8907 | result = (int)(arg1)->GetProductId(); | |
8908 | ||
8909 | wxPyEndAllowThreads(__tstate); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
8911 | } | |
8912 | resultobj = PyInt_FromLong((long)result); | |
8913 | return resultobj; | |
8914 | fail: | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
8919 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8920 | PyObject *resultobj; | |
8921 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8922 | wxString result; | |
8923 | PyObject * obj0 = 0 ; | |
8924 | char *kwnames[] = { | |
8925 | (char *) "self", NULL | |
8926 | }; | |
8927 | ||
8928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
8929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8930 | { | |
8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8932 | result = (arg1)->GetProductName(); | |
8933 | ||
8934 | wxPyEndAllowThreads(__tstate); | |
8935 | if (PyErr_Occurred()) SWIG_fail; | |
8936 | } | |
8937 | { | |
8938 | #if wxUSE_UNICODE | |
8939 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8940 | #else | |
8941 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8942 | #endif | |
8943 | } | |
8944 | return resultobj; | |
8945 | fail: | |
8946 | return NULL; | |
8947 | } | |
8948 | ||
8949 | ||
8950 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8951 | PyObject *resultobj; | |
8952 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8953 | int result; | |
8954 | PyObject * obj0 = 0 ; | |
8955 | char *kwnames[] = { | |
8956 | (char *) "self", NULL | |
8957 | }; | |
8958 | ||
8959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
8960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8961 | { | |
8962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8963 | result = (int)(arg1)->GetXMin(); | |
8964 | ||
8965 | wxPyEndAllowThreads(__tstate); | |
8966 | if (PyErr_Occurred()) SWIG_fail; | |
8967 | } | |
8968 | resultobj = PyInt_FromLong((long)result); | |
8969 | return resultobj; | |
8970 | fail: | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
8975 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8976 | PyObject *resultobj; | |
8977 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8978 | int result; | |
8979 | PyObject * obj0 = 0 ; | |
8980 | char *kwnames[] = { | |
8981 | (char *) "self", NULL | |
8982 | }; | |
8983 | ||
8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
8985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8986 | { | |
8987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8988 | result = (int)(arg1)->GetYMin(); | |
8989 | ||
8990 | wxPyEndAllowThreads(__tstate); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
8992 | } | |
8993 | resultobj = PyInt_FromLong((long)result); | |
8994 | return resultobj; | |
8995 | fail: | |
8996 | return NULL; | |
8997 | } | |
8998 | ||
8999 | ||
9000 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9001 | PyObject *resultobj; | |
9002 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9003 | int result; | |
9004 | PyObject * obj0 = 0 ; | |
9005 | char *kwnames[] = { | |
9006 | (char *) "self", NULL | |
9007 | }; | |
9008 | ||
9009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9011 | { | |
9012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9013 | result = (int)(arg1)->GetZMin(); | |
9014 | ||
9015 | wxPyEndAllowThreads(__tstate); | |
9016 | if (PyErr_Occurred()) SWIG_fail; | |
9017 | } | |
9018 | resultobj = PyInt_FromLong((long)result); | |
9019 | return resultobj; | |
9020 | fail: | |
9021 | return NULL; | |
9022 | } | |
9023 | ||
9024 | ||
9025 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9026 | PyObject *resultobj; | |
9027 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9028 | int result; | |
9029 | PyObject * obj0 = 0 ; | |
9030 | char *kwnames[] = { | |
9031 | (char *) "self", NULL | |
9032 | }; | |
9033 | ||
9034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9036 | { | |
9037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9038 | result = (int)(arg1)->GetXMax(); | |
9039 | ||
9040 | wxPyEndAllowThreads(__tstate); | |
9041 | if (PyErr_Occurred()) SWIG_fail; | |
9042 | } | |
9043 | resultobj = PyInt_FromLong((long)result); | |
9044 | return resultobj; | |
9045 | fail: | |
9046 | return NULL; | |
9047 | } | |
9048 | ||
9049 | ||
9050 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9051 | PyObject *resultobj; | |
9052 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9053 | int result; | |
9054 | PyObject * obj0 = 0 ; | |
9055 | char *kwnames[] = { | |
9056 | (char *) "self", NULL | |
9057 | }; | |
9058 | ||
9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9061 | { | |
9062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9063 | result = (int)(arg1)->GetYMax(); | |
9064 | ||
9065 | wxPyEndAllowThreads(__tstate); | |
9066 | if (PyErr_Occurred()) SWIG_fail; | |
9067 | } | |
9068 | resultobj = PyInt_FromLong((long)result); | |
9069 | return resultobj; | |
9070 | fail: | |
9071 | return NULL; | |
9072 | } | |
9073 | ||
9074 | ||
9075 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9076 | PyObject *resultobj; | |
9077 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9078 | int result; | |
9079 | PyObject * obj0 = 0 ; | |
9080 | char *kwnames[] = { | |
9081 | (char *) "self", NULL | |
9082 | }; | |
9083 | ||
9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9086 | { | |
9087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9088 | result = (int)(arg1)->GetZMax(); | |
9089 | ||
9090 | wxPyEndAllowThreads(__tstate); | |
9091 | if (PyErr_Occurred()) SWIG_fail; | |
9092 | } | |
9093 | resultobj = PyInt_FromLong((long)result); | |
9094 | return resultobj; | |
9095 | fail: | |
9096 | return NULL; | |
9097 | } | |
9098 | ||
9099 | ||
9100 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9101 | PyObject *resultobj; | |
9102 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9103 | int result; | |
9104 | PyObject * obj0 = 0 ; | |
9105 | char *kwnames[] = { | |
9106 | (char *) "self", NULL | |
9107 | }; | |
9108 | ||
9109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9111 | { | |
9112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9113 | result = (int)(arg1)->GetNumberButtons(); | |
9114 | ||
9115 | wxPyEndAllowThreads(__tstate); | |
9116 | if (PyErr_Occurred()) SWIG_fail; | |
9117 | } | |
9118 | resultobj = PyInt_FromLong((long)result); | |
9119 | return resultobj; | |
9120 | fail: | |
9121 | return NULL; | |
9122 | } | |
9123 | ||
9124 | ||
9125 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9126 | PyObject *resultobj; | |
9127 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9128 | int result; | |
9129 | PyObject * obj0 = 0 ; | |
9130 | char *kwnames[] = { | |
9131 | (char *) "self", NULL | |
9132 | }; | |
9133 | ||
9134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9136 | { | |
9137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9138 | result = (int)(arg1)->GetNumberAxes(); | |
9139 | ||
9140 | wxPyEndAllowThreads(__tstate); | |
9141 | if (PyErr_Occurred()) SWIG_fail; | |
9142 | } | |
9143 | resultobj = PyInt_FromLong((long)result); | |
9144 | return resultobj; | |
9145 | fail: | |
9146 | return NULL; | |
9147 | } | |
9148 | ||
9149 | ||
9150 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9151 | PyObject *resultobj; | |
9152 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9153 | int result; | |
9154 | PyObject * obj0 = 0 ; | |
9155 | char *kwnames[] = { | |
9156 | (char *) "self", NULL | |
9157 | }; | |
9158 | ||
9159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9161 | { | |
9162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9163 | result = (int)(arg1)->GetMaxButtons(); | |
9164 | ||
9165 | wxPyEndAllowThreads(__tstate); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
9167 | } | |
9168 | resultobj = PyInt_FromLong((long)result); | |
9169 | return resultobj; | |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
9175 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject *resultobj; | |
9177 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9178 | int result; | |
9179 | PyObject * obj0 = 0 ; | |
9180 | char *kwnames[] = { | |
9181 | (char *) "self", NULL | |
9182 | }; | |
9183 | ||
9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9186 | { | |
9187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9188 | result = (int)(arg1)->GetMaxAxes(); | |
9189 | ||
9190 | wxPyEndAllowThreads(__tstate); | |
9191 | if (PyErr_Occurred()) SWIG_fail; | |
9192 | } | |
9193 | resultobj = PyInt_FromLong((long)result); | |
9194 | return resultobj; | |
9195 | fail: | |
9196 | return NULL; | |
9197 | } | |
9198 | ||
9199 | ||
9200 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9201 | PyObject *resultobj; | |
9202 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9203 | int result; | |
9204 | PyObject * obj0 = 0 ; | |
9205 | char *kwnames[] = { | |
9206 | (char *) "self", NULL | |
9207 | }; | |
9208 | ||
9209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9211 | { | |
9212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9213 | result = (int)(arg1)->GetPollingMin(); | |
9214 | ||
9215 | wxPyEndAllowThreads(__tstate); | |
9216 | if (PyErr_Occurred()) SWIG_fail; | |
9217 | } | |
9218 | resultobj = PyInt_FromLong((long)result); | |
9219 | return resultobj; | |
9220 | fail: | |
9221 | return NULL; | |
9222 | } | |
9223 | ||
9224 | ||
9225 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9226 | PyObject *resultobj; | |
9227 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9228 | int result; | |
9229 | PyObject * obj0 = 0 ; | |
9230 | char *kwnames[] = { | |
9231 | (char *) "self", NULL | |
9232 | }; | |
9233 | ||
9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
9235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9236 | { | |
9237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9238 | result = (int)(arg1)->GetPollingMax(); | |
9239 | ||
9240 | wxPyEndAllowThreads(__tstate); | |
9241 | if (PyErr_Occurred()) SWIG_fail; | |
9242 | } | |
9243 | resultobj = PyInt_FromLong((long)result); | |
9244 | return resultobj; | |
9245 | fail: | |
9246 | return NULL; | |
9247 | } | |
9248 | ||
9249 | ||
9250 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9251 | PyObject *resultobj; | |
9252 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9253 | int result; | |
9254 | PyObject * obj0 = 0 ; | |
9255 | char *kwnames[] = { | |
9256 | (char *) "self", NULL | |
9257 | }; | |
9258 | ||
9259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
9260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9261 | { | |
9262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9263 | result = (int)(arg1)->GetRudderMin(); | |
9264 | ||
9265 | wxPyEndAllowThreads(__tstate); | |
9266 | if (PyErr_Occurred()) SWIG_fail; | |
9267 | } | |
9268 | resultobj = PyInt_FromLong((long)result); | |
9269 | return resultobj; | |
9270 | fail: | |
9271 | return NULL; | |
9272 | } | |
9273 | ||
9274 | ||
9275 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9276 | PyObject *resultobj; | |
9277 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9278 | int result; | |
9279 | PyObject * obj0 = 0 ; | |
9280 | char *kwnames[] = { | |
9281 | (char *) "self", NULL | |
9282 | }; | |
9283 | ||
9284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
9285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9286 | { | |
9287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9288 | result = (int)(arg1)->GetRudderMax(); | |
9289 | ||
9290 | wxPyEndAllowThreads(__tstate); | |
9291 | if (PyErr_Occurred()) SWIG_fail; | |
9292 | } | |
9293 | resultobj = PyInt_FromLong((long)result); | |
9294 | return resultobj; | |
9295 | fail: | |
9296 | return NULL; | |
9297 | } | |
9298 | ||
9299 | ||
9300 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9301 | PyObject *resultobj; | |
9302 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9303 | int result; | |
9304 | PyObject * obj0 = 0 ; | |
9305 | char *kwnames[] = { | |
9306 | (char *) "self", NULL | |
9307 | }; | |
9308 | ||
9309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
9310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9311 | { | |
9312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9313 | result = (int)(arg1)->GetUMin(); | |
9314 | ||
9315 | wxPyEndAllowThreads(__tstate); | |
9316 | if (PyErr_Occurred()) SWIG_fail; | |
9317 | } | |
9318 | resultobj = PyInt_FromLong((long)result); | |
9319 | return resultobj; | |
9320 | fail: | |
9321 | return NULL; | |
9322 | } | |
9323 | ||
9324 | ||
9325 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9326 | PyObject *resultobj; | |
9327 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9328 | int result; | |
9329 | PyObject * obj0 = 0 ; | |
9330 | char *kwnames[] = { | |
9331 | (char *) "self", NULL | |
9332 | }; | |
9333 | ||
9334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
9335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9336 | { | |
9337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9338 | result = (int)(arg1)->GetUMax(); | |
9339 | ||
9340 | wxPyEndAllowThreads(__tstate); | |
9341 | if (PyErr_Occurred()) SWIG_fail; | |
9342 | } | |
9343 | resultobj = PyInt_FromLong((long)result); | |
9344 | return resultobj; | |
9345 | fail: | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
9350 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9351 | PyObject *resultobj; | |
9352 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9353 | int result; | |
9354 | PyObject * obj0 = 0 ; | |
9355 | char *kwnames[] = { | |
9356 | (char *) "self", NULL | |
9357 | }; | |
9358 | ||
9359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
9360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9361 | { | |
9362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9363 | result = (int)(arg1)->GetVMin(); | |
9364 | ||
9365 | wxPyEndAllowThreads(__tstate); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
9368 | resultobj = PyInt_FromLong((long)result); | |
9369 | return resultobj; | |
9370 | fail: | |
9371 | return NULL; | |
9372 | } | |
9373 | ||
9374 | ||
9375 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9376 | PyObject *resultobj; | |
9377 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9378 | int result; | |
9379 | PyObject * obj0 = 0 ; | |
9380 | char *kwnames[] = { | |
9381 | (char *) "self", NULL | |
9382 | }; | |
9383 | ||
9384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
9385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9386 | { | |
9387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9388 | result = (int)(arg1)->GetVMax(); | |
9389 | ||
9390 | wxPyEndAllowThreads(__tstate); | |
9391 | if (PyErr_Occurred()) SWIG_fail; | |
9392 | } | |
9393 | resultobj = PyInt_FromLong((long)result); | |
9394 | return resultobj; | |
9395 | fail: | |
9396 | return NULL; | |
9397 | } | |
9398 | ||
9399 | ||
9400 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9401 | PyObject *resultobj; | |
9402 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9403 | bool result; | |
9404 | PyObject * obj0 = 0 ; | |
9405 | char *kwnames[] = { | |
9406 | (char *) "self", NULL | |
9407 | }; | |
9408 | ||
9409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
9410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9411 | { | |
9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9413 | result = (bool)(arg1)->HasRudder(); | |
9414 | ||
9415 | wxPyEndAllowThreads(__tstate); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
9418 | resultobj = PyInt_FromLong((long)result); | |
9419 | return resultobj; | |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
9425 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9426 | PyObject *resultobj; | |
9427 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9428 | bool result; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | char *kwnames[] = { | |
9431 | (char *) "self", NULL | |
9432 | }; | |
9433 | ||
9434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
9435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9436 | { | |
9437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9438 | result = (bool)(arg1)->HasZ(); | |
9439 | ||
9440 | wxPyEndAllowThreads(__tstate); | |
9441 | if (PyErr_Occurred()) SWIG_fail; | |
9442 | } | |
9443 | resultobj = PyInt_FromLong((long)result); | |
9444 | return resultobj; | |
9445 | fail: | |
9446 | return NULL; | |
9447 | } | |
9448 | ||
9449 | ||
9450 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9451 | PyObject *resultobj; | |
9452 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9453 | bool result; | |
9454 | PyObject * obj0 = 0 ; | |
9455 | char *kwnames[] = { | |
9456 | (char *) "self", NULL | |
9457 | }; | |
9458 | ||
9459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
9460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9461 | { | |
9462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9463 | result = (bool)(arg1)->HasU(); | |
9464 | ||
9465 | wxPyEndAllowThreads(__tstate); | |
9466 | if (PyErr_Occurred()) SWIG_fail; | |
9467 | } | |
9468 | resultobj = PyInt_FromLong((long)result); | |
9469 | return resultobj; | |
9470 | fail: | |
9471 | return NULL; | |
9472 | } | |
9473 | ||
9474 | ||
9475 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9476 | PyObject *resultobj; | |
9477 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9478 | bool result; | |
9479 | PyObject * obj0 = 0 ; | |
9480 | char *kwnames[] = { | |
9481 | (char *) "self", NULL | |
9482 | }; | |
9483 | ||
9484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
9485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9486 | { | |
9487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9488 | result = (bool)(arg1)->HasV(); | |
9489 | ||
9490 | wxPyEndAllowThreads(__tstate); | |
9491 | if (PyErr_Occurred()) SWIG_fail; | |
9492 | } | |
9493 | resultobj = PyInt_FromLong((long)result); | |
9494 | return resultobj; | |
9495 | fail: | |
9496 | return NULL; | |
9497 | } | |
9498 | ||
9499 | ||
9500 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9501 | PyObject *resultobj; | |
9502 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9503 | bool result; | |
9504 | PyObject * obj0 = 0 ; | |
9505 | char *kwnames[] = { | |
9506 | (char *) "self", NULL | |
9507 | }; | |
9508 | ||
9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
9510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9511 | { | |
9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9513 | result = (bool)(arg1)->HasPOV(); | |
9514 | ||
9515 | wxPyEndAllowThreads(__tstate); | |
9516 | if (PyErr_Occurred()) SWIG_fail; | |
9517 | } | |
9518 | resultobj = PyInt_FromLong((long)result); | |
9519 | return resultobj; | |
9520 | fail: | |
9521 | return NULL; | |
9522 | } | |
9523 | ||
9524 | ||
9525 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9526 | PyObject *resultobj; | |
9527 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9528 | bool result; | |
9529 | PyObject * obj0 = 0 ; | |
9530 | char *kwnames[] = { | |
9531 | (char *) "self", NULL | |
9532 | }; | |
9533 | ||
9534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
9535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9536 | { | |
9537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9538 | result = (bool)(arg1)->HasPOV4Dir(); | |
9539 | ||
9540 | wxPyEndAllowThreads(__tstate); | |
9541 | if (PyErr_Occurred()) SWIG_fail; | |
9542 | } | |
9543 | resultobj = PyInt_FromLong((long)result); | |
9544 | return resultobj; | |
9545 | fail: | |
9546 | return NULL; | |
9547 | } | |
9548 | ||
9549 | ||
9550 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9551 | PyObject *resultobj; | |
9552 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9553 | bool result; | |
9554 | PyObject * obj0 = 0 ; | |
9555 | char *kwnames[] = { | |
9556 | (char *) "self", NULL | |
9557 | }; | |
9558 | ||
9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
9560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9561 | { | |
9562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9563 | result = (bool)(arg1)->HasPOVCTS(); | |
9564 | ||
9565 | wxPyEndAllowThreads(__tstate); | |
9566 | if (PyErr_Occurred()) SWIG_fail; | |
9567 | } | |
9568 | resultobj = PyInt_FromLong((long)result); | |
9569 | return resultobj; | |
9570 | fail: | |
9571 | return NULL; | |
9572 | } | |
9573 | ||
9574 | ||
9575 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9576 | PyObject *resultobj; | |
9577 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9578 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9579 | int arg3 = (int) 0 ; | |
9580 | bool result; | |
9581 | PyObject * obj0 = 0 ; | |
9582 | PyObject * obj1 = 0 ; | |
9583 | char *kwnames[] = { | |
9584 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
9585 | }; | |
9586 | ||
9587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Joystick_SetCapture",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9589 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9590 | { | |
9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9592 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
9593 | ||
9594 | wxPyEndAllowThreads(__tstate); | |
9595 | if (PyErr_Occurred()) SWIG_fail; | |
9596 | } | |
9597 | resultobj = PyInt_FromLong((long)result); | |
9598 | return resultobj; | |
9599 | fail: | |
9600 | return NULL; | |
9601 | } | |
9602 | ||
9603 | ||
9604 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9605 | PyObject *resultobj; | |
9606 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9607 | bool result; | |
9608 | PyObject * obj0 = 0 ; | |
9609 | char *kwnames[] = { | |
9610 | (char *) "self", NULL | |
9611 | }; | |
9612 | ||
9613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
9614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9615 | { | |
9616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9617 | result = (bool)(arg1)->ReleaseCapture(); | |
9618 | ||
9619 | wxPyEndAllowThreads(__tstate); | |
9620 | if (PyErr_Occurred()) SWIG_fail; | |
9621 | } | |
9622 | resultobj = PyInt_FromLong((long)result); | |
9623 | return resultobj; | |
9624 | fail: | |
9625 | return NULL; | |
9626 | } | |
9627 | ||
9628 | ||
9629 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
9630 | PyObject *obj; | |
9631 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9632 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
9633 | Py_INCREF(obj); | |
9634 | return Py_BuildValue((char *)""); | |
9635 | } | |
9636 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject *resultobj; | |
9638 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9639 | wxPoint *arg2 = (wxPoint *) 0 ; | |
9640 | PyObject * obj0 = 0 ; | |
9641 | PyObject * obj1 = 0 ; | |
9642 | char *kwnames[] = { | |
9643 | (char *) "self",(char *) "m_pos", NULL | |
9644 | }; | |
9645 | ||
9646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
9647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9648 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9649 | if (arg1) (arg1)->m_pos = *arg2; | |
9650 | ||
9651 | Py_INCREF(Py_None); resultobj = Py_None; | |
9652 | return resultobj; | |
9653 | fail: | |
9654 | return NULL; | |
9655 | } | |
9656 | ||
9657 | ||
9658 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9659 | PyObject *resultobj; | |
9660 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9661 | wxPoint *result; | |
9662 | PyObject * obj0 = 0 ; | |
9663 | char *kwnames[] = { | |
9664 | (char *) "self", NULL | |
9665 | }; | |
9666 | ||
9667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
9668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9669 | result = (wxPoint *)& ((arg1)->m_pos); | |
9670 | ||
9671 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
9672 | return resultobj; | |
9673 | fail: | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
9678 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9679 | PyObject *resultobj; | |
9680 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9681 | int arg2 ; | |
9682 | PyObject * obj0 = 0 ; | |
9683 | char *kwnames[] = { | |
9684 | (char *) "self",(char *) "m_zPosition", NULL | |
9685 | }; | |
9686 | ||
9687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_zPosition_set",kwnames,&obj0,&arg2)) goto fail; | |
9688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9689 | if (arg1) (arg1)->m_zPosition = arg2; | |
9690 | ||
9691 | Py_INCREF(Py_None); resultobj = Py_None; | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | return NULL; | |
9695 | } | |
9696 | ||
9697 | ||
9698 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9699 | PyObject *resultobj; | |
9700 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9701 | int result; | |
9702 | PyObject * obj0 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9709 | result = (int) ((arg1)->m_zPosition); | |
9710 | ||
9711 | resultobj = PyInt_FromLong((long)result); | |
9712 | return resultobj; | |
9713 | fail: | |
9714 | return NULL; | |
9715 | } | |
9716 | ||
9717 | ||
9718 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9719 | PyObject *resultobj; | |
9720 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9721 | int arg2 ; | |
9722 | PyObject * obj0 = 0 ; | |
9723 | char *kwnames[] = { | |
9724 | (char *) "self",(char *) "m_buttonChange", NULL | |
9725 | }; | |
9726 | ||
9727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&arg2)) goto fail; | |
9728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9729 | if (arg1) (arg1)->m_buttonChange = arg2; | |
9730 | ||
9731 | Py_INCREF(Py_None); resultobj = Py_None; | |
9732 | return resultobj; | |
9733 | fail: | |
9734 | return NULL; | |
9735 | } | |
9736 | ||
9737 | ||
9738 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9739 | PyObject *resultobj; | |
9740 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9741 | int result; | |
9742 | PyObject * obj0 = 0 ; | |
9743 | char *kwnames[] = { | |
9744 | (char *) "self", NULL | |
9745 | }; | |
9746 | ||
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
9748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9749 | result = (int) ((arg1)->m_buttonChange); | |
9750 | ||
9751 | resultobj = PyInt_FromLong((long)result); | |
9752 | return resultobj; | |
9753 | fail: | |
9754 | return NULL; | |
9755 | } | |
9756 | ||
9757 | ||
9758 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9759 | PyObject *resultobj; | |
9760 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9761 | int arg2 ; | |
9762 | PyObject * obj0 = 0 ; | |
9763 | char *kwnames[] = { | |
9764 | (char *) "self",(char *) "m_buttonState", NULL | |
9765 | }; | |
9766 | ||
9767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonState_set",kwnames,&obj0,&arg2)) goto fail; | |
9768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9769 | if (arg1) (arg1)->m_buttonState = arg2; | |
9770 | ||
9771 | Py_INCREF(Py_None); resultobj = Py_None; | |
9772 | return resultobj; | |
9773 | fail: | |
9774 | return NULL; | |
9775 | } | |
9776 | ||
9777 | ||
9778 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9779 | PyObject *resultobj; | |
9780 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9781 | int result; | |
9782 | PyObject * obj0 = 0 ; | |
9783 | char *kwnames[] = { | |
9784 | (char *) "self", NULL | |
9785 | }; | |
9786 | ||
9787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
9788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9789 | result = (int) ((arg1)->m_buttonState); | |
9790 | ||
9791 | resultobj = PyInt_FromLong((long)result); | |
9792 | return resultobj; | |
9793 | fail: | |
9794 | return NULL; | |
9795 | } | |
9796 | ||
9797 | ||
9798 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9799 | PyObject *resultobj; | |
9800 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9801 | int arg2 ; | |
9802 | PyObject * obj0 = 0 ; | |
9803 | char *kwnames[] = { | |
9804 | (char *) "self",(char *) "m_joyStick", NULL | |
9805 | }; | |
9806 | ||
9807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_joyStick_set",kwnames,&obj0,&arg2)) goto fail; | |
9808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9809 | if (arg1) (arg1)->m_joyStick = arg2; | |
9810 | ||
9811 | Py_INCREF(Py_None); resultobj = Py_None; | |
9812 | return resultobj; | |
9813 | fail: | |
9814 | return NULL; | |
9815 | } | |
9816 | ||
9817 | ||
9818 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9819 | PyObject *resultobj; | |
9820 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9821 | int result; | |
9822 | PyObject * obj0 = 0 ; | |
9823 | char *kwnames[] = { | |
9824 | (char *) "self", NULL | |
9825 | }; | |
9826 | ||
9827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
9828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9829 | result = (int) ((arg1)->m_joyStick); | |
9830 | ||
9831 | resultobj = PyInt_FromLong((long)result); | |
9832 | return resultobj; | |
9833 | fail: | |
9834 | return NULL; | |
9835 | } | |
9836 | ||
9837 | ||
9838 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9839 | PyObject *resultobj; | |
9840 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
9841 | int arg2 = (int) 0 ; | |
9842 | int arg3 = (int) wxJOYSTICK1 ; | |
9843 | int arg4 = (int) 0 ; | |
9844 | wxJoystickEvent *result; | |
9845 | char *kwnames[] = { | |
9846 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
9847 | }; | |
9848 | ||
9849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_JoystickEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
9850 | { | |
9851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9852 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
9853 | ||
9854 | wxPyEndAllowThreads(__tstate); | |
9855 | if (PyErr_Occurred()) SWIG_fail; | |
9856 | } | |
9857 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
9858 | return resultobj; | |
9859 | fail: | |
9860 | return NULL; | |
9861 | } | |
9862 | ||
9863 | ||
9864 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9865 | PyObject *resultobj; | |
9866 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9867 | wxPoint result; | |
9868 | PyObject * obj0 = 0 ; | |
9869 | char *kwnames[] = { | |
9870 | (char *) "self", NULL | |
9871 | }; | |
9872 | ||
9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
9874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9875 | { | |
9876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9877 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
9878 | ||
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
9882 | { | |
9883 | wxPoint * resultptr; | |
9884 | resultptr = new wxPoint((wxPoint &) result); | |
9885 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9886 | } | |
9887 | return resultobj; | |
9888 | fail: | |
9889 | return NULL; | |
9890 | } | |
9891 | ||
9892 | ||
9893 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9894 | PyObject *resultobj; | |
9895 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9896 | int result; | |
9897 | PyObject * obj0 = 0 ; | |
9898 | char *kwnames[] = { | |
9899 | (char *) "self", NULL | |
9900 | }; | |
9901 | ||
9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
9903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9904 | { | |
9905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9906 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
9907 | ||
9908 | wxPyEndAllowThreads(__tstate); | |
9909 | if (PyErr_Occurred()) SWIG_fail; | |
9910 | } | |
9911 | resultobj = PyInt_FromLong((long)result); | |
9912 | return resultobj; | |
9913 | fail: | |
9914 | return NULL; | |
9915 | } | |
9916 | ||
9917 | ||
9918 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9919 | PyObject *resultobj; | |
9920 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9921 | int result; | |
9922 | PyObject * obj0 = 0 ; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "self", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
9928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9929 | { | |
9930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9931 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
9932 | ||
9933 | wxPyEndAllowThreads(__tstate); | |
9934 | if (PyErr_Occurred()) SWIG_fail; | |
9935 | } | |
9936 | resultobj = PyInt_FromLong((long)result); | |
9937 | return resultobj; | |
9938 | fail: | |
9939 | return NULL; | |
9940 | } | |
9941 | ||
9942 | ||
9943 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9944 | PyObject *resultobj; | |
9945 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9946 | int result; | |
9947 | PyObject * obj0 = 0 ; | |
9948 | char *kwnames[] = { | |
9949 | (char *) "self", NULL | |
9950 | }; | |
9951 | ||
9952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
9953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9954 | { | |
9955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9956 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
9957 | ||
9958 | wxPyEndAllowThreads(__tstate); | |
9959 | if (PyErr_Occurred()) SWIG_fail; | |
9960 | } | |
9961 | resultobj = PyInt_FromLong((long)result); | |
9962 | return resultobj; | |
9963 | fail: | |
9964 | return NULL; | |
9965 | } | |
9966 | ||
9967 | ||
9968 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject *resultobj; | |
9970 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9971 | int result; | |
9972 | PyObject * obj0 = 0 ; | |
9973 | char *kwnames[] = { | |
9974 | (char *) "self", NULL | |
9975 | }; | |
9976 | ||
9977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
9978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9979 | { | |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
9982 | ||
9983 | wxPyEndAllowThreads(__tstate); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
9985 | } | |
9986 | resultobj = PyInt_FromLong((long)result); | |
9987 | return resultobj; | |
9988 | fail: | |
9989 | return NULL; | |
9990 | } | |
9991 | ||
9992 | ||
9993 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9994 | PyObject *resultobj; | |
9995 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9996 | int arg2 ; | |
9997 | PyObject * obj0 = 0 ; | |
9998 | char *kwnames[] = { | |
9999 | (char *) "self",(char *) "stick", NULL | |
10000 | }; | |
10001 | ||
10002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetJoystick",kwnames,&obj0,&arg2)) goto fail; | |
10003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10004 | { | |
10005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10006 | (arg1)->SetJoystick(arg2); | |
10007 | ||
10008 | wxPyEndAllowThreads(__tstate); | |
10009 | if (PyErr_Occurred()) SWIG_fail; | |
10010 | } | |
10011 | Py_INCREF(Py_None); resultobj = Py_None; | |
10012 | return resultobj; | |
10013 | fail: | |
10014 | return NULL; | |
10015 | } | |
10016 | ||
10017 | ||
10018 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10019 | PyObject *resultobj; | |
10020 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10021 | int arg2 ; | |
10022 | PyObject * obj0 = 0 ; | |
10023 | char *kwnames[] = { | |
10024 | (char *) "self",(char *) "state", NULL | |
10025 | }; | |
10026 | ||
10027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonState",kwnames,&obj0,&arg2)) goto fail; | |
10028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10029 | { | |
10030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10031 | (arg1)->SetButtonState(arg2); | |
10032 | ||
10033 | wxPyEndAllowThreads(__tstate); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
10035 | } | |
10036 | Py_INCREF(Py_None); resultobj = Py_None; | |
10037 | return resultobj; | |
10038 | fail: | |
10039 | return NULL; | |
10040 | } | |
10041 | ||
10042 | ||
10043 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10044 | PyObject *resultobj; | |
10045 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10046 | int arg2 ; | |
10047 | PyObject * obj0 = 0 ; | |
10048 | char *kwnames[] = { | |
10049 | (char *) "self",(char *) "change", NULL | |
10050 | }; | |
10051 | ||
10052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonChange",kwnames,&obj0,&arg2)) goto fail; | |
10053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10054 | { | |
10055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10056 | (arg1)->SetButtonChange(arg2); | |
10057 | ||
10058 | wxPyEndAllowThreads(__tstate); | |
10059 | if (PyErr_Occurred()) SWIG_fail; | |
10060 | } | |
10061 | Py_INCREF(Py_None); resultobj = Py_None; | |
10062 | return resultobj; | |
10063 | fail: | |
10064 | return NULL; | |
10065 | } | |
10066 | ||
10067 | ||
10068 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10069 | PyObject *resultobj; | |
10070 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10071 | wxPoint *arg2 = 0 ; | |
10072 | wxPoint temp2 ; | |
10073 | PyObject * obj0 = 0 ; | |
10074 | PyObject * obj1 = 0 ; | |
10075 | char *kwnames[] = { | |
10076 | (char *) "self",(char *) "pos", NULL | |
10077 | }; | |
10078 | ||
10079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10081 | { | |
10082 | arg2 = &temp2; | |
10083 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10084 | } | |
10085 | { | |
10086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10087 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10088 | ||
10089 | wxPyEndAllowThreads(__tstate); | |
10090 | if (PyErr_Occurred()) SWIG_fail; | |
10091 | } | |
10092 | Py_INCREF(Py_None); resultobj = Py_None; | |
10093 | return resultobj; | |
10094 | fail: | |
10095 | return NULL; | |
10096 | } | |
10097 | ||
10098 | ||
10099 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10100 | PyObject *resultobj; | |
10101 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10102 | int arg2 ; | |
10103 | PyObject * obj0 = 0 ; | |
10104 | char *kwnames[] = { | |
10105 | (char *) "self",(char *) "zPos", NULL | |
10106 | }; | |
10107 | ||
10108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetZPosition",kwnames,&obj0,&arg2)) goto fail; | |
10109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10110 | { | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | (arg1)->SetZPosition(arg2); | |
10113 | ||
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) SWIG_fail; | |
10116 | } | |
10117 | Py_INCREF(Py_None); resultobj = Py_None; | |
10118 | return resultobj; | |
10119 | fail: | |
10120 | return NULL; | |
10121 | } | |
10122 | ||
10123 | ||
10124 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10125 | PyObject *resultobj; | |
10126 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10127 | bool result; | |
10128 | PyObject * obj0 = 0 ; | |
10129 | char *kwnames[] = { | |
10130 | (char *) "self", NULL | |
10131 | }; | |
10132 | ||
10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10135 | { | |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
10142 | resultobj = PyInt_FromLong((long)result); | |
10143 | return resultobj; | |
10144 | fail: | |
10145 | return NULL; | |
10146 | } | |
10147 | ||
10148 | ||
10149 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10150 | PyObject *resultobj; | |
10151 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10152 | bool result; | |
10153 | PyObject * obj0 = 0 ; | |
10154 | char *kwnames[] = { | |
10155 | (char *) "self", NULL | |
10156 | }; | |
10157 | ||
10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10160 | { | |
10161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10162 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10163 | ||
10164 | wxPyEndAllowThreads(__tstate); | |
10165 | if (PyErr_Occurred()) SWIG_fail; | |
10166 | } | |
10167 | resultobj = PyInt_FromLong((long)result); | |
10168 | return resultobj; | |
10169 | fail: | |
10170 | return NULL; | |
10171 | } | |
10172 | ||
10173 | ||
10174 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10175 | PyObject *resultobj; | |
10176 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10177 | bool result; | |
10178 | PyObject * obj0 = 0 ; | |
10179 | char *kwnames[] = { | |
10180 | (char *) "self", NULL | |
10181 | }; | |
10182 | ||
10183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
10184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10185 | { | |
10186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10187 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
10188 | ||
10189 | wxPyEndAllowThreads(__tstate); | |
10190 | if (PyErr_Occurred()) SWIG_fail; | |
10191 | } | |
10192 | resultobj = PyInt_FromLong((long)result); | |
10193 | return resultobj; | |
10194 | fail: | |
10195 | return NULL; | |
10196 | } | |
10197 | ||
10198 | ||
10199 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10200 | PyObject *resultobj; | |
10201 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10202 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10203 | bool result; | |
10204 | PyObject * obj0 = 0 ; | |
10205 | char *kwnames[] = { | |
10206 | (char *) "self",(char *) "but", NULL | |
10207 | }; | |
10208 | ||
10209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
10210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10211 | { | |
10212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10213 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
10214 | ||
10215 | wxPyEndAllowThreads(__tstate); | |
10216 | if (PyErr_Occurred()) SWIG_fail; | |
10217 | } | |
10218 | resultobj = PyInt_FromLong((long)result); | |
10219 | return resultobj; | |
10220 | fail: | |
10221 | return NULL; | |
10222 | } | |
10223 | ||
10224 | ||
10225 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10226 | PyObject *resultobj; | |
10227 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10228 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10229 | bool result; | |
10230 | PyObject * obj0 = 0 ; | |
10231 | char *kwnames[] = { | |
10232 | (char *) "self",(char *) "but", NULL | |
10233 | }; | |
10234 | ||
10235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
10236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10237 | { | |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
10240 | ||
10241 | wxPyEndAllowThreads(__tstate); | |
10242 | if (PyErr_Occurred()) SWIG_fail; | |
10243 | } | |
10244 | resultobj = PyInt_FromLong((long)result); | |
10245 | return resultobj; | |
10246 | fail: | |
10247 | return NULL; | |
10248 | } | |
10249 | ||
10250 | ||
10251 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10252 | PyObject *resultobj; | |
10253 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10254 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10255 | bool result; | |
10256 | PyObject * obj0 = 0 ; | |
10257 | char *kwnames[] = { | |
10258 | (char *) "self",(char *) "but", NULL | |
10259 | }; | |
10260 | ||
10261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
10262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10263 | { | |
10264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10265 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
10266 | ||
10267 | wxPyEndAllowThreads(__tstate); | |
10268 | if (PyErr_Occurred()) SWIG_fail; | |
10269 | } | |
10270 | resultobj = PyInt_FromLong((long)result); | |
10271 | return resultobj; | |
10272 | fail: | |
10273 | return NULL; | |
10274 | } | |
10275 | ||
10276 | ||
10277 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
10278 | PyObject *obj; | |
10279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10280 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
10281 | Py_INCREF(obj); | |
10282 | return Py_BuildValue((char *)""); | |
10283 | } | |
10284 | static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject *resultobj; | |
10286 | wxString *arg1 = 0 ; | |
423f194a | 10287 | bool arg2 = (bool) False ; |
d14a1e28 | 10288 | wxWave *result; |
423f194a | 10289 | bool temp1 = False ; |
d14a1e28 RD |
10290 | PyObject * obj0 = 0 ; |
10291 | PyObject * obj1 = 0 ; | |
10292 | char *kwnames[] = { | |
10293 | (char *) "fileName",(char *) "isResource", NULL | |
10294 | }; | |
10295 | ||
10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail; | |
10297 | { | |
10298 | arg1 = wxString_in_helper(obj0); | |
10299 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10300 | temp1 = True; |
d14a1e28 RD |
10301 | } |
10302 | if (obj1) { | |
10303 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | { | |
10307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10308 | result = (wxWave *)new wxWave((wxString const &)*arg1,arg2); | |
10309 | ||
10310 | wxPyEndAllowThreads(__tstate); | |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | } | |
10313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10314 | { | |
10315 | if (temp1) | |
10316 | delete arg1; | |
10317 | } | |
10318 | return resultobj; | |
10319 | fail: | |
10320 | { | |
10321 | if (temp1) | |
10322 | delete arg1; | |
10323 | } | |
10324 | return NULL; | |
10325 | } | |
10326 | ||
10327 | ||
10328 | static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10329 | PyObject *resultobj; | |
10330 | wxString *arg1 = 0 ; | |
10331 | wxWave *result; | |
423f194a | 10332 | bool temp1 = False ; |
d14a1e28 RD |
10333 | PyObject * obj0 = 0 ; |
10334 | char *kwnames[] = { | |
10335 | (char *) "data", NULL | |
10336 | }; | |
10337 | ||
10338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail; | |
10339 | { | |
10340 | arg1 = wxString_in_helper(obj0); | |
10341 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10342 | temp1 = True; |
d14a1e28 RD |
10343 | } |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | result = (wxWave *)new_wxWave((wxString const &)*arg1); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10352 | { | |
10353 | if (temp1) | |
10354 | delete arg1; | |
10355 | } | |
10356 | return resultobj; | |
10357 | fail: | |
10358 | { | |
10359 | if (temp1) | |
10360 | delete arg1; | |
10361 | } | |
10362 | return NULL; | |
10363 | } | |
10364 | ||
10365 | ||
10366 | static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10367 | PyObject *resultobj; | |
10368 | wxWave *arg1 = (wxWave *) 0 ; | |
10369 | PyObject * obj0 = 0 ; | |
10370 | char *kwnames[] = { | |
10371 | (char *) "self", NULL | |
10372 | }; | |
10373 | ||
10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail; | |
10375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10376 | { | |
10377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10378 | delete arg1; | |
10379 | ||
10380 | wxPyEndAllowThreads(__tstate); | |
10381 | if (PyErr_Occurred()) SWIG_fail; | |
10382 | } | |
10383 | Py_INCREF(Py_None); resultobj = Py_None; | |
10384 | return resultobj; | |
10385 | fail: | |
10386 | return NULL; | |
10387 | } | |
10388 | ||
10389 | ||
10390 | static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10391 | PyObject *resultobj; | |
10392 | wxWave *arg1 = (wxWave *) 0 ; | |
10393 | bool result; | |
10394 | PyObject * obj0 = 0 ; | |
10395 | char *kwnames[] = { | |
10396 | (char *) "self", NULL | |
10397 | }; | |
10398 | ||
10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail; | |
10400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10401 | { | |
10402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10403 | result = (bool)((wxWave const *)arg1)->IsOk(); | |
10404 | ||
10405 | wxPyEndAllowThreads(__tstate); | |
10406 | if (PyErr_Occurred()) SWIG_fail; | |
10407 | } | |
10408 | resultobj = PyInt_FromLong((long)result); | |
10409 | return resultobj; | |
10410 | fail: | |
10411 | return NULL; | |
10412 | } | |
10413 | ||
10414 | ||
10415 | static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject *resultobj; | |
10417 | wxWave *arg1 = (wxWave *) 0 ; | |
423f194a RD |
10418 | bool arg2 = (bool) True ; |
10419 | bool arg3 = (bool) False ; | |
d14a1e28 RD |
10420 | bool result; |
10421 | PyObject * obj0 = 0 ; | |
10422 | PyObject * obj1 = 0 ; | |
10423 | PyObject * obj2 = 0 ; | |
10424 | char *kwnames[] = { | |
10425 | (char *) "self",(char *) "async",(char *) "looped", NULL | |
10426 | }; | |
10427 | ||
10428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10430 | if (obj1) { | |
10431 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10432 | if (PyErr_Occurred()) SWIG_fail; | |
10433 | } | |
10434 | if (obj2) { | |
10435 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
10436 | if (PyErr_Occurred()) SWIG_fail; | |
10437 | } | |
10438 | { | |
10439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 10440 | result = (bool)(arg1)->Play(arg2,arg3); |
d14a1e28 RD |
10441 | |
10442 | wxPyEndAllowThreads(__tstate); | |
10443 | if (PyErr_Occurred()) SWIG_fail; | |
10444 | } | |
10445 | resultobj = PyInt_FromLong((long)result); | |
10446 | return resultobj; | |
10447 | fail: | |
10448 | return NULL; | |
10449 | } | |
10450 | ||
10451 | ||
10452 | static PyObject * Wave_swigregister(PyObject *self, PyObject *args) { | |
10453 | PyObject *obj; | |
10454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10455 | SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj); | |
10456 | Py_INCREF(obj); | |
10457 | return Py_BuildValue((char *)""); | |
10458 | } | |
10459 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10460 | PyObject *resultobj; | |
10461 | wxString *arg1 = 0 ; | |
10462 | wxString *arg2 = 0 ; | |
10463 | wxString *arg3 = 0 ; | |
10464 | wxString *arg4 = 0 ; | |
10465 | wxFileTypeInfo *result; | |
423f194a RD |
10466 | bool temp1 = False ; |
10467 | bool temp2 = False ; | |
10468 | bool temp3 = False ; | |
10469 | bool temp4 = False ; | |
d14a1e28 RD |
10470 | PyObject * obj0 = 0 ; |
10471 | PyObject * obj1 = 0 ; | |
10472 | PyObject * obj2 = 0 ; | |
10473 | PyObject * obj3 = 0 ; | |
10474 | char *kwnames[] = { | |
10475 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
10476 | }; | |
10477 | ||
10478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10479 | { | |
10480 | arg1 = wxString_in_helper(obj0); | |
10481 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10482 | temp1 = True; |
d14a1e28 RD |
10483 | } |
10484 | { | |
10485 | arg2 = wxString_in_helper(obj1); | |
10486 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10487 | temp2 = True; |
d14a1e28 RD |
10488 | } |
10489 | { | |
10490 | arg3 = wxString_in_helper(obj2); | |
10491 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10492 | temp3 = True; |
d14a1e28 RD |
10493 | } |
10494 | { | |
10495 | arg4 = wxString_in_helper(obj3); | |
10496 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10497 | temp4 = True; |
d14a1e28 RD |
10498 | } |
10499 | { | |
10500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10501 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
10502 | ||
10503 | wxPyEndAllowThreads(__tstate); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | } | |
10506 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10507 | { | |
10508 | if (temp1) | |
10509 | delete arg1; | |
10510 | } | |
10511 | { | |
10512 | if (temp2) | |
10513 | delete arg2; | |
10514 | } | |
10515 | { | |
10516 | if (temp3) | |
10517 | delete arg3; | |
10518 | } | |
10519 | { | |
10520 | if (temp4) | |
10521 | delete arg4; | |
10522 | } | |
10523 | return resultobj; | |
10524 | fail: | |
10525 | { | |
10526 | if (temp1) | |
10527 | delete arg1; | |
10528 | } | |
10529 | { | |
10530 | if (temp2) | |
10531 | delete arg2; | |
10532 | } | |
10533 | { | |
10534 | if (temp3) | |
10535 | delete arg3; | |
10536 | } | |
10537 | { | |
10538 | if (temp4) | |
10539 | delete arg4; | |
10540 | } | |
10541 | return NULL; | |
10542 | } | |
10543 | ||
10544 | ||
10545 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10546 | PyObject *resultobj; | |
10547 | wxArrayString *arg1 = 0 ; | |
10548 | wxFileTypeInfo *result; | |
10549 | PyObject * obj0 = 0 ; | |
10550 | char *kwnames[] = { | |
10551 | (char *) "sArray", NULL | |
10552 | }; | |
10553 | ||
10554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
10555 | { | |
10556 | if (! PySequence_Check(obj0)) { | |
10557 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10558 | SWIG_fail; | |
10559 | } | |
10560 | arg1 = new wxArrayString; | |
10561 | int i, len=PySequence_Length(obj0); | |
10562 | for (i=0; i<len; i++) { | |
10563 | PyObject* item = PySequence_GetItem(obj0, i); | |
10564 | #if wxUSE_UNICODE | |
10565 | PyObject* str = PyObject_Unicode(item); | |
10566 | #else | |
10567 | PyObject* str = PyObject_Str(item); | |
10568 | #endif | |
10569 | arg1->Add(Py2wxString(str)); | |
10570 | Py_DECREF(item); | |
10571 | Py_DECREF(str); | |
10572 | } | |
10573 | } | |
10574 | { | |
10575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10576 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
10577 | ||
10578 | wxPyEndAllowThreads(__tstate); | |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
10580 | } | |
10581 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10582 | { | |
10583 | if (arg1) delete arg1; | |
10584 | } | |
10585 | return resultobj; | |
10586 | fail: | |
10587 | { | |
10588 | if (arg1) delete arg1; | |
10589 | } | |
10590 | return NULL; | |
10591 | } | |
10592 | ||
10593 | ||
10594 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10595 | PyObject *resultobj; | |
10596 | wxFileTypeInfo *result; | |
10597 | char *kwnames[] = { | |
10598 | NULL | |
10599 | }; | |
10600 | ||
10601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
10602 | { | |
10603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10604 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
10605 | ||
10606 | wxPyEndAllowThreads(__tstate); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
10609 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10610 | return resultobj; | |
10611 | fail: | |
10612 | return NULL; | |
10613 | } | |
10614 | ||
10615 | ||
10616 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10617 | PyObject *resultobj; | |
10618 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10619 | bool result; | |
10620 | PyObject * obj0 = 0 ; | |
10621 | char *kwnames[] = { | |
10622 | (char *) "self", NULL | |
10623 | }; | |
10624 | ||
10625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
10626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10627 | { | |
10628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10629 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
10630 | ||
10631 | wxPyEndAllowThreads(__tstate); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
10634 | resultobj = PyInt_FromLong((long)result); | |
10635 | return resultobj; | |
10636 | fail: | |
10637 | return NULL; | |
10638 | } | |
10639 | ||
10640 | ||
10641 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10642 | PyObject *resultobj; | |
10643 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10644 | wxString *arg2 = 0 ; | |
10645 | int arg3 = (int) 0 ; | |
423f194a | 10646 | bool temp2 = False ; |
d14a1e28 RD |
10647 | PyObject * obj0 = 0 ; |
10648 | PyObject * obj1 = 0 ; | |
10649 | char *kwnames[] = { | |
10650 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
10651 | }; | |
10652 | ||
10653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10655 | { | |
10656 | arg2 = wxString_in_helper(obj1); | |
10657 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10658 | temp2 = True; |
d14a1e28 RD |
10659 | } |
10660 | { | |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | Py_INCREF(Py_None); resultobj = Py_None; | |
10668 | { | |
10669 | if (temp2) | |
10670 | delete arg2; | |
10671 | } | |
10672 | return resultobj; | |
10673 | fail: | |
10674 | { | |
10675 | if (temp2) | |
10676 | delete arg2; | |
10677 | } | |
10678 | return NULL; | |
10679 | } | |
10680 | ||
10681 | ||
10682 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10683 | PyObject *resultobj; | |
10684 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10685 | wxString *arg2 = 0 ; | |
423f194a | 10686 | bool temp2 = False ; |
d14a1e28 RD |
10687 | PyObject * obj0 = 0 ; |
10688 | PyObject * obj1 = 0 ; | |
10689 | char *kwnames[] = { | |
10690 | (char *) "self",(char *) "shortDesc", NULL | |
10691 | }; | |
10692 | ||
10693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
10694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10695 | { | |
10696 | arg2 = wxString_in_helper(obj1); | |
10697 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10698 | temp2 = True; |
d14a1e28 RD |
10699 | } |
10700 | { | |
10701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10702 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
10703 | ||
10704 | wxPyEndAllowThreads(__tstate); | |
10705 | if (PyErr_Occurred()) SWIG_fail; | |
10706 | } | |
10707 | Py_INCREF(Py_None); resultobj = Py_None; | |
10708 | { | |
10709 | if (temp2) | |
10710 | delete arg2; | |
10711 | } | |
10712 | return resultobj; | |
10713 | fail: | |
10714 | { | |
10715 | if (temp2) | |
10716 | delete arg2; | |
10717 | } | |
10718 | return NULL; | |
10719 | } | |
10720 | ||
10721 | ||
10722 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10723 | PyObject *resultobj; | |
10724 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10725 | wxString *result; | |
10726 | PyObject * obj0 = 0 ; | |
10727 | char *kwnames[] = { | |
10728 | (char *) "self", NULL | |
10729 | }; | |
10730 | ||
10731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
10732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10733 | { | |
10734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10735 | { | |
10736 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
10737 | result = (wxString *) &_result_ref; | |
10738 | } | |
10739 | ||
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | } | |
10743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
10750 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10751 | PyObject *resultobj; | |
10752 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10753 | wxString *result; | |
10754 | PyObject * obj0 = 0 ; | |
10755 | char *kwnames[] = { | |
10756 | (char *) "self", NULL | |
10757 | }; | |
10758 | ||
10759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
10760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10761 | { | |
10762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10763 | { | |
10764 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
10765 | result = (wxString *) &_result_ref; | |
10766 | } | |
10767 | ||
10768 | wxPyEndAllowThreads(__tstate); | |
10769 | if (PyErr_Occurred()) SWIG_fail; | |
10770 | } | |
10771 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10772 | return resultobj; | |
10773 | fail: | |
10774 | return NULL; | |
10775 | } | |
10776 | ||
10777 | ||
10778 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10779 | PyObject *resultobj; | |
10780 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10781 | wxString *result; | |
10782 | PyObject * obj0 = 0 ; | |
10783 | char *kwnames[] = { | |
10784 | (char *) "self", NULL | |
10785 | }; | |
10786 | ||
10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
10788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10789 | { | |
10790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10791 | { | |
10792 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
10793 | result = (wxString *) &_result_ref; | |
10794 | } | |
10795 | ||
10796 | wxPyEndAllowThreads(__tstate); | |
10797 | if (PyErr_Occurred()) SWIG_fail; | |
10798 | } | |
10799 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10800 | return resultobj; | |
10801 | fail: | |
10802 | return NULL; | |
10803 | } | |
10804 | ||
10805 | ||
10806 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10807 | PyObject *resultobj; | |
10808 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10809 | wxString *result; | |
10810 | PyObject * obj0 = 0 ; | |
10811 | char *kwnames[] = { | |
10812 | (char *) "self", NULL | |
10813 | }; | |
10814 | ||
10815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
10816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10817 | { | |
10818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10819 | { | |
10820 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
10821 | result = (wxString *) &_result_ref; | |
10822 | } | |
10823 | ||
10824 | wxPyEndAllowThreads(__tstate); | |
10825 | if (PyErr_Occurred()) SWIG_fail; | |
10826 | } | |
10827 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10828 | return resultobj; | |
10829 | fail: | |
10830 | return NULL; | |
10831 | } | |
10832 | ||
10833 | ||
10834 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10835 | PyObject *resultobj; | |
10836 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10837 | wxString *result; | |
10838 | PyObject * obj0 = 0 ; | |
10839 | char *kwnames[] = { | |
10840 | (char *) "self", NULL | |
10841 | }; | |
10842 | ||
10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
10844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10845 | { | |
10846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10847 | { | |
10848 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
10849 | result = (wxString *) &_result_ref; | |
10850 | } | |
10851 | ||
10852 | wxPyEndAllowThreads(__tstate); | |
10853 | if (PyErr_Occurred()) SWIG_fail; | |
10854 | } | |
10855 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10856 | return resultobj; | |
10857 | fail: | |
10858 | return NULL; | |
10859 | } | |
10860 | ||
10861 | ||
10862 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10863 | PyObject *resultobj; | |
10864 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10865 | wxArrayString *result; | |
10866 | PyObject * obj0 = 0 ; | |
10867 | char *kwnames[] = { | |
10868 | (char *) "self", NULL | |
10869 | }; | |
10870 | ||
10871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
10872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10873 | { | |
10874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10875 | { | |
10876 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
10877 | result = (wxArrayString *) &_result_ref; | |
10878 | } | |
10879 | ||
10880 | wxPyEndAllowThreads(__tstate); | |
10881 | if (PyErr_Occurred()) SWIG_fail; | |
10882 | } | |
10883 | { | |
10884 | resultobj = wxArrayString2PyList_helper(*result); | |
10885 | } | |
10886 | return resultobj; | |
10887 | fail: | |
10888 | return NULL; | |
10889 | } | |
10890 | ||
10891 | ||
10892 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10893 | PyObject *resultobj; | |
10894 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10895 | int result; | |
10896 | PyObject * obj0 = 0 ; | |
10897 | char *kwnames[] = { | |
10898 | (char *) "self", NULL | |
10899 | }; | |
10900 | ||
10901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
10902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10903 | { | |
10904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10905 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
10906 | ||
10907 | wxPyEndAllowThreads(__tstate); | |
10908 | if (PyErr_Occurred()) SWIG_fail; | |
10909 | } | |
10910 | resultobj = PyInt_FromLong((long)result); | |
10911 | return resultobj; | |
10912 | fail: | |
10913 | return NULL; | |
10914 | } | |
10915 | ||
10916 | ||
10917 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10918 | PyObject *resultobj; | |
10919 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10920 | wxString *result; | |
10921 | PyObject * obj0 = 0 ; | |
10922 | char *kwnames[] = { | |
10923 | (char *) "self", NULL | |
10924 | }; | |
10925 | ||
10926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
10927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10928 | { | |
10929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10930 | { | |
10931 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
10932 | result = (wxString *) &_result_ref; | |
10933 | } | |
10934 | ||
10935 | wxPyEndAllowThreads(__tstate); | |
10936 | if (PyErr_Occurred()) SWIG_fail; | |
10937 | } | |
10938 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10939 | return resultobj; | |
10940 | fail: | |
10941 | return NULL; | |
10942 | } | |
10943 | ||
10944 | ||
10945 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10946 | PyObject *resultobj; | |
10947 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10948 | int result; | |
10949 | PyObject * obj0 = 0 ; | |
10950 | char *kwnames[] = { | |
10951 | (char *) "self", NULL | |
10952 | }; | |
10953 | ||
10954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
10955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10956 | { | |
10957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10958 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
10959 | ||
10960 | wxPyEndAllowThreads(__tstate); | |
10961 | if (PyErr_Occurred()) SWIG_fail; | |
10962 | } | |
10963 | resultobj = PyInt_FromLong((long)result); | |
10964 | return resultobj; | |
10965 | fail: | |
10966 | return NULL; | |
10967 | } | |
10968 | ||
10969 | ||
10970 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
10971 | PyObject *obj; | |
10972 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10973 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
10974 | Py_INCREF(obj); | |
10975 | return Py_BuildValue((char *)""); | |
10976 | } | |
10977 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10978 | PyObject *resultobj; | |
10979 | wxFileTypeInfo *arg1 = 0 ; | |
10980 | wxFileType *result; | |
10981 | PyObject * obj0 = 0 ; | |
10982 | char *kwnames[] = { | |
10983 | (char *) "ftInfo", NULL | |
10984 | }; | |
10985 | ||
10986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
10987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10988 | if (arg1 == NULL) { | |
10989 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10990 | } | |
10991 | { | |
10992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10993 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
10994 | ||
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
10998 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
10999 | return resultobj; | |
11000 | fail: | |
11001 | return NULL; | |
11002 | } | |
11003 | ||
11004 | ||
11005 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11006 | PyObject *resultobj; | |
11007 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11008 | PyObject * obj0 = 0 ; | |
11009 | char *kwnames[] = { | |
11010 | (char *) "self", NULL | |
11011 | }; | |
11012 | ||
11013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
11014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11015 | { | |
11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11017 | delete arg1; | |
11018 | ||
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
11022 | Py_INCREF(Py_None); resultobj = Py_None; | |
11023 | return resultobj; | |
11024 | fail: | |
11025 | return NULL; | |
11026 | } | |
11027 | ||
11028 | ||
11029 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11030 | PyObject *resultobj; | |
11031 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11032 | PyObject *result; | |
11033 | PyObject * obj0 = 0 ; | |
11034 | char *kwnames[] = { | |
11035 | (char *) "self", NULL | |
11036 | }; | |
11037 | ||
11038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
11039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11040 | { | |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11042 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | resultobj = result; | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
11054 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11057 | PyObject *result; | |
11058 | PyObject * obj0 = 0 ; | |
11059 | char *kwnames[] = { | |
11060 | (char *) "self", NULL | |
11061 | }; | |
11062 | ||
11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
11064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11065 | { | |
11066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11067 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
11068 | ||
11069 | wxPyEndAllowThreads(__tstate); | |
11070 | if (PyErr_Occurred()) SWIG_fail; | |
11071 | } | |
11072 | resultobj = result; | |
11073 | return resultobj; | |
11074 | fail: | |
11075 | return NULL; | |
11076 | } | |
11077 | ||
11078 | ||
11079 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11080 | PyObject *resultobj; | |
11081 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11082 | PyObject *result; | |
11083 | PyObject * obj0 = 0 ; | |
11084 | char *kwnames[] = { | |
11085 | (char *) "self", NULL | |
11086 | }; | |
11087 | ||
11088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
11089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11090 | { | |
11091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11092 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
11093 | ||
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
11097 | resultobj = result; | |
11098 | return resultobj; | |
11099 | fail: | |
11100 | return NULL; | |
11101 | } | |
11102 | ||
11103 | ||
11104 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11105 | PyObject *resultobj; | |
11106 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11107 | wxIcon *result; | |
11108 | PyObject * obj0 = 0 ; | |
11109 | char *kwnames[] = { | |
11110 | (char *) "self", NULL | |
11111 | }; | |
11112 | ||
11113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
11114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11115 | { | |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11117 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
11118 | ||
11119 | wxPyEndAllowThreads(__tstate); | |
11120 | if (PyErr_Occurred()) SWIG_fail; | |
11121 | } | |
11122 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
11123 | return resultobj; | |
11124 | fail: | |
11125 | return NULL; | |
11126 | } | |
11127 | ||
11128 | ||
11129 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11130 | PyObject *resultobj; | |
11131 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11132 | PyObject *result; | |
11133 | PyObject * obj0 = 0 ; | |
11134 | char *kwnames[] = { | |
11135 | (char *) "self", NULL | |
11136 | }; | |
11137 | ||
11138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
11139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11140 | { | |
11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11142 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
11143 | ||
11144 | wxPyEndAllowThreads(__tstate); | |
11145 | if (PyErr_Occurred()) SWIG_fail; | |
11146 | } | |
11147 | resultobj = result; | |
11148 | return resultobj; | |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
11154 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11155 | PyObject *resultobj; | |
11156 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11157 | PyObject *result; | |
11158 | PyObject * obj0 = 0 ; | |
11159 | char *kwnames[] = { | |
11160 | (char *) "self", NULL | |
11161 | }; | |
11162 | ||
11163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
11164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11165 | { | |
11166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11167 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
11168 | ||
11169 | wxPyEndAllowThreads(__tstate); | |
11170 | if (PyErr_Occurred()) SWIG_fail; | |
11171 | } | |
11172 | resultobj = result; | |
11173 | return resultobj; | |
11174 | fail: | |
11175 | return NULL; | |
11176 | } | |
11177 | ||
11178 | ||
11179 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11180 | PyObject *resultobj; | |
11181 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11182 | wxString *arg2 = 0 ; | |
11183 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11184 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11185 | PyObject *result; | |
423f194a RD |
11186 | bool temp2 = False ; |
11187 | bool temp3 = False ; | |
d14a1e28 RD |
11188 | PyObject * obj0 = 0 ; |
11189 | PyObject * obj1 = 0 ; | |
11190 | PyObject * obj2 = 0 ; | |
11191 | char *kwnames[] = { | |
11192 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11193 | }; | |
11194 | ||
11195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11197 | { | |
11198 | arg2 = wxString_in_helper(obj1); | |
11199 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11200 | temp2 = True; |
d14a1e28 RD |
11201 | } |
11202 | if (obj2) { | |
11203 | { | |
11204 | arg3 = wxString_in_helper(obj2); | |
11205 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11206 | temp3 = True; |
d14a1e28 RD |
11207 | } |
11208 | } | |
11209 | { | |
11210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11211 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11212 | ||
11213 | wxPyEndAllowThreads(__tstate); | |
11214 | if (PyErr_Occurred()) SWIG_fail; | |
11215 | } | |
11216 | resultobj = result; | |
11217 | { | |
11218 | if (temp2) | |
11219 | delete arg2; | |
11220 | } | |
11221 | { | |
11222 | if (temp3) | |
11223 | delete arg3; | |
11224 | } | |
11225 | return resultobj; | |
11226 | fail: | |
11227 | { | |
11228 | if (temp2) | |
11229 | delete arg2; | |
11230 | } | |
11231 | { | |
11232 | if (temp3) | |
11233 | delete arg3; | |
11234 | } | |
11235 | return NULL; | |
11236 | } | |
11237 | ||
11238 | ||
11239 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11240 | PyObject *resultobj; | |
11241 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11242 | wxString *arg2 = 0 ; | |
11243 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11244 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11245 | PyObject *result; | |
423f194a RD |
11246 | bool temp2 = False ; |
11247 | bool temp3 = False ; | |
d14a1e28 RD |
11248 | PyObject * obj0 = 0 ; |
11249 | PyObject * obj1 = 0 ; | |
11250 | PyObject * obj2 = 0 ; | |
11251 | char *kwnames[] = { | |
11252 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11253 | }; | |
11254 | ||
11255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11257 | { | |
11258 | arg2 = wxString_in_helper(obj1); | |
11259 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11260 | temp2 = True; |
d14a1e28 RD |
11261 | } |
11262 | if (obj2) { | |
11263 | { | |
11264 | arg3 = wxString_in_helper(obj2); | |
11265 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11266 | temp3 = True; |
d14a1e28 RD |
11267 | } |
11268 | } | |
11269 | { | |
11270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11271 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11272 | ||
11273 | wxPyEndAllowThreads(__tstate); | |
11274 | if (PyErr_Occurred()) SWIG_fail; | |
11275 | } | |
11276 | resultobj = result; | |
11277 | { | |
11278 | if (temp2) | |
11279 | delete arg2; | |
11280 | } | |
11281 | { | |
11282 | if (temp3) | |
11283 | delete arg3; | |
11284 | } | |
11285 | return resultobj; | |
11286 | fail: | |
11287 | { | |
11288 | if (temp2) | |
11289 | delete arg2; | |
11290 | } | |
11291 | { | |
11292 | if (temp3) | |
11293 | delete arg3; | |
11294 | } | |
11295 | return NULL; | |
11296 | } | |
11297 | ||
11298 | ||
11299 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11300 | PyObject *resultobj; | |
11301 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11302 | wxString *arg2 = 0 ; | |
11303 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11304 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11305 | PyObject *result; | |
423f194a RD |
11306 | bool temp2 = False ; |
11307 | bool temp3 = False ; | |
d14a1e28 RD |
11308 | PyObject * obj0 = 0 ; |
11309 | PyObject * obj1 = 0 ; | |
11310 | PyObject * obj2 = 0 ; | |
11311 | char *kwnames[] = { | |
11312 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11313 | }; | |
11314 | ||
11315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11317 | { | |
11318 | arg2 = wxString_in_helper(obj1); | |
11319 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11320 | temp2 = True; |
d14a1e28 RD |
11321 | } |
11322 | if (obj2) { | |
11323 | { | |
11324 | arg3 = wxString_in_helper(obj2); | |
11325 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11326 | temp3 = True; |
d14a1e28 RD |
11327 | } |
11328 | } | |
11329 | { | |
11330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11331 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11332 | ||
11333 | wxPyEndAllowThreads(__tstate); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | resultobj = result; | |
11337 | { | |
11338 | if (temp2) | |
11339 | delete arg2; | |
11340 | } | |
11341 | { | |
11342 | if (temp3) | |
11343 | delete arg3; | |
11344 | } | |
11345 | return resultobj; | |
11346 | fail: | |
11347 | { | |
11348 | if (temp2) | |
11349 | delete arg2; | |
11350 | } | |
11351 | { | |
11352 | if (temp3) | |
11353 | delete arg3; | |
11354 | } | |
11355 | return NULL; | |
11356 | } | |
11357 | ||
11358 | ||
11359 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11360 | PyObject *resultobj; | |
11361 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11362 | wxString *arg2 = 0 ; | |
11363 | wxString *arg3 = 0 ; | |
423f194a | 11364 | bool arg4 = (bool) True ; |
d14a1e28 | 11365 | bool result; |
423f194a RD |
11366 | bool temp2 = False ; |
11367 | bool temp3 = False ; | |
d14a1e28 RD |
11368 | PyObject * obj0 = 0 ; |
11369 | PyObject * obj1 = 0 ; | |
11370 | PyObject * obj2 = 0 ; | |
11371 | PyObject * obj3 = 0 ; | |
11372 | char *kwnames[] = { | |
11373 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
11374 | }; | |
11375 | ||
11376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11378 | { | |
11379 | arg2 = wxString_in_helper(obj1); | |
11380 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11381 | temp2 = True; |
d14a1e28 RD |
11382 | } |
11383 | { | |
11384 | arg3 = wxString_in_helper(obj2); | |
11385 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11386 | temp3 = True; |
d14a1e28 RD |
11387 | } |
11388 | if (obj3) { | |
11389 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11390 | if (PyErr_Occurred()) SWIG_fail; | |
11391 | } | |
11392 | { | |
11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11394 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11395 | ||
11396 | wxPyEndAllowThreads(__tstate); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | } | |
11399 | resultobj = PyInt_FromLong((long)result); | |
11400 | { | |
11401 | if (temp2) | |
11402 | delete arg2; | |
11403 | } | |
11404 | { | |
11405 | if (temp3) | |
11406 | delete arg3; | |
11407 | } | |
11408 | return resultobj; | |
11409 | fail: | |
11410 | { | |
11411 | if (temp2) | |
11412 | delete arg2; | |
11413 | } | |
11414 | { | |
11415 | if (temp3) | |
11416 | delete arg3; | |
11417 | } | |
11418 | return NULL; | |
11419 | } | |
11420 | ||
11421 | ||
11422 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11423 | PyObject *resultobj; | |
11424 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11425 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
11426 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11427 | int arg3 = (int) 0 ; | |
11428 | bool result; | |
423f194a | 11429 | bool temp2 = False ; |
d14a1e28 RD |
11430 | PyObject * obj0 = 0 ; |
11431 | PyObject * obj1 = 0 ; | |
11432 | char *kwnames[] = { | |
11433 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
11434 | }; | |
11435 | ||
11436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11438 | if (obj1) { | |
11439 | { | |
11440 | arg2 = wxString_in_helper(obj1); | |
11441 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11442 | temp2 = True; |
d14a1e28 RD |
11443 | } |
11444 | } | |
11445 | { | |
11446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11447 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
11448 | ||
11449 | wxPyEndAllowThreads(__tstate); | |
11450 | if (PyErr_Occurred()) SWIG_fail; | |
11451 | } | |
11452 | resultobj = PyInt_FromLong((long)result); | |
11453 | { | |
11454 | if (temp2) | |
11455 | delete arg2; | |
11456 | } | |
11457 | return resultobj; | |
11458 | fail: | |
11459 | { | |
11460 | if (temp2) | |
11461 | delete arg2; | |
11462 | } | |
11463 | return NULL; | |
11464 | } | |
11465 | ||
11466 | ||
11467 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11468 | PyObject *resultobj; | |
11469 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11470 | bool result; | |
11471 | PyObject * obj0 = 0 ; | |
11472 | char *kwnames[] = { | |
11473 | (char *) "self", NULL | |
11474 | }; | |
11475 | ||
11476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
11477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11478 | { | |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11480 | result = (bool)(arg1)->Unassociate(); | |
11481 | ||
11482 | wxPyEndAllowThreads(__tstate); | |
11483 | if (PyErr_Occurred()) SWIG_fail; | |
11484 | } | |
11485 | resultobj = PyInt_FromLong((long)result); | |
11486 | return resultobj; | |
11487 | fail: | |
11488 | return NULL; | |
11489 | } | |
11490 | ||
11491 | ||
11492 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11493 | PyObject *resultobj; | |
11494 | wxString *arg1 = 0 ; | |
11495 | wxString *arg2 = 0 ; | |
11496 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11497 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11498 | wxString result; | |
423f194a RD |
11499 | bool temp1 = False ; |
11500 | bool temp2 = False ; | |
11501 | bool temp3 = False ; | |
d14a1e28 RD |
11502 | PyObject * obj0 = 0 ; |
11503 | PyObject * obj1 = 0 ; | |
11504 | PyObject * obj2 = 0 ; | |
11505 | char *kwnames[] = { | |
11506 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
11507 | }; | |
11508 | ||
11509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11510 | { | |
11511 | arg1 = wxString_in_helper(obj0); | |
11512 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11513 | temp1 = True; |
d14a1e28 RD |
11514 | } |
11515 | { | |
11516 | arg2 = wxString_in_helper(obj1); | |
11517 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11518 | temp2 = True; |
d14a1e28 RD |
11519 | } |
11520 | if (obj2) { | |
11521 | { | |
11522 | arg3 = wxString_in_helper(obj2); | |
11523 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11524 | temp3 = True; |
d14a1e28 RD |
11525 | } |
11526 | } | |
11527 | { | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11530 | ||
11531 | wxPyEndAllowThreads(__tstate); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
11534 | { | |
11535 | #if wxUSE_UNICODE | |
11536 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11537 | #else | |
11538 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11539 | #endif | |
11540 | } | |
11541 | { | |
11542 | if (temp1) | |
11543 | delete arg1; | |
11544 | } | |
11545 | { | |
11546 | if (temp2) | |
11547 | delete arg2; | |
11548 | } | |
11549 | { | |
11550 | if (temp3) | |
11551 | delete arg3; | |
11552 | } | |
11553 | return resultobj; | |
11554 | fail: | |
11555 | { | |
11556 | if (temp1) | |
11557 | delete arg1; | |
11558 | } | |
11559 | { | |
11560 | if (temp2) | |
11561 | delete arg2; | |
11562 | } | |
11563 | { | |
11564 | if (temp3) | |
11565 | delete arg3; | |
11566 | } | |
11567 | return NULL; | |
11568 | } | |
11569 | ||
11570 | ||
11571 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
11572 | PyObject *obj; | |
11573 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11574 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
11575 | Py_INCREF(obj); | |
11576 | return Py_BuildValue((char *)""); | |
11577 | } | |
11578 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
11579 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
11580 | return 1; | |
11581 | } | |
11582 | ||
11583 | ||
11584 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
11585 | PyObject *pyobj; | |
11586 | ||
11587 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
11588 | return pyobj; | |
11589 | } | |
11590 | ||
11591 | ||
11592 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11593 | PyObject *resultobj; | |
11594 | wxString *arg1 = 0 ; | |
11595 | wxString *arg2 = 0 ; | |
11596 | bool result; | |
423f194a RD |
11597 | bool temp1 = False ; |
11598 | bool temp2 = False ; | |
d14a1e28 RD |
11599 | PyObject * obj0 = 0 ; |
11600 | PyObject * obj1 = 0 ; | |
11601 | char *kwnames[] = { | |
11602 | (char *) "mimeType",(char *) "wildcard", NULL | |
11603 | }; | |
11604 | ||
11605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
11606 | { | |
11607 | arg1 = wxString_in_helper(obj0); | |
11608 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11609 | temp1 = True; |
d14a1e28 RD |
11610 | } |
11611 | { | |
11612 | arg2 = wxString_in_helper(obj1); | |
11613 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11614 | temp2 = True; |
d14a1e28 RD |
11615 | } |
11616 | { | |
11617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11618 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
11619 | ||
11620 | wxPyEndAllowThreads(__tstate); | |
11621 | if (PyErr_Occurred()) SWIG_fail; | |
11622 | } | |
11623 | resultobj = PyInt_FromLong((long)result); | |
11624 | { | |
11625 | if (temp1) | |
11626 | delete arg1; | |
11627 | } | |
11628 | { | |
11629 | if (temp2) | |
11630 | delete arg2; | |
11631 | } | |
11632 | return resultobj; | |
11633 | fail: | |
11634 | { | |
11635 | if (temp1) | |
11636 | delete arg1; | |
11637 | } | |
11638 | { | |
11639 | if (temp2) | |
11640 | delete arg2; | |
11641 | } | |
11642 | return NULL; | |
11643 | } | |
11644 | ||
11645 | ||
11646 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11647 | PyObject *resultobj; | |
11648 | wxMimeTypesManager *result; | |
11649 | char *kwnames[] = { | |
11650 | NULL | |
11651 | }; | |
11652 | ||
11653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
11654 | { | |
11655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11656 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
11657 | ||
11658 | wxPyEndAllowThreads(__tstate); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
11661 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
11662 | return resultobj; | |
11663 | fail: | |
11664 | return NULL; | |
11665 | } | |
11666 | ||
11667 | ||
11668 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11669 | PyObject *resultobj; | |
11670 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11671 | int arg2 = (int) wxMAILCAP_ALL ; | |
11672 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11673 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 11674 | bool temp3 = False ; |
d14a1e28 RD |
11675 | PyObject * obj0 = 0 ; |
11676 | PyObject * obj2 = 0 ; | |
11677 | char *kwnames[] = { | |
11678 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
11679 | }; | |
11680 | ||
11681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:MimeTypesManager_Initialize",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
11682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11683 | if (obj2) { | |
11684 | { | |
11685 | arg3 = wxString_in_helper(obj2); | |
11686 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11687 | temp3 = True; |
d14a1e28 RD |
11688 | } |
11689 | } | |
11690 | { | |
11691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11692 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
11693 | ||
11694 | wxPyEndAllowThreads(__tstate); | |
11695 | if (PyErr_Occurred()) SWIG_fail; | |
11696 | } | |
11697 | Py_INCREF(Py_None); resultobj = Py_None; | |
11698 | { | |
11699 | if (temp3) | |
11700 | delete arg3; | |
11701 | } | |
11702 | return resultobj; | |
11703 | fail: | |
11704 | { | |
11705 | if (temp3) | |
11706 | delete arg3; | |
11707 | } | |
11708 | return NULL; | |
11709 | } | |
11710 | ||
11711 | ||
11712 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11713 | PyObject *resultobj; | |
11714 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11715 | PyObject * obj0 = 0 ; | |
11716 | char *kwnames[] = { | |
11717 | (char *) "self", NULL | |
11718 | }; | |
11719 | ||
11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
11721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11722 | { | |
11723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11724 | (arg1)->ClearData(); | |
11725 | ||
11726 | wxPyEndAllowThreads(__tstate); | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | Py_INCREF(Py_None); resultobj = Py_None; | |
11730 | return resultobj; | |
11731 | fail: | |
11732 | return NULL; | |
11733 | } | |
11734 | ||
11735 | ||
11736 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11737 | PyObject *resultobj; | |
11738 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11739 | wxString *arg2 = 0 ; | |
11740 | wxFileType *result; | |
423f194a | 11741 | bool temp2 = False ; |
d14a1e28 RD |
11742 | PyObject * obj0 = 0 ; |
11743 | PyObject * obj1 = 0 ; | |
11744 | char *kwnames[] = { | |
11745 | (char *) "self",(char *) "ext", NULL | |
11746 | }; | |
11747 | ||
11748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
11749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11750 | { | |
11751 | arg2 = wxString_in_helper(obj1); | |
11752 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11753 | temp2 = True; |
d14a1e28 RD |
11754 | } |
11755 | { | |
11756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11757 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
11758 | ||
11759 | wxPyEndAllowThreads(__tstate); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
11761 | } | |
11762 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11763 | { | |
11764 | if (temp2) | |
11765 | delete arg2; | |
11766 | } | |
11767 | return resultobj; | |
11768 | fail: | |
11769 | { | |
11770 | if (temp2) | |
11771 | delete arg2; | |
11772 | } | |
11773 | return NULL; | |
11774 | } | |
11775 | ||
11776 | ||
11777 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11778 | PyObject *resultobj; | |
11779 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11780 | wxString *arg2 = 0 ; | |
11781 | wxFileType *result; | |
423f194a | 11782 | bool temp2 = False ; |
d14a1e28 RD |
11783 | PyObject * obj0 = 0 ; |
11784 | PyObject * obj1 = 0 ; | |
11785 | char *kwnames[] = { | |
11786 | (char *) "self",(char *) "mimeType", NULL | |
11787 | }; | |
11788 | ||
11789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
11790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11791 | { | |
11792 | arg2 = wxString_in_helper(obj1); | |
11793 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11794 | temp2 = True; |
d14a1e28 RD |
11795 | } |
11796 | { | |
11797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11798 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
11799 | ||
11800 | wxPyEndAllowThreads(__tstate); | |
11801 | if (PyErr_Occurred()) SWIG_fail; | |
11802 | } | |
11803 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11804 | { | |
11805 | if (temp2) | |
11806 | delete arg2; | |
11807 | } | |
11808 | return resultobj; | |
11809 | fail: | |
11810 | { | |
11811 | if (temp2) | |
11812 | delete arg2; | |
11813 | } | |
11814 | return NULL; | |
11815 | } | |
11816 | ||
11817 | ||
11818 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11819 | PyObject *resultobj; | |
11820 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11821 | wxString *arg2 = 0 ; | |
423f194a | 11822 | bool arg3 = (bool) False ; |
d14a1e28 | 11823 | bool result; |
423f194a | 11824 | bool temp2 = False ; |
d14a1e28 RD |
11825 | PyObject * obj0 = 0 ; |
11826 | PyObject * obj1 = 0 ; | |
11827 | PyObject * obj2 = 0 ; | |
11828 | char *kwnames[] = { | |
11829 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
11830 | }; | |
11831 | ||
11832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11834 | { | |
11835 | arg2 = wxString_in_helper(obj1); | |
11836 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11837 | temp2 = True; |
d14a1e28 RD |
11838 | } |
11839 | if (obj2) { | |
11840 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
11841 | if (PyErr_Occurred()) SWIG_fail; | |
11842 | } | |
11843 | { | |
11844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11845 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
11846 | ||
11847 | wxPyEndAllowThreads(__tstate); | |
11848 | if (PyErr_Occurred()) SWIG_fail; | |
11849 | } | |
11850 | resultobj = PyInt_FromLong((long)result); | |
11851 | { | |
11852 | if (temp2) | |
11853 | delete arg2; | |
11854 | } | |
11855 | return resultobj; | |
11856 | fail: | |
11857 | { | |
11858 | if (temp2) | |
11859 | delete arg2; | |
11860 | } | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
11865 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11866 | PyObject *resultobj; | |
11867 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11868 | wxString *arg2 = 0 ; | |
11869 | bool result; | |
423f194a | 11870 | bool temp2 = False ; |
d14a1e28 RD |
11871 | PyObject * obj0 = 0 ; |
11872 | PyObject * obj1 = 0 ; | |
11873 | char *kwnames[] = { | |
11874 | (char *) "self",(char *) "filename", NULL | |
11875 | }; | |
11876 | ||
11877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
11878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11879 | { | |
11880 | arg2 = wxString_in_helper(obj1); | |
11881 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11882 | temp2 = True; |
d14a1e28 RD |
11883 | } |
11884 | { | |
11885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11886 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
11887 | ||
11888 | wxPyEndAllowThreads(__tstate); | |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
11890 | } | |
11891 | resultobj = PyInt_FromLong((long)result); | |
11892 | { | |
11893 | if (temp2) | |
11894 | delete arg2; | |
11895 | } | |
11896 | return resultobj; | |
11897 | fail: | |
11898 | { | |
11899 | if (temp2) | |
11900 | delete arg2; | |
11901 | } | |
11902 | return NULL; | |
11903 | } | |
11904 | ||
11905 | ||
11906 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11907 | PyObject *resultobj; | |
11908 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11909 | PyObject *result; | |
11910 | PyObject * obj0 = 0 ; | |
11911 | char *kwnames[] = { | |
11912 | (char *) "self", NULL | |
11913 | }; | |
11914 | ||
11915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
11916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11917 | { | |
11918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11919 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
11920 | ||
11921 | wxPyEndAllowThreads(__tstate); | |
11922 | if (PyErr_Occurred()) SWIG_fail; | |
11923 | } | |
11924 | resultobj = result; | |
11925 | return resultobj; | |
11926 | fail: | |
11927 | return NULL; | |
11928 | } | |
11929 | ||
11930 | ||
11931 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11932 | PyObject *resultobj; | |
11933 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11934 | wxFileTypeInfo *arg2 = 0 ; | |
11935 | PyObject * obj0 = 0 ; | |
11936 | PyObject * obj1 = 0 ; | |
11937 | char *kwnames[] = { | |
11938 | (char *) "self",(char *) "ft", NULL | |
11939 | }; | |
11940 | ||
11941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
11942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11943 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11944 | if (arg2 == NULL) { | |
11945 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11946 | } | |
11947 | { | |
11948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11949 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
11950 | ||
11951 | wxPyEndAllowThreads(__tstate); | |
11952 | if (PyErr_Occurred()) SWIG_fail; | |
11953 | } | |
11954 | Py_INCREF(Py_None); resultobj = Py_None; | |
11955 | return resultobj; | |
11956 | fail: | |
11957 | return NULL; | |
11958 | } | |
11959 | ||
11960 | ||
11961 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11962 | PyObject *resultobj; | |
11963 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11964 | wxFileTypeInfo *arg2 = 0 ; | |
11965 | wxFileType *result; | |
11966 | PyObject * obj0 = 0 ; | |
11967 | PyObject * obj1 = 0 ; | |
11968 | char *kwnames[] = { | |
11969 | (char *) "self",(char *) "ftInfo", NULL | |
11970 | }; | |
11971 | ||
11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
11973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11974 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11975 | if (arg2 == NULL) { | |
11976 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11977 | } | |
11978 | { | |
11979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11980 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
11981 | ||
11982 | wxPyEndAllowThreads(__tstate); | |
11983 | if (PyErr_Occurred()) SWIG_fail; | |
11984 | } | |
11985 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11986 | return resultobj; | |
11987 | fail: | |
11988 | return NULL; | |
11989 | } | |
11990 | ||
11991 | ||
11992 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11993 | PyObject *resultobj; | |
11994 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11995 | wxFileType *arg2 = (wxFileType *) 0 ; | |
11996 | bool result; | |
11997 | PyObject * obj0 = 0 ; | |
11998 | PyObject * obj1 = 0 ; | |
11999 | char *kwnames[] = { | |
12000 | (char *) "self",(char *) "ft", NULL | |
12001 | }; | |
12002 | ||
12003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
12004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12005 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12006 | { | |
12007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12008 | result = (bool)(arg1)->Unassociate(arg2); | |
12009 | ||
12010 | wxPyEndAllowThreads(__tstate); | |
12011 | if (PyErr_Occurred()) SWIG_fail; | |
12012 | } | |
12013 | resultobj = PyInt_FromLong((long)result); | |
12014 | return resultobj; | |
12015 | fail: | |
12016 | return NULL; | |
12017 | } | |
12018 | ||
12019 | ||
12020 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12021 | PyObject *resultobj; | |
12022 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12023 | PyObject * obj0 = 0 ; | |
12024 | char *kwnames[] = { | |
12025 | (char *) "self", NULL | |
12026 | }; | |
12027 | ||
12028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
12029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12030 | { | |
12031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12032 | delete arg1; | |
12033 | ||
12034 | wxPyEndAllowThreads(__tstate); | |
12035 | if (PyErr_Occurred()) SWIG_fail; | |
12036 | } | |
12037 | Py_INCREF(Py_None); resultobj = Py_None; | |
12038 | return resultobj; | |
12039 | fail: | |
12040 | return NULL; | |
12041 | } | |
12042 | ||
12043 | ||
12044 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
12045 | PyObject *obj; | |
12046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12047 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
12048 | Py_INCREF(obj); | |
12049 | return Py_BuildValue((char *)""); | |
12050 | } | |
12051 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
12052 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
12053 | return 1; | |
12054 | } | |
12055 | ||
12056 | ||
12057 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
12058 | PyObject *pyobj; | |
12059 | ||
12060 | { | |
12061 | #if wxUSE_UNICODE | |
12062 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12063 | #else | |
12064 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12065 | #endif | |
12066 | } | |
12067 | return pyobj; | |
12068 | } | |
12069 | ||
12070 | ||
12071 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
12072 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
12073 | return 1; | |
12074 | } | |
12075 | ||
12076 | ||
12077 | static PyObject *_wrap_ART_MENU_get() { | |
12078 | PyObject *pyobj; | |
12079 | ||
12080 | { | |
12081 | #if wxUSE_UNICODE | |
12082 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12083 | #else | |
12084 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12085 | #endif | |
12086 | } | |
12087 | return pyobj; | |
12088 | } | |
12089 | ||
12090 | ||
12091 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
12092 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
12093 | return 1; | |
12094 | } | |
12095 | ||
12096 | ||
12097 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
12098 | PyObject *pyobj; | |
12099 | ||
12100 | { | |
12101 | #if wxUSE_UNICODE | |
12102 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12103 | #else | |
12104 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12105 | #endif | |
12106 | } | |
12107 | return pyobj; | |
12108 | } | |
12109 | ||
12110 | ||
12111 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
12112 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
12113 | return 1; | |
12114 | } | |
12115 | ||
12116 | ||
12117 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
12118 | PyObject *pyobj; | |
12119 | ||
12120 | { | |
12121 | #if wxUSE_UNICODE | |
12122 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12123 | #else | |
12124 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12125 | #endif | |
12126 | } | |
12127 | return pyobj; | |
12128 | } | |
12129 | ||
12130 | ||
12131 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
12132 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
12133 | return 1; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
12138 | PyObject *pyobj; | |
12139 | ||
12140 | { | |
12141 | #if wxUSE_UNICODE | |
12142 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12143 | #else | |
12144 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12145 | #endif | |
12146 | } | |
12147 | return pyobj; | |
12148 | } | |
12149 | ||
12150 | ||
12151 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
12152 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
12153 | return 1; | |
12154 | } | |
12155 | ||
12156 | ||
12157 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
12158 | PyObject *pyobj; | |
12159 | ||
12160 | { | |
12161 | #if wxUSE_UNICODE | |
12162 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12163 | #else | |
12164 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12165 | #endif | |
12166 | } | |
12167 | return pyobj; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
12172 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
12173 | return 1; | |
12174 | } | |
12175 | ||
12176 | ||
12177 | static PyObject *_wrap_ART_OTHER_get() { | |
12178 | PyObject *pyobj; | |
12179 | ||
12180 | { | |
12181 | #if wxUSE_UNICODE | |
12182 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12183 | #else | |
12184 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12185 | #endif | |
12186 | } | |
12187 | return pyobj; | |
12188 | } | |
12189 | ||
12190 | ||
12191 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
12192 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
12193 | return 1; | |
12194 | } | |
12195 | ||
12196 | ||
12197 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
12198 | PyObject *pyobj; | |
12199 | ||
12200 | { | |
12201 | #if wxUSE_UNICODE | |
12202 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12203 | #else | |
12204 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12205 | #endif | |
12206 | } | |
12207 | return pyobj; | |
12208 | } | |
12209 | ||
12210 | ||
12211 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
12212 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
12213 | return 1; | |
12214 | } | |
12215 | ||
12216 | ||
12217 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
12218 | PyObject *pyobj; | |
12219 | ||
12220 | { | |
12221 | #if wxUSE_UNICODE | |
12222 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12223 | #else | |
12224 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12225 | #endif | |
12226 | } | |
12227 | return pyobj; | |
12228 | } | |
12229 | ||
12230 | ||
12231 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
12232 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
12233 | return 1; | |
12234 | } | |
12235 | ||
12236 | ||
12237 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
12238 | PyObject *pyobj; | |
12239 | ||
12240 | { | |
12241 | #if wxUSE_UNICODE | |
12242 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12243 | #else | |
12244 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12245 | #endif | |
12246 | } | |
12247 | return pyobj; | |
12248 | } | |
12249 | ||
12250 | ||
12251 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
12252 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
12253 | return 1; | |
12254 | } | |
12255 | ||
12256 | ||
12257 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
12258 | PyObject *pyobj; | |
12259 | ||
12260 | { | |
12261 | #if wxUSE_UNICODE | |
12262 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12263 | #else | |
12264 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12265 | #endif | |
12266 | } | |
12267 | return pyobj; | |
12268 | } | |
12269 | ||
12270 | ||
12271 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
12272 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
12273 | return 1; | |
12274 | } | |
12275 | ||
12276 | ||
12277 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
12278 | PyObject *pyobj; | |
12279 | ||
12280 | { | |
12281 | #if wxUSE_UNICODE | |
12282 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12283 | #else | |
12284 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12285 | #endif | |
12286 | } | |
12287 | return pyobj; | |
12288 | } | |
12289 | ||
12290 | ||
12291 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
12292 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
12293 | return 1; | |
12294 | } | |
12295 | ||
12296 | ||
12297 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
12298 | PyObject *pyobj; | |
12299 | ||
12300 | { | |
12301 | #if wxUSE_UNICODE | |
12302 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12303 | #else | |
12304 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12305 | #endif | |
12306 | } | |
12307 | return pyobj; | |
12308 | } | |
12309 | ||
12310 | ||
12311 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
12312 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
12313 | return 1; | |
12314 | } | |
12315 | ||
12316 | ||
12317 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
12318 | PyObject *pyobj; | |
12319 | ||
12320 | { | |
12321 | #if wxUSE_UNICODE | |
12322 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12323 | #else | |
12324 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12325 | #endif | |
12326 | } | |
12327 | return pyobj; | |
12328 | } | |
12329 | ||
12330 | ||
12331 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
12332 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
12333 | return 1; | |
12334 | } | |
12335 | ||
12336 | ||
12337 | static PyObject *_wrap_ART_GO_BACK_get() { | |
12338 | PyObject *pyobj; | |
12339 | ||
12340 | { | |
12341 | #if wxUSE_UNICODE | |
12342 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12343 | #else | |
12344 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12345 | #endif | |
12346 | } | |
12347 | return pyobj; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
12352 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
12353 | return 1; | |
12354 | } | |
12355 | ||
12356 | ||
12357 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
12358 | PyObject *pyobj; | |
12359 | ||
12360 | { | |
12361 | #if wxUSE_UNICODE | |
12362 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12363 | #else | |
12364 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12365 | #endif | |
12366 | } | |
12367 | return pyobj; | |
12368 | } | |
12369 | ||
12370 | ||
12371 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
12372 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
12373 | return 1; | |
12374 | } | |
12375 | ||
12376 | ||
12377 | static PyObject *_wrap_ART_GO_UP_get() { | |
12378 | PyObject *pyobj; | |
12379 | ||
12380 | { | |
12381 | #if wxUSE_UNICODE | |
12382 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12383 | #else | |
12384 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12385 | #endif | |
12386 | } | |
12387 | return pyobj; | |
12388 | } | |
12389 | ||
12390 | ||
12391 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
12392 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
12393 | return 1; | |
12394 | } | |
12395 | ||
12396 | ||
12397 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
12398 | PyObject *pyobj; | |
12399 | ||
12400 | { | |
12401 | #if wxUSE_UNICODE | |
12402 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12403 | #else | |
12404 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12405 | #endif | |
12406 | } | |
12407 | return pyobj; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
12412 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
12413 | return 1; | |
12414 | } | |
12415 | ||
12416 | ||
12417 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
12418 | PyObject *pyobj; | |
12419 | ||
12420 | { | |
12421 | #if wxUSE_UNICODE | |
12422 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12423 | #else | |
12424 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12425 | #endif | |
12426 | } | |
12427 | return pyobj; | |
12428 | } | |
12429 | ||
12430 | ||
12431 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
12432 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
12433 | return 1; | |
12434 | } | |
12435 | ||
12436 | ||
12437 | static PyObject *_wrap_ART_GO_HOME_get() { | |
12438 | PyObject *pyobj; | |
12439 | ||
12440 | { | |
12441 | #if wxUSE_UNICODE | |
12442 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12443 | #else | |
12444 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12445 | #endif | |
12446 | } | |
12447 | return pyobj; | |
12448 | } | |
12449 | ||
12450 | ||
12451 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
12452 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
12453 | return 1; | |
12454 | } | |
12455 | ||
12456 | ||
12457 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
12458 | PyObject *pyobj; | |
12459 | ||
12460 | { | |
12461 | #if wxUSE_UNICODE | |
12462 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12463 | #else | |
12464 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12465 | #endif | |
12466 | } | |
12467 | return pyobj; | |
12468 | } | |
12469 | ||
12470 | ||
12471 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
12472 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
12473 | return 1; | |
12474 | } | |
12475 | ||
12476 | ||
12477 | static PyObject *_wrap_ART_PRINT_get() { | |
12478 | PyObject *pyobj; | |
12479 | ||
12480 | { | |
12481 | #if wxUSE_UNICODE | |
12482 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12483 | #else | |
12484 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12485 | #endif | |
12486 | } | |
12487 | return pyobj; | |
12488 | } | |
12489 | ||
12490 | ||
12491 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
12492 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
12493 | return 1; | |
12494 | } | |
12495 | ||
12496 | ||
12497 | static PyObject *_wrap_ART_HELP_get() { | |
12498 | PyObject *pyobj; | |
12499 | ||
12500 | { | |
12501 | #if wxUSE_UNICODE | |
12502 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12503 | #else | |
12504 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12505 | #endif | |
12506 | } | |
12507 | return pyobj; | |
12508 | } | |
12509 | ||
12510 | ||
12511 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
12512 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
12513 | return 1; | |
12514 | } | |
12515 | ||
12516 | ||
12517 | static PyObject *_wrap_ART_TIP_get() { | |
12518 | PyObject *pyobj; | |
12519 | ||
12520 | { | |
12521 | #if wxUSE_UNICODE | |
12522 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12523 | #else | |
12524 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12525 | #endif | |
12526 | } | |
12527 | return pyobj; | |
12528 | } | |
12529 | ||
12530 | ||
12531 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
12532 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
12533 | return 1; | |
12534 | } | |
12535 | ||
12536 | ||
12537 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
12538 | PyObject *pyobj; | |
12539 | ||
12540 | { | |
12541 | #if wxUSE_UNICODE | |
12542 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12543 | #else | |
12544 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12545 | #endif | |
12546 | } | |
12547 | return pyobj; | |
12548 | } | |
12549 | ||
12550 | ||
12551 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
12552 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
12553 | return 1; | |
12554 | } | |
12555 | ||
12556 | ||
12557 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
12558 | PyObject *pyobj; | |
12559 | ||
12560 | { | |
12561 | #if wxUSE_UNICODE | |
12562 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12563 | #else | |
12564 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12565 | #endif | |
12566 | } | |
12567 | return pyobj; | |
12568 | } | |
12569 | ||
12570 | ||
12571 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
12572 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
12573 | return 1; | |
12574 | } | |
12575 | ||
12576 | ||
12577 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
12578 | PyObject *pyobj; | |
12579 | ||
12580 | { | |
12581 | #if wxUSE_UNICODE | |
12582 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12583 | #else | |
12584 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12585 | #endif | |
12586 | } | |
12587 | return pyobj; | |
12588 | } | |
12589 | ||
12590 | ||
12591 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
12592 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
12593 | return 1; | |
12594 | } | |
12595 | ||
12596 | ||
12597 | static PyObject *_wrap_ART_FOLDER_get() { | |
12598 | PyObject *pyobj; | |
12599 | ||
12600 | { | |
12601 | #if wxUSE_UNICODE | |
12602 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12603 | #else | |
12604 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12605 | #endif | |
12606 | } | |
12607 | return pyobj; | |
12608 | } | |
12609 | ||
12610 | ||
12611 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
12612 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
12613 | return 1; | |
12614 | } | |
12615 | ||
12616 | ||
12617 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
12618 | PyObject *pyobj; | |
12619 | ||
12620 | { | |
12621 | #if wxUSE_UNICODE | |
12622 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12623 | #else | |
12624 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12625 | #endif | |
12626 | } | |
12627 | return pyobj; | |
12628 | } | |
12629 | ||
12630 | ||
12631 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
12632 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
12633 | return 1; | |
12634 | } | |
12635 | ||
12636 | ||
12637 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
12638 | PyObject *pyobj; | |
12639 | ||
12640 | { | |
12641 | #if wxUSE_UNICODE | |
12642 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12643 | #else | |
12644 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12645 | #endif | |
12646 | } | |
12647 | return pyobj; | |
12648 | } | |
12649 | ||
12650 | ||
12651 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
12652 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
12653 | return 1; | |
12654 | } | |
12655 | ||
12656 | ||
12657 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
12658 | PyObject *pyobj; | |
12659 | ||
12660 | { | |
12661 | #if wxUSE_UNICODE | |
12662 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12663 | #else | |
12664 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12665 | #endif | |
12666 | } | |
12667 | return pyobj; | |
12668 | } | |
12669 | ||
12670 | ||
12671 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
12672 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
12673 | return 1; | |
12674 | } | |
12675 | ||
12676 | ||
12677 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
12678 | PyObject *pyobj; | |
12679 | ||
12680 | { | |
12681 | #if wxUSE_UNICODE | |
12682 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12683 | #else | |
12684 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12685 | #endif | |
12686 | } | |
12687 | return pyobj; | |
12688 | } | |
12689 | ||
12690 | ||
12691 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
12692 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
12693 | return 1; | |
12694 | } | |
12695 | ||
12696 | ||
12697 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
12698 | PyObject *pyobj; | |
12699 | ||
12700 | { | |
12701 | #if wxUSE_UNICODE | |
12702 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12703 | #else | |
12704 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12705 | #endif | |
12706 | } | |
12707 | return pyobj; | |
12708 | } | |
12709 | ||
12710 | ||
12711 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
12712 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
12713 | return 1; | |
12714 | } | |
12715 | ||
12716 | ||
12717 | static PyObject *_wrap_ART_ERROR_get() { | |
12718 | PyObject *pyobj; | |
12719 | ||
12720 | { | |
12721 | #if wxUSE_UNICODE | |
12722 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12723 | #else | |
12724 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12725 | #endif | |
12726 | } | |
12727 | return pyobj; | |
12728 | } | |
12729 | ||
12730 | ||
12731 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
12732 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
12733 | return 1; | |
12734 | } | |
12735 | ||
12736 | ||
12737 | static PyObject *_wrap_ART_QUESTION_get() { | |
12738 | PyObject *pyobj; | |
12739 | ||
12740 | { | |
12741 | #if wxUSE_UNICODE | |
12742 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12743 | #else | |
12744 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12745 | #endif | |
12746 | } | |
12747 | return pyobj; | |
12748 | } | |
12749 | ||
12750 | ||
12751 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
12752 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
12753 | return 1; | |
12754 | } | |
12755 | ||
12756 | ||
12757 | static PyObject *_wrap_ART_WARNING_get() { | |
12758 | PyObject *pyobj; | |
12759 | ||
12760 | { | |
12761 | #if wxUSE_UNICODE | |
12762 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12763 | #else | |
12764 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12765 | #endif | |
12766 | } | |
12767 | return pyobj; | |
12768 | } | |
12769 | ||
12770 | ||
12771 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
12772 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
12773 | return 1; | |
12774 | } | |
12775 | ||
12776 | ||
12777 | static PyObject *_wrap_ART_INFORMATION_get() { | |
12778 | PyObject *pyobj; | |
12779 | ||
12780 | { | |
12781 | #if wxUSE_UNICODE | |
12782 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12783 | #else | |
12784 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12785 | #endif | |
12786 | } | |
12787 | return pyobj; | |
12788 | } | |
12789 | ||
12790 | ||
12791 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
12792 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
12793 | return 1; | |
12794 | } | |
12795 | ||
12796 | ||
12797 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
12798 | PyObject *pyobj; | |
12799 | ||
12800 | { | |
12801 | #if wxUSE_UNICODE | |
12802 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
12803 | #else | |
12804 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
12805 | #endif | |
12806 | } | |
12807 | return pyobj; | |
12808 | } | |
12809 | ||
12810 | ||
12811 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12812 | PyObject *resultobj; | |
12813 | wxPyArtProvider *result; | |
12814 | char *kwnames[] = { | |
12815 | NULL | |
12816 | }; | |
12817 | ||
12818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
12819 | { | |
12820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12821 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
12822 | ||
12823 | wxPyEndAllowThreads(__tstate); | |
12824 | if (PyErr_Occurred()) SWIG_fail; | |
12825 | } | |
12826 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
12827 | return resultobj; | |
12828 | fail: | |
12829 | return NULL; | |
12830 | } | |
12831 | ||
12832 | ||
d14a1e28 RD |
12833 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
12834 | PyObject *resultobj; | |
12835 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12836 | PyObject *arg2 = (PyObject *) 0 ; | |
12837 | PyObject *arg3 = (PyObject *) 0 ; | |
12838 | PyObject * obj0 = 0 ; | |
12839 | PyObject * obj1 = 0 ; | |
12840 | PyObject * obj2 = 0 ; | |
12841 | char *kwnames[] = { | |
12842 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
12843 | }; | |
12844 | ||
12845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12847 | arg2 = obj1; | |
12848 | arg3 = obj2; | |
12849 | { | |
12850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12851 | (arg1)->_setCallbackInfo(arg2,arg3); | |
12852 | ||
12853 | wxPyEndAllowThreads(__tstate); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
12856 | Py_INCREF(Py_None); resultobj = Py_None; | |
12857 | return resultobj; | |
12858 | fail: | |
12859 | return NULL; | |
12860 | } | |
12861 | ||
12862 | ||
12863 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12864 | PyObject *resultobj; | |
12865 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12866 | PyObject * obj0 = 0 ; | |
12867 | char *kwnames[] = { | |
12868 | (char *) "provider", NULL | |
12869 | }; | |
12870 | ||
12871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
12872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12873 | { | |
12874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12875 | wxPyArtProvider::PushProvider(arg1); | |
12876 | ||
12877 | wxPyEndAllowThreads(__tstate); | |
12878 | if (PyErr_Occurred()) SWIG_fail; | |
12879 | } | |
12880 | Py_INCREF(Py_None); resultobj = Py_None; | |
12881 | return resultobj; | |
12882 | fail: | |
12883 | return NULL; | |
12884 | } | |
12885 | ||
12886 | ||
12887 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12888 | PyObject *resultobj; | |
12889 | bool result; | |
12890 | char *kwnames[] = { | |
12891 | NULL | |
12892 | }; | |
12893 | ||
12894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
12895 | { | |
12896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12897 | result = (bool)wxPyArtProvider::PopProvider(); | |
12898 | ||
12899 | wxPyEndAllowThreads(__tstate); | |
12900 | if (PyErr_Occurred()) SWIG_fail; | |
12901 | } | |
12902 | resultobj = PyInt_FromLong((long)result); | |
12903 | return resultobj; | |
12904 | fail: | |
12905 | return NULL; | |
12906 | } | |
12907 | ||
12908 | ||
12909 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12910 | PyObject *resultobj; | |
12911 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12912 | bool result; | |
12913 | PyObject * obj0 = 0 ; | |
12914 | char *kwnames[] = { | |
12915 | (char *) "provider", NULL | |
12916 | }; | |
12917 | ||
12918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
12919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12920 | { | |
12921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12922 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
12923 | ||
12924 | wxPyEndAllowThreads(__tstate); | |
12925 | if (PyErr_Occurred()) SWIG_fail; | |
12926 | } | |
12927 | resultobj = PyInt_FromLong((long)result); | |
12928 | return resultobj; | |
12929 | fail: | |
12930 | return NULL; | |
12931 | } | |
12932 | ||
12933 | ||
12934 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12935 | PyObject *resultobj; | |
12936 | wxString *arg1 = 0 ; | |
12937 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
12938 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
12939 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
12940 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
12941 | wxBitmap result; | |
423f194a RD |
12942 | bool temp1 = False ; |
12943 | bool temp2 = False ; | |
d14a1e28 RD |
12944 | wxSize temp3 ; |
12945 | PyObject * obj0 = 0 ; | |
12946 | PyObject * obj1 = 0 ; | |
12947 | PyObject * obj2 = 0 ; | |
12948 | char *kwnames[] = { | |
12949 | (char *) "id",(char *) "client",(char *) "size", NULL | |
12950 | }; | |
12951 | ||
12952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12953 | { | |
12954 | arg1 = wxString_in_helper(obj0); | |
12955 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 12956 | temp1 = True; |
d14a1e28 RD |
12957 | } |
12958 | if (obj1) { | |
12959 | { | |
12960 | arg2 = wxString_in_helper(obj1); | |
12961 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12962 | temp2 = True; |
d14a1e28 RD |
12963 | } |
12964 | } | |
12965 | if (obj2) { | |
12966 | { | |
12967 | arg3 = &temp3; | |
12968 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12969 | } | |
12970 | } | |
12971 | { | |
12972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12973 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
12974 | ||
12975 | wxPyEndAllowThreads(__tstate); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
12977 | } | |
12978 | { | |
12979 | wxBitmap * resultptr; | |
12980 | resultptr = new wxBitmap((wxBitmap &) result); | |
12981 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
12982 | } | |
12983 | { | |
12984 | if (temp1) | |
12985 | delete arg1; | |
12986 | } | |
12987 | { | |
12988 | if (temp2) | |
12989 | delete arg2; | |
12990 | } | |
12991 | return resultobj; | |
12992 | fail: | |
12993 | { | |
12994 | if (temp1) | |
12995 | delete arg1; | |
12996 | } | |
12997 | { | |
12998 | if (temp2) | |
12999 | delete arg2; | |
13000 | } | |
13001 | return NULL; | |
13002 | } | |
13003 | ||
13004 | ||
13005 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13006 | PyObject *resultobj; | |
13007 | wxString *arg1 = 0 ; | |
13008 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13009 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13010 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13011 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13012 | wxIcon result; | |
423f194a RD |
13013 | bool temp1 = False ; |
13014 | bool temp2 = False ; | |
d14a1e28 RD |
13015 | wxSize temp3 ; |
13016 | PyObject * obj0 = 0 ; | |
13017 | PyObject * obj1 = 0 ; | |
13018 | PyObject * obj2 = 0 ; | |
13019 | char *kwnames[] = { | |
13020 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13021 | }; | |
13022 | ||
13023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13024 | { | |
13025 | arg1 = wxString_in_helper(obj0); | |
13026 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13027 | temp1 = True; |
d14a1e28 RD |
13028 | } |
13029 | if (obj1) { | |
13030 | { | |
13031 | arg2 = wxString_in_helper(obj1); | |
13032 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13033 | temp2 = True; |
d14a1e28 RD |
13034 | } |
13035 | } | |
13036 | if (obj2) { | |
13037 | { | |
13038 | arg3 = &temp3; | |
13039 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13040 | } | |
13041 | } | |
13042 | { | |
13043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13044 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13045 | ||
13046 | wxPyEndAllowThreads(__tstate); | |
13047 | if (PyErr_Occurred()) SWIG_fail; | |
13048 | } | |
13049 | { | |
13050 | wxIcon * resultptr; | |
13051 | resultptr = new wxIcon((wxIcon &) result); | |
13052 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
13053 | } | |
13054 | { | |
13055 | if (temp1) | |
13056 | delete arg1; | |
13057 | } | |
13058 | { | |
13059 | if (temp2) | |
13060 | delete arg2; | |
13061 | } | |
13062 | return resultobj; | |
13063 | fail: | |
13064 | { | |
13065 | if (temp1) | |
13066 | delete arg1; | |
13067 | } | |
13068 | { | |
13069 | if (temp2) | |
13070 | delete arg2; | |
13071 | } | |
13072 | return NULL; | |
13073 | } | |
13074 | ||
13075 | ||
13076 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { | |
13077 | PyObject *obj; | |
13078 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13079 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
13080 | Py_INCREF(obj); | |
13081 | return Py_BuildValue((char *)""); | |
13082 | } | |
13083 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13084 | PyObject *resultobj; | |
13085 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13086 | PyObject * obj0 = 0 ; | |
13087 | char *kwnames[] = { | |
13088 | (char *) "self", NULL | |
13089 | }; | |
13090 | ||
13091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
13092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13093 | { | |
13094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13095 | delete arg1; | |
13096 | ||
13097 | wxPyEndAllowThreads(__tstate); | |
13098 | if (PyErr_Occurred()) SWIG_fail; | |
13099 | } | |
13100 | Py_INCREF(Py_None); resultobj = Py_None; | |
13101 | return resultobj; | |
13102 | fail: | |
13103 | return NULL; | |
13104 | } | |
13105 | ||
13106 | ||
13107 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13108 | PyObject *resultobj; | |
13109 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13110 | wxConfigBase *result; | |
13111 | PyObject * obj0 = 0 ; | |
13112 | char *kwnames[] = { | |
13113 | (char *) "pConfig", NULL | |
13114 | }; | |
13115 | ||
13116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
13117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13118 | { | |
13119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13120 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
13121 | ||
13122 | wxPyEndAllowThreads(__tstate); | |
13123 | if (PyErr_Occurred()) SWIG_fail; | |
13124 | } | |
13125 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13126 | return resultobj; | |
13127 | fail: | |
13128 | return NULL; | |
13129 | } | |
13130 | ||
13131 | ||
13132 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13133 | PyObject *resultobj; | |
423f194a | 13134 | bool arg1 = (bool) True ; |
d14a1e28 RD |
13135 | wxConfigBase *result; |
13136 | PyObject * obj0 = 0 ; | |
13137 | char *kwnames[] = { | |
13138 | (char *) "createOnDemand", NULL | |
13139 | }; | |
13140 | ||
13141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
13142 | if (obj0) { | |
13143 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
13144 | if (PyErr_Occurred()) SWIG_fail; | |
13145 | } | |
13146 | { | |
13147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13148 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
13149 | ||
13150 | wxPyEndAllowThreads(__tstate); | |
13151 | if (PyErr_Occurred()) SWIG_fail; | |
13152 | } | |
13153 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13154 | return resultobj; | |
13155 | fail: | |
13156 | return NULL; | |
13157 | } | |
13158 | ||
13159 | ||
13160 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13161 | PyObject *resultobj; | |
13162 | wxConfigBase *result; | |
13163 | char *kwnames[] = { | |
13164 | NULL | |
13165 | }; | |
13166 | ||
13167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
13168 | { | |
13169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13170 | result = (wxConfigBase *)wxConfigBase::Create(); | |
13171 | ||
13172 | wxPyEndAllowThreads(__tstate); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
13175 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13176 | return resultobj; | |
13177 | fail: | |
13178 | return NULL; | |
13179 | } | |
13180 | ||
13181 | ||
13182 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13183 | PyObject *resultobj; | |
13184 | char *kwnames[] = { | |
13185 | NULL | |
13186 | }; | |
13187 | ||
13188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
13189 | { | |
13190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13191 | wxConfigBase::DontCreateOnDemand(); | |
13192 | ||
13193 | wxPyEndAllowThreads(__tstate); | |
13194 | if (PyErr_Occurred()) SWIG_fail; | |
13195 | } | |
13196 | Py_INCREF(Py_None); resultobj = Py_None; | |
13197 | return resultobj; | |
13198 | fail: | |
13199 | return NULL; | |
13200 | } | |
13201 | ||
13202 | ||
13203 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13204 | PyObject *resultobj; | |
13205 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13206 | wxString *arg2 = 0 ; | |
423f194a | 13207 | bool temp2 = False ; |
d14a1e28 RD |
13208 | PyObject * obj0 = 0 ; |
13209 | PyObject * obj1 = 0 ; | |
13210 | char *kwnames[] = { | |
13211 | (char *) "self",(char *) "strPath", NULL | |
13212 | }; | |
13213 | ||
13214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
13215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13216 | { | |
13217 | arg2 = wxString_in_helper(obj1); | |
13218 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13219 | temp2 = True; |
d14a1e28 RD |
13220 | } |
13221 | { | |
13222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13223 | (arg1)->SetPath((wxString const &)*arg2); | |
13224 | ||
13225 | wxPyEndAllowThreads(__tstate); | |
13226 | if (PyErr_Occurred()) SWIG_fail; | |
13227 | } | |
13228 | Py_INCREF(Py_None); resultobj = Py_None; | |
13229 | { | |
13230 | if (temp2) | |
13231 | delete arg2; | |
13232 | } | |
13233 | return resultobj; | |
13234 | fail: | |
13235 | { | |
13236 | if (temp2) | |
13237 | delete arg2; | |
13238 | } | |
13239 | return NULL; | |
13240 | } | |
13241 | ||
13242 | ||
13243 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13244 | PyObject *resultobj; | |
13245 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13246 | wxString *result; | |
13247 | PyObject * obj0 = 0 ; | |
13248 | char *kwnames[] = { | |
13249 | (char *) "self", NULL | |
13250 | }; | |
13251 | ||
13252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
13253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13254 | { | |
13255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13256 | { | |
13257 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
13258 | result = (wxString *) &_result_ref; | |
13259 | } | |
13260 | ||
13261 | wxPyEndAllowThreads(__tstate); | |
13262 | if (PyErr_Occurred()) SWIG_fail; | |
13263 | } | |
13264 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
13265 | return resultobj; | |
13266 | fail: | |
13267 | return NULL; | |
13268 | } | |
13269 | ||
13270 | ||
13271 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13272 | PyObject *resultobj; | |
13273 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13274 | PyObject *result; | |
13275 | PyObject * obj0 = 0 ; | |
13276 | char *kwnames[] = { | |
13277 | (char *) "self", NULL | |
13278 | }; | |
13279 | ||
13280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
13281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13282 | { | |
13283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13284 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
13285 | ||
13286 | wxPyEndAllowThreads(__tstate); | |
13287 | if (PyErr_Occurred()) SWIG_fail; | |
13288 | } | |
13289 | resultobj = result; | |
13290 | return resultobj; | |
13291 | fail: | |
13292 | return NULL; | |
13293 | } | |
13294 | ||
13295 | ||
13296 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13297 | PyObject *resultobj; | |
13298 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13299 | long arg2 ; | |
13300 | PyObject *result; | |
13301 | PyObject * obj0 = 0 ; | |
13302 | char *kwnames[] = { | |
13303 | (char *) "self",(char *) "index", NULL | |
13304 | }; | |
13305 | ||
13306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextGroup",kwnames,&obj0,&arg2)) goto fail; | |
13307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13308 | { | |
13309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13310 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
13311 | ||
13312 | wxPyEndAllowThreads(__tstate); | |
13313 | if (PyErr_Occurred()) SWIG_fail; | |
13314 | } | |
13315 | resultobj = result; | |
13316 | return resultobj; | |
13317 | fail: | |
13318 | return NULL; | |
13319 | } | |
13320 | ||
13321 | ||
13322 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13323 | PyObject *resultobj; | |
13324 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13325 | PyObject *result; | |
13326 | PyObject * obj0 = 0 ; | |
13327 | char *kwnames[] = { | |
13328 | (char *) "self", NULL | |
13329 | }; | |
13330 | ||
13331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
13332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13333 | { | |
13334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13335 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
13336 | ||
13337 | wxPyEndAllowThreads(__tstate); | |
13338 | if (PyErr_Occurred()) SWIG_fail; | |
13339 | } | |
13340 | resultobj = result; | |
13341 | return resultobj; | |
13342 | fail: | |
13343 | return NULL; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13348 | PyObject *resultobj; | |
13349 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13350 | long arg2 ; | |
13351 | PyObject *result; | |
13352 | PyObject * obj0 = 0 ; | |
13353 | char *kwnames[] = { | |
13354 | (char *) "self",(char *) "index", NULL | |
13355 | }; | |
13356 | ||
13357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextEntry",kwnames,&obj0,&arg2)) goto fail; | |
13358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13359 | { | |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13361 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
13362 | ||
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | resultobj = result; | |
13367 | return resultobj; | |
13368 | fail: | |
13369 | return NULL; | |
13370 | } | |
13371 | ||
13372 | ||
13373 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13374 | PyObject *resultobj; | |
13375 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13376 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13377 | size_t result; |
13378 | PyObject * obj0 = 0 ; | |
13379 | PyObject * obj1 = 0 ; | |
13380 | char *kwnames[] = { | |
13381 | (char *) "self",(char *) "bRecursive", NULL | |
13382 | }; | |
13383 | ||
13384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
13385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13386 | if (obj1) { | |
13387 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13388 | if (PyErr_Occurred()) SWIG_fail; | |
13389 | } | |
13390 | { | |
13391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13392 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
13393 | ||
13394 | wxPyEndAllowThreads(__tstate); | |
13395 | if (PyErr_Occurred()) SWIG_fail; | |
13396 | } | |
13397 | resultobj = PyInt_FromLong((long)result); | |
13398 | return resultobj; | |
13399 | fail: | |
13400 | return NULL; | |
13401 | } | |
13402 | ||
13403 | ||
13404 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13405 | PyObject *resultobj; | |
13406 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13407 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13408 | size_t result; |
13409 | PyObject * obj0 = 0 ; | |
13410 | PyObject * obj1 = 0 ; | |
13411 | char *kwnames[] = { | |
13412 | (char *) "self",(char *) "bRecursive", NULL | |
13413 | }; | |
13414 | ||
13415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
13416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13417 | if (obj1) { | |
13418 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
13420 | } | |
13421 | { | |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
13424 | ||
13425 | wxPyEndAllowThreads(__tstate); | |
13426 | if (PyErr_Occurred()) SWIG_fail; | |
13427 | } | |
13428 | resultobj = PyInt_FromLong((long)result); | |
13429 | return resultobj; | |
13430 | fail: | |
13431 | return NULL; | |
13432 | } | |
13433 | ||
13434 | ||
13435 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13436 | PyObject *resultobj; | |
13437 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13438 | wxString *arg2 = 0 ; | |
13439 | bool result; | |
423f194a | 13440 | bool temp2 = False ; |
d14a1e28 RD |
13441 | PyObject * obj0 = 0 ; |
13442 | PyObject * obj1 = 0 ; | |
13443 | char *kwnames[] = { | |
13444 | (char *) "self",(char *) "strName", NULL | |
13445 | }; | |
13446 | ||
13447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
13448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13449 | { | |
13450 | arg2 = wxString_in_helper(obj1); | |
13451 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13452 | temp2 = True; |
d14a1e28 RD |
13453 | } |
13454 | { | |
13455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13456 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
13457 | ||
13458 | wxPyEndAllowThreads(__tstate); | |
13459 | if (PyErr_Occurred()) SWIG_fail; | |
13460 | } | |
13461 | resultobj = PyInt_FromLong((long)result); | |
13462 | { | |
13463 | if (temp2) | |
13464 | delete arg2; | |
13465 | } | |
13466 | return resultobj; | |
13467 | fail: | |
13468 | { | |
13469 | if (temp2) | |
13470 | delete arg2; | |
13471 | } | |
13472 | return NULL; | |
13473 | } | |
13474 | ||
13475 | ||
13476 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13477 | PyObject *resultobj; | |
13478 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13479 | wxString *arg2 = 0 ; | |
13480 | bool result; | |
423f194a | 13481 | bool temp2 = False ; |
d14a1e28 RD |
13482 | PyObject * obj0 = 0 ; |
13483 | PyObject * obj1 = 0 ; | |
13484 | char *kwnames[] = { | |
13485 | (char *) "self",(char *) "strName", NULL | |
13486 | }; | |
13487 | ||
13488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
13489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13490 | { | |
13491 | arg2 = wxString_in_helper(obj1); | |
13492 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13493 | temp2 = True; |
d14a1e28 RD |
13494 | } |
13495 | { | |
13496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13497 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
13498 | ||
13499 | wxPyEndAllowThreads(__tstate); | |
13500 | if (PyErr_Occurred()) SWIG_fail; | |
13501 | } | |
13502 | resultobj = PyInt_FromLong((long)result); | |
13503 | { | |
13504 | if (temp2) | |
13505 | delete arg2; | |
13506 | } | |
13507 | return resultobj; | |
13508 | fail: | |
13509 | { | |
13510 | if (temp2) | |
13511 | delete arg2; | |
13512 | } | |
13513 | return NULL; | |
13514 | } | |
13515 | ||
13516 | ||
13517 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13518 | PyObject *resultobj; | |
13519 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13520 | wxString *arg2 = 0 ; | |
13521 | bool result; | |
423f194a | 13522 | bool temp2 = False ; |
d14a1e28 RD |
13523 | PyObject * obj0 = 0 ; |
13524 | PyObject * obj1 = 0 ; | |
13525 | char *kwnames[] = { | |
13526 | (char *) "self",(char *) "strName", NULL | |
13527 | }; | |
13528 | ||
13529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
13530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13531 | { | |
13532 | arg2 = wxString_in_helper(obj1); | |
13533 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13534 | temp2 = True; |
d14a1e28 RD |
13535 | } |
13536 | { | |
13537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13538 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
13539 | ||
13540 | wxPyEndAllowThreads(__tstate); | |
13541 | if (PyErr_Occurred()) SWIG_fail; | |
13542 | } | |
13543 | resultobj = PyInt_FromLong((long)result); | |
13544 | { | |
13545 | if (temp2) | |
13546 | delete arg2; | |
13547 | } | |
13548 | return resultobj; | |
13549 | fail: | |
13550 | { | |
13551 | if (temp2) | |
13552 | delete arg2; | |
13553 | } | |
13554 | return NULL; | |
13555 | } | |
13556 | ||
13557 | ||
13558 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13559 | PyObject *resultobj; | |
13560 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13561 | wxString *arg2 = 0 ; | |
13562 | int result; | |
423f194a | 13563 | bool temp2 = False ; |
d14a1e28 RD |
13564 | PyObject * obj0 = 0 ; |
13565 | PyObject * obj1 = 0 ; | |
13566 | char *kwnames[] = { | |
13567 | (char *) "self",(char *) "name", NULL | |
13568 | }; | |
13569 | ||
13570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
13571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13572 | { | |
13573 | arg2 = wxString_in_helper(obj1); | |
13574 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13575 | temp2 = True; |
d14a1e28 RD |
13576 | } |
13577 | { | |
13578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13579 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
13580 | ||
13581 | wxPyEndAllowThreads(__tstate); | |
13582 | if (PyErr_Occurred()) SWIG_fail; | |
13583 | } | |
13584 | resultobj = PyInt_FromLong((long)result); | |
13585 | { | |
13586 | if (temp2) | |
13587 | delete arg2; | |
13588 | } | |
13589 | return resultobj; | |
13590 | fail: | |
13591 | { | |
13592 | if (temp2) | |
13593 | delete arg2; | |
13594 | } | |
13595 | return NULL; | |
13596 | } | |
13597 | ||
13598 | ||
13599 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13600 | PyObject *resultobj; | |
13601 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13602 | wxString *arg2 = 0 ; | |
13603 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13604 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13605 | wxString result; | |
423f194a RD |
13606 | bool temp2 = False ; |
13607 | bool temp3 = False ; | |
d14a1e28 RD |
13608 | PyObject * obj0 = 0 ; |
13609 | PyObject * obj1 = 0 ; | |
13610 | PyObject * obj2 = 0 ; | |
13611 | char *kwnames[] = { | |
13612 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13613 | }; | |
13614 | ||
13615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13617 | { | |
13618 | arg2 = wxString_in_helper(obj1); | |
13619 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13620 | temp2 = True; |
d14a1e28 RD |
13621 | } |
13622 | if (obj2) { | |
13623 | { | |
13624 | arg3 = wxString_in_helper(obj2); | |
13625 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13626 | temp3 = True; |
d14a1e28 RD |
13627 | } |
13628 | } | |
13629 | { | |
13630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13631 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
13632 | ||
13633 | wxPyEndAllowThreads(__tstate); | |
13634 | if (PyErr_Occurred()) SWIG_fail; | |
13635 | } | |
13636 | { | |
13637 | #if wxUSE_UNICODE | |
13638 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13639 | #else | |
13640 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13641 | #endif | |
13642 | } | |
13643 | { | |
13644 | if (temp2) | |
13645 | delete arg2; | |
13646 | } | |
13647 | { | |
13648 | if (temp3) | |
13649 | delete arg3; | |
13650 | } | |
13651 | return resultobj; | |
13652 | fail: | |
13653 | { | |
13654 | if (temp2) | |
13655 | delete arg2; | |
13656 | } | |
13657 | { | |
13658 | if (temp3) | |
13659 | delete arg3; | |
13660 | } | |
13661 | return NULL; | |
13662 | } | |
13663 | ||
13664 | ||
13665 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13666 | PyObject *resultobj; | |
13667 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13668 | wxString *arg2 = 0 ; | |
13669 | long arg3 = (long) 0 ; | |
13670 | long result; | |
423f194a | 13671 | bool temp2 = False ; |
d14a1e28 RD |
13672 | PyObject * obj0 = 0 ; |
13673 | PyObject * obj1 = 0 ; | |
13674 | char *kwnames[] = { | |
13675 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13676 | }; | |
13677 | ||
13678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13680 | { | |
13681 | arg2 = wxString_in_helper(obj1); | |
13682 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13683 | temp2 = True; |
d14a1e28 RD |
13684 | } |
13685 | { | |
13686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13687 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
13688 | ||
13689 | wxPyEndAllowThreads(__tstate); | |
13690 | if (PyErr_Occurred()) SWIG_fail; | |
13691 | } | |
13692 | resultobj = PyInt_FromLong((long)result); | |
13693 | { | |
13694 | if (temp2) | |
13695 | delete arg2; | |
13696 | } | |
13697 | return resultobj; | |
13698 | fail: | |
13699 | { | |
13700 | if (temp2) | |
13701 | delete arg2; | |
13702 | } | |
13703 | return NULL; | |
13704 | } | |
13705 | ||
13706 | ||
13707 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13708 | PyObject *resultobj; | |
13709 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13710 | wxString *arg2 = 0 ; | |
13711 | double arg3 = (double) 0.0 ; | |
13712 | double result; | |
423f194a | 13713 | bool temp2 = False ; |
d14a1e28 RD |
13714 | PyObject * obj0 = 0 ; |
13715 | PyObject * obj1 = 0 ; | |
13716 | char *kwnames[] = { | |
13717 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13718 | }; | |
13719 | ||
13720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|d:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13722 | { | |
13723 | arg2 = wxString_in_helper(obj1); | |
13724 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13725 | temp2 = True; |
d14a1e28 RD |
13726 | } |
13727 | { | |
13728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13729 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
13730 | ||
13731 | wxPyEndAllowThreads(__tstate); | |
13732 | if (PyErr_Occurred()) SWIG_fail; | |
13733 | } | |
13734 | resultobj = PyFloat_FromDouble(result); | |
13735 | { | |
13736 | if (temp2) | |
13737 | delete arg2; | |
13738 | } | |
13739 | return resultobj; | |
13740 | fail: | |
13741 | { | |
13742 | if (temp2) | |
13743 | delete arg2; | |
13744 | } | |
13745 | return NULL; | |
13746 | } | |
13747 | ||
13748 | ||
13749 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13750 | PyObject *resultobj; | |
13751 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13752 | wxString *arg2 = 0 ; | |
423f194a | 13753 | bool arg3 = (bool) False ; |
d14a1e28 | 13754 | bool result; |
423f194a | 13755 | bool temp2 = False ; |
d14a1e28 RD |
13756 | PyObject * obj0 = 0 ; |
13757 | PyObject * obj1 = 0 ; | |
13758 | PyObject * obj2 = 0 ; | |
13759 | char *kwnames[] = { | |
13760 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13761 | }; | |
13762 | ||
13763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13765 | { | |
13766 | arg2 = wxString_in_helper(obj1); | |
13767 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13768 | temp2 = True; |
d14a1e28 RD |
13769 | } |
13770 | if (obj2) { | |
13771 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13772 | if (PyErr_Occurred()) SWIG_fail; | |
13773 | } | |
13774 | { | |
13775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13776 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
13777 | ||
13778 | wxPyEndAllowThreads(__tstate); | |
13779 | if (PyErr_Occurred()) SWIG_fail; | |
13780 | } | |
13781 | resultobj = PyInt_FromLong((long)result); | |
13782 | { | |
13783 | if (temp2) | |
13784 | delete arg2; | |
13785 | } | |
13786 | return resultobj; | |
13787 | fail: | |
13788 | { | |
13789 | if (temp2) | |
13790 | delete arg2; | |
13791 | } | |
13792 | return NULL; | |
13793 | } | |
13794 | ||
13795 | ||
13796 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13797 | PyObject *resultobj; | |
13798 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13799 | wxString *arg2 = 0 ; | |
13800 | wxString *arg3 = 0 ; | |
13801 | bool result; | |
423f194a RD |
13802 | bool temp2 = False ; |
13803 | bool temp3 = False ; | |
d14a1e28 RD |
13804 | PyObject * obj0 = 0 ; |
13805 | PyObject * obj1 = 0 ; | |
13806 | PyObject * obj2 = 0 ; | |
13807 | char *kwnames[] = { | |
13808 | (char *) "self",(char *) "key",(char *) "value", NULL | |
13809 | }; | |
13810 | ||
13811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13813 | { | |
13814 | arg2 = wxString_in_helper(obj1); | |
13815 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13816 | temp2 = True; |
d14a1e28 RD |
13817 | } |
13818 | { | |
13819 | arg3 = wxString_in_helper(obj2); | |
13820 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13821 | temp3 = True; |
d14a1e28 RD |
13822 | } |
13823 | { | |
13824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13825 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
13826 | ||
13827 | wxPyEndAllowThreads(__tstate); | |
13828 | if (PyErr_Occurred()) SWIG_fail; | |
13829 | } | |
13830 | resultobj = PyInt_FromLong((long)result); | |
13831 | { | |
13832 | if (temp2) | |
13833 | delete arg2; | |
13834 | } | |
13835 | { | |
13836 | if (temp3) | |
13837 | delete arg3; | |
13838 | } | |
13839 | return resultobj; | |
13840 | fail: | |
13841 | { | |
13842 | if (temp2) | |
13843 | delete arg2; | |
13844 | } | |
13845 | { | |
13846 | if (temp3) | |
13847 | delete arg3; | |
13848 | } | |
13849 | return NULL; | |
13850 | } | |
13851 | ||
13852 | ||
13853 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13854 | PyObject *resultobj; | |
13855 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13856 | wxString *arg2 = 0 ; | |
13857 | long arg3 ; | |
13858 | bool result; | |
423f194a | 13859 | bool temp2 = False ; |
d14a1e28 RD |
13860 | PyObject * obj0 = 0 ; |
13861 | PyObject * obj1 = 0 ; | |
13862 | char *kwnames[] = { | |
13863 | (char *) "self",(char *) "key",(char *) "value", NULL | |
13864 | }; | |
13865 | ||
13866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13868 | { | |
13869 | arg2 = wxString_in_helper(obj1); | |
13870 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13871 | temp2 = True; |
d14a1e28 RD |
13872 | } |
13873 | { | |
13874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13875 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
13876 | ||
13877 | wxPyEndAllowThreads(__tstate); | |
13878 | if (PyErr_Occurred()) SWIG_fail; | |
13879 | } | |
13880 | resultobj = PyInt_FromLong((long)result); | |
13881 | { | |
13882 | if (temp2) | |
13883 | delete arg2; | |
13884 | } | |
13885 | return resultobj; | |
13886 | fail: | |
13887 | { | |
13888 | if (temp2) | |
13889 | delete arg2; | |
13890 | } | |
13891 | return NULL; | |
13892 | } | |
13893 | ||
13894 | ||
13895 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13896 | PyObject *resultobj; | |
13897 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13898 | wxString *arg2 = 0 ; | |
13899 | double arg3 ; | |
13900 | bool result; | |
423f194a | 13901 | bool temp2 = False ; |
d14a1e28 RD |
13902 | PyObject * obj0 = 0 ; |
13903 | PyObject * obj1 = 0 ; | |
13904 | char *kwnames[] = { | |
13905 | (char *) "self",(char *) "key",(char *) "value", NULL | |
13906 | }; | |
13907 | ||
13908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13910 | { | |
13911 | arg2 = wxString_in_helper(obj1); | |
13912 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13913 | temp2 = True; |
d14a1e28 RD |
13914 | } |
13915 | { | |
13916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13917 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
13918 | ||
13919 | wxPyEndAllowThreads(__tstate); | |
13920 | if (PyErr_Occurred()) SWIG_fail; | |
13921 | } | |
13922 | resultobj = PyInt_FromLong((long)result); | |
13923 | { | |
13924 | if (temp2) | |
13925 | delete arg2; | |
13926 | } | |
13927 | return resultobj; | |
13928 | fail: | |
13929 | { | |
13930 | if (temp2) | |
13931 | delete arg2; | |
13932 | } | |
13933 | return NULL; | |
13934 | } | |
13935 | ||
13936 | ||
13937 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13938 | PyObject *resultobj; | |
13939 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13940 | wxString *arg2 = 0 ; | |
13941 | bool arg3 ; | |
13942 | bool result; | |
423f194a | 13943 | bool temp2 = False ; |
d14a1e28 RD |
13944 | PyObject * obj0 = 0 ; |
13945 | PyObject * obj1 = 0 ; | |
13946 | PyObject * obj2 = 0 ; | |
13947 | char *kwnames[] = { | |
13948 | (char *) "self",(char *) "key",(char *) "value", NULL | |
13949 | }; | |
13950 | ||
13951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13953 | { | |
13954 | arg2 = wxString_in_helper(obj1); | |
13955 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13956 | temp2 = True; |
d14a1e28 RD |
13957 | } |
13958 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13959 | if (PyErr_Occurred()) SWIG_fail; | |
13960 | { | |
13961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13962 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
13963 | ||
13964 | wxPyEndAllowThreads(__tstate); | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
13966 | } | |
13967 | resultobj = PyInt_FromLong((long)result); | |
13968 | { | |
13969 | if (temp2) | |
13970 | delete arg2; | |
13971 | } | |
13972 | return resultobj; | |
13973 | fail: | |
13974 | { | |
13975 | if (temp2) | |
13976 | delete arg2; | |
13977 | } | |
13978 | return NULL; | |
13979 | } | |
13980 | ||
13981 | ||
13982 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13983 | PyObject *resultobj; | |
13984 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13985 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13986 | bool result; |
13987 | PyObject * obj0 = 0 ; | |
13988 | PyObject * obj1 = 0 ; | |
13989 | char *kwnames[] = { | |
13990 | (char *) "self",(char *) "bCurrentOnly", NULL | |
13991 | }; | |
13992 | ||
13993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
13994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13995 | if (obj1) { | |
13996 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13997 | if (PyErr_Occurred()) SWIG_fail; | |
13998 | } | |
13999 | { | |
14000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14001 | result = (bool)(arg1)->Flush(arg2); | |
14002 | ||
14003 | wxPyEndAllowThreads(__tstate); | |
14004 | if (PyErr_Occurred()) SWIG_fail; | |
14005 | } | |
14006 | resultobj = PyInt_FromLong((long)result); | |
14007 | return resultobj; | |
14008 | fail: | |
14009 | return NULL; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj; | |
14015 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14016 | wxString *arg2 = 0 ; | |
14017 | wxString *arg3 = 0 ; | |
14018 | bool result; | |
423f194a RD |
14019 | bool temp2 = False ; |
14020 | bool temp3 = False ; | |
d14a1e28 RD |
14021 | PyObject * obj0 = 0 ; |
14022 | PyObject * obj1 = 0 ; | |
14023 | PyObject * obj2 = 0 ; | |
14024 | char *kwnames[] = { | |
14025 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14026 | }; | |
14027 | ||
14028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14030 | { | |
14031 | arg2 = wxString_in_helper(obj1); | |
14032 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14033 | temp2 = True; |
d14a1e28 RD |
14034 | } |
14035 | { | |
14036 | arg3 = wxString_in_helper(obj2); | |
14037 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14038 | temp3 = True; |
d14a1e28 RD |
14039 | } |
14040 | { | |
14041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14042 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
14043 | ||
14044 | wxPyEndAllowThreads(__tstate); | |
14045 | if (PyErr_Occurred()) SWIG_fail; | |
14046 | } | |
14047 | resultobj = PyInt_FromLong((long)result); | |
14048 | { | |
14049 | if (temp2) | |
14050 | delete arg2; | |
14051 | } | |
14052 | { | |
14053 | if (temp3) | |
14054 | delete arg3; | |
14055 | } | |
14056 | return resultobj; | |
14057 | fail: | |
14058 | { | |
14059 | if (temp2) | |
14060 | delete arg2; | |
14061 | } | |
14062 | { | |
14063 | if (temp3) | |
14064 | delete arg3; | |
14065 | } | |
14066 | return NULL; | |
14067 | } | |
14068 | ||
14069 | ||
14070 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14071 | PyObject *resultobj; | |
14072 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14073 | wxString *arg2 = 0 ; | |
14074 | wxString *arg3 = 0 ; | |
14075 | bool result; | |
423f194a RD |
14076 | bool temp2 = False ; |
14077 | bool temp3 = False ; | |
d14a1e28 RD |
14078 | PyObject * obj0 = 0 ; |
14079 | PyObject * obj1 = 0 ; | |
14080 | PyObject * obj2 = 0 ; | |
14081 | char *kwnames[] = { | |
14082 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14083 | }; | |
14084 | ||
14085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14087 | { | |
14088 | arg2 = wxString_in_helper(obj1); | |
14089 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14090 | temp2 = True; |
d14a1e28 RD |
14091 | } |
14092 | { | |
14093 | arg3 = wxString_in_helper(obj2); | |
14094 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14095 | temp3 = True; |
d14a1e28 RD |
14096 | } |
14097 | { | |
14098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14099 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
14100 | ||
14101 | wxPyEndAllowThreads(__tstate); | |
14102 | if (PyErr_Occurred()) SWIG_fail; | |
14103 | } | |
14104 | resultobj = PyInt_FromLong((long)result); | |
14105 | { | |
14106 | if (temp2) | |
14107 | delete arg2; | |
14108 | } | |
14109 | { | |
14110 | if (temp3) | |
14111 | delete arg3; | |
14112 | } | |
14113 | return resultobj; | |
14114 | fail: | |
14115 | { | |
14116 | if (temp2) | |
14117 | delete arg2; | |
14118 | } | |
14119 | { | |
14120 | if (temp3) | |
14121 | delete arg3; | |
14122 | } | |
14123 | return NULL; | |
14124 | } | |
14125 | ||
14126 | ||
14127 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14128 | PyObject *resultobj; | |
14129 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14130 | wxString *arg2 = 0 ; | |
423f194a | 14131 | bool arg3 = (bool) True ; |
d14a1e28 | 14132 | bool result; |
423f194a | 14133 | bool temp2 = False ; |
d14a1e28 RD |
14134 | PyObject * obj0 = 0 ; |
14135 | PyObject * obj1 = 0 ; | |
14136 | PyObject * obj2 = 0 ; | |
14137 | char *kwnames[] = { | |
14138 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
14139 | }; | |
14140 | ||
14141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14143 | { | |
14144 | arg2 = wxString_in_helper(obj1); | |
14145 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14146 | temp2 = True; |
d14a1e28 RD |
14147 | } |
14148 | if (obj2) { | |
14149 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14150 | if (PyErr_Occurred()) SWIG_fail; | |
14151 | } | |
14152 | { | |
14153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14154 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
14155 | ||
14156 | wxPyEndAllowThreads(__tstate); | |
14157 | if (PyErr_Occurred()) SWIG_fail; | |
14158 | } | |
14159 | resultobj = PyInt_FromLong((long)result); | |
14160 | { | |
14161 | if (temp2) | |
14162 | delete arg2; | |
14163 | } | |
14164 | return resultobj; | |
14165 | fail: | |
14166 | { | |
14167 | if (temp2) | |
14168 | delete arg2; | |
14169 | } | |
14170 | return NULL; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14175 | PyObject *resultobj; | |
14176 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14177 | wxString *arg2 = 0 ; | |
14178 | bool result; | |
423f194a | 14179 | bool temp2 = False ; |
d14a1e28 RD |
14180 | PyObject * obj0 = 0 ; |
14181 | PyObject * obj1 = 0 ; | |
14182 | char *kwnames[] = { | |
14183 | (char *) "self",(char *) "key", NULL | |
14184 | }; | |
14185 | ||
14186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
14187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14188 | { | |
14189 | arg2 = wxString_in_helper(obj1); | |
14190 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14191 | temp2 = True; |
d14a1e28 RD |
14192 | } |
14193 | { | |
14194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14195 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
14196 | ||
14197 | wxPyEndAllowThreads(__tstate); | |
14198 | if (PyErr_Occurred()) SWIG_fail; | |
14199 | } | |
14200 | resultobj = PyInt_FromLong((long)result); | |
14201 | { | |
14202 | if (temp2) | |
14203 | delete arg2; | |
14204 | } | |
14205 | return resultobj; | |
14206 | fail: | |
14207 | { | |
14208 | if (temp2) | |
14209 | delete arg2; | |
14210 | } | |
14211 | return NULL; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14216 | PyObject *resultobj; | |
14217 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14218 | bool result; | |
14219 | PyObject * obj0 = 0 ; | |
14220 | char *kwnames[] = { | |
14221 | (char *) "self", NULL | |
14222 | }; | |
14223 | ||
14224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
14225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14226 | { | |
14227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14228 | result = (bool)(arg1)->DeleteAll(); | |
14229 | ||
14230 | wxPyEndAllowThreads(__tstate); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
14233 | resultobj = PyInt_FromLong((long)result); | |
14234 | return resultobj; | |
14235 | fail: | |
14236 | return NULL; | |
14237 | } | |
14238 | ||
14239 | ||
14240 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14241 | PyObject *resultobj; | |
14242 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14243 | bool result; | |
14244 | PyObject * obj0 = 0 ; | |
14245 | char *kwnames[] = { | |
14246 | (char *) "self", NULL | |
14247 | }; | |
14248 | ||
14249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
14250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14251 | { | |
14252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14253 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
14254 | ||
14255 | wxPyEndAllowThreads(__tstate); | |
14256 | if (PyErr_Occurred()) SWIG_fail; | |
14257 | } | |
14258 | resultobj = PyInt_FromLong((long)result); | |
14259 | return resultobj; | |
14260 | fail: | |
14261 | return NULL; | |
14262 | } | |
14263 | ||
14264 | ||
14265 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14266 | PyObject *resultobj; | |
14267 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14268 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14269 | PyObject * obj0 = 0 ; |
14270 | PyObject * obj1 = 0 ; | |
14271 | char *kwnames[] = { | |
14272 | (char *) "self",(char *) "bDoIt", NULL | |
14273 | }; | |
14274 | ||
14275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14276 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14277 | if (obj1) { | |
14278 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
14280 | } | |
14281 | { | |
14282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14283 | (arg1)->SetExpandEnvVars(arg2); | |
14284 | ||
14285 | wxPyEndAllowThreads(__tstate); | |
14286 | if (PyErr_Occurred()) SWIG_fail; | |
14287 | } | |
14288 | Py_INCREF(Py_None); resultobj = Py_None; | |
14289 | return resultobj; | |
14290 | fail: | |
14291 | return NULL; | |
14292 | } | |
14293 | ||
14294 | ||
14295 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14296 | PyObject *resultobj; | |
14297 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14298 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14299 | PyObject * obj0 = 0 ; |
14300 | PyObject * obj1 = 0 ; | |
14301 | char *kwnames[] = { | |
14302 | (char *) "self",(char *) "bDoIt", NULL | |
14303 | }; | |
14304 | ||
14305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
14306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14307 | if (obj1) { | |
14308 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14309 | if (PyErr_Occurred()) SWIG_fail; | |
14310 | } | |
14311 | { | |
14312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14313 | (arg1)->SetRecordDefaults(arg2); | |
14314 | ||
14315 | wxPyEndAllowThreads(__tstate); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
14318 | Py_INCREF(Py_None); resultobj = Py_None; | |
14319 | return resultobj; | |
14320 | fail: | |
14321 | return NULL; | |
14322 | } | |
14323 | ||
14324 | ||
14325 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14326 | PyObject *resultobj; | |
14327 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14328 | bool result; | |
14329 | PyObject * obj0 = 0 ; | |
14330 | char *kwnames[] = { | |
14331 | (char *) "self", NULL | |
14332 | }; | |
14333 | ||
14334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
14335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14336 | { | |
14337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14338 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
14339 | ||
14340 | wxPyEndAllowThreads(__tstate); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | resultobj = PyInt_FromLong((long)result); | |
14344 | return resultobj; | |
14345 | fail: | |
14346 | return NULL; | |
14347 | } | |
14348 | ||
14349 | ||
14350 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14351 | PyObject *resultobj; | |
14352 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14353 | wxString *arg2 = 0 ; | |
14354 | wxString result; | |
423f194a | 14355 | bool temp2 = False ; |
d14a1e28 RD |
14356 | PyObject * obj0 = 0 ; |
14357 | PyObject * obj1 = 0 ; | |
14358 | char *kwnames[] = { | |
14359 | (char *) "self",(char *) "str", NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14364 | { | |
14365 | arg2 = wxString_in_helper(obj1); | |
14366 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14367 | temp2 = True; |
d14a1e28 RD |
14368 | } |
14369 | { | |
14370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14371 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
14372 | ||
14373 | wxPyEndAllowThreads(__tstate); | |
14374 | if (PyErr_Occurred()) SWIG_fail; | |
14375 | } | |
14376 | { | |
14377 | #if wxUSE_UNICODE | |
14378 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14379 | #else | |
14380 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14381 | #endif | |
14382 | } | |
14383 | { | |
14384 | if (temp2) | |
14385 | delete arg2; | |
14386 | } | |
14387 | return resultobj; | |
14388 | fail: | |
14389 | { | |
14390 | if (temp2) | |
14391 | delete arg2; | |
14392 | } | |
14393 | return NULL; | |
14394 | } | |
14395 | ||
14396 | ||
14397 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14398 | PyObject *resultobj; | |
14399 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14400 | wxString result; | |
14401 | PyObject * obj0 = 0 ; | |
14402 | char *kwnames[] = { | |
14403 | (char *) "self", NULL | |
14404 | }; | |
14405 | ||
14406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
14407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14408 | { | |
14409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14410 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
14411 | ||
14412 | wxPyEndAllowThreads(__tstate); | |
14413 | if (PyErr_Occurred()) SWIG_fail; | |
14414 | } | |
14415 | { | |
14416 | #if wxUSE_UNICODE | |
14417 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14418 | #else | |
14419 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14420 | #endif | |
14421 | } | |
14422 | return resultobj; | |
14423 | fail: | |
14424 | return NULL; | |
14425 | } | |
14426 | ||
14427 | ||
14428 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14429 | PyObject *resultobj; | |
14430 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14431 | wxString result; | |
14432 | PyObject * obj0 = 0 ; | |
14433 | char *kwnames[] = { | |
14434 | (char *) "self", NULL | |
14435 | }; | |
14436 | ||
14437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
14438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14439 | { | |
14440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14441 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
14442 | ||
14443 | wxPyEndAllowThreads(__tstate); | |
14444 | if (PyErr_Occurred()) SWIG_fail; | |
14445 | } | |
14446 | { | |
14447 | #if wxUSE_UNICODE | |
14448 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14449 | #else | |
14450 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14451 | #endif | |
14452 | } | |
14453 | return resultobj; | |
14454 | fail: | |
14455 | return NULL; | |
14456 | } | |
14457 | ||
14458 | ||
14459 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14460 | PyObject *resultobj; | |
14461 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14462 | wxString *arg2 = 0 ; | |
423f194a | 14463 | bool temp2 = False ; |
d14a1e28 RD |
14464 | PyObject * obj0 = 0 ; |
14465 | PyObject * obj1 = 0 ; | |
14466 | char *kwnames[] = { | |
14467 | (char *) "self",(char *) "appName", NULL | |
14468 | }; | |
14469 | ||
14470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
14471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14472 | { | |
14473 | arg2 = wxString_in_helper(obj1); | |
14474 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14475 | temp2 = True; |
d14a1e28 RD |
14476 | } |
14477 | { | |
14478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14479 | (arg1)->SetAppName((wxString const &)*arg2); | |
14480 | ||
14481 | wxPyEndAllowThreads(__tstate); | |
14482 | if (PyErr_Occurred()) SWIG_fail; | |
14483 | } | |
14484 | Py_INCREF(Py_None); resultobj = Py_None; | |
14485 | { | |
14486 | if (temp2) | |
14487 | delete arg2; | |
14488 | } | |
14489 | return resultobj; | |
14490 | fail: | |
14491 | { | |
14492 | if (temp2) | |
14493 | delete arg2; | |
14494 | } | |
14495 | return NULL; | |
14496 | } | |
14497 | ||
14498 | ||
14499 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14500 | PyObject *resultobj; | |
14501 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14502 | wxString *arg2 = 0 ; | |
423f194a | 14503 | bool temp2 = False ; |
d14a1e28 RD |
14504 | PyObject * obj0 = 0 ; |
14505 | PyObject * obj1 = 0 ; | |
14506 | char *kwnames[] = { | |
14507 | (char *) "self",(char *) "vendorName", NULL | |
14508 | }; | |
14509 | ||
14510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
14511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14512 | { | |
14513 | arg2 = wxString_in_helper(obj1); | |
14514 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14515 | temp2 = True; |
d14a1e28 RD |
14516 | } |
14517 | { | |
14518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14519 | (arg1)->SetVendorName((wxString const &)*arg2); | |
14520 | ||
14521 | wxPyEndAllowThreads(__tstate); | |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
14523 | } | |
14524 | Py_INCREF(Py_None); resultobj = Py_None; | |
14525 | { | |
14526 | if (temp2) | |
14527 | delete arg2; | |
14528 | } | |
14529 | return resultobj; | |
14530 | fail: | |
14531 | { | |
14532 | if (temp2) | |
14533 | delete arg2; | |
14534 | } | |
14535 | return NULL; | |
14536 | } | |
14537 | ||
14538 | ||
14539 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14540 | PyObject *resultobj; | |
14541 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14542 | long arg2 ; | |
14543 | PyObject * obj0 = 0 ; | |
14544 | char *kwnames[] = { | |
14545 | (char *) "self",(char *) "style", NULL | |
14546 | }; | |
14547 | ||
14548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
14549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14550 | { | |
14551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14552 | (arg1)->SetStyle(arg2); | |
14553 | ||
14554 | wxPyEndAllowThreads(__tstate); | |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
14556 | } | |
14557 | Py_INCREF(Py_None); resultobj = Py_None; | |
14558 | return resultobj; | |
14559 | fail: | |
14560 | return NULL; | |
14561 | } | |
14562 | ||
14563 | ||
14564 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14565 | PyObject *resultobj; | |
14566 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14567 | long result; | |
14568 | PyObject * obj0 = 0 ; | |
14569 | char *kwnames[] = { | |
14570 | (char *) "self", NULL | |
14571 | }; | |
14572 | ||
14573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
14574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14575 | { | |
14576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14577 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
14578 | ||
14579 | wxPyEndAllowThreads(__tstate); | |
14580 | if (PyErr_Occurred()) SWIG_fail; | |
14581 | } | |
14582 | resultobj = PyInt_FromLong((long)result); | |
14583 | return resultobj; | |
14584 | fail: | |
14585 | return NULL; | |
14586 | } | |
14587 | ||
14588 | ||
14589 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
14590 | PyObject *obj; | |
14591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14592 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
14593 | Py_INCREF(obj); | |
14594 | return Py_BuildValue((char *)""); | |
14595 | } | |
14596 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14597 | PyObject *resultobj; | |
14598 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14599 | wxString *arg2 = 0 ; | |
14600 | wxConfigPathChanger *result; | |
423f194a | 14601 | bool temp2 = False ; |
d14a1e28 RD |
14602 | PyObject * obj0 = 0 ; |
14603 | PyObject * obj1 = 0 ; | |
14604 | char *kwnames[] = { | |
14605 | (char *) "pContainer",(char *) "strEntry", NULL | |
14606 | }; | |
14607 | ||
14608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
14609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14610 | { | |
14611 | arg2 = wxString_in_helper(obj1); | |
14612 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14613 | temp2 = True; |
d14a1e28 RD |
14614 | } |
14615 | { | |
14616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14617 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
14618 | ||
14619 | wxPyEndAllowThreads(__tstate); | |
14620 | if (PyErr_Occurred()) SWIG_fail; | |
14621 | } | |
14622 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
14623 | { | |
14624 | if (temp2) | |
14625 | delete arg2; | |
14626 | } | |
14627 | return resultobj; | |
14628 | fail: | |
14629 | { | |
14630 | if (temp2) | |
14631 | delete arg2; | |
14632 | } | |
14633 | return NULL; | |
14634 | } | |
14635 | ||
14636 | ||
14637 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14638 | PyObject *resultobj; | |
14639 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14640 | PyObject * obj0 = 0 ; | |
14641 | char *kwnames[] = { | |
14642 | (char *) "self", NULL | |
14643 | }; | |
14644 | ||
14645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
14646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14647 | { | |
14648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14649 | delete arg1; | |
14650 | ||
14651 | wxPyEndAllowThreads(__tstate); | |
14652 | if (PyErr_Occurred()) SWIG_fail; | |
14653 | } | |
14654 | Py_INCREF(Py_None); resultobj = Py_None; | |
14655 | return resultobj; | |
14656 | fail: | |
14657 | return NULL; | |
14658 | } | |
14659 | ||
14660 | ||
14661 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14662 | PyObject *resultobj; | |
14663 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14664 | wxString *result; | |
14665 | PyObject * obj0 = 0 ; | |
14666 | char *kwnames[] = { | |
14667 | (char *) "self", NULL | |
14668 | }; | |
14669 | ||
14670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
14671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14672 | { | |
14673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14674 | { | |
14675 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
14676 | result = (wxString *) &_result_ref; | |
14677 | } | |
14678 | ||
14679 | wxPyEndAllowThreads(__tstate); | |
14680 | if (PyErr_Occurred()) SWIG_fail; | |
14681 | } | |
14682 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
14683 | return resultobj; | |
14684 | fail: | |
14685 | return NULL; | |
14686 | } | |
14687 | ||
14688 | ||
14689 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
14690 | PyObject *obj; | |
14691 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14692 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
14693 | Py_INCREF(obj); | |
14694 | return Py_BuildValue((char *)""); | |
14695 | } | |
14696 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14697 | PyObject *resultobj; | |
14698 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14699 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14700 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14701 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14702 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14703 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14704 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14705 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14706 | long arg5 = (long) 0 ; | |
14707 | wxConfig *result; | |
423f194a RD |
14708 | bool temp1 = False ; |
14709 | bool temp2 = False ; | |
14710 | bool temp3 = False ; | |
14711 | bool temp4 = False ; | |
d14a1e28 RD |
14712 | PyObject * obj0 = 0 ; |
14713 | PyObject * obj1 = 0 ; | |
14714 | PyObject * obj2 = 0 ; | |
14715 | PyObject * obj3 = 0 ; | |
14716 | char *kwnames[] = { | |
14717 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
14718 | }; | |
14719 | ||
14720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
14721 | if (obj0) { | |
14722 | { | |
14723 | arg1 = wxString_in_helper(obj0); | |
14724 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14725 | temp1 = True; |
d14a1e28 RD |
14726 | } |
14727 | } | |
14728 | if (obj1) { | |
14729 | { | |
14730 | arg2 = wxString_in_helper(obj1); | |
14731 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14732 | temp2 = True; |
d14a1e28 RD |
14733 | } |
14734 | } | |
14735 | if (obj2) { | |
14736 | { | |
14737 | arg3 = wxString_in_helper(obj2); | |
14738 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14739 | temp3 = True; |
d14a1e28 RD |
14740 | } |
14741 | } | |
14742 | if (obj3) { | |
14743 | { | |
14744 | arg4 = wxString_in_helper(obj3); | |
14745 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14746 | temp4 = True; |
d14a1e28 RD |
14747 | } |
14748 | } | |
14749 | { | |
14750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14751 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
14752 | ||
14753 | wxPyEndAllowThreads(__tstate); | |
14754 | if (PyErr_Occurred()) SWIG_fail; | |
14755 | } | |
14756 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
14757 | { | |
14758 | if (temp1) | |
14759 | delete arg1; | |
14760 | } | |
14761 | { | |
14762 | if (temp2) | |
14763 | delete arg2; | |
14764 | } | |
14765 | { | |
14766 | if (temp3) | |
14767 | delete arg3; | |
14768 | } | |
14769 | { | |
14770 | if (temp4) | |
14771 | delete arg4; | |
14772 | } | |
14773 | return resultobj; | |
14774 | fail: | |
14775 | { | |
14776 | if (temp1) | |
14777 | delete arg1; | |
14778 | } | |
14779 | { | |
14780 | if (temp2) | |
14781 | delete arg2; | |
14782 | } | |
14783 | { | |
14784 | if (temp3) | |
14785 | delete arg3; | |
14786 | } | |
14787 | { | |
14788 | if (temp4) | |
14789 | delete arg4; | |
14790 | } | |
14791 | return NULL; | |
14792 | } | |
14793 | ||
14794 | ||
14795 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14796 | PyObject *resultobj; | |
14797 | wxConfig *arg1 = (wxConfig *) 0 ; | |
14798 | PyObject * obj0 = 0 ; | |
14799 | char *kwnames[] = { | |
14800 | (char *) "self", NULL | |
14801 | }; | |
14802 | ||
14803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
14804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14805 | { | |
14806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14807 | delete arg1; | |
14808 | ||
14809 | wxPyEndAllowThreads(__tstate); | |
14810 | if (PyErr_Occurred()) SWIG_fail; | |
14811 | } | |
14812 | Py_INCREF(Py_None); resultobj = Py_None; | |
14813 | return resultobj; | |
14814 | fail: | |
14815 | return NULL; | |
14816 | } | |
14817 | ||
14818 | ||
14819 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
14820 | PyObject *obj; | |
14821 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14822 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
14823 | Py_INCREF(obj); | |
14824 | return Py_BuildValue((char *)""); | |
14825 | } | |
14826 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14827 | PyObject *resultobj; | |
14828 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14829 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14830 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14831 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14832 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14833 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14834 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14835 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14836 | long arg5 = (long) 0 ; | |
14837 | wxFileConfig *result; | |
423f194a RD |
14838 | bool temp1 = False ; |
14839 | bool temp2 = False ; | |
14840 | bool temp3 = False ; | |
14841 | bool temp4 = False ; | |
d14a1e28 RD |
14842 | PyObject * obj0 = 0 ; |
14843 | PyObject * obj1 = 0 ; | |
14844 | PyObject * obj2 = 0 ; | |
14845 | PyObject * obj3 = 0 ; | |
14846 | char *kwnames[] = { | |
14847 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
14848 | }; | |
14849 | ||
14850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
14851 | if (obj0) { | |
14852 | { | |
14853 | arg1 = wxString_in_helper(obj0); | |
14854 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14855 | temp1 = True; |
d14a1e28 RD |
14856 | } |
14857 | } | |
14858 | if (obj1) { | |
14859 | { | |
14860 | arg2 = wxString_in_helper(obj1); | |
14861 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14862 | temp2 = True; |
d14a1e28 RD |
14863 | } |
14864 | } | |
14865 | if (obj2) { | |
14866 | { | |
14867 | arg3 = wxString_in_helper(obj2); | |
14868 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14869 | temp3 = True; |
d14a1e28 RD |
14870 | } |
14871 | } | |
14872 | if (obj3) { | |
14873 | { | |
14874 | arg4 = wxString_in_helper(obj3); | |
14875 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14876 | temp4 = True; |
d14a1e28 RD |
14877 | } |
14878 | } | |
14879 | { | |
14880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14881 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
14882 | ||
14883 | wxPyEndAllowThreads(__tstate); | |
14884 | if (PyErr_Occurred()) SWIG_fail; | |
14885 | } | |
14886 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
14887 | { | |
14888 | if (temp1) | |
14889 | delete arg1; | |
14890 | } | |
14891 | { | |
14892 | if (temp2) | |
14893 | delete arg2; | |
14894 | } | |
14895 | { | |
14896 | if (temp3) | |
14897 | delete arg3; | |
14898 | } | |
14899 | { | |
14900 | if (temp4) | |
14901 | delete arg4; | |
14902 | } | |
14903 | return resultobj; | |
14904 | fail: | |
14905 | { | |
14906 | if (temp1) | |
14907 | delete arg1; | |
14908 | } | |
14909 | { | |
14910 | if (temp2) | |
14911 | delete arg2; | |
14912 | } | |
14913 | { | |
14914 | if (temp3) | |
14915 | delete arg3; | |
14916 | } | |
14917 | { | |
14918 | if (temp4) | |
14919 | delete arg4; | |
14920 | } | |
14921 | return NULL; | |
14922 | } | |
14923 | ||
14924 | ||
14925 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14926 | PyObject *resultobj; | |
14927 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
14928 | PyObject * obj0 = 0 ; | |
14929 | char *kwnames[] = { | |
14930 | (char *) "self", NULL | |
14931 | }; | |
14932 | ||
14933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
14934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14935 | { | |
14936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14937 | delete arg1; | |
14938 | ||
14939 | wxPyEndAllowThreads(__tstate); | |
14940 | if (PyErr_Occurred()) SWIG_fail; | |
14941 | } | |
14942 | Py_INCREF(Py_None); resultobj = Py_None; | |
14943 | return resultobj; | |
14944 | fail: | |
14945 | return NULL; | |
14946 | } | |
14947 | ||
14948 | ||
14949 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
14950 | PyObject *obj; | |
14951 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14952 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
14953 | Py_INCREF(obj); | |
14954 | return Py_BuildValue((char *)""); | |
14955 | } | |
14956 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14957 | PyObject *resultobj; | |
14958 | wxString *arg1 = 0 ; | |
14959 | wxString result; | |
423f194a | 14960 | bool temp1 = False ; |
d14a1e28 RD |
14961 | PyObject * obj0 = 0 ; |
14962 | char *kwnames[] = { | |
14963 | (char *) "sz", NULL | |
14964 | }; | |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
14967 | { | |
14968 | arg1 = wxString_in_helper(obj0); | |
14969 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14970 | temp1 = True; |
d14a1e28 RD |
14971 | } |
14972 | { | |
14973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14974 | result = wxExpandEnvVars((wxString const &)*arg1); | |
14975 | ||
14976 | wxPyEndAllowThreads(__tstate); | |
14977 | if (PyErr_Occurred()) SWIG_fail; | |
14978 | } | |
14979 | { | |
14980 | #if wxUSE_UNICODE | |
14981 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14982 | #else | |
14983 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14984 | #endif | |
14985 | } | |
14986 | { | |
14987 | if (temp1) | |
14988 | delete arg1; | |
14989 | } | |
14990 | return resultobj; | |
14991 | fail: | |
14992 | { | |
14993 | if (temp1) | |
14994 | delete arg1; | |
14995 | } | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
15000 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15001 | PyObject *resultobj; | |
15002 | int arg1 ; | |
15003 | char *kwnames[] = { | |
15004 | (char *) "country", NULL | |
15005 | }; | |
15006 | ||
15007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_SetCountry",kwnames,&arg1)) goto fail; | |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
15011 | ||
15012 | wxPyEndAllowThreads(__tstate); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
15015 | Py_INCREF(Py_None); resultobj = Py_None; | |
15016 | return resultobj; | |
15017 | fail: | |
15018 | return NULL; | |
15019 | } | |
15020 | ||
15021 | ||
15022 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15023 | PyObject *resultobj; | |
15024 | int result; | |
15025 | char *kwnames[] = { | |
15026 | NULL | |
15027 | }; | |
15028 | ||
15029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
15030 | { | |
15031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15032 | result = (int)wxDateTime::GetCountry(); | |
15033 | ||
15034 | wxPyEndAllowThreads(__tstate); | |
15035 | if (PyErr_Occurred()) SWIG_fail; | |
15036 | } | |
15037 | resultobj = PyInt_FromLong((long)result); | |
15038 | return resultobj; | |
15039 | fail: | |
15040 | return NULL; | |
15041 | } | |
15042 | ||
15043 | ||
15044 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15045 | PyObject *resultobj; | |
15046 | int arg1 = (int) wxDateTime::Country_Default ; | |
15047 | bool result; | |
15048 | char *kwnames[] = { | |
15049 | (char *) "country", NULL | |
15050 | }; | |
15051 | ||
15052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_IsWestEuropeanCountry",kwnames,&arg1)) goto fail; | |
15053 | { | |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15055 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
15060 | resultobj = PyInt_FromLong((long)result); | |
15061 | return resultobj; | |
15062 | fail: | |
15063 | return NULL; | |
15064 | } | |
15065 | ||
15066 | ||
15067 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15068 | PyObject *resultobj; | |
15069 | int arg1 = (int) wxDateTime::Gregorian ; | |
15070 | int result; | |
15071 | char *kwnames[] = { | |
15072 | (char *) "cal", NULL | |
15073 | }; | |
15074 | ||
15075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentYear",kwnames,&arg1)) goto fail; | |
15076 | { | |
15077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15078 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
15079 | ||
15080 | wxPyEndAllowThreads(__tstate); | |
15081 | if (PyErr_Occurred()) SWIG_fail; | |
15082 | } | |
15083 | resultobj = PyInt_FromLong((long)result); | |
15084 | return resultobj; | |
15085 | fail: | |
15086 | return NULL; | |
15087 | } | |
15088 | ||
15089 | ||
15090 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15091 | PyObject *resultobj; | |
15092 | int arg1 ; | |
15093 | int result; | |
15094 | char *kwnames[] = { | |
15095 | (char *) "year", NULL | |
15096 | }; | |
15097 | ||
15098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_ConvertYearToBC",kwnames,&arg1)) goto fail; | |
15099 | { | |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15101 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
15102 | ||
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
15106 | resultobj = PyInt_FromLong((long)result); | |
15107 | return resultobj; | |
15108 | fail: | |
15109 | return NULL; | |
15110 | } | |
15111 | ||
15112 | ||
15113 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15114 | PyObject *resultobj; | |
15115 | int arg1 = (int) wxDateTime::Gregorian ; | |
15116 | int result; | |
15117 | char *kwnames[] = { | |
15118 | (char *) "cal", NULL | |
15119 | }; | |
15120 | ||
15121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentMonth",kwnames,&arg1)) goto fail; | |
15122 | { | |
15123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15124 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
15125 | ||
15126 | wxPyEndAllowThreads(__tstate); | |
15127 | if (PyErr_Occurred()) SWIG_fail; | |
15128 | } | |
15129 | resultobj = PyInt_FromLong((long)result); | |
15130 | return resultobj; | |
15131 | fail: | |
15132 | return NULL; | |
15133 | } | |
15134 | ||
15135 | ||
15136 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15137 | PyObject *resultobj; | |
15138 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15139 | int arg2 = (int) wxDateTime::Gregorian ; | |
15140 | bool result; | |
15141 | char *kwnames[] = { | |
15142 | (char *) "year",(char *) "cal", NULL | |
15143 | }; | |
15144 | ||
15145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsLeapYear",kwnames,&arg1,&arg2)) goto fail; | |
15146 | { | |
15147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15148 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
15149 | ||
15150 | wxPyEndAllowThreads(__tstate); | |
15151 | if (PyErr_Occurred()) SWIG_fail; | |
15152 | } | |
15153 | resultobj = PyInt_FromLong((long)result); | |
15154 | return resultobj; | |
15155 | fail: | |
15156 | return NULL; | |
15157 | } | |
15158 | ||
15159 | ||
15160 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15161 | PyObject *resultobj; | |
15162 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15163 | int result; | |
15164 | char *kwnames[] = { | |
15165 | (char *) "year", NULL | |
15166 | }; | |
15167 | ||
15168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCentury",kwnames,&arg1)) goto fail; | |
15169 | { | |
15170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15171 | result = (int)wxDateTime::GetCentury(arg1); | |
15172 | ||
15173 | wxPyEndAllowThreads(__tstate); | |
15174 | if (PyErr_Occurred()) SWIG_fail; | |
15175 | } | |
15176 | resultobj = PyInt_FromLong((long)result); | |
15177 | return resultobj; | |
15178 | fail: | |
15179 | return NULL; | |
15180 | } | |
15181 | ||
15182 | ||
15183 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15184 | PyObject *resultobj; | |
15185 | int arg1 ; | |
15186 | int arg2 = (int) wxDateTime::Gregorian ; | |
44127b65 | 15187 | int result; |
d14a1e28 RD |
15188 | char *kwnames[] = { |
15189 | (char *) "year",(char *) "cal", NULL | |
15190 | }; | |
15191 | ||
15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetNumberOfDaysinYear",kwnames,&arg1,&arg2)) goto fail; | |
15193 | { | |
15194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 15195 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
15196 | |
15197 | wxPyEndAllowThreads(__tstate); | |
15198 | if (PyErr_Occurred()) SWIG_fail; | |
15199 | } | |
15200 | resultobj = PyInt_FromLong((long)result); | |
15201 | return resultobj; | |
15202 | fail: | |
15203 | return NULL; | |
15204 | } | |
15205 | ||
15206 | ||
15207 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15208 | PyObject *resultobj; | |
15209 | int arg1 ; | |
15210 | int arg2 = (int) wxDateTime::Inv_Year ; | |
15211 | int arg3 = (int) wxDateTime::Gregorian ; | |
44127b65 | 15212 | int result; |
d14a1e28 RD |
15213 | char *kwnames[] = { |
15214 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
15215 | }; | |
15216 | ||
15217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|ii:DateTime_GetNumberOfDaysInMonth",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
15218 | { | |
15219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 15220 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
15221 | |
15222 | wxPyEndAllowThreads(__tstate); | |
15223 | if (PyErr_Occurred()) SWIG_fail; | |
15224 | } | |
15225 | resultobj = PyInt_FromLong((long)result); | |
15226 | return resultobj; | |
15227 | fail: | |
15228 | return NULL; | |
15229 | } | |
15230 | ||
15231 | ||
15232 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15233 | PyObject *resultobj; | |
15234 | int arg1 ; | |
15235 | int arg2 = (int) wxDateTime::Name_Full ; | |
15236 | wxString result; | |
15237 | char *kwnames[] = { | |
15238 | (char *) "month",(char *) "flags", NULL | |
15239 | }; | |
15240 | ||
15241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetMonthName",kwnames,&arg1,&arg2)) goto fail; | |
15242 | { | |
15243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15244 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
15245 | ||
15246 | wxPyEndAllowThreads(__tstate); | |
15247 | if (PyErr_Occurred()) SWIG_fail; | |
15248 | } | |
15249 | { | |
15250 | #if wxUSE_UNICODE | |
15251 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15252 | #else | |
15253 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15254 | #endif | |
15255 | } | |
15256 | return resultobj; | |
15257 | fail: | |
15258 | return NULL; | |
15259 | } | |
15260 | ||
15261 | ||
15262 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15263 | PyObject *resultobj; | |
15264 | int arg1 ; | |
15265 | int arg2 = (int) wxDateTime::Name_Full ; | |
15266 | wxString result; | |
15267 | char *kwnames[] = { | |
15268 | (char *) "weekday",(char *) "flags", NULL | |
15269 | }; | |
15270 | ||
15271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetWeekDayName",kwnames,&arg1,&arg2)) goto fail; | |
15272 | { | |
15273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15274 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
15275 | ||
15276 | wxPyEndAllowThreads(__tstate); | |
15277 | if (PyErr_Occurred()) SWIG_fail; | |
15278 | } | |
15279 | { | |
15280 | #if wxUSE_UNICODE | |
15281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15282 | #else | |
15283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15284 | #endif | |
15285 | } | |
15286 | return resultobj; | |
15287 | fail: | |
15288 | return NULL; | |
15289 | } | |
15290 | ||
15291 | ||
15292 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15293 | PyObject *resultobj; | |
15294 | wxString *arg1 = (wxString *) 0 ; | |
15295 | wxString *arg2 = (wxString *) 0 ; | |
15296 | PyObject * obj0 = 0 ; | |
15297 | PyObject * obj1 = 0 ; | |
15298 | char *kwnames[] = { | |
15299 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
15300 | }; | |
15301 | ||
15302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
15303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15304 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15305 | { | |
15306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15307 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
15308 | ||
15309 | wxPyEndAllowThreads(__tstate); | |
15310 | if (PyErr_Occurred()) SWIG_fail; | |
15311 | } | |
15312 | Py_INCREF(Py_None); resultobj = Py_None; | |
15313 | return resultobj; | |
15314 | fail: | |
15315 | return NULL; | |
15316 | } | |
15317 | ||
15318 | ||
15319 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15320 | PyObject *resultobj; | |
15321 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15322 | int arg2 = (int) wxDateTime::Country_Default ; | |
15323 | bool result; | |
15324 | char *kwnames[] = { | |
15325 | (char *) "year",(char *) "country", NULL | |
15326 | }; | |
15327 | ||
15328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsDSTApplicable",kwnames,&arg1,&arg2)) goto fail; | |
15329 | { | |
15330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15331 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
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 | ||
15343 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15344 | PyObject *resultobj; | |
15345 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15346 | int arg2 = (int) wxDateTime::Country_Default ; | |
15347 | wxDateTime result; | |
15348 | char *kwnames[] = { | |
15349 | (char *) "year",(char *) "country", NULL | |
15350 | }; | |
15351 | ||
15352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetBeginDST",kwnames,&arg1,&arg2)) goto fail; | |
15353 | { | |
15354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15355 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
15356 | ||
15357 | wxPyEndAllowThreads(__tstate); | |
15358 | if (PyErr_Occurred()) SWIG_fail; | |
15359 | } | |
15360 | { | |
15361 | wxDateTime * resultptr; | |
15362 | resultptr = new wxDateTime((wxDateTime &) result); | |
15363 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15364 | } | |
15365 | return resultobj; | |
15366 | fail: | |
15367 | return NULL; | |
15368 | } | |
15369 | ||
15370 | ||
15371 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15372 | PyObject *resultobj; | |
15373 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15374 | int arg2 = (int) wxDateTime::Country_Default ; | |
15375 | wxDateTime result; | |
15376 | char *kwnames[] = { | |
15377 | (char *) "year",(char *) "country", NULL | |
15378 | }; | |
15379 | ||
15380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetEndDST",kwnames,&arg1,&arg2)) goto fail; | |
15381 | { | |
15382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15383 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
15384 | ||
15385 | wxPyEndAllowThreads(__tstate); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
15387 | } | |
15388 | { | |
15389 | wxDateTime * resultptr; | |
15390 | resultptr = new wxDateTime((wxDateTime &) result); | |
15391 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15392 | } | |
15393 | return resultobj; | |
15394 | fail: | |
15395 | return NULL; | |
15396 | } | |
15397 | ||
15398 | ||
15399 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15400 | PyObject *resultobj; | |
15401 | wxDateTime result; | |
15402 | char *kwnames[] = { | |
15403 | NULL | |
15404 | }; | |
15405 | ||
15406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
15407 | { | |
15408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15409 | result = wxDateTime::Now(); | |
15410 | ||
15411 | wxPyEndAllowThreads(__tstate); | |
15412 | if (PyErr_Occurred()) SWIG_fail; | |
15413 | } | |
15414 | { | |
15415 | wxDateTime * resultptr; | |
15416 | resultptr = new wxDateTime((wxDateTime &) result); | |
15417 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15418 | } | |
15419 | return resultobj; | |
15420 | fail: | |
15421 | return NULL; | |
15422 | } | |
15423 | ||
15424 | ||
15425 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15426 | PyObject *resultobj; | |
15427 | wxDateTime result; | |
15428 | char *kwnames[] = { | |
15429 | NULL | |
15430 | }; | |
15431 | ||
15432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
15433 | { | |
15434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15435 | result = wxDateTime::UNow(); | |
15436 | ||
15437 | wxPyEndAllowThreads(__tstate); | |
15438 | if (PyErr_Occurred()) SWIG_fail; | |
15439 | } | |
15440 | { | |
15441 | wxDateTime * resultptr; | |
15442 | resultptr = new wxDateTime((wxDateTime &) result); | |
15443 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15444 | } | |
15445 | return resultobj; | |
15446 | fail: | |
15447 | return NULL; | |
15448 | } | |
15449 | ||
15450 | ||
15451 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15452 | PyObject *resultobj; | |
15453 | wxDateTime result; | |
15454 | char *kwnames[] = { | |
15455 | NULL | |
15456 | }; | |
15457 | ||
15458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
15459 | { | |
15460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15461 | result = wxDateTime::Today(); | |
15462 | ||
15463 | wxPyEndAllowThreads(__tstate); | |
15464 | if (PyErr_Occurred()) SWIG_fail; | |
15465 | } | |
15466 | { | |
15467 | wxDateTime * resultptr; | |
15468 | resultptr = new wxDateTime((wxDateTime &) result); | |
15469 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15470 | } | |
15471 | return resultobj; | |
15472 | fail: | |
15473 | return NULL; | |
15474 | } | |
15475 | ||
15476 | ||
15477 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15478 | PyObject *resultobj; | |
15479 | wxDateTime *result; | |
15480 | char *kwnames[] = { | |
15481 | NULL | |
15482 | }; | |
15483 | ||
15484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
15485 | { | |
15486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15487 | result = (wxDateTime *)new wxDateTime(); | |
15488 | ||
15489 | wxPyEndAllowThreads(__tstate); | |
15490 | if (PyErr_Occurred()) SWIG_fail; | |
15491 | } | |
15492 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15493 | return resultobj; | |
15494 | fail: | |
15495 | return NULL; | |
15496 | } | |
15497 | ||
15498 | ||
15499 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15500 | PyObject *resultobj; | |
15501 | time_t arg1 ; | |
15502 | wxDateTime *result; | |
15503 | PyObject * obj0 = 0 ; | |
15504 | char *kwnames[] = { | |
15505 | (char *) "timet", NULL | |
15506 | }; | |
15507 | ||
15508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15509 | arg1 = (time_t) PyInt_AsLong(obj0); | |
15510 | if (PyErr_Occurred()) SWIG_fail; | |
15511 | { | |
15512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15513 | result = (wxDateTime *)new wxDateTime(arg1); | |
15514 | ||
15515 | wxPyEndAllowThreads(__tstate); | |
15516 | if (PyErr_Occurred()) SWIG_fail; | |
15517 | } | |
15518 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15519 | return resultobj; | |
15520 | fail: | |
15521 | return NULL; | |
15522 | } | |
15523 | ||
15524 | ||
15525 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15526 | PyObject *resultobj; | |
15527 | double arg1 ; | |
15528 | wxDateTime *result; | |
15529 | char *kwnames[] = { | |
15530 | (char *) "jdn", NULL | |
15531 | }; | |
15532 | ||
15533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"d:new_DateTimeFromJDN",kwnames,&arg1)) goto fail; | |
15534 | { | |
15535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15536 | result = (wxDateTime *)new wxDateTime(arg1); | |
15537 | ||
15538 | wxPyEndAllowThreads(__tstate); | |
15539 | if (PyErr_Occurred()) SWIG_fail; | |
15540 | } | |
15541 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15542 | return resultobj; | |
15543 | fail: | |
15544 | return NULL; | |
15545 | } | |
15546 | ||
15547 | ||
15548 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15549 | PyObject *resultobj; | |
44127b65 RD |
15550 | int arg1 ; |
15551 | int arg2 = (int) 0 ; | |
15552 | int arg3 = (int) 0 ; | |
15553 | int arg4 = (int) 0 ; | |
d14a1e28 | 15554 | wxDateTime *result; |
d14a1e28 RD |
15555 | char *kwnames[] = { |
15556 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15557 | }; | |
15558 | ||
44127b65 | 15559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iii:new_DateTimeFromHMS",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 RD |
15560 | { |
15561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15562 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
15563 | ||
15564 | wxPyEndAllowThreads(__tstate); | |
15565 | if (PyErr_Occurred()) SWIG_fail; | |
15566 | } | |
15567 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15568 | return resultobj; | |
15569 | fail: | |
15570 | return NULL; | |
15571 | } | |
15572 | ||
15573 | ||
15574 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15575 | PyObject *resultobj; | |
44127b65 | 15576 | int arg1 ; |
d14a1e28 RD |
15577 | int arg2 = (int) wxDateTime::Inv_Month ; |
15578 | int arg3 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
15579 | int arg4 = (int) 0 ; |
15580 | int arg5 = (int) 0 ; | |
15581 | int arg6 = (int) 0 ; | |
15582 | int arg7 = (int) 0 ; | |
d14a1e28 | 15583 | wxDateTime *result; |
d14a1e28 RD |
15584 | char *kwnames[] = { |
15585 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15586 | }; | |
15587 | ||
44127b65 | 15588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iiiiii:new_DateTimeFromDMY",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; |
d14a1e28 RD |
15589 | { |
15590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15591 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
15592 | ||
15593 | wxPyEndAllowThreads(__tstate); | |
15594 | if (PyErr_Occurred()) SWIG_fail; | |
15595 | } | |
15596 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15597 | return resultobj; | |
15598 | fail: | |
15599 | return NULL; | |
15600 | } | |
15601 | ||
15602 | ||
15603 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15604 | PyObject *resultobj; | |
15605 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15606 | PyObject * obj0 = 0 ; | |
15607 | char *kwnames[] = { | |
15608 | (char *) "self", NULL | |
15609 | }; | |
15610 | ||
15611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15613 | { | |
15614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15615 | delete arg1; | |
15616 | ||
15617 | wxPyEndAllowThreads(__tstate); | |
15618 | if (PyErr_Occurred()) SWIG_fail; | |
15619 | } | |
15620 | Py_INCREF(Py_None); resultobj = Py_None; | |
15621 | return resultobj; | |
15622 | fail: | |
15623 | return NULL; | |
15624 | } | |
15625 | ||
15626 | ||
15627 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15628 | PyObject *resultobj; | |
15629 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15630 | wxDateTime *result; | |
15631 | PyObject * obj0 = 0 ; | |
15632 | char *kwnames[] = { | |
15633 | (char *) "self", NULL | |
15634 | }; | |
15635 | ||
15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15638 | { | |
15639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15640 | { | |
15641 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
15642 | result = (wxDateTime *) &_result_ref; | |
15643 | } | |
15644 | ||
15645 | wxPyEndAllowThreads(__tstate); | |
15646 | if (PyErr_Occurred()) SWIG_fail; | |
15647 | } | |
15648 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15649 | return resultobj; | |
15650 | fail: | |
15651 | return NULL; | |
15652 | } | |
15653 | ||
15654 | ||
15655 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15656 | PyObject *resultobj; | |
15657 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15658 | time_t arg2 ; | |
15659 | wxDateTime *result; | |
15660 | PyObject * obj0 = 0 ; | |
15661 | PyObject * obj1 = 0 ; | |
15662 | char *kwnames[] = { | |
15663 | (char *) "self",(char *) "timet", NULL | |
15664 | }; | |
15665 | ||
15666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15668 | arg2 = (time_t) PyInt_AsLong(obj1); | |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
15670 | { | |
15671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15672 | { | |
15673 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
15674 | result = (wxDateTime *) &_result_ref; | |
15675 | } | |
15676 | ||
15677 | wxPyEndAllowThreads(__tstate); | |
15678 | if (PyErr_Occurred()) SWIG_fail; | |
15679 | } | |
15680 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15681 | return resultobj; | |
15682 | fail: | |
15683 | return NULL; | |
15684 | } | |
15685 | ||
15686 | ||
15687 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15688 | PyObject *resultobj; | |
15689 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15690 | double arg2 ; | |
15691 | wxDateTime *result; | |
15692 | PyObject * obj0 = 0 ; | |
15693 | char *kwnames[] = { | |
15694 | (char *) "self",(char *) "jdn", NULL | |
15695 | }; | |
15696 | ||
15697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:DateTime_SetJDN",kwnames,&obj0,&arg2)) goto fail; | |
15698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15699 | { | |
15700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15701 | { | |
15702 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
15703 | result = (wxDateTime *) &_result_ref; | |
15704 | } | |
15705 | ||
15706 | wxPyEndAllowThreads(__tstate); | |
15707 | if (PyErr_Occurred()) SWIG_fail; | |
15708 | } | |
15709 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15710 | return resultobj; | |
15711 | fail: | |
15712 | return NULL; | |
15713 | } | |
15714 | ||
15715 | ||
15716 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15717 | PyObject *resultobj; | |
15718 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 RD |
15719 | int arg2 ; |
15720 | int arg3 = (int) 0 ; | |
15721 | int arg4 = (int) 0 ; | |
15722 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
15723 | wxDateTime *result; |
15724 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15725 | char *kwnames[] = { |
15726 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15727 | }; | |
15728 | ||
44127b65 | 15729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetHMS",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 | 15730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15731 | { |
15732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15733 | { | |
15734 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
15735 | result = (wxDateTime *) &_result_ref; | |
15736 | } | |
15737 | ||
15738 | wxPyEndAllowThreads(__tstate); | |
15739 | if (PyErr_Occurred()) SWIG_fail; | |
15740 | } | |
15741 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15742 | return resultobj; | |
15743 | fail: | |
15744 | return NULL; | |
15745 | } | |
15746 | ||
15747 | ||
15748 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15749 | PyObject *resultobj; | |
15750 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 15751 | int arg2 ; |
d14a1e28 RD |
15752 | int arg3 = (int) wxDateTime::Inv_Month ; |
15753 | int arg4 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
15754 | int arg5 = (int) 0 ; |
15755 | int arg6 = (int) 0 ; | |
15756 | int arg7 = (int) 0 ; | |
15757 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
15758 | wxDateTime *result; |
15759 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15760 | char *kwnames[] = { |
15761 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15762 | }; | |
15763 | ||
44127b65 | 15764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiiiii:DateTime_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail; |
d14a1e28 | 15765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15766 | { |
15767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15768 | { | |
15769 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
15770 | result = (wxDateTime *) &_result_ref; | |
15771 | } | |
15772 | ||
15773 | wxPyEndAllowThreads(__tstate); | |
15774 | if (PyErr_Occurred()) SWIG_fail; | |
15775 | } | |
15776 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15777 | return resultobj; | |
15778 | fail: | |
15779 | return NULL; | |
15780 | } | |
15781 | ||
15782 | ||
15783 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15784 | PyObject *resultobj; | |
15785 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15786 | wxDateTime *result; | |
15787 | PyObject * obj0 = 0 ; | |
15788 | char *kwnames[] = { | |
15789 | (char *) "self", NULL | |
15790 | }; | |
15791 | ||
15792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15794 | { | |
15795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15796 | { | |
15797 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
15798 | result = (wxDateTime *) &_result_ref; | |
15799 | } | |
15800 | ||
15801 | wxPyEndAllowThreads(__tstate); | |
15802 | if (PyErr_Occurred()) SWIG_fail; | |
15803 | } | |
15804 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15805 | return resultobj; | |
15806 | fail: | |
15807 | return NULL; | |
15808 | } | |
15809 | ||
15810 | ||
15811 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15812 | PyObject *resultobj; | |
15813 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15814 | int arg2 ; | |
15815 | wxDateTime *result; | |
15816 | PyObject * obj0 = 0 ; | |
15817 | char *kwnames[] = { | |
15818 | (char *) "self",(char *) "year", NULL | |
15819 | }; | |
15820 | ||
15821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetYear",kwnames,&obj0,&arg2)) goto fail; | |
15822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15823 | { | |
15824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15825 | { | |
15826 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
15827 | result = (wxDateTime *) &_result_ref; | |
15828 | } | |
15829 | ||
15830 | wxPyEndAllowThreads(__tstate); | |
15831 | if (PyErr_Occurred()) SWIG_fail; | |
15832 | } | |
15833 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15834 | return resultobj; | |
15835 | fail: | |
15836 | return NULL; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15841 | PyObject *resultobj; | |
15842 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15843 | int arg2 ; | |
15844 | wxDateTime *result; | |
15845 | PyObject * obj0 = 0 ; | |
15846 | char *kwnames[] = { | |
15847 | (char *) "self",(char *) "month", NULL | |
15848 | }; | |
15849 | ||
15850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMonth",kwnames,&obj0,&arg2)) goto fail; | |
15851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15852 | { | |
15853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15854 | { | |
15855 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
15856 | result = (wxDateTime *) &_result_ref; | |
15857 | } | |
15858 | ||
15859 | wxPyEndAllowThreads(__tstate); | |
15860 | if (PyErr_Occurred()) SWIG_fail; | |
15861 | } | |
15862 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15863 | return resultobj; | |
15864 | fail: | |
15865 | return NULL; | |
15866 | } | |
15867 | ||
15868 | ||
15869 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15870 | PyObject *resultobj; | |
15871 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 15872 | int arg2 ; |
d14a1e28 RD |
15873 | wxDateTime *result; |
15874 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15875 | char *kwnames[] = { |
15876 | (char *) "self",(char *) "day", NULL | |
15877 | }; | |
15878 | ||
44127b65 | 15879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 15880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15881 | { |
15882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15883 | { | |
15884 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
15885 | result = (wxDateTime *) &_result_ref; | |
15886 | } | |
15887 | ||
15888 | wxPyEndAllowThreads(__tstate); | |
15889 | if (PyErr_Occurred()) SWIG_fail; | |
15890 | } | |
15891 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15892 | return resultobj; | |
15893 | fail: | |
15894 | return NULL; | |
15895 | } | |
15896 | ||
15897 | ||
15898 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15899 | PyObject *resultobj; | |
15900 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 15901 | int arg2 ; |
d14a1e28 RD |
15902 | wxDateTime *result; |
15903 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15904 | char *kwnames[] = { |
15905 | (char *) "self",(char *) "hour", NULL | |
15906 | }; | |
15907 | ||
44127b65 | 15908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetHour",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 15909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15910 | { |
15911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15912 | { | |
15913 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
15914 | result = (wxDateTime *) &_result_ref; | |
15915 | } | |
15916 | ||
15917 | wxPyEndAllowThreads(__tstate); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | } | |
15920 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15921 | return resultobj; | |
15922 | fail: | |
15923 | return NULL; | |
15924 | } | |
15925 | ||
15926 | ||
15927 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15928 | PyObject *resultobj; | |
15929 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 15930 | int arg2 ; |
d14a1e28 RD |
15931 | wxDateTime *result; |
15932 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15933 | char *kwnames[] = { |
15934 | (char *) "self",(char *) "minute", NULL | |
15935 | }; | |
15936 | ||
44127b65 | 15937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMinute",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 15938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15939 | { |
15940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15941 | { | |
15942 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
15943 | result = (wxDateTime *) &_result_ref; | |
15944 | } | |
15945 | ||
15946 | wxPyEndAllowThreads(__tstate); | |
15947 | if (PyErr_Occurred()) SWIG_fail; | |
15948 | } | |
15949 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15950 | return resultobj; | |
15951 | fail: | |
15952 | return NULL; | |
15953 | } | |
15954 | ||
15955 | ||
15956 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15957 | PyObject *resultobj; | |
15958 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 15959 | int arg2 ; |
d14a1e28 RD |
15960 | wxDateTime *result; |
15961 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15962 | char *kwnames[] = { |
15963 | (char *) "self",(char *) "second", NULL | |
15964 | }; | |
15965 | ||
44127b65 | 15966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetSecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 15967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15968 | { |
15969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15970 | { | |
15971 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
15972 | result = (wxDateTime *) &_result_ref; | |
15973 | } | |
15974 | ||
15975 | wxPyEndAllowThreads(__tstate); | |
15976 | if (PyErr_Occurred()) SWIG_fail; | |
15977 | } | |
15978 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15979 | return resultobj; | |
15980 | fail: | |
15981 | return NULL; | |
15982 | } | |
15983 | ||
15984 | ||
15985 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15986 | PyObject *resultobj; | |
15987 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 15988 | int arg2 ; |
d14a1e28 RD |
15989 | wxDateTime *result; |
15990 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15991 | char *kwnames[] = { |
15992 | (char *) "self",(char *) "millisecond", NULL | |
15993 | }; | |
15994 | ||
44127b65 | 15995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMillisecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 15996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15997 | { |
15998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15999 | { | |
16000 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
16001 | result = (wxDateTime *) &_result_ref; | |
16002 | } | |
16003 | ||
16004 | wxPyEndAllowThreads(__tstate); | |
16005 | if (PyErr_Occurred()) SWIG_fail; | |
16006 | } | |
16007 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16008 | return resultobj; | |
16009 | fail: | |
16010 | return NULL; | |
16011 | } | |
16012 | ||
16013 | ||
16014 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16015 | PyObject *resultobj; | |
16016 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16017 | int arg2 ; | |
16018 | int arg3 = (int) wxDateTime::Monday_First ; | |
16019 | wxDateTime *result; | |
16020 | PyObject * obj0 = 0 ; | |
16021 | char *kwnames[] = { | |
16022 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16023 | }; | |
16024 | ||
16025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16027 | { | |
16028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16029 | { | |
16030 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16031 | result = (wxDateTime *) &_result_ref; | |
16032 | } | |
16033 | ||
16034 | wxPyEndAllowThreads(__tstate); | |
16035 | if (PyErr_Occurred()) SWIG_fail; | |
16036 | } | |
16037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16038 | return resultobj; | |
16039 | fail: | |
16040 | return NULL; | |
16041 | } | |
16042 | ||
16043 | ||
16044 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16045 | PyObject *resultobj; | |
16046 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16047 | int arg2 ; | |
16048 | int arg3 = (int) wxDateTime::Monday_First ; | |
16049 | wxDateTime result; | |
16050 | PyObject * obj0 = 0 ; | |
16051 | char *kwnames[] = { | |
16052 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16053 | }; | |
16054 | ||
16055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16057 | { | |
16058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16059 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16060 | ||
16061 | wxPyEndAllowThreads(__tstate); | |
16062 | if (PyErr_Occurred()) SWIG_fail; | |
16063 | } | |
16064 | { | |
16065 | wxDateTime * resultptr; | |
16066 | resultptr = new wxDateTime((wxDateTime &) result); | |
16067 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16068 | } | |
16069 | return resultobj; | |
16070 | fail: | |
16071 | return NULL; | |
16072 | } | |
16073 | ||
16074 | ||
16075 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16076 | PyObject *resultobj; | |
16077 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16078 | int arg2 ; | |
16079 | wxDateTime *result; | |
16080 | PyObject * obj0 = 0 ; | |
16081 | char *kwnames[] = { | |
16082 | (char *) "self",(char *) "weekday", NULL | |
16083 | }; | |
16084 | ||
16085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16087 | { | |
16088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16089 | { | |
16090 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
16091 | result = (wxDateTime *) &_result_ref; | |
16092 | } | |
16093 | ||
16094 | wxPyEndAllowThreads(__tstate); | |
16095 | if (PyErr_Occurred()) SWIG_fail; | |
16096 | } | |
16097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16098 | return resultobj; | |
16099 | fail: | |
16100 | return NULL; | |
16101 | } | |
16102 | ||
16103 | ||
16104 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16105 | PyObject *resultobj; | |
16106 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16107 | int arg2 ; | |
16108 | wxDateTime result; | |
16109 | PyObject * obj0 = 0 ; | |
16110 | char *kwnames[] = { | |
16111 | (char *) "self",(char *) "weekday", NULL | |
16112 | }; | |
16113 | ||
16114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16116 | { | |
16117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16118 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
16119 | ||
16120 | wxPyEndAllowThreads(__tstate); | |
16121 | if (PyErr_Occurred()) SWIG_fail; | |
16122 | } | |
16123 | { | |
16124 | wxDateTime * resultptr; | |
16125 | resultptr = new wxDateTime((wxDateTime &) result); | |
16126 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16127 | } | |
16128 | return resultobj; | |
16129 | fail: | |
16130 | return NULL; | |
16131 | } | |
16132 | ||
16133 | ||
16134 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16135 | PyObject *resultobj; | |
16136 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16137 | int arg2 ; | |
16138 | wxDateTime *result; | |
16139 | PyObject * obj0 = 0 ; | |
16140 | char *kwnames[] = { | |
16141 | (char *) "self",(char *) "weekday", NULL | |
16142 | }; | |
16143 | ||
16144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16146 | { | |
16147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16148 | { | |
16149 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16150 | result = (wxDateTime *) &_result_ref; | |
16151 | } | |
16152 | ||
16153 | wxPyEndAllowThreads(__tstate); | |
16154 | if (PyErr_Occurred()) SWIG_fail; | |
16155 | } | |
16156 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16157 | return resultobj; | |
16158 | fail: | |
16159 | return NULL; | |
16160 | } | |
16161 | ||
16162 | ||
16163 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16164 | PyObject *resultobj; | |
16165 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16166 | int arg2 ; | |
16167 | wxDateTime result; | |
16168 | PyObject * obj0 = 0 ; | |
16169 | char *kwnames[] = { | |
16170 | (char *) "self",(char *) "weekday", NULL | |
16171 | }; | |
16172 | ||
16173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16175 | { | |
16176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16177 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16178 | ||
16179 | wxPyEndAllowThreads(__tstate); | |
16180 | if (PyErr_Occurred()) SWIG_fail; | |
16181 | } | |
16182 | { | |
16183 | wxDateTime * resultptr; | |
16184 | resultptr = new wxDateTime((wxDateTime &) result); | |
16185 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16186 | } | |
16187 | return resultobj; | |
16188 | fail: | |
16189 | return NULL; | |
16190 | } | |
16191 | ||
16192 | ||
16193 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16194 | PyObject *resultobj; | |
16195 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16196 | int arg2 ; | |
16197 | int arg3 = (int) 1 ; | |
16198 | int arg4 = (int) wxDateTime::Inv_Month ; | |
16199 | int arg5 = (int) wxDateTime::Inv_Year ; | |
16200 | bool result; | |
16201 | PyObject * obj0 = 0 ; | |
16202 | char *kwnames[] = { | |
16203 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
16204 | }; | |
16205 | ||
16206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetToWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16208 | { | |
16209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16210 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
16211 | ||
16212 | wxPyEndAllowThreads(__tstate); | |
16213 | if (PyErr_Occurred()) SWIG_fail; | |
16214 | } | |
16215 | resultobj = PyInt_FromLong((long)result); | |
16216 | return resultobj; | |
16217 | fail: | |
16218 | return NULL; | |
16219 | } | |
16220 | ||
16221 | ||
16222 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16223 | PyObject *resultobj; | |
16224 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16225 | int arg2 ; | |
16226 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16227 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16228 | bool result; | |
16229 | PyObject * obj0 = 0 ; | |
16230 | char *kwnames[] = { | |
16231 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16232 | }; | |
16233 | ||
16234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16236 | { | |
16237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16238 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16239 | ||
16240 | wxPyEndAllowThreads(__tstate); | |
16241 | if (PyErr_Occurred()) SWIG_fail; | |
16242 | } | |
16243 | resultobj = PyInt_FromLong((long)result); | |
16244 | return resultobj; | |
16245 | fail: | |
16246 | return NULL; | |
16247 | } | |
16248 | ||
16249 | ||
16250 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16251 | PyObject *resultobj; | |
16252 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16253 | int arg2 ; | |
16254 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16255 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16256 | wxDateTime result; | |
16257 | PyObject * obj0 = 0 ; | |
16258 | char *kwnames[] = { | |
16259 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16260 | }; | |
16261 | ||
16262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16264 | { | |
16265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16266 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16267 | ||
16268 | wxPyEndAllowThreads(__tstate); | |
16269 | if (PyErr_Occurred()) SWIG_fail; | |
16270 | } | |
16271 | { | |
16272 | wxDateTime * resultptr; | |
16273 | resultptr = new wxDateTime((wxDateTime &) result); | |
16274 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16275 | } | |
16276 | return resultobj; | |
16277 | fail: | |
16278 | return NULL; | |
16279 | } | |
16280 | ||
16281 | ||
16282 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16283 | PyObject *resultobj; | |
16284 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16285 | int arg2 ; |
d14a1e28 RD |
16286 | int arg3 = (int) wxDateTime::Mon ; |
16287 | int arg4 = (int) wxDateTime::Monday_First ; | |
16288 | bool result; | |
16289 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16290 | char *kwnames[] = { |
16291 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16292 | }; | |
16293 | ||
44127b65 | 16294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToTheWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16296 | { |
16297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16298 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16299 | ||
16300 | wxPyEndAllowThreads(__tstate); | |
16301 | if (PyErr_Occurred()) SWIG_fail; | |
16302 | } | |
16303 | resultobj = PyInt_FromLong((long)result); | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | return NULL; | |
16307 | } | |
16308 | ||
16309 | ||
16310 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16311 | PyObject *resultobj; | |
16312 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16313 | int arg2 ; |
d14a1e28 RD |
16314 | int arg3 = (int) wxDateTime::Mon ; |
16315 | int arg4 = (int) wxDateTime::Monday_First ; | |
16316 | wxDateTime result; | |
16317 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16318 | char *kwnames[] = { |
16319 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16320 | }; | |
16321 | ||
44127b65 | 16322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16324 | { |
16325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16326 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16327 | ||
16328 | wxPyEndAllowThreads(__tstate); | |
16329 | if (PyErr_Occurred()) SWIG_fail; | |
16330 | } | |
16331 | { | |
16332 | wxDateTime * resultptr; | |
16333 | resultptr = new wxDateTime((wxDateTime &) result); | |
16334 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16335 | } | |
16336 | return resultobj; | |
16337 | fail: | |
16338 | return NULL; | |
16339 | } | |
16340 | ||
16341 | ||
16342 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16343 | PyObject *resultobj; | |
16344 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16345 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16346 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16347 | wxDateTime *result; | |
16348 | PyObject * obj0 = 0 ; | |
16349 | char *kwnames[] = { | |
16350 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16351 | }; | |
16352 | ||
16353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_SetToLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16355 | { | |
16356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16357 | { | |
16358 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16359 | result = (wxDateTime *) &_result_ref; | |
16360 | } | |
16361 | ||
16362 | wxPyEndAllowThreads(__tstate); | |
16363 | if (PyErr_Occurred()) SWIG_fail; | |
16364 | } | |
16365 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16366 | return resultobj; | |
16367 | fail: | |
16368 | return NULL; | |
16369 | } | |
16370 | ||
16371 | ||
16372 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16373 | PyObject *resultobj; | |
16374 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16375 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16376 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16377 | wxDateTime result; | |
16378 | PyObject * obj0 = 0 ; | |
16379 | char *kwnames[] = { | |
16380 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16381 | }; | |
16382 | ||
16383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_GetLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16385 | { | |
16386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16387 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16388 | ||
16389 | wxPyEndAllowThreads(__tstate); | |
16390 | if (PyErr_Occurred()) SWIG_fail; | |
16391 | } | |
16392 | { | |
16393 | wxDateTime * resultptr; | |
16394 | resultptr = new wxDateTime((wxDateTime &) result); | |
16395 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16396 | } | |
16397 | return resultobj; | |
16398 | fail: | |
16399 | return NULL; | |
16400 | } | |
16401 | ||
16402 | ||
16403 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16404 | PyObject *resultobj; | |
16405 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16406 | int arg2 ; |
d14a1e28 RD |
16407 | wxDateTime *result; |
16408 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16409 | char *kwnames[] = { |
16410 | (char *) "self",(char *) "yday", NULL | |
16411 | }; | |
16412 | ||
44127b65 | 16413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16415 | { |
16416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16417 | { | |
16418 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
16419 | result = (wxDateTime *) &_result_ref; | |
16420 | } | |
16421 | ||
16422 | wxPyEndAllowThreads(__tstate); | |
16423 | if (PyErr_Occurred()) SWIG_fail; | |
16424 | } | |
16425 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16426 | return resultobj; | |
16427 | fail: | |
16428 | return NULL; | |
16429 | } | |
16430 | ||
16431 | ||
16432 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16433 | PyObject *resultobj; | |
16434 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16435 | int arg2 ; |
d14a1e28 RD |
16436 | wxDateTime result; |
16437 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16438 | char *kwnames[] = { |
16439 | (char *) "self",(char *) "yday", NULL | |
16440 | }; | |
16441 | ||
44127b65 | 16442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16444 | { |
16445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16446 | result = (arg1)->GetYearDay(arg2); | |
16447 | ||
16448 | wxPyEndAllowThreads(__tstate); | |
16449 | if (PyErr_Occurred()) SWIG_fail; | |
16450 | } | |
16451 | { | |
16452 | wxDateTime * resultptr; | |
16453 | resultptr = new wxDateTime((wxDateTime &) result); | |
16454 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16455 | } | |
16456 | return resultobj; | |
16457 | fail: | |
16458 | return NULL; | |
16459 | } | |
16460 | ||
16461 | ||
16462 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16463 | PyObject *resultobj; | |
16464 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16465 | double result; | |
16466 | PyObject * obj0 = 0 ; | |
16467 | char *kwnames[] = { | |
16468 | (char *) "self", NULL | |
16469 | }; | |
16470 | ||
16471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
16472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16473 | { | |
16474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16475 | result = (double)(arg1)->GetJulianDayNumber(); | |
16476 | ||
16477 | wxPyEndAllowThreads(__tstate); | |
16478 | if (PyErr_Occurred()) SWIG_fail; | |
16479 | } | |
16480 | resultobj = PyFloat_FromDouble(result); | |
16481 | return resultobj; | |
16482 | fail: | |
16483 | return NULL; | |
16484 | } | |
16485 | ||
16486 | ||
16487 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16488 | PyObject *resultobj; | |
16489 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16490 | double result; | |
16491 | PyObject * obj0 = 0 ; | |
16492 | char *kwnames[] = { | |
16493 | (char *) "self", NULL | |
16494 | }; | |
16495 | ||
16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
16497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16498 | { | |
16499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16500 | result = (double)(arg1)->GetJDN(); | |
16501 | ||
16502 | wxPyEndAllowThreads(__tstate); | |
16503 | if (PyErr_Occurred()) SWIG_fail; | |
16504 | } | |
16505 | resultobj = PyFloat_FromDouble(result); | |
16506 | return resultobj; | |
16507 | fail: | |
16508 | return NULL; | |
16509 | } | |
16510 | ||
16511 | ||
16512 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16513 | PyObject *resultobj; | |
16514 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16515 | double result; | |
16516 | PyObject * obj0 = 0 ; | |
16517 | char *kwnames[] = { | |
16518 | (char *) "self", NULL | |
16519 | }; | |
16520 | ||
16521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
16522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16523 | { | |
16524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16525 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
16526 | ||
16527 | wxPyEndAllowThreads(__tstate); | |
16528 | if (PyErr_Occurred()) SWIG_fail; | |
16529 | } | |
16530 | resultobj = PyFloat_FromDouble(result); | |
16531 | return resultobj; | |
16532 | fail: | |
16533 | return NULL; | |
16534 | } | |
16535 | ||
16536 | ||
16537 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16538 | PyObject *resultobj; | |
16539 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16540 | double result; | |
16541 | PyObject * obj0 = 0 ; | |
16542 | char *kwnames[] = { | |
16543 | (char *) "self", NULL | |
16544 | }; | |
16545 | ||
16546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
16547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16548 | { | |
16549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16550 | result = (double)(arg1)->GetMJD(); | |
16551 | ||
16552 | wxPyEndAllowThreads(__tstate); | |
16553 | if (PyErr_Occurred()) SWIG_fail; | |
16554 | } | |
16555 | resultobj = PyFloat_FromDouble(result); | |
16556 | return resultobj; | |
16557 | fail: | |
16558 | return NULL; | |
16559 | } | |
16560 | ||
16561 | ||
16562 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16563 | PyObject *resultobj; | |
16564 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16565 | double result; | |
16566 | PyObject * obj0 = 0 ; | |
16567 | char *kwnames[] = { | |
16568 | (char *) "self", NULL | |
16569 | }; | |
16570 | ||
16571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
16572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16573 | { | |
16574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16575 | result = (double)(arg1)->GetRataDie(); | |
16576 | ||
16577 | wxPyEndAllowThreads(__tstate); | |
16578 | if (PyErr_Occurred()) SWIG_fail; | |
16579 | } | |
16580 | resultobj = PyFloat_FromDouble(result); | |
16581 | return resultobj; | |
16582 | fail: | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
16587 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16588 | PyObject *resultobj; | |
16589 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16590 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 16591 | bool arg3 = (bool) False ; |
d14a1e28 | 16592 | wxDateTime result; |
44127b65 | 16593 | bool temp2 = False ; |
d14a1e28 RD |
16594 | PyObject * obj0 = 0 ; |
16595 | PyObject * obj1 = 0 ; | |
16596 | PyObject * obj2 = 0 ; | |
16597 | char *kwnames[] = { | |
16598 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16599 | }; | |
16600 | ||
16601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16603 | { | |
16604 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16605 | temp2 = True; |
d14a1e28 RD |
16606 | } |
16607 | if (obj2) { | |
16608 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
16611 | { | |
16612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16613 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16614 | ||
16615 | wxPyEndAllowThreads(__tstate); | |
16616 | if (PyErr_Occurred()) SWIG_fail; | |
16617 | } | |
16618 | { | |
16619 | wxDateTime * resultptr; | |
16620 | resultptr = new wxDateTime((wxDateTime &) result); | |
16621 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16622 | } | |
16623 | { | |
44127b65 | 16624 | if (temp2) delete arg2; |
d14a1e28 RD |
16625 | } |
16626 | return resultobj; | |
16627 | fail: | |
16628 | { | |
44127b65 | 16629 | if (temp2) delete arg2; |
d14a1e28 RD |
16630 | } |
16631 | return NULL; | |
16632 | } | |
16633 | ||
16634 | ||
16635 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16636 | PyObject *resultobj; | |
16637 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16638 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 16639 | bool arg3 = (bool) False ; |
d14a1e28 | 16640 | wxDateTime *result; |
44127b65 | 16641 | bool temp2 = False ; |
d14a1e28 RD |
16642 | PyObject * obj0 = 0 ; |
16643 | PyObject * obj1 = 0 ; | |
16644 | PyObject * obj2 = 0 ; | |
16645 | char *kwnames[] = { | |
16646 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16647 | }; | |
16648 | ||
16649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16651 | { | |
16652 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16653 | temp2 = True; |
d14a1e28 RD |
16654 | } |
16655 | if (obj2) { | |
16656 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16657 | if (PyErr_Occurred()) SWIG_fail; | |
16658 | } | |
16659 | { | |
16660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16661 | { | |
16662 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16663 | result = (wxDateTime *) &_result_ref; | |
16664 | } | |
16665 | ||
16666 | wxPyEndAllowThreads(__tstate); | |
16667 | if (PyErr_Occurred()) SWIG_fail; | |
16668 | } | |
16669 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16670 | { | |
44127b65 | 16671 | if (temp2) delete arg2; |
d14a1e28 RD |
16672 | } |
16673 | return resultobj; | |
16674 | fail: | |
16675 | { | |
44127b65 | 16676 | if (temp2) delete arg2; |
d14a1e28 RD |
16677 | } |
16678 | return NULL; | |
16679 | } | |
16680 | ||
16681 | ||
16682 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16683 | PyObject *resultobj; | |
16684 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 16685 | bool arg2 = (bool) False ; |
d14a1e28 RD |
16686 | wxDateTime result; |
16687 | PyObject * obj0 = 0 ; | |
16688 | PyObject * obj1 = 0 ; | |
16689 | char *kwnames[] = { | |
16690 | (char *) "self",(char *) "noDST", NULL | |
16691 | }; | |
16692 | ||
16693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
16694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16695 | if (obj1) { | |
16696 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16697 | if (PyErr_Occurred()) SWIG_fail; | |
16698 | } | |
16699 | { | |
16700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16701 | result = (arg1)->ToGMT(arg2); | |
16702 | ||
16703 | wxPyEndAllowThreads(__tstate); | |
16704 | if (PyErr_Occurred()) SWIG_fail; | |
16705 | } | |
16706 | { | |
16707 | wxDateTime * resultptr; | |
16708 | resultptr = new wxDateTime((wxDateTime &) result); | |
16709 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16710 | } | |
16711 | return resultobj; | |
16712 | fail: | |
16713 | return NULL; | |
16714 | } | |
16715 | ||
16716 | ||
16717 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16718 | PyObject *resultobj; | |
16719 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 16720 | bool arg2 = (bool) False ; |
d14a1e28 RD |
16721 | wxDateTime *result; |
16722 | PyObject * obj0 = 0 ; | |
16723 | PyObject * obj1 = 0 ; | |
16724 | char *kwnames[] = { | |
16725 | (char *) "self",(char *) "noDST", NULL | |
16726 | }; | |
16727 | ||
16728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
16729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16730 | if (obj1) { | |
16731 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16732 | if (PyErr_Occurred()) SWIG_fail; | |
16733 | } | |
16734 | { | |
16735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16736 | { | |
16737 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
16738 | result = (wxDateTime *) &_result_ref; | |
16739 | } | |
16740 | ||
16741 | wxPyEndAllowThreads(__tstate); | |
16742 | if (PyErr_Occurred()) SWIG_fail; | |
16743 | } | |
16744 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16745 | return resultobj; | |
16746 | fail: | |
16747 | return NULL; | |
16748 | } | |
16749 | ||
16750 | ||
16751 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16752 | PyObject *resultobj; | |
16753 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16754 | int arg2 = (int) wxDateTime::Country_Default ; | |
16755 | int result; | |
16756 | PyObject * obj0 = 0 ; | |
16757 | char *kwnames[] = { | |
16758 | (char *) "self",(char *) "country", NULL | |
16759 | }; | |
16760 | ||
16761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsDST",kwnames,&obj0,&arg2)) goto fail; | |
16762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16763 | { | |
16764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16765 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
16766 | ||
16767 | wxPyEndAllowThreads(__tstate); | |
16768 | if (PyErr_Occurred()) SWIG_fail; | |
16769 | } | |
16770 | resultobj = PyInt_FromLong((long)result); | |
16771 | return resultobj; | |
16772 | fail: | |
16773 | return NULL; | |
16774 | } | |
16775 | ||
16776 | ||
16777 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16778 | PyObject *resultobj; | |
16779 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16780 | bool result; | |
16781 | PyObject * obj0 = 0 ; | |
16782 | char *kwnames[] = { | |
16783 | (char *) "self", NULL | |
16784 | }; | |
16785 | ||
16786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
16787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16788 | { | |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
16791 | ||
16792 | wxPyEndAllowThreads(__tstate); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | resultobj = PyInt_FromLong((long)result); | |
16796 | return resultobj; | |
16797 | fail: | |
16798 | return NULL; | |
16799 | } | |
16800 | ||
16801 | ||
16802 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16803 | PyObject *resultobj; | |
16804 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16805 | time_t result; | |
16806 | PyObject * obj0 = 0 ; | |
16807 | char *kwnames[] = { | |
16808 | (char *) "self", NULL | |
16809 | }; | |
16810 | ||
16811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
16812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16813 | { | |
16814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16815 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
16816 | ||
16817 | wxPyEndAllowThreads(__tstate); | |
16818 | if (PyErr_Occurred()) SWIG_fail; | |
16819 | } | |
16820 | resultobj = PyInt_FromLong((long)result); | |
16821 | return resultobj; | |
16822 | fail: | |
16823 | return NULL; | |
16824 | } | |
16825 | ||
16826 | ||
16827 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16828 | PyObject *resultobj; | |
16829 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16830 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
16831 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
16832 | int result; | |
44127b65 | 16833 | bool temp2 = False ; |
d14a1e28 RD |
16834 | PyObject * obj0 = 0 ; |
16835 | PyObject * obj1 = 0 ; | |
16836 | char *kwnames[] = { | |
16837 | (char *) "self",(char *) "tz", NULL | |
16838 | }; | |
16839 | ||
16840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
16841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16842 | if (obj1) { | |
16843 | { | |
16844 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16845 | temp2 = True; |
d14a1e28 RD |
16846 | } |
16847 | } | |
16848 | { | |
16849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16850 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
16851 | ||
16852 | wxPyEndAllowThreads(__tstate); | |
16853 | if (PyErr_Occurred()) SWIG_fail; | |
16854 | } | |
16855 | resultobj = PyInt_FromLong((long)result); | |
16856 | { | |
44127b65 | 16857 | if (temp2) delete arg2; |
d14a1e28 RD |
16858 | } |
16859 | return resultobj; | |
16860 | fail: | |
16861 | { | |
44127b65 | 16862 | if (temp2) delete arg2; |
d14a1e28 RD |
16863 | } |
16864 | return NULL; | |
16865 | } | |
16866 | ||
16867 | ||
16868 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16869 | PyObject *resultobj; | |
16870 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16871 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
16872 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
16873 | int result; | |
44127b65 | 16874 | bool temp2 = False ; |
d14a1e28 RD |
16875 | PyObject * obj0 = 0 ; |
16876 | PyObject * obj1 = 0 ; | |
16877 | char *kwnames[] = { | |
16878 | (char *) "self",(char *) "tz", NULL | |
16879 | }; | |
16880 | ||
16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
16882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16883 | if (obj1) { | |
16884 | { | |
16885 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16886 | temp2 = True; |
d14a1e28 RD |
16887 | } |
16888 | } | |
16889 | { | |
16890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16891 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
16892 | ||
16893 | wxPyEndAllowThreads(__tstate); | |
16894 | if (PyErr_Occurred()) SWIG_fail; | |
16895 | } | |
16896 | resultobj = PyInt_FromLong((long)result); | |
16897 | { | |
44127b65 | 16898 | if (temp2) delete arg2; |
d14a1e28 RD |
16899 | } |
16900 | return resultobj; | |
16901 | fail: | |
16902 | { | |
44127b65 | 16903 | if (temp2) delete arg2; |
d14a1e28 RD |
16904 | } |
16905 | return NULL; | |
16906 | } | |
16907 | ||
16908 | ||
16909 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16910 | PyObject *resultobj; | |
16911 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16912 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
16913 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
16914 | int result; |
16915 | bool temp2 = False ; | |
d14a1e28 RD |
16916 | PyObject * obj0 = 0 ; |
16917 | PyObject * obj1 = 0 ; | |
16918 | char *kwnames[] = { | |
16919 | (char *) "self",(char *) "tz", NULL | |
16920 | }; | |
16921 | ||
16922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
16923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16924 | if (obj1) { | |
16925 | { | |
16926 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16927 | temp2 = True; |
d14a1e28 RD |
16928 | } |
16929 | } | |
16930 | { | |
16931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 16932 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
16933 | |
16934 | wxPyEndAllowThreads(__tstate); | |
16935 | if (PyErr_Occurred()) SWIG_fail; | |
16936 | } | |
16937 | resultobj = PyInt_FromLong((long)result); | |
16938 | { | |
44127b65 | 16939 | if (temp2) delete arg2; |
d14a1e28 RD |
16940 | } |
16941 | return resultobj; | |
16942 | fail: | |
16943 | { | |
44127b65 | 16944 | if (temp2) delete arg2; |
d14a1e28 RD |
16945 | } |
16946 | return NULL; | |
16947 | } | |
16948 | ||
16949 | ||
16950 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16951 | PyObject *resultobj; | |
16952 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16953 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
16954 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
16955 | int result; | |
44127b65 | 16956 | bool temp2 = False ; |
d14a1e28 RD |
16957 | PyObject * obj0 = 0 ; |
16958 | PyObject * obj1 = 0 ; | |
16959 | char *kwnames[] = { | |
16960 | (char *) "self",(char *) "tz", NULL | |
16961 | }; | |
16962 | ||
16963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
16964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16965 | if (obj1) { | |
16966 | { | |
16967 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16968 | temp2 = True; |
d14a1e28 RD |
16969 | } |
16970 | } | |
16971 | { | |
16972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16973 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
16974 | ||
16975 | wxPyEndAllowThreads(__tstate); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | } | |
16978 | resultobj = PyInt_FromLong((long)result); | |
16979 | { | |
44127b65 | 16980 | if (temp2) delete arg2; |
d14a1e28 RD |
16981 | } |
16982 | return resultobj; | |
16983 | fail: | |
16984 | { | |
44127b65 | 16985 | if (temp2) delete arg2; |
d14a1e28 RD |
16986 | } |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
16991 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16992 | PyObject *resultobj; | |
16993 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16994 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
16995 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
16996 | int result; |
16997 | bool temp2 = False ; | |
d14a1e28 RD |
16998 | PyObject * obj0 = 0 ; |
16999 | PyObject * obj1 = 0 ; | |
17000 | char *kwnames[] = { | |
17001 | (char *) "self",(char *) "tz", NULL | |
17002 | }; | |
17003 | ||
17004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
17005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17006 | if (obj1) { | |
17007 | { | |
17008 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17009 | temp2 = True; |
d14a1e28 RD |
17010 | } |
17011 | } | |
17012 | { | |
17013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17014 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17015 | |
17016 | wxPyEndAllowThreads(__tstate); | |
17017 | if (PyErr_Occurred()) SWIG_fail; | |
17018 | } | |
17019 | resultobj = PyInt_FromLong((long)result); | |
17020 | { | |
44127b65 | 17021 | if (temp2) delete arg2; |
d14a1e28 RD |
17022 | } |
17023 | return resultobj; | |
17024 | fail: | |
17025 | { | |
44127b65 | 17026 | if (temp2) delete arg2; |
d14a1e28 RD |
17027 | } |
17028 | return NULL; | |
17029 | } | |
17030 | ||
17031 | ||
17032 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17033 | PyObject *resultobj; | |
17034 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17035 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17036 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17037 | int result; |
17038 | bool temp2 = False ; | |
d14a1e28 RD |
17039 | PyObject * obj0 = 0 ; |
17040 | PyObject * obj1 = 0 ; | |
17041 | char *kwnames[] = { | |
17042 | (char *) "self",(char *) "tz", NULL | |
17043 | }; | |
17044 | ||
17045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17047 | if (obj1) { | |
17048 | { | |
17049 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17050 | temp2 = True; |
d14a1e28 RD |
17051 | } |
17052 | } | |
17053 | { | |
17054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17055 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17056 | |
17057 | wxPyEndAllowThreads(__tstate); | |
17058 | if (PyErr_Occurred()) SWIG_fail; | |
17059 | } | |
17060 | resultobj = PyInt_FromLong((long)result); | |
17061 | { | |
44127b65 | 17062 | if (temp2) delete arg2; |
d14a1e28 RD |
17063 | } |
17064 | return resultobj; | |
17065 | fail: | |
17066 | { | |
44127b65 | 17067 | if (temp2) delete arg2; |
d14a1e28 RD |
17068 | } |
17069 | return NULL; | |
17070 | } | |
17071 | ||
17072 | ||
17073 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17074 | PyObject *resultobj; | |
17075 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17076 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17077 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17078 | int result; |
17079 | bool temp2 = False ; | |
d14a1e28 RD |
17080 | PyObject * obj0 = 0 ; |
17081 | PyObject * obj1 = 0 ; | |
17082 | char *kwnames[] = { | |
17083 | (char *) "self",(char *) "tz", NULL | |
17084 | }; | |
17085 | ||
17086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17088 | if (obj1) { | |
17089 | { | |
17090 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17091 | temp2 = True; |
d14a1e28 RD |
17092 | } |
17093 | } | |
17094 | { | |
17095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17096 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17097 | |
17098 | wxPyEndAllowThreads(__tstate); | |
17099 | if (PyErr_Occurred()) SWIG_fail; | |
17100 | } | |
17101 | resultobj = PyInt_FromLong((long)result); | |
17102 | { | |
44127b65 | 17103 | if (temp2) delete arg2; |
d14a1e28 RD |
17104 | } |
17105 | return resultobj; | |
17106 | fail: | |
17107 | { | |
44127b65 | 17108 | if (temp2) delete arg2; |
d14a1e28 RD |
17109 | } |
17110 | return NULL; | |
17111 | } | |
17112 | ||
17113 | ||
17114 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17115 | PyObject *resultobj; | |
17116 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17117 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17118 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17119 | int result; |
17120 | bool temp2 = False ; | |
d14a1e28 RD |
17121 | PyObject * obj0 = 0 ; |
17122 | PyObject * obj1 = 0 ; | |
17123 | char *kwnames[] = { | |
17124 | (char *) "self",(char *) "tz", NULL | |
17125 | }; | |
17126 | ||
17127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17129 | if (obj1) { | |
17130 | { | |
17131 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17132 | temp2 = True; |
d14a1e28 RD |
17133 | } |
17134 | } | |
17135 | { | |
17136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17137 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17138 | |
17139 | wxPyEndAllowThreads(__tstate); | |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
17141 | } | |
17142 | resultobj = PyInt_FromLong((long)result); | |
17143 | { | |
44127b65 | 17144 | if (temp2) delete arg2; |
d14a1e28 RD |
17145 | } |
17146 | return resultobj; | |
17147 | fail: | |
17148 | { | |
44127b65 | 17149 | if (temp2) delete arg2; |
d14a1e28 RD |
17150 | } |
17151 | return NULL; | |
17152 | } | |
17153 | ||
17154 | ||
17155 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17156 | PyObject *resultobj; | |
17157 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17158 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17159 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17160 | int result; |
17161 | bool temp2 = False ; | |
d14a1e28 RD |
17162 | PyObject * obj0 = 0 ; |
17163 | PyObject * obj1 = 0 ; | |
17164 | char *kwnames[] = { | |
17165 | (char *) "self",(char *) "tz", NULL | |
17166 | }; | |
17167 | ||
17168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
17169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17170 | if (obj1) { | |
17171 | { | |
17172 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17173 | temp2 = True; |
d14a1e28 RD |
17174 | } |
17175 | } | |
17176 | { | |
17177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17178 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17179 | |
17180 | wxPyEndAllowThreads(__tstate); | |
17181 | if (PyErr_Occurred()) SWIG_fail; | |
17182 | } | |
17183 | resultobj = PyInt_FromLong((long)result); | |
17184 | { | |
44127b65 | 17185 | if (temp2) delete arg2; |
d14a1e28 RD |
17186 | } |
17187 | return resultobj; | |
17188 | fail: | |
17189 | { | |
44127b65 | 17190 | if (temp2) delete arg2; |
d14a1e28 RD |
17191 | } |
17192 | return NULL; | |
17193 | } | |
17194 | ||
17195 | ||
17196 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17197 | PyObject *resultobj; | |
17198 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17199 | int arg2 = (int) wxDateTime::Monday_First ; | |
17200 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17201 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
17202 | int result; |
17203 | bool temp3 = False ; | |
d14a1e28 RD |
17204 | PyObject * obj0 = 0 ; |
17205 | PyObject * obj2 = 0 ; | |
17206 | char *kwnames[] = { | |
17207 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17208 | }; | |
17209 | ||
17210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfYear",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17212 | if (obj2) { | |
17213 | { | |
17214 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 17215 | temp3 = True; |
d14a1e28 RD |
17216 | } |
17217 | } | |
17218 | { | |
17219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17220 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17221 | |
17222 | wxPyEndAllowThreads(__tstate); | |
17223 | if (PyErr_Occurred()) SWIG_fail; | |
17224 | } | |
17225 | resultobj = PyInt_FromLong((long)result); | |
17226 | { | |
44127b65 | 17227 | if (temp3) delete arg3; |
d14a1e28 RD |
17228 | } |
17229 | return resultobj; | |
17230 | fail: | |
17231 | { | |
44127b65 | 17232 | if (temp3) delete arg3; |
d14a1e28 RD |
17233 | } |
17234 | return NULL; | |
17235 | } | |
17236 | ||
17237 | ||
17238 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17239 | PyObject *resultobj; | |
17240 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17241 | int arg2 = (int) wxDateTime::Monday_First ; | |
17242 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17243 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
17244 | int result; |
17245 | bool temp3 = False ; | |
d14a1e28 RD |
17246 | PyObject * obj0 = 0 ; |
17247 | PyObject * obj2 = 0 ; | |
17248 | char *kwnames[] = { | |
17249 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17250 | }; | |
17251 | ||
17252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfMonth",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17254 | if (obj2) { | |
17255 | { | |
17256 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 17257 | temp3 = True; |
d14a1e28 RD |
17258 | } |
17259 | } | |
17260 | { | |
17261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17262 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17263 | |
17264 | wxPyEndAllowThreads(__tstate); | |
17265 | if (PyErr_Occurred()) SWIG_fail; | |
17266 | } | |
17267 | resultobj = PyInt_FromLong((long)result); | |
17268 | { | |
44127b65 | 17269 | if (temp3) delete arg3; |
d14a1e28 RD |
17270 | } |
17271 | return resultobj; | |
17272 | fail: | |
17273 | { | |
44127b65 | 17274 | if (temp3) delete arg3; |
d14a1e28 RD |
17275 | } |
17276 | return NULL; | |
17277 | } | |
17278 | ||
17279 | ||
17280 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17281 | PyObject *resultobj; | |
17282 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17283 | int arg2 = (int) wxDateTime::Country_Default ; | |
17284 | bool result; | |
17285 | PyObject * obj0 = 0 ; | |
17286 | char *kwnames[] = { | |
17287 | (char *) "self",(char *) "country", NULL | |
17288 | }; | |
17289 | ||
17290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsWorkDay",kwnames,&obj0,&arg2)) goto fail; | |
17291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17292 | { | |
17293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17294 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
17295 | ||
17296 | wxPyEndAllowThreads(__tstate); | |
17297 | if (PyErr_Occurred()) SWIG_fail; | |
17298 | } | |
17299 | resultobj = PyInt_FromLong((long)result); | |
17300 | return resultobj; | |
17301 | fail: | |
17302 | return NULL; | |
17303 | } | |
17304 | ||
17305 | ||
17306 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17307 | PyObject *resultobj; | |
17308 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17309 | wxDateTime *arg2 = 0 ; | |
17310 | bool result; | |
17311 | PyObject * obj0 = 0 ; | |
17312 | PyObject * obj1 = 0 ; | |
17313 | char *kwnames[] = { | |
17314 | (char *) "self",(char *) "datetime", NULL | |
17315 | }; | |
17316 | ||
17317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
17318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17319 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17320 | if (arg2 == NULL) { | |
17321 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17322 | } | |
17323 | { | |
17324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17325 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
17326 | ||
17327 | wxPyEndAllowThreads(__tstate); | |
17328 | if (PyErr_Occurred()) SWIG_fail; | |
17329 | } | |
17330 | resultobj = PyInt_FromLong((long)result); | |
17331 | return resultobj; | |
17332 | fail: | |
17333 | return NULL; | |
17334 | } | |
17335 | ||
17336 | ||
17337 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17338 | PyObject *resultobj; | |
17339 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17340 | wxDateTime *arg2 = 0 ; | |
17341 | bool result; | |
17342 | PyObject * obj0 = 0 ; | |
17343 | PyObject * obj1 = 0 ; | |
17344 | char *kwnames[] = { | |
17345 | (char *) "self",(char *) "datetime", NULL | |
17346 | }; | |
17347 | ||
17348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
17349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17350 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17351 | if (arg2 == NULL) { | |
17352 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17353 | } | |
17354 | { | |
17355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17356 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
17357 | ||
17358 | wxPyEndAllowThreads(__tstate); | |
17359 | if (PyErr_Occurred()) SWIG_fail; | |
17360 | } | |
17361 | resultobj = PyInt_FromLong((long)result); | |
17362 | return resultobj; | |
17363 | fail: | |
17364 | return NULL; | |
17365 | } | |
17366 | ||
17367 | ||
17368 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17369 | PyObject *resultobj; | |
17370 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17371 | wxDateTime *arg2 = 0 ; | |
17372 | bool result; | |
17373 | PyObject * obj0 = 0 ; | |
17374 | PyObject * obj1 = 0 ; | |
17375 | char *kwnames[] = { | |
17376 | (char *) "self",(char *) "datetime", NULL | |
17377 | }; | |
17378 | ||
17379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
17380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17381 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17382 | if (arg2 == NULL) { | |
17383 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17384 | } | |
17385 | { | |
17386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17387 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
17388 | ||
17389 | wxPyEndAllowThreads(__tstate); | |
17390 | if (PyErr_Occurred()) SWIG_fail; | |
17391 | } | |
17392 | resultobj = PyInt_FromLong((long)result); | |
17393 | return resultobj; | |
17394 | fail: | |
17395 | return NULL; | |
17396 | } | |
17397 | ||
17398 | ||
17399 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17400 | PyObject *resultobj; | |
17401 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17402 | wxDateTime *arg2 = 0 ; | |
17403 | wxDateTime *arg3 = 0 ; | |
17404 | bool result; | |
17405 | PyObject * obj0 = 0 ; | |
17406 | PyObject * obj1 = 0 ; | |
17407 | PyObject * obj2 = 0 ; | |
17408 | char *kwnames[] = { | |
17409 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17410 | }; | |
17411 | ||
17412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17414 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17415 | if (arg2 == NULL) { | |
17416 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17417 | } | |
17418 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17419 | if (arg3 == NULL) { | |
17420 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17421 | } | |
17422 | { | |
17423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17424 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17425 | ||
17426 | wxPyEndAllowThreads(__tstate); | |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
17428 | } | |
17429 | resultobj = PyInt_FromLong((long)result); | |
17430 | return resultobj; | |
17431 | fail: | |
17432 | return NULL; | |
17433 | } | |
17434 | ||
17435 | ||
17436 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17437 | PyObject *resultobj; | |
17438 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17439 | wxDateTime *arg2 = 0 ; | |
17440 | wxDateTime *arg3 = 0 ; | |
17441 | bool result; | |
17442 | PyObject * obj0 = 0 ; | |
17443 | PyObject * obj1 = 0 ; | |
17444 | PyObject * obj2 = 0 ; | |
17445 | char *kwnames[] = { | |
17446 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17447 | }; | |
17448 | ||
17449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17451 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17452 | if (arg2 == NULL) { | |
17453 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17454 | } | |
17455 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17456 | if (arg3 == NULL) { | |
17457 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17458 | } | |
17459 | { | |
17460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17461 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17462 | ||
17463 | wxPyEndAllowThreads(__tstate); | |
17464 | if (PyErr_Occurred()) SWIG_fail; | |
17465 | } | |
17466 | resultobj = PyInt_FromLong((long)result); | |
17467 | return resultobj; | |
17468 | fail: | |
17469 | return NULL; | |
17470 | } | |
17471 | ||
17472 | ||
17473 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17474 | PyObject *resultobj; | |
17475 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17476 | wxDateTime *arg2 = 0 ; | |
17477 | bool result; | |
17478 | PyObject * obj0 = 0 ; | |
17479 | PyObject * obj1 = 0 ; | |
17480 | char *kwnames[] = { | |
17481 | (char *) "self",(char *) "dt", NULL | |
17482 | }; | |
17483 | ||
17484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
17485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17486 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17487 | if (arg2 == NULL) { | |
17488 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17489 | } | |
17490 | { | |
17491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17492 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
17493 | ||
17494 | wxPyEndAllowThreads(__tstate); | |
17495 | if (PyErr_Occurred()) SWIG_fail; | |
17496 | } | |
17497 | resultobj = PyInt_FromLong((long)result); | |
17498 | return resultobj; | |
17499 | fail: | |
17500 | return NULL; | |
17501 | } | |
17502 | ||
17503 | ||
17504 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17505 | PyObject *resultobj; | |
17506 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17507 | wxDateTime *arg2 = 0 ; | |
17508 | bool result; | |
17509 | PyObject * obj0 = 0 ; | |
17510 | PyObject * obj1 = 0 ; | |
17511 | char *kwnames[] = { | |
17512 | (char *) "self",(char *) "dt", NULL | |
17513 | }; | |
17514 | ||
17515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
17516 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17517 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17518 | if (arg2 == NULL) { | |
17519 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17520 | } | |
17521 | { | |
17522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17523 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
17524 | ||
17525 | wxPyEndAllowThreads(__tstate); | |
17526 | if (PyErr_Occurred()) SWIG_fail; | |
17527 | } | |
17528 | resultobj = PyInt_FromLong((long)result); | |
17529 | return resultobj; | |
17530 | fail: | |
17531 | return NULL; | |
17532 | } | |
17533 | ||
17534 | ||
17535 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17536 | PyObject *resultobj; | |
17537 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17538 | wxDateTime *arg2 = 0 ; | |
17539 | wxTimeSpan *arg3 = 0 ; | |
17540 | bool result; | |
17541 | PyObject * obj0 = 0 ; | |
17542 | PyObject * obj1 = 0 ; | |
17543 | PyObject * obj2 = 0 ; | |
17544 | char *kwnames[] = { | |
17545 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
17546 | }; | |
17547 | ||
17548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17550 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17551 | if (arg2 == NULL) { | |
17552 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17553 | } | |
17554 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17555 | if (arg3 == NULL) { | |
17556 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17557 | } | |
17558 | { | |
17559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17560 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
17561 | ||
17562 | wxPyEndAllowThreads(__tstate); | |
17563 | if (PyErr_Occurred()) SWIG_fail; | |
17564 | } | |
17565 | resultobj = PyInt_FromLong((long)result); | |
17566 | return resultobj; | |
17567 | fail: | |
17568 | return NULL; | |
17569 | } | |
17570 | ||
17571 | ||
17572 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17573 | PyObject *resultobj; | |
17574 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17575 | wxTimeSpan *arg2 = 0 ; | |
17576 | wxDateTime *result; | |
17577 | PyObject * obj0 = 0 ; | |
17578 | PyObject * obj1 = 0 ; | |
17579 | char *kwnames[] = { | |
17580 | (char *) "self",(char *) "diff", NULL | |
17581 | }; | |
17582 | ||
17583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
17584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17585 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17586 | if (arg2 == NULL) { | |
17587 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17588 | } | |
17589 | { | |
17590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17591 | { | |
17592 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
17593 | result = (wxDateTime *) &_result_ref; | |
17594 | } | |
17595 | ||
17596 | wxPyEndAllowThreads(__tstate); | |
17597 | if (PyErr_Occurred()) SWIG_fail; | |
17598 | } | |
17599 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17600 | return resultobj; | |
17601 | fail: | |
17602 | return NULL; | |
17603 | } | |
17604 | ||
17605 | ||
17606 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17607 | PyObject *resultobj; | |
17608 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17609 | wxDateSpan *arg2 = 0 ; | |
17610 | wxDateTime *result; | |
17611 | PyObject * obj0 = 0 ; | |
17612 | PyObject * obj1 = 0 ; | |
17613 | char *kwnames[] = { | |
17614 | (char *) "self",(char *) "diff", NULL | |
17615 | }; | |
17616 | ||
17617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
17618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17619 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17620 | if (arg2 == NULL) { | |
17621 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17622 | } | |
17623 | { | |
17624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17625 | { | |
17626 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
17627 | result = (wxDateTime *) &_result_ref; | |
17628 | } | |
17629 | ||
17630 | wxPyEndAllowThreads(__tstate); | |
17631 | if (PyErr_Occurred()) SWIG_fail; | |
17632 | } | |
17633 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17634 | return resultobj; | |
17635 | fail: | |
17636 | return NULL; | |
17637 | } | |
17638 | ||
17639 | ||
17640 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17641 | PyObject *resultobj; | |
17642 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17643 | wxTimeSpan *arg2 = 0 ; | |
17644 | wxDateTime *result; | |
17645 | PyObject * obj0 = 0 ; | |
17646 | PyObject * obj1 = 0 ; | |
17647 | char *kwnames[] = { | |
17648 | (char *) "self",(char *) "diff", NULL | |
17649 | }; | |
17650 | ||
17651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
17652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17653 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17654 | if (arg2 == NULL) { | |
17655 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17656 | } | |
17657 | { | |
17658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17659 | { | |
17660 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
17661 | result = (wxDateTime *) &_result_ref; | |
17662 | } | |
17663 | ||
17664 | wxPyEndAllowThreads(__tstate); | |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
17666 | } | |
17667 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | return NULL; | |
17671 | } | |
17672 | ||
17673 | ||
17674 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17675 | PyObject *resultobj; | |
17676 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17677 | wxDateSpan *arg2 = 0 ; | |
17678 | wxDateTime *result; | |
17679 | PyObject * obj0 = 0 ; | |
17680 | PyObject * obj1 = 0 ; | |
17681 | char *kwnames[] = { | |
17682 | (char *) "self",(char *) "diff", NULL | |
17683 | }; | |
17684 | ||
17685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
17686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17687 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17688 | if (arg2 == NULL) { | |
17689 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17690 | } | |
17691 | { | |
17692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17693 | { | |
17694 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
17695 | result = (wxDateTime *) &_result_ref; | |
17696 | } | |
17697 | ||
17698 | wxPyEndAllowThreads(__tstate); | |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
17700 | } | |
17701 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17702 | return resultobj; | |
17703 | fail: | |
17704 | return NULL; | |
17705 | } | |
17706 | ||
17707 | ||
17708 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17709 | PyObject *resultobj; | |
17710 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17711 | wxDateTime *arg2 = 0 ; | |
17712 | wxTimeSpan result; | |
17713 | PyObject * obj0 = 0 ; | |
17714 | PyObject * obj1 = 0 ; | |
17715 | char *kwnames[] = { | |
17716 | (char *) "self",(char *) "dt", NULL | |
17717 | }; | |
17718 | ||
17719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
17720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17721 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17722 | if (arg2 == NULL) { | |
17723 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17724 | } | |
17725 | { | |
17726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17727 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
17728 | ||
17729 | wxPyEndAllowThreads(__tstate); | |
17730 | if (PyErr_Occurred()) SWIG_fail; | |
17731 | } | |
17732 | { | |
17733 | wxTimeSpan * resultptr; | |
17734 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
17735 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
17736 | } | |
17737 | return resultobj; | |
17738 | fail: | |
17739 | return NULL; | |
17740 | } | |
17741 | ||
17742 | ||
17743 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
17744 | PyObject *resultobj; | |
17745 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17746 | wxTimeSpan *arg2 = 0 ; | |
17747 | wxDateTime *result; | |
17748 | PyObject * obj0 = 0 ; | |
17749 | PyObject * obj1 = 0 ; | |
17750 | ||
17751 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
17752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17753 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17754 | if (arg2 == NULL) { | |
17755 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17756 | } | |
17757 | { | |
17758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17759 | { | |
17760 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
17761 | result = (wxDateTime *) &_result_ref; | |
17762 | } | |
17763 | ||
17764 | wxPyEndAllowThreads(__tstate); | |
17765 | if (PyErr_Occurred()) SWIG_fail; | |
17766 | } | |
17767 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17768 | return resultobj; | |
17769 | fail: | |
17770 | return NULL; | |
17771 | } | |
17772 | ||
17773 | ||
17774 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
17775 | PyObject *resultobj; | |
17776 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17777 | wxDateSpan *arg2 = 0 ; | |
17778 | wxDateTime *result; | |
17779 | PyObject * obj0 = 0 ; | |
17780 | PyObject * obj1 = 0 ; | |
17781 | ||
17782 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
17783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17784 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17785 | if (arg2 == NULL) { | |
17786 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17787 | } | |
17788 | { | |
17789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17790 | { | |
17791 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
17792 | result = (wxDateTime *) &_result_ref; | |
17793 | } | |
17794 | ||
17795 | wxPyEndAllowThreads(__tstate); | |
17796 | if (PyErr_Occurred()) SWIG_fail; | |
17797 | } | |
17798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17799 | return resultobj; | |
17800 | fail: | |
17801 | return NULL; | |
17802 | } | |
17803 | ||
17804 | ||
17805 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
17806 | int argc; | |
17807 | PyObject *argv[3]; | |
17808 | int ii; | |
17809 | ||
17810 | argc = PyObject_Length(args); | |
17811 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
17812 | argv[ii] = PyTuple_GetItem(args,ii); | |
17813 | } | |
17814 | if (argc == 2) { | |
17815 | int _v; | |
17816 | { | |
17817 | void *ptr; | |
17818 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
17819 | _v = 0; | |
17820 | PyErr_Clear(); | |
17821 | } else { | |
17822 | _v = 1; | |
17823 | } | |
17824 | } | |
17825 | if (_v) { | |
17826 | { | |
17827 | void *ptr; | |
17828 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
17829 | _v = 0; | |
17830 | PyErr_Clear(); | |
17831 | } else { | |
17832 | _v = 1; | |
17833 | } | |
17834 | } | |
17835 | if (_v) { | |
17836 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
17837 | } | |
17838 | } | |
17839 | } | |
17840 | if (argc == 2) { | |
17841 | int _v; | |
17842 | { | |
17843 | void *ptr; | |
17844 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
17845 | _v = 0; | |
17846 | PyErr_Clear(); | |
17847 | } else { | |
17848 | _v = 1; | |
17849 | } | |
17850 | } | |
17851 | if (_v) { | |
17852 | { | |
17853 | void *ptr; | |
17854 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
17855 | _v = 0; | |
17856 | PyErr_Clear(); | |
17857 | } else { | |
17858 | _v = 1; | |
17859 | } | |
17860 | } | |
17861 | if (_v) { | |
17862 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
17863 | } | |
17864 | } | |
17865 | } | |
17866 | ||
17867 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
17868 | return NULL; | |
17869 | } | |
17870 | ||
17871 | ||
17872 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
17873 | PyObject *resultobj; | |
17874 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17875 | wxTimeSpan *arg2 = 0 ; | |
17876 | wxDateTime *result; | |
17877 | PyObject * obj0 = 0 ; | |
17878 | PyObject * obj1 = 0 ; | |
17879 | ||
17880 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
17881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17882 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17883 | if (arg2 == NULL) { | |
17884 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17885 | } | |
17886 | { | |
17887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17888 | { | |
17889 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
17890 | result = (wxDateTime *) &_result_ref; | |
17891 | } | |
17892 | ||
17893 | wxPyEndAllowThreads(__tstate); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
17896 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17897 | return resultobj; | |
17898 | fail: | |
17899 | return NULL; | |
17900 | } | |
17901 | ||
17902 | ||
17903 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
17904 | PyObject *resultobj; | |
17905 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17906 | wxDateSpan *arg2 = 0 ; | |
17907 | wxDateTime *result; | |
17908 | PyObject * obj0 = 0 ; | |
17909 | PyObject * obj1 = 0 ; | |
17910 | ||
17911 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&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_wxDateSpan,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 -=((wxDateSpan 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 | ||
17934 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
17935 | int argc; | |
17936 | PyObject *argv[3]; | |
17937 | int ii; | |
17938 | ||
17939 | argc = PyObject_Length(args); | |
17940 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
17941 | argv[ii] = PyTuple_GetItem(args,ii); | |
17942 | } | |
17943 | if (argc == 2) { | |
17944 | int _v; | |
17945 | { | |
17946 | void *ptr; | |
17947 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
17948 | _v = 0; | |
17949 | PyErr_Clear(); | |
17950 | } else { | |
17951 | _v = 1; | |
17952 | } | |
17953 | } | |
17954 | if (_v) { | |
17955 | { | |
17956 | void *ptr; | |
17957 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
17958 | _v = 0; | |
17959 | PyErr_Clear(); | |
17960 | } else { | |
17961 | _v = 1; | |
17962 | } | |
17963 | } | |
17964 | if (_v) { | |
17965 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
17966 | } | |
17967 | } | |
17968 | } | |
17969 | if (argc == 2) { | |
17970 | int _v; | |
17971 | { | |
17972 | void *ptr; | |
17973 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
17974 | _v = 0; | |
17975 | PyErr_Clear(); | |
17976 | } else { | |
17977 | _v = 1; | |
17978 | } | |
17979 | } | |
17980 | if (_v) { | |
17981 | { | |
17982 | void *ptr; | |
17983 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
17984 | _v = 0; | |
17985 | PyErr_Clear(); | |
17986 | } else { | |
17987 | _v = 1; | |
17988 | } | |
17989 | } | |
17990 | if (_v) { | |
17991 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
17992 | } | |
17993 | } | |
17994 | } | |
17995 | ||
17996 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
17997 | return NULL; | |
17998 | } | |
17999 | ||
18000 | ||
18001 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
18002 | PyObject *resultobj; | |
18003 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18004 | wxTimeSpan *arg2 = 0 ; | |
18005 | wxDateTime result; | |
18006 | PyObject * obj0 = 0 ; | |
18007 | PyObject * obj1 = 0 ; | |
18008 | ||
18009 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18011 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18012 | if (arg2 == NULL) { | |
18013 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18014 | } | |
18015 | { | |
18016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18017 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
18018 | ||
18019 | wxPyEndAllowThreads(__tstate); | |
18020 | if (PyErr_Occurred()) SWIG_fail; | |
18021 | } | |
18022 | { | |
18023 | wxDateTime * resultptr; | |
18024 | resultptr = new wxDateTime((wxDateTime &) result); | |
18025 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18026 | } | |
18027 | return resultobj; | |
18028 | fail: | |
18029 | return NULL; | |
18030 | } | |
18031 | ||
18032 | ||
18033 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
18034 | PyObject *resultobj; | |
18035 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18036 | wxDateSpan *arg2 = 0 ; | |
18037 | wxDateTime result; | |
18038 | PyObject * obj0 = 0 ; | |
18039 | PyObject * obj1 = 0 ; | |
18040 | ||
18041 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18043 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18044 | if (arg2 == NULL) { | |
18045 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18046 | } | |
18047 | { | |
18048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18049 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
18050 | ||
18051 | wxPyEndAllowThreads(__tstate); | |
18052 | if (PyErr_Occurred()) SWIG_fail; | |
18053 | } | |
18054 | { | |
18055 | wxDateTime * resultptr; | |
18056 | resultptr = new wxDateTime((wxDateTime &) result); | |
18057 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18058 | } | |
18059 | return resultobj; | |
18060 | fail: | |
18061 | return NULL; | |
18062 | } | |
18063 | ||
18064 | ||
18065 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
18066 | int argc; | |
18067 | PyObject *argv[3]; | |
18068 | int ii; | |
18069 | ||
18070 | argc = PyObject_Length(args); | |
18071 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18072 | argv[ii] = PyTuple_GetItem(args,ii); | |
18073 | } | |
18074 | if (argc == 2) { | |
18075 | int _v; | |
18076 | { | |
18077 | void *ptr; | |
18078 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18079 | _v = 0; | |
18080 | PyErr_Clear(); | |
18081 | } else { | |
18082 | _v = 1; | |
18083 | } | |
18084 | } | |
18085 | if (_v) { | |
18086 | { | |
18087 | void *ptr; | |
18088 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18089 | _v = 0; | |
18090 | PyErr_Clear(); | |
18091 | } else { | |
18092 | _v = 1; | |
18093 | } | |
18094 | } | |
18095 | if (_v) { | |
18096 | return _wrap_DateTime___add____SWIG_0(self,args); | |
18097 | } | |
18098 | } | |
18099 | } | |
18100 | if (argc == 2) { | |
18101 | int _v; | |
18102 | { | |
18103 | void *ptr; | |
18104 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18105 | _v = 0; | |
18106 | PyErr_Clear(); | |
18107 | } else { | |
18108 | _v = 1; | |
18109 | } | |
18110 | } | |
18111 | if (_v) { | |
18112 | { | |
18113 | void *ptr; | |
18114 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18115 | _v = 0; | |
18116 | PyErr_Clear(); | |
18117 | } else { | |
18118 | _v = 1; | |
18119 | } | |
18120 | } | |
18121 | if (_v) { | |
18122 | return _wrap_DateTime___add____SWIG_1(self,args); | |
18123 | } | |
18124 | } | |
18125 | } | |
18126 | ||
18127 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
18128 | return NULL; | |
18129 | } | |
18130 | ||
18131 | ||
18132 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
18133 | PyObject *resultobj; | |
18134 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18135 | wxDateTime *arg2 = 0 ; | |
18136 | wxTimeSpan result; | |
18137 | PyObject * obj0 = 0 ; | |
18138 | PyObject * obj1 = 0 ; | |
18139 | ||
18140 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18142 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18143 | if (arg2 == NULL) { | |
18144 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18145 | } | |
18146 | { | |
18147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18148 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
18149 | ||
18150 | wxPyEndAllowThreads(__tstate); | |
18151 | if (PyErr_Occurred()) SWIG_fail; | |
18152 | } | |
18153 | { | |
18154 | wxTimeSpan * resultptr; | |
18155 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18156 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18157 | } | |
18158 | return resultobj; | |
18159 | fail: | |
18160 | return NULL; | |
18161 | } | |
18162 | ||
18163 | ||
18164 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
18165 | PyObject *resultobj; | |
18166 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18167 | wxTimeSpan *arg2 = 0 ; | |
18168 | wxDateTime result; | |
18169 | PyObject * obj0 = 0 ; | |
18170 | PyObject * obj1 = 0 ; | |
18171 | ||
18172 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18174 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18175 | if (arg2 == NULL) { | |
18176 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18177 | } | |
18178 | { | |
18179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18180 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
18181 | ||
18182 | wxPyEndAllowThreads(__tstate); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | { | |
18186 | wxDateTime * resultptr; | |
18187 | resultptr = new wxDateTime((wxDateTime &) result); | |
18188 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18189 | } | |
18190 | return resultobj; | |
18191 | fail: | |
18192 | return NULL; | |
18193 | } | |
18194 | ||
18195 | ||
18196 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
18197 | PyObject *resultobj; | |
18198 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18199 | wxDateSpan *arg2 = 0 ; | |
18200 | wxDateTime result; | |
18201 | PyObject * obj0 = 0 ; | |
18202 | PyObject * obj1 = 0 ; | |
18203 | ||
18204 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18206 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18207 | if (arg2 == NULL) { | |
18208 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18209 | } | |
18210 | { | |
18211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18212 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
18213 | ||
18214 | wxPyEndAllowThreads(__tstate); | |
18215 | if (PyErr_Occurred()) SWIG_fail; | |
18216 | } | |
18217 | { | |
18218 | wxDateTime * resultptr; | |
18219 | resultptr = new wxDateTime((wxDateTime &) result); | |
18220 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18221 | } | |
18222 | return resultobj; | |
18223 | fail: | |
18224 | return NULL; | |
18225 | } | |
18226 | ||
18227 | ||
18228 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
18229 | int argc; | |
18230 | PyObject *argv[3]; | |
18231 | int ii; | |
18232 | ||
18233 | argc = PyObject_Length(args); | |
18234 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18235 | argv[ii] = PyTuple_GetItem(args,ii); | |
18236 | } | |
18237 | if (argc == 2) { | |
18238 | int _v; | |
18239 | { | |
18240 | void *ptr; | |
18241 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18242 | _v = 0; | |
18243 | PyErr_Clear(); | |
18244 | } else { | |
18245 | _v = 1; | |
18246 | } | |
18247 | } | |
18248 | if (_v) { | |
18249 | { | |
18250 | void *ptr; | |
18251 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18252 | _v = 0; | |
18253 | PyErr_Clear(); | |
18254 | } else { | |
18255 | _v = 1; | |
18256 | } | |
18257 | } | |
18258 | if (_v) { | |
18259 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
18260 | } | |
18261 | } | |
18262 | } | |
18263 | if (argc == 2) { | |
18264 | int _v; | |
18265 | { | |
18266 | void *ptr; | |
18267 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18268 | _v = 0; | |
18269 | PyErr_Clear(); | |
18270 | } else { | |
18271 | _v = 1; | |
18272 | } | |
18273 | } | |
18274 | if (_v) { | |
18275 | { | |
18276 | void *ptr; | |
18277 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18278 | _v = 0; | |
18279 | PyErr_Clear(); | |
18280 | } else { | |
18281 | _v = 1; | |
18282 | } | |
18283 | } | |
18284 | if (_v) { | |
18285 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
18286 | } | |
18287 | } | |
18288 | } | |
18289 | if (argc == 2) { | |
18290 | int _v; | |
18291 | { | |
18292 | void *ptr; | |
18293 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18294 | _v = 0; | |
18295 | PyErr_Clear(); | |
18296 | } else { | |
18297 | _v = 1; | |
18298 | } | |
18299 | } | |
18300 | if (_v) { | |
18301 | { | |
18302 | void *ptr; | |
18303 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18304 | _v = 0; | |
18305 | PyErr_Clear(); | |
18306 | } else { | |
18307 | _v = 1; | |
18308 | } | |
18309 | } | |
18310 | if (_v) { | |
18311 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
18312 | } | |
18313 | } | |
18314 | } | |
18315 | ||
18316 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
18317 | return NULL; | |
18318 | } | |
18319 | ||
18320 | ||
18321 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
18322 | PyObject *resultobj; | |
18323 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18324 | wxDateTime *arg2 = 0 ; | |
18325 | bool result; | |
18326 | PyObject * obj0 = 0 ; | |
18327 | PyObject * obj1 = 0 ; | |
18328 | ||
18329 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
18330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18331 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18332 | if (arg2 == NULL) { | |
18333 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18334 | } | |
18335 | { | |
18336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18337 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
18338 | ||
18339 | wxPyEndAllowThreads(__tstate); | |
18340 | if (PyErr_Occurred()) SWIG_fail; | |
18341 | } | |
18342 | resultobj = PyInt_FromLong((long)result); | |
18343 | return resultobj; | |
18344 | fail: | |
18345 | return NULL; | |
18346 | } | |
18347 | ||
18348 | ||
18349 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
18350 | PyObject *resultobj; | |
18351 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18352 | wxDateTime *arg2 = 0 ; | |
18353 | bool result; | |
18354 | PyObject * obj0 = 0 ; | |
18355 | PyObject * obj1 = 0 ; | |
18356 | ||
18357 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
18358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18359 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18360 | if (arg2 == NULL) { | |
18361 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18362 | } | |
18363 | { | |
18364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18365 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
18366 | ||
18367 | wxPyEndAllowThreads(__tstate); | |
18368 | if (PyErr_Occurred()) SWIG_fail; | |
18369 | } | |
18370 | resultobj = PyInt_FromLong((long)result); | |
18371 | return resultobj; | |
18372 | fail: | |
18373 | return NULL; | |
18374 | } | |
18375 | ||
18376 | ||
18377 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
18378 | PyObject *resultobj; | |
18379 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18380 | wxDateTime *arg2 = 0 ; | |
18381 | bool result; | |
18382 | PyObject * obj0 = 0 ; | |
18383 | PyObject * obj1 = 0 ; | |
18384 | ||
18385 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
18386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18387 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18388 | if (arg2 == NULL) { | |
18389 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18390 | } | |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
18394 | ||
18395 | wxPyEndAllowThreads(__tstate); | |
18396 | if (PyErr_Occurred()) SWIG_fail; | |
18397 | } | |
18398 | resultobj = PyInt_FromLong((long)result); | |
18399 | return resultobj; | |
18400 | fail: | |
18401 | return NULL; | |
18402 | } | |
18403 | ||
18404 | ||
18405 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
18406 | PyObject *resultobj; | |
18407 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18408 | wxDateTime *arg2 = 0 ; | |
18409 | bool result; | |
18410 | PyObject * obj0 = 0 ; | |
18411 | PyObject * obj1 = 0 ; | |
18412 | ||
18413 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
18414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18415 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18416 | if (arg2 == NULL) { | |
18417 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18418 | } | |
18419 | { | |
18420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18421 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
18422 | ||
18423 | wxPyEndAllowThreads(__tstate); | |
18424 | if (PyErr_Occurred()) SWIG_fail; | |
18425 | } | |
18426 | resultobj = PyInt_FromLong((long)result); | |
18427 | return resultobj; | |
18428 | fail: | |
18429 | return NULL; | |
18430 | } | |
18431 | ||
18432 | ||
18433 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
18434 | PyObject *resultobj; | |
18435 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18436 | wxDateTime *arg2 = 0 ; | |
18437 | bool result; | |
18438 | PyObject * obj0 = 0 ; | |
18439 | PyObject * obj1 = 0 ; | |
18440 | ||
18441 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
18442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18443 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18444 | if (arg2 == NULL) { | |
18445 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18446 | } | |
18447 | { | |
18448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18449 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
18450 | ||
18451 | wxPyEndAllowThreads(__tstate); | |
18452 | if (PyErr_Occurred()) SWIG_fail; | |
18453 | } | |
18454 | resultobj = PyInt_FromLong((long)result); | |
18455 | return resultobj; | |
18456 | fail: | |
18457 | return NULL; | |
18458 | } | |
18459 | ||
18460 | ||
18461 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
18462 | PyObject *resultobj; | |
18463 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18464 | wxDateTime *arg2 = 0 ; | |
18465 | bool result; | |
18466 | PyObject * obj0 = 0 ; | |
18467 | PyObject * obj1 = 0 ; | |
18468 | ||
18469 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
18470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18471 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18472 | if (arg2 == NULL) { | |
18473 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18474 | } | |
18475 | { | |
18476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18477 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
18478 | ||
18479 | wxPyEndAllowThreads(__tstate); | |
18480 | if (PyErr_Occurred()) SWIG_fail; | |
18481 | } | |
18482 | resultobj = PyInt_FromLong((long)result); | |
18483 | return resultobj; | |
18484 | fail: | |
18485 | return NULL; | |
18486 | } | |
18487 | ||
18488 | ||
18489 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18490 | PyObject *resultobj; | |
18491 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18492 | wxString *arg2 = 0 ; | |
18493 | int result; | |
423f194a | 18494 | bool temp2 = False ; |
d14a1e28 RD |
18495 | PyObject * obj0 = 0 ; |
18496 | PyObject * obj1 = 0 ; | |
18497 | char *kwnames[] = { | |
18498 | (char *) "self",(char *) "date", NULL | |
18499 | }; | |
18500 | ||
18501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
18502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18503 | { | |
18504 | arg2 = wxString_in_helper(obj1); | |
18505 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18506 | temp2 = True; |
d14a1e28 RD |
18507 | } |
18508 | { | |
18509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18510 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
18511 | ||
18512 | wxPyEndAllowThreads(__tstate); | |
18513 | if (PyErr_Occurred()) SWIG_fail; | |
18514 | } | |
18515 | resultobj = PyInt_FromLong((long)result); | |
18516 | { | |
18517 | if (temp2) | |
18518 | delete arg2; | |
18519 | } | |
18520 | return resultobj; | |
18521 | fail: | |
18522 | { | |
18523 | if (temp2) | |
18524 | delete arg2; | |
18525 | } | |
18526 | return NULL; | |
18527 | } | |
18528 | ||
18529 | ||
18530 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18531 | PyObject *resultobj; | |
18532 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18533 | wxString *arg2 = 0 ; | |
18534 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
18535 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18536 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
18537 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
18538 | int result; | |
423f194a RD |
18539 | bool temp2 = False ; |
18540 | bool temp3 = False ; | |
d14a1e28 RD |
18541 | PyObject * obj0 = 0 ; |
18542 | PyObject * obj1 = 0 ; | |
18543 | PyObject * obj2 = 0 ; | |
18544 | PyObject * obj3 = 0 ; | |
18545 | char *kwnames[] = { | |
18546 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
18547 | }; | |
18548 | ||
18549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18551 | { | |
18552 | arg2 = wxString_in_helper(obj1); | |
18553 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18554 | temp2 = True; |
d14a1e28 RD |
18555 | } |
18556 | if (obj2) { | |
18557 | { | |
18558 | arg3 = wxString_in_helper(obj2); | |
18559 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 18560 | temp3 = True; |
d14a1e28 RD |
18561 | } |
18562 | } | |
18563 | if (obj3) { | |
18564 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18565 | if (arg4 == NULL) { | |
18566 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18567 | } | |
18568 | } | |
18569 | { | |
18570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18571 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
18572 | ||
18573 | wxPyEndAllowThreads(__tstate); | |
18574 | if (PyErr_Occurred()) SWIG_fail; | |
18575 | } | |
18576 | resultobj = PyInt_FromLong((long)result); | |
18577 | { | |
18578 | if (temp2) | |
18579 | delete arg2; | |
18580 | } | |
18581 | { | |
18582 | if (temp3) | |
18583 | delete arg3; | |
18584 | } | |
18585 | return resultobj; | |
18586 | fail: | |
18587 | { | |
18588 | if (temp2) | |
18589 | delete arg2; | |
18590 | } | |
18591 | { | |
18592 | if (temp3) | |
18593 | delete arg3; | |
18594 | } | |
18595 | return NULL; | |
18596 | } | |
18597 | ||
18598 | ||
18599 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18600 | PyObject *resultobj; | |
18601 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18602 | wxString *arg2 = 0 ; | |
18603 | int result; | |
423f194a | 18604 | bool temp2 = False ; |
d14a1e28 RD |
18605 | PyObject * obj0 = 0 ; |
18606 | PyObject * obj1 = 0 ; | |
18607 | char *kwnames[] = { | |
18608 | (char *) "self",(char *) "datetime", NULL | |
18609 | }; | |
18610 | ||
18611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
18612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18613 | { | |
18614 | arg2 = wxString_in_helper(obj1); | |
18615 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18616 | temp2 = True; |
d14a1e28 RD |
18617 | } |
18618 | { | |
18619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18620 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
18621 | ||
18622 | wxPyEndAllowThreads(__tstate); | |
18623 | if (PyErr_Occurred()) SWIG_fail; | |
18624 | } | |
18625 | resultobj = PyInt_FromLong((long)result); | |
18626 | { | |
18627 | if (temp2) | |
18628 | delete arg2; | |
18629 | } | |
18630 | return resultobj; | |
18631 | fail: | |
18632 | { | |
18633 | if (temp2) | |
18634 | delete arg2; | |
18635 | } | |
18636 | return NULL; | |
18637 | } | |
18638 | ||
18639 | ||
18640 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18641 | PyObject *resultobj; | |
18642 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18643 | wxString *arg2 = 0 ; | |
18644 | int result; | |
423f194a | 18645 | bool temp2 = False ; |
d14a1e28 RD |
18646 | PyObject * obj0 = 0 ; |
18647 | PyObject * obj1 = 0 ; | |
18648 | char *kwnames[] = { | |
18649 | (char *) "self",(char *) "date", NULL | |
18650 | }; | |
18651 | ||
18652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
18653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18654 | { | |
18655 | arg2 = wxString_in_helper(obj1); | |
18656 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18657 | temp2 = True; |
d14a1e28 RD |
18658 | } |
18659 | { | |
18660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18661 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
18662 | ||
18663 | wxPyEndAllowThreads(__tstate); | |
18664 | if (PyErr_Occurred()) SWIG_fail; | |
18665 | } | |
18666 | resultobj = PyInt_FromLong((long)result); | |
18667 | { | |
18668 | if (temp2) | |
18669 | delete arg2; | |
18670 | } | |
18671 | return resultobj; | |
18672 | fail: | |
18673 | { | |
18674 | if (temp2) | |
18675 | delete arg2; | |
18676 | } | |
18677 | return NULL; | |
18678 | } | |
18679 | ||
18680 | ||
18681 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18682 | PyObject *resultobj; | |
18683 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18684 | wxString *arg2 = 0 ; | |
18685 | int result; | |
423f194a | 18686 | bool temp2 = False ; |
d14a1e28 RD |
18687 | PyObject * obj0 = 0 ; |
18688 | PyObject * obj1 = 0 ; | |
18689 | char *kwnames[] = { | |
18690 | (char *) "self",(char *) "time", NULL | |
18691 | }; | |
18692 | ||
18693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
18694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18695 | { | |
18696 | arg2 = wxString_in_helper(obj1); | |
18697 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18698 | temp2 = True; |
d14a1e28 RD |
18699 | } |
18700 | { | |
18701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18702 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
18703 | ||
18704 | wxPyEndAllowThreads(__tstate); | |
18705 | if (PyErr_Occurred()) SWIG_fail; | |
18706 | } | |
18707 | resultobj = PyInt_FromLong((long)result); | |
18708 | { | |
18709 | if (temp2) | |
18710 | delete arg2; | |
18711 | } | |
18712 | return resultobj; | |
18713 | fail: | |
18714 | { | |
18715 | if (temp2) | |
18716 | delete arg2; | |
18717 | } | |
18718 | return NULL; | |
18719 | } | |
18720 | ||
18721 | ||
18722 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18723 | PyObject *resultobj; | |
18724 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18725 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
18726 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
18727 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
18728 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
18729 | wxString result; | |
423f194a | 18730 | bool temp2 = False ; |
44127b65 | 18731 | bool temp3 = False ; |
d14a1e28 RD |
18732 | PyObject * obj0 = 0 ; |
18733 | PyObject * obj1 = 0 ; | |
18734 | PyObject * obj2 = 0 ; | |
18735 | char *kwnames[] = { | |
18736 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
18737 | }; | |
18738 | ||
18739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18741 | if (obj1) { | |
18742 | { | |
18743 | arg2 = wxString_in_helper(obj1); | |
18744 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18745 | temp2 = True; |
d14a1e28 RD |
18746 | } |
18747 | } | |
18748 | if (obj2) { | |
18749 | { | |
18750 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 18751 | temp3 = True; |
d14a1e28 RD |
18752 | } |
18753 | } | |
18754 | { | |
18755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18756 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
18757 | ||
18758 | wxPyEndAllowThreads(__tstate); | |
18759 | if (PyErr_Occurred()) SWIG_fail; | |
18760 | } | |
18761 | { | |
18762 | #if wxUSE_UNICODE | |
18763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18764 | #else | |
18765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18766 | #endif | |
18767 | } | |
18768 | { | |
18769 | if (temp2) | |
18770 | delete arg2; | |
18771 | } | |
18772 | { | |
44127b65 | 18773 | if (temp3) delete arg3; |
d14a1e28 RD |
18774 | } |
18775 | return resultobj; | |
18776 | fail: | |
18777 | { | |
18778 | if (temp2) | |
18779 | delete arg2; | |
18780 | } | |
18781 | { | |
44127b65 | 18782 | if (temp3) delete arg3; |
d14a1e28 RD |
18783 | } |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
18788 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18789 | PyObject *resultobj; | |
18790 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18791 | wxString result; | |
18792 | PyObject * obj0 = 0 ; | |
18793 | char *kwnames[] = { | |
18794 | (char *) "self", NULL | |
18795 | }; | |
18796 | ||
18797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
18798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18799 | { | |
18800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18801 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
18802 | ||
18803 | wxPyEndAllowThreads(__tstate); | |
18804 | if (PyErr_Occurred()) SWIG_fail; | |
18805 | } | |
18806 | { | |
18807 | #if wxUSE_UNICODE | |
18808 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18809 | #else | |
18810 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18811 | #endif | |
18812 | } | |
18813 | return resultobj; | |
18814 | fail: | |
18815 | return NULL; | |
18816 | } | |
18817 | ||
18818 | ||
18819 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18820 | PyObject *resultobj; | |
18821 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18822 | wxString result; | |
18823 | PyObject * obj0 = 0 ; | |
18824 | char *kwnames[] = { | |
18825 | (char *) "self", NULL | |
18826 | }; | |
18827 | ||
18828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
18829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18830 | { | |
18831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18832 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
18833 | ||
18834 | wxPyEndAllowThreads(__tstate); | |
18835 | if (PyErr_Occurred()) SWIG_fail; | |
18836 | } | |
18837 | { | |
18838 | #if wxUSE_UNICODE | |
18839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18840 | #else | |
18841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18842 | #endif | |
18843 | } | |
18844 | return resultobj; | |
18845 | fail: | |
18846 | return NULL; | |
18847 | } | |
18848 | ||
18849 | ||
18850 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18851 | PyObject *resultobj; | |
18852 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18853 | wxString result; | |
18854 | PyObject * obj0 = 0 ; | |
18855 | char *kwnames[] = { | |
18856 | (char *) "self", NULL | |
18857 | }; | |
18858 | ||
18859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
18860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18861 | { | |
18862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18863 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
18864 | ||
18865 | wxPyEndAllowThreads(__tstate); | |
18866 | if (PyErr_Occurred()) SWIG_fail; | |
18867 | } | |
18868 | { | |
18869 | #if wxUSE_UNICODE | |
18870 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18871 | #else | |
18872 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18873 | #endif | |
18874 | } | |
18875 | return resultobj; | |
18876 | fail: | |
18877 | return NULL; | |
18878 | } | |
18879 | ||
18880 | ||
18881 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18882 | PyObject *resultobj; | |
18883 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18884 | wxString result; | |
18885 | PyObject * obj0 = 0 ; | |
18886 | char *kwnames[] = { | |
18887 | (char *) "self", NULL | |
18888 | }; | |
18889 | ||
18890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
18891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18892 | { | |
18893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18894 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
18895 | ||
18896 | wxPyEndAllowThreads(__tstate); | |
18897 | if (PyErr_Occurred()) SWIG_fail; | |
18898 | } | |
18899 | { | |
18900 | #if wxUSE_UNICODE | |
18901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18902 | #else | |
18903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18904 | #endif | |
18905 | } | |
18906 | return resultobj; | |
18907 | fail: | |
18908 | return NULL; | |
18909 | } | |
18910 | ||
18911 | ||
18912 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
18913 | PyObject *obj; | |
18914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18915 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
18916 | Py_INCREF(obj); | |
18917 | return Py_BuildValue((char *)""); | |
18918 | } | |
18919 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18920 | PyObject *resultobj; | |
18921 | long arg1 ; | |
18922 | wxTimeSpan result; | |
18923 | char *kwnames[] = { | |
18924 | (char *) "sec", NULL | |
18925 | }; | |
18926 | ||
18927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Seconds",kwnames,&arg1)) goto fail; | |
18928 | { | |
18929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18930 | result = wxTimeSpan::Seconds(arg1); | |
18931 | ||
18932 | wxPyEndAllowThreads(__tstate); | |
18933 | if (PyErr_Occurred()) SWIG_fail; | |
18934 | } | |
18935 | { | |
18936 | wxTimeSpan * resultptr; | |
18937 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18938 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18939 | } | |
18940 | return resultobj; | |
18941 | fail: | |
18942 | return NULL; | |
18943 | } | |
18944 | ||
18945 | ||
18946 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18947 | PyObject *resultobj; | |
18948 | wxTimeSpan result; | |
18949 | char *kwnames[] = { | |
18950 | NULL | |
18951 | }; | |
18952 | ||
18953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
18954 | { | |
18955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18956 | result = wxTimeSpan::Second(); | |
18957 | ||
18958 | wxPyEndAllowThreads(__tstate); | |
18959 | if (PyErr_Occurred()) SWIG_fail; | |
18960 | } | |
18961 | { | |
18962 | wxTimeSpan * resultptr; | |
18963 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18964 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18965 | } | |
18966 | return resultobj; | |
18967 | fail: | |
18968 | return NULL; | |
18969 | } | |
18970 | ||
18971 | ||
18972 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18973 | PyObject *resultobj; | |
18974 | long arg1 ; | |
18975 | wxTimeSpan result; | |
18976 | char *kwnames[] = { | |
18977 | (char *) "min", NULL | |
18978 | }; | |
18979 | ||
18980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Minutes",kwnames,&arg1)) goto fail; | |
18981 | { | |
18982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18983 | result = wxTimeSpan::Minutes(arg1); | |
18984 | ||
18985 | wxPyEndAllowThreads(__tstate); | |
18986 | if (PyErr_Occurred()) SWIG_fail; | |
18987 | } | |
18988 | { | |
18989 | wxTimeSpan * resultptr; | |
18990 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18991 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18992 | } | |
18993 | return resultobj; | |
18994 | fail: | |
18995 | return NULL; | |
18996 | } | |
18997 | ||
18998 | ||
18999 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19000 | PyObject *resultobj; | |
19001 | wxTimeSpan result; | |
19002 | char *kwnames[] = { | |
19003 | NULL | |
19004 | }; | |
19005 | ||
19006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
19007 | { | |
19008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19009 | result = wxTimeSpan::Minute(); | |
19010 | ||
19011 | wxPyEndAllowThreads(__tstate); | |
19012 | if (PyErr_Occurred()) SWIG_fail; | |
19013 | } | |
19014 | { | |
19015 | wxTimeSpan * resultptr; | |
19016 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19017 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19018 | } | |
19019 | return resultobj; | |
19020 | fail: | |
19021 | return NULL; | |
19022 | } | |
19023 | ||
19024 | ||
19025 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19026 | PyObject *resultobj; | |
19027 | long arg1 ; | |
19028 | wxTimeSpan result; | |
19029 | char *kwnames[] = { | |
19030 | (char *) "hours", NULL | |
19031 | }; | |
19032 | ||
19033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Hours",kwnames,&arg1)) goto fail; | |
19034 | { | |
19035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19036 | result = wxTimeSpan::Hours(arg1); | |
19037 | ||
19038 | wxPyEndAllowThreads(__tstate); | |
19039 | if (PyErr_Occurred()) SWIG_fail; | |
19040 | } | |
19041 | { | |
19042 | wxTimeSpan * resultptr; | |
19043 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19044 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19045 | } | |
19046 | return resultobj; | |
19047 | fail: | |
19048 | return NULL; | |
19049 | } | |
19050 | ||
19051 | ||
19052 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19053 | PyObject *resultobj; | |
19054 | wxTimeSpan result; | |
19055 | char *kwnames[] = { | |
19056 | NULL | |
19057 | }; | |
19058 | ||
19059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
19060 | { | |
19061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19062 | result = wxTimeSpan::Hour(); | |
19063 | ||
19064 | wxPyEndAllowThreads(__tstate); | |
19065 | if (PyErr_Occurred()) SWIG_fail; | |
19066 | } | |
19067 | { | |
19068 | wxTimeSpan * resultptr; | |
19069 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19070 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19071 | } | |
19072 | return resultobj; | |
19073 | fail: | |
19074 | return NULL; | |
19075 | } | |
19076 | ||
19077 | ||
19078 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19079 | PyObject *resultobj; | |
19080 | long arg1 ; | |
19081 | wxTimeSpan result; | |
19082 | char *kwnames[] = { | |
19083 | (char *) "days", NULL | |
19084 | }; | |
19085 | ||
19086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Days",kwnames,&arg1)) goto fail; | |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | result = wxTimeSpan::Days(arg1); | |
19090 | ||
19091 | wxPyEndAllowThreads(__tstate); | |
19092 | if (PyErr_Occurred()) SWIG_fail; | |
19093 | } | |
19094 | { | |
19095 | wxTimeSpan * resultptr; | |
19096 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19097 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19098 | } | |
19099 | return resultobj; | |
19100 | fail: | |
19101 | return NULL; | |
19102 | } | |
19103 | ||
19104 | ||
19105 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19106 | PyObject *resultobj; | |
19107 | wxTimeSpan result; | |
19108 | char *kwnames[] = { | |
19109 | NULL | |
19110 | }; | |
19111 | ||
19112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
19113 | { | |
19114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19115 | result = wxTimeSpan::Day(); | |
19116 | ||
19117 | wxPyEndAllowThreads(__tstate); | |
19118 | if (PyErr_Occurred()) SWIG_fail; | |
19119 | } | |
19120 | { | |
19121 | wxTimeSpan * resultptr; | |
19122 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19123 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19124 | } | |
19125 | return resultobj; | |
19126 | fail: | |
19127 | return NULL; | |
19128 | } | |
19129 | ||
19130 | ||
19131 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19132 | PyObject *resultobj; | |
19133 | long arg1 ; | |
19134 | wxTimeSpan result; | |
19135 | char *kwnames[] = { | |
19136 | (char *) "days", NULL | |
19137 | }; | |
19138 | ||
19139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Weeks",kwnames,&arg1)) goto fail; | |
19140 | { | |
19141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19142 | result = wxTimeSpan::Weeks(arg1); | |
19143 | ||
19144 | wxPyEndAllowThreads(__tstate); | |
19145 | if (PyErr_Occurred()) SWIG_fail; | |
19146 | } | |
19147 | { | |
19148 | wxTimeSpan * resultptr; | |
19149 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19150 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19151 | } | |
19152 | return resultobj; | |
19153 | fail: | |
19154 | return NULL; | |
19155 | } | |
19156 | ||
19157 | ||
19158 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19159 | PyObject *resultobj; | |
19160 | wxTimeSpan result; | |
19161 | char *kwnames[] = { | |
19162 | NULL | |
19163 | }; | |
19164 | ||
19165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
19166 | { | |
19167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19168 | result = wxTimeSpan::Week(); | |
19169 | ||
19170 | wxPyEndAllowThreads(__tstate); | |
19171 | if (PyErr_Occurred()) SWIG_fail; | |
19172 | } | |
19173 | { | |
19174 | wxTimeSpan * resultptr; | |
19175 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19176 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19177 | } | |
19178 | return resultobj; | |
19179 | fail: | |
19180 | return NULL; | |
19181 | } | |
19182 | ||
19183 | ||
19184 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19185 | PyObject *resultobj; | |
19186 | long arg1 = (long) 0 ; | |
19187 | long arg2 = (long) 0 ; | |
19188 | long arg3 = (long) 0 ; | |
19189 | long arg4 = (long) 0 ; | |
19190 | wxTimeSpan *result; | |
19191 | char *kwnames[] = { | |
19192 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
19193 | }; | |
19194 | ||
19195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|llll:new_TimeSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
19196 | { | |
19197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19198 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
19199 | ||
19200 | wxPyEndAllowThreads(__tstate); | |
19201 | if (PyErr_Occurred()) SWIG_fail; | |
19202 | } | |
19203 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
19204 | return resultobj; | |
19205 | fail: | |
19206 | return NULL; | |
19207 | } | |
19208 | ||
19209 | ||
19210 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19211 | PyObject *resultobj; | |
19212 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19213 | PyObject * obj0 = 0 ; | |
19214 | char *kwnames[] = { | |
19215 | (char *) "self", NULL | |
19216 | }; | |
19217 | ||
19218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
19219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19220 | { | |
19221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19222 | delete arg1; | |
19223 | ||
19224 | wxPyEndAllowThreads(__tstate); | |
19225 | if (PyErr_Occurred()) SWIG_fail; | |
19226 | } | |
19227 | Py_INCREF(Py_None); resultobj = Py_None; | |
19228 | return resultobj; | |
19229 | fail: | |
19230 | return NULL; | |
19231 | } | |
19232 | ||
19233 | ||
19234 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19235 | PyObject *resultobj; | |
19236 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19237 | wxTimeSpan *arg2 = 0 ; | |
19238 | wxTimeSpan *result; | |
19239 | PyObject * obj0 = 0 ; | |
19240 | PyObject * obj1 = 0 ; | |
19241 | char *kwnames[] = { | |
19242 | (char *) "self",(char *) "diff", NULL | |
19243 | }; | |
19244 | ||
19245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
19246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19247 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19248 | if (arg2 == NULL) { | |
19249 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19250 | } | |
19251 | { | |
19252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19253 | { | |
19254 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19255 | result = (wxTimeSpan *) &_result_ref; | |
19256 | } | |
19257 | ||
19258 | wxPyEndAllowThreads(__tstate); | |
19259 | if (PyErr_Occurred()) SWIG_fail; | |
19260 | } | |
19261 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19262 | return resultobj; | |
19263 | fail: | |
19264 | return NULL; | |
19265 | } | |
19266 | ||
19267 | ||
19268 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19269 | PyObject *resultobj; | |
19270 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19271 | wxTimeSpan *arg2 = 0 ; | |
19272 | wxTimeSpan *result; | |
19273 | PyObject * obj0 = 0 ; | |
19274 | PyObject * obj1 = 0 ; | |
19275 | char *kwnames[] = { | |
19276 | (char *) "self",(char *) "diff", NULL | |
19277 | }; | |
19278 | ||
19279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19281 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19282 | if (arg2 == NULL) { | |
19283 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19284 | } | |
19285 | { | |
19286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19287 | { | |
19288 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19289 | result = (wxTimeSpan *) &_result_ref; | |
19290 | } | |
19291 | ||
19292 | wxPyEndAllowThreads(__tstate); | |
19293 | if (PyErr_Occurred()) SWIG_fail; | |
19294 | } | |
19295 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19296 | return resultobj; | |
19297 | fail: | |
19298 | return NULL; | |
19299 | } | |
19300 | ||
19301 | ||
19302 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19303 | PyObject *resultobj; | |
19304 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19305 | int arg2 ; | |
19306 | wxTimeSpan *result; | |
19307 | PyObject * obj0 = 0 ; | |
19308 | char *kwnames[] = { | |
19309 | (char *) "self",(char *) "n", NULL | |
19310 | }; | |
19311 | ||
19312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
19313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19314 | { | |
19315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19316 | { | |
19317 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
19318 | result = (wxTimeSpan *) &_result_ref; | |
19319 | } | |
19320 | ||
19321 | wxPyEndAllowThreads(__tstate); | |
19322 | if (PyErr_Occurred()) SWIG_fail; | |
19323 | } | |
19324 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19325 | return resultobj; | |
19326 | fail: | |
19327 | return NULL; | |
19328 | } | |
19329 | ||
19330 | ||
19331 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19332 | PyObject *resultobj; | |
19333 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19334 | wxTimeSpan *result; | |
19335 | PyObject * obj0 = 0 ; | |
19336 | char *kwnames[] = { | |
19337 | (char *) "self", NULL | |
19338 | }; | |
19339 | ||
19340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
19341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19342 | { | |
19343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19344 | { | |
19345 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
19346 | result = (wxTimeSpan *) &_result_ref; | |
19347 | } | |
19348 | ||
19349 | wxPyEndAllowThreads(__tstate); | |
19350 | if (PyErr_Occurred()) SWIG_fail; | |
19351 | } | |
19352 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19353 | return resultobj; | |
19354 | fail: | |
19355 | return NULL; | |
19356 | } | |
19357 | ||
19358 | ||
19359 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj; | |
19361 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19362 | wxTimeSpan result; | |
19363 | PyObject * obj0 = 0 ; | |
19364 | char *kwnames[] = { | |
19365 | (char *) "self", NULL | |
19366 | }; | |
19367 | ||
19368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
19369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
19373 | ||
19374 | wxPyEndAllowThreads(__tstate); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | } | |
19377 | { | |
19378 | wxTimeSpan * resultptr; | |
19379 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19380 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19381 | } | |
19382 | return resultobj; | |
19383 | fail: | |
19384 | return NULL; | |
19385 | } | |
19386 | ||
19387 | ||
19388 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19389 | PyObject *resultobj; | |
19390 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19391 | wxTimeSpan *arg2 = 0 ; | |
19392 | wxTimeSpan *result; | |
19393 | PyObject * obj0 = 0 ; | |
19394 | PyObject * obj1 = 0 ; | |
19395 | char *kwnames[] = { | |
19396 | (char *) "self",(char *) "diff", NULL | |
19397 | }; | |
19398 | ||
19399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
19400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19401 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19402 | if (arg2 == NULL) { | |
19403 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19404 | } | |
19405 | { | |
19406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19407 | { | |
19408 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19409 | result = (wxTimeSpan *) &_result_ref; | |
19410 | } | |
19411 | ||
19412 | wxPyEndAllowThreads(__tstate); | |
19413 | if (PyErr_Occurred()) SWIG_fail; | |
19414 | } | |
19415 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19416 | return resultobj; | |
19417 | fail: | |
19418 | return NULL; | |
19419 | } | |
19420 | ||
19421 | ||
19422 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19423 | PyObject *resultobj; | |
19424 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19425 | wxTimeSpan *arg2 = 0 ; | |
19426 | wxTimeSpan *result; | |
19427 | PyObject * obj0 = 0 ; | |
19428 | PyObject * obj1 = 0 ; | |
19429 | char *kwnames[] = { | |
19430 | (char *) "self",(char *) "diff", NULL | |
19431 | }; | |
19432 | ||
19433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
19434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19435 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19436 | if (arg2 == NULL) { | |
19437 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19438 | } | |
19439 | { | |
19440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19441 | { | |
19442 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19443 | result = (wxTimeSpan *) &_result_ref; | |
19444 | } | |
19445 | ||
19446 | wxPyEndAllowThreads(__tstate); | |
19447 | if (PyErr_Occurred()) SWIG_fail; | |
19448 | } | |
19449 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19450 | return resultobj; | |
19451 | fail: | |
19452 | return NULL; | |
19453 | } | |
19454 | ||
19455 | ||
19456 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19457 | PyObject *resultobj; | |
19458 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19459 | int arg2 ; | |
19460 | wxTimeSpan *result; | |
19461 | PyObject * obj0 = 0 ; | |
19462 | char *kwnames[] = { | |
19463 | (char *) "self",(char *) "n", NULL | |
19464 | }; | |
19465 | ||
19466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
19467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19468 | { | |
19469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19470 | { | |
19471 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
19472 | result = (wxTimeSpan *) &_result_ref; | |
19473 | } | |
19474 | ||
19475 | wxPyEndAllowThreads(__tstate); | |
19476 | if (PyErr_Occurred()) SWIG_fail; | |
19477 | } | |
19478 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19479 | return resultobj; | |
19480 | fail: | |
19481 | return NULL; | |
19482 | } | |
19483 | ||
19484 | ||
19485 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19486 | PyObject *resultobj; | |
19487 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19488 | wxTimeSpan *result; | |
19489 | PyObject * obj0 = 0 ; | |
19490 | char *kwnames[] = { | |
19491 | (char *) "self", NULL | |
19492 | }; | |
19493 | ||
19494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
19495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19496 | { | |
19497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19498 | { | |
19499 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
19500 | result = (wxTimeSpan *) &_result_ref; | |
19501 | } | |
19502 | ||
19503 | wxPyEndAllowThreads(__tstate); | |
19504 | if (PyErr_Occurred()) SWIG_fail; | |
19505 | } | |
19506 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19507 | return resultobj; | |
19508 | fail: | |
19509 | return NULL; | |
19510 | } | |
19511 | ||
19512 | ||
19513 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19514 | PyObject *resultobj; | |
19515 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19516 | wxTimeSpan *arg2 = 0 ; | |
19517 | wxTimeSpan result; | |
19518 | PyObject * obj0 = 0 ; | |
19519 | PyObject * obj1 = 0 ; | |
19520 | char *kwnames[] = { | |
19521 | (char *) "self",(char *) "other", NULL | |
19522 | }; | |
19523 | ||
19524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
19525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19526 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19527 | if (arg2 == NULL) { | |
19528 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19529 | } | |
19530 | { | |
19531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19532 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
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 | ||
19548 | static PyObject *_wrap_TimeSpan___sub__(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 *) "other", NULL | |
19557 | }; | |
19558 | ||
19559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",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 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
19568 | ||
19569 | wxPyEndAllowThreads(__tstate); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
19572 | { | |
19573 | wxTimeSpan * resultptr; | |
19574 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19575 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19576 | } | |
19577 | return resultobj; | |
19578 | fail: | |
19579 | return NULL; | |
19580 | } | |
19581 | ||
19582 | ||
19583 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19584 | PyObject *resultobj; | |
19585 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19586 | int arg2 ; | |
19587 | wxTimeSpan result; | |
19588 | PyObject * obj0 = 0 ; | |
19589 | char *kwnames[] = { | |
19590 | (char *) "self",(char *) "n", NULL | |
19591 | }; | |
19592 | ||
19593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
19594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19595 | { | |
19596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19597 | result = wxTimeSpan___mul__(arg1,arg2); | |
19598 | ||
19599 | wxPyEndAllowThreads(__tstate); | |
19600 | if (PyErr_Occurred()) SWIG_fail; | |
19601 | } | |
19602 | { | |
19603 | wxTimeSpan * resultptr; | |
19604 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19605 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19606 | } | |
19607 | return resultobj; | |
19608 | fail: | |
19609 | return NULL; | |
19610 | } | |
19611 | ||
19612 | ||
19613 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19614 | PyObject *resultobj; | |
19615 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19616 | int arg2 ; | |
19617 | wxTimeSpan result; | |
19618 | PyObject * obj0 = 0 ; | |
19619 | char *kwnames[] = { | |
19620 | (char *) "self",(char *) "n", NULL | |
19621 | }; | |
19622 | ||
19623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
19624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19625 | { | |
19626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19627 | result = wxTimeSpan___rmul__(arg1,arg2); | |
19628 | ||
19629 | wxPyEndAllowThreads(__tstate); | |
19630 | if (PyErr_Occurred()) SWIG_fail; | |
19631 | } | |
19632 | { | |
19633 | wxTimeSpan * resultptr; | |
19634 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19635 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19636 | } | |
19637 | return resultobj; | |
19638 | fail: | |
19639 | return NULL; | |
19640 | } | |
19641 | ||
19642 | ||
19643 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19644 | PyObject *resultobj; | |
19645 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19646 | wxTimeSpan *arg2 = 0 ; | |
19647 | bool result; | |
19648 | PyObject * obj0 = 0 ; | |
19649 | PyObject * obj1 = 0 ; | |
19650 | char *kwnames[] = { | |
19651 | (char *) "self",(char *) "other", NULL | |
19652 | }; | |
19653 | ||
19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
19655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19656 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19657 | if (arg2 == NULL) { | |
19658 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19659 | } | |
19660 | { | |
19661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19662 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
19663 | ||
19664 | wxPyEndAllowThreads(__tstate); | |
19665 | if (PyErr_Occurred()) SWIG_fail; | |
19666 | } | |
19667 | resultobj = PyInt_FromLong((long)result); | |
19668 | return resultobj; | |
19669 | fail: | |
19670 | return NULL; | |
19671 | } | |
19672 | ||
19673 | ||
19674 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19675 | PyObject *resultobj; | |
19676 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19677 | wxTimeSpan *arg2 = 0 ; | |
19678 | bool result; | |
19679 | PyObject * obj0 = 0 ; | |
19680 | PyObject * obj1 = 0 ; | |
19681 | char *kwnames[] = { | |
19682 | (char *) "self",(char *) "other", NULL | |
19683 | }; | |
19684 | ||
19685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
19686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19687 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19688 | if (arg2 == NULL) { | |
19689 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19690 | } | |
19691 | { | |
19692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19693 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
19694 | ||
19695 | wxPyEndAllowThreads(__tstate); | |
19696 | if (PyErr_Occurred()) SWIG_fail; | |
19697 | } | |
19698 | resultobj = PyInt_FromLong((long)result); | |
19699 | return resultobj; | |
19700 | fail: | |
19701 | return NULL; | |
19702 | } | |
19703 | ||
19704 | ||
19705 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19706 | PyObject *resultobj; | |
19707 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19708 | wxTimeSpan *arg2 = 0 ; | |
19709 | bool result; | |
19710 | PyObject * obj0 = 0 ; | |
19711 | PyObject * obj1 = 0 ; | |
19712 | char *kwnames[] = { | |
19713 | (char *) "self",(char *) "other", NULL | |
19714 | }; | |
19715 | ||
19716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
19717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19718 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19719 | if (arg2 == NULL) { | |
19720 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19721 | } | |
19722 | { | |
19723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19724 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
19725 | ||
19726 | wxPyEndAllowThreads(__tstate); | |
19727 | if (PyErr_Occurred()) SWIG_fail; | |
19728 | } | |
19729 | resultobj = PyInt_FromLong((long)result); | |
19730 | return resultobj; | |
19731 | fail: | |
19732 | return NULL; | |
19733 | } | |
19734 | ||
19735 | ||
19736 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19737 | PyObject *resultobj; | |
19738 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19739 | wxTimeSpan *arg2 = 0 ; | |
19740 | bool result; | |
19741 | PyObject * obj0 = 0 ; | |
19742 | PyObject * obj1 = 0 ; | |
19743 | char *kwnames[] = { | |
19744 | (char *) "self",(char *) "other", NULL | |
19745 | }; | |
19746 | ||
19747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
19748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19750 | if (arg2 == NULL) { | |
19751 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19752 | } | |
19753 | { | |
19754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19755 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
19756 | ||
19757 | wxPyEndAllowThreads(__tstate); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | } | |
19760 | resultobj = PyInt_FromLong((long)result); | |
19761 | return resultobj; | |
19762 | fail: | |
19763 | return NULL; | |
19764 | } | |
19765 | ||
19766 | ||
19767 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19768 | PyObject *resultobj; | |
19769 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19770 | wxTimeSpan *arg2 = 0 ; | |
19771 | bool result; | |
19772 | PyObject * obj0 = 0 ; | |
19773 | PyObject * obj1 = 0 ; | |
19774 | char *kwnames[] = { | |
19775 | (char *) "self",(char *) "other", NULL | |
19776 | }; | |
19777 | ||
19778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
19779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19780 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19781 | if (arg2 == NULL) { | |
19782 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19783 | } | |
19784 | { | |
19785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19786 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
19787 | ||
19788 | wxPyEndAllowThreads(__tstate); | |
19789 | if (PyErr_Occurred()) SWIG_fail; | |
19790 | } | |
19791 | resultobj = PyInt_FromLong((long)result); | |
19792 | return resultobj; | |
19793 | fail: | |
19794 | return NULL; | |
19795 | } | |
19796 | ||
19797 | ||
19798 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19799 | PyObject *resultobj; | |
19800 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19801 | wxTimeSpan *arg2 = 0 ; | |
19802 | bool result; | |
19803 | PyObject * obj0 = 0 ; | |
19804 | PyObject * obj1 = 0 ; | |
19805 | char *kwnames[] = { | |
19806 | (char *) "self",(char *) "other", NULL | |
19807 | }; | |
19808 | ||
19809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
19810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19811 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19812 | if (arg2 == NULL) { | |
19813 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19814 | } | |
19815 | { | |
19816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19817 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
19818 | ||
19819 | wxPyEndAllowThreads(__tstate); | |
19820 | if (PyErr_Occurred()) SWIG_fail; | |
19821 | } | |
19822 | resultobj = PyInt_FromLong((long)result); | |
19823 | return resultobj; | |
19824 | fail: | |
19825 | return NULL; | |
19826 | } | |
19827 | ||
19828 | ||
19829 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19830 | PyObject *resultobj; | |
19831 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19832 | bool result; | |
19833 | PyObject * obj0 = 0 ; | |
19834 | char *kwnames[] = { | |
19835 | (char *) "self", NULL | |
19836 | }; | |
19837 | ||
19838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
19839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19840 | { | |
19841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19842 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
19843 | ||
19844 | wxPyEndAllowThreads(__tstate); | |
19845 | if (PyErr_Occurred()) SWIG_fail; | |
19846 | } | |
19847 | resultobj = PyInt_FromLong((long)result); | |
19848 | return resultobj; | |
19849 | fail: | |
19850 | return NULL; | |
19851 | } | |
19852 | ||
19853 | ||
19854 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19855 | PyObject *resultobj; | |
19856 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19857 | bool result; | |
19858 | PyObject * obj0 = 0 ; | |
19859 | char *kwnames[] = { | |
19860 | (char *) "self", NULL | |
19861 | }; | |
19862 | ||
19863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
19864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19865 | { | |
19866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19867 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
19868 | ||
19869 | wxPyEndAllowThreads(__tstate); | |
19870 | if (PyErr_Occurred()) SWIG_fail; | |
19871 | } | |
19872 | resultobj = PyInt_FromLong((long)result); | |
19873 | return resultobj; | |
19874 | fail: | |
19875 | return NULL; | |
19876 | } | |
19877 | ||
19878 | ||
19879 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19880 | PyObject *resultobj; | |
19881 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19882 | bool result; | |
19883 | PyObject * obj0 = 0 ; | |
19884 | char *kwnames[] = { | |
19885 | (char *) "self", NULL | |
19886 | }; | |
19887 | ||
19888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
19889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19890 | { | |
19891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19892 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
19893 | ||
19894 | wxPyEndAllowThreads(__tstate); | |
19895 | if (PyErr_Occurred()) SWIG_fail; | |
19896 | } | |
19897 | resultobj = PyInt_FromLong((long)result); | |
19898 | return resultobj; | |
19899 | fail: | |
19900 | return NULL; | |
19901 | } | |
19902 | ||
19903 | ||
19904 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19905 | PyObject *resultobj; | |
19906 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19907 | wxTimeSpan *arg2 = 0 ; | |
19908 | bool result; | |
19909 | PyObject * obj0 = 0 ; | |
19910 | PyObject * obj1 = 0 ; | |
19911 | char *kwnames[] = { | |
19912 | (char *) "self",(char *) "ts", NULL | |
19913 | }; | |
19914 | ||
19915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
19916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19917 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19918 | if (arg2 == NULL) { | |
19919 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19920 | } | |
19921 | { | |
19922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19923 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
19924 | ||
19925 | wxPyEndAllowThreads(__tstate); | |
19926 | if (PyErr_Occurred()) SWIG_fail; | |
19927 | } | |
19928 | resultobj = PyInt_FromLong((long)result); | |
19929 | return resultobj; | |
19930 | fail: | |
19931 | return NULL; | |
19932 | } | |
19933 | ||
19934 | ||
19935 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19936 | PyObject *resultobj; | |
19937 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19938 | wxTimeSpan *arg2 = 0 ; | |
19939 | bool result; | |
19940 | PyObject * obj0 = 0 ; | |
19941 | PyObject * obj1 = 0 ; | |
19942 | char *kwnames[] = { | |
19943 | (char *) "self",(char *) "ts", NULL | |
19944 | }; | |
19945 | ||
19946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
19947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19948 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19949 | if (arg2 == NULL) { | |
19950 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19951 | } | |
19952 | { | |
19953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19954 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
19955 | ||
19956 | wxPyEndAllowThreads(__tstate); | |
19957 | if (PyErr_Occurred()) SWIG_fail; | |
19958 | } | |
19959 | resultobj = PyInt_FromLong((long)result); | |
19960 | return resultobj; | |
19961 | fail: | |
19962 | return NULL; | |
19963 | } | |
19964 | ||
19965 | ||
19966 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19967 | PyObject *resultobj; | |
19968 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19969 | wxTimeSpan *arg2 = 0 ; | |
19970 | bool result; | |
19971 | PyObject * obj0 = 0 ; | |
19972 | PyObject * obj1 = 0 ; | |
19973 | char *kwnames[] = { | |
19974 | (char *) "self",(char *) "t", NULL | |
19975 | }; | |
19976 | ||
19977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
19978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19979 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19980 | if (arg2 == NULL) { | |
19981 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19982 | } | |
19983 | { | |
19984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19985 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
19986 | ||
19987 | wxPyEndAllowThreads(__tstate); | |
19988 | if (PyErr_Occurred()) SWIG_fail; | |
19989 | } | |
19990 | resultobj = PyInt_FromLong((long)result); | |
19991 | return resultobj; | |
19992 | fail: | |
19993 | return NULL; | |
19994 | } | |
19995 | ||
19996 | ||
19997 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19998 | PyObject *resultobj; | |
19999 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20000 | int result; | |
20001 | PyObject * obj0 = 0 ; | |
20002 | char *kwnames[] = { | |
20003 | (char *) "self", NULL | |
20004 | }; | |
20005 | ||
20006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20008 | { | |
20009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20010 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
20011 | ||
20012 | wxPyEndAllowThreads(__tstate); | |
20013 | if (PyErr_Occurred()) SWIG_fail; | |
20014 | } | |
20015 | resultobj = PyInt_FromLong((long)result); | |
20016 | return resultobj; | |
20017 | fail: | |
20018 | return NULL; | |
20019 | } | |
20020 | ||
20021 | ||
20022 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20023 | PyObject *resultobj; | |
20024 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20025 | int result; | |
20026 | PyObject * obj0 = 0 ; | |
20027 | char *kwnames[] = { | |
20028 | (char *) "self", NULL | |
20029 | }; | |
20030 | ||
20031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
20032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20033 | { | |
20034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20035 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
20036 | ||
20037 | wxPyEndAllowThreads(__tstate); | |
20038 | if (PyErr_Occurred()) SWIG_fail; | |
20039 | } | |
20040 | resultobj = PyInt_FromLong((long)result); | |
20041 | return resultobj; | |
20042 | fail: | |
20043 | return NULL; | |
20044 | } | |
20045 | ||
20046 | ||
20047 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20048 | PyObject *resultobj; | |
20049 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20050 | int result; | |
20051 | PyObject * obj0 = 0 ; | |
20052 | char *kwnames[] = { | |
20053 | (char *) "self", NULL | |
20054 | }; | |
20055 | ||
20056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
20057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20058 | { | |
20059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20060 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
20061 | ||
20062 | wxPyEndAllowThreads(__tstate); | |
20063 | if (PyErr_Occurred()) SWIG_fail; | |
20064 | } | |
20065 | resultobj = PyInt_FromLong((long)result); | |
20066 | return resultobj; | |
20067 | fail: | |
20068 | return NULL; | |
20069 | } | |
20070 | ||
20071 | ||
20072 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20073 | PyObject *resultobj; | |
20074 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20075 | int result; | |
20076 | PyObject * obj0 = 0 ; | |
20077 | char *kwnames[] = { | |
20078 | (char *) "self", NULL | |
20079 | }; | |
20080 | ||
20081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
20082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20083 | { | |
20084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20085 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
20086 | ||
20087 | wxPyEndAllowThreads(__tstate); | |
20088 | if (PyErr_Occurred()) SWIG_fail; | |
20089 | } | |
20090 | resultobj = PyInt_FromLong((long)result); | |
20091 | return resultobj; | |
20092 | fail: | |
20093 | return NULL; | |
20094 | } | |
20095 | ||
20096 | ||
20097 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20098 | PyObject *resultobj; | |
20099 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20100 | wxLongLong result; | |
20101 | PyObject * obj0 = 0 ; | |
20102 | char *kwnames[] = { | |
20103 | (char *) "self", NULL | |
20104 | }; | |
20105 | ||
20106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
20107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20108 | { | |
20109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20110 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
20111 | ||
20112 | wxPyEndAllowThreads(__tstate); | |
20113 | if (PyErr_Occurred()) SWIG_fail; | |
20114 | } | |
20115 | { | |
20116 | PyObject *hi, *lo, *shifter, *shifted; | |
20117 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20118 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20119 | shifter = PyLong_FromLong(32); | |
20120 | shifted = PyNumber_Lshift(hi, shifter); | |
20121 | resultobj = PyNumber_Or(shifted, lo); | |
20122 | Py_DECREF(hi); | |
20123 | Py_DECREF(lo); | |
20124 | Py_DECREF(shifter); | |
20125 | Py_DECREF(shifted); | |
20126 | } | |
20127 | return resultobj; | |
20128 | fail: | |
20129 | return NULL; | |
20130 | } | |
20131 | ||
20132 | ||
20133 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20134 | PyObject *resultobj; | |
20135 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20136 | wxLongLong result; | |
20137 | PyObject * obj0 = 0 ; | |
20138 | char *kwnames[] = { | |
20139 | (char *) "self", NULL | |
20140 | }; | |
20141 | ||
20142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
20143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20144 | { | |
20145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20146 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
20147 | ||
20148 | wxPyEndAllowThreads(__tstate); | |
20149 | if (PyErr_Occurred()) SWIG_fail; | |
20150 | } | |
20151 | { | |
20152 | PyObject *hi, *lo, *shifter, *shifted; | |
20153 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20154 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20155 | shifter = PyLong_FromLong(32); | |
20156 | shifted = PyNumber_Lshift(hi, shifter); | |
20157 | resultobj = PyNumber_Or(shifted, lo); | |
20158 | Py_DECREF(hi); | |
20159 | Py_DECREF(lo); | |
20160 | Py_DECREF(shifter); | |
20161 | Py_DECREF(shifted); | |
20162 | } | |
20163 | return resultobj; | |
20164 | fail: | |
20165 | return NULL; | |
20166 | } | |
20167 | ||
20168 | ||
20169 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20170 | PyObject *resultobj; | |
20171 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20172 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
20173 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20174 | wxString result; | |
423f194a | 20175 | bool temp2 = False ; |
d14a1e28 RD |
20176 | PyObject * obj0 = 0 ; |
20177 | PyObject * obj1 = 0 ; | |
20178 | char *kwnames[] = { | |
20179 | (char *) "self",(char *) "format", NULL | |
20180 | }; | |
20181 | ||
20182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
20183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20184 | if (obj1) { | |
20185 | { | |
20186 | arg2 = wxString_in_helper(obj1); | |
20187 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20188 | temp2 = True; |
d14a1e28 RD |
20189 | } |
20190 | } | |
20191 | { | |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20193 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
20194 | ||
20195 | wxPyEndAllowThreads(__tstate); | |
20196 | if (PyErr_Occurred()) SWIG_fail; | |
20197 | } | |
20198 | { | |
20199 | #if wxUSE_UNICODE | |
20200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20201 | #else | |
20202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20203 | #endif | |
20204 | } | |
20205 | { | |
20206 | if (temp2) | |
20207 | delete arg2; | |
20208 | } | |
20209 | return resultobj; | |
20210 | fail: | |
20211 | { | |
20212 | if (temp2) | |
20213 | delete arg2; | |
20214 | } | |
20215 | return NULL; | |
20216 | } | |
20217 | ||
20218 | ||
20219 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
20220 | PyObject *obj; | |
20221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20222 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
20223 | Py_INCREF(obj); | |
20224 | return Py_BuildValue((char *)""); | |
20225 | } | |
20226 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20227 | PyObject *resultobj; | |
20228 | int arg1 = (int) 0 ; | |
20229 | int arg2 = (int) 0 ; | |
20230 | int arg3 = (int) 0 ; | |
20231 | int arg4 = (int) 0 ; | |
20232 | wxDateSpan *result; | |
20233 | char *kwnames[] = { | |
20234 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
20235 | }; | |
20236 | ||
20237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_DateSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
20238 | { | |
20239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20240 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
20241 | ||
20242 | wxPyEndAllowThreads(__tstate); | |
20243 | if (PyErr_Occurred()) SWIG_fail; | |
20244 | } | |
20245 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
20246 | return resultobj; | |
20247 | fail: | |
20248 | return NULL; | |
20249 | } | |
20250 | ||
20251 | ||
20252 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20253 | PyObject *resultobj; | |
20254 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20255 | PyObject * obj0 = 0 ; | |
20256 | char *kwnames[] = { | |
20257 | (char *) "self", NULL | |
20258 | }; | |
20259 | ||
20260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
20261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20262 | { | |
20263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20264 | delete arg1; | |
20265 | ||
20266 | wxPyEndAllowThreads(__tstate); | |
20267 | if (PyErr_Occurred()) SWIG_fail; | |
20268 | } | |
20269 | Py_INCREF(Py_None); resultobj = Py_None; | |
20270 | return resultobj; | |
20271 | fail: | |
20272 | return NULL; | |
20273 | } | |
20274 | ||
20275 | ||
20276 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20277 | PyObject *resultobj; | |
20278 | int arg1 ; | |
20279 | wxDateSpan result; | |
20280 | char *kwnames[] = { | |
20281 | (char *) "days", NULL | |
20282 | }; | |
20283 | ||
20284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Days",kwnames,&arg1)) goto fail; | |
20285 | { | |
20286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20287 | result = wxDateSpan::Days(arg1); | |
20288 | ||
20289 | wxPyEndAllowThreads(__tstate); | |
20290 | if (PyErr_Occurred()) SWIG_fail; | |
20291 | } | |
20292 | { | |
20293 | wxDateSpan * resultptr; | |
20294 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20295 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20296 | } | |
20297 | return resultobj; | |
20298 | fail: | |
20299 | return NULL; | |
20300 | } | |
20301 | ||
20302 | ||
20303 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20304 | PyObject *resultobj; | |
20305 | wxDateSpan result; | |
20306 | char *kwnames[] = { | |
20307 | NULL | |
20308 | }; | |
20309 | ||
20310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
20311 | { | |
20312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20313 | result = wxDateSpan::Day(); | |
20314 | ||
20315 | wxPyEndAllowThreads(__tstate); | |
20316 | if (PyErr_Occurred()) SWIG_fail; | |
20317 | } | |
20318 | { | |
20319 | wxDateSpan * resultptr; | |
20320 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20321 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20322 | } | |
20323 | return resultobj; | |
20324 | fail: | |
20325 | return NULL; | |
20326 | } | |
20327 | ||
20328 | ||
20329 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20330 | PyObject *resultobj; | |
20331 | int arg1 ; | |
20332 | wxDateSpan result; | |
20333 | char *kwnames[] = { | |
20334 | (char *) "weeks", NULL | |
20335 | }; | |
20336 | ||
20337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Weeks",kwnames,&arg1)) goto fail; | |
20338 | { | |
20339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20340 | result = wxDateSpan::Weeks(arg1); | |
20341 | ||
20342 | wxPyEndAllowThreads(__tstate); | |
20343 | if (PyErr_Occurred()) SWIG_fail; | |
20344 | } | |
20345 | { | |
20346 | wxDateSpan * resultptr; | |
20347 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20348 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20349 | } | |
20350 | return resultobj; | |
20351 | fail: | |
20352 | return NULL; | |
20353 | } | |
20354 | ||
20355 | ||
20356 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20357 | PyObject *resultobj; | |
20358 | wxDateSpan result; | |
20359 | char *kwnames[] = { | |
20360 | NULL | |
20361 | }; | |
20362 | ||
20363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
20364 | { | |
20365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20366 | result = wxDateSpan::Week(); | |
20367 | ||
20368 | wxPyEndAllowThreads(__tstate); | |
20369 | if (PyErr_Occurred()) SWIG_fail; | |
20370 | } | |
20371 | { | |
20372 | wxDateSpan * resultptr; | |
20373 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20374 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20375 | } | |
20376 | return resultobj; | |
20377 | fail: | |
20378 | return NULL; | |
20379 | } | |
20380 | ||
20381 | ||
20382 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20383 | PyObject *resultobj; | |
20384 | int arg1 ; | |
20385 | wxDateSpan result; | |
20386 | char *kwnames[] = { | |
20387 | (char *) "mon", NULL | |
20388 | }; | |
20389 | ||
20390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Months",kwnames,&arg1)) goto fail; | |
20391 | { | |
20392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20393 | result = wxDateSpan::Months(arg1); | |
20394 | ||
20395 | wxPyEndAllowThreads(__tstate); | |
20396 | if (PyErr_Occurred()) SWIG_fail; | |
20397 | } | |
20398 | { | |
20399 | wxDateSpan * resultptr; | |
20400 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20401 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20402 | } | |
20403 | return resultobj; | |
20404 | fail: | |
20405 | return NULL; | |
20406 | } | |
20407 | ||
20408 | ||
20409 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20410 | PyObject *resultobj; | |
20411 | wxDateSpan result; | |
20412 | char *kwnames[] = { | |
20413 | NULL | |
20414 | }; | |
20415 | ||
20416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
20417 | { | |
20418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20419 | result = wxDateSpan::Month(); | |
20420 | ||
20421 | wxPyEndAllowThreads(__tstate); | |
20422 | if (PyErr_Occurred()) SWIG_fail; | |
20423 | } | |
20424 | { | |
20425 | wxDateSpan * resultptr; | |
20426 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20427 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20428 | } | |
20429 | return resultobj; | |
20430 | fail: | |
20431 | return NULL; | |
20432 | } | |
20433 | ||
20434 | ||
20435 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20436 | PyObject *resultobj; | |
20437 | int arg1 ; | |
20438 | wxDateSpan result; | |
20439 | char *kwnames[] = { | |
20440 | (char *) "years", NULL | |
20441 | }; | |
20442 | ||
20443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Years",kwnames,&arg1)) goto fail; | |
20444 | { | |
20445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20446 | result = wxDateSpan::Years(arg1); | |
20447 | ||
20448 | wxPyEndAllowThreads(__tstate); | |
20449 | if (PyErr_Occurred()) SWIG_fail; | |
20450 | } | |
20451 | { | |
20452 | wxDateSpan * resultptr; | |
20453 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20454 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20455 | } | |
20456 | return resultobj; | |
20457 | fail: | |
20458 | return NULL; | |
20459 | } | |
20460 | ||
20461 | ||
20462 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20463 | PyObject *resultobj; | |
20464 | wxDateSpan result; | |
20465 | char *kwnames[] = { | |
20466 | NULL | |
20467 | }; | |
20468 | ||
20469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
20470 | { | |
20471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20472 | result = wxDateSpan::Year(); | |
20473 | ||
20474 | wxPyEndAllowThreads(__tstate); | |
20475 | if (PyErr_Occurred()) SWIG_fail; | |
20476 | } | |
20477 | { | |
20478 | wxDateSpan * resultptr; | |
20479 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20480 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20481 | } | |
20482 | return resultobj; | |
20483 | fail: | |
20484 | return NULL; | |
20485 | } | |
20486 | ||
20487 | ||
20488 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20489 | PyObject *resultobj; | |
20490 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20491 | int arg2 ; | |
20492 | wxDateSpan *result; | |
20493 | PyObject * obj0 = 0 ; | |
20494 | char *kwnames[] = { | |
20495 | (char *) "self",(char *) "n", NULL | |
20496 | }; | |
20497 | ||
20498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetYears",kwnames,&obj0,&arg2)) goto fail; | |
20499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20500 | { | |
20501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20502 | { | |
20503 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
20504 | result = (wxDateSpan *) &_result_ref; | |
20505 | } | |
20506 | ||
20507 | wxPyEndAllowThreads(__tstate); | |
20508 | if (PyErr_Occurred()) SWIG_fail; | |
20509 | } | |
20510 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20511 | return resultobj; | |
20512 | fail: | |
20513 | return NULL; | |
20514 | } | |
20515 | ||
20516 | ||
20517 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20518 | PyObject *resultobj; | |
20519 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20520 | int arg2 ; | |
20521 | wxDateSpan *result; | |
20522 | PyObject * obj0 = 0 ; | |
20523 | char *kwnames[] = { | |
20524 | (char *) "self",(char *) "n", NULL | |
20525 | }; | |
20526 | ||
20527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetMonths",kwnames,&obj0,&arg2)) goto fail; | |
20528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20529 | { | |
20530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20531 | { | |
20532 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
20533 | result = (wxDateSpan *) &_result_ref; | |
20534 | } | |
20535 | ||
20536 | wxPyEndAllowThreads(__tstate); | |
20537 | if (PyErr_Occurred()) SWIG_fail; | |
20538 | } | |
20539 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20540 | return resultobj; | |
20541 | fail: | |
20542 | return NULL; | |
20543 | } | |
20544 | ||
20545 | ||
20546 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20547 | PyObject *resultobj; | |
20548 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20549 | int arg2 ; | |
20550 | wxDateSpan *result; | |
20551 | PyObject * obj0 = 0 ; | |
20552 | char *kwnames[] = { | |
20553 | (char *) "self",(char *) "n", NULL | |
20554 | }; | |
20555 | ||
20556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetWeeks",kwnames,&obj0,&arg2)) goto fail; | |
20557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20558 | { | |
20559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20560 | { | |
20561 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
20562 | result = (wxDateSpan *) &_result_ref; | |
20563 | } | |
20564 | ||
20565 | wxPyEndAllowThreads(__tstate); | |
20566 | if (PyErr_Occurred()) SWIG_fail; | |
20567 | } | |
20568 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20569 | return resultobj; | |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
20575 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20576 | PyObject *resultobj; | |
20577 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20578 | int arg2 ; | |
20579 | wxDateSpan *result; | |
20580 | PyObject * obj0 = 0 ; | |
20581 | char *kwnames[] = { | |
20582 | (char *) "self",(char *) "n", NULL | |
20583 | }; | |
20584 | ||
20585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetDays",kwnames,&obj0,&arg2)) goto fail; | |
20586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20587 | { | |
20588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20589 | { | |
20590 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
20591 | result = (wxDateSpan *) &_result_ref; | |
20592 | } | |
20593 | ||
20594 | wxPyEndAllowThreads(__tstate); | |
20595 | if (PyErr_Occurred()) SWIG_fail; | |
20596 | } | |
20597 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20598 | return resultobj; | |
20599 | fail: | |
20600 | return NULL; | |
20601 | } | |
20602 | ||
20603 | ||
20604 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20605 | PyObject *resultobj; | |
20606 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20607 | int result; | |
20608 | PyObject * obj0 = 0 ; | |
20609 | char *kwnames[] = { | |
20610 | (char *) "self", NULL | |
20611 | }; | |
20612 | ||
20613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
20614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20615 | { | |
20616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20617 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
20618 | ||
20619 | wxPyEndAllowThreads(__tstate); | |
20620 | if (PyErr_Occurred()) SWIG_fail; | |
20621 | } | |
20622 | resultobj = PyInt_FromLong((long)result); | |
20623 | return resultobj; | |
20624 | fail: | |
20625 | return NULL; | |
20626 | } | |
20627 | ||
20628 | ||
20629 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20630 | PyObject *resultobj; | |
20631 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20632 | int result; | |
20633 | PyObject * obj0 = 0 ; | |
20634 | char *kwnames[] = { | |
20635 | (char *) "self", NULL | |
20636 | }; | |
20637 | ||
20638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
20639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20640 | { | |
20641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20642 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
20643 | ||
20644 | wxPyEndAllowThreads(__tstate); | |
20645 | if (PyErr_Occurred()) SWIG_fail; | |
20646 | } | |
20647 | resultobj = PyInt_FromLong((long)result); | |
20648 | return resultobj; | |
20649 | fail: | |
20650 | return NULL; | |
20651 | } | |
20652 | ||
20653 | ||
20654 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20655 | PyObject *resultobj; | |
20656 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20657 | int result; | |
20658 | PyObject * obj0 = 0 ; | |
20659 | char *kwnames[] = { | |
20660 | (char *) "self", NULL | |
20661 | }; | |
20662 | ||
20663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20665 | { | |
20666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20667 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
20668 | ||
20669 | wxPyEndAllowThreads(__tstate); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | } | |
20672 | resultobj = PyInt_FromLong((long)result); | |
20673 | return resultobj; | |
20674 | fail: | |
20675 | return NULL; | |
20676 | } | |
20677 | ||
20678 | ||
20679 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20680 | PyObject *resultobj; | |
20681 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20682 | int result; | |
20683 | PyObject * obj0 = 0 ; | |
20684 | char *kwnames[] = { | |
20685 | (char *) "self", NULL | |
20686 | }; | |
20687 | ||
20688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
20689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20690 | { | |
20691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20692 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
20693 | ||
20694 | wxPyEndAllowThreads(__tstate); | |
20695 | if (PyErr_Occurred()) SWIG_fail; | |
20696 | } | |
20697 | resultobj = PyInt_FromLong((long)result); | |
20698 | return resultobj; | |
20699 | fail: | |
20700 | return NULL; | |
20701 | } | |
20702 | ||
20703 | ||
20704 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20705 | PyObject *resultobj; | |
20706 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20707 | int result; | |
20708 | PyObject * obj0 = 0 ; | |
20709 | char *kwnames[] = { | |
20710 | (char *) "self", NULL | |
20711 | }; | |
20712 | ||
20713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
20714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20715 | { | |
20716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20717 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
20718 | ||
20719 | wxPyEndAllowThreads(__tstate); | |
20720 | if (PyErr_Occurred()) SWIG_fail; | |
20721 | } | |
20722 | resultobj = PyInt_FromLong((long)result); | |
20723 | return resultobj; | |
20724 | fail: | |
20725 | return NULL; | |
20726 | } | |
20727 | ||
20728 | ||
20729 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20730 | PyObject *resultobj; | |
20731 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20732 | wxDateSpan *arg2 = 0 ; | |
20733 | wxDateSpan *result; | |
20734 | PyObject * obj0 = 0 ; | |
20735 | PyObject * obj1 = 0 ; | |
20736 | char *kwnames[] = { | |
20737 | (char *) "self",(char *) "other", NULL | |
20738 | }; | |
20739 | ||
20740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
20741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20742 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20743 | if (arg2 == NULL) { | |
20744 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20745 | } | |
20746 | { | |
20747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20748 | { | |
20749 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20750 | result = (wxDateSpan *) &_result_ref; | |
20751 | } | |
20752 | ||
20753 | wxPyEndAllowThreads(__tstate); | |
20754 | if (PyErr_Occurred()) SWIG_fail; | |
20755 | } | |
20756 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20757 | return resultobj; | |
20758 | fail: | |
20759 | return NULL; | |
20760 | } | |
20761 | ||
20762 | ||
20763 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20764 | PyObject *resultobj; | |
20765 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20766 | wxDateSpan *arg2 = 0 ; | |
20767 | wxDateSpan *result; | |
20768 | PyObject * obj0 = 0 ; | |
20769 | PyObject * obj1 = 0 ; | |
20770 | char *kwnames[] = { | |
20771 | (char *) "self",(char *) "other", NULL | |
20772 | }; | |
20773 | ||
20774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20776 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20777 | if (arg2 == NULL) { | |
20778 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20779 | } | |
20780 | { | |
20781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20782 | { | |
20783 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20784 | result = (wxDateSpan *) &_result_ref; | |
20785 | } | |
20786 | ||
20787 | wxPyEndAllowThreads(__tstate); | |
20788 | if (PyErr_Occurred()) SWIG_fail; | |
20789 | } | |
20790 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20791 | return resultobj; | |
20792 | fail: | |
20793 | return NULL; | |
20794 | } | |
20795 | ||
20796 | ||
20797 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20798 | PyObject *resultobj; | |
20799 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20800 | wxDateSpan *result; | |
20801 | PyObject * obj0 = 0 ; | |
20802 | char *kwnames[] = { | |
20803 | (char *) "self", NULL | |
20804 | }; | |
20805 | ||
20806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
20807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20808 | { | |
20809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20810 | { | |
20811 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
20812 | result = (wxDateSpan *) &_result_ref; | |
20813 | } | |
20814 | ||
20815 | wxPyEndAllowThreads(__tstate); | |
20816 | if (PyErr_Occurred()) SWIG_fail; | |
20817 | } | |
20818 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20819 | return resultobj; | |
20820 | fail: | |
20821 | return NULL; | |
20822 | } | |
20823 | ||
20824 | ||
20825 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20826 | PyObject *resultobj; | |
20827 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20828 | int arg2 ; | |
20829 | wxDateSpan *result; | |
20830 | PyObject * obj0 = 0 ; | |
20831 | char *kwnames[] = { | |
20832 | (char *) "self",(char *) "factor", NULL | |
20833 | }; | |
20834 | ||
20835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
20836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20837 | { | |
20838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20839 | { | |
20840 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
20841 | result = (wxDateSpan *) &_result_ref; | |
20842 | } | |
20843 | ||
20844 | wxPyEndAllowThreads(__tstate); | |
20845 | if (PyErr_Occurred()) SWIG_fail; | |
20846 | } | |
20847 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20848 | return resultobj; | |
20849 | fail: | |
20850 | return NULL; | |
20851 | } | |
20852 | ||
20853 | ||
20854 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20855 | PyObject *resultobj; | |
20856 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20857 | wxDateSpan *arg2 = 0 ; | |
20858 | wxDateSpan *result; | |
20859 | PyObject * obj0 = 0 ; | |
20860 | PyObject * obj1 = 0 ; | |
20861 | char *kwnames[] = { | |
20862 | (char *) "self",(char *) "other", NULL | |
20863 | }; | |
20864 | ||
20865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
20866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20867 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20868 | if (arg2 == NULL) { | |
20869 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20870 | } | |
20871 | { | |
20872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20873 | { | |
20874 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
20875 | result = (wxDateSpan *) &_result_ref; | |
20876 | } | |
20877 | ||
20878 | wxPyEndAllowThreads(__tstate); | |
20879 | if (PyErr_Occurred()) SWIG_fail; | |
20880 | } | |
20881 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20882 | return resultobj; | |
20883 | fail: | |
20884 | return NULL; | |
20885 | } | |
20886 | ||
20887 | ||
20888 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20889 | PyObject *resultobj; | |
20890 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20891 | wxDateSpan *arg2 = 0 ; | |
20892 | wxDateSpan *result; | |
20893 | PyObject * obj0 = 0 ; | |
20894 | PyObject * obj1 = 0 ; | |
20895 | char *kwnames[] = { | |
20896 | (char *) "self",(char *) "other", NULL | |
20897 | }; | |
20898 | ||
20899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
20900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20901 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20902 | if (arg2 == NULL) { | |
20903 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20904 | } | |
20905 | { | |
20906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20907 | { | |
20908 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
20909 | result = (wxDateSpan *) &_result_ref; | |
20910 | } | |
20911 | ||
20912 | wxPyEndAllowThreads(__tstate); | |
20913 | if (PyErr_Occurred()) SWIG_fail; | |
20914 | } | |
20915 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20916 | return resultobj; | |
20917 | fail: | |
20918 | return NULL; | |
20919 | } | |
20920 | ||
20921 | ||
20922 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20923 | PyObject *resultobj; | |
20924 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20925 | wxDateSpan *result; | |
20926 | PyObject * obj0 = 0 ; | |
20927 | char *kwnames[] = { | |
20928 | (char *) "self", NULL | |
20929 | }; | |
20930 | ||
20931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
20932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20933 | { | |
20934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20935 | { | |
20936 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
20937 | result = (wxDateSpan *) &_result_ref; | |
20938 | } | |
20939 | ||
20940 | wxPyEndAllowThreads(__tstate); | |
20941 | if (PyErr_Occurred()) SWIG_fail; | |
20942 | } | |
20943 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20944 | return resultobj; | |
20945 | fail: | |
20946 | return NULL; | |
20947 | } | |
20948 | ||
20949 | ||
20950 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20951 | PyObject *resultobj; | |
20952 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20953 | int arg2 ; | |
20954 | wxDateSpan *result; | |
20955 | PyObject * obj0 = 0 ; | |
20956 | char *kwnames[] = { | |
20957 | (char *) "self",(char *) "factor", NULL | |
20958 | }; | |
20959 | ||
20960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
20961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20962 | { | |
20963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20964 | { | |
20965 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
20966 | result = (wxDateSpan *) &_result_ref; | |
20967 | } | |
20968 | ||
20969 | wxPyEndAllowThreads(__tstate); | |
20970 | if (PyErr_Occurred()) SWIG_fail; | |
20971 | } | |
20972 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20973 | return resultobj; | |
20974 | fail: | |
20975 | return NULL; | |
20976 | } | |
20977 | ||
20978 | ||
20979 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20980 | PyObject *resultobj; | |
20981 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20982 | wxDateSpan *arg2 = 0 ; | |
20983 | wxDateSpan result; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | PyObject * obj1 = 0 ; | |
20986 | char *kwnames[] = { | |
20987 | (char *) "self",(char *) "other", NULL | |
20988 | }; | |
20989 | ||
20990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
20991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20993 | if (arg2 == NULL) { | |
20994 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20995 | } | |
20996 | { | |
20997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20998 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
20999 | ||
21000 | wxPyEndAllowThreads(__tstate); | |
21001 | if (PyErr_Occurred()) SWIG_fail; | |
21002 | } | |
21003 | { | |
21004 | wxDateSpan * resultptr; | |
21005 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21006 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21007 | } | |
21008 | return resultobj; | |
21009 | fail: | |
21010 | return NULL; | |
21011 | } | |
21012 | ||
21013 | ||
21014 | static PyObject *_wrap_DateSpan___sub__(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___sub__",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 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
21034 | ||
21035 | wxPyEndAllowThreads(__tstate); | |
21036 | if (PyErr_Occurred()) SWIG_fail; | |
21037 | } | |
21038 | { | |
21039 | wxDateSpan * resultptr; | |
21040 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21041 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21042 | } | |
21043 | return resultobj; | |
21044 | fail: | |
21045 | return NULL; | |
21046 | } | |
21047 | ||
21048 | ||
21049 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21050 | PyObject *resultobj; | |
21051 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21052 | int arg2 ; | |
21053 | wxDateSpan result; | |
21054 | PyObject * obj0 = 0 ; | |
21055 | char *kwnames[] = { | |
21056 | (char *) "self",(char *) "n", NULL | |
21057 | }; | |
21058 | ||
21059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
21060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21061 | { | |
21062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21063 | result = wxDateSpan___mul__(arg1,arg2); | |
21064 | ||
21065 | wxPyEndAllowThreads(__tstate); | |
21066 | if (PyErr_Occurred()) SWIG_fail; | |
21067 | } | |
21068 | { | |
21069 | wxDateSpan * resultptr; | |
21070 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21071 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21072 | } | |
21073 | return resultobj; | |
21074 | fail: | |
21075 | return NULL; | |
21076 | } | |
21077 | ||
21078 | ||
21079 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21080 | PyObject *resultobj; | |
21081 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21082 | int arg2 ; | |
21083 | wxDateSpan result; | |
21084 | PyObject * obj0 = 0 ; | |
21085 | char *kwnames[] = { | |
21086 | (char *) "self",(char *) "n", NULL | |
21087 | }; | |
21088 | ||
21089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
21090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21091 | { | |
21092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21093 | result = wxDateSpan___rmul__(arg1,arg2); | |
21094 | ||
21095 | wxPyEndAllowThreads(__tstate); | |
21096 | if (PyErr_Occurred()) SWIG_fail; | |
21097 | } | |
21098 | { | |
21099 | wxDateSpan * resultptr; | |
21100 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21101 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21102 | } | |
21103 | return resultobj; | |
21104 | fail: | |
21105 | return NULL; | |
21106 | } | |
21107 | ||
21108 | ||
21109 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21110 | PyObject *resultobj; | |
21111 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21112 | wxDateSpan *arg2 = 0 ; | |
21113 | bool result; | |
21114 | PyObject * obj0 = 0 ; | |
21115 | PyObject * obj1 = 0 ; | |
21116 | char *kwnames[] = { | |
21117 | (char *) "self",(char *) "other", NULL | |
21118 | }; | |
21119 | ||
21120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21122 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21123 | if (arg2 == NULL) { | |
21124 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21125 | } | |
21126 | { | |
21127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21128 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
21129 | ||
21130 | wxPyEndAllowThreads(__tstate); | |
21131 | if (PyErr_Occurred()) SWIG_fail; | |
21132 | } | |
21133 | resultobj = PyInt_FromLong((long)result); | |
21134 | return resultobj; | |
21135 | fail: | |
21136 | return NULL; | |
21137 | } | |
21138 | ||
21139 | ||
21140 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21141 | PyObject *resultobj; | |
21142 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21143 | wxDateSpan *arg2 = 0 ; | |
21144 | bool result; | |
21145 | PyObject * obj0 = 0 ; | |
21146 | PyObject * obj1 = 0 ; | |
21147 | char *kwnames[] = { | |
21148 | (char *) "self",(char *) "other", NULL | |
21149 | }; | |
21150 | ||
21151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21153 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21154 | if (arg2 == NULL) { | |
21155 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21156 | } | |
21157 | { | |
21158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21159 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
21160 | ||
21161 | wxPyEndAllowThreads(__tstate); | |
21162 | if (PyErr_Occurred()) SWIG_fail; | |
21163 | } | |
21164 | resultobj = PyInt_FromLong((long)result); | |
21165 | return resultobj; | |
21166 | fail: | |
21167 | return NULL; | |
21168 | } | |
21169 | ||
21170 | ||
21171 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
21172 | PyObject *obj; | |
21173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21174 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
21175 | Py_INCREF(obj); | |
21176 | return Py_BuildValue((char *)""); | |
21177 | } | |
21178 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21179 | PyObject *resultobj; | |
21180 | long result; | |
21181 | char *kwnames[] = { | |
21182 | NULL | |
21183 | }; | |
21184 | ||
21185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
21186 | { | |
21187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21188 | result = (long)wxGetLocalTime(); | |
21189 | ||
21190 | wxPyEndAllowThreads(__tstate); | |
21191 | if (PyErr_Occurred()) SWIG_fail; | |
21192 | } | |
21193 | resultobj = PyInt_FromLong((long)result); | |
21194 | return resultobj; | |
21195 | fail: | |
21196 | return NULL; | |
21197 | } | |
21198 | ||
21199 | ||
21200 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21201 | PyObject *resultobj; | |
21202 | long result; | |
21203 | char *kwnames[] = { | |
21204 | NULL | |
21205 | }; | |
21206 | ||
21207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
21208 | { | |
21209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21210 | result = (long)wxGetUTCTime(); | |
21211 | ||
21212 | wxPyEndAllowThreads(__tstate); | |
21213 | if (PyErr_Occurred()) SWIG_fail; | |
21214 | } | |
21215 | resultobj = PyInt_FromLong((long)result); | |
21216 | return resultobj; | |
21217 | fail: | |
21218 | return NULL; | |
21219 | } | |
21220 | ||
21221 | ||
21222 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21223 | PyObject *resultobj; | |
21224 | long result; | |
21225 | char *kwnames[] = { | |
21226 | NULL | |
21227 | }; | |
21228 | ||
21229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
21230 | { | |
21231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21232 | result = (long)wxGetCurrentTime(); | |
21233 | ||
21234 | wxPyEndAllowThreads(__tstate); | |
21235 | if (PyErr_Occurred()) SWIG_fail; | |
21236 | } | |
21237 | resultobj = PyInt_FromLong((long)result); | |
21238 | return resultobj; | |
21239 | fail: | |
21240 | return NULL; | |
21241 | } | |
21242 | ||
21243 | ||
21244 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21245 | PyObject *resultobj; | |
21246 | wxLongLong result; | |
21247 | char *kwnames[] = { | |
21248 | NULL | |
21249 | }; | |
21250 | ||
21251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
21252 | { | |
21253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21254 | result = wxGetLocalTimeMillis(); | |
21255 | ||
21256 | wxPyEndAllowThreads(__tstate); | |
21257 | if (PyErr_Occurred()) SWIG_fail; | |
21258 | } | |
21259 | { | |
21260 | PyObject *hi, *lo, *shifter, *shifted; | |
21261 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
21262 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
21263 | shifter = PyLong_FromLong(32); | |
21264 | shifted = PyNumber_Lshift(hi, shifter); | |
21265 | resultobj = PyNumber_Or(shifted, lo); | |
21266 | Py_DECREF(hi); | |
21267 | Py_DECREF(lo); | |
21268 | Py_DECREF(shifter); | |
21269 | Py_DECREF(shifted); | |
21270 | } | |
21271 | return resultobj; | |
21272 | fail: | |
21273 | return NULL; | |
21274 | } | |
21275 | ||
21276 | ||
21277 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21278 | PyObject *resultobj; | |
21279 | int arg1 ; | |
21280 | wxDataFormat *result; | |
21281 | char *kwnames[] = { | |
21282 | (char *) "type", NULL | |
21283 | }; | |
21284 | ||
21285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_DataFormat",kwnames,&arg1)) goto fail; | |
21286 | { | |
21287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21288 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
21289 | ||
21290 | wxPyEndAllowThreads(__tstate); | |
21291 | if (PyErr_Occurred()) SWIG_fail; | |
21292 | } | |
21293 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21294 | return resultobj; | |
21295 | fail: | |
21296 | return NULL; | |
21297 | } | |
21298 | ||
21299 | ||
21300 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21301 | PyObject *resultobj; | |
21302 | wxString *arg1 = 0 ; | |
21303 | wxDataFormat *result; | |
423f194a | 21304 | bool temp1 = False ; |
d14a1e28 RD |
21305 | PyObject * obj0 = 0 ; |
21306 | char *kwnames[] = { | |
21307 | (char *) "format", NULL | |
21308 | }; | |
21309 | ||
21310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
21311 | { | |
21312 | arg1 = wxString_in_helper(obj0); | |
21313 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 21314 | temp1 = True; |
d14a1e28 RD |
21315 | } |
21316 | { | |
21317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21318 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
21319 | ||
21320 | wxPyEndAllowThreads(__tstate); | |
21321 | if (PyErr_Occurred()) SWIG_fail; | |
21322 | } | |
21323 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21324 | { | |
21325 | if (temp1) | |
21326 | delete arg1; | |
21327 | } | |
21328 | return resultobj; | |
21329 | fail: | |
21330 | { | |
21331 | if (temp1) | |
21332 | delete arg1; | |
21333 | } | |
21334 | return NULL; | |
21335 | } | |
21336 | ||
21337 | ||
21338 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21339 | PyObject *resultobj; | |
21340 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21341 | PyObject * obj0 = 0 ; | |
21342 | char *kwnames[] = { | |
21343 | (char *) "self", NULL | |
21344 | }; | |
21345 | ||
21346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
21347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21348 | { | |
21349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21350 | delete arg1; | |
21351 | ||
21352 | wxPyEndAllowThreads(__tstate); | |
21353 | if (PyErr_Occurred()) SWIG_fail; | |
21354 | } | |
21355 | Py_INCREF(Py_None); resultobj = Py_None; | |
21356 | return resultobj; | |
21357 | fail: | |
21358 | return NULL; | |
21359 | } | |
21360 | ||
21361 | ||
21362 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
21363 | PyObject *resultobj; | |
21364 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21365 | int arg2 ; | |
21366 | bool result; | |
21367 | PyObject * obj0 = 0 ; | |
21368 | ||
21369 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___eq__",&obj0,&arg2)) goto fail; | |
21370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21371 | { | |
21372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21373 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
21374 | ||
21375 | wxPyEndAllowThreads(__tstate); | |
21376 | if (PyErr_Occurred()) SWIG_fail; | |
21377 | } | |
21378 | resultobj = PyInt_FromLong((long)result); | |
21379 | return resultobj; | |
21380 | fail: | |
21381 | return NULL; | |
21382 | } | |
21383 | ||
21384 | ||
21385 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
21386 | PyObject *resultobj; | |
21387 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21388 | int arg2 ; | |
21389 | bool result; | |
21390 | PyObject * obj0 = 0 ; | |
21391 | ||
21392 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___ne__",&obj0,&arg2)) goto fail; | |
21393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21394 | { | |
21395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21396 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
21397 | ||
21398 | wxPyEndAllowThreads(__tstate); | |
21399 | if (PyErr_Occurred()) SWIG_fail; | |
21400 | } | |
21401 | resultobj = PyInt_FromLong((long)result); | |
21402 | return resultobj; | |
21403 | fail: | |
21404 | return NULL; | |
21405 | } | |
21406 | ||
21407 | ||
21408 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
21409 | PyObject *resultobj; | |
21410 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21411 | wxDataFormat *arg2 = 0 ; | |
21412 | bool result; | |
21413 | PyObject * obj0 = 0 ; | |
21414 | PyObject * obj1 = 0 ; | |
21415 | ||
21416 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
21417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21418 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21419 | if (arg2 == NULL) { | |
21420 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21421 | } | |
21422 | { | |
21423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21424 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
21425 | ||
21426 | wxPyEndAllowThreads(__tstate); | |
21427 | if (PyErr_Occurred()) SWIG_fail; | |
21428 | } | |
21429 | resultobj = PyInt_FromLong((long)result); | |
21430 | return resultobj; | |
21431 | fail: | |
21432 | return NULL; | |
21433 | } | |
21434 | ||
21435 | ||
21436 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
21437 | int argc; | |
21438 | PyObject *argv[3]; | |
21439 | int ii; | |
21440 | ||
21441 | argc = PyObject_Length(args); | |
21442 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21443 | argv[ii] = PyTuple_GetItem(args,ii); | |
21444 | } | |
21445 | if (argc == 2) { | |
21446 | int _v; | |
21447 | { | |
21448 | void *ptr; | |
21449 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21450 | _v = 0; | |
21451 | PyErr_Clear(); | |
21452 | } else { | |
21453 | _v = 1; | |
21454 | } | |
21455 | } | |
21456 | if (_v) { | |
21457 | { | |
21458 | void *ptr; | |
21459 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21460 | _v = 0; | |
21461 | PyErr_Clear(); | |
21462 | } else { | |
21463 | _v = 1; | |
21464 | } | |
21465 | } | |
21466 | if (_v) { | |
21467 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
21468 | } | |
21469 | } | |
21470 | } | |
21471 | if (argc == 2) { | |
21472 | int _v; | |
21473 | { | |
21474 | void *ptr; | |
21475 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21476 | _v = 0; | |
21477 | PyErr_Clear(); | |
21478 | } else { | |
21479 | _v = 1; | |
21480 | } | |
21481 | } | |
21482 | if (_v) { | |
21483 | { | |
21484 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21485 | } | |
21486 | if (_v) { | |
21487 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
21488 | } | |
21489 | } | |
21490 | } | |
21491 | ||
21492 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
21493 | return NULL; | |
21494 | } | |
21495 | ||
21496 | ||
21497 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
21498 | PyObject *resultobj; | |
21499 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21500 | wxDataFormat *arg2 = 0 ; | |
21501 | bool result; | |
21502 | PyObject * obj0 = 0 ; | |
21503 | PyObject * obj1 = 0 ; | |
21504 | ||
21505 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
21506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21507 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21508 | if (arg2 == NULL) { | |
21509 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21510 | } | |
21511 | { | |
21512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21513 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
21514 | ||
21515 | wxPyEndAllowThreads(__tstate); | |
21516 | if (PyErr_Occurred()) SWIG_fail; | |
21517 | } | |
21518 | resultobj = PyInt_FromLong((long)result); | |
21519 | return resultobj; | |
21520 | fail: | |
21521 | return NULL; | |
21522 | } | |
21523 | ||
21524 | ||
21525 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
21526 | int argc; | |
21527 | PyObject *argv[3]; | |
21528 | int ii; | |
21529 | ||
21530 | argc = PyObject_Length(args); | |
21531 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21532 | argv[ii] = PyTuple_GetItem(args,ii); | |
21533 | } | |
21534 | if (argc == 2) { | |
21535 | int _v; | |
21536 | { | |
21537 | void *ptr; | |
21538 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21539 | _v = 0; | |
21540 | PyErr_Clear(); | |
21541 | } else { | |
21542 | _v = 1; | |
21543 | } | |
21544 | } | |
21545 | if (_v) { | |
21546 | { | |
21547 | void *ptr; | |
21548 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21549 | _v = 0; | |
21550 | PyErr_Clear(); | |
21551 | } else { | |
21552 | _v = 1; | |
21553 | } | |
21554 | } | |
21555 | if (_v) { | |
21556 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
21557 | } | |
21558 | } | |
21559 | } | |
21560 | if (argc == 2) { | |
21561 | int _v; | |
21562 | { | |
21563 | void *ptr; | |
21564 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21565 | _v = 0; | |
21566 | PyErr_Clear(); | |
21567 | } else { | |
21568 | _v = 1; | |
21569 | } | |
21570 | } | |
21571 | if (_v) { | |
21572 | { | |
21573 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21574 | } | |
21575 | if (_v) { | |
21576 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
21577 | } | |
21578 | } | |
21579 | } | |
21580 | ||
21581 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
21582 | return NULL; | |
21583 | } | |
21584 | ||
21585 | ||
21586 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21587 | PyObject *resultobj; | |
21588 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21589 | int arg2 ; | |
21590 | PyObject * obj0 = 0 ; | |
21591 | char *kwnames[] = { | |
21592 | (char *) "self",(char *) "format", NULL | |
21593 | }; | |
21594 | ||
21595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DataFormat_SetType",kwnames,&obj0,&arg2)) goto fail; | |
21596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21597 | { | |
21598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21599 | (arg1)->SetType((wxDataFormatId )arg2); | |
21600 | ||
21601 | wxPyEndAllowThreads(__tstate); | |
21602 | if (PyErr_Occurred()) SWIG_fail; | |
21603 | } | |
21604 | Py_INCREF(Py_None); resultobj = Py_None; | |
21605 | return resultobj; | |
21606 | fail: | |
21607 | return NULL; | |
21608 | } | |
21609 | ||
21610 | ||
21611 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21612 | PyObject *resultobj; | |
21613 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21614 | int result; | |
21615 | PyObject * obj0 = 0 ; | |
21616 | char *kwnames[] = { | |
21617 | (char *) "self", NULL | |
21618 | }; | |
21619 | ||
21620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
21621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21622 | { | |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21624 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
21625 | ||
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
21629 | resultobj = PyInt_FromLong((long)result); | |
21630 | return resultobj; | |
21631 | fail: | |
21632 | return NULL; | |
21633 | } | |
21634 | ||
21635 | ||
21636 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21637 | PyObject *resultobj; | |
21638 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21639 | wxString result; | |
21640 | PyObject * obj0 = 0 ; | |
21641 | char *kwnames[] = { | |
21642 | (char *) "self", NULL | |
21643 | }; | |
21644 | ||
21645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
21646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21647 | { | |
21648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21649 | result = ((wxDataFormat const *)arg1)->GetId(); | |
21650 | ||
21651 | wxPyEndAllowThreads(__tstate); | |
21652 | if (PyErr_Occurred()) SWIG_fail; | |
21653 | } | |
21654 | { | |
21655 | #if wxUSE_UNICODE | |
21656 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21657 | #else | |
21658 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21659 | #endif | |
21660 | } | |
21661 | return resultobj; | |
21662 | fail: | |
21663 | return NULL; | |
21664 | } | |
21665 | ||
21666 | ||
21667 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21668 | PyObject *resultobj; | |
21669 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21670 | wxString *arg2 = 0 ; | |
423f194a | 21671 | bool temp2 = False ; |
d14a1e28 RD |
21672 | PyObject * obj0 = 0 ; |
21673 | PyObject * obj1 = 0 ; | |
21674 | char *kwnames[] = { | |
21675 | (char *) "self",(char *) "format", NULL | |
21676 | }; | |
21677 | ||
21678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
21679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21680 | { | |
21681 | arg2 = wxString_in_helper(obj1); | |
21682 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21683 | temp2 = True; |
d14a1e28 RD |
21684 | } |
21685 | { | |
21686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21687 | (arg1)->SetId((wxString const &)*arg2); | |
21688 | ||
21689 | wxPyEndAllowThreads(__tstate); | |
21690 | if (PyErr_Occurred()) SWIG_fail; | |
21691 | } | |
21692 | Py_INCREF(Py_None); resultobj = Py_None; | |
21693 | { | |
21694 | if (temp2) | |
21695 | delete arg2; | |
21696 | } | |
21697 | return resultobj; | |
21698 | fail: | |
21699 | { | |
21700 | if (temp2) | |
21701 | delete arg2; | |
21702 | } | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
21707 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
21708 | PyObject *obj; | |
21709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21710 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
21711 | Py_INCREF(obj); | |
21712 | return Py_BuildValue((char *)""); | |
21713 | } | |
21714 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
21715 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
21716 | return 1; | |
21717 | } | |
21718 | ||
21719 | ||
21720 | static PyObject *_wrap_FormatInvalid_get() { | |
21721 | PyObject *pyobj; | |
21722 | ||
21723 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
21724 | return pyobj; | |
21725 | } | |
21726 | ||
21727 | ||
21728 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21729 | PyObject *resultobj; | |
21730 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21731 | PyObject * obj0 = 0 ; | |
21732 | char *kwnames[] = { | |
21733 | (char *) "self", NULL | |
21734 | }; | |
21735 | ||
21736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
21737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21738 | { | |
21739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21740 | delete arg1; | |
21741 | ||
21742 | wxPyEndAllowThreads(__tstate); | |
21743 | if (PyErr_Occurred()) SWIG_fail; | |
21744 | } | |
21745 | Py_INCREF(Py_None); resultobj = Py_None; | |
21746 | return resultobj; | |
21747 | fail: | |
21748 | return NULL; | |
21749 | } | |
21750 | ||
21751 | ||
21752 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21753 | PyObject *resultobj; | |
21754 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21755 | int arg2 = (int) wxDataObject::Get ; | |
21756 | SwigValueWrapper< wxDataFormat > result; | |
21757 | PyObject * obj0 = 0 ; | |
21758 | char *kwnames[] = { | |
21759 | (char *) "self",(char *) "dir", NULL | |
21760 | }; | |
21761 | ||
21762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetPreferredFormat",kwnames,&obj0,&arg2)) goto fail; | |
21763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21764 | { | |
21765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21766 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
21767 | ||
21768 | wxPyEndAllowThreads(__tstate); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | } | |
21771 | { | |
21772 | wxDataFormat * resultptr; | |
21773 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
21774 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
21775 | } | |
21776 | return resultobj; | |
21777 | fail: | |
21778 | return NULL; | |
21779 | } | |
21780 | ||
21781 | ||
21782 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21783 | PyObject *resultobj; | |
21784 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21785 | int arg2 = (int) wxDataObject::Get ; | |
21786 | size_t result; | |
21787 | PyObject * obj0 = 0 ; | |
21788 | char *kwnames[] = { | |
21789 | (char *) "self",(char *) "dir", NULL | |
21790 | }; | |
21791 | ||
21792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetFormatCount",kwnames,&obj0,&arg2)) goto fail; | |
21793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21794 | { | |
21795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21796 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
21797 | ||
21798 | wxPyEndAllowThreads(__tstate); | |
21799 | if (PyErr_Occurred()) SWIG_fail; | |
21800 | } | |
21801 | resultobj = PyInt_FromLong((long)result); | |
21802 | return resultobj; | |
21803 | fail: | |
21804 | return NULL; | |
21805 | } | |
21806 | ||
21807 | ||
21808 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21809 | PyObject *resultobj; | |
21810 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21811 | wxDataFormat *arg2 = 0 ; | |
21812 | int arg3 = (int) wxDataObject::Get ; | |
21813 | bool result; | |
21814 | PyObject * obj0 = 0 ; | |
21815 | PyObject * obj1 = 0 ; | |
21816 | char *kwnames[] = { | |
21817 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
21818 | }; | |
21819 | ||
21820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_IsSupported",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
21821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21822 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21823 | if (arg2 == NULL) { | |
21824 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21825 | } | |
21826 | { | |
21827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21828 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
21829 | ||
21830 | wxPyEndAllowThreads(__tstate); | |
21831 | if (PyErr_Occurred()) SWIG_fail; | |
21832 | } | |
21833 | resultobj = PyInt_FromLong((long)result); | |
21834 | return resultobj; | |
21835 | fail: | |
21836 | return NULL; | |
21837 | } | |
21838 | ||
21839 | ||
21840 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21841 | PyObject *resultobj; | |
21842 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21843 | wxDataFormat *arg2 = 0 ; | |
21844 | size_t result; | |
21845 | PyObject * obj0 = 0 ; | |
21846 | PyObject * obj1 = 0 ; | |
21847 | char *kwnames[] = { | |
21848 | (char *) "self",(char *) "format", NULL | |
21849 | }; | |
21850 | ||
21851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
21852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21853 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21854 | if (arg2 == NULL) { | |
21855 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21856 | } | |
21857 | { | |
21858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21859 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
21860 | ||
21861 | wxPyEndAllowThreads(__tstate); | |
21862 | if (PyErr_Occurred()) SWIG_fail; | |
21863 | } | |
21864 | resultobj = PyInt_FromLong((long)result); | |
21865 | return resultobj; | |
21866 | fail: | |
21867 | return NULL; | |
21868 | } | |
21869 | ||
21870 | ||
21871 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21872 | PyObject *resultobj; | |
21873 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21874 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
21875 | int arg3 = (int) wxDataObject::Get ; | |
21876 | PyObject * obj0 = 0 ; | |
21877 | PyObject * obj1 = 0 ; | |
21878 | char *kwnames[] = { | |
21879 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
21880 | }; | |
21881 | ||
21882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
21883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21884 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21885 | { | |
21886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21887 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
21888 | ||
21889 | wxPyEndAllowThreads(__tstate); | |
21890 | if (PyErr_Occurred()) SWIG_fail; | |
21891 | } | |
21892 | Py_INCREF(Py_None); resultobj = Py_None; | |
21893 | return resultobj; | |
21894 | fail: | |
21895 | return NULL; | |
21896 | } | |
21897 | ||
21898 | ||
21899 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21900 | PyObject *resultobj; | |
21901 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21902 | wxDataFormat *arg2 = 0 ; | |
21903 | void *arg3 = (void *) 0 ; | |
21904 | bool result; | |
21905 | PyObject * obj0 = 0 ; | |
21906 | PyObject * obj1 = 0 ; | |
21907 | PyObject * obj2 = 0 ; | |
21908 | char *kwnames[] = { | |
21909 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
21910 | }; | |
21911 | ||
21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21914 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21915 | if (arg2 == NULL) { | |
21916 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21917 | } | |
21918 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21919 | { | |
21920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21921 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
21922 | ||
21923 | wxPyEndAllowThreads(__tstate); | |
21924 | if (PyErr_Occurred()) SWIG_fail; | |
21925 | } | |
21926 | resultobj = PyInt_FromLong((long)result); | |
21927 | return resultobj; | |
21928 | fail: | |
21929 | return NULL; | |
21930 | } | |
21931 | ||
21932 | ||
21933 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21934 | PyObject *resultobj; | |
21935 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21936 | wxDataFormat *arg2 = 0 ; | |
21937 | size_t arg3 ; | |
21938 | void *arg4 = (void *) 0 ; | |
21939 | bool result; | |
21940 | PyObject * obj0 = 0 ; | |
21941 | PyObject * obj1 = 0 ; | |
21942 | PyObject * obj2 = 0 ; | |
21943 | PyObject * obj3 = 0 ; | |
21944 | char *kwnames[] = { | |
21945 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
21946 | }; | |
21947 | ||
21948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21950 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21951 | if (arg2 == NULL) { | |
21952 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21953 | } | |
21954 | arg3 = (size_t) PyInt_AsLong(obj2); | |
21955 | if (PyErr_Occurred()) SWIG_fail; | |
21956 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21957 | { | |
21958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21959 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
21960 | ||
21961 | wxPyEndAllowThreads(__tstate); | |
21962 | if (PyErr_Occurred()) SWIG_fail; | |
21963 | } | |
21964 | resultobj = PyInt_FromLong((long)result); | |
21965 | return resultobj; | |
21966 | fail: | |
21967 | return NULL; | |
21968 | } | |
21969 | ||
21970 | ||
21971 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
21972 | PyObject *obj; | |
21973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21974 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
21975 | Py_INCREF(obj); | |
21976 | return Py_BuildValue((char *)""); | |
21977 | } | |
21978 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21979 | PyObject *resultobj; | |
21980 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
21981 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
21982 | wxDataObjectSimple *result; | |
21983 | PyObject * obj0 = 0 ; | |
21984 | char *kwnames[] = { | |
21985 | (char *) "format", NULL | |
21986 | }; | |
21987 | ||
21988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
21989 | if (obj0) { | |
21990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21991 | if (arg1 == NULL) { | |
21992 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21993 | } | |
21994 | } | |
21995 | { | |
21996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21997 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
21998 | ||
21999 | wxPyEndAllowThreads(__tstate); | |
22000 | if (PyErr_Occurred()) SWIG_fail; | |
22001 | } | |
22002 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
22003 | return resultobj; | |
22004 | fail: | |
22005 | return NULL; | |
22006 | } | |
22007 | ||
22008 | ||
22009 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22010 | PyObject *resultobj; | |
22011 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22012 | wxDataFormat *result; | |
22013 | PyObject * obj0 = 0 ; | |
22014 | char *kwnames[] = { | |
22015 | (char *) "self", NULL | |
22016 | }; | |
22017 | ||
22018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
22019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22020 | { | |
22021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22022 | { | |
22023 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
22024 | result = (wxDataFormat *) &_result_ref; | |
22025 | } | |
22026 | ||
22027 | wxPyEndAllowThreads(__tstate); | |
22028 | if (PyErr_Occurred()) SWIG_fail; | |
22029 | } | |
22030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
22031 | return resultobj; | |
22032 | fail: | |
22033 | return NULL; | |
22034 | } | |
22035 | ||
22036 | ||
22037 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22038 | PyObject *resultobj; | |
22039 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22040 | wxDataFormat *arg2 = 0 ; | |
22041 | PyObject * obj0 = 0 ; | |
22042 | PyObject * obj1 = 0 ; | |
22043 | char *kwnames[] = { | |
22044 | (char *) "self",(char *) "format", NULL | |
22045 | }; | |
22046 | ||
22047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
22048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22049 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22050 | if (arg2 == NULL) { | |
22051 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22052 | } | |
22053 | { | |
22054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22055 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
22056 | ||
22057 | wxPyEndAllowThreads(__tstate); | |
22058 | if (PyErr_Occurred()) SWIG_fail; | |
22059 | } | |
22060 | Py_INCREF(Py_None); resultobj = Py_None; | |
22061 | return resultobj; | |
22062 | fail: | |
22063 | return NULL; | |
22064 | } | |
22065 | ||
22066 | ||
22067 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22068 | PyObject *obj; | |
22069 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22070 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
22071 | Py_INCREF(obj); | |
22072 | return Py_BuildValue((char *)""); | |
22073 | } | |
22074 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22075 | PyObject *resultobj; | |
22076 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22077 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22078 | wxPyDataObjectSimple *result; | |
22079 | PyObject * obj0 = 0 ; | |
22080 | char *kwnames[] = { | |
22081 | (char *) "format", NULL | |
22082 | }; | |
22083 | ||
22084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
22085 | if (obj0) { | |
22086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22087 | if (arg1 == NULL) { | |
22088 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22089 | } | |
22090 | } | |
22091 | { | |
22092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22093 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
22094 | ||
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
22098 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
22099 | return resultobj; | |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
22105 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22106 | PyObject *resultobj; | |
22107 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
22108 | PyObject *arg2 = (PyObject *) 0 ; | |
22109 | PyObject *arg3 = (PyObject *) 0 ; | |
22110 | PyObject * obj0 = 0 ; | |
22111 | PyObject * obj1 = 0 ; | |
22112 | PyObject * obj2 = 0 ; | |
22113 | char *kwnames[] = { | |
22114 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22115 | }; | |
22116 | ||
22117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22119 | arg2 = obj1; | |
22120 | arg3 = obj2; | |
22121 | { | |
22122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22123 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22124 | ||
22125 | wxPyEndAllowThreads(__tstate); | |
22126 | if (PyErr_Occurred()) SWIG_fail; | |
22127 | } | |
22128 | Py_INCREF(Py_None); resultobj = Py_None; | |
22129 | return resultobj; | |
22130 | fail: | |
22131 | return NULL; | |
22132 | } | |
22133 | ||
22134 | ||
22135 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22136 | PyObject *obj; | |
22137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22138 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
22139 | Py_INCREF(obj); | |
22140 | return Py_BuildValue((char *)""); | |
22141 | } | |
22142 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22143 | PyObject *resultobj; | |
22144 | wxDataObjectComposite *result; | |
22145 | char *kwnames[] = { | |
22146 | NULL | |
22147 | }; | |
22148 | ||
22149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
22150 | { | |
22151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22152 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
22153 | ||
22154 | wxPyEndAllowThreads(__tstate); | |
22155 | if (PyErr_Occurred()) SWIG_fail; | |
22156 | } | |
22157 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
22158 | return resultobj; | |
22159 | fail: | |
22160 | return NULL; | |
22161 | } | |
22162 | ||
22163 | ||
22164 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22165 | PyObject *resultobj; | |
22166 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
22167 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
423f194a | 22168 | int arg3 = (int) False ; |
d14a1e28 RD |
22169 | PyObject * obj0 = 0 ; |
22170 | PyObject * obj1 = 0 ; | |
22171 | char *kwnames[] = { | |
22172 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
22173 | }; | |
22174 | ||
22175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObjectComposite_Add",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22178 | { | |
22179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22180 | (arg1)->Add(arg2,arg3); | |
22181 | ||
22182 | wxPyEndAllowThreads(__tstate); | |
22183 | if (PyErr_Occurred()) SWIG_fail; | |
22184 | } | |
22185 | Py_INCREF(Py_None); resultobj = Py_None; | |
22186 | return resultobj; | |
22187 | fail: | |
22188 | return NULL; | |
22189 | } | |
22190 | ||
22191 | ||
22192 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
22193 | PyObject *obj; | |
22194 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22195 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
22196 | Py_INCREF(obj); | |
22197 | return Py_BuildValue((char *)""); | |
22198 | } | |
22199 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22200 | PyObject *resultobj; | |
22201 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22202 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22203 | wxTextDataObject *result; | |
423f194a | 22204 | bool temp1 = False ; |
d14a1e28 RD |
22205 | PyObject * obj0 = 0 ; |
22206 | char *kwnames[] = { | |
22207 | (char *) "text", NULL | |
22208 | }; | |
22209 | ||
22210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
22211 | if (obj0) { | |
22212 | { | |
22213 | arg1 = wxString_in_helper(obj0); | |
22214 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 22215 | temp1 = True; |
d14a1e28 RD |
22216 | } |
22217 | } | |
22218 | { | |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
22221 | ||
22222 | wxPyEndAllowThreads(__tstate); | |
22223 | if (PyErr_Occurred()) SWIG_fail; | |
22224 | } | |
22225 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
22226 | { | |
22227 | if (temp1) | |
22228 | delete arg1; | |
22229 | } | |
22230 | return resultobj; | |
22231 | fail: | |
22232 | { | |
22233 | if (temp1) | |
22234 | delete arg1; | |
22235 | } | |
22236 | return NULL; | |
22237 | } | |
22238 | ||
22239 | ||
22240 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22241 | PyObject *resultobj; | |
22242 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22243 | size_t result; | |
22244 | PyObject * obj0 = 0 ; | |
22245 | char *kwnames[] = { | |
22246 | (char *) "self", NULL | |
22247 | }; | |
22248 | ||
22249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
22250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22251 | { | |
22252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22253 | result = (size_t)(arg1)->GetTextLength(); | |
22254 | ||
22255 | wxPyEndAllowThreads(__tstate); | |
22256 | if (PyErr_Occurred()) SWIG_fail; | |
22257 | } | |
22258 | resultobj = PyInt_FromLong((long)result); | |
22259 | return resultobj; | |
22260 | fail: | |
22261 | return NULL; | |
22262 | } | |
22263 | ||
22264 | ||
22265 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22266 | PyObject *resultobj; | |
22267 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22268 | wxString result; | |
22269 | PyObject * obj0 = 0 ; | |
22270 | char *kwnames[] = { | |
22271 | (char *) "self", NULL | |
22272 | }; | |
22273 | ||
22274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
22275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22276 | { | |
22277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22278 | result = (arg1)->GetText(); | |
22279 | ||
22280 | wxPyEndAllowThreads(__tstate); | |
22281 | if (PyErr_Occurred()) SWIG_fail; | |
22282 | } | |
22283 | { | |
22284 | #if wxUSE_UNICODE | |
22285 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22286 | #else | |
22287 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22288 | #endif | |
22289 | } | |
22290 | return resultobj; | |
22291 | fail: | |
22292 | return NULL; | |
22293 | } | |
22294 | ||
22295 | ||
22296 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22297 | PyObject *resultobj; | |
22298 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22299 | wxString *arg2 = 0 ; | |
423f194a | 22300 | bool temp2 = False ; |
d14a1e28 RD |
22301 | PyObject * obj0 = 0 ; |
22302 | PyObject * obj1 = 0 ; | |
22303 | char *kwnames[] = { | |
22304 | (char *) "self",(char *) "text", NULL | |
22305 | }; | |
22306 | ||
22307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
22308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22309 | { | |
22310 | arg2 = wxString_in_helper(obj1); | |
22311 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22312 | temp2 = True; |
d14a1e28 RD |
22313 | } |
22314 | { | |
22315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22316 | (arg1)->SetText((wxString const &)*arg2); | |
22317 | ||
22318 | wxPyEndAllowThreads(__tstate); | |
22319 | if (PyErr_Occurred()) SWIG_fail; | |
22320 | } | |
22321 | Py_INCREF(Py_None); resultobj = Py_None; | |
22322 | { | |
22323 | if (temp2) | |
22324 | delete arg2; | |
22325 | } | |
22326 | return resultobj; | |
22327 | fail: | |
22328 | { | |
22329 | if (temp2) | |
22330 | delete arg2; | |
22331 | } | |
22332 | return NULL; | |
22333 | } | |
22334 | ||
22335 | ||
22336 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22337 | PyObject *obj; | |
22338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22339 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
22340 | Py_INCREF(obj); | |
22341 | return Py_BuildValue((char *)""); | |
22342 | } | |
22343 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22344 | PyObject *resultobj; | |
22345 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22346 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22347 | wxPyTextDataObject *result; | |
423f194a | 22348 | bool temp1 = False ; |
d14a1e28 RD |
22349 | PyObject * obj0 = 0 ; |
22350 | char *kwnames[] = { | |
22351 | (char *) "text", NULL | |
22352 | }; | |
22353 | ||
22354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
22355 | if (obj0) { | |
22356 | { | |
22357 | arg1 = wxString_in_helper(obj0); | |
22358 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 22359 | temp1 = True; |
d14a1e28 RD |
22360 | } |
22361 | } | |
22362 | { | |
22363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22364 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
22365 | ||
22366 | wxPyEndAllowThreads(__tstate); | |
22367 | if (PyErr_Occurred()) SWIG_fail; | |
22368 | } | |
22369 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
22370 | { | |
22371 | if (temp1) | |
22372 | delete arg1; | |
22373 | } | |
22374 | return resultobj; | |
22375 | fail: | |
22376 | { | |
22377 | if (temp1) | |
22378 | delete arg1; | |
22379 | } | |
22380 | return NULL; | |
22381 | } | |
22382 | ||
22383 | ||
22384 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22385 | PyObject *resultobj; | |
22386 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
22387 | PyObject *arg2 = (PyObject *) 0 ; | |
22388 | PyObject *arg3 = (PyObject *) 0 ; | |
22389 | PyObject * obj0 = 0 ; | |
22390 | PyObject * obj1 = 0 ; | |
22391 | PyObject * obj2 = 0 ; | |
22392 | char *kwnames[] = { | |
22393 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22394 | }; | |
22395 | ||
22396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22398 | arg2 = obj1; | |
22399 | arg3 = obj2; | |
22400 | { | |
22401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22402 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22403 | ||
22404 | wxPyEndAllowThreads(__tstate); | |
22405 | if (PyErr_Occurred()) SWIG_fail; | |
22406 | } | |
22407 | Py_INCREF(Py_None); resultobj = Py_None; | |
22408 | return resultobj; | |
22409 | fail: | |
22410 | return NULL; | |
22411 | } | |
22412 | ||
22413 | ||
22414 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22415 | PyObject *obj; | |
22416 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22417 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
22418 | Py_INCREF(obj); | |
22419 | return Py_BuildValue((char *)""); | |
22420 | } | |
22421 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22422 | PyObject *resultobj; | |
22423 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22424 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22425 | wxBitmapDataObject *result; | |
22426 | PyObject * obj0 = 0 ; | |
22427 | char *kwnames[] = { | |
22428 | (char *) "bitmap", NULL | |
22429 | }; | |
22430 | ||
22431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
22432 | if (obj0) { | |
22433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22434 | if (arg1 == NULL) { | |
22435 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22436 | } | |
22437 | } | |
22438 | { | |
22439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22440 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
22441 | ||
22442 | wxPyEndAllowThreads(__tstate); | |
22443 | if (PyErr_Occurred()) SWIG_fail; | |
22444 | } | |
22445 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
22446 | return resultobj; | |
22447 | fail: | |
22448 | return NULL; | |
22449 | } | |
22450 | ||
22451 | ||
22452 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22453 | PyObject *resultobj; | |
22454 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22455 | wxBitmap result; | |
22456 | PyObject * obj0 = 0 ; | |
22457 | char *kwnames[] = { | |
22458 | (char *) "self", NULL | |
22459 | }; | |
22460 | ||
22461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
22462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22463 | { | |
22464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22465 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
22466 | ||
22467 | wxPyEndAllowThreads(__tstate); | |
22468 | if (PyErr_Occurred()) SWIG_fail; | |
22469 | } | |
22470 | { | |
22471 | wxBitmap * resultptr; | |
22472 | resultptr = new wxBitmap((wxBitmap &) result); | |
22473 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
22474 | } | |
22475 | return resultobj; | |
22476 | fail: | |
22477 | return NULL; | |
22478 | } | |
22479 | ||
22480 | ||
22481 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22482 | PyObject *resultobj; | |
22483 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22484 | wxBitmap *arg2 = 0 ; | |
22485 | PyObject * obj0 = 0 ; | |
22486 | PyObject * obj1 = 0 ; | |
22487 | char *kwnames[] = { | |
22488 | (char *) "self",(char *) "bitmap", NULL | |
22489 | }; | |
22490 | ||
22491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
22492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22493 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22494 | if (arg2 == NULL) { | |
22495 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22496 | } | |
22497 | { | |
22498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22499 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
22500 | ||
22501 | wxPyEndAllowThreads(__tstate); | |
22502 | if (PyErr_Occurred()) SWIG_fail; | |
22503 | } | |
22504 | Py_INCREF(Py_None); resultobj = Py_None; | |
22505 | return resultobj; | |
22506 | fail: | |
22507 | return NULL; | |
22508 | } | |
22509 | ||
22510 | ||
22511 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22512 | PyObject *obj; | |
22513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22514 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
22515 | Py_INCREF(obj); | |
22516 | return Py_BuildValue((char *)""); | |
22517 | } | |
22518 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22519 | PyObject *resultobj; | |
22520 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22521 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22522 | wxPyBitmapDataObject *result; | |
22523 | PyObject * obj0 = 0 ; | |
22524 | char *kwnames[] = { | |
22525 | (char *) "bitmap", NULL | |
22526 | }; | |
22527 | ||
22528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
22529 | if (obj0) { | |
22530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22531 | if (arg1 == NULL) { | |
22532 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22533 | } | |
22534 | } | |
22535 | { | |
22536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22537 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
22538 | ||
22539 | wxPyEndAllowThreads(__tstate); | |
22540 | if (PyErr_Occurred()) SWIG_fail; | |
22541 | } | |
22542 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
22543 | return resultobj; | |
22544 | fail: | |
22545 | return NULL; | |
22546 | } | |
22547 | ||
22548 | ||
22549 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22550 | PyObject *resultobj; | |
22551 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
22552 | PyObject *arg2 = (PyObject *) 0 ; | |
22553 | PyObject *arg3 = (PyObject *) 0 ; | |
22554 | PyObject * obj0 = 0 ; | |
22555 | PyObject * obj1 = 0 ; | |
22556 | PyObject * obj2 = 0 ; | |
22557 | char *kwnames[] = { | |
22558 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22559 | }; | |
22560 | ||
22561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22563 | arg2 = obj1; | |
22564 | arg3 = obj2; | |
22565 | { | |
22566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22567 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22568 | ||
22569 | wxPyEndAllowThreads(__tstate); | |
22570 | if (PyErr_Occurred()) SWIG_fail; | |
22571 | } | |
22572 | Py_INCREF(Py_None); resultobj = Py_None; | |
22573 | return resultobj; | |
22574 | fail: | |
22575 | return NULL; | |
22576 | } | |
22577 | ||
22578 | ||
22579 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22580 | PyObject *obj; | |
22581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22582 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
22583 | Py_INCREF(obj); | |
22584 | return Py_BuildValue((char *)""); | |
22585 | } | |
22586 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22587 | PyObject *resultobj; | |
22588 | wxFileDataObject *result; | |
22589 | char *kwnames[] = { | |
22590 | NULL | |
22591 | }; | |
22592 | ||
22593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
22594 | { | |
22595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22596 | result = (wxFileDataObject *)new wxFileDataObject(); | |
22597 | ||
22598 | wxPyEndAllowThreads(__tstate); | |
22599 | if (PyErr_Occurred()) SWIG_fail; | |
22600 | } | |
22601 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
22602 | return resultobj; | |
22603 | fail: | |
22604 | return NULL; | |
22605 | } | |
22606 | ||
22607 | ||
22608 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22609 | PyObject *resultobj; | |
22610 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
22611 | wxArrayString *result; | |
22612 | PyObject * obj0 = 0 ; | |
22613 | char *kwnames[] = { | |
22614 | (char *) "self", NULL | |
22615 | }; | |
22616 | ||
22617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
22618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22619 | { | |
22620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22621 | { | |
22622 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
22623 | result = (wxArrayString *) &_result_ref; | |
22624 | } | |
22625 | ||
22626 | wxPyEndAllowThreads(__tstate); | |
22627 | if (PyErr_Occurred()) SWIG_fail; | |
22628 | } | |
22629 | { | |
22630 | resultobj = wxArrayString2PyList_helper(*result); | |
22631 | } | |
22632 | return resultobj; | |
22633 | fail: | |
22634 | return NULL; | |
22635 | } | |
22636 | ||
22637 | ||
22638 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22639 | PyObject *resultobj; | |
22640 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
22641 | wxString *arg2 = 0 ; | |
423f194a | 22642 | bool temp2 = False ; |
d14a1e28 RD |
22643 | PyObject * obj0 = 0 ; |
22644 | PyObject * obj1 = 0 ; | |
22645 | char *kwnames[] = { | |
22646 | (char *) "self",(char *) "filename", NULL | |
22647 | }; | |
22648 | ||
22649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
22650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22651 | { | |
22652 | arg2 = wxString_in_helper(obj1); | |
22653 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22654 | temp2 = True; |
d14a1e28 RD |
22655 | } |
22656 | { | |
22657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22658 | (arg1)->AddFile((wxString const &)*arg2); | |
22659 | ||
22660 | wxPyEndAllowThreads(__tstate); | |
22661 | if (PyErr_Occurred()) SWIG_fail; | |
22662 | } | |
22663 | Py_INCREF(Py_None); resultobj = Py_None; | |
22664 | { | |
22665 | if (temp2) | |
22666 | delete arg2; | |
22667 | } | |
22668 | return resultobj; | |
22669 | fail: | |
22670 | { | |
22671 | if (temp2) | |
22672 | delete arg2; | |
22673 | } | |
22674 | return NULL; | |
22675 | } | |
22676 | ||
22677 | ||
22678 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
22679 | PyObject *obj; | |
22680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22681 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
22682 | Py_INCREF(obj); | |
22683 | return Py_BuildValue((char *)""); | |
22684 | } | |
22685 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22686 | PyObject *resultobj; | |
22687 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22688 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22689 | wxCustomDataObject *result; | |
22690 | PyObject * obj0 = 0 ; | |
22691 | char *kwnames[] = { | |
22692 | (char *) "format", NULL | |
22693 | }; | |
22694 | ||
22695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
22696 | if (obj0) { | |
22697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22698 | if (arg1 == NULL) { | |
22699 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22700 | } | |
22701 | } | |
22702 | { | |
22703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22704 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
22705 | ||
22706 | wxPyEndAllowThreads(__tstate); | |
22707 | if (PyErr_Occurred()) SWIG_fail; | |
22708 | } | |
22709 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
22710 | return resultobj; | |
22711 | fail: | |
22712 | return NULL; | |
22713 | } | |
22714 | ||
22715 | ||
22716 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22717 | PyObject *resultobj; | |
22718 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22719 | PyObject *arg2 = (PyObject *) 0 ; | |
22720 | PyObject * obj0 = 0 ; | |
22721 | PyObject * obj1 = 0 ; | |
22722 | char *kwnames[] = { | |
22723 | (char *) "self",(char *) "data", NULL | |
22724 | }; | |
22725 | ||
22726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
22727 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22728 | arg2 = obj1; | |
22729 | { | |
22730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22731 | wxCustomDataObject_TakeData(arg1,arg2); | |
22732 | ||
22733 | wxPyEndAllowThreads(__tstate); | |
22734 | if (PyErr_Occurred()) SWIG_fail; | |
22735 | } | |
22736 | Py_INCREF(Py_None); resultobj = Py_None; | |
22737 | return resultobj; | |
22738 | fail: | |
22739 | return NULL; | |
22740 | } | |
22741 | ||
22742 | ||
22743 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22744 | PyObject *resultobj; | |
22745 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22746 | PyObject *arg2 = (PyObject *) 0 ; | |
22747 | bool result; | |
22748 | PyObject * obj0 = 0 ; | |
22749 | PyObject * obj1 = 0 ; | |
22750 | char *kwnames[] = { | |
22751 | (char *) "self",(char *) "data", NULL | |
22752 | }; | |
22753 | ||
22754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
22755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22756 | arg2 = obj1; | |
22757 | { | |
22758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22759 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
22760 | ||
22761 | wxPyEndAllowThreads(__tstate); | |
22762 | if (PyErr_Occurred()) SWIG_fail; | |
22763 | } | |
22764 | resultobj = PyInt_FromLong((long)result); | |
22765 | return resultobj; | |
22766 | fail: | |
22767 | return NULL; | |
22768 | } | |
22769 | ||
22770 | ||
22771 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22772 | PyObject *resultobj; | |
22773 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22774 | size_t result; | |
22775 | PyObject * obj0 = 0 ; | |
22776 | char *kwnames[] = { | |
22777 | (char *) "self", NULL | |
22778 | }; | |
22779 | ||
22780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
22781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22782 | { | |
22783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22784 | result = (size_t)(arg1)->GetSize(); | |
22785 | ||
22786 | wxPyEndAllowThreads(__tstate); | |
22787 | if (PyErr_Occurred()) SWIG_fail; | |
22788 | } | |
22789 | resultobj = PyInt_FromLong((long)result); | |
22790 | return resultobj; | |
22791 | fail: | |
22792 | return NULL; | |
22793 | } | |
22794 | ||
22795 | ||
22796 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22797 | PyObject *resultobj; | |
22798 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22799 | PyObject *result; | |
22800 | PyObject * obj0 = 0 ; | |
22801 | char *kwnames[] = { | |
22802 | (char *) "self", NULL | |
22803 | }; | |
22804 | ||
22805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
22806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22807 | { | |
22808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22809 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
22810 | ||
22811 | wxPyEndAllowThreads(__tstate); | |
22812 | if (PyErr_Occurred()) SWIG_fail; | |
22813 | } | |
22814 | resultobj = result; | |
22815 | return resultobj; | |
22816 | fail: | |
22817 | return NULL; | |
22818 | } | |
22819 | ||
22820 | ||
22821 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
22822 | PyObject *obj; | |
22823 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22824 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
22825 | Py_INCREF(obj); | |
22826 | return Py_BuildValue((char *)""); | |
22827 | } | |
22828 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22829 | PyObject *resultobj; | |
22830 | wxURLDataObject *result; | |
22831 | char *kwnames[] = { | |
22832 | NULL | |
22833 | }; | |
22834 | ||
22835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
22836 | { | |
22837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22838 | result = (wxURLDataObject *)new wxURLDataObject(); | |
22839 | ||
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
22844 | return resultobj; | |
22845 | fail: | |
22846 | return NULL; | |
22847 | } | |
22848 | ||
22849 | ||
22850 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22851 | PyObject *resultobj; | |
22852 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
22853 | wxString result; | |
22854 | PyObject * obj0 = 0 ; | |
22855 | char *kwnames[] = { | |
22856 | (char *) "self", NULL | |
22857 | }; | |
22858 | ||
22859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
22860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22861 | { | |
22862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22863 | result = (arg1)->GetURL(); | |
22864 | ||
22865 | wxPyEndAllowThreads(__tstate); | |
22866 | if (PyErr_Occurred()) SWIG_fail; | |
22867 | } | |
22868 | { | |
22869 | #if wxUSE_UNICODE | |
22870 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22871 | #else | |
22872 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22873 | #endif | |
22874 | } | |
22875 | return resultobj; | |
22876 | fail: | |
22877 | return NULL; | |
22878 | } | |
22879 | ||
22880 | ||
22881 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22882 | PyObject *resultobj; | |
22883 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
22884 | wxString *arg2 = 0 ; | |
423f194a | 22885 | bool temp2 = False ; |
d14a1e28 RD |
22886 | PyObject * obj0 = 0 ; |
22887 | PyObject * obj1 = 0 ; | |
22888 | char *kwnames[] = { | |
22889 | (char *) "self",(char *) "url", NULL | |
22890 | }; | |
22891 | ||
22892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
22893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22894 | { | |
22895 | arg2 = wxString_in_helper(obj1); | |
22896 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22897 | temp2 = True; |
d14a1e28 RD |
22898 | } |
22899 | { | |
22900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22901 | (arg1)->SetURL((wxString const &)*arg2); | |
22902 | ||
22903 | wxPyEndAllowThreads(__tstate); | |
22904 | if (PyErr_Occurred()) SWIG_fail; | |
22905 | } | |
22906 | Py_INCREF(Py_None); resultobj = Py_None; | |
22907 | { | |
22908 | if (temp2) | |
22909 | delete arg2; | |
22910 | } | |
22911 | return resultobj; | |
22912 | fail: | |
22913 | { | |
22914 | if (temp2) | |
22915 | delete arg2; | |
22916 | } | |
22917 | return NULL; | |
22918 | } | |
22919 | ||
22920 | ||
22921 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
22922 | PyObject *obj; | |
22923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22924 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
22925 | Py_INCREF(obj); | |
22926 | return Py_BuildValue((char *)""); | |
22927 | } | |
22928 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22929 | PyObject *resultobj; | |
22930 | wxMetafileDataObject *result; | |
22931 | char *kwnames[] = { | |
22932 | NULL | |
22933 | }; | |
22934 | ||
22935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
22936 | { | |
22937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22938 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
22939 | ||
22940 | wxPyEndAllowThreads(__tstate); | |
22941 | if (PyErr_Occurred()) SWIG_fail; | |
22942 | } | |
22943 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
22944 | return resultobj; | |
22945 | fail: | |
22946 | return NULL; | |
22947 | } | |
22948 | ||
22949 | ||
22950 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22951 | PyObject *resultobj; | |
22952 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
22953 | wxMetafile *arg2 = 0 ; | |
22954 | PyObject * obj0 = 0 ; | |
22955 | PyObject * obj1 = 0 ; | |
22956 | char *kwnames[] = { | |
22957 | (char *) "self",(char *) "metafile", NULL | |
22958 | }; | |
22959 | ||
22960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
22961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22962 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMetafile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22963 | if (arg2 == NULL) { | |
22964 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22965 | } | |
22966 | { | |
22967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22968 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
22969 | ||
22970 | wxPyEndAllowThreads(__tstate); | |
22971 | if (PyErr_Occurred()) SWIG_fail; | |
22972 | } | |
22973 | Py_INCREF(Py_None); resultobj = Py_None; | |
22974 | return resultobj; | |
22975 | fail: | |
22976 | return NULL; | |
22977 | } | |
22978 | ||
22979 | ||
22980 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22981 | PyObject *resultobj; | |
22982 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
22983 | wxMetafile result; | |
22984 | PyObject * obj0 = 0 ; | |
22985 | char *kwnames[] = { | |
22986 | (char *) "self", NULL | |
22987 | }; | |
22988 | ||
22989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
22990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22991 | { | |
22992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22993 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
22994 | ||
22995 | wxPyEndAllowThreads(__tstate); | |
22996 | if (PyErr_Occurred()) SWIG_fail; | |
22997 | } | |
22998 | { | |
22999 | wxMetafile * resultptr; | |
23000 | resultptr = new wxMetafile((wxMetafile &) result); | |
23001 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxMetafile, 1); | |
23002 | } | |
23003 | return resultobj; | |
23004 | fail: | |
23005 | return NULL; | |
23006 | } | |
23007 | ||
23008 | ||
23009 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
23010 | PyObject *obj; | |
23011 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23012 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
23013 | Py_INCREF(obj); | |
23014 | return Py_BuildValue((char *)""); | |
23015 | } | |
23016 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23017 | PyObject *resultobj; | |
23018 | int arg1 ; | |
23019 | bool result; | |
23020 | char *kwnames[] = { | |
23021 | (char *) "res", NULL | |
23022 | }; | |
23023 | ||
23024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IsDragResultOk",kwnames,&arg1)) goto fail; | |
23025 | { | |
23026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23027 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
23028 | ||
23029 | wxPyEndAllowThreads(__tstate); | |
23030 | if (PyErr_Occurred()) SWIG_fail; | |
23031 | } | |
23032 | resultobj = PyInt_FromLong((long)result); | |
23033 | return resultobj; | |
23034 | fail: | |
23035 | return NULL; | |
23036 | } | |
23037 | ||
23038 | ||
23039 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23040 | PyObject *resultobj; | |
23041 | wxWindow *arg1 = (wxWindow *) NULL ; | |
23042 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
23043 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
23044 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
23045 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
23046 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
23047 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
23048 | wxPyDropSource *result; | |
23049 | PyObject * obj0 = 0 ; | |
23050 | PyObject * obj1 = 0 ; | |
23051 | PyObject * obj2 = 0 ; | |
23052 | PyObject * obj3 = 0 ; | |
23053 | char *kwnames[] = { | |
23054 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
23055 | }; | |
23056 | ||
23057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23058 | if (obj0) { | |
23059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23060 | } | |
23061 | if (obj1) { | |
23062 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23063 | if (arg2 == NULL) { | |
23064 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23065 | } | |
23066 | } | |
23067 | if (obj2) { | |
23068 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23069 | if (arg3 == NULL) { | |
23070 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23071 | } | |
23072 | } | |
23073 | if (obj3) { | |
23074 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23075 | if (arg4 == NULL) { | |
23076 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23077 | } | |
23078 | } | |
23079 | { | |
23080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23081 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
23082 | ||
23083 | wxPyEndAllowThreads(__tstate); | |
23084 | if (PyErr_Occurred()) SWIG_fail; | |
23085 | } | |
23086 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
23087 | return resultobj; | |
23088 | fail: | |
23089 | return NULL; | |
23090 | } | |
23091 | ||
23092 | ||
23093 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23094 | PyObject *resultobj; | |
23095 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23096 | PyObject *arg2 = (PyObject *) 0 ; | |
23097 | PyObject *arg3 = (PyObject *) 0 ; | |
23098 | int arg4 ; | |
23099 | PyObject * obj0 = 0 ; | |
23100 | PyObject * obj1 = 0 ; | |
23101 | PyObject * obj2 = 0 ; | |
23102 | char *kwnames[] = { | |
23103 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
23104 | }; | |
23105 | ||
23106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
23107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23108 | arg2 = obj1; | |
23109 | arg3 = obj2; | |
23110 | { | |
23111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23112 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
23113 | ||
23114 | wxPyEndAllowThreads(__tstate); | |
23115 | if (PyErr_Occurred()) SWIG_fail; | |
23116 | } | |
23117 | Py_INCREF(Py_None); resultobj = Py_None; | |
23118 | return resultobj; | |
23119 | fail: | |
23120 | return NULL; | |
23121 | } | |
23122 | ||
23123 | ||
23124 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23125 | PyObject *resultobj; | |
23126 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23127 | PyObject * obj0 = 0 ; | |
23128 | char *kwnames[] = { | |
23129 | (char *) "self", NULL | |
23130 | }; | |
23131 | ||
23132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
23133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23134 | { | |
23135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23136 | delete arg1; | |
23137 | ||
23138 | wxPyEndAllowThreads(__tstate); | |
23139 | if (PyErr_Occurred()) SWIG_fail; | |
23140 | } | |
23141 | Py_INCREF(Py_None); resultobj = Py_None; | |
23142 | return resultobj; | |
23143 | fail: | |
23144 | return NULL; | |
23145 | } | |
23146 | ||
23147 | ||
23148 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23149 | PyObject *resultobj; | |
23150 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23151 | wxDataObject *arg2 = 0 ; | |
23152 | PyObject * obj0 = 0 ; | |
23153 | PyObject * obj1 = 0 ; | |
23154 | char *kwnames[] = { | |
23155 | (char *) "self",(char *) "data", NULL | |
23156 | }; | |
23157 | ||
23158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23160 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23161 | if (arg2 == NULL) { | |
23162 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23163 | } | |
23164 | { | |
23165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23166 | (arg1)->SetData(*arg2); | |
23167 | ||
23168 | wxPyEndAllowThreads(__tstate); | |
23169 | if (PyErr_Occurred()) SWIG_fail; | |
23170 | } | |
23171 | Py_INCREF(Py_None); resultobj = Py_None; | |
23172 | return resultobj; | |
23173 | fail: | |
23174 | return NULL; | |
23175 | } | |
23176 | ||
23177 | ||
23178 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23179 | PyObject *resultobj; | |
23180 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23181 | wxDataObject *result; | |
23182 | PyObject * obj0 = 0 ; | |
23183 | char *kwnames[] = { | |
23184 | (char *) "self", NULL | |
23185 | }; | |
23186 | ||
23187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
23188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23189 | { | |
23190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23191 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23192 | ||
23193 | wxPyEndAllowThreads(__tstate); | |
23194 | if (PyErr_Occurred()) SWIG_fail; | |
23195 | } | |
23196 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23197 | return resultobj; | |
23198 | fail: | |
23199 | return NULL; | |
23200 | } | |
23201 | ||
23202 | ||
23203 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23204 | PyObject *resultobj; | |
23205 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23206 | int arg2 ; | |
23207 | wxCursor *arg3 = 0 ; | |
23208 | PyObject * obj0 = 0 ; | |
23209 | PyObject * obj2 = 0 ; | |
23210 | char *kwnames[] = { | |
23211 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
23212 | }; | |
23213 | ||
23214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:DropSource_SetCursor",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
23215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23216 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23217 | if (arg3 == NULL) { | |
23218 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23219 | } | |
23220 | { | |
23221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23222 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
23223 | ||
23224 | wxPyEndAllowThreads(__tstate); | |
23225 | if (PyErr_Occurred()) SWIG_fail; | |
23226 | } | |
23227 | Py_INCREF(Py_None); resultobj = Py_None; | |
23228 | return resultobj; | |
23229 | fail: | |
23230 | return NULL; | |
23231 | } | |
23232 | ||
23233 | ||
23234 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23235 | PyObject *resultobj; | |
23236 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23237 | int arg2 = (int) wxDrag_CopyOnly ; | |
23238 | int result; | |
23239 | PyObject * obj0 = 0 ; | |
23240 | char *kwnames[] = { | |
23241 | (char *) "self",(char *) "flags", NULL | |
23242 | }; | |
23243 | ||
23244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DropSource_DoDragDrop",kwnames,&obj0,&arg2)) goto fail; | |
23245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23246 | { | |
23247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23248 | result = (int)(arg1)->DoDragDrop(arg2); | |
23249 | ||
23250 | wxPyEndAllowThreads(__tstate); | |
23251 | if (PyErr_Occurred()) SWIG_fail; | |
23252 | } | |
23253 | resultobj = PyInt_FromLong((long)result); | |
23254 | return resultobj; | |
23255 | fail: | |
23256 | return NULL; | |
23257 | } | |
23258 | ||
23259 | ||
23260 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23261 | PyObject *resultobj; | |
23262 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23263 | int arg2 ; | |
23264 | bool result; | |
23265 | PyObject * obj0 = 0 ; | |
23266 | char *kwnames[] = { | |
23267 | (char *) "self",(char *) "effect", NULL | |
23268 | }; | |
23269 | ||
23270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DropSource_base_GiveFeedback",kwnames,&obj0,&arg2)) goto fail; | |
23271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23272 | { | |
23273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23274 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
23275 | ||
23276 | wxPyEndAllowThreads(__tstate); | |
23277 | if (PyErr_Occurred()) SWIG_fail; | |
23278 | } | |
23279 | resultobj = PyInt_FromLong((long)result); | |
23280 | return resultobj; | |
23281 | fail: | |
23282 | return NULL; | |
23283 | } | |
23284 | ||
23285 | ||
23286 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
23287 | PyObject *obj; | |
23288 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23289 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
23290 | Py_INCREF(obj); | |
23291 | return Py_BuildValue((char *)""); | |
23292 | } | |
23293 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23294 | PyObject *resultobj; | |
23295 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
23296 | wxPyDropTarget *result; | |
23297 | PyObject * obj0 = 0 ; | |
23298 | char *kwnames[] = { | |
23299 | (char *) "dataObject", NULL | |
23300 | }; | |
23301 | ||
23302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
23303 | if (obj0) { | |
23304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23305 | } | |
23306 | { | |
23307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23308 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
23309 | ||
23310 | wxPyEndAllowThreads(__tstate); | |
23311 | if (PyErr_Occurred()) SWIG_fail; | |
23312 | } | |
23313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
23314 | return resultobj; | |
23315 | fail: | |
23316 | return NULL; | |
23317 | } | |
23318 | ||
23319 | ||
23320 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23321 | PyObject *resultobj; | |
23322 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23323 | PyObject *arg2 = (PyObject *) 0 ; | |
23324 | PyObject *arg3 = (PyObject *) 0 ; | |
23325 | PyObject * obj0 = 0 ; | |
23326 | PyObject * obj1 = 0 ; | |
23327 | PyObject * obj2 = 0 ; | |
23328 | char *kwnames[] = { | |
23329 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23330 | }; | |
23331 | ||
23332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23334 | arg2 = obj1; | |
23335 | arg3 = obj2; | |
23336 | { | |
23337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23338 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23339 | ||
23340 | wxPyEndAllowThreads(__tstate); | |
23341 | if (PyErr_Occurred()) SWIG_fail; | |
23342 | } | |
23343 | Py_INCREF(Py_None); resultobj = Py_None; | |
23344 | return resultobj; | |
23345 | fail: | |
23346 | return NULL; | |
23347 | } | |
23348 | ||
23349 | ||
23350 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23351 | PyObject *resultobj; | |
23352 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23353 | PyObject * obj0 = 0 ; | |
23354 | char *kwnames[] = { | |
23355 | (char *) "self", NULL | |
23356 | }; | |
23357 | ||
23358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
23359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23360 | { | |
23361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23362 | delete arg1; | |
23363 | ||
23364 | wxPyEndAllowThreads(__tstate); | |
23365 | if (PyErr_Occurred()) SWIG_fail; | |
23366 | } | |
23367 | Py_INCREF(Py_None); resultobj = Py_None; | |
23368 | return resultobj; | |
23369 | fail: | |
23370 | return NULL; | |
23371 | } | |
23372 | ||
23373 | ||
23374 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23375 | PyObject *resultobj; | |
23376 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23377 | wxDataObject *result; | |
23378 | PyObject * obj0 = 0 ; | |
23379 | char *kwnames[] = { | |
23380 | (char *) "self", NULL | |
23381 | }; | |
23382 | ||
23383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
23384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23385 | { | |
23386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23387 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23388 | ||
23389 | wxPyEndAllowThreads(__tstate); | |
23390 | if (PyErr_Occurred()) SWIG_fail; | |
23391 | } | |
23392 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23393 | return resultobj; | |
23394 | fail: | |
23395 | return NULL; | |
23396 | } | |
23397 | ||
23398 | ||
23399 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23400 | PyObject *resultobj; | |
23401 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23402 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
23403 | PyObject * obj0 = 0 ; | |
23404 | PyObject * obj1 = 0 ; | |
23405 | char *kwnames[] = { | |
23406 | (char *) "self",(char *) "dataObject", NULL | |
23407 | }; | |
23408 | ||
23409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
23410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23411 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23412 | { | |
23413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23414 | (arg1)->SetDataObject(arg2); | |
23415 | ||
23416 | wxPyEndAllowThreads(__tstate); | |
23417 | if (PyErr_Occurred()) SWIG_fail; | |
23418 | } | |
23419 | Py_INCREF(Py_None); resultobj = Py_None; | |
23420 | return resultobj; | |
23421 | fail: | |
23422 | return NULL; | |
23423 | } | |
23424 | ||
23425 | ||
23426 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23427 | PyObject *resultobj; | |
23428 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23429 | int arg2 ; |
23430 | int arg3 ; | |
d14a1e28 RD |
23431 | int arg4 ; |
23432 | int result; | |
23433 | PyObject * obj0 = 0 ; | |
23434 | char *kwnames[] = { | |
23435 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23436 | }; | |
23437 | ||
23438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23440 | { | |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23442 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23443 | ||
23444 | wxPyEndAllowThreads(__tstate); | |
23445 | if (PyErr_Occurred()) SWIG_fail; | |
23446 | } | |
23447 | resultobj = PyInt_FromLong((long)result); | |
23448 | return resultobj; | |
23449 | fail: | |
23450 | return NULL; | |
23451 | } | |
23452 | ||
23453 | ||
23454 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23455 | PyObject *resultobj; | |
23456 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23457 | int arg2 ; |
23458 | int arg3 ; | |
d14a1e28 RD |
23459 | int arg4 ; |
23460 | int result; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | char *kwnames[] = { | |
23463 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23464 | }; | |
23465 | ||
23466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23468 | { | |
23469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23470 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23471 | ||
23472 | wxPyEndAllowThreads(__tstate); | |
23473 | if (PyErr_Occurred()) SWIG_fail; | |
23474 | } | |
23475 | resultobj = PyInt_FromLong((long)result); | |
23476 | return resultobj; | |
23477 | fail: | |
23478 | return NULL; | |
23479 | } | |
23480 | ||
23481 | ||
23482 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23483 | PyObject *resultobj; | |
23484 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23485 | PyObject * obj0 = 0 ; | |
23486 | char *kwnames[] = { | |
23487 | (char *) "self", NULL | |
23488 | }; | |
23489 | ||
23490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23492 | { | |
23493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23494 | (arg1)->base_OnLeave(); | |
23495 | ||
23496 | wxPyEndAllowThreads(__tstate); | |
23497 | if (PyErr_Occurred()) SWIG_fail; | |
23498 | } | |
23499 | Py_INCREF(Py_None); resultobj = Py_None; | |
23500 | return resultobj; | |
23501 | fail: | |
23502 | return NULL; | |
23503 | } | |
23504 | ||
23505 | ||
23506 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23507 | PyObject *resultobj; | |
23508 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23509 | int arg2 ; |
23510 | int arg3 ; | |
d14a1e28 RD |
23511 | bool result; |
23512 | PyObject * obj0 = 0 ; | |
23513 | char *kwnames[] = { | |
23514 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23515 | }; | |
23516 | ||
23517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23519 | { | |
23520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23521 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23522 | ||
23523 | wxPyEndAllowThreads(__tstate); | |
23524 | if (PyErr_Occurred()) SWIG_fail; | |
23525 | } | |
23526 | resultobj = PyInt_FromLong((long)result); | |
23527 | return resultobj; | |
23528 | fail: | |
23529 | return NULL; | |
23530 | } | |
23531 | ||
23532 | ||
23533 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23534 | PyObject *resultobj; | |
23535 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23536 | bool result; | |
23537 | PyObject * obj0 = 0 ; | |
23538 | char *kwnames[] = { | |
23539 | (char *) "self", NULL | |
23540 | }; | |
23541 | ||
23542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
23543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23544 | { | |
23545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23546 | result = (bool)(arg1)->GetData(); | |
23547 | ||
23548 | wxPyEndAllowThreads(__tstate); | |
23549 | if (PyErr_Occurred()) SWIG_fail; | |
23550 | } | |
23551 | resultobj = PyInt_FromLong((long)result); | |
23552 | return resultobj; | |
23553 | fail: | |
23554 | return NULL; | |
23555 | } | |
23556 | ||
23557 | ||
23558 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
23559 | PyObject *obj; | |
23560 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23561 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
23562 | Py_INCREF(obj); | |
23563 | return Py_BuildValue((char *)""); | |
23564 | } | |
23565 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23566 | PyObject *resultobj; | |
23567 | wxPyTextDropTarget *result; | |
23568 | char *kwnames[] = { | |
23569 | NULL | |
23570 | }; | |
23571 | ||
23572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
23573 | { | |
23574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23575 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
23576 | ||
23577 | wxPyEndAllowThreads(__tstate); | |
23578 | if (PyErr_Occurred()) SWIG_fail; | |
23579 | } | |
23580 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
23581 | return resultobj; | |
23582 | fail: | |
23583 | return NULL; | |
23584 | } | |
23585 | ||
23586 | ||
23587 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23588 | PyObject *resultobj; | |
23589 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23590 | PyObject *arg2 = (PyObject *) 0 ; | |
23591 | PyObject *arg3 = (PyObject *) 0 ; | |
23592 | PyObject * obj0 = 0 ; | |
23593 | PyObject * obj1 = 0 ; | |
23594 | PyObject * obj2 = 0 ; | |
23595 | char *kwnames[] = { | |
23596 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23597 | }; | |
23598 | ||
23599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23601 | arg2 = obj1; | |
23602 | arg3 = obj2; | |
23603 | { | |
23604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23605 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23606 | ||
23607 | wxPyEndAllowThreads(__tstate); | |
23608 | if (PyErr_Occurred()) SWIG_fail; | |
23609 | } | |
23610 | Py_INCREF(Py_None); resultobj = Py_None; | |
23611 | return resultobj; | |
23612 | fail: | |
23613 | return NULL; | |
23614 | } | |
23615 | ||
23616 | ||
23617 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23618 | PyObject *resultobj; | |
23619 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23620 | int arg2 ; |
23621 | int arg3 ; | |
d14a1e28 RD |
23622 | int arg4 ; |
23623 | int result; | |
23624 | PyObject * obj0 = 0 ; | |
23625 | char *kwnames[] = { | |
23626 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23627 | }; | |
23628 | ||
23629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23631 | { | |
23632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23633 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23634 | ||
23635 | wxPyEndAllowThreads(__tstate); | |
23636 | if (PyErr_Occurred()) SWIG_fail; | |
23637 | } | |
23638 | resultobj = PyInt_FromLong((long)result); | |
23639 | return resultobj; | |
23640 | fail: | |
23641 | return NULL; | |
23642 | } | |
23643 | ||
23644 | ||
23645 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23646 | PyObject *resultobj; | |
23647 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23648 | int arg2 ; |
23649 | int arg3 ; | |
d14a1e28 RD |
23650 | int arg4 ; |
23651 | int result; | |
23652 | PyObject * obj0 = 0 ; | |
23653 | char *kwnames[] = { | |
23654 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23655 | }; | |
23656 | ||
23657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23659 | { | |
23660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23661 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23662 | ||
23663 | wxPyEndAllowThreads(__tstate); | |
23664 | if (PyErr_Occurred()) SWIG_fail; | |
23665 | } | |
23666 | resultobj = PyInt_FromLong((long)result); | |
23667 | return resultobj; | |
23668 | fail: | |
23669 | return NULL; | |
23670 | } | |
23671 | ||
23672 | ||
23673 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23674 | PyObject *resultobj; | |
23675 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23676 | PyObject * obj0 = 0 ; | |
23677 | char *kwnames[] = { | |
23678 | (char *) "self", NULL | |
23679 | }; | |
23680 | ||
23681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23683 | { | |
23684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23685 | (arg1)->base_OnLeave(); | |
23686 | ||
23687 | wxPyEndAllowThreads(__tstate); | |
23688 | if (PyErr_Occurred()) SWIG_fail; | |
23689 | } | |
23690 | Py_INCREF(Py_None); resultobj = Py_None; | |
23691 | return resultobj; | |
23692 | fail: | |
23693 | return NULL; | |
23694 | } | |
23695 | ||
23696 | ||
23697 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23698 | PyObject *resultobj; | |
23699 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23700 | int arg2 ; |
23701 | int arg3 ; | |
d14a1e28 RD |
23702 | bool result; |
23703 | PyObject * obj0 = 0 ; | |
23704 | char *kwnames[] = { | |
23705 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23706 | }; | |
23707 | ||
23708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:TextDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23710 | { | |
23711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23712 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23713 | ||
23714 | wxPyEndAllowThreads(__tstate); | |
23715 | if (PyErr_Occurred()) SWIG_fail; | |
23716 | } | |
23717 | resultobj = PyInt_FromLong((long)result); | |
23718 | return resultobj; | |
23719 | fail: | |
23720 | return NULL; | |
23721 | } | |
23722 | ||
23723 | ||
23724 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23725 | PyObject *resultobj; | |
23726 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23727 | int arg2 ; |
23728 | int arg3 ; | |
d14a1e28 RD |
23729 | int arg4 ; |
23730 | int result; | |
23731 | PyObject * obj0 = 0 ; | |
23732 | char *kwnames[] = { | |
23733 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23734 | }; | |
23735 | ||
23736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23738 | { | |
23739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23740 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
23741 | ||
23742 | wxPyEndAllowThreads(__tstate); | |
23743 | if (PyErr_Occurred()) SWIG_fail; | |
23744 | } | |
23745 | resultobj = PyInt_FromLong((long)result); | |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
23749 | } | |
23750 | ||
23751 | ||
23752 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
23753 | PyObject *obj; | |
23754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23755 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
23756 | Py_INCREF(obj); | |
23757 | return Py_BuildValue((char *)""); | |
23758 | } | |
23759 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23760 | PyObject *resultobj; | |
23761 | wxPyFileDropTarget *result; | |
23762 | char *kwnames[] = { | |
23763 | NULL | |
23764 | }; | |
23765 | ||
23766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
23767 | { | |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23769 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
23770 | ||
23771 | wxPyEndAllowThreads(__tstate); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
23773 | } | |
23774 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
23775 | return resultobj; | |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj; | |
23783 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
23784 | PyObject *arg2 = (PyObject *) 0 ; | |
23785 | PyObject *arg3 = (PyObject *) 0 ; | |
23786 | PyObject * obj0 = 0 ; | |
23787 | PyObject * obj1 = 0 ; | |
23788 | PyObject * obj2 = 0 ; | |
23789 | char *kwnames[] = { | |
23790 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23791 | }; | |
23792 | ||
23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23795 | arg2 = obj1; | |
23796 | arg3 = obj2; | |
23797 | { | |
23798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23799 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23800 | ||
23801 | wxPyEndAllowThreads(__tstate); | |
23802 | if (PyErr_Occurred()) SWIG_fail; | |
23803 | } | |
23804 | Py_INCREF(Py_None); resultobj = Py_None; | |
23805 | return resultobj; | |
23806 | fail: | |
23807 | return NULL; | |
23808 | } | |
23809 | ||
23810 | ||
23811 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23812 | PyObject *resultobj; | |
23813 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
23814 | int arg2 ; |
23815 | int arg3 ; | |
d14a1e28 RD |
23816 | int arg4 ; |
23817 | int result; | |
23818 | PyObject * obj0 = 0 ; | |
23819 | char *kwnames[] = { | |
23820 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23821 | }; | |
23822 | ||
23823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23825 | { | |
23826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23827 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23828 | ||
23829 | wxPyEndAllowThreads(__tstate); | |
23830 | if (PyErr_Occurred()) SWIG_fail; | |
23831 | } | |
23832 | resultobj = PyInt_FromLong((long)result); | |
23833 | return resultobj; | |
23834 | fail: | |
23835 | return NULL; | |
23836 | } | |
23837 | ||
23838 | ||
23839 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23840 | PyObject *resultobj; | |
23841 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
23842 | int arg2 ; |
23843 | int arg3 ; | |
d14a1e28 RD |
23844 | int arg4 ; |
23845 | int result; | |
23846 | PyObject * obj0 = 0 ; | |
23847 | char *kwnames[] = { | |
23848 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23849 | }; | |
23850 | ||
23851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23853 | { | |
23854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23855 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23856 | ||
23857 | wxPyEndAllowThreads(__tstate); | |
23858 | if (PyErr_Occurred()) SWIG_fail; | |
23859 | } | |
23860 | resultobj = PyInt_FromLong((long)result); | |
23861 | return resultobj; | |
23862 | fail: | |
23863 | return NULL; | |
23864 | } | |
23865 | ||
23866 | ||
23867 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23868 | PyObject *resultobj; | |
23869 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
23870 | PyObject * obj0 = 0 ; | |
23871 | char *kwnames[] = { | |
23872 | (char *) "self", NULL | |
23873 | }; | |
23874 | ||
23875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23877 | { | |
23878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23879 | (arg1)->base_OnLeave(); | |
23880 | ||
23881 | wxPyEndAllowThreads(__tstate); | |
23882 | if (PyErr_Occurred()) SWIG_fail; | |
23883 | } | |
23884 | Py_INCREF(Py_None); resultobj = Py_None; | |
23885 | return resultobj; | |
23886 | fail: | |
23887 | return NULL; | |
23888 | } | |
23889 | ||
23890 | ||
23891 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23892 | PyObject *resultobj; | |
23893 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
23894 | int arg2 ; |
23895 | int arg3 ; | |
d14a1e28 RD |
23896 | bool result; |
23897 | PyObject * obj0 = 0 ; | |
23898 | char *kwnames[] = { | |
23899 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23900 | }; | |
23901 | ||
23902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:FileDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23904 | { | |
23905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23906 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23907 | ||
23908 | wxPyEndAllowThreads(__tstate); | |
23909 | if (PyErr_Occurred()) SWIG_fail; | |
23910 | } | |
23911 | resultobj = PyInt_FromLong((long)result); | |
23912 | return resultobj; | |
23913 | fail: | |
23914 | return NULL; | |
23915 | } | |
23916 | ||
23917 | ||
23918 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23919 | PyObject *resultobj; | |
23920 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
23921 | int arg2 ; |
23922 | int arg3 ; | |
d14a1e28 RD |
23923 | int arg4 ; |
23924 | int result; | |
23925 | PyObject * obj0 = 0 ; | |
23926 | char *kwnames[] = { | |
23927 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23928 | }; | |
23929 | ||
23930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23932 | { | |
23933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23934 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
23935 | ||
23936 | wxPyEndAllowThreads(__tstate); | |
23937 | if (PyErr_Occurred()) SWIG_fail; | |
23938 | } | |
23939 | resultobj = PyInt_FromLong((long)result); | |
23940 | return resultobj; | |
23941 | fail: | |
23942 | return NULL; | |
23943 | } | |
23944 | ||
23945 | ||
23946 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
23947 | PyObject *obj; | |
23948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23949 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
23950 | Py_INCREF(obj); | |
23951 | return Py_BuildValue((char *)""); | |
23952 | } | |
23953 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23954 | PyObject *resultobj; | |
23955 | wxClipboard *result; | |
23956 | char *kwnames[] = { | |
23957 | NULL | |
23958 | }; | |
23959 | ||
23960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
23961 | { | |
23962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23963 | result = (wxClipboard *)new wxClipboard(); | |
23964 | ||
23965 | wxPyEndAllowThreads(__tstate); | |
23966 | if (PyErr_Occurred()) SWIG_fail; | |
23967 | } | |
23968 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
23969 | return resultobj; | |
23970 | fail: | |
23971 | return NULL; | |
23972 | } | |
23973 | ||
23974 | ||
23975 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23976 | PyObject *resultobj; | |
23977 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
23978 | PyObject * obj0 = 0 ; | |
23979 | char *kwnames[] = { | |
23980 | (char *) "self", NULL | |
23981 | }; | |
23982 | ||
23983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
23984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23985 | { | |
23986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23987 | delete arg1; | |
23988 | ||
23989 | wxPyEndAllowThreads(__tstate); | |
23990 | if (PyErr_Occurred()) SWIG_fail; | |
23991 | } | |
23992 | Py_INCREF(Py_None); resultobj = Py_None; | |
23993 | return resultobj; | |
23994 | fail: | |
23995 | return NULL; | |
23996 | } | |
23997 | ||
23998 | ||
23999 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24000 | PyObject *resultobj; | |
24001 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24002 | bool result; | |
24003 | PyObject * obj0 = 0 ; | |
24004 | char *kwnames[] = { | |
24005 | (char *) "self", NULL | |
24006 | }; | |
24007 | ||
24008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
24009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24010 | { | |
24011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24012 | result = (bool)(arg1)->Open(); | |
24013 | ||
24014 | wxPyEndAllowThreads(__tstate); | |
24015 | if (PyErr_Occurred()) SWIG_fail; | |
24016 | } | |
24017 | resultobj = PyInt_FromLong((long)result); | |
24018 | return resultobj; | |
24019 | fail: | |
24020 | return NULL; | |
24021 | } | |
24022 | ||
24023 | ||
24024 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24025 | PyObject *resultobj; | |
24026 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24027 | PyObject * obj0 = 0 ; | |
24028 | char *kwnames[] = { | |
24029 | (char *) "self", NULL | |
24030 | }; | |
24031 | ||
24032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
24033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24034 | { | |
24035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24036 | (arg1)->Close(); | |
24037 | ||
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | Py_INCREF(Py_None); resultobj = Py_None; | |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
24048 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24049 | PyObject *resultobj; | |
24050 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24051 | bool result; | |
24052 | PyObject * obj0 = 0 ; | |
24053 | char *kwnames[] = { | |
24054 | (char *) "self", NULL | |
24055 | }; | |
24056 | ||
24057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
24058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24059 | { | |
24060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24061 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
24062 | ||
24063 | wxPyEndAllowThreads(__tstate); | |
24064 | if (PyErr_Occurred()) SWIG_fail; | |
24065 | } | |
24066 | resultobj = PyInt_FromLong((long)result); | |
24067 | return resultobj; | |
24068 | fail: | |
24069 | return NULL; | |
24070 | } | |
24071 | ||
24072 | ||
24073 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24074 | PyObject *resultobj; | |
24075 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24076 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24077 | bool result; | |
24078 | PyObject * obj0 = 0 ; | |
24079 | PyObject * obj1 = 0 ; | |
24080 | char *kwnames[] = { | |
24081 | (char *) "self",(char *) "data", NULL | |
24082 | }; | |
24083 | ||
24084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
24085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24086 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24087 | { | |
24088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24089 | result = (bool)(arg1)->AddData(arg2); | |
24090 | ||
24091 | wxPyEndAllowThreads(__tstate); | |
24092 | if (PyErr_Occurred()) SWIG_fail; | |
24093 | } | |
24094 | resultobj = PyInt_FromLong((long)result); | |
24095 | return resultobj; | |
24096 | fail: | |
24097 | return NULL; | |
24098 | } | |
24099 | ||
24100 | ||
24101 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24102 | PyObject *resultobj; | |
24103 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24104 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24105 | bool result; | |
24106 | PyObject * obj0 = 0 ; | |
24107 | PyObject * obj1 = 0 ; | |
24108 | char *kwnames[] = { | |
24109 | (char *) "self",(char *) "data", NULL | |
24110 | }; | |
24111 | ||
24112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24114 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24115 | { | |
24116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24117 | result = (bool)(arg1)->SetData(arg2); | |
24118 | ||
24119 | wxPyEndAllowThreads(__tstate); | |
24120 | if (PyErr_Occurred()) SWIG_fail; | |
24121 | } | |
24122 | resultobj = PyInt_FromLong((long)result); | |
24123 | return resultobj; | |
24124 | fail: | |
24125 | return NULL; | |
24126 | } | |
24127 | ||
24128 | ||
24129 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24130 | PyObject *resultobj; | |
24131 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24132 | wxDataFormat *arg2 = 0 ; | |
24133 | bool result; | |
24134 | PyObject * obj0 = 0 ; | |
24135 | PyObject * obj1 = 0 ; | |
24136 | char *kwnames[] = { | |
24137 | (char *) "self",(char *) "format", NULL | |
24138 | }; | |
24139 | ||
24140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
24141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24142 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24143 | if (arg2 == NULL) { | |
24144 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24145 | } | |
24146 | { | |
24147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24148 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
24149 | ||
24150 | wxPyEndAllowThreads(__tstate); | |
24151 | if (PyErr_Occurred()) SWIG_fail; | |
24152 | } | |
24153 | resultobj = PyInt_FromLong((long)result); | |
24154 | return resultobj; | |
24155 | fail: | |
24156 | return NULL; | |
24157 | } | |
24158 | ||
24159 | ||
24160 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24161 | PyObject *resultobj; | |
24162 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24163 | wxDataObject *arg2 = 0 ; | |
24164 | bool result; | |
24165 | PyObject * obj0 = 0 ; | |
24166 | PyObject * obj1 = 0 ; | |
24167 | char *kwnames[] = { | |
24168 | (char *) "self",(char *) "data", NULL | |
24169 | }; | |
24170 | ||
24171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
24172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24173 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24174 | if (arg2 == NULL) { | |
24175 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24176 | } | |
24177 | { | |
24178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24179 | result = (bool)(arg1)->GetData(*arg2); | |
24180 | ||
24181 | wxPyEndAllowThreads(__tstate); | |
24182 | if (PyErr_Occurred()) SWIG_fail; | |
24183 | } | |
24184 | resultobj = PyInt_FromLong((long)result); | |
24185 | return resultobj; | |
24186 | fail: | |
24187 | return NULL; | |
24188 | } | |
24189 | ||
24190 | ||
24191 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24192 | PyObject *resultobj; | |
24193 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24194 | PyObject * obj0 = 0 ; | |
24195 | char *kwnames[] = { | |
24196 | (char *) "self", NULL | |
24197 | }; | |
24198 | ||
24199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
24200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24201 | { | |
24202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24203 | (arg1)->Clear(); | |
24204 | ||
24205 | wxPyEndAllowThreads(__tstate); | |
24206 | if (PyErr_Occurred()) SWIG_fail; | |
24207 | } | |
24208 | Py_INCREF(Py_None); resultobj = Py_None; | |
24209 | return resultobj; | |
24210 | fail: | |
24211 | return NULL; | |
24212 | } | |
24213 | ||
24214 | ||
24215 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24216 | PyObject *resultobj; | |
24217 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24218 | bool result; | |
24219 | PyObject * obj0 = 0 ; | |
24220 | char *kwnames[] = { | |
24221 | (char *) "self", NULL | |
24222 | }; | |
24223 | ||
24224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
24225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24226 | { | |
24227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24228 | result = (bool)(arg1)->Flush(); | |
24229 | ||
24230 | wxPyEndAllowThreads(__tstate); | |
24231 | if (PyErr_Occurred()) SWIG_fail; | |
24232 | } | |
24233 | resultobj = PyInt_FromLong((long)result); | |
24234 | return resultobj; | |
24235 | fail: | |
24236 | return NULL; | |
24237 | } | |
24238 | ||
24239 | ||
24240 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24241 | PyObject *resultobj; | |
24242 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
423f194a | 24243 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24244 | PyObject * obj0 = 0 ; |
24245 | PyObject * obj1 = 0 ; | |
24246 | char *kwnames[] = { | |
24247 | (char *) "self",(char *) "primary", NULL | |
24248 | }; | |
24249 | ||
24250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
24251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24252 | if (obj1) { | |
24253 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
24256 | { | |
24257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24258 | (arg1)->UsePrimarySelection(arg2); | |
24259 | ||
24260 | wxPyEndAllowThreads(__tstate); | |
24261 | if (PyErr_Occurred()) SWIG_fail; | |
24262 | } | |
24263 | Py_INCREF(Py_None); resultobj = Py_None; | |
24264 | return resultobj; | |
24265 | fail: | |
24266 | return NULL; | |
24267 | } | |
24268 | ||
24269 | ||
24270 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
24271 | PyObject *obj; | |
24272 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24273 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
24274 | Py_INCREF(obj); | |
24275 | return Py_BuildValue((char *)""); | |
24276 | } | |
24277 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
24278 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
24279 | return 1; | |
24280 | } | |
24281 | ||
24282 | ||
24283 | static PyObject *_wrap_TheClipboard_get() { | |
24284 | PyObject *pyobj; | |
24285 | ||
24286 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
24287 | return pyobj; | |
24288 | } | |
24289 | ||
24290 | ||
24291 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24292 | PyObject *resultobj; | |
24293 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
24294 | wxClipboardLocker *result; | |
24295 | PyObject * obj0 = 0 ; | |
24296 | char *kwnames[] = { | |
24297 | (char *) "clipboard", NULL | |
24298 | }; | |
24299 | ||
24300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24301 | if (obj0) { | |
24302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24303 | } | |
24304 | { | |
24305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24306 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
24307 | ||
24308 | wxPyEndAllowThreads(__tstate); | |
24309 | if (PyErr_Occurred()) SWIG_fail; | |
24310 | } | |
24311 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
24312 | return resultobj; | |
24313 | fail: | |
24314 | return NULL; | |
24315 | } | |
24316 | ||
24317 | ||
24318 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24319 | PyObject *resultobj; | |
24320 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24321 | PyObject * obj0 = 0 ; | |
24322 | char *kwnames[] = { | |
24323 | (char *) "self", NULL | |
24324 | }; | |
24325 | ||
24326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24327 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24328 | { | |
24329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24330 | delete arg1; | |
24331 | ||
24332 | wxPyEndAllowThreads(__tstate); | |
24333 | if (PyErr_Occurred()) SWIG_fail; | |
24334 | } | |
24335 | Py_INCREF(Py_None); resultobj = Py_None; | |
24336 | return resultobj; | |
24337 | fail: | |
24338 | return NULL; | |
24339 | } | |
24340 | ||
24341 | ||
24342 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24343 | PyObject *resultobj; | |
24344 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24345 | bool result; | |
24346 | PyObject * obj0 = 0 ; | |
24347 | char *kwnames[] = { | |
24348 | (char *) "self", NULL | |
24349 | }; | |
24350 | ||
24351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
24352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24353 | { | |
24354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24355 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
24356 | ||
24357 | wxPyEndAllowThreads(__tstate); | |
24358 | if (PyErr_Occurred()) SWIG_fail; | |
24359 | } | |
24360 | resultobj = PyInt_FromLong((long)result); | |
24361 | return resultobj; | |
24362 | fail: | |
24363 | return NULL; | |
24364 | } | |
24365 | ||
24366 | ||
24367 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
24368 | PyObject *obj; | |
24369 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24370 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
24371 | Py_INCREF(obj); | |
24372 | return Py_BuildValue((char *)""); | |
24373 | } | |
24374 | static PyMethodDef SwigMethods[] = { | |
24375 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24376 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
24377 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
24378 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
24379 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24380 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24381 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
24382 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
24383 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
24384 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24385 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
24386 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24387 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
24388 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
24389 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
24390 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
24391 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
24392 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
24393 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24394 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
24395 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
24396 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
24397 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
24398 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
24399 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
24400 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
24401 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
24402 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
24403 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
24404 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
24405 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
24406 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
24407 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
24408 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
24409 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
24410 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
24411 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
24412 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
24413 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
24414 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
24415 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
24416 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
24417 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24418 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24419 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24420 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
24421 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24422 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24423 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
24424 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
24425 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
24426 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24427 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
24428 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24429 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24430 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24431 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24432 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24433 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24434 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24435 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24436 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
24437 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24438 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24439 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24440 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24441 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
24442 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
24443 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
24444 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
24445 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24446 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24447 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
24448 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
24449 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
24450 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
24451 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24452 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24453 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
24454 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
24455 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
24456 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24457 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24458 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24459 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 24460 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 24461 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 24462 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 24463 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24464 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
24465 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
24466 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
24467 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
24468 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24469 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
24470 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
24471 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
24472 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24473 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24474 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24475 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24476 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
24477 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24478 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24479 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
24480 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24481 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24482 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
24483 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
24484 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
24485 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
24486 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24487 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
24488 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
24489 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24490 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24491 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
24492 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
24493 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
24494 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
24495 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
24496 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
24497 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
24498 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
24499 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
24500 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
24501 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
24502 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
24503 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24504 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24505 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24506 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
24507 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
24508 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
24509 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
24510 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24511 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24512 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
24513 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
24514 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
24515 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24516 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24517 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
24518 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
24519 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24520 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
24521 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
44127b65 | 24522 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24523 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
24524 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
24525 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
24526 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
24527 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24528 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
24529 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, | |
24530 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
24531 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24532 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
24533 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
24534 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
24535 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
24536 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
24537 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
24538 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
24539 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
24540 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
24541 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
24542 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
24543 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24544 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24545 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
24546 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24547 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24548 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24549 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24550 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24551 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24552 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24553 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24554 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24555 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24556 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24557 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24558 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24559 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24560 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24561 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
24562 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24563 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
24564 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
24565 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
24566 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
24567 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
24568 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
24569 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
24570 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
24571 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
24572 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
24573 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24574 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24575 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24576 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
24577 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
24578 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
24579 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24580 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24581 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24582 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
24583 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
24584 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
24585 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
24586 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
24587 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
24588 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
24589 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
24590 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
24591 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24592 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
24593 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
24594 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
24595 | { (char *)"LogTrace", (PyCFunction) _wrap_LogTrace, METH_VARARGS | METH_KEYWORDS }, | |
24596 | { (char *)"LogTraceMask", (PyCFunction) _wrap_LogTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24597 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, | |
24598 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
24599 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24600 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24601 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
24602 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
24603 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24604 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
24605 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
24606 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24607 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
24608 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
24609 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24610 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
24611 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
24612 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
24613 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
24614 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
24615 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
24616 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24617 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
24618 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
24619 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24620 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24621 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
24622 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
24623 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
24624 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
24625 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
24626 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
24627 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
24628 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
24629 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
24630 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
24631 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24632 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24633 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24634 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24635 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24636 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
24639 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
24640 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24641 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24642 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24643 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24644 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
24645 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
24647 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
24648 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
24651 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
24653 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
24654 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
24655 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
24656 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
24657 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
24658 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
24659 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
24660 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
24661 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
24663 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
24665 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
24666 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
24668 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
24669 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
24670 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
24672 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
24673 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
24674 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
24675 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
24676 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
24677 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
24678 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
24679 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
24680 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
24681 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
24682 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
24684 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
24685 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24688 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24689 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24690 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24691 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24692 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24693 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24694 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24696 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24697 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
24698 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
24701 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
24702 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
24703 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
24704 | { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24707 | { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24708 | { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS }, | |
24709 | { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS }, | |
24710 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
24714 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24715 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24716 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24717 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24719 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24720 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24721 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24722 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
24723 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
24724 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
24725 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
24726 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24728 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24730 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24731 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24732 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
24733 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24734 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24735 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24736 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
24737 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
24739 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
24740 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
24742 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
24743 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
24744 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
24746 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
24747 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24748 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
24749 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24750 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
24751 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
24752 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
24755 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
24756 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
24757 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
24758 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24762 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24763 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, | |
24764 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
24765 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24769 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
24772 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
24774 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
24775 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
24778 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24780 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
24781 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
24782 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
24783 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
24784 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
24786 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
24787 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
24789 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
24790 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
24791 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
24792 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
24794 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
24795 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24796 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24797 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
24798 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
24799 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
24801 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
24803 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
24807 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
24809 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
24810 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
24811 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
24812 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
24814 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
24815 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
24816 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
24817 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24818 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
24821 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
24822 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
24824 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
24825 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
24826 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
24827 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
24829 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
24831 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
24832 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
24833 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
24835 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
24837 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
24838 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
24839 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
24840 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
24843 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
24844 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
24846 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
24848 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
24850 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
24853 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
24854 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
24855 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
24856 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
24857 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
24858 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24860 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24862 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24864 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24865 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
24867 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
24869 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
24870 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
24871 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
24873 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
24874 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
24875 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
24876 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
24879 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
24880 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
24881 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
24882 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
24889 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
24890 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
24892 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
24900 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
24906 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
24907 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
24909 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
24910 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
24911 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
24912 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
24913 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
24914 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
24915 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
24916 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
24917 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
24918 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
24923 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
24926 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
24929 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
24937 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
24939 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
24941 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
24944 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
24945 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
24946 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
24949 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
24950 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
24951 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
24952 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
24953 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
24954 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
24955 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
24958 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
24959 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
24962 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
24964 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
24965 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
24966 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
24967 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
24968 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
24969 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
24970 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
24971 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
24972 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
24973 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
24974 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
24975 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
24976 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
24977 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
24978 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
24983 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
24984 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
24986 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
24988 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
24991 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
24993 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
24994 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
24996 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
24997 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
24998 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
24999 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25000 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25002 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25006 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
25008 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
25010 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
25011 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25014 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
25016 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
25017 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
25018 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
25020 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
25021 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
25022 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
25023 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
25024 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
25025 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25026 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
25027 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
25028 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
25029 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25030 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
25031 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25032 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25033 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25034 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
25035 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25037 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
25038 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
25040 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
25041 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25042 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
25044 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
25045 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
25046 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
25049 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
25053 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
25056 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
25060 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25061 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
25062 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25063 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25064 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25065 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
25066 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25067 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
25068 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
25069 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
25070 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
25072 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
25073 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
25074 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
25075 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25076 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25078 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25080 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
25081 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
25082 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
25083 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
25084 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25085 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25089 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25091 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
25095 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
25103 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
25111 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
25116 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
25123 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
25124 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25125 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25126 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
25128 | { NULL, NULL } | |
25129 | }; | |
25130 | ||
25131 | ||
25132 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25133 | ||
25134 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25135 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25136 | } | |
25137 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25138 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25139 | } | |
25140 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25141 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25142 | } | |
25143 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25144 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25145 | } | |
25146 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25147 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25148 | } | |
25149 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25150 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25151 | } | |
25152 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
25153 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
25154 | } | |
25155 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25156 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25157 | } | |
25158 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25159 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25160 | } | |
25161 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25162 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25163 | } | |
25164 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25165 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25166 | } | |
25167 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
25168 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
25169 | } | |
25170 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25171 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25172 | } | |
25173 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25174 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25175 | } | |
25176 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25177 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25178 | } | |
25179 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25180 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25181 | } | |
25182 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25183 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25184 | } | |
25185 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25186 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25187 | } | |
25188 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25189 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25190 | } | |
25191 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25192 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25193 | } | |
25194 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25195 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25196 | } | |
25197 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25198 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25199 | } | |
25200 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25201 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25202 | } | |
25203 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25204 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25205 | } | |
25206 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25207 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25208 | } | |
25209 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25210 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25211 | } | |
25212 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25213 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25214 | } | |
25215 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25216 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25217 | } | |
25218 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25219 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25220 | } | |
25221 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25222 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25223 | } | |
25224 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
25225 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
25226 | } | |
25227 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25228 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25229 | } | |
25230 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25231 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25232 | } | |
25233 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25234 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25235 | } | |
25236 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25237 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25238 | } | |
25239 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25240 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25241 | } | |
25242 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25243 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25244 | } | |
25245 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25246 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25247 | } | |
25248 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
25249 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
25250 | } | |
25251 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
25252 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
25253 | } | |
25254 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
25255 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25256 | } | |
25257 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
25258 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25259 | } | |
25260 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25261 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
25262 | } | |
25263 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25264 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25265 | } | |
25266 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
25267 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
25268 | } | |
25269 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
25270 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25271 | } | |
25272 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
25273 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25274 | } | |
25275 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25276 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25277 | } | |
25278 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25279 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25280 | } | |
25281 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
25282 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25283 | } | |
25284 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
25285 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25286 | } | |
25287 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
25288 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25289 | } | |
25290 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
25291 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25292 | } | |
25293 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
25294 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25295 | } | |
25296 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
25297 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25298 | } | |
25299 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25300 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25301 | } | |
25302 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25303 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25304 | } | |
25305 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25306 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25307 | } | |
25308 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25309 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25310 | } | |
25311 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25312 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25313 | } | |
25314 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25315 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25316 | } | |
25317 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25318 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25319 | } | |
25320 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25321 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25322 | } | |
25323 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25324 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25325 | } | |
25326 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25327 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25328 | } | |
25329 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25330 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25331 | } | |
25332 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
25333 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
25334 | } | |
25335 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25336 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25337 | } | |
25338 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25339 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25340 | } | |
25341 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25342 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25343 | } | |
25344 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25345 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25346 | } | |
25347 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
25348 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
25349 | } | |
25350 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
25351 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
25352 | } | |
25353 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25354 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25355 | } | |
25356 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25357 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25358 | } | |
25359 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25360 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25361 | } | |
25362 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25363 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25364 | } | |
25365 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25366 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25367 | } | |
25368 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25369 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25370 | } | |
25371 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25372 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25373 | } | |
25374 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25375 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25376 | } | |
25377 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25378 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25379 | } | |
25380 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
25381 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
25382 | } | |
25383 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25384 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25385 | } | |
25386 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25387 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25388 | } | |
25389 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25390 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25391 | } | |
25392 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25393 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25394 | } | |
25395 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25396 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25397 | } | |
25398 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25399 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25400 | } | |
25401 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25402 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25403 | } | |
25404 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25405 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25406 | } | |
25407 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25408 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25409 | } | |
25410 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25411 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25412 | } | |
25413 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25414 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25415 | } | |
25416 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25417 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25418 | } | |
25419 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25420 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25421 | } | |
25422 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
25423 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
25424 | } | |
25425 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25426 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25427 | } | |
25428 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
25429 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
25430 | } | |
25431 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25432 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25433 | } | |
25434 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25435 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25436 | } | |
25437 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25438 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25439 | } | |
25440 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25441 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25442 | } | |
25443 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
25444 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
25445 | } | |
25446 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25447 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25448 | } | |
25449 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25450 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25451 | } | |
25452 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25453 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25454 | } | |
25455 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25456 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25457 | } | |
25458 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25459 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25460 | } | |
25461 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25462 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25463 | } | |
25464 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25465 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25466 | } | |
25467 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25468 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25469 | } | |
25470 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25471 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25472 | } | |
25473 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25474 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25475 | } | |
25476 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25477 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25478 | } | |
25479 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25480 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25481 | } | |
25482 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25483 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25484 | } | |
25485 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25486 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25487 | } | |
25488 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25489 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25490 | } | |
25491 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25492 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25493 | } | |
25494 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25495 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25496 | } | |
25497 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25498 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25499 | } | |
25500 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25501 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25502 | } | |
25503 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25504 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25505 | } | |
25506 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25507 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25508 | } | |
25509 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25510 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25511 | } | |
25512 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
25513 | return (void *)((wxObject *) ((wxImage *) x)); | |
25514 | } | |
25515 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25516 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25517 | } | |
25518 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
25519 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
25520 | } | |
25521 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
25522 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
25523 | } | |
25524 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25525 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25526 | } | |
25527 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25528 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25529 | } | |
25530 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25531 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25532 | } | |
25533 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25534 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25535 | } | |
25536 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25537 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25538 | } | |
25539 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25540 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25541 | } | |
25542 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
25543 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
25544 | } | |
25545 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25546 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25547 | } | |
25548 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25549 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25550 | } | |
25551 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25552 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25553 | } | |
25554 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25555 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25556 | } | |
25557 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25558 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25559 | } | |
25560 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25561 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25562 | } | |
25563 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25564 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25565 | } | |
25566 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
25567 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
25568 | } | |
25569 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25570 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25571 | } | |
25572 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25573 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25574 | } | |
25575 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
25576 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
25577 | } | |
25578 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
25579 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
25580 | } | |
25581 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
25582 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25583 | } | |
25584 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
25585 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
25586 | } | |
25587 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
25588 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25589 | } | |
25590 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
25591 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
25592 | } | |
25593 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
25594 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
25595 | } | |
25596 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
25597 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
25598 | } | |
25599 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
25600 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
25601 | } | |
25602 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
25603 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
25604 | } | |
25605 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
25606 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
25607 | } | |
25608 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
25609 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
25610 | } | |
25611 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
25612 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
25613 | } | |
25614 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
25615 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
25616 | } | |
25617 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
25618 | return (void *)((wxWindow *) ((wxControl *) x)); | |
25619 | } | |
25620 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
25621 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
25622 | } | |
25623 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
25624 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
25625 | } | |
25626 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
25627 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
25628 | } | |
25629 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
25630 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
25631 | } | |
25632 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
25633 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
25634 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0},{"_p_wxMetafile"},{0}}; | |
25635 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
25636 | static 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}}; | |
25637 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
25638 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
25639 | static 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}}; | |
25640 | static 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}}; | |
25641 | static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}}; | |
25642 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; | |
25643 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
25644 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
25645 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
25646 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
25647 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
25648 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
25649 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
25650 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
25651 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
25652 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
25653 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
25654 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
25655 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
25656 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
25657 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
25658 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
25659 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; | |
25660 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; | |
25661 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; | |
25662 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
25663 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
25664 | static 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}}; | |
25665 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; | |
25666 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
25667 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
25668 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; | |
25669 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
25670 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
25671 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
25672 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
25673 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
25674 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
25675 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
25676 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
25677 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
25678 | static 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}}; | |
25679 | static 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}}; | |
25680 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
25681 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; | |
25682 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
25683 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
25684 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
25685 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
25686 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
25687 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
25688 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
25689 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
25690 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
25691 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
25692 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
25693 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
25694 | static 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_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}}; | |
25695 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
25696 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
25697 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
25698 | static 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}}; | |
25699 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
25700 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
25701 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
25702 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
25703 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
25704 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
25705 | static 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}}; | |
25706 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
25707 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
25708 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
25709 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
25710 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
25711 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
25712 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; | |
25713 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
25714 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
25715 | ||
25716 | static swig_type_info *swig_types_initial[] = { | |
25717 | _swigt__p_wxLogChain, | |
25718 | _swigt__p_wxMutexGuiLocker, | |
25719 | _swigt__p_wxMetafile, | |
25720 | _swigt__p_wxFileHistory, | |
25721 | _swigt__p_wxLog, | |
25722 | _swigt__p_wxDateTime__TimeZone, | |
25723 | _swigt__p_wxMenu, | |
25724 | _swigt__p_wxEvent, | |
25725 | _swigt__p_wxConfigBase, | |
25726 | _swigt__p_wxWave, | |
25727 | _swigt__p_wxFileType, | |
25728 | _swigt__p_wxLogGui, | |
25729 | _swigt__p_wxFont, | |
25730 | _swigt__p_wxDataFormat, | |
25731 | _swigt__p_wxTimerEvent, | |
25732 | _swigt__p_wxCaret, | |
25733 | _swigt__p_int, | |
25734 | _swigt__p_wxSize, | |
25735 | _swigt__p_wxClipboard, | |
25736 | _swigt__p_wxStopWatch, | |
25737 | _swigt__p_wxDC, | |
25738 | _swigt__p_wxClipboardLocker, | |
25739 | _swigt__p_wxIcon, | |
25740 | _swigt__p_wxLogStderr, | |
25741 | _swigt__p_wxLogTextCtrl, | |
25742 | _swigt__p_wxTextCtrl, | |
25743 | _swigt__p_wxBusyCursor, | |
25744 | _swigt__p_wxFileDataObject, | |
25745 | _swigt__p_wxPyBitmapDataObject, | |
25746 | _swigt__p_wxPyTextDataObject, | |
25747 | _swigt__p_wxBitmapDataObject, | |
25748 | _swigt__p_wxTextDataObject, | |
25749 | _swigt__p_wxDataObject, | |
25750 | _swigt__p_wxCustomDataObject, | |
25751 | _swigt__p_wxURLDataObject, | |
25752 | _swigt__p_wxMetafileDataObject, | |
25753 | _swigt__p_wxTimerRunner, | |
25754 | _swigt__p_wxLogWindow, | |
25755 | _swigt__p_wxTimeSpan, | |
25756 | _swigt__p_wxArrayString, | |
25757 | _swigt__p_wxWindowDisabler, | |
25758 | _swigt__p_wxToolTip, | |
25759 | _swigt__p_wxDataObjectComposite, | |
25760 | _swigt__p_wxFileConfig, | |
25761 | _swigt__p_wxSystemSettings, | |
25762 | _swigt__p_wxPyDataObjectSimple, | |
25763 | _swigt__p_wxDataObjectSimple, | |
25764 | _swigt__p_wxEvtHandler, | |
25765 | _swigt__p_wxRect, | |
25766 | _swigt__p_wxSingleInstanceChecker, | |
25767 | _swigt__p_wxFileTypeInfo, | |
25768 | _swigt__p_wxFrame, | |
25769 | _swigt__p_wxTimer, | |
25770 | _swigt__p_wxMimeTypesManager, | |
25771 | _swigt__p_wxPyArtProvider, | |
25772 | _swigt__p_wxPyTipProvider, | |
25773 | _swigt__p_wxTipProvider, | |
25774 | _swigt__p_wxJoystick, | |
25775 | _swigt__p_wxSystemOptions, | |
25776 | _swigt__p_wxPoint, | |
25777 | _swigt__p_wxJoystickEvent, | |
25778 | _swigt__p_wxCursor, | |
25779 | _swigt__p_wxObject, | |
25780 | _swigt__p_wxOutputStream, | |
25781 | _swigt__p_wxDateTime, | |
25782 | _swigt__p_wxPyDropSource, | |
25783 | _swigt__p_wxWindow, | |
25784 | _swigt__p_wxString, | |
25785 | _swigt__p_wxPyProcess, | |
25786 | _swigt__p_wxBitmap, | |
25787 | _swigt__p_wxConfig, | |
25788 | _swigt__p_wxChar, | |
25789 | _swigt__p_wxBusyInfo, | |
25790 | _swigt__p_wxPyDropTarget, | |
25791 | _swigt__p_wxPyTextDropTarget, | |
25792 | _swigt__p_wxPyFileDropTarget, | |
25793 | _swigt__p_wxProcessEvent, | |
25794 | _swigt__p_wxPyLog, | |
25795 | _swigt__p_wxLogNull, | |
25796 | _swigt__p_wxColour, | |
25797 | _swigt__p_wxConfigPathChanger, | |
25798 | _swigt__p_wxPyTimer, | |
25799 | _swigt__p_wxDateSpan, | |
25800 | 0 | |
25801 | }; | |
25802 | ||
25803 | ||
25804 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
25805 | ||
25806 | static swig_const_info swig_const_table[] = { | |
25807 | { SWIG_PY_INT, (char *)"SYS_OEM_FIXED_FONT", (long) wxSYS_OEM_FIXED_FONT, 0, 0, 0}, | |
25808 | { SWIG_PY_INT, (char *)"SYS_ANSI_FIXED_FONT", (long) wxSYS_ANSI_FIXED_FONT, 0, 0, 0}, | |
25809 | { SWIG_PY_INT, (char *)"SYS_ANSI_VAR_FONT", (long) wxSYS_ANSI_VAR_FONT, 0, 0, 0}, | |
25810 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FONT", (long) wxSYS_SYSTEM_FONT, 0, 0, 0}, | |
25811 | { SWIG_PY_INT, (char *)"SYS_DEVICE_DEFAULT_FONT", (long) wxSYS_DEVICE_DEFAULT_FONT, 0, 0, 0}, | |
25812 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_PALETTE", (long) wxSYS_DEFAULT_PALETTE, 0, 0, 0}, | |
25813 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FIXED_FONT", (long) wxSYS_SYSTEM_FIXED_FONT, 0, 0, 0}, | |
25814 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_GUI_FONT", (long) wxSYS_DEFAULT_GUI_FONT, 0, 0, 0}, | |
25815 | { SWIG_PY_INT, (char *)"SYS_ICONTITLE_FONT", (long) wxSYS_ICONTITLE_FONT, 0, 0, 0}, | |
25816 | { SWIG_PY_INT, (char *)"SYS_COLOUR_SCROLLBAR", (long) wxSYS_COLOUR_SCROLLBAR, 0, 0, 0}, | |
25817 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BACKGROUND", (long) wxSYS_COLOUR_BACKGROUND, 0, 0, 0}, | |
25818 | { SWIG_PY_INT, (char *)"SYS_COLOUR_DESKTOP", (long) wxSYS_COLOUR_DESKTOP, 0, 0, 0}, | |
25819 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVECAPTION", (long) wxSYS_COLOUR_ACTIVECAPTION, 0, 0, 0}, | |
25820 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTION", (long) wxSYS_COLOUR_INACTIVECAPTION, 0, 0, 0}, | |
25821 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENU", (long) wxSYS_COLOUR_MENU, 0, 0, 0}, | |
25822 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOW", (long) wxSYS_COLOUR_WINDOW, 0, 0, 0}, | |
25823 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWFRAME", (long) wxSYS_COLOUR_WINDOWFRAME, 0, 0, 0}, | |
25824 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUTEXT", (long) wxSYS_COLOUR_MENUTEXT, 0, 0, 0}, | |
25825 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWTEXT", (long) wxSYS_COLOUR_WINDOWTEXT, 0, 0, 0}, | |
25826 | { SWIG_PY_INT, (char *)"SYS_COLOUR_CAPTIONTEXT", (long) wxSYS_COLOUR_CAPTIONTEXT, 0, 0, 0}, | |
25827 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVEBORDER", (long) wxSYS_COLOUR_ACTIVEBORDER, 0, 0, 0}, | |
25828 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVEBORDER", (long) wxSYS_COLOUR_INACTIVEBORDER, 0, 0, 0}, | |
25829 | { SWIG_PY_INT, (char *)"SYS_COLOUR_APPWORKSPACE", (long) wxSYS_COLOUR_APPWORKSPACE, 0, 0, 0}, | |
25830 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHT", (long) wxSYS_COLOUR_HIGHLIGHT, 0, 0, 0}, | |
25831 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHTTEXT", (long) wxSYS_COLOUR_HIGHLIGHTTEXT, 0, 0, 0}, | |
25832 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNFACE", (long) wxSYS_COLOUR_BTNFACE, 0, 0, 0}, | |
25833 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DFACE", (long) wxSYS_COLOUR_3DFACE, 0, 0, 0}, | |
25834 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNSHADOW", (long) wxSYS_COLOUR_BTNSHADOW, 0, 0, 0}, | |
25835 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DSHADOW", (long) wxSYS_COLOUR_3DSHADOW, 0, 0, 0}, | |
25836 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRAYTEXT", (long) wxSYS_COLOUR_GRAYTEXT, 0, 0, 0}, | |
25837 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNTEXT", (long) wxSYS_COLOUR_BTNTEXT, 0, 0, 0}, | |
25838 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTIONTEXT", (long) wxSYS_COLOUR_INACTIVECAPTIONTEXT, 0, 0, 0}, | |
25839 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHIGHLIGHT", (long) wxSYS_COLOUR_BTNHIGHLIGHT, 0, 0, 0}, | |
25840 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHILIGHT", (long) wxSYS_COLOUR_BTNHILIGHT, 0, 0, 0}, | |
25841 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHIGHLIGHT", (long) wxSYS_COLOUR_3DHIGHLIGHT, 0, 0, 0}, | |
25842 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHILIGHT", (long) wxSYS_COLOUR_3DHILIGHT, 0, 0, 0}, | |
25843 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DDKSHADOW", (long) wxSYS_COLOUR_3DDKSHADOW, 0, 0, 0}, | |
25844 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DLIGHT", (long) wxSYS_COLOUR_3DLIGHT, 0, 0, 0}, | |
25845 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOTEXT", (long) wxSYS_COLOUR_INFOTEXT, 0, 0, 0}, | |
25846 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOBK", (long) wxSYS_COLOUR_INFOBK, 0, 0, 0}, | |
25847 | { SWIG_PY_INT, (char *)"SYS_COLOUR_LISTBOX", (long) wxSYS_COLOUR_LISTBOX, 0, 0, 0}, | |
25848 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HOTLIGHT", (long) wxSYS_COLOUR_HOTLIGHT, 0, 0, 0}, | |
25849 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTACTIVECAPTION, 0, 0, 0}, | |
25850 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTINACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION, 0, 0, 0}, | |
25851 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUHILIGHT", (long) wxSYS_COLOUR_MENUHILIGHT, 0, 0, 0}, | |
25852 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUBAR", (long) wxSYS_COLOUR_MENUBAR, 0, 0, 0}, | |
25853 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MAX", (long) wxSYS_COLOUR_MAX, 0, 0, 0}, | |
25854 | { SWIG_PY_INT, (char *)"SYS_MOUSE_BUTTONS", (long) wxSYS_MOUSE_BUTTONS, 0, 0, 0}, | |
25855 | { SWIG_PY_INT, (char *)"SYS_BORDER_X", (long) wxSYS_BORDER_X, 0, 0, 0}, | |
25856 | { SWIG_PY_INT, (char *)"SYS_BORDER_Y", (long) wxSYS_BORDER_Y, 0, 0, 0}, | |
25857 | { SWIG_PY_INT, (char *)"SYS_CURSOR_X", (long) wxSYS_CURSOR_X, 0, 0, 0}, | |
25858 | { SWIG_PY_INT, (char *)"SYS_CURSOR_Y", (long) wxSYS_CURSOR_Y, 0, 0, 0}, | |
25859 | { SWIG_PY_INT, (char *)"SYS_DCLICK_X", (long) wxSYS_DCLICK_X, 0, 0, 0}, | |
25860 | { SWIG_PY_INT, (char *)"SYS_DCLICK_Y", (long) wxSYS_DCLICK_Y, 0, 0, 0}, | |
25861 | { SWIG_PY_INT, (char *)"SYS_DRAG_X", (long) wxSYS_DRAG_X, 0, 0, 0}, | |
25862 | { SWIG_PY_INT, (char *)"SYS_DRAG_Y", (long) wxSYS_DRAG_Y, 0, 0, 0}, | |
25863 | { SWIG_PY_INT, (char *)"SYS_EDGE_X", (long) wxSYS_EDGE_X, 0, 0, 0}, | |
25864 | { SWIG_PY_INT, (char *)"SYS_EDGE_Y", (long) wxSYS_EDGE_Y, 0, 0, 0}, | |
25865 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_X", (long) wxSYS_HSCROLL_ARROW_X, 0, 0, 0}, | |
25866 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_Y", (long) wxSYS_HSCROLL_ARROW_Y, 0, 0, 0}, | |
25867 | { SWIG_PY_INT, (char *)"SYS_HTHUMB_X", (long) wxSYS_HTHUMB_X, 0, 0, 0}, | |
25868 | { SWIG_PY_INT, (char *)"SYS_ICON_X", (long) wxSYS_ICON_X, 0, 0, 0}, | |
25869 | { SWIG_PY_INT, (char *)"SYS_ICON_Y", (long) wxSYS_ICON_Y, 0, 0, 0}, | |
25870 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_X", (long) wxSYS_ICONSPACING_X, 0, 0, 0}, | |
25871 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_Y", (long) wxSYS_ICONSPACING_Y, 0, 0, 0}, | |
25872 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_X", (long) wxSYS_WINDOWMIN_X, 0, 0, 0}, | |
25873 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_Y", (long) wxSYS_WINDOWMIN_Y, 0, 0, 0}, | |
25874 | { SWIG_PY_INT, (char *)"SYS_SCREEN_X", (long) wxSYS_SCREEN_X, 0, 0, 0}, | |
25875 | { SWIG_PY_INT, (char *)"SYS_SCREEN_Y", (long) wxSYS_SCREEN_Y, 0, 0, 0}, | |
25876 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_X", (long) wxSYS_FRAMESIZE_X, 0, 0, 0}, | |
25877 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_Y", (long) wxSYS_FRAMESIZE_Y, 0, 0, 0}, | |
25878 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_X", (long) wxSYS_SMALLICON_X, 0, 0, 0}, | |
25879 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_Y", (long) wxSYS_SMALLICON_Y, 0, 0, 0}, | |
25880 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_Y", (long) wxSYS_HSCROLL_Y, 0, 0, 0}, | |
25881 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_X", (long) wxSYS_VSCROLL_X, 0, 0, 0}, | |
25882 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_X", (long) wxSYS_VSCROLL_ARROW_X, 0, 0, 0}, | |
25883 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_Y", (long) wxSYS_VSCROLL_ARROW_Y, 0, 0, 0}, | |
25884 | { SWIG_PY_INT, (char *)"SYS_VTHUMB_Y", (long) wxSYS_VTHUMB_Y, 0, 0, 0}, | |
25885 | { SWIG_PY_INT, (char *)"SYS_CAPTION_Y", (long) wxSYS_CAPTION_Y, 0, 0, 0}, | |
25886 | { SWIG_PY_INT, (char *)"SYS_MENU_Y", (long) wxSYS_MENU_Y, 0, 0, 0}, | |
25887 | { SWIG_PY_INT, (char *)"SYS_NETWORK_PRESENT", (long) wxSYS_NETWORK_PRESENT, 0, 0, 0}, | |
25888 | { SWIG_PY_INT, (char *)"SYS_PENWINDOWS_PRESENT", (long) wxSYS_PENWINDOWS_PRESENT, 0, 0, 0}, | |
25889 | { SWIG_PY_INT, (char *)"SYS_SHOW_SOUNDS", (long) wxSYS_SHOW_SOUNDS, 0, 0, 0}, | |
25890 | { SWIG_PY_INT, (char *)"SYS_SWAP_BUTTONS", (long) wxSYS_SWAP_BUTTONS, 0, 0, 0}, | |
25891 | { SWIG_PY_INT, (char *)"SYS_CAN_DRAW_FRAME_DECORATIONS", (long) wxSYS_CAN_DRAW_FRAME_DECORATIONS, 0, 0, 0}, | |
25892 | { SWIG_PY_INT, (char *)"SYS_CAN_ICONIZE_FRAME", (long) wxSYS_CAN_ICONIZE_FRAME, 0, 0, 0}, | |
25893 | { SWIG_PY_INT, (char *)"SYS_SCREEN_NONE", (long) wxSYS_SCREEN_NONE, 0, 0, 0}, | |
25894 | { SWIG_PY_INT, (char *)"SYS_SCREEN_TINY", (long) wxSYS_SCREEN_TINY, 0, 0, 0}, | |
25895 | { SWIG_PY_INT, (char *)"SYS_SCREEN_PDA", (long) wxSYS_SCREEN_PDA, 0, 0, 0}, | |
25896 | { SWIG_PY_INT, (char *)"SYS_SCREEN_SMALL", (long) wxSYS_SCREEN_SMALL, 0, 0, 0}, | |
25897 | { SWIG_PY_INT, (char *)"SYS_SCREEN_DESKTOP", (long) wxSYS_SCREEN_DESKTOP, 0, 0, 0}, | |
25898 | { SWIG_PY_INT, (char *)"SHUTDOWN_POWEROFF", (long) wxSHUTDOWN_POWEROFF, 0, 0, 0}, | |
25899 | { SWIG_PY_INT, (char *)"SHUTDOWN_REBOOT", (long) wxSHUTDOWN_REBOOT, 0, 0, 0}, | |
25900 | { SWIG_PY_INT, (char *)"TIMER_CONTINUOUS", (long) wxTIMER_CONTINUOUS, 0, 0, 0}, | |
25901 | { SWIG_PY_INT, (char *)"TIMER_ONE_SHOT", (long) wxTIMER_ONE_SHOT, 0, 0, 0}, | |
25902 | { SWIG_PY_INT, (char *)"wxEVT_TIMER", (long) wxEVT_TIMER, 0, 0, 0}, | |
25903 | { SWIG_PY_INT, (char *)"LOG_FatalError", (long) wxLOG_FatalError, 0, 0, 0}, | |
25904 | { SWIG_PY_INT, (char *)"LOG_Error", (long) wxLOG_Error, 0, 0, 0}, | |
25905 | { SWIG_PY_INT, (char *)"LOG_Warning", (long) wxLOG_Warning, 0, 0, 0}, | |
25906 | { SWIG_PY_INT, (char *)"LOG_Message", (long) wxLOG_Message, 0, 0, 0}, | |
25907 | { SWIG_PY_INT, (char *)"LOG_Status", (long) wxLOG_Status, 0, 0, 0}, | |
25908 | { SWIG_PY_INT, (char *)"LOG_Info", (long) wxLOG_Info, 0, 0, 0}, | |
25909 | { SWIG_PY_INT, (char *)"LOG_Debug", (long) wxLOG_Debug, 0, 0, 0}, | |
25910 | { SWIG_PY_INT, (char *)"LOG_Trace", (long) wxLOG_Trace, 0, 0, 0}, | |
25911 | { SWIG_PY_INT, (char *)"LOG_Progress", (long) wxLOG_Progress, 0, 0, 0}, | |
25912 | { SWIG_PY_INT, (char *)"LOG_User", (long) wxLOG_User, 0, 0, 0}, | |
25913 | { SWIG_PY_INT, (char *)"LOG_Max", (long) wxLOG_Max, 0, 0, 0}, | |
25914 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, | |
25915 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
25916 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
25917 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
25918 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
25919 | { SWIG_PY_INT, (char *)"TraceMemAlloc", (long) 0x0001, 0, 0, 0}, | |
25920 | { SWIG_PY_INT, (char *)"TraceMessages", (long) 0x0002, 0, 0, 0}, | |
25921 | { SWIG_PY_INT, (char *)"TraceResAlloc", (long) 0x0004, 0, 0, 0}, | |
25922 | { SWIG_PY_INT, (char *)"TraceRefCount", (long) 0x0008, 0, 0, 0}, | |
25923 | { SWIG_PY_INT, (char *)"TraceOleCalls", (long) 0x0100, 0, 0, 0}, | |
25924 | { SWIG_PY_INT, (char *)"PROCESS_DEFAULT", (long) wxPROCESS_DEFAULT, 0, 0, 0}, | |
25925 | { SWIG_PY_INT, (char *)"PROCESS_REDIRECT", (long) wxPROCESS_REDIRECT, 0, 0, 0}, | |
25926 | { SWIG_PY_INT, (char *)"KILL_OK", (long) wxKILL_OK, 0, 0, 0}, | |
25927 | { SWIG_PY_INT, (char *)"KILL_BAD_SIGNAL", (long) wxKILL_BAD_SIGNAL, 0, 0, 0}, | |
25928 | { SWIG_PY_INT, (char *)"KILL_ACCESS_DENIED", (long) wxKILL_ACCESS_DENIED, 0, 0, 0}, | |
25929 | { SWIG_PY_INT, (char *)"KILL_NO_PROCESS", (long) wxKILL_NO_PROCESS, 0, 0, 0}, | |
25930 | { SWIG_PY_INT, (char *)"KILL_ERROR", (long) wxKILL_ERROR, 0, 0, 0}, | |
25931 | { SWIG_PY_INT, (char *)"SIGNONE", (long) wxSIGNONE, 0, 0, 0}, | |
25932 | { SWIG_PY_INT, (char *)"SIGHUP", (long) wxSIGHUP, 0, 0, 0}, | |
25933 | { SWIG_PY_INT, (char *)"SIGINT", (long) wxSIGINT, 0, 0, 0}, | |
25934 | { SWIG_PY_INT, (char *)"SIGQUIT", (long) wxSIGQUIT, 0, 0, 0}, | |
25935 | { SWIG_PY_INT, (char *)"SIGILL", (long) wxSIGILL, 0, 0, 0}, | |
25936 | { SWIG_PY_INT, (char *)"SIGTRAP", (long) wxSIGTRAP, 0, 0, 0}, | |
25937 | { SWIG_PY_INT, (char *)"SIGABRT", (long) wxSIGABRT, 0, 0, 0}, | |
25938 | { SWIG_PY_INT, (char *)"SIGIOT", (long) wxSIGIOT, 0, 0, 0}, | |
25939 | { SWIG_PY_INT, (char *)"SIGEMT", (long) wxSIGEMT, 0, 0, 0}, | |
25940 | { SWIG_PY_INT, (char *)"SIGFPE", (long) wxSIGFPE, 0, 0, 0}, | |
25941 | { SWIG_PY_INT, (char *)"SIGKILL", (long) wxSIGKILL, 0, 0, 0}, | |
25942 | { SWIG_PY_INT, (char *)"SIGBUS", (long) wxSIGBUS, 0, 0, 0}, | |
25943 | { SWIG_PY_INT, (char *)"SIGSEGV", (long) wxSIGSEGV, 0, 0, 0}, | |
25944 | { SWIG_PY_INT, (char *)"SIGSYS", (long) wxSIGSYS, 0, 0, 0}, | |
25945 | { SWIG_PY_INT, (char *)"SIGPIPE", (long) wxSIGPIPE, 0, 0, 0}, | |
25946 | { SWIG_PY_INT, (char *)"SIGALRM", (long) wxSIGALRM, 0, 0, 0}, | |
25947 | { SWIG_PY_INT, (char *)"SIGTERM", (long) wxSIGTERM, 0, 0, 0}, | |
25948 | { SWIG_PY_INT, (char *)"wxEVT_END_PROCESS", (long) wxEVT_END_PROCESS, 0, 0, 0}, | |
25949 | { SWIG_PY_INT, (char *)"EXEC_ASYNC", (long) wxEXEC_ASYNC, 0, 0, 0}, | |
25950 | { SWIG_PY_INT, (char *)"EXEC_SYNC", (long) wxEXEC_SYNC, 0, 0, 0}, | |
25951 | { SWIG_PY_INT, (char *)"EXEC_NOHIDE", (long) wxEXEC_NOHIDE, 0, 0, 0}, | |
25952 | { SWIG_PY_INT, (char *)"EXEC_MAKE_GROUP_LEADER", (long) wxEXEC_MAKE_GROUP_LEADER, 0, 0, 0}, | |
25953 | { SWIG_PY_INT, (char *)"JOYSTICK1", (long) wxJOYSTICK1, 0, 0, 0}, | |
25954 | { SWIG_PY_INT, (char *)"JOYSTICK2", (long) wxJOYSTICK2, 0, 0, 0}, | |
25955 | { SWIG_PY_INT, (char *)"JOY_BUTTON_ANY", (long) wxJOY_BUTTON_ANY, 0, 0, 0}, | |
25956 | { SWIG_PY_INT, (char *)"JOY_BUTTON1", (long) wxJOY_BUTTON1, 0, 0, 0}, | |
25957 | { SWIG_PY_INT, (char *)"JOY_BUTTON2", (long) wxJOY_BUTTON2, 0, 0, 0}, | |
25958 | { SWIG_PY_INT, (char *)"JOY_BUTTON3", (long) wxJOY_BUTTON3, 0, 0, 0}, | |
25959 | { SWIG_PY_INT, (char *)"JOY_BUTTON4", (long) wxJOY_BUTTON4, 0, 0, 0}, | |
25960 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_DOWN", (long) wxEVT_JOY_BUTTON_DOWN, 0, 0, 0}, | |
25961 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_UP", (long) wxEVT_JOY_BUTTON_UP, 0, 0, 0}, | |
25962 | { SWIG_PY_INT, (char *)"wxEVT_JOY_MOVE", (long) wxEVT_JOY_MOVE, 0, 0, 0}, | |
25963 | { SWIG_PY_INT, (char *)"wxEVT_JOY_ZMOVE", (long) wxEVT_JOY_ZMOVE, 0, 0, 0}, | |
25964 | { SWIG_PY_INT, (char *)"MAILCAP_STANDARD", (long) wxMAILCAP_STANDARD, 0, 0, 0}, | |
25965 | { SWIG_PY_INT, (char *)"MAILCAP_NETSCAPE", (long) wxMAILCAP_NETSCAPE, 0, 0, 0}, | |
25966 | { SWIG_PY_INT, (char *)"MAILCAP_KDE", (long) wxMAILCAP_KDE, 0, 0, 0}, | |
25967 | { SWIG_PY_INT, (char *)"MAILCAP_GNOME", (long) wxMAILCAP_GNOME, 0, 0, 0}, | |
25968 | { SWIG_PY_INT, (char *)"MAILCAP_ALL", (long) wxMAILCAP_ALL, 0, 0, 0}, | |
25969 | { SWIG_PY_INT, (char *)"CONFIG_USE_LOCAL_FILE", (long) wxCONFIG_USE_LOCAL_FILE, 0, 0, 0}, | |
25970 | { SWIG_PY_INT, (char *)"CONFIG_USE_GLOBAL_FILE", (long) wxCONFIG_USE_GLOBAL_FILE, 0, 0, 0}, | |
25971 | { SWIG_PY_INT, (char *)"CONFIG_USE_RELATIVE_PATH", (long) wxCONFIG_USE_RELATIVE_PATH, 0, 0, 0}, | |
25972 | { SWIG_PY_INT, (char *)"CONFIG_USE_NO_ESCAPE_CHARACTERS", (long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS, 0, 0, 0}, | |
25973 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Unknown", (long) wxConfigBase::Type_Unknown, 0, 0, 0}, | |
25974 | { SWIG_PY_INT, (char *)"ConfigBase_Type_String", (long) wxConfigBase::Type_String, 0, 0, 0}, | |
25975 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Boolean", (long) wxConfigBase::Type_Boolean, 0, 0, 0}, | |
25976 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Integer", (long) wxConfigBase::Type_Integer, 0, 0, 0}, | |
25977 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Float", (long) wxConfigBase::Type_Float, 0, 0, 0}, | |
25978 | { SWIG_PY_INT, (char *)"DateTime_Local", (long) wxDateTime::Local, 0, 0, 0}, | |
25979 | { SWIG_PY_INT, (char *)"DateTime_GMT_12", (long) wxDateTime::GMT_12, 0, 0, 0}, | |
25980 | { SWIG_PY_INT, (char *)"DateTime_GMT_11", (long) wxDateTime::GMT_11, 0, 0, 0}, | |
25981 | { SWIG_PY_INT, (char *)"DateTime_GMT_10", (long) wxDateTime::GMT_10, 0, 0, 0}, | |
25982 | { SWIG_PY_INT, (char *)"DateTime_GMT_9", (long) wxDateTime::GMT_9, 0, 0, 0}, | |
25983 | { SWIG_PY_INT, (char *)"DateTime_GMT_8", (long) wxDateTime::GMT_8, 0, 0, 0}, | |
25984 | { SWIG_PY_INT, (char *)"DateTime_GMT_7", (long) wxDateTime::GMT_7, 0, 0, 0}, | |
25985 | { SWIG_PY_INT, (char *)"DateTime_GMT_6", (long) wxDateTime::GMT_6, 0, 0, 0}, | |
25986 | { SWIG_PY_INT, (char *)"DateTime_GMT_5", (long) wxDateTime::GMT_5, 0, 0, 0}, | |
25987 | { SWIG_PY_INT, (char *)"DateTime_GMT_4", (long) wxDateTime::GMT_4, 0, 0, 0}, | |
25988 | { SWIG_PY_INT, (char *)"DateTime_GMT_3", (long) wxDateTime::GMT_3, 0, 0, 0}, | |
25989 | { SWIG_PY_INT, (char *)"DateTime_GMT_2", (long) wxDateTime::GMT_2, 0, 0, 0}, | |
25990 | { SWIG_PY_INT, (char *)"DateTime_GMT_1", (long) wxDateTime::GMT_1, 0, 0, 0}, | |
25991 | { SWIG_PY_INT, (char *)"DateTime_GMT0", (long) wxDateTime::GMT0, 0, 0, 0}, | |
25992 | { SWIG_PY_INT, (char *)"DateTime_GMT1", (long) wxDateTime::GMT1, 0, 0, 0}, | |
25993 | { SWIG_PY_INT, (char *)"DateTime_GMT2", (long) wxDateTime::GMT2, 0, 0, 0}, | |
25994 | { SWIG_PY_INT, (char *)"DateTime_GMT3", (long) wxDateTime::GMT3, 0, 0, 0}, | |
25995 | { SWIG_PY_INT, (char *)"DateTime_GMT4", (long) wxDateTime::GMT4, 0, 0, 0}, | |
25996 | { SWIG_PY_INT, (char *)"DateTime_GMT5", (long) wxDateTime::GMT5, 0, 0, 0}, | |
25997 | { SWIG_PY_INT, (char *)"DateTime_GMT6", (long) wxDateTime::GMT6, 0, 0, 0}, | |
25998 | { SWIG_PY_INT, (char *)"DateTime_GMT7", (long) wxDateTime::GMT7, 0, 0, 0}, | |
25999 | { SWIG_PY_INT, (char *)"DateTime_GMT8", (long) wxDateTime::GMT8, 0, 0, 0}, | |
26000 | { SWIG_PY_INT, (char *)"DateTime_GMT9", (long) wxDateTime::GMT9, 0, 0, 0}, | |
26001 | { SWIG_PY_INT, (char *)"DateTime_GMT10", (long) wxDateTime::GMT10, 0, 0, 0}, | |
26002 | { SWIG_PY_INT, (char *)"DateTime_GMT11", (long) wxDateTime::GMT11, 0, 0, 0}, | |
26003 | { SWIG_PY_INT, (char *)"DateTime_GMT12", (long) wxDateTime::GMT12, 0, 0, 0}, | |
26004 | { SWIG_PY_INT, (char *)"DateTime_WET", (long) wxDateTime::WET, 0, 0, 0}, | |
26005 | { SWIG_PY_INT, (char *)"DateTime_WEST", (long) wxDateTime::WEST, 0, 0, 0}, | |
26006 | { SWIG_PY_INT, (char *)"DateTime_CET", (long) wxDateTime::CET, 0, 0, 0}, | |
26007 | { SWIG_PY_INT, (char *)"DateTime_CEST", (long) wxDateTime::CEST, 0, 0, 0}, | |
26008 | { SWIG_PY_INT, (char *)"DateTime_EET", (long) wxDateTime::EET, 0, 0, 0}, | |
26009 | { SWIG_PY_INT, (char *)"DateTime_EEST", (long) wxDateTime::EEST, 0, 0, 0}, | |
26010 | { SWIG_PY_INT, (char *)"DateTime_MSK", (long) wxDateTime::MSK, 0, 0, 0}, | |
26011 | { SWIG_PY_INT, (char *)"DateTime_MSD", (long) wxDateTime::MSD, 0, 0, 0}, | |
26012 | { SWIG_PY_INT, (char *)"DateTime_AST", (long) wxDateTime::AST, 0, 0, 0}, | |
26013 | { SWIG_PY_INT, (char *)"DateTime_ADT", (long) wxDateTime::ADT, 0, 0, 0}, | |
26014 | { SWIG_PY_INT, (char *)"DateTime_EST", (long) wxDateTime::EST, 0, 0, 0}, | |
26015 | { SWIG_PY_INT, (char *)"DateTime_EDT", (long) wxDateTime::EDT, 0, 0, 0}, | |
26016 | { SWIG_PY_INT, (char *)"DateTime_CST", (long) wxDateTime::CST, 0, 0, 0}, | |
26017 | { SWIG_PY_INT, (char *)"DateTime_CDT", (long) wxDateTime::CDT, 0, 0, 0}, | |
26018 | { SWIG_PY_INT, (char *)"DateTime_MST", (long) wxDateTime::MST, 0, 0, 0}, | |
26019 | { SWIG_PY_INT, (char *)"DateTime_MDT", (long) wxDateTime::MDT, 0, 0, 0}, | |
26020 | { SWIG_PY_INT, (char *)"DateTime_PST", (long) wxDateTime::PST, 0, 0, 0}, | |
26021 | { SWIG_PY_INT, (char *)"DateTime_PDT", (long) wxDateTime::PDT, 0, 0, 0}, | |
26022 | { SWIG_PY_INT, (char *)"DateTime_HST", (long) wxDateTime::HST, 0, 0, 0}, | |
26023 | { SWIG_PY_INT, (char *)"DateTime_AKST", (long) wxDateTime::AKST, 0, 0, 0}, | |
26024 | { SWIG_PY_INT, (char *)"DateTime_AKDT", (long) wxDateTime::AKDT, 0, 0, 0}, | |
26025 | { SWIG_PY_INT, (char *)"DateTime_A_WST", (long) wxDateTime::A_WST, 0, 0, 0}, | |
26026 | { SWIG_PY_INT, (char *)"DateTime_A_CST", (long) wxDateTime::A_CST, 0, 0, 0}, | |
26027 | { SWIG_PY_INT, (char *)"DateTime_A_EST", (long) wxDateTime::A_EST, 0, 0, 0}, | |
26028 | { SWIG_PY_INT, (char *)"DateTime_A_ESST", (long) wxDateTime::A_ESST, 0, 0, 0}, | |
26029 | { SWIG_PY_INT, (char *)"DateTime_UTC", (long) wxDateTime::UTC, 0, 0, 0}, | |
26030 | { SWIG_PY_INT, (char *)"DateTime_Gregorian", (long) wxDateTime::Gregorian, 0, 0, 0}, | |
26031 | { SWIG_PY_INT, (char *)"DateTime_Julian", (long) wxDateTime::Julian, 0, 0, 0}, | |
26032 | { SWIG_PY_INT, (char *)"DateTime_Gr_Unknown", (long) wxDateTime::Gr_Unknown, 0, 0, 0}, | |
26033 | { SWIG_PY_INT, (char *)"DateTime_Gr_Standard", (long) wxDateTime::Gr_Standard, 0, 0, 0}, | |
26034 | { SWIG_PY_INT, (char *)"DateTime_Gr_Alaska", (long) wxDateTime::Gr_Alaska, 0, 0, 0}, | |
26035 | { SWIG_PY_INT, (char *)"DateTime_Gr_Albania", (long) wxDateTime::Gr_Albania, 0, 0, 0}, | |
26036 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria", (long) wxDateTime::Gr_Austria, 0, 0, 0}, | |
26037 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Brixen", (long) wxDateTime::Gr_Austria_Brixen, 0, 0, 0}, | |
26038 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Salzburg", (long) wxDateTime::Gr_Austria_Salzburg, 0, 0, 0}, | |
26039 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Tyrol", (long) wxDateTime::Gr_Austria_Tyrol, 0, 0, 0}, | |
26040 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Carinthia", (long) wxDateTime::Gr_Austria_Carinthia, 0, 0, 0}, | |
26041 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Styria", (long) wxDateTime::Gr_Austria_Styria, 0, 0, 0}, | |
26042 | { SWIG_PY_INT, (char *)"DateTime_Gr_Belgium", (long) wxDateTime::Gr_Belgium, 0, 0, 0}, | |
26043 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria", (long) wxDateTime::Gr_Bulgaria, 0, 0, 0}, | |
26044 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_1", (long) wxDateTime::Gr_Bulgaria_1, 0, 0, 0}, | |
26045 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_2", (long) wxDateTime::Gr_Bulgaria_2, 0, 0, 0}, | |
26046 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_3", (long) wxDateTime::Gr_Bulgaria_3, 0, 0, 0}, | |
26047 | { SWIG_PY_INT, (char *)"DateTime_Gr_Canada", (long) wxDateTime::Gr_Canada, 0, 0, 0}, | |
26048 | { SWIG_PY_INT, (char *)"DateTime_Gr_China", (long) wxDateTime::Gr_China, 0, 0, 0}, | |
26049 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_1", (long) wxDateTime::Gr_China_1, 0, 0, 0}, | |
26050 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_2", (long) wxDateTime::Gr_China_2, 0, 0, 0}, | |
26051 | { SWIG_PY_INT, (char *)"DateTime_Gr_Czechoslovakia", (long) wxDateTime::Gr_Czechoslovakia, 0, 0, 0}, | |
26052 | { SWIG_PY_INT, (char *)"DateTime_Gr_Denmark", (long) wxDateTime::Gr_Denmark, 0, 0, 0}, | |
26053 | { SWIG_PY_INT, (char *)"DateTime_Gr_Egypt", (long) wxDateTime::Gr_Egypt, 0, 0, 0}, | |
26054 | { SWIG_PY_INT, (char *)"DateTime_Gr_Estonia", (long) wxDateTime::Gr_Estonia, 0, 0, 0}, | |
26055 | { SWIG_PY_INT, (char *)"DateTime_Gr_Finland", (long) wxDateTime::Gr_Finland, 0, 0, 0}, | |
26056 | { SWIG_PY_INT, (char *)"DateTime_Gr_France", (long) wxDateTime::Gr_France, 0, 0, 0}, | |
26057 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Alsace", (long) wxDateTime::Gr_France_Alsace, 0, 0, 0}, | |
26058 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Lorraine", (long) wxDateTime::Gr_France_Lorraine, 0, 0, 0}, | |
26059 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Strasbourg", (long) wxDateTime::Gr_France_Strasbourg, 0, 0, 0}, | |
26060 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany", (long) wxDateTime::Gr_Germany, 0, 0, 0}, | |
26061 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Catholic", (long) wxDateTime::Gr_Germany_Catholic, 0, 0, 0}, | |
26062 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Prussia", (long) wxDateTime::Gr_Germany_Prussia, 0, 0, 0}, | |
26063 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Protestant", (long) wxDateTime::Gr_Germany_Protestant, 0, 0, 0}, | |
26064 | { SWIG_PY_INT, (char *)"DateTime_Gr_GreatBritain", (long) wxDateTime::Gr_GreatBritain, 0, 0, 0}, | |
26065 | { SWIG_PY_INT, (char *)"DateTime_Gr_Greece", (long) wxDateTime::Gr_Greece, 0, 0, 0}, | |
26066 | { SWIG_PY_INT, (char *)"DateTime_Gr_Hungary", (long) wxDateTime::Gr_Hungary, 0, 0, 0}, | |
26067 | { SWIG_PY_INT, (char *)"DateTime_Gr_Ireland", (long) wxDateTime::Gr_Ireland, 0, 0, 0}, | |
26068 | { SWIG_PY_INT, (char *)"DateTime_Gr_Italy", (long) wxDateTime::Gr_Italy, 0, 0, 0}, | |
26069 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan", (long) wxDateTime::Gr_Japan, 0, 0, 0}, | |
26070 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_1", (long) wxDateTime::Gr_Japan_1, 0, 0, 0}, | |
26071 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_2", (long) wxDateTime::Gr_Japan_2, 0, 0, 0}, | |
26072 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_3", (long) wxDateTime::Gr_Japan_3, 0, 0, 0}, | |
26073 | { SWIG_PY_INT, (char *)"DateTime_Gr_Latvia", (long) wxDateTime::Gr_Latvia, 0, 0, 0}, | |
26074 | { SWIG_PY_INT, (char *)"DateTime_Gr_Lithuania", (long) wxDateTime::Gr_Lithuania, 0, 0, 0}, | |
26075 | { SWIG_PY_INT, (char *)"DateTime_Gr_Luxemburg", (long) wxDateTime::Gr_Luxemburg, 0, 0, 0}, | |
26076 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands", (long) wxDateTime::Gr_Netherlands, 0, 0, 0}, | |
26077 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Groningen", (long) wxDateTime::Gr_Netherlands_Groningen, 0, 0, 0}, | |
26078 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Gelderland", (long) wxDateTime::Gr_Netherlands_Gelderland, 0, 0, 0}, | |
26079 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Utrecht", (long) wxDateTime::Gr_Netherlands_Utrecht, 0, 0, 0}, | |
26080 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Friesland", (long) wxDateTime::Gr_Netherlands_Friesland, 0, 0, 0}, | |
26081 | { SWIG_PY_INT, (char *)"DateTime_Gr_Norway", (long) wxDateTime::Gr_Norway, 0, 0, 0}, | |
26082 | { SWIG_PY_INT, (char *)"DateTime_Gr_Poland", (long) wxDateTime::Gr_Poland, 0, 0, 0}, | |
26083 | { SWIG_PY_INT, (char *)"DateTime_Gr_Portugal", (long) wxDateTime::Gr_Portugal, 0, 0, 0}, | |
26084 | { SWIG_PY_INT, (char *)"DateTime_Gr_Romania", (long) wxDateTime::Gr_Romania, 0, 0, 0}, | |
26085 | { SWIG_PY_INT, (char *)"DateTime_Gr_Russia", (long) wxDateTime::Gr_Russia, 0, 0, 0}, | |
26086 | { SWIG_PY_INT, (char *)"DateTime_Gr_Scotland", (long) wxDateTime::Gr_Scotland, 0, 0, 0}, | |
26087 | { SWIG_PY_INT, (char *)"DateTime_Gr_Spain", (long) wxDateTime::Gr_Spain, 0, 0, 0}, | |
26088 | { SWIG_PY_INT, (char *)"DateTime_Gr_Sweden", (long) wxDateTime::Gr_Sweden, 0, 0, 0}, | |
26089 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland", (long) wxDateTime::Gr_Switzerland, 0, 0, 0}, | |
26090 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Catholic", (long) wxDateTime::Gr_Switzerland_Catholic, 0, 0, 0}, | |
26091 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Protestant", (long) wxDateTime::Gr_Switzerland_Protestant, 0, 0, 0}, | |
26092 | { SWIG_PY_INT, (char *)"DateTime_Gr_Turkey", (long) wxDateTime::Gr_Turkey, 0, 0, 0}, | |
26093 | { SWIG_PY_INT, (char *)"DateTime_Gr_USA", (long) wxDateTime::Gr_USA, 0, 0, 0}, | |
26094 | { SWIG_PY_INT, (char *)"DateTime_Gr_Wales", (long) wxDateTime::Gr_Wales, 0, 0, 0}, | |
26095 | { SWIG_PY_INT, (char *)"DateTime_Gr_Yugoslavia", (long) wxDateTime::Gr_Yugoslavia, 0, 0, 0}, | |
26096 | { SWIG_PY_INT, (char *)"DateTime_Country_Unknown", (long) wxDateTime::Country_Unknown, 0, 0, 0}, | |
26097 | { SWIG_PY_INT, (char *)"DateTime_Country_Default", (long) wxDateTime::Country_Default, 0, 0, 0}, | |
26098 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_Start", (long) wxDateTime::Country_WesternEurope_Start, 0, 0, 0}, | |
26099 | { SWIG_PY_INT, (char *)"DateTime_Country_EEC", (long) wxDateTime::Country_EEC, 0, 0, 0}, | |
26100 | { SWIG_PY_INT, (char *)"DateTime_France", (long) wxDateTime::France, 0, 0, 0}, | |
26101 | { SWIG_PY_INT, (char *)"DateTime_Germany", (long) wxDateTime::Germany, 0, 0, 0}, | |
26102 | { SWIG_PY_INT, (char *)"DateTime_UK", (long) wxDateTime::UK, 0, 0, 0}, | |
26103 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_End", (long) wxDateTime::Country_WesternEurope_End, 0, 0, 0}, | |
26104 | { SWIG_PY_INT, (char *)"DateTime_Russia", (long) wxDateTime::Russia, 0, 0, 0}, | |
26105 | { SWIG_PY_INT, (char *)"DateTime_USA", (long) wxDateTime::USA, 0, 0, 0}, | |
26106 | { SWIG_PY_INT, (char *)"DateTime_Jan", (long) wxDateTime::Jan, 0, 0, 0}, | |
26107 | { SWIG_PY_INT, (char *)"DateTime_Feb", (long) wxDateTime::Feb, 0, 0, 0}, | |
26108 | { SWIG_PY_INT, (char *)"DateTime_Mar", (long) wxDateTime::Mar, 0, 0, 0}, | |
26109 | { SWIG_PY_INT, (char *)"DateTime_Apr", (long) wxDateTime::Apr, 0, 0, 0}, | |
26110 | { SWIG_PY_INT, (char *)"DateTime_May", (long) wxDateTime::May, 0, 0, 0}, | |
26111 | { SWIG_PY_INT, (char *)"DateTime_Jun", (long) wxDateTime::Jun, 0, 0, 0}, | |
26112 | { SWIG_PY_INT, (char *)"DateTime_Jul", (long) wxDateTime::Jul, 0, 0, 0}, | |
26113 | { SWIG_PY_INT, (char *)"DateTime_Aug", (long) wxDateTime::Aug, 0, 0, 0}, | |
26114 | { SWIG_PY_INT, (char *)"DateTime_Sep", (long) wxDateTime::Sep, 0, 0, 0}, | |
26115 | { SWIG_PY_INT, (char *)"DateTime_Oct", (long) wxDateTime::Oct, 0, 0, 0}, | |
26116 | { SWIG_PY_INT, (char *)"DateTime_Nov", (long) wxDateTime::Nov, 0, 0, 0}, | |
26117 | { SWIG_PY_INT, (char *)"DateTime_Dec", (long) wxDateTime::Dec, 0, 0, 0}, | |
26118 | { SWIG_PY_INT, (char *)"DateTime_Inv_Month", (long) wxDateTime::Inv_Month, 0, 0, 0}, | |
26119 | { SWIG_PY_INT, (char *)"DateTime_Sun", (long) wxDateTime::Sun, 0, 0, 0}, | |
26120 | { SWIG_PY_INT, (char *)"DateTime_Mon", (long) wxDateTime::Mon, 0, 0, 0}, | |
26121 | { SWIG_PY_INT, (char *)"DateTime_Tue", (long) wxDateTime::Tue, 0, 0, 0}, | |
26122 | { SWIG_PY_INT, (char *)"DateTime_Wed", (long) wxDateTime::Wed, 0, 0, 0}, | |
26123 | { SWIG_PY_INT, (char *)"DateTime_Thu", (long) wxDateTime::Thu, 0, 0, 0}, | |
26124 | { SWIG_PY_INT, (char *)"DateTime_Fri", (long) wxDateTime::Fri, 0, 0, 0}, | |
26125 | { SWIG_PY_INT, (char *)"DateTime_Sat", (long) wxDateTime::Sat, 0, 0, 0}, | |
26126 | { SWIG_PY_INT, (char *)"DateTime_Inv_WeekDay", (long) wxDateTime::Inv_WeekDay, 0, 0, 0}, | |
26127 | { SWIG_PY_INT, (char *)"DateTime_Inv_Year", (long) wxDateTime::Inv_Year, 0, 0, 0}, | |
26128 | { SWIG_PY_INT, (char *)"DateTime_Name_Full", (long) wxDateTime::Name_Full, 0, 0, 0}, | |
26129 | { SWIG_PY_INT, (char *)"DateTime_Name_Abbr", (long) wxDateTime::Name_Abbr, 0, 0, 0}, | |
26130 | { SWIG_PY_INT, (char *)"DateTime_Default_First", (long) wxDateTime::Default_First, 0, 0, 0}, | |
26131 | { SWIG_PY_INT, (char *)"DateTime_Monday_First", (long) wxDateTime::Monday_First, 0, 0, 0}, | |
26132 | { SWIG_PY_INT, (char *)"DateTime_Sunday_First", (long) wxDateTime::Sunday_First, 0, 0, 0}, | |
26133 | { SWIG_PY_INT, (char *)"DF_INVALID", (long) wxDF_INVALID, 0, 0, 0}, | |
26134 | { SWIG_PY_INT, (char *)"DF_TEXT", (long) wxDF_TEXT, 0, 0, 0}, | |
26135 | { SWIG_PY_INT, (char *)"DF_BITMAP", (long) wxDF_BITMAP, 0, 0, 0}, | |
26136 | { SWIG_PY_INT, (char *)"DF_METAFILE", (long) wxDF_METAFILE, 0, 0, 0}, | |
26137 | { SWIG_PY_INT, (char *)"DF_SYLK", (long) wxDF_SYLK, 0, 0, 0}, | |
26138 | { SWIG_PY_INT, (char *)"DF_DIF", (long) wxDF_DIF, 0, 0, 0}, | |
26139 | { SWIG_PY_INT, (char *)"DF_TIFF", (long) wxDF_TIFF, 0, 0, 0}, | |
26140 | { SWIG_PY_INT, (char *)"DF_OEMTEXT", (long) wxDF_OEMTEXT, 0, 0, 0}, | |
26141 | { SWIG_PY_INT, (char *)"DF_DIB", (long) wxDF_DIB, 0, 0, 0}, | |
26142 | { SWIG_PY_INT, (char *)"DF_PALETTE", (long) wxDF_PALETTE, 0, 0, 0}, | |
26143 | { SWIG_PY_INT, (char *)"DF_PENDATA", (long) wxDF_PENDATA, 0, 0, 0}, | |
26144 | { SWIG_PY_INT, (char *)"DF_RIFF", (long) wxDF_RIFF, 0, 0, 0}, | |
26145 | { SWIG_PY_INT, (char *)"DF_WAVE", (long) wxDF_WAVE, 0, 0, 0}, | |
26146 | { SWIG_PY_INT, (char *)"DF_UNICODETEXT", (long) wxDF_UNICODETEXT, 0, 0, 0}, | |
26147 | { SWIG_PY_INT, (char *)"DF_ENHMETAFILE", (long) wxDF_ENHMETAFILE, 0, 0, 0}, | |
26148 | { SWIG_PY_INT, (char *)"DF_FILENAME", (long) wxDF_FILENAME, 0, 0, 0}, | |
26149 | { SWIG_PY_INT, (char *)"DF_LOCALE", (long) wxDF_LOCALE, 0, 0, 0}, | |
26150 | { SWIG_PY_INT, (char *)"DF_PRIVATE", (long) wxDF_PRIVATE, 0, 0, 0}, | |
26151 | { SWIG_PY_INT, (char *)"DF_HTML", (long) wxDF_HTML, 0, 0, 0}, | |
26152 | { SWIG_PY_INT, (char *)"DF_MAX", (long) wxDF_MAX, 0, 0, 0}, | |
26153 | { SWIG_PY_INT, (char *)"DataObject_Get", (long) wxDataObject::Get, 0, 0, 0}, | |
26154 | { SWIG_PY_INT, (char *)"DataObject_Set", (long) wxDataObject::Set, 0, 0, 0}, | |
26155 | { SWIG_PY_INT, (char *)"DataObject_Both", (long) wxDataObject::Both, 0, 0, 0}, | |
26156 | { SWIG_PY_INT, (char *)"Drag_CopyOnly", (long) wxDrag_CopyOnly, 0, 0, 0}, | |
26157 | { SWIG_PY_INT, (char *)"Drag_AllowMove", (long) wxDrag_AllowMove, 0, 0, 0}, | |
26158 | { SWIG_PY_INT, (char *)"Drag_DefaultMove", (long) wxDrag_DefaultMove, 0, 0, 0}, | |
26159 | { SWIG_PY_INT, (char *)"DragError", (long) wxDragError, 0, 0, 0}, | |
26160 | { SWIG_PY_INT, (char *)"DragNone", (long) wxDragNone, 0, 0, 0}, | |
26161 | { SWIG_PY_INT, (char *)"DragCopy", (long) wxDragCopy, 0, 0, 0}, | |
26162 | { SWIG_PY_INT, (char *)"DragMove", (long) wxDragMove, 0, 0, 0}, | |
26163 | { SWIG_PY_INT, (char *)"DragLink", (long) wxDragLink, 0, 0, 0}, | |
26164 | { SWIG_PY_INT, (char *)"DragCancel", (long) wxDragCancel, 0, 0, 0}, | |
26165 | {0}}; | |
26166 | ||
26167 | #ifdef __cplusplus | |
26168 | } | |
26169 | #endif | |
26170 | ||
26171 | #ifdef __cplusplus | |
26172 | extern "C" | |
26173 | #endif | |
26174 | SWIGEXPORT(void) SWIG_init(void) { | |
26175 | static PyObject *SWIG_globals = 0; | |
26176 | static int typeinit = 0; | |
26177 | PyObject *m, *d; | |
26178 | int i; | |
26179 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26180 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26181 | d = PyModule_GetDict(m); | |
26182 | ||
26183 | if (!typeinit) { | |
26184 | for (i = 0; swig_types_initial[i]; i++) { | |
26185 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26186 | } | |
26187 | typeinit = 1; | |
26188 | } | |
26189 | SWIG_InstallConstants(d,swig_const_table); | |
26190 | ||
26191 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
26192 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
26193 | ||
26194 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
26195 | ||
26196 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
26197 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
26198 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
26199 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
26200 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
26201 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
26202 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
26203 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
26204 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
26205 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
26206 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
26207 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
26208 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
26209 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
26210 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
26211 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
26212 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
26213 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
26214 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
26215 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
26216 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
26217 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
26218 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
26219 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
26220 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
26221 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
26222 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
26223 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
26224 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
26225 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
26226 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
26227 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
26228 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
26229 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
26230 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
26231 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
26232 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
26233 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
26234 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
26235 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
26236 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
26237 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
26238 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
26239 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
26240 | ||
26241 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
26242 | ||
26243 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
26244 | ||
26245 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
26246 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
26247 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
26248 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
26249 | ||
26250 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
26251 | } | |
26252 |