]>
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 | ||
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 | ||
1051 | #include <wx/dnd.h> | |
1052 | ||
1053 | ||
1054 | class wxPyDropSource : public wxDropSource { | |
1055 | public: | |
1056 | #ifndef __WXGTK__ | |
1057 | wxPyDropSource(wxWindow *win = NULL, | |
1058 | const wxCursor © = wxNullCursor, | |
1059 | const wxCursor &move = wxNullCursor, | |
1060 | const wxCursor &none = wxNullCursor) | |
1061 | : wxDropSource(win, copy, move, none) {} | |
1062 | #else | |
1063 | wxPyDropSource(wxWindow *win = NULL, | |
1064 | const wxIcon& copy = wxNullIcon, | |
1065 | const wxIcon& move = wxNullIcon, | |
1066 | const wxIcon& none = wxNullIcon) | |
1067 | : wxDropSource(win, copy, move, none) {} | |
1068 | #endif | |
1069 | ~wxPyDropSource() { } | |
1070 | ||
1071 | DEC_PYCALLBACK_BOOL_DR(GiveFeedback); | |
1072 | PYPRIVATE; | |
1073 | }; | |
1074 | ||
1075 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); | |
1076 | ||
1077 | ||
1078 | ||
1079 | class wxPyDropTarget : public wxDropTarget { | |
1080 | public: | |
1081 | wxPyDropTarget(wxDataObject *dataObject = NULL) | |
1082 | : wxDropTarget(dataObject) {} | |
1083 | ||
1084 | // called when mouse leaves the window: might be used to remove the | |
1085 | // feedback which was given in OnEnter() | |
1086 | DEC_PYCALLBACK__(OnLeave); | |
1087 | ||
1088 | // called when the mouse enters the window (only once until OnLeave()) | |
1089 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1090 | ||
1091 | // called when the mouse moves in the window - shouldn't take long to | |
1092 | // execute or otherwise mouse movement would be too slow | |
1093 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1094 | ||
423f194a | 1095 | // called after OnDrop() returns True: you will usually just call |
d14a1e28 RD |
1096 | // GetData() from here and, probably, also refresh something to update the |
1097 | // new data and, finally, return the code indicating how did the operation | |
1098 | // complete (returning default value in case of success and wxDragError on | |
1099 | // failure is usually ok) | |
1100 | DEC_PYCALLBACK_DR_2WXCDR_pure(OnData); | |
1101 | ||
1102 | // this function is called when data is dropped at position (x, y) - if it | |
423f194a | 1103 | // returns True, OnData() will be called immediately afterwards which will |
d14a1e28 RD |
1104 | // allow to retrieve the data dropped. |
1105 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1106 | ||
1107 | PYPRIVATE; | |
1108 | }; | |
1109 | ||
1110 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); | |
1111 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1112 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1113 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1114 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1115 | ||
1116 | ||
1117 | ||
1118 | class wxPyTextDropTarget : public wxTextDropTarget { | |
1119 | public: | |
1120 | wxPyTextDropTarget() {} | |
1121 | ||
1122 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1123 | ||
1124 | DEC_PYCALLBACK__(OnLeave); | |
1125 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1126 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1127 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1128 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1129 | ||
1130 | PYPRIVATE; | |
1131 | }; | |
1132 | ||
1133 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1134 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1135 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1136 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1137 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1138 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1139 | ||
1140 | ||
1141 | ||
1142 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1143 | public: | |
1144 | wxPyFileDropTarget() {} | |
1145 | ||
1146 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1147 | ||
1148 | DEC_PYCALLBACK__(OnLeave); | |
1149 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1150 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1151 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1152 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1153 | ||
1154 | PYPRIVATE; | |
1155 | }; | |
1156 | ||
1157 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1158 | const wxArrayString& filenames) { | |
423f194a | 1159 | bool rval = False; |
d14a1e28 RD |
1160 | wxPyBeginBlockThreads(); |
1161 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1162 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1163 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1164 | Py_DECREF(list); | |
1165 | } | |
1166 | wxPyEndBlockThreads(); | |
1167 | return rval; | |
1168 | } | |
1169 | ||
1170 | ||
1171 | ||
1172 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1173 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1174 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1175 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1176 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1177 | ||
1178 | ||
1179 | ||
1180 | ||
1181 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1182 | #ifdef __cplusplus | |
1183 | extern "C" { | |
1184 | #endif | |
1185 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1186 | PyObject *resultobj; | |
1187 | int arg1 ; | |
1188 | wxColour result; | |
1189 | char *kwnames[] = { | |
1190 | (char *) "index", NULL | |
1191 | }; | |
1192 | ||
1193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetColour",kwnames,&arg1)) goto fail; | |
1194 | { | |
1195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1196 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1197 | ||
1198 | wxPyEndAllowThreads(__tstate); | |
1199 | if (PyErr_Occurred()) SWIG_fail; | |
1200 | } | |
1201 | { | |
1202 | wxColour * resultptr; | |
1203 | resultptr = new wxColour((wxColour &) result); | |
1204 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1205 | } | |
1206 | return resultobj; | |
1207 | fail: | |
1208 | return NULL; | |
1209 | } | |
1210 | ||
1211 | ||
1212 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1213 | PyObject *resultobj; | |
1214 | int arg1 ; | |
1215 | wxFont result; | |
1216 | char *kwnames[] = { | |
1217 | (char *) "index", NULL | |
1218 | }; | |
1219 | ||
1220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetFont",kwnames,&arg1)) goto fail; | |
1221 | { | |
1222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1223 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1224 | ||
1225 | wxPyEndAllowThreads(__tstate); | |
1226 | if (PyErr_Occurred()) SWIG_fail; | |
1227 | } | |
1228 | { | |
1229 | wxFont * resultptr; | |
1230 | resultptr = new wxFont((wxFont &) result); | |
1231 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
1232 | } | |
1233 | return resultobj; | |
1234 | fail: | |
1235 | return NULL; | |
1236 | } | |
1237 | ||
1238 | ||
1239 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1240 | PyObject *resultobj; | |
1241 | int arg1 ; | |
1242 | int result; | |
1243 | char *kwnames[] = { | |
1244 | (char *) "index", NULL | |
1245 | }; | |
1246 | ||
1247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetMetric",kwnames,&arg1)) goto fail; | |
1248 | { | |
1249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1250 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1251 | ||
1252 | wxPyEndAllowThreads(__tstate); | |
1253 | if (PyErr_Occurred()) SWIG_fail; | |
1254 | } | |
1255 | resultobj = PyInt_FromLong((long)result); | |
1256 | return resultobj; | |
1257 | fail: | |
1258 | return NULL; | |
1259 | } | |
1260 | ||
1261 | ||
1262 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1263 | PyObject *resultobj; | |
1264 | int arg1 ; | |
1265 | bool result; | |
1266 | char *kwnames[] = { | |
1267 | (char *) "index", NULL | |
1268 | }; | |
1269 | ||
1270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_HasFeature",kwnames,&arg1)) goto fail; | |
1271 | { | |
1272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1273 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1274 | ||
1275 | wxPyEndAllowThreads(__tstate); | |
1276 | if (PyErr_Occurred()) SWIG_fail; | |
1277 | } | |
1278 | resultobj = PyInt_FromLong((long)result); | |
1279 | return resultobj; | |
1280 | fail: | |
1281 | return NULL; | |
1282 | } | |
1283 | ||
1284 | ||
1285 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1286 | PyObject *resultobj; | |
1287 | int result; | |
1288 | char *kwnames[] = { | |
1289 | NULL | |
1290 | }; | |
1291 | ||
1292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1293 | { | |
1294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1295 | result = (int)wxSystemSettings::GetScreenType(); | |
1296 | ||
1297 | wxPyEndAllowThreads(__tstate); | |
1298 | if (PyErr_Occurred()) SWIG_fail; | |
1299 | } | |
1300 | resultobj = PyInt_FromLong((long)result); | |
1301 | return resultobj; | |
1302 | fail: | |
1303 | return NULL; | |
1304 | } | |
1305 | ||
1306 | ||
1307 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1308 | PyObject *resultobj; | |
1309 | int arg1 ; | |
1310 | char *kwnames[] = { | |
1311 | (char *) "screen", NULL | |
1312 | }; | |
1313 | ||
1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_SetScreenType",kwnames,&arg1)) goto fail; | |
1315 | { | |
1316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1317 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1318 | ||
1319 | wxPyEndAllowThreads(__tstate); | |
1320 | if (PyErr_Occurred()) SWIG_fail; | |
1321 | } | |
1322 | Py_INCREF(Py_None); resultobj = Py_None; | |
1323 | return resultobj; | |
1324 | fail: | |
1325 | return NULL; | |
1326 | } | |
1327 | ||
1328 | ||
1329 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1330 | PyObject *obj; | |
1331 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1332 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1333 | Py_INCREF(obj); | |
1334 | return Py_BuildValue((char *)""); | |
1335 | } | |
1336 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1337 | PyObject *resultobj; | |
1338 | wxSystemOptions *result; | |
1339 | char *kwnames[] = { | |
1340 | NULL | |
1341 | }; | |
1342 | ||
1343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1344 | { | |
1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1346 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1347 | ||
1348 | wxPyEndAllowThreads(__tstate); | |
1349 | if (PyErr_Occurred()) SWIG_fail; | |
1350 | } | |
1351 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1); | |
1352 | return resultobj; | |
1353 | fail: | |
1354 | return NULL; | |
1355 | } | |
1356 | ||
1357 | ||
1358 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1359 | PyObject *resultobj; | |
1360 | wxString *arg1 = 0 ; | |
1361 | wxString *arg2 = 0 ; | |
423f194a RD |
1362 | bool temp1 = False ; |
1363 | bool temp2 = False ; | |
d14a1e28 RD |
1364 | PyObject * obj0 = 0 ; |
1365 | PyObject * obj1 = 0 ; | |
1366 | char *kwnames[] = { | |
1367 | (char *) "name",(char *) "value", NULL | |
1368 | }; | |
1369 | ||
1370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1371 | { | |
1372 | arg1 = wxString_in_helper(obj0); | |
1373 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1374 | temp1 = True; |
d14a1e28 RD |
1375 | } |
1376 | { | |
1377 | arg2 = wxString_in_helper(obj1); | |
1378 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 1379 | temp2 = True; |
d14a1e28 RD |
1380 | } |
1381 | { | |
1382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1383 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1384 | ||
1385 | wxPyEndAllowThreads(__tstate); | |
1386 | if (PyErr_Occurred()) SWIG_fail; | |
1387 | } | |
1388 | Py_INCREF(Py_None); resultobj = Py_None; | |
1389 | { | |
1390 | if (temp1) | |
1391 | delete arg1; | |
1392 | } | |
1393 | { | |
1394 | if (temp2) | |
1395 | delete arg2; | |
1396 | } | |
1397 | return resultobj; | |
1398 | fail: | |
1399 | { | |
1400 | if (temp1) | |
1401 | delete arg1; | |
1402 | } | |
1403 | { | |
1404 | if (temp2) | |
1405 | delete arg2; | |
1406 | } | |
1407 | return NULL; | |
1408 | } | |
1409 | ||
1410 | ||
1411 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1412 | PyObject *resultobj; | |
1413 | wxString *arg1 = 0 ; | |
1414 | int arg2 ; | |
423f194a | 1415 | bool temp1 = False ; |
d14a1e28 RD |
1416 | PyObject * obj0 = 0 ; |
1417 | char *kwnames[] = { | |
1418 | (char *) "name",(char *) "value", NULL | |
1419 | }; | |
1420 | ||
1421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SystemOptions_SetOptionInt",kwnames,&obj0,&arg2)) goto fail; | |
1422 | { | |
1423 | arg1 = wxString_in_helper(obj0); | |
1424 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1425 | temp1 = True; |
d14a1e28 RD |
1426 | } |
1427 | { | |
1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1429 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1430 | ||
1431 | wxPyEndAllowThreads(__tstate); | |
1432 | if (PyErr_Occurred()) SWIG_fail; | |
1433 | } | |
1434 | Py_INCREF(Py_None); resultobj = Py_None; | |
1435 | { | |
1436 | if (temp1) | |
1437 | delete arg1; | |
1438 | } | |
1439 | return resultobj; | |
1440 | fail: | |
1441 | { | |
1442 | if (temp1) | |
1443 | delete arg1; | |
1444 | } | |
1445 | return NULL; | |
1446 | } | |
1447 | ||
1448 | ||
1449 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1450 | PyObject *resultobj; | |
1451 | wxString *arg1 = 0 ; | |
1452 | wxString result; | |
423f194a | 1453 | bool temp1 = False ; |
d14a1e28 RD |
1454 | PyObject * obj0 = 0 ; |
1455 | char *kwnames[] = { | |
1456 | (char *) "name", NULL | |
1457 | }; | |
1458 | ||
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1460 | { | |
1461 | arg1 = wxString_in_helper(obj0); | |
1462 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1463 | temp1 = True; |
d14a1e28 RD |
1464 | } |
1465 | { | |
1466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1467 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1468 | ||
1469 | wxPyEndAllowThreads(__tstate); | |
1470 | if (PyErr_Occurred()) SWIG_fail; | |
1471 | } | |
1472 | { | |
1473 | #if wxUSE_UNICODE | |
1474 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1475 | #else | |
1476 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1477 | #endif | |
1478 | } | |
1479 | { | |
1480 | if (temp1) | |
1481 | delete arg1; | |
1482 | } | |
1483 | return resultobj; | |
1484 | fail: | |
1485 | { | |
1486 | if (temp1) | |
1487 | delete arg1; | |
1488 | } | |
1489 | return NULL; | |
1490 | } | |
1491 | ||
1492 | ||
1493 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1494 | PyObject *resultobj; | |
1495 | wxString *arg1 = 0 ; | |
1496 | int result; | |
423f194a | 1497 | bool temp1 = False ; |
d14a1e28 RD |
1498 | PyObject * obj0 = 0 ; |
1499 | char *kwnames[] = { | |
1500 | (char *) "name", NULL | |
1501 | }; | |
1502 | ||
1503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1504 | { | |
1505 | arg1 = wxString_in_helper(obj0); | |
1506 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1507 | temp1 = True; |
d14a1e28 RD |
1508 | } |
1509 | { | |
1510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1511 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1512 | ||
1513 | wxPyEndAllowThreads(__tstate); | |
1514 | if (PyErr_Occurred()) SWIG_fail; | |
1515 | } | |
1516 | resultobj = PyInt_FromLong((long)result); | |
1517 | { | |
1518 | if (temp1) | |
1519 | delete arg1; | |
1520 | } | |
1521 | return resultobj; | |
1522 | fail: | |
1523 | { | |
1524 | if (temp1) | |
1525 | delete arg1; | |
1526 | } | |
1527 | return NULL; | |
1528 | } | |
1529 | ||
1530 | ||
1531 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1532 | PyObject *resultobj; | |
1533 | wxString *arg1 = 0 ; | |
1534 | bool result; | |
423f194a | 1535 | bool temp1 = False ; |
d14a1e28 RD |
1536 | PyObject * obj0 = 0 ; |
1537 | char *kwnames[] = { | |
1538 | (char *) "name", NULL | |
1539 | }; | |
1540 | ||
1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1542 | { | |
1543 | arg1 = wxString_in_helper(obj0); | |
1544 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1545 | temp1 = True; |
d14a1e28 RD |
1546 | } |
1547 | { | |
1548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1549 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1550 | ||
1551 | wxPyEndAllowThreads(__tstate); | |
1552 | if (PyErr_Occurred()) SWIG_fail; | |
1553 | } | |
1554 | resultobj = PyInt_FromLong((long)result); | |
1555 | { | |
1556 | if (temp1) | |
1557 | delete arg1; | |
1558 | } | |
1559 | return resultobj; | |
1560 | fail: | |
1561 | { | |
1562 | if (temp1) | |
1563 | delete arg1; | |
1564 | } | |
1565 | return NULL; | |
1566 | } | |
1567 | ||
1568 | ||
1569 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1570 | PyObject *obj; | |
1571 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1572 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1573 | Py_INCREF(obj); | |
1574 | return Py_BuildValue((char *)""); | |
1575 | } | |
1576 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1577 | PyObject *resultobj; | |
1578 | long result; | |
1579 | char *kwnames[] = { | |
1580 | NULL | |
1581 | }; | |
1582 | ||
1583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1584 | { | |
1585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1586 | result = (long)wxNewId(); | |
1587 | ||
1588 | wxPyEndAllowThreads(__tstate); | |
1589 | if (PyErr_Occurred()) SWIG_fail; | |
1590 | } | |
1591 | resultobj = PyInt_FromLong((long)result); | |
1592 | return resultobj; | |
1593 | fail: | |
1594 | return NULL; | |
1595 | } | |
1596 | ||
1597 | ||
1598 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject *resultobj; | |
1600 | long arg1 ; | |
1601 | char *kwnames[] = { | |
1602 | (char *) "id", NULL | |
1603 | }; | |
1604 | ||
1605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:RegisterId",kwnames,&arg1)) goto fail; | |
1606 | { | |
1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1608 | wxRegisterId(arg1); | |
1609 | ||
1610 | wxPyEndAllowThreads(__tstate); | |
1611 | if (PyErr_Occurred()) SWIG_fail; | |
1612 | } | |
1613 | Py_INCREF(Py_None); resultobj = Py_None; | |
1614 | return resultobj; | |
1615 | fail: | |
1616 | return NULL; | |
1617 | } | |
1618 | ||
1619 | ||
1620 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1621 | PyObject *resultobj; | |
1622 | long result; | |
1623 | char *kwnames[] = { | |
1624 | NULL | |
1625 | }; | |
1626 | ||
1627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1628 | { | |
1629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1630 | result = (long)wxGetCurrentId(); | |
1631 | ||
1632 | wxPyEndAllowThreads(__tstate); | |
1633 | if (PyErr_Occurred()) SWIG_fail; | |
1634 | } | |
1635 | resultobj = PyInt_FromLong((long)result); | |
1636 | return resultobj; | |
1637 | fail: | |
1638 | return NULL; | |
1639 | } | |
1640 | ||
1641 | ||
1642 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1643 | PyObject *resultobj; | |
1644 | char *kwnames[] = { | |
1645 | NULL | |
1646 | }; | |
1647 | ||
1648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1649 | { | |
1650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1651 | wxBell(); | |
1652 | ||
1653 | wxPyEndAllowThreads(__tstate); | |
1654 | if (PyErr_Occurred()) SWIG_fail; | |
1655 | } | |
1656 | Py_INCREF(Py_None); resultobj = Py_None; | |
1657 | return resultobj; | |
1658 | fail: | |
1659 | return NULL; | |
1660 | } | |
1661 | ||
1662 | ||
1663 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1664 | PyObject *resultobj; | |
1665 | char *kwnames[] = { | |
1666 | NULL | |
1667 | }; | |
1668 | ||
1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1670 | { | |
1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1672 | wxEndBusyCursor(); | |
1673 | ||
1674 | wxPyEndAllowThreads(__tstate); | |
1675 | if (PyErr_Occurred()) SWIG_fail; | |
1676 | } | |
1677 | Py_INCREF(Py_None); resultobj = Py_None; | |
1678 | return resultobj; | |
1679 | fail: | |
1680 | return NULL; | |
1681 | } | |
1682 | ||
1683 | ||
1684 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1685 | PyObject *resultobj; | |
423f194a | 1686 | bool arg1 = (bool) True ; |
d14a1e28 RD |
1687 | long result; |
1688 | PyObject * obj0 = 0 ; | |
1689 | char *kwnames[] = { | |
1690 | (char *) "resetTimer", NULL | |
1691 | }; | |
1692 | ||
1693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1694 | if (obj0) { | |
1695 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
1696 | if (PyErr_Occurred()) SWIG_fail; | |
1697 | } | |
1698 | { | |
1699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1700 | result = (long)wxGetElapsedTime(arg1); | |
1701 | ||
1702 | wxPyEndAllowThreads(__tstate); | |
1703 | if (PyErr_Occurred()) SWIG_fail; | |
1704 | } | |
1705 | resultobj = PyInt_FromLong((long)result); | |
1706 | return resultobj; | |
1707 | fail: | |
1708 | return NULL; | |
1709 | } | |
1710 | ||
1711 | ||
1712 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject *resultobj; | |
1714 | int *arg1 = (int *) 0 ; | |
1715 | int *arg2 = (int *) 0 ; | |
1716 | int temp1 ; | |
1717 | int temp2 ; | |
1718 | char *kwnames[] = { | |
1719 | NULL | |
1720 | }; | |
1721 | ||
1722 | arg1 = &temp1; | |
1723 | arg2 = &temp2; | |
1724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1725 | { | |
1726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1727 | wxGetMousePosition(arg1,arg2); | |
1728 | ||
1729 | wxPyEndAllowThreads(__tstate); | |
1730 | if (PyErr_Occurred()) SWIG_fail; | |
1731 | } | |
1732 | Py_INCREF(Py_None); resultobj = Py_None; | |
1733 | { | |
1734 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1735 | resultobj = t_output_helper(resultobj,o); | |
1736 | } | |
1737 | { | |
1738 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1739 | resultobj = t_output_helper(resultobj,o); | |
1740 | } | |
1741 | return resultobj; | |
1742 | fail: | |
1743 | return NULL; | |
1744 | } | |
1745 | ||
1746 | ||
1747 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1748 | PyObject *resultobj; | |
1749 | bool result; | |
1750 | char *kwnames[] = { | |
1751 | NULL | |
1752 | }; | |
1753 | ||
1754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1755 | { | |
1756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1757 | result = (bool)wxIsBusy(); | |
1758 | ||
1759 | wxPyEndAllowThreads(__tstate); | |
1760 | if (PyErr_Occurred()) SWIG_fail; | |
1761 | } | |
1762 | resultobj = PyInt_FromLong((long)result); | |
1763 | return resultobj; | |
1764 | fail: | |
1765 | return NULL; | |
1766 | } | |
1767 | ||
1768 | ||
1769 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1770 | PyObject *resultobj; | |
1771 | wxString result; | |
1772 | char *kwnames[] = { | |
1773 | NULL | |
1774 | }; | |
1775 | ||
1776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1777 | { | |
1778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1779 | result = wxNow(); | |
1780 | ||
1781 | wxPyEndAllowThreads(__tstate); | |
1782 | if (PyErr_Occurred()) SWIG_fail; | |
1783 | } | |
1784 | { | |
1785 | #if wxUSE_UNICODE | |
1786 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1787 | #else | |
1788 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1789 | #endif | |
1790 | } | |
1791 | return resultobj; | |
1792 | fail: | |
1793 | return NULL; | |
1794 | } | |
1795 | ||
1796 | ||
1797 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject *resultobj; | |
1799 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1800 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1801 | bool result; | |
423f194a | 1802 | bool temp1 = False ; |
d14a1e28 RD |
1803 | PyObject * obj0 = 0 ; |
1804 | char *kwnames[] = { | |
1805 | (char *) "command", NULL | |
1806 | }; | |
1807 | ||
1808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1809 | if (obj0) { | |
1810 | { | |
1811 | arg1 = wxString_in_helper(obj0); | |
1812 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1813 | temp1 = True; |
d14a1e28 RD |
1814 | } |
1815 | } | |
1816 | { | |
1817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1818 | result = (bool)wxShell((wxString const &)*arg1); | |
1819 | ||
1820 | wxPyEndAllowThreads(__tstate); | |
1821 | if (PyErr_Occurred()) SWIG_fail; | |
1822 | } | |
1823 | resultobj = PyInt_FromLong((long)result); | |
1824 | { | |
1825 | if (temp1) | |
1826 | delete arg1; | |
1827 | } | |
1828 | return resultobj; | |
1829 | fail: | |
1830 | { | |
1831 | if (temp1) | |
1832 | delete arg1; | |
1833 | } | |
1834 | return NULL; | |
1835 | } | |
1836 | ||
1837 | ||
1838 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject *resultobj; | |
1840 | char *kwnames[] = { | |
1841 | NULL | |
1842 | }; | |
1843 | ||
1844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
1845 | { | |
1846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1847 | wxStartTimer(); | |
1848 | ||
1849 | wxPyEndAllowThreads(__tstate); | |
1850 | if (PyErr_Occurred()) SWIG_fail; | |
1851 | } | |
1852 | Py_INCREF(Py_None); resultobj = Py_None; | |
1853 | return resultobj; | |
1854 | fail: | |
1855 | return NULL; | |
1856 | } | |
1857 | ||
1858 | ||
1859 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1860 | PyObject *resultobj; | |
1861 | int *arg1 = (int *) 0 ; | |
1862 | int *arg2 = (int *) 0 ; | |
1863 | int result; | |
1864 | int temp1 ; | |
1865 | int temp2 ; | |
1866 | char *kwnames[] = { | |
1867 | NULL | |
1868 | }; | |
1869 | ||
1870 | arg1 = &temp1; | |
1871 | arg2 = &temp2; | |
1872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
1873 | { | |
1874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1875 | result = (int)wxGetOsVersion(arg1,arg2); | |
1876 | ||
1877 | wxPyEndAllowThreads(__tstate); | |
1878 | if (PyErr_Occurred()) SWIG_fail; | |
1879 | } | |
1880 | resultobj = PyInt_FromLong((long)result); | |
1881 | { | |
1882 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1883 | resultobj = t_output_helper(resultobj,o); | |
1884 | } | |
1885 | { | |
1886 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1887 | resultobj = t_output_helper(resultobj,o); | |
1888 | } | |
1889 | return resultobj; | |
1890 | fail: | |
1891 | return NULL; | |
1892 | } | |
1893 | ||
1894 | ||
1895 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1896 | PyObject *resultobj; | |
1897 | wxString result; | |
1898 | char *kwnames[] = { | |
1899 | NULL | |
1900 | }; | |
1901 | ||
1902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
1903 | { | |
1904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1905 | result = wxGetOsDescription(); | |
1906 | ||
1907 | wxPyEndAllowThreads(__tstate); | |
1908 | if (PyErr_Occurred()) SWIG_fail; | |
1909 | } | |
1910 | { | |
1911 | #if wxUSE_UNICODE | |
1912 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1913 | #else | |
1914 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1915 | #endif | |
1916 | } | |
1917 | return resultobj; | |
1918 | fail: | |
1919 | return NULL; | |
1920 | } | |
1921 | ||
1922 | ||
1923 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1924 | PyObject *resultobj; | |
1925 | long result; | |
1926 | char *kwnames[] = { | |
1927 | NULL | |
1928 | }; | |
1929 | ||
1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
1931 | { | |
1932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1933 | result = (long)wxGetFreeMemory(); | |
1934 | ||
1935 | wxPyEndAllowThreads(__tstate); | |
1936 | if (PyErr_Occurred()) SWIG_fail; | |
1937 | } | |
1938 | resultobj = PyInt_FromLong((long)result); | |
1939 | return resultobj; | |
1940 | fail: | |
1941 | return NULL; | |
1942 | } | |
1943 | ||
1944 | ||
1945 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1946 | PyObject *resultobj; | |
1947 | int arg1 ; | |
1948 | bool result; | |
1949 | char *kwnames[] = { | |
1950 | (char *) "wFlags", NULL | |
1951 | }; | |
1952 | ||
1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Shutdown",kwnames,&arg1)) goto fail; | |
1954 | { | |
1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1956 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
1957 | ||
1958 | wxPyEndAllowThreads(__tstate); | |
1959 | if (PyErr_Occurred()) SWIG_fail; | |
1960 | } | |
1961 | resultobj = PyInt_FromLong((long)result); | |
1962 | return resultobj; | |
1963 | fail: | |
1964 | return NULL; | |
1965 | } | |
1966 | ||
1967 | ||
1968 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1969 | PyObject *resultobj; | |
1970 | int arg1 ; | |
1971 | char *kwnames[] = { | |
1972 | (char *) "secs", NULL | |
1973 | }; | |
1974 | ||
1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Sleep",kwnames,&arg1)) goto fail; | |
1976 | { | |
1977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1978 | wxSleep(arg1); | |
1979 | ||
1980 | wxPyEndAllowThreads(__tstate); | |
1981 | if (PyErr_Occurred()) SWIG_fail; | |
1982 | } | |
1983 | Py_INCREF(Py_None); resultobj = Py_None; | |
1984 | return resultobj; | |
1985 | fail: | |
1986 | return NULL; | |
1987 | } | |
1988 | ||
1989 | ||
1990 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1991 | PyObject *resultobj; | |
1992 | unsigned long arg1 ; | |
1993 | PyObject * obj0 = 0 ; | |
1994 | char *kwnames[] = { | |
1995 | (char *) "milliseconds", NULL | |
1996 | }; | |
1997 | ||
1998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
1999 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
2000 | if (PyErr_Occurred()) SWIG_fail; | |
2001 | { | |
2002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2003 | wxUsleep(arg1); | |
2004 | ||
2005 | wxPyEndAllowThreads(__tstate); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | } | |
2008 | Py_INCREF(Py_None); resultobj = Py_None; | |
2009 | return resultobj; | |
2010 | fail: | |
2011 | return NULL; | |
2012 | } | |
2013 | ||
2014 | ||
2015 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2016 | PyObject *resultobj; | |
2017 | bool arg1 ; | |
2018 | PyObject * obj0 = 0 ; | |
2019 | char *kwnames[] = { | |
2020 | (char *) "enable", NULL | |
2021 | }; | |
2022 | ||
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2024 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | { | |
2027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2028 | wxEnableTopLevelWindows(arg1); | |
2029 | ||
2030 | wxPyEndAllowThreads(__tstate); | |
2031 | if (PyErr_Occurred()) SWIG_fail; | |
2032 | } | |
2033 | Py_INCREF(Py_None); resultobj = Py_None; | |
2034 | return resultobj; | |
2035 | fail: | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
2040 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2041 | PyObject *resultobj; | |
2042 | wxString *arg1 = 0 ; | |
2043 | wxString result; | |
423f194a | 2044 | bool temp1 = False ; |
d14a1e28 RD |
2045 | PyObject * obj0 = 0 ; |
2046 | char *kwnames[] = { | |
2047 | (char *) "in", NULL | |
2048 | }; | |
2049 | ||
2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2051 | { | |
2052 | arg1 = wxString_in_helper(obj0); | |
2053 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2054 | temp1 = True; |
d14a1e28 RD |
2055 | } |
2056 | { | |
2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2058 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2059 | ||
2060 | wxPyEndAllowThreads(__tstate); | |
2061 | if (PyErr_Occurred()) SWIG_fail; | |
2062 | } | |
2063 | { | |
2064 | #if wxUSE_UNICODE | |
2065 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2066 | #else | |
2067 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2068 | #endif | |
2069 | } | |
2070 | { | |
2071 | if (temp1) | |
2072 | delete arg1; | |
2073 | } | |
2074 | return resultobj; | |
2075 | fail: | |
2076 | { | |
2077 | if (temp1) | |
2078 | delete arg1; | |
2079 | } | |
2080 | return NULL; | |
2081 | } | |
2082 | ||
2083 | ||
2084 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2085 | PyObject *resultobj; | |
2086 | wxString result; | |
2087 | char *kwnames[] = { | |
2088 | NULL | |
2089 | }; | |
2090 | ||
2091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2092 | { | |
2093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2094 | result = wxGetEmailAddress(); | |
2095 | ||
2096 | wxPyEndAllowThreads(__tstate); | |
2097 | if (PyErr_Occurred()) SWIG_fail; | |
2098 | } | |
2099 | { | |
2100 | #if wxUSE_UNICODE | |
2101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2102 | #else | |
2103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2104 | #endif | |
2105 | } | |
2106 | return resultobj; | |
2107 | fail: | |
2108 | return NULL; | |
2109 | } | |
2110 | ||
2111 | ||
2112 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2113 | PyObject *resultobj; | |
2114 | wxString result; | |
2115 | char *kwnames[] = { | |
2116 | NULL | |
2117 | }; | |
2118 | ||
2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2120 | { | |
2121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2122 | result = wxGetHostName(); | |
2123 | ||
2124 | wxPyEndAllowThreads(__tstate); | |
2125 | if (PyErr_Occurred()) SWIG_fail; | |
2126 | } | |
2127 | { | |
2128 | #if wxUSE_UNICODE | |
2129 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2130 | #else | |
2131 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2132 | #endif | |
2133 | } | |
2134 | return resultobj; | |
2135 | fail: | |
2136 | return NULL; | |
2137 | } | |
2138 | ||
2139 | ||
2140 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2141 | PyObject *resultobj; | |
2142 | wxString result; | |
2143 | char *kwnames[] = { | |
2144 | NULL | |
2145 | }; | |
2146 | ||
2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2148 | { | |
2149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2150 | result = wxGetFullHostName(); | |
2151 | ||
2152 | wxPyEndAllowThreads(__tstate); | |
2153 | if (PyErr_Occurred()) SWIG_fail; | |
2154 | } | |
2155 | { | |
2156 | #if wxUSE_UNICODE | |
2157 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2158 | #else | |
2159 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2160 | #endif | |
2161 | } | |
2162 | return resultobj; | |
2163 | fail: | |
2164 | return NULL; | |
2165 | } | |
2166 | ||
2167 | ||
2168 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2169 | PyObject *resultobj; | |
2170 | wxString result; | |
2171 | char *kwnames[] = { | |
2172 | NULL | |
2173 | }; | |
2174 | ||
2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2176 | { | |
2177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2178 | result = wxGetUserId(); | |
2179 | ||
2180 | wxPyEndAllowThreads(__tstate); | |
2181 | if (PyErr_Occurred()) SWIG_fail; | |
2182 | } | |
2183 | { | |
2184 | #if wxUSE_UNICODE | |
2185 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2186 | #else | |
2187 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2188 | #endif | |
2189 | } | |
2190 | return resultobj; | |
2191 | fail: | |
2192 | return NULL; | |
2193 | } | |
2194 | ||
2195 | ||
2196 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2197 | PyObject *resultobj; | |
2198 | wxString result; | |
2199 | char *kwnames[] = { | |
2200 | NULL | |
2201 | }; | |
2202 | ||
2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2204 | { | |
2205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2206 | result = wxGetUserName(); | |
2207 | ||
2208 | wxPyEndAllowThreads(__tstate); | |
2209 | if (PyErr_Occurred()) SWIG_fail; | |
2210 | } | |
2211 | { | |
2212 | #if wxUSE_UNICODE | |
2213 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2214 | #else | |
2215 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2216 | #endif | |
2217 | } | |
2218 | return resultobj; | |
2219 | fail: | |
2220 | return NULL; | |
2221 | } | |
2222 | ||
2223 | ||
2224 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2225 | PyObject *resultobj; | |
2226 | wxString result; | |
2227 | char *kwnames[] = { | |
2228 | NULL | |
2229 | }; | |
2230 | ||
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2232 | { | |
2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2234 | result = wxGetHomeDir(); | |
2235 | ||
2236 | wxPyEndAllowThreads(__tstate); | |
2237 | if (PyErr_Occurred()) SWIG_fail; | |
2238 | } | |
2239 | { | |
2240 | #if wxUSE_UNICODE | |
2241 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2242 | #else | |
2243 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2244 | #endif | |
2245 | } | |
2246 | return resultobj; | |
2247 | fail: | |
2248 | return NULL; | |
2249 | } | |
2250 | ||
2251 | ||
2252 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2253 | PyObject *resultobj; | |
2254 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2255 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2256 | wxString result; | |
423f194a | 2257 | bool temp1 = False ; |
d14a1e28 RD |
2258 | PyObject * obj0 = 0 ; |
2259 | char *kwnames[] = { | |
2260 | (char *) "user", NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2264 | if (obj0) { | |
2265 | { | |
2266 | arg1 = wxString_in_helper(obj0); | |
2267 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2268 | temp1 = True; |
d14a1e28 RD |
2269 | } |
2270 | } | |
2271 | { | |
2272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2273 | result = wxGetUserHome((wxString const &)*arg1); | |
2274 | ||
2275 | wxPyEndAllowThreads(__tstate); | |
2276 | if (PyErr_Occurred()) SWIG_fail; | |
2277 | } | |
2278 | { | |
2279 | #if wxUSE_UNICODE | |
2280 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2281 | #else | |
2282 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2283 | #endif | |
2284 | } | |
2285 | { | |
2286 | if (temp1) | |
2287 | delete arg1; | |
2288 | } | |
2289 | return resultobj; | |
2290 | fail: | |
2291 | { | |
2292 | if (temp1) | |
2293 | delete arg1; | |
2294 | } | |
2295 | return NULL; | |
2296 | } | |
2297 | ||
2298 | ||
2299 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject *resultobj; | |
2301 | unsigned long result; | |
2302 | char *kwnames[] = { | |
2303 | NULL | |
2304 | }; | |
2305 | ||
2306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2307 | { | |
2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2309 | result = (unsigned long)wxGetProcessId(); | |
2310 | ||
2311 | wxPyEndAllowThreads(__tstate); | |
2312 | if (PyErr_Occurred()) SWIG_fail; | |
2313 | } | |
2314 | resultobj = PyInt_FromLong((long)result); | |
2315 | return resultobj; | |
2316 | fail: | |
2317 | return NULL; | |
2318 | } | |
2319 | ||
2320 | ||
2321 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject *resultobj; | |
2323 | char *kwnames[] = { | |
2324 | NULL | |
2325 | }; | |
2326 | ||
2327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2328 | { | |
2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2330 | wxTrap(); | |
2331 | ||
2332 | wxPyEndAllowThreads(__tstate); | |
2333 | if (PyErr_Occurred()) SWIG_fail; | |
2334 | } | |
2335 | Py_INCREF(Py_None); resultobj = Py_None; | |
2336 | return resultobj; | |
2337 | fail: | |
2338 | return NULL; | |
2339 | } | |
2340 | ||
2341 | ||
2342 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2343 | PyObject *resultobj; | |
2344 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2345 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2346 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2347 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2348 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2349 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2350 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2351 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2352 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2353 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2354 | int arg6 = (int) 0 ; | |
2355 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2356 | int arg8 = (int) -1 ; | |
2357 | int arg9 = (int) -1 ; | |
2358 | wxString result; | |
423f194a RD |
2359 | bool temp1 = False ; |
2360 | bool temp2 = False ; | |
2361 | bool temp3 = False ; | |
2362 | bool temp4 = False ; | |
2363 | bool temp5 = False ; | |
d14a1e28 RD |
2364 | PyObject * obj0 = 0 ; |
2365 | PyObject * obj1 = 0 ; | |
2366 | PyObject * obj2 = 0 ; | |
2367 | PyObject * obj3 = 0 ; | |
2368 | PyObject * obj4 = 0 ; | |
2369 | PyObject * obj6 = 0 ; | |
2370 | char *kwnames[] = { | |
2371 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2372 | }; | |
2373 | ||
2374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOiOii:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&arg9)) goto fail; | |
2375 | if (obj0) { | |
2376 | { | |
2377 | arg1 = wxString_in_helper(obj0); | |
2378 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2379 | temp1 = True; |
d14a1e28 RD |
2380 | } |
2381 | } | |
2382 | if (obj1) { | |
2383 | { | |
2384 | arg2 = wxString_in_helper(obj1); | |
2385 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2386 | temp2 = True; |
d14a1e28 RD |
2387 | } |
2388 | } | |
2389 | if (obj2) { | |
2390 | { | |
2391 | arg3 = wxString_in_helper(obj2); | |
2392 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2393 | temp3 = True; |
d14a1e28 RD |
2394 | } |
2395 | } | |
2396 | if (obj3) { | |
2397 | { | |
2398 | arg4 = wxString_in_helper(obj3); | |
2399 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2400 | temp4 = True; |
d14a1e28 RD |
2401 | } |
2402 | } | |
2403 | if (obj4) { | |
2404 | { | |
2405 | arg5 = wxString_in_helper(obj4); | |
2406 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 2407 | temp5 = True; |
d14a1e28 RD |
2408 | } |
2409 | } | |
2410 | if (obj6) { | |
2411 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2412 | } | |
2413 | { | |
2414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2415 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2416 | ||
2417 | wxPyEndAllowThreads(__tstate); | |
2418 | if (PyErr_Occurred()) SWIG_fail; | |
2419 | } | |
2420 | { | |
2421 | #if wxUSE_UNICODE | |
2422 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2423 | #else | |
2424 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2425 | #endif | |
2426 | } | |
2427 | { | |
2428 | if (temp1) | |
2429 | delete arg1; | |
2430 | } | |
2431 | { | |
2432 | if (temp2) | |
2433 | delete arg2; | |
2434 | } | |
2435 | { | |
2436 | if (temp3) | |
2437 | delete arg3; | |
2438 | } | |
2439 | { | |
2440 | if (temp4) | |
2441 | delete arg4; | |
2442 | } | |
2443 | { | |
2444 | if (temp5) | |
2445 | delete arg5; | |
2446 | } | |
2447 | return resultobj; | |
2448 | fail: | |
2449 | { | |
2450 | if (temp1) | |
2451 | delete arg1; | |
2452 | } | |
2453 | { | |
2454 | if (temp2) | |
2455 | delete arg2; | |
2456 | } | |
2457 | { | |
2458 | if (temp3) | |
2459 | delete arg3; | |
2460 | } | |
2461 | { | |
2462 | if (temp4) | |
2463 | delete arg4; | |
2464 | } | |
2465 | { | |
2466 | if (temp5) | |
2467 | delete arg5; | |
2468 | } | |
2469 | return NULL; | |
2470 | } | |
2471 | ||
2472 | ||
2473 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2474 | PyObject *resultobj; | |
2475 | wxString *arg1 = 0 ; | |
2476 | wxString *arg2 = 0 ; | |
2477 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2478 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2479 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2480 | wxString result; | |
423f194a RD |
2481 | bool temp1 = False ; |
2482 | bool temp2 = False ; | |
2483 | bool temp3 = False ; | |
d14a1e28 RD |
2484 | PyObject * obj0 = 0 ; |
2485 | PyObject * obj1 = 0 ; | |
2486 | PyObject * obj2 = 0 ; | |
2487 | PyObject * obj3 = 0 ; | |
2488 | char *kwnames[] = { | |
2489 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2490 | }; | |
2491 | ||
2492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2493 | { | |
2494 | arg1 = wxString_in_helper(obj0); | |
2495 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2496 | temp1 = True; |
d14a1e28 RD |
2497 | } |
2498 | { | |
2499 | arg2 = wxString_in_helper(obj1); | |
2500 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2501 | temp2 = True; |
d14a1e28 RD |
2502 | } |
2503 | if (obj2) { | |
2504 | { | |
2505 | arg3 = wxString_in_helper(obj2); | |
2506 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2507 | temp3 = True; |
d14a1e28 RD |
2508 | } |
2509 | } | |
2510 | if (obj3) { | |
2511 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2512 | } | |
2513 | { | |
2514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2515 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2516 | ||
2517 | wxPyEndAllowThreads(__tstate); | |
2518 | if (PyErr_Occurred()) SWIG_fail; | |
2519 | } | |
2520 | { | |
2521 | #if wxUSE_UNICODE | |
2522 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2523 | #else | |
2524 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2525 | #endif | |
2526 | } | |
2527 | { | |
2528 | if (temp1) | |
2529 | delete arg1; | |
2530 | } | |
2531 | { | |
2532 | if (temp2) | |
2533 | delete arg2; | |
2534 | } | |
2535 | { | |
2536 | if (temp3) | |
2537 | delete arg3; | |
2538 | } | |
2539 | return resultobj; | |
2540 | fail: | |
2541 | { | |
2542 | if (temp1) | |
2543 | delete arg1; | |
2544 | } | |
2545 | { | |
2546 | if (temp2) | |
2547 | delete arg2; | |
2548 | } | |
2549 | { | |
2550 | if (temp3) | |
2551 | delete arg3; | |
2552 | } | |
2553 | return NULL; | |
2554 | } | |
2555 | ||
2556 | ||
2557 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2558 | PyObject *resultobj; | |
2559 | wxString *arg1 = 0 ; | |
2560 | wxString *arg2 = 0 ; | |
2561 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2562 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2563 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2564 | wxString result; | |
423f194a RD |
2565 | bool temp1 = False ; |
2566 | bool temp2 = False ; | |
2567 | bool temp3 = False ; | |
d14a1e28 RD |
2568 | PyObject * obj0 = 0 ; |
2569 | PyObject * obj1 = 0 ; | |
2570 | PyObject * obj2 = 0 ; | |
2571 | PyObject * obj3 = 0 ; | |
2572 | char *kwnames[] = { | |
2573 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2574 | }; | |
2575 | ||
2576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2577 | { | |
2578 | arg1 = wxString_in_helper(obj0); | |
2579 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2580 | temp1 = True; |
d14a1e28 RD |
2581 | } |
2582 | { | |
2583 | arg2 = wxString_in_helper(obj1); | |
2584 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2585 | temp2 = True; |
d14a1e28 RD |
2586 | } |
2587 | if (obj2) { | |
2588 | { | |
2589 | arg3 = wxString_in_helper(obj2); | |
2590 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2591 | temp3 = True; |
d14a1e28 RD |
2592 | } |
2593 | } | |
2594 | if (obj3) { | |
2595 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2596 | } | |
2597 | { | |
2598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2599 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2600 | ||
2601 | wxPyEndAllowThreads(__tstate); | |
2602 | if (PyErr_Occurred()) SWIG_fail; | |
2603 | } | |
2604 | { | |
2605 | #if wxUSE_UNICODE | |
2606 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2607 | #else | |
2608 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2609 | #endif | |
2610 | } | |
2611 | { | |
2612 | if (temp1) | |
2613 | delete arg1; | |
2614 | } | |
2615 | { | |
2616 | if (temp2) | |
2617 | delete arg2; | |
2618 | } | |
2619 | { | |
2620 | if (temp3) | |
2621 | delete arg3; | |
2622 | } | |
2623 | return resultobj; | |
2624 | fail: | |
2625 | { | |
2626 | if (temp1) | |
2627 | delete arg1; | |
2628 | } | |
2629 | { | |
2630 | if (temp2) | |
2631 | delete arg2; | |
2632 | } | |
2633 | { | |
2634 | if (temp3) | |
2635 | delete arg3; | |
2636 | } | |
2637 | return NULL; | |
2638 | } | |
2639 | ||
2640 | ||
2641 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2642 | PyObject *resultobj; | |
2643 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2644 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2645 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2646 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2647 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2648 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2649 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2650 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2651 | wxString result; | |
423f194a RD |
2652 | bool temp1 = False ; |
2653 | bool temp2 = False ; | |
d14a1e28 RD |
2654 | wxPoint temp4 ; |
2655 | PyObject * obj0 = 0 ; | |
2656 | PyObject * obj1 = 0 ; | |
2657 | PyObject * obj3 = 0 ; | |
2658 | PyObject * obj4 = 0 ; | |
2659 | char *kwnames[] = { | |
2660 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2661 | }; | |
2662 | ||
2663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOlOO:DirSelector",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
2664 | if (obj0) { | |
2665 | { | |
2666 | arg1 = wxString_in_helper(obj0); | |
2667 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2668 | temp1 = True; |
d14a1e28 RD |
2669 | } |
2670 | } | |
2671 | if (obj1) { | |
2672 | { | |
2673 | arg2 = wxString_in_helper(obj1); | |
2674 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2675 | temp2 = True; |
d14a1e28 RD |
2676 | } |
2677 | } | |
2678 | if (obj3) { | |
2679 | { | |
2680 | arg4 = &temp4; | |
2681 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2682 | } | |
2683 | } | |
2684 | if (obj4) { | |
2685 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2686 | } | |
2687 | { | |
2688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2689 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2690 | ||
2691 | wxPyEndAllowThreads(__tstate); | |
2692 | if (PyErr_Occurred()) SWIG_fail; | |
2693 | } | |
2694 | { | |
2695 | #if wxUSE_UNICODE | |
2696 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2697 | #else | |
2698 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2699 | #endif | |
2700 | } | |
2701 | { | |
2702 | if (temp1) | |
2703 | delete arg1; | |
2704 | } | |
2705 | { | |
2706 | if (temp2) | |
2707 | delete arg2; | |
2708 | } | |
2709 | return resultobj; | |
2710 | fail: | |
2711 | { | |
2712 | if (temp1) | |
2713 | delete arg1; | |
2714 | } | |
2715 | { | |
2716 | if (temp2) | |
2717 | delete arg2; | |
2718 | } | |
2719 | return NULL; | |
2720 | } | |
2721 | ||
2722 | ||
2723 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2724 | PyObject *resultobj; | |
2725 | wxString *arg1 = 0 ; | |
2726 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2727 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2728 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2729 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2730 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2731 | int arg5 = (int) -1 ; | |
2732 | int arg6 = (int) -1 ; | |
423f194a | 2733 | bool arg7 = (bool) True ; |
d14a1e28 | 2734 | wxString result; |
423f194a RD |
2735 | bool temp1 = False ; |
2736 | bool temp2 = False ; | |
2737 | bool temp3 = False ; | |
d14a1e28 RD |
2738 | PyObject * obj0 = 0 ; |
2739 | PyObject * obj1 = 0 ; | |
2740 | PyObject * obj2 = 0 ; | |
2741 | PyObject * obj3 = 0 ; | |
2742 | PyObject * obj6 = 0 ; | |
2743 | char *kwnames[] = { | |
2744 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2745 | }; | |
2746 | ||
2747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOiiO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
2748 | { | |
2749 | arg1 = wxString_in_helper(obj0); | |
2750 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2751 | temp1 = True; |
d14a1e28 RD |
2752 | } |
2753 | if (obj1) { | |
2754 | { | |
2755 | arg2 = wxString_in_helper(obj1); | |
2756 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2757 | temp2 = True; |
d14a1e28 RD |
2758 | } |
2759 | } | |
2760 | if (obj2) { | |
2761 | { | |
2762 | arg3 = wxString_in_helper(obj2); | |
2763 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2764 | temp3 = True; |
d14a1e28 RD |
2765 | } |
2766 | } | |
2767 | if (obj3) { | |
2768 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2769 | } | |
2770 | if (obj6) { | |
2771 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
2772 | if (PyErr_Occurred()) SWIG_fail; | |
2773 | } | |
2774 | { | |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2776 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
2777 | ||
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
2781 | { | |
2782 | #if wxUSE_UNICODE | |
2783 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2784 | #else | |
2785 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2786 | #endif | |
2787 | } | |
2788 | { | |
2789 | if (temp1) | |
2790 | delete arg1; | |
2791 | } | |
2792 | { | |
2793 | if (temp2) | |
2794 | delete arg2; | |
2795 | } | |
2796 | { | |
2797 | if (temp3) | |
2798 | delete arg3; | |
2799 | } | |
2800 | return resultobj; | |
2801 | fail: | |
2802 | { | |
2803 | if (temp1) | |
2804 | delete arg1; | |
2805 | } | |
2806 | { | |
2807 | if (temp2) | |
2808 | delete arg2; | |
2809 | } | |
2810 | { | |
2811 | if (temp3) | |
2812 | delete arg3; | |
2813 | } | |
2814 | return NULL; | |
2815 | } | |
2816 | ||
2817 | ||
2818 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2819 | PyObject *resultobj; | |
2820 | wxString *arg1 = 0 ; | |
2821 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2822 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2823 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2824 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2825 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2826 | wxString result; | |
423f194a RD |
2827 | bool temp1 = False ; |
2828 | bool temp2 = False ; | |
2829 | bool temp3 = False ; | |
d14a1e28 RD |
2830 | PyObject * obj0 = 0 ; |
2831 | PyObject * obj1 = 0 ; | |
2832 | PyObject * obj2 = 0 ; | |
2833 | PyObject * obj3 = 0 ; | |
2834 | char *kwnames[] = { | |
2835 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
2836 | }; | |
2837 | ||
2838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2839 | { | |
2840 | arg1 = wxString_in_helper(obj0); | |
2841 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2842 | temp1 = True; |
d14a1e28 RD |
2843 | } |
2844 | if (obj1) { | |
2845 | { | |
2846 | arg2 = wxString_in_helper(obj1); | |
2847 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2848 | temp2 = True; |
d14a1e28 RD |
2849 | } |
2850 | } | |
2851 | if (obj2) { | |
2852 | { | |
2853 | arg3 = wxString_in_helper(obj2); | |
2854 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2855 | temp3 = True; |
d14a1e28 RD |
2856 | } |
2857 | } | |
2858 | if (obj3) { | |
2859 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2860 | } | |
2861 | { | |
2862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2863 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2864 | ||
2865 | wxPyEndAllowThreads(__tstate); | |
2866 | if (PyErr_Occurred()) SWIG_fail; | |
2867 | } | |
2868 | { | |
2869 | #if wxUSE_UNICODE | |
2870 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2871 | #else | |
2872 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2873 | #endif | |
2874 | } | |
2875 | { | |
2876 | if (temp1) | |
2877 | delete arg1; | |
2878 | } | |
2879 | { | |
2880 | if (temp2) | |
2881 | delete arg2; | |
2882 | } | |
2883 | { | |
2884 | if (temp3) | |
2885 | delete arg3; | |
2886 | } | |
2887 | return resultobj; | |
2888 | fail: | |
2889 | { | |
2890 | if (temp1) | |
2891 | delete arg1; | |
2892 | } | |
2893 | { | |
2894 | if (temp2) | |
2895 | delete arg2; | |
2896 | } | |
2897 | { | |
2898 | if (temp3) | |
2899 | delete arg3; | |
2900 | } | |
2901 | return NULL; | |
2902 | } | |
2903 | ||
2904 | ||
2905 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2906 | PyObject *resultobj; | |
2907 | wxString *arg1 = 0 ; | |
2908 | wxString *arg2 = 0 ; | |
2909 | int arg3 ; | |
2910 | wxString *arg4 = (wxString *) 0 ; | |
2911 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2912 | int arg6 = (int) -1 ; | |
2913 | int arg7 = (int) -1 ; | |
423f194a | 2914 | bool arg8 = (bool) True ; |
d14a1e28 RD |
2915 | int arg9 = (int) 150 ; |
2916 | int arg10 = (int) 200 ; | |
2917 | wxString result; | |
423f194a RD |
2918 | bool temp1 = False ; |
2919 | bool temp2 = False ; | |
d14a1e28 RD |
2920 | PyObject * obj0 = 0 ; |
2921 | PyObject * obj1 = 0 ; | |
2922 | PyObject * obj2 = 0 ; | |
2923 | PyObject * obj3 = 0 ; | |
2924 | PyObject * obj6 = 0 ; | |
2925 | char *kwnames[] = { | |
2926 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
2927 | }; | |
2928 | ||
2929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
2930 | { | |
2931 | arg1 = wxString_in_helper(obj0); | |
2932 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2933 | temp1 = True; |
d14a1e28 RD |
2934 | } |
2935 | { | |
2936 | arg2 = wxString_in_helper(obj1); | |
2937 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2938 | temp2 = True; |
d14a1e28 RD |
2939 | } |
2940 | { | |
2941 | arg3 = PyList_Size(obj2); | |
2942 | arg4 = wxString_LIST_helper(obj2); | |
2943 | if (arg4 == NULL) SWIG_fail; | |
2944 | } | |
2945 | if (obj3) { | |
2946 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2947 | } | |
2948 | if (obj6) { | |
2949 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
2950 | if (PyErr_Occurred()) SWIG_fail; | |
2951 | } | |
2952 | { | |
2953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2954 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
2955 | ||
2956 | wxPyEndAllowThreads(__tstate); | |
2957 | if (PyErr_Occurred()) SWIG_fail; | |
2958 | } | |
2959 | { | |
2960 | #if wxUSE_UNICODE | |
2961 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2962 | #else | |
2963 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2964 | #endif | |
2965 | } | |
2966 | { | |
2967 | if (temp1) | |
2968 | delete arg1; | |
2969 | } | |
2970 | { | |
2971 | if (temp2) | |
2972 | delete arg2; | |
2973 | } | |
2974 | { | |
2975 | if (arg4) delete [] arg4; | |
2976 | } | |
2977 | return resultobj; | |
2978 | fail: | |
2979 | { | |
2980 | if (temp1) | |
2981 | delete arg1; | |
2982 | } | |
2983 | { | |
2984 | if (temp2) | |
2985 | delete arg2; | |
2986 | } | |
2987 | { | |
2988 | if (arg4) delete [] arg4; | |
2989 | } | |
2990 | return NULL; | |
2991 | } | |
2992 | ||
2993 | ||
2994 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2995 | PyObject *resultobj; | |
2996 | wxString *arg1 = 0 ; | |
2997 | wxString *arg2 = 0 ; | |
2998 | int arg3 ; | |
2999 | wxString *arg4 = (wxString *) 0 ; | |
3000 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3001 | int arg6 = (int) -1 ; | |
3002 | int arg7 = (int) -1 ; | |
423f194a | 3003 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3004 | int arg9 = (int) 150 ; |
3005 | int arg10 = (int) 200 ; | |
3006 | int result; | |
423f194a RD |
3007 | bool temp1 = False ; |
3008 | bool temp2 = False ; | |
d14a1e28 RD |
3009 | PyObject * obj0 = 0 ; |
3010 | PyObject * obj1 = 0 ; | |
3011 | PyObject * obj2 = 0 ; | |
3012 | PyObject * obj3 = 0 ; | |
3013 | PyObject * obj6 = 0 ; | |
3014 | char *kwnames[] = { | |
3015 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3016 | }; | |
3017 | ||
3018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
3019 | { | |
3020 | arg1 = wxString_in_helper(obj0); | |
3021 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3022 | temp1 = True; |
d14a1e28 RD |
3023 | } |
3024 | { | |
3025 | arg2 = wxString_in_helper(obj1); | |
3026 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3027 | temp2 = True; |
d14a1e28 RD |
3028 | } |
3029 | { | |
3030 | arg3 = PyList_Size(obj2); | |
3031 | arg4 = wxString_LIST_helper(obj2); | |
3032 | if (arg4 == NULL) SWIG_fail; | |
3033 | } | |
3034 | if (obj3) { | |
3035 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3036 | } | |
3037 | if (obj6) { | |
3038 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
3039 | if (PyErr_Occurred()) SWIG_fail; | |
3040 | } | |
3041 | { | |
3042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3043 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3044 | ||
3045 | wxPyEndAllowThreads(__tstate); | |
3046 | if (PyErr_Occurred()) SWIG_fail; | |
3047 | } | |
3048 | resultobj = PyInt_FromLong((long)result); | |
3049 | { | |
3050 | if (temp1) | |
3051 | delete arg1; | |
3052 | } | |
3053 | { | |
3054 | if (temp2) | |
3055 | delete arg2; | |
3056 | } | |
3057 | { | |
3058 | if (arg4) delete [] arg4; | |
3059 | } | |
3060 | return resultobj; | |
3061 | fail: | |
3062 | { | |
3063 | if (temp1) | |
3064 | delete arg1; | |
3065 | } | |
3066 | { | |
3067 | if (temp2) | |
3068 | delete arg2; | |
3069 | } | |
3070 | { | |
3071 | if (arg4) delete [] arg4; | |
3072 | } | |
3073 | return NULL; | |
3074 | } | |
3075 | ||
3076 | ||
3077 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3078 | PyObject *resultobj; | |
3079 | wxString *arg1 = 0 ; | |
3080 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3081 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3082 | int arg3 = (int) wxOK|wxCENTRE ; | |
3083 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3084 | int arg5 = (int) -1 ; | |
3085 | int arg6 = (int) -1 ; | |
3086 | int result; | |
423f194a RD |
3087 | bool temp1 = False ; |
3088 | bool temp2 = False ; | |
d14a1e28 RD |
3089 | PyObject * obj0 = 0 ; |
3090 | PyObject * obj1 = 0 ; | |
3091 | PyObject * obj3 = 0 ; | |
3092 | char *kwnames[] = { | |
3093 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3094 | }; | |
3095 | ||
3096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOii:MessageBox",kwnames,&obj0,&obj1,&arg3,&obj3,&arg5,&arg6)) goto fail; | |
3097 | { | |
3098 | arg1 = wxString_in_helper(obj0); | |
3099 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3100 | temp1 = True; |
d14a1e28 RD |
3101 | } |
3102 | if (obj1) { | |
3103 | { | |
3104 | arg2 = wxString_in_helper(obj1); | |
3105 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3106 | temp2 = True; |
d14a1e28 RD |
3107 | } |
3108 | } | |
3109 | if (obj3) { | |
3110 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3111 | } | |
3112 | { | |
3113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3114 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3115 | ||
3116 | wxPyEndAllowThreads(__tstate); | |
3117 | if (PyErr_Occurred()) SWIG_fail; | |
3118 | } | |
3119 | resultobj = PyInt_FromLong((long)result); | |
3120 | { | |
3121 | if (temp1) | |
3122 | delete arg1; | |
3123 | } | |
3124 | { | |
3125 | if (temp2) | |
3126 | delete arg2; | |
3127 | } | |
3128 | return resultobj; | |
3129 | fail: | |
3130 | { | |
3131 | if (temp1) | |
3132 | delete arg1; | |
3133 | } | |
3134 | { | |
3135 | if (temp2) | |
3136 | delete arg2; | |
3137 | } | |
3138 | return NULL; | |
3139 | } | |
3140 | ||
3141 | ||
3142 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject *resultobj; | |
3144 | wxString *arg1 = 0 ; | |
3145 | wxString *arg2 = 0 ; | |
3146 | wxString *arg3 = 0 ; | |
3147 | long arg4 ; | |
3148 | long arg5 = (long) 0 ; | |
3149 | long arg6 = (long) 100 ; | |
3150 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3151 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3152 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3153 | long result; | |
423f194a RD |
3154 | bool temp1 = False ; |
3155 | bool temp2 = False ; | |
3156 | bool temp3 = False ; | |
d14a1e28 RD |
3157 | wxPoint temp8 ; |
3158 | PyObject * obj0 = 0 ; | |
3159 | PyObject * obj1 = 0 ; | |
3160 | PyObject * obj2 = 0 ; | |
3161 | PyObject * obj6 = 0 ; | |
3162 | PyObject * obj7 = 0 ; | |
3163 | char *kwnames[] = { | |
3164 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3165 | }; | |
3166 | ||
3167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOl|llOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7)) goto fail; | |
3168 | { | |
3169 | arg1 = wxString_in_helper(obj0); | |
3170 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3171 | temp1 = True; |
d14a1e28 RD |
3172 | } |
3173 | { | |
3174 | arg2 = wxString_in_helper(obj1); | |
3175 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3176 | temp2 = True; |
d14a1e28 RD |
3177 | } |
3178 | { | |
3179 | arg3 = wxString_in_helper(obj2); | |
3180 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3181 | temp3 = True; |
d14a1e28 RD |
3182 | } |
3183 | if (obj6) { | |
3184 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3185 | } | |
3186 | if (obj7) { | |
3187 | { | |
3188 | arg8 = &temp8; | |
3189 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3190 | } | |
3191 | } | |
3192 | { | |
3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3194 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3195 | ||
3196 | wxPyEndAllowThreads(__tstate); | |
3197 | if (PyErr_Occurred()) SWIG_fail; | |
3198 | } | |
3199 | resultobj = PyInt_FromLong((long)result); | |
3200 | { | |
3201 | if (temp1) | |
3202 | delete arg1; | |
3203 | } | |
3204 | { | |
3205 | if (temp2) | |
3206 | delete arg2; | |
3207 | } | |
3208 | { | |
3209 | if (temp3) | |
3210 | delete arg3; | |
3211 | } | |
3212 | return resultobj; | |
3213 | fail: | |
3214 | { | |
3215 | if (temp1) | |
3216 | delete arg1; | |
3217 | } | |
3218 | { | |
3219 | if (temp2) | |
3220 | delete arg2; | |
3221 | } | |
3222 | { | |
3223 | if (temp3) | |
3224 | delete arg3; | |
3225 | } | |
3226 | return NULL; | |
3227 | } | |
3228 | ||
3229 | ||
3230 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3231 | PyObject *resultobj; | |
3232 | bool result; | |
3233 | char *kwnames[] = { | |
3234 | NULL | |
3235 | }; | |
3236 | ||
3237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3238 | { | |
3239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3240 | result = (bool)wxColourDisplay(); | |
3241 | ||
3242 | wxPyEndAllowThreads(__tstate); | |
3243 | if (PyErr_Occurred()) SWIG_fail; | |
3244 | } | |
3245 | resultobj = PyInt_FromLong((long)result); | |
3246 | return resultobj; | |
3247 | fail: | |
3248 | return NULL; | |
3249 | } | |
3250 | ||
3251 | ||
3252 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3253 | PyObject *resultobj; | |
3254 | int result; | |
3255 | char *kwnames[] = { | |
3256 | NULL | |
3257 | }; | |
3258 | ||
3259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3260 | { | |
3261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3262 | result = (int)wxDisplayDepth(); | |
3263 | ||
3264 | wxPyEndAllowThreads(__tstate); | |
3265 | if (PyErr_Occurred()) SWIG_fail; | |
3266 | } | |
3267 | resultobj = PyInt_FromLong((long)result); | |
3268 | return resultobj; | |
3269 | fail: | |
3270 | return NULL; | |
3271 | } | |
3272 | ||
3273 | ||
3274 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3275 | PyObject *resultobj; | |
3276 | int result; | |
3277 | char *kwnames[] = { | |
3278 | NULL | |
3279 | }; | |
3280 | ||
3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | result = (int)wxGetDisplayDepth(); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
3289 | resultobj = PyInt_FromLong((long)result); | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj; | |
3298 | int *arg1 = (int *) 0 ; | |
3299 | int *arg2 = (int *) 0 ; | |
3300 | int temp1 ; | |
3301 | int temp2 ; | |
3302 | char *kwnames[] = { | |
3303 | NULL | |
3304 | }; | |
3305 | ||
3306 | arg1 = &temp1; | |
3307 | arg2 = &temp2; | |
3308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3309 | { | |
3310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3311 | wxDisplaySize(arg1,arg2); | |
3312 | ||
3313 | wxPyEndAllowThreads(__tstate); | |
3314 | if (PyErr_Occurred()) SWIG_fail; | |
3315 | } | |
3316 | Py_INCREF(Py_None); resultobj = Py_None; | |
3317 | { | |
3318 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3319 | resultobj = t_output_helper(resultobj,o); | |
3320 | } | |
3321 | { | |
3322 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3323 | resultobj = t_output_helper(resultobj,o); | |
3324 | } | |
3325 | return resultobj; | |
3326 | fail: | |
3327 | return NULL; | |
3328 | } | |
3329 | ||
3330 | ||
3331 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3332 | PyObject *resultobj; | |
3333 | wxSize result; | |
3334 | char *kwnames[] = { | |
3335 | NULL | |
3336 | }; | |
3337 | ||
3338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3339 | { | |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3341 | result = wxGetDisplaySize(); | |
3342 | ||
3343 | wxPyEndAllowThreads(__tstate); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | } | |
3346 | { | |
3347 | wxSize * resultptr; | |
3348 | resultptr = new wxSize((wxSize &) result); | |
3349 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3350 | } | |
3351 | return resultobj; | |
3352 | fail: | |
3353 | return NULL; | |
3354 | } | |
3355 | ||
3356 | ||
3357 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3358 | PyObject *resultobj; | |
3359 | int *arg1 = (int *) 0 ; | |
3360 | int *arg2 = (int *) 0 ; | |
3361 | int temp1 ; | |
3362 | int temp2 ; | |
3363 | char *kwnames[] = { | |
3364 | NULL | |
3365 | }; | |
3366 | ||
3367 | arg1 = &temp1; | |
3368 | arg2 = &temp2; | |
3369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3370 | { | |
3371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3372 | wxDisplaySizeMM(arg1,arg2); | |
3373 | ||
3374 | wxPyEndAllowThreads(__tstate); | |
3375 | if (PyErr_Occurred()) SWIG_fail; | |
3376 | } | |
3377 | Py_INCREF(Py_None); resultobj = Py_None; | |
3378 | { | |
3379 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3380 | resultobj = t_output_helper(resultobj,o); | |
3381 | } | |
3382 | { | |
3383 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3384 | resultobj = t_output_helper(resultobj,o); | |
3385 | } | |
3386 | return resultobj; | |
3387 | fail: | |
3388 | return NULL; | |
3389 | } | |
3390 | ||
3391 | ||
3392 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3393 | PyObject *resultobj; | |
3394 | wxSize result; | |
3395 | char *kwnames[] = { | |
3396 | NULL | |
3397 | }; | |
3398 | ||
3399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3400 | { | |
3401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3402 | result = wxGetDisplaySizeMM(); | |
3403 | ||
3404 | wxPyEndAllowThreads(__tstate); | |
3405 | if (PyErr_Occurred()) SWIG_fail; | |
3406 | } | |
3407 | { | |
3408 | wxSize * resultptr; | |
3409 | resultptr = new wxSize((wxSize &) result); | |
3410 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3411 | } | |
3412 | return resultobj; | |
3413 | fail: | |
3414 | return NULL; | |
3415 | } | |
3416 | ||
3417 | ||
3418 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3419 | PyObject *resultobj; | |
3420 | int *arg1 = (int *) 0 ; | |
3421 | int *arg2 = (int *) 0 ; | |
3422 | int *arg3 = (int *) 0 ; | |
3423 | int *arg4 = (int *) 0 ; | |
3424 | int temp1 ; | |
3425 | int temp2 ; | |
3426 | int temp3 ; | |
3427 | int temp4 ; | |
3428 | char *kwnames[] = { | |
3429 | NULL | |
3430 | }; | |
3431 | ||
3432 | arg1 = &temp1; | |
3433 | arg2 = &temp2; | |
3434 | arg3 = &temp3; | |
3435 | arg4 = &temp4; | |
3436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3437 | { | |
3438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3439 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3440 | ||
3441 | wxPyEndAllowThreads(__tstate); | |
3442 | if (PyErr_Occurred()) SWIG_fail; | |
3443 | } | |
3444 | Py_INCREF(Py_None); resultobj = Py_None; | |
3445 | { | |
3446 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3447 | resultobj = t_output_helper(resultobj,o); | |
3448 | } | |
3449 | { | |
3450 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3451 | resultobj = t_output_helper(resultobj,o); | |
3452 | } | |
3453 | { | |
3454 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3455 | resultobj = t_output_helper(resultobj,o); | |
3456 | } | |
3457 | { | |
3458 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3459 | resultobj = t_output_helper(resultobj,o); | |
3460 | } | |
3461 | return resultobj; | |
3462 | fail: | |
3463 | return NULL; | |
3464 | } | |
3465 | ||
3466 | ||
3467 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3468 | PyObject *resultobj; | |
3469 | wxRect result; | |
3470 | char *kwnames[] = { | |
3471 | NULL | |
3472 | }; | |
3473 | ||
3474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3475 | { | |
3476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3477 | result = wxGetClientDisplayRect(); | |
3478 | ||
3479 | wxPyEndAllowThreads(__tstate); | |
3480 | if (PyErr_Occurred()) SWIG_fail; | |
3481 | } | |
3482 | { | |
3483 | wxRect * resultptr; | |
3484 | resultptr = new wxRect((wxRect &) result); | |
3485 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3486 | } | |
3487 | return resultobj; | |
3488 | fail: | |
3489 | return NULL; | |
3490 | } | |
3491 | ||
3492 | ||
3493 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3494 | PyObject *resultobj; | |
3495 | wxCursor *arg1 = 0 ; | |
3496 | PyObject * obj0 = 0 ; | |
3497 | char *kwnames[] = { | |
3498 | (char *) "cursor", NULL | |
3499 | }; | |
3500 | ||
3501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3503 | if (arg1 == NULL) { | |
3504 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3505 | } | |
3506 | { | |
3507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3508 | wxSetCursor(*arg1); | |
3509 | ||
3510 | wxPyEndAllowThreads(__tstate); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | Py_INCREF(Py_None); resultobj = Py_None; | |
3514 | return resultobj; | |
3515 | fail: | |
3516 | return NULL; | |
3517 | } | |
3518 | ||
3519 | ||
3520 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3521 | PyObject *resultobj; | |
3522 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3523 | PyObject * obj0 = 0 ; | |
3524 | char *kwnames[] = { | |
3525 | (char *) "cursor", NULL | |
3526 | }; | |
3527 | ||
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3529 | if (obj0) { | |
3530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3531 | } | |
3532 | { | |
3533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3534 | wxBeginBusyCursor(arg1); | |
3535 | ||
3536 | wxPyEndAllowThreads(__tstate); | |
3537 | if (PyErr_Occurred()) SWIG_fail; | |
3538 | } | |
3539 | Py_INCREF(Py_None); resultobj = Py_None; | |
3540 | return resultobj; | |
3541 | fail: | |
3542 | return NULL; | |
3543 | } | |
3544 | ||
3545 | ||
3546 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3547 | PyObject *resultobj; | |
3548 | wxWindow *result; | |
3549 | char *kwnames[] = { | |
3550 | NULL | |
3551 | }; | |
3552 | ||
3553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3554 | { | |
3555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3556 | result = (wxWindow *)wxGetActiveWindow(); | |
3557 | ||
3558 | wxPyEndAllowThreads(__tstate); | |
3559 | if (PyErr_Occurred()) SWIG_fail; | |
3560 | } | |
3561 | { | |
3562 | resultobj = wxPyMake_wxObject(result); | |
3563 | } | |
3564 | return resultobj; | |
3565 | fail: | |
3566 | return NULL; | |
3567 | } | |
3568 | ||
3569 | ||
3570 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3571 | PyObject *resultobj; | |
3572 | wxPoint *arg1 = 0 ; | |
3573 | wxWindow *result; | |
3574 | wxPoint temp1 ; | |
3575 | PyObject * obj0 = 0 ; | |
3576 | char *kwnames[] = { | |
3577 | (char *) "pt", NULL | |
3578 | }; | |
3579 | ||
3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3581 | { | |
3582 | arg1 = &temp1; | |
3583 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3584 | } | |
3585 | { | |
3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3587 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3588 | ||
3589 | wxPyEndAllowThreads(__tstate); | |
3590 | if (PyErr_Occurred()) SWIG_fail; | |
3591 | } | |
3592 | { | |
3593 | resultobj = wxPyMake_wxObject(result); | |
3594 | } | |
3595 | return resultobj; | |
3596 | fail: | |
3597 | return NULL; | |
3598 | } | |
3599 | ||
3600 | ||
3601 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3602 | PyObject *resultobj; | |
3603 | wxPoint *arg1 = 0 ; | |
3604 | wxWindow *result; | |
3605 | wxPoint temp1 ; | |
3606 | PyObject * obj0 = 0 ; | |
3607 | char *kwnames[] = { | |
3608 | (char *) "pt", NULL | |
3609 | }; | |
3610 | ||
3611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3612 | { | |
3613 | arg1 = &temp1; | |
3614 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3615 | } | |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3619 | ||
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
3623 | { | |
3624 | resultobj = wxPyMake_wxObject(result); | |
3625 | } | |
3626 | return resultobj; | |
3627 | fail: | |
3628 | return NULL; | |
3629 | } | |
3630 | ||
3631 | ||
3632 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3633 | PyObject *resultobj; | |
3634 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3635 | wxWindow *result; | |
3636 | PyObject * obj0 = 0 ; | |
3637 | char *kwnames[] = { | |
3638 | (char *) "win", NULL | |
3639 | }; | |
3640 | ||
3641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3643 | { | |
3644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3645 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3646 | ||
3647 | wxPyEndAllowThreads(__tstate); | |
3648 | if (PyErr_Occurred()) SWIG_fail; | |
3649 | } | |
3650 | { | |
3651 | resultobj = wxPyMake_wxObject(result); | |
3652 | } | |
3653 | return resultobj; | |
3654 | fail: | |
3655 | return NULL; | |
3656 | } | |
3657 | ||
3658 | ||
3659 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3660 | PyObject *resultobj; | |
3661 | char *kwnames[] = { | |
3662 | NULL | |
3663 | }; | |
3664 | ||
3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
3666 | { | |
3667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3668 | wxWakeUpMainThread(); | |
3669 | ||
3670 | wxPyEndAllowThreads(__tstate); | |
3671 | if (PyErr_Occurred()) SWIG_fail; | |
3672 | } | |
3673 | Py_INCREF(Py_None); resultobj = Py_None; | |
3674 | return resultobj; | |
3675 | fail: | |
3676 | return NULL; | |
3677 | } | |
3678 | ||
3679 | ||
3680 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3681 | PyObject *resultobj; | |
3682 | char *kwnames[] = { | |
3683 | NULL | |
3684 | }; | |
3685 | ||
3686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
3687 | { | |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | wxMutexGuiEnter(); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
3694 | Py_INCREF(Py_None); resultobj = Py_None; | |
3695 | return resultobj; | |
3696 | fail: | |
3697 | return NULL; | |
3698 | } | |
3699 | ||
3700 | ||
3701 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3702 | PyObject *resultobj; | |
3703 | char *kwnames[] = { | |
3704 | NULL | |
3705 | }; | |
3706 | ||
3707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
3708 | { | |
3709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3710 | wxMutexGuiLeave(); | |
3711 | ||
3712 | wxPyEndAllowThreads(__tstate); | |
3713 | if (PyErr_Occurred()) SWIG_fail; | |
3714 | } | |
3715 | Py_INCREF(Py_None); resultobj = Py_None; | |
3716 | return resultobj; | |
3717 | fail: | |
3718 | return NULL; | |
3719 | } | |
3720 | ||
3721 | ||
3722 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3723 | PyObject *resultobj; | |
3724 | wxMutexGuiLocker *result; | |
3725 | char *kwnames[] = { | |
3726 | NULL | |
3727 | }; | |
3728 | ||
3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
3730 | { | |
3731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3732 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
3733 | ||
3734 | wxPyEndAllowThreads(__tstate); | |
3735 | if (PyErr_Occurred()) SWIG_fail; | |
3736 | } | |
3737 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
3738 | return resultobj; | |
3739 | fail: | |
3740 | return NULL; | |
3741 | } | |
3742 | ||
3743 | ||
3744 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3745 | PyObject *resultobj; | |
3746 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
3747 | PyObject * obj0 = 0 ; | |
3748 | char *kwnames[] = { | |
3749 | (char *) "self", NULL | |
3750 | }; | |
3751 | ||
3752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
3753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3754 | { | |
3755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3756 | delete arg1; | |
3757 | ||
3758 | wxPyEndAllowThreads(__tstate); | |
3759 | if (PyErr_Occurred()) SWIG_fail; | |
3760 | } | |
3761 | Py_INCREF(Py_None); resultobj = Py_None; | |
3762 | return resultobj; | |
3763 | fail: | |
3764 | return NULL; | |
3765 | } | |
3766 | ||
3767 | ||
3768 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
3769 | PyObject *obj; | |
3770 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3771 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
3772 | Py_INCREF(obj); | |
3773 | return Py_BuildValue((char *)""); | |
3774 | } | |
3775 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3776 | PyObject *resultobj; | |
3777 | bool result; | |
3778 | char *kwnames[] = { | |
3779 | NULL | |
3780 | }; | |
3781 | ||
3782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
3783 | { | |
3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3785 | result = (bool)wxThread_IsMain(); | |
3786 | ||
3787 | wxPyEndAllowThreads(__tstate); | |
3788 | if (PyErr_Occurred()) SWIG_fail; | |
3789 | } | |
3790 | resultobj = PyInt_FromLong((long)result); | |
3791 | return resultobj; | |
3792 | fail: | |
3793 | return NULL; | |
3794 | } | |
3795 | ||
3796 | ||
3797 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3798 | PyObject *resultobj; | |
3799 | wxString *arg1 = 0 ; | |
3800 | wxToolTip *result; | |
423f194a | 3801 | bool temp1 = False ; |
d14a1e28 RD |
3802 | PyObject * obj0 = 0 ; |
3803 | char *kwnames[] = { | |
3804 | (char *) "tip", NULL | |
3805 | }; | |
3806 | ||
3807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
3808 | { | |
3809 | arg1 = wxString_in_helper(obj0); | |
3810 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3811 | temp1 = True; |
d14a1e28 RD |
3812 | } |
3813 | { | |
3814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3815 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
3816 | ||
3817 | wxPyEndAllowThreads(__tstate); | |
3818 | if (PyErr_Occurred()) SWIG_fail; | |
3819 | } | |
3820 | { | |
3821 | resultobj = wxPyMake_wxObject(result); | |
3822 | } | |
3823 | { | |
3824 | if (temp1) | |
3825 | delete arg1; | |
3826 | } | |
3827 | return resultobj; | |
3828 | fail: | |
3829 | { | |
3830 | if (temp1) | |
3831 | delete arg1; | |
3832 | } | |
3833 | return NULL; | |
3834 | } | |
3835 | ||
3836 | ||
3837 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3838 | PyObject *resultobj; | |
3839 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3840 | wxString *arg2 = 0 ; | |
423f194a | 3841 | bool temp2 = False ; |
d14a1e28 RD |
3842 | PyObject * obj0 = 0 ; |
3843 | PyObject * obj1 = 0 ; | |
3844 | char *kwnames[] = { | |
3845 | (char *) "self",(char *) "tip", NULL | |
3846 | }; | |
3847 | ||
3848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
3849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3850 | { | |
3851 | arg2 = wxString_in_helper(obj1); | |
3852 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3853 | temp2 = True; |
d14a1e28 RD |
3854 | } |
3855 | { | |
3856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3857 | (arg1)->SetTip((wxString const &)*arg2); | |
3858 | ||
3859 | wxPyEndAllowThreads(__tstate); | |
3860 | if (PyErr_Occurred()) SWIG_fail; | |
3861 | } | |
3862 | Py_INCREF(Py_None); resultobj = Py_None; | |
3863 | { | |
3864 | if (temp2) | |
3865 | delete arg2; | |
3866 | } | |
3867 | return resultobj; | |
3868 | fail: | |
3869 | { | |
3870 | if (temp2) | |
3871 | delete arg2; | |
3872 | } | |
3873 | return NULL; | |
3874 | } | |
3875 | ||
3876 | ||
3877 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3878 | PyObject *resultobj; | |
3879 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3880 | wxString result; | |
3881 | PyObject * obj0 = 0 ; | |
3882 | char *kwnames[] = { | |
3883 | (char *) "self", NULL | |
3884 | }; | |
3885 | ||
3886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
3887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3888 | { | |
3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3890 | result = (arg1)->GetTip(); | |
3891 | ||
3892 | wxPyEndAllowThreads(__tstate); | |
3893 | if (PyErr_Occurred()) SWIG_fail; | |
3894 | } | |
3895 | { | |
3896 | #if wxUSE_UNICODE | |
3897 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3898 | #else | |
3899 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3900 | #endif | |
3901 | } | |
3902 | return resultobj; | |
3903 | fail: | |
3904 | return NULL; | |
3905 | } | |
3906 | ||
3907 | ||
3908 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3909 | PyObject *resultobj; | |
3910 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3911 | wxWindow *result; | |
3912 | PyObject * obj0 = 0 ; | |
3913 | char *kwnames[] = { | |
3914 | (char *) "self", NULL | |
3915 | }; | |
3916 | ||
3917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
3918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3919 | { | |
3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3921 | result = (wxWindow *)(arg1)->GetWindow(); | |
3922 | ||
3923 | wxPyEndAllowThreads(__tstate); | |
3924 | if (PyErr_Occurred()) SWIG_fail; | |
3925 | } | |
3926 | { | |
3927 | resultobj = wxPyMake_wxObject(result); | |
3928 | } | |
3929 | return resultobj; | |
3930 | fail: | |
3931 | return NULL; | |
3932 | } | |
3933 | ||
3934 | ||
3935 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3936 | PyObject *resultobj; | |
3937 | bool arg1 ; | |
3938 | PyObject * obj0 = 0 ; | |
3939 | char *kwnames[] = { | |
3940 | (char *) "flag", NULL | |
3941 | }; | |
3942 | ||
3943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
3944 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
3945 | if (PyErr_Occurred()) SWIG_fail; | |
3946 | { | |
3947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3948 | wxToolTip::Enable(arg1); | |
3949 | ||
3950 | wxPyEndAllowThreads(__tstate); | |
3951 | if (PyErr_Occurred()) SWIG_fail; | |
3952 | } | |
3953 | Py_INCREF(Py_None); resultobj = Py_None; | |
3954 | return resultobj; | |
3955 | fail: | |
3956 | return NULL; | |
3957 | } | |
3958 | ||
3959 | ||
3960 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3961 | PyObject *resultobj; | |
3962 | long arg1 ; | |
3963 | char *kwnames[] = { | |
3964 | (char *) "milliseconds", NULL | |
3965 | }; | |
3966 | ||
3967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:ToolTip_SetDelay",kwnames,&arg1)) goto fail; | |
3968 | { | |
3969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3970 | wxToolTip::SetDelay(arg1); | |
3971 | ||
3972 | wxPyEndAllowThreads(__tstate); | |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
3974 | } | |
3975 | Py_INCREF(Py_None); resultobj = Py_None; | |
3976 | return resultobj; | |
3977 | fail: | |
3978 | return NULL; | |
3979 | } | |
3980 | ||
3981 | ||
3982 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
3983 | PyObject *obj; | |
3984 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3985 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
3986 | Py_INCREF(obj); | |
3987 | return Py_BuildValue((char *)""); | |
3988 | } | |
3989 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3990 | PyObject *resultobj; | |
3991 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3992 | wxSize *arg2 = 0 ; | |
3993 | wxCaret *result; | |
3994 | wxSize temp2 ; | |
3995 | PyObject * obj0 = 0 ; | |
3996 | PyObject * obj1 = 0 ; | |
3997 | char *kwnames[] = { | |
3998 | (char *) "window",(char *) "size", NULL | |
3999 | }; | |
4000 | ||
4001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4003 | { | |
4004 | arg2 = &temp2; | |
4005 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4006 | } | |
4007 | { | |
4008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4009 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4010 | ||
4011 | wxPyEndAllowThreads(__tstate); | |
4012 | if (PyErr_Occurred()) SWIG_fail; | |
4013 | } | |
4014 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
4015 | return resultobj; | |
4016 | fail: | |
4017 | return NULL; | |
4018 | } | |
4019 | ||
4020 | ||
4021 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4022 | PyObject *resultobj; | |
4023 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4024 | PyObject * obj0 = 0 ; | |
4025 | char *kwnames[] = { | |
4026 | (char *) "self", NULL | |
4027 | }; | |
4028 | ||
4029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4031 | { | |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4033 | delete arg1; | |
4034 | ||
4035 | wxPyEndAllowThreads(__tstate); | |
4036 | if (PyErr_Occurred()) SWIG_fail; | |
4037 | } | |
4038 | Py_INCREF(Py_None); resultobj = Py_None; | |
4039 | return resultobj; | |
4040 | fail: | |
4041 | return NULL; | |
4042 | } | |
4043 | ||
4044 | ||
4045 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4046 | PyObject *resultobj; | |
4047 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4048 | bool result; | |
4049 | PyObject * obj0 = 0 ; | |
4050 | char *kwnames[] = { | |
4051 | (char *) "self", NULL | |
4052 | }; | |
4053 | ||
4054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4056 | { | |
4057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4058 | result = (bool)(arg1)->IsOk(); | |
4059 | ||
4060 | wxPyEndAllowThreads(__tstate); | |
4061 | if (PyErr_Occurred()) SWIG_fail; | |
4062 | } | |
4063 | resultobj = PyInt_FromLong((long)result); | |
4064 | return resultobj; | |
4065 | fail: | |
4066 | return NULL; | |
4067 | } | |
4068 | ||
4069 | ||
4070 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4071 | PyObject *resultobj; | |
4072 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4073 | bool result; | |
4074 | PyObject * obj0 = 0 ; | |
4075 | char *kwnames[] = { | |
4076 | (char *) "self", NULL | |
4077 | }; | |
4078 | ||
4079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4081 | { | |
4082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4083 | result = (bool)(arg1)->IsVisible(); | |
4084 | ||
4085 | wxPyEndAllowThreads(__tstate); | |
4086 | if (PyErr_Occurred()) SWIG_fail; | |
4087 | } | |
4088 | resultobj = PyInt_FromLong((long)result); | |
4089 | return resultobj; | |
4090 | fail: | |
4091 | return NULL; | |
4092 | } | |
4093 | ||
4094 | ||
4095 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4096 | PyObject *resultobj; | |
4097 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4098 | int *arg2 = (int *) 0 ; | |
4099 | int *arg3 = (int *) 0 ; | |
4100 | int temp2 ; | |
4101 | int temp3 ; | |
4102 | PyObject * obj0 = 0 ; | |
4103 | char *kwnames[] = { | |
4104 | (char *) "self", NULL | |
4105 | }; | |
4106 | ||
4107 | arg2 = &temp2; | |
4108 | arg3 = &temp3; | |
4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4111 | { | |
4112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4113 | (arg1)->GetPosition(arg2,arg3); | |
4114 | ||
4115 | wxPyEndAllowThreads(__tstate); | |
4116 | if (PyErr_Occurred()) SWIG_fail; | |
4117 | } | |
4118 | Py_INCREF(Py_None); resultobj = Py_None; | |
4119 | { | |
4120 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4121 | resultobj = t_output_helper(resultobj,o); | |
4122 | } | |
4123 | { | |
4124 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4125 | resultobj = t_output_helper(resultobj,o); | |
4126 | } | |
4127 | return resultobj; | |
4128 | fail: | |
4129 | return NULL; | |
4130 | } | |
4131 | ||
4132 | ||
4133 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4134 | PyObject *resultobj; | |
4135 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4136 | wxPoint result; | |
4137 | PyObject * obj0 = 0 ; | |
4138 | char *kwnames[] = { | |
4139 | (char *) "self", NULL | |
4140 | }; | |
4141 | ||
4142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4144 | { | |
4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4146 | result = (arg1)->GetPosition(); | |
4147 | ||
4148 | wxPyEndAllowThreads(__tstate); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | } | |
4151 | { | |
4152 | wxPoint * resultptr; | |
4153 | resultptr = new wxPoint((wxPoint &) result); | |
4154 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4155 | } | |
4156 | return resultobj; | |
4157 | fail: | |
4158 | return NULL; | |
4159 | } | |
4160 | ||
4161 | ||
4162 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4163 | PyObject *resultobj; | |
4164 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4165 | int *arg2 = (int *) 0 ; | |
4166 | int *arg3 = (int *) 0 ; | |
4167 | int temp2 ; | |
4168 | int temp3 ; | |
4169 | PyObject * obj0 = 0 ; | |
4170 | char *kwnames[] = { | |
4171 | (char *) "self", NULL | |
4172 | }; | |
4173 | ||
4174 | arg2 = &temp2; | |
4175 | arg3 = &temp3; | |
4176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4178 | { | |
4179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4180 | (arg1)->GetSize(arg2,arg3); | |
4181 | ||
4182 | wxPyEndAllowThreads(__tstate); | |
4183 | if (PyErr_Occurred()) SWIG_fail; | |
4184 | } | |
4185 | Py_INCREF(Py_None); resultobj = Py_None; | |
4186 | { | |
4187 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4188 | resultobj = t_output_helper(resultobj,o); | |
4189 | } | |
4190 | { | |
4191 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4192 | resultobj = t_output_helper(resultobj,o); | |
4193 | } | |
4194 | return resultobj; | |
4195 | fail: | |
4196 | return NULL; | |
4197 | } | |
4198 | ||
4199 | ||
4200 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4201 | PyObject *resultobj; | |
4202 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4203 | wxSize result; | |
4204 | PyObject * obj0 = 0 ; | |
4205 | char *kwnames[] = { | |
4206 | (char *) "self", NULL | |
4207 | }; | |
4208 | ||
4209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; | |
4210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4211 | { | |
4212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4213 | result = (arg1)->GetSize(); | |
4214 | ||
4215 | wxPyEndAllowThreads(__tstate); | |
4216 | if (PyErr_Occurred()) SWIG_fail; | |
4217 | } | |
4218 | { | |
4219 | wxSize * resultptr; | |
4220 | resultptr = new wxSize((wxSize &) result); | |
4221 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
4222 | } | |
4223 | return resultobj; | |
4224 | fail: | |
4225 | return NULL; | |
4226 | } | |
4227 | ||
4228 | ||
4229 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4230 | PyObject *resultobj; | |
4231 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4232 | wxWindow *result; | |
4233 | PyObject * obj0 = 0 ; | |
4234 | char *kwnames[] = { | |
4235 | (char *) "self", NULL | |
4236 | }; | |
4237 | ||
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4240 | { | |
4241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4242 | result = (wxWindow *)(arg1)->GetWindow(); | |
4243 | ||
4244 | wxPyEndAllowThreads(__tstate); | |
4245 | if (PyErr_Occurred()) SWIG_fail; | |
4246 | } | |
4247 | { | |
4248 | resultobj = wxPyMake_wxObject(result); | |
4249 | } | |
4250 | return resultobj; | |
4251 | fail: | |
4252 | return NULL; | |
4253 | } | |
4254 | ||
4255 | ||
4256 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4257 | PyObject *resultobj; | |
4258 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4259 | int arg2 ; | |
4260 | int arg3 ; | |
4261 | PyObject * obj0 = 0 ; | |
4262 | char *kwnames[] = { | |
4263 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4264 | }; | |
4265 | ||
4266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_MoveXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4267 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4268 | { | |
4269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4270 | (arg1)->Move(arg2,arg3); | |
4271 | ||
4272 | wxPyEndAllowThreads(__tstate); | |
4273 | if (PyErr_Occurred()) SWIG_fail; | |
4274 | } | |
4275 | Py_INCREF(Py_None); resultobj = Py_None; | |
4276 | return resultobj; | |
4277 | fail: | |
4278 | return NULL; | |
4279 | } | |
4280 | ||
4281 | ||
4282 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4283 | PyObject *resultobj; | |
4284 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4285 | wxPoint *arg2 = 0 ; | |
4286 | wxPoint temp2 ; | |
4287 | PyObject * obj0 = 0 ; | |
4288 | PyObject * obj1 = 0 ; | |
4289 | char *kwnames[] = { | |
4290 | (char *) "self",(char *) "pt", NULL | |
4291 | }; | |
4292 | ||
4293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4295 | { | |
4296 | arg2 = &temp2; | |
4297 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4298 | } | |
4299 | { | |
4300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4301 | (arg1)->Move((wxPoint const &)*arg2); | |
4302 | ||
4303 | wxPyEndAllowThreads(__tstate); | |
4304 | if (PyErr_Occurred()) SWIG_fail; | |
4305 | } | |
4306 | Py_INCREF(Py_None); resultobj = Py_None; | |
4307 | return resultobj; | |
4308 | fail: | |
4309 | return NULL; | |
4310 | } | |
4311 | ||
4312 | ||
4313 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4314 | PyObject *resultobj; | |
4315 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4316 | int arg2 ; | |
4317 | int arg3 ; | |
4318 | PyObject * obj0 = 0 ; | |
4319 | char *kwnames[] = { | |
4320 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4321 | }; | |
4322 | ||
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4325 | { | |
4326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4327 | (arg1)->SetSize(arg2,arg3); | |
4328 | ||
4329 | wxPyEndAllowThreads(__tstate); | |
4330 | if (PyErr_Occurred()) SWIG_fail; | |
4331 | } | |
4332 | Py_INCREF(Py_None); resultobj = Py_None; | |
4333 | return resultobj; | |
4334 | fail: | |
4335 | return NULL; | |
4336 | } | |
4337 | ||
4338 | ||
4339 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4340 | PyObject *resultobj; | |
4341 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4342 | wxSize *arg2 = 0 ; | |
4343 | wxSize temp2 ; | |
4344 | PyObject * obj0 = 0 ; | |
4345 | PyObject * obj1 = 0 ; | |
4346 | char *kwnames[] = { | |
4347 | (char *) "self",(char *) "size", NULL | |
4348 | }; | |
4349 | ||
4350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4352 | { | |
4353 | arg2 = &temp2; | |
4354 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4355 | } | |
4356 | { | |
4357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4358 | (arg1)->SetSize((wxSize const &)*arg2); | |
4359 | ||
4360 | wxPyEndAllowThreads(__tstate); | |
4361 | if (PyErr_Occurred()) SWIG_fail; | |
4362 | } | |
4363 | Py_INCREF(Py_None); resultobj = Py_None; | |
4364 | return resultobj; | |
4365 | fail: | |
4366 | return NULL; | |
4367 | } | |
4368 | ||
4369 | ||
4370 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4371 | PyObject *resultobj; | |
4372 | wxCaret *arg1 = (wxCaret *) 0 ; | |
423f194a | 4373 | int arg2 = (int) True ; |
d14a1e28 RD |
4374 | PyObject * obj0 = 0 ; |
4375 | char *kwnames[] = { | |
4376 | (char *) "self",(char *) "show", NULL | |
4377 | }; | |
4378 | ||
4379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Caret_Show",kwnames,&obj0,&arg2)) goto fail; | |
4380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4381 | { | |
4382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4383 | (arg1)->Show(arg2); | |
4384 | ||
4385 | wxPyEndAllowThreads(__tstate); | |
4386 | if (PyErr_Occurred()) SWIG_fail; | |
4387 | } | |
4388 | Py_INCREF(Py_None); resultobj = Py_None; | |
4389 | return resultobj; | |
4390 | fail: | |
4391 | return NULL; | |
4392 | } | |
4393 | ||
4394 | ||
4395 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4396 | PyObject *resultobj; | |
4397 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4398 | PyObject * obj0 = 0 ; | |
4399 | char *kwnames[] = { | |
4400 | (char *) "self", NULL | |
4401 | }; | |
4402 | ||
4403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4405 | { | |
4406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4407 | (arg1)->Hide(); | |
4408 | ||
4409 | wxPyEndAllowThreads(__tstate); | |
4410 | if (PyErr_Occurred()) SWIG_fail; | |
4411 | } | |
4412 | Py_INCREF(Py_None); resultobj = Py_None; | |
4413 | return resultobj; | |
4414 | fail: | |
4415 | return NULL; | |
4416 | } | |
4417 | ||
4418 | ||
4419 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4420 | PyObject *obj; | |
4421 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4422 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4423 | Py_INCREF(obj); | |
4424 | return Py_BuildValue((char *)""); | |
4425 | } | |
4426 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4427 | PyObject *resultobj; | |
4428 | int result; | |
4429 | char *kwnames[] = { | |
4430 | NULL | |
4431 | }; | |
4432 | ||
4433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | result = (int)wxCaret_GetBlinkTime(); | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
4439 | if (PyErr_Occurred()) SWIG_fail; | |
4440 | } | |
4441 | resultobj = PyInt_FromLong((long)result); | |
4442 | return resultobj; | |
4443 | fail: | |
4444 | return NULL; | |
4445 | } | |
4446 | ||
4447 | ||
4448 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4449 | PyObject *resultobj; | |
4450 | int arg1 ; | |
4451 | char *kwnames[] = { | |
4452 | (char *) "milliseconds", NULL | |
4453 | }; | |
4454 | ||
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Caret_SetBlinkTime",kwnames,&arg1)) goto fail; | |
4456 | { | |
4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4458 | wxCaret_SetBlinkTime(arg1); | |
4459 | ||
4460 | wxPyEndAllowThreads(__tstate); | |
4461 | if (PyErr_Occurred()) SWIG_fail; | |
4462 | } | |
4463 | Py_INCREF(Py_None); resultobj = Py_None; | |
4464 | return resultobj; | |
4465 | fail: | |
4466 | return NULL; | |
4467 | } | |
4468 | ||
4469 | ||
4470 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject *resultobj; | |
4472 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4473 | wxBusyCursor *result; | |
4474 | PyObject * obj0 = 0 ; | |
4475 | char *kwnames[] = { | |
4476 | (char *) "cursor", NULL | |
4477 | }; | |
4478 | ||
4479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4480 | if (obj0) { | |
4481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4482 | } | |
4483 | { | |
4484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4485 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4486 | ||
4487 | wxPyEndAllowThreads(__tstate); | |
4488 | if (PyErr_Occurred()) SWIG_fail; | |
4489 | } | |
4490 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4491 | return resultobj; | |
4492 | fail: | |
4493 | return NULL; | |
4494 | } | |
4495 | ||
4496 | ||
4497 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4498 | PyObject *resultobj; | |
4499 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4500 | PyObject * obj0 = 0 ; | |
4501 | char *kwnames[] = { | |
4502 | (char *) "self", NULL | |
4503 | }; | |
4504 | ||
4505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4507 | { | |
4508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4509 | delete arg1; | |
4510 | ||
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
4514 | Py_INCREF(Py_None); resultobj = Py_None; | |
4515 | return resultobj; | |
4516 | fail: | |
4517 | return NULL; | |
4518 | } | |
4519 | ||
4520 | ||
4521 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4522 | PyObject *obj; | |
4523 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4524 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4525 | Py_INCREF(obj); | |
4526 | return Py_BuildValue((char *)""); | |
4527 | } | |
4528 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4529 | PyObject *resultobj; | |
4530 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4531 | wxWindowDisabler *result; | |
4532 | PyObject * obj0 = 0 ; | |
4533 | char *kwnames[] = { | |
4534 | (char *) "winToSkip", NULL | |
4535 | }; | |
4536 | ||
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4538 | if (obj0) { | |
4539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4540 | } | |
4541 | { | |
4542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4543 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4544 | ||
4545 | wxPyEndAllowThreads(__tstate); | |
4546 | if (PyErr_Occurred()) SWIG_fail; | |
4547 | } | |
4548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4549 | return resultobj; | |
4550 | fail: | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
4555 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4556 | PyObject *resultobj; | |
4557 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4558 | PyObject * obj0 = 0 ; | |
4559 | char *kwnames[] = { | |
4560 | (char *) "self", NULL | |
4561 | }; | |
4562 | ||
4563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4565 | { | |
4566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4567 | delete arg1; | |
4568 | ||
4569 | wxPyEndAllowThreads(__tstate); | |
4570 | if (PyErr_Occurred()) SWIG_fail; | |
4571 | } | |
4572 | Py_INCREF(Py_None); resultobj = Py_None; | |
4573 | return resultobj; | |
4574 | fail: | |
4575 | return NULL; | |
4576 | } | |
4577 | ||
4578 | ||
4579 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4580 | PyObject *obj; | |
4581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4582 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4583 | Py_INCREF(obj); | |
4584 | return Py_BuildValue((char *)""); | |
4585 | } | |
4586 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4587 | PyObject *resultobj; | |
4588 | wxString *arg1 = 0 ; | |
4589 | wxBusyInfo *result; | |
423f194a | 4590 | bool temp1 = False ; |
d14a1e28 RD |
4591 | PyObject * obj0 = 0 ; |
4592 | char *kwnames[] = { | |
4593 | (char *) "message", NULL | |
4594 | }; | |
4595 | ||
4596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4597 | { | |
4598 | arg1 = wxString_in_helper(obj0); | |
4599 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4600 | temp1 = True; |
d14a1e28 RD |
4601 | } |
4602 | { | |
4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4604 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
4605 | ||
4606 | wxPyEndAllowThreads(__tstate); | |
4607 | if (PyErr_Occurred()) SWIG_fail; | |
4608 | } | |
4609 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
4610 | { | |
4611 | if (temp1) | |
4612 | delete arg1; | |
4613 | } | |
4614 | return resultobj; | |
4615 | fail: | |
4616 | { | |
4617 | if (temp1) | |
4618 | delete arg1; | |
4619 | } | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
4624 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4625 | PyObject *resultobj; | |
4626 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
4627 | PyObject * obj0 = 0 ; | |
4628 | char *kwnames[] = { | |
4629 | (char *) "self", NULL | |
4630 | }; | |
4631 | ||
4632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
4633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4634 | { | |
4635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4636 | delete arg1; | |
4637 | ||
4638 | wxPyEndAllowThreads(__tstate); | |
4639 | if (PyErr_Occurred()) SWIG_fail; | |
4640 | } | |
4641 | Py_INCREF(Py_None); resultobj = Py_None; | |
4642 | return resultobj; | |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
4648 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
4649 | PyObject *obj; | |
4650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4651 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
4652 | Py_INCREF(obj); | |
4653 | return Py_BuildValue((char *)""); | |
4654 | } | |
4655 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4656 | PyObject *resultobj; | |
4657 | wxStopWatch *result; | |
4658 | char *kwnames[] = { | |
4659 | NULL | |
4660 | }; | |
4661 | ||
4662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
4663 | { | |
4664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4665 | result = (wxStopWatch *)new wxStopWatch(); | |
4666 | ||
4667 | wxPyEndAllowThreads(__tstate); | |
4668 | if (PyErr_Occurred()) SWIG_fail; | |
4669 | } | |
4670 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
4671 | return resultobj; | |
4672 | fail: | |
4673 | return NULL; | |
4674 | } | |
4675 | ||
4676 | ||
4677 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4678 | PyObject *resultobj; | |
4679 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4680 | long arg2 = (long) 0 ; | |
4681 | PyObject * obj0 = 0 ; | |
4682 | char *kwnames[] = { | |
4683 | (char *) "self",(char *) "t0", NULL | |
4684 | }; | |
4685 | ||
4686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:StopWatch_Start",kwnames,&obj0,&arg2)) goto fail; | |
4687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4688 | { | |
4689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4690 | (arg1)->Start(arg2); | |
4691 | ||
4692 | wxPyEndAllowThreads(__tstate); | |
4693 | if (PyErr_Occurred()) SWIG_fail; | |
4694 | } | |
4695 | Py_INCREF(Py_None); resultobj = Py_None; | |
4696 | return resultobj; | |
4697 | fail: | |
4698 | return NULL; | |
4699 | } | |
4700 | ||
4701 | ||
4702 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4703 | PyObject *resultobj; | |
4704 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4705 | PyObject * obj0 = 0 ; | |
4706 | char *kwnames[] = { | |
4707 | (char *) "self", NULL | |
4708 | }; | |
4709 | ||
4710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
4711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4712 | { | |
4713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4714 | (arg1)->Pause(); | |
4715 | ||
4716 | wxPyEndAllowThreads(__tstate); | |
4717 | if (PyErr_Occurred()) SWIG_fail; | |
4718 | } | |
4719 | Py_INCREF(Py_None); resultobj = Py_None; | |
4720 | return resultobj; | |
4721 | fail: | |
4722 | return NULL; | |
4723 | } | |
4724 | ||
4725 | ||
4726 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4727 | PyObject *resultobj; | |
4728 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4729 | PyObject * obj0 = 0 ; | |
4730 | char *kwnames[] = { | |
4731 | (char *) "self", NULL | |
4732 | }; | |
4733 | ||
4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
4735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4736 | { | |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | (arg1)->Resume(); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) SWIG_fail; | |
4742 | } | |
4743 | Py_INCREF(Py_None); resultobj = Py_None; | |
4744 | return resultobj; | |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject *resultobj; | |
4752 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4753 | long result; | |
4754 | PyObject * obj0 = 0 ; | |
4755 | char *kwnames[] = { | |
4756 | (char *) "self", NULL | |
4757 | }; | |
4758 | ||
4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
4760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4761 | { | |
4762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4763 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
4764 | ||
4765 | wxPyEndAllowThreads(__tstate); | |
4766 | if (PyErr_Occurred()) SWIG_fail; | |
4767 | } | |
4768 | resultobj = PyInt_FromLong((long)result); | |
4769 | return resultobj; | |
4770 | fail: | |
4771 | return NULL; | |
4772 | } | |
4773 | ||
4774 | ||
4775 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
4776 | PyObject *obj; | |
4777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4778 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
4779 | Py_INCREF(obj); | |
4780 | return Py_BuildValue((char *)""); | |
4781 | } | |
4782 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4783 | PyObject *resultobj; | |
4784 | int arg1 = (int) 9 ; | |
4785 | wxFileHistory *result; | |
4786 | char *kwnames[] = { | |
4787 | (char *) "maxFiles", NULL | |
4788 | }; | |
4789 | ||
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_FileHistory",kwnames,&arg1)) goto fail; | |
4791 | { | |
4792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4793 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
4794 | ||
4795 | wxPyEndAllowThreads(__tstate); | |
4796 | if (PyErr_Occurred()) SWIG_fail; | |
4797 | } | |
4798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
4799 | return resultobj; | |
4800 | fail: | |
4801 | return NULL; | |
4802 | } | |
4803 | ||
4804 | ||
4805 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4806 | PyObject *resultobj; | |
4807 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4808 | PyObject * obj0 = 0 ; | |
4809 | char *kwnames[] = { | |
4810 | (char *) "self", NULL | |
4811 | }; | |
4812 | ||
4813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
4814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4815 | { | |
4816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4817 | delete arg1; | |
4818 | ||
4819 | wxPyEndAllowThreads(__tstate); | |
4820 | if (PyErr_Occurred()) SWIG_fail; | |
4821 | } | |
4822 | Py_INCREF(Py_None); resultobj = Py_None; | |
4823 | return resultobj; | |
4824 | fail: | |
4825 | return NULL; | |
4826 | } | |
4827 | ||
4828 | ||
4829 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4830 | PyObject *resultobj; | |
4831 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4832 | wxString *arg2 = 0 ; | |
423f194a | 4833 | bool temp2 = False ; |
d14a1e28 RD |
4834 | PyObject * obj0 = 0 ; |
4835 | PyObject * obj1 = 0 ; | |
4836 | char *kwnames[] = { | |
4837 | (char *) "self",(char *) "file", NULL | |
4838 | }; | |
4839 | ||
4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
4841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4842 | { | |
4843 | arg2 = wxString_in_helper(obj1); | |
4844 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4845 | temp2 = True; |
d14a1e28 RD |
4846 | } |
4847 | { | |
4848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4849 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
4850 | ||
4851 | wxPyEndAllowThreads(__tstate); | |
4852 | if (PyErr_Occurred()) SWIG_fail; | |
4853 | } | |
4854 | Py_INCREF(Py_None); resultobj = Py_None; | |
4855 | { | |
4856 | if (temp2) | |
4857 | delete arg2; | |
4858 | } | |
4859 | return resultobj; | |
4860 | fail: | |
4861 | { | |
4862 | if (temp2) | |
4863 | delete arg2; | |
4864 | } | |
4865 | return NULL; | |
4866 | } | |
4867 | ||
4868 | ||
4869 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4870 | PyObject *resultobj; | |
4871 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4872 | int arg2 ; | |
4873 | PyObject * obj0 = 0 ; | |
4874 | char *kwnames[] = { | |
4875 | (char *) "self",(char *) "i", NULL | |
4876 | }; | |
4877 | ||
4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&arg2)) goto fail; | |
4879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4880 | { | |
4881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4882 | (arg1)->RemoveFileFromHistory(arg2); | |
4883 | ||
4884 | wxPyEndAllowThreads(__tstate); | |
4885 | if (PyErr_Occurred()) SWIG_fail; | |
4886 | } | |
4887 | Py_INCREF(Py_None); resultobj = Py_None; | |
4888 | return resultobj; | |
4889 | fail: | |
4890 | return NULL; | |
4891 | } | |
4892 | ||
4893 | ||
4894 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4895 | PyObject *resultobj; | |
4896 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4897 | int result; | |
4898 | PyObject * obj0 = 0 ; | |
4899 | char *kwnames[] = { | |
4900 | (char *) "self", NULL | |
4901 | }; | |
4902 | ||
4903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
4904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4905 | { | |
4906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4907 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
4908 | ||
4909 | wxPyEndAllowThreads(__tstate); | |
4910 | if (PyErr_Occurred()) SWIG_fail; | |
4911 | } | |
4912 | resultobj = PyInt_FromLong((long)result); | |
4913 | return resultobj; | |
4914 | fail: | |
4915 | return NULL; | |
4916 | } | |
4917 | ||
4918 | ||
4919 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4920 | PyObject *resultobj; | |
4921 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4922 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4923 | PyObject * obj0 = 0 ; | |
4924 | PyObject * obj1 = 0 ; | |
4925 | char *kwnames[] = { | |
4926 | (char *) "self",(char *) "menu", NULL | |
4927 | }; | |
4928 | ||
4929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
4930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4931 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4932 | { | |
4933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4934 | (arg1)->UseMenu(arg2); | |
4935 | ||
4936 | wxPyEndAllowThreads(__tstate); | |
4937 | if (PyErr_Occurred()) SWIG_fail; | |
4938 | } | |
4939 | Py_INCREF(Py_None); resultobj = Py_None; | |
4940 | return resultobj; | |
4941 | fail: | |
4942 | return NULL; | |
4943 | } | |
4944 | ||
4945 | ||
4946 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4947 | PyObject *resultobj; | |
4948 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4949 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4950 | PyObject * obj0 = 0 ; | |
4951 | PyObject * obj1 = 0 ; | |
4952 | char *kwnames[] = { | |
4953 | (char *) "self",(char *) "menu", NULL | |
4954 | }; | |
4955 | ||
4956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
4957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4958 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4959 | { | |
4960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4961 | (arg1)->RemoveMenu(arg2); | |
4962 | ||
4963 | wxPyEndAllowThreads(__tstate); | |
4964 | if (PyErr_Occurred()) SWIG_fail; | |
4965 | } | |
4966 | Py_INCREF(Py_None); resultobj = Py_None; | |
4967 | return resultobj; | |
4968 | fail: | |
4969 | return NULL; | |
4970 | } | |
4971 | ||
4972 | ||
4973 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4974 | PyObject *resultobj; | |
4975 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4976 | wxConfigBase *arg2 = 0 ; | |
4977 | PyObject * obj0 = 0 ; | |
4978 | PyObject * obj1 = 0 ; | |
4979 | char *kwnames[] = { | |
4980 | (char *) "self",(char *) "config", NULL | |
4981 | }; | |
4982 | ||
4983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
4984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4985 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4986 | if (arg2 == NULL) { | |
4987 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4988 | } | |
4989 | { | |
4990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4991 | (arg1)->Load(*arg2); | |
4992 | ||
4993 | wxPyEndAllowThreads(__tstate); | |
4994 | if (PyErr_Occurred()) SWIG_fail; | |
4995 | } | |
4996 | Py_INCREF(Py_None); resultobj = Py_None; | |
4997 | return resultobj; | |
4998 | fail: | |
4999 | return NULL; | |
5000 | } | |
5001 | ||
5002 | ||
5003 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject *resultobj; | |
5005 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5006 | wxConfigBase *arg2 = 0 ; | |
5007 | PyObject * obj0 = 0 ; | |
5008 | PyObject * obj1 = 0 ; | |
5009 | char *kwnames[] = { | |
5010 | (char *) "self",(char *) "config", NULL | |
5011 | }; | |
5012 | ||
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5015 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5016 | if (arg2 == NULL) { | |
5017 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5018 | } | |
5019 | { | |
5020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5021 | (arg1)->Save(*arg2); | |
5022 | ||
5023 | wxPyEndAllowThreads(__tstate); | |
5024 | if (PyErr_Occurred()) SWIG_fail; | |
5025 | } | |
5026 | Py_INCREF(Py_None); resultobj = Py_None; | |
5027 | return resultobj; | |
5028 | fail: | |
5029 | return NULL; | |
5030 | } | |
5031 | ||
5032 | ||
5033 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5034 | PyObject *resultobj; | |
5035 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5036 | PyObject * obj0 = 0 ; | |
5037 | char *kwnames[] = { | |
5038 | (char *) "self", NULL | |
5039 | }; | |
5040 | ||
5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5043 | { | |
5044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5045 | (arg1)->AddFilesToMenu(); | |
5046 | ||
5047 | wxPyEndAllowThreads(__tstate); | |
5048 | if (PyErr_Occurred()) SWIG_fail; | |
5049 | } | |
5050 | Py_INCREF(Py_None); resultobj = Py_None; | |
5051 | return resultobj; | |
5052 | fail: | |
5053 | return NULL; | |
5054 | } | |
5055 | ||
5056 | ||
5057 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5058 | PyObject *resultobj; | |
5059 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5060 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5061 | PyObject * obj0 = 0 ; | |
5062 | PyObject * obj1 = 0 ; | |
5063 | char *kwnames[] = { | |
5064 | (char *) "self",(char *) "menu", NULL | |
5065 | }; | |
5066 | ||
5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5069 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5070 | { | |
5071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5072 | (arg1)->AddFilesToMenu(arg2); | |
5073 | ||
5074 | wxPyEndAllowThreads(__tstate); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
5077 | Py_INCREF(Py_None); resultobj = Py_None; | |
5078 | return resultobj; | |
5079 | fail: | |
5080 | return NULL; | |
5081 | } | |
5082 | ||
5083 | ||
5084 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5085 | PyObject *resultobj; | |
5086 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5087 | int arg2 ; | |
5088 | wxString result; | |
5089 | PyObject * obj0 = 0 ; | |
5090 | char *kwnames[] = { | |
5091 | (char *) "self",(char *) "i", NULL | |
5092 | }; | |
5093 | ||
5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_GetHistoryFile",kwnames,&obj0,&arg2)) goto fail; | |
5095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5096 | { | |
5097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5098 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5099 | ||
5100 | wxPyEndAllowThreads(__tstate); | |
5101 | if (PyErr_Occurred()) SWIG_fail; | |
5102 | } | |
5103 | { | |
5104 | #if wxUSE_UNICODE | |
5105 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5106 | #else | |
5107 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5108 | #endif | |
5109 | } | |
5110 | return resultobj; | |
5111 | fail: | |
5112 | return NULL; | |
5113 | } | |
5114 | ||
5115 | ||
5116 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5117 | PyObject *resultobj; | |
5118 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5119 | int result; | |
5120 | PyObject * obj0 = 0 ; | |
5121 | char *kwnames[] = { | |
5122 | (char *) "self", NULL | |
5123 | }; | |
5124 | ||
5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5127 | { | |
5128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5129 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5130 | ||
5131 | wxPyEndAllowThreads(__tstate); | |
5132 | if (PyErr_Occurred()) SWIG_fail; | |
5133 | } | |
5134 | resultobj = PyInt_FromLong((long)result); | |
5135 | return resultobj; | |
5136 | fail: | |
5137 | return NULL; | |
5138 | } | |
5139 | ||
5140 | ||
5141 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5142 | PyObject *obj; | |
5143 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5144 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5145 | Py_INCREF(obj); | |
5146 | return Py_BuildValue((char *)""); | |
5147 | } | |
5148 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5149 | PyObject *resultobj; | |
5150 | wxString *arg1 = 0 ; | |
5151 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5152 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5153 | wxSingleInstanceChecker *result; | |
423f194a RD |
5154 | bool temp1 = False ; |
5155 | bool temp2 = False ; | |
d14a1e28 RD |
5156 | PyObject * obj0 = 0 ; |
5157 | PyObject * obj1 = 0 ; | |
5158 | char *kwnames[] = { | |
5159 | (char *) "name",(char *) "path", NULL | |
5160 | }; | |
5161 | ||
5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5163 | { | |
5164 | arg1 = wxString_in_helper(obj0); | |
5165 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5166 | temp1 = True; |
d14a1e28 RD |
5167 | } |
5168 | if (obj1) { | |
5169 | { | |
5170 | arg2 = wxString_in_helper(obj1); | |
5171 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5172 | temp2 = True; |
d14a1e28 RD |
5173 | } |
5174 | } | |
5175 | { | |
5176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5177 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5178 | ||
5179 | wxPyEndAllowThreads(__tstate); | |
5180 | if (PyErr_Occurred()) SWIG_fail; | |
5181 | } | |
5182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5183 | { | |
5184 | if (temp1) | |
5185 | delete arg1; | |
5186 | } | |
5187 | { | |
5188 | if (temp2) | |
5189 | delete arg2; | |
5190 | } | |
5191 | return resultobj; | |
5192 | fail: | |
5193 | { | |
5194 | if (temp1) | |
5195 | delete arg1; | |
5196 | } | |
5197 | { | |
5198 | if (temp2) | |
5199 | delete arg2; | |
5200 | } | |
5201 | return NULL; | |
5202 | } | |
5203 | ||
5204 | ||
5205 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5206 | PyObject *resultobj; | |
5207 | wxSingleInstanceChecker *result; | |
5208 | char *kwnames[] = { | |
5209 | NULL | |
5210 | }; | |
5211 | ||
5212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5213 | { | |
5214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5215 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5216 | ||
5217 | wxPyEndAllowThreads(__tstate); | |
5218 | if (PyErr_Occurred()) SWIG_fail; | |
5219 | } | |
5220 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5221 | return resultobj; | |
5222 | fail: | |
5223 | return NULL; | |
5224 | } | |
5225 | ||
5226 | ||
5227 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5228 | PyObject *resultobj; | |
5229 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5230 | PyObject * obj0 = 0 ; | |
5231 | char *kwnames[] = { | |
5232 | (char *) "self", NULL | |
5233 | }; | |
5234 | ||
5235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5237 | { | |
5238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5239 | delete arg1; | |
5240 | ||
5241 | wxPyEndAllowThreads(__tstate); | |
5242 | if (PyErr_Occurred()) SWIG_fail; | |
5243 | } | |
5244 | Py_INCREF(Py_None); resultobj = Py_None; | |
5245 | return resultobj; | |
5246 | fail: | |
5247 | return NULL; | |
5248 | } | |
5249 | ||
5250 | ||
5251 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5252 | PyObject *resultobj; | |
5253 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5254 | wxString *arg2 = 0 ; | |
5255 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5256 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5257 | bool result; | |
423f194a RD |
5258 | bool temp2 = False ; |
5259 | bool temp3 = False ; | |
d14a1e28 RD |
5260 | PyObject * obj0 = 0 ; |
5261 | PyObject * obj1 = 0 ; | |
5262 | PyObject * obj2 = 0 ; | |
5263 | char *kwnames[] = { | |
5264 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5265 | }; | |
5266 | ||
5267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5269 | { | |
5270 | arg2 = wxString_in_helper(obj1); | |
5271 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5272 | temp2 = True; |
d14a1e28 RD |
5273 | } |
5274 | if (obj2) { | |
5275 | { | |
5276 | arg3 = wxString_in_helper(obj2); | |
5277 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5278 | temp3 = True; |
d14a1e28 RD |
5279 | } |
5280 | } | |
5281 | { | |
5282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5283 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5284 | ||
5285 | wxPyEndAllowThreads(__tstate); | |
5286 | if (PyErr_Occurred()) SWIG_fail; | |
5287 | } | |
5288 | resultobj = PyInt_FromLong((long)result); | |
5289 | { | |
5290 | if (temp2) | |
5291 | delete arg2; | |
5292 | } | |
5293 | { | |
5294 | if (temp3) | |
5295 | delete arg3; | |
5296 | } | |
5297 | return resultobj; | |
5298 | fail: | |
5299 | { | |
5300 | if (temp2) | |
5301 | delete arg2; | |
5302 | } | |
5303 | { | |
5304 | if (temp3) | |
5305 | delete arg3; | |
5306 | } | |
5307 | return NULL; | |
5308 | } | |
5309 | ||
5310 | ||
5311 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5312 | PyObject *resultobj; | |
5313 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5314 | bool result; | |
5315 | PyObject * obj0 = 0 ; | |
5316 | char *kwnames[] = { | |
5317 | (char *) "self", NULL | |
5318 | }; | |
5319 | ||
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5322 | { | |
5323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5324 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5325 | ||
5326 | wxPyEndAllowThreads(__tstate); | |
5327 | if (PyErr_Occurred()) SWIG_fail; | |
5328 | } | |
5329 | resultobj = PyInt_FromLong((long)result); | |
5330 | return resultobj; | |
5331 | fail: | |
5332 | return NULL; | |
5333 | } | |
5334 | ||
5335 | ||
5336 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5337 | PyObject *obj; | |
5338 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5339 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5340 | Py_INCREF(obj); | |
5341 | return Py_BuildValue((char *)""); | |
5342 | } | |
5343 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5344 | PyObject *resultobj; | |
5345 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5346 | wxDC *arg2 = 0 ; | |
5347 | int arg3 ; | |
5348 | PyObject * obj0 = 0 ; | |
5349 | PyObject * obj1 = 0 ; | |
5350 | char *kwnames[] = { | |
5351 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5352 | }; | |
5353 | ||
5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DrawWindowOnDC",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5356 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5357 | if (arg2 == NULL) { | |
5358 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5359 | } | |
5360 | { | |
5361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5362 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5363 | ||
5364 | wxPyEndAllowThreads(__tstate); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | Py_INCREF(Py_None); resultobj = Py_None; | |
5368 | return resultobj; | |
5369 | fail: | |
5370 | return NULL; | |
5371 | } | |
5372 | ||
5373 | ||
5374 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5375 | PyObject *resultobj; | |
5376 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5377 | PyObject * obj0 = 0 ; | |
5378 | char *kwnames[] = { | |
5379 | (char *) "self", NULL | |
5380 | }; | |
5381 | ||
5382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5384 | { | |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5386 | delete arg1; | |
5387 | ||
5388 | wxPyEndAllowThreads(__tstate); | |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
5391 | Py_INCREF(Py_None); resultobj = Py_None; | |
5392 | return resultobj; | |
5393 | fail: | |
5394 | return NULL; | |
5395 | } | |
5396 | ||
5397 | ||
5398 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5399 | PyObject *resultobj; | |
5400 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5401 | wxString result; | |
5402 | PyObject * obj0 = 0 ; | |
5403 | char *kwnames[] = { | |
5404 | (char *) "self", NULL | |
5405 | }; | |
5406 | ||
5407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5409 | { | |
5410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5411 | result = (arg1)->GetTip(); | |
5412 | ||
5413 | wxPyEndAllowThreads(__tstate); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
5416 | { | |
5417 | #if wxUSE_UNICODE | |
5418 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5419 | #else | |
5420 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5421 | #endif | |
5422 | } | |
5423 | return resultobj; | |
5424 | fail: | |
5425 | return NULL; | |
5426 | } | |
5427 | ||
5428 | ||
5429 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5430 | PyObject *resultobj; | |
5431 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5432 | size_t result; | |
5433 | PyObject * obj0 = 0 ; | |
5434 | char *kwnames[] = { | |
5435 | (char *) "self", NULL | |
5436 | }; | |
5437 | ||
5438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5440 | { | |
5441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5442 | result = (size_t)(arg1)->GetCurrentTip(); | |
5443 | ||
5444 | wxPyEndAllowThreads(__tstate); | |
5445 | if (PyErr_Occurred()) SWIG_fail; | |
5446 | } | |
5447 | resultobj = PyInt_FromLong((long)result); | |
5448 | return resultobj; | |
5449 | fail: | |
5450 | return NULL; | |
5451 | } | |
5452 | ||
5453 | ||
5454 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5455 | PyObject *resultobj; | |
5456 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5457 | wxString *arg2 = 0 ; | |
5458 | wxString result; | |
423f194a | 5459 | bool temp2 = False ; |
d14a1e28 RD |
5460 | PyObject * obj0 = 0 ; |
5461 | PyObject * obj1 = 0 ; | |
5462 | char *kwnames[] = { | |
5463 | (char *) "self",(char *) "tip", NULL | |
5464 | }; | |
5465 | ||
5466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5468 | { | |
5469 | arg2 = wxString_in_helper(obj1); | |
5470 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5471 | temp2 = True; |
d14a1e28 RD |
5472 | } |
5473 | { | |
5474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5475 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5476 | ||
5477 | wxPyEndAllowThreads(__tstate); | |
5478 | if (PyErr_Occurred()) SWIG_fail; | |
5479 | } | |
5480 | { | |
5481 | #if wxUSE_UNICODE | |
5482 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5483 | #else | |
5484 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5485 | #endif | |
5486 | } | |
5487 | { | |
5488 | if (temp2) | |
5489 | delete arg2; | |
5490 | } | |
5491 | return resultobj; | |
5492 | fail: | |
5493 | { | |
5494 | if (temp2) | |
5495 | delete arg2; | |
5496 | } | |
5497 | return NULL; | |
5498 | } | |
5499 | ||
5500 | ||
5501 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5502 | PyObject *obj; | |
5503 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5504 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5505 | Py_INCREF(obj); | |
5506 | return Py_BuildValue((char *)""); | |
5507 | } | |
5508 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5509 | PyObject *resultobj; | |
5510 | size_t arg1 ; | |
5511 | wxPyTipProvider *result; | |
5512 | PyObject * obj0 = 0 ; | |
5513 | char *kwnames[] = { | |
5514 | (char *) "currentTip", NULL | |
5515 | }; | |
5516 | ||
5517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
5518 | arg1 = (size_t) PyInt_AsLong(obj0); | |
5519 | if (PyErr_Occurred()) SWIG_fail; | |
5520 | { | |
5521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5522 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5523 | ||
5524 | wxPyEndAllowThreads(__tstate); | |
5525 | if (PyErr_Occurred()) SWIG_fail; | |
5526 | } | |
5527 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5528 | return resultobj; | |
5529 | fail: | |
5530 | return NULL; | |
5531 | } | |
5532 | ||
5533 | ||
5534 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5535 | PyObject *resultobj; | |
5536 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5537 | PyObject *arg2 = (PyObject *) 0 ; | |
5538 | PyObject *arg3 = (PyObject *) 0 ; | |
5539 | PyObject * obj0 = 0 ; | |
5540 | PyObject * obj1 = 0 ; | |
5541 | PyObject * obj2 = 0 ; | |
5542 | char *kwnames[] = { | |
5543 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5544 | }; | |
5545 | ||
5546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5548 | arg2 = obj1; | |
5549 | arg3 = obj2; | |
5550 | { | |
5551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5552 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5553 | ||
5554 | wxPyEndAllowThreads(__tstate); | |
5555 | if (PyErr_Occurred()) SWIG_fail; | |
5556 | } | |
5557 | Py_INCREF(Py_None); resultobj = Py_None; | |
5558 | return resultobj; | |
5559 | fail: | |
5560 | return NULL; | |
5561 | } | |
5562 | ||
5563 | ||
5564 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5565 | PyObject *obj; | |
5566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5567 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5568 | Py_INCREF(obj); | |
5569 | return Py_BuildValue((char *)""); | |
5570 | } | |
5571 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5572 | PyObject *resultobj; | |
5573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5574 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
423f194a | 5575 | bool arg3 = (bool) True ; |
d14a1e28 RD |
5576 | bool result; |
5577 | PyObject * obj0 = 0 ; | |
5578 | PyObject * obj1 = 0 ; | |
5579 | PyObject * obj2 = 0 ; | |
5580 | char *kwnames[] = { | |
5581 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
5582 | }; | |
5583 | ||
5584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5586 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5587 | if (obj2) { | |
5588 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5589 | if (PyErr_Occurred()) SWIG_fail; | |
5590 | } | |
5591 | { | |
5592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5593 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
5594 | ||
5595 | wxPyEndAllowThreads(__tstate); | |
5596 | if (PyErr_Occurred()) SWIG_fail; | |
5597 | } | |
5598 | resultobj = PyInt_FromLong((long)result); | |
5599 | return resultobj; | |
5600 | fail: | |
5601 | return NULL; | |
5602 | } | |
5603 | ||
5604 | ||
5605 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5606 | PyObject *resultobj; | |
5607 | wxString *arg1 = 0 ; | |
5608 | size_t arg2 ; | |
5609 | wxTipProvider *result; | |
423f194a | 5610 | bool temp1 = False ; |
d14a1e28 RD |
5611 | PyObject * obj0 = 0 ; |
5612 | PyObject * obj1 = 0 ; | |
5613 | char *kwnames[] = { | |
5614 | (char *) "filename",(char *) "currentTip", NULL | |
5615 | }; | |
5616 | ||
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
5618 | { | |
5619 | arg1 = wxString_in_helper(obj0); | |
5620 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5621 | temp1 = True; |
d14a1e28 RD |
5622 | } |
5623 | arg2 = (size_t) PyInt_AsLong(obj1); | |
5624 | if (PyErr_Occurred()) SWIG_fail; | |
5625 | { | |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
5628 | ||
5629 | wxPyEndAllowThreads(__tstate); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
5632 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
5633 | { | |
5634 | if (temp1) | |
5635 | delete arg1; | |
5636 | } | |
5637 | return resultobj; | |
5638 | fail: | |
5639 | { | |
5640 | if (temp1) | |
5641 | delete arg1; | |
5642 | } | |
5643 | return NULL; | |
5644 | } | |
5645 | ||
5646 | ||
5647 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5648 | PyObject *resultobj; | |
5649 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
5650 | int arg2 = (int) -1 ; | |
5651 | wxPyTimer *result; | |
5652 | PyObject * obj0 = 0 ; | |
5653 | char *kwnames[] = { | |
5654 | (char *) "owner",(char *) "id", NULL | |
5655 | }; | |
5656 | ||
5657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Timer",kwnames,&obj0,&arg2)) goto fail; | |
5658 | if (obj0) { | |
5659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5660 | } | |
5661 | { | |
5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5663 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
5664 | ||
5665 | wxPyEndAllowThreads(__tstate); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
5668 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
5669 | return resultobj; | |
5670 | fail: | |
5671 | return NULL; | |
5672 | } | |
5673 | ||
5674 | ||
5675 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5676 | PyObject *resultobj; | |
5677 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5678 | PyObject * obj0 = 0 ; | |
5679 | char *kwnames[] = { | |
5680 | (char *) "self", NULL | |
5681 | }; | |
5682 | ||
5683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
5684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5685 | { | |
5686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5687 | delete arg1; | |
5688 | ||
5689 | wxPyEndAllowThreads(__tstate); | |
5690 | if (PyErr_Occurred()) SWIG_fail; | |
5691 | } | |
5692 | Py_INCREF(Py_None); resultobj = Py_None; | |
5693 | return resultobj; | |
5694 | fail: | |
5695 | return NULL; | |
5696 | } | |
5697 | ||
5698 | ||
5699 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject *resultobj; | |
5701 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5702 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
5703 | int arg3 = (int) -1 ; | |
5704 | PyObject * obj0 = 0 ; | |
5705 | PyObject * obj1 = 0 ; | |
5706 | char *kwnames[] = { | |
5707 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
5708 | }; | |
5709 | ||
5710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Timer_SetOwner",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5712 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5713 | { | |
5714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5715 | (arg1)->SetOwner(arg2,arg3); | |
5716 | ||
5717 | wxPyEndAllowThreads(__tstate); | |
5718 | if (PyErr_Occurred()) SWIG_fail; | |
5719 | } | |
5720 | Py_INCREF(Py_None); resultobj = Py_None; | |
5721 | return resultobj; | |
5722 | fail: | |
5723 | return NULL; | |
5724 | } | |
5725 | ||
5726 | ||
5727 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5728 | PyObject *resultobj; | |
5729 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5730 | int arg2 = (int) -1 ; | |
423f194a | 5731 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5732 | bool result; |
5733 | PyObject * obj0 = 0 ; | |
5734 | PyObject * obj2 = 0 ; | |
5735 | char *kwnames[] = { | |
5736 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
5737 | }; | |
5738 | ||
5739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Timer_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
5740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5741 | if (obj2) { | |
5742 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | } | |
5745 | { | |
5746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5747 | result = (bool)(arg1)->Start(arg2,arg3); | |
5748 | ||
5749 | wxPyEndAllowThreads(__tstate); | |
5750 | if (PyErr_Occurred()) SWIG_fail; | |
5751 | } | |
5752 | resultobj = PyInt_FromLong((long)result); | |
5753 | return resultobj; | |
5754 | fail: | |
5755 | return NULL; | |
5756 | } | |
5757 | ||
5758 | ||
5759 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject *resultobj; | |
5761 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5762 | PyObject * obj0 = 0 ; | |
5763 | char *kwnames[] = { | |
5764 | (char *) "self", NULL | |
5765 | }; | |
5766 | ||
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",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 | (arg1)->Stop(); | |
5772 | ||
5773 | wxPyEndAllowThreads(__tstate); | |
5774 | if (PyErr_Occurred()) SWIG_fail; | |
5775 | } | |
5776 | Py_INCREF(Py_None); resultobj = Py_None; | |
5777 | return resultobj; | |
5778 | fail: | |
5779 | return NULL; | |
5780 | } | |
5781 | ||
5782 | ||
5783 | static PyObject *_wrap_Timer_Notify(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5784 | PyObject *resultobj; | |
5785 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5786 | PyObject * obj0 = 0 ; | |
5787 | char *kwnames[] = { | |
5788 | (char *) "self", NULL | |
5789 | }; | |
5790 | ||
5791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Notify",kwnames,&obj0)) goto fail; | |
5792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5793 | { | |
5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5795 | (arg1)->Notify(); | |
5796 | ||
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
5800 | Py_INCREF(Py_None); resultobj = Py_None; | |
5801 | return resultobj; | |
5802 | fail: | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
5807 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5808 | PyObject *resultobj; | |
5809 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5810 | bool result; | |
5811 | PyObject * obj0 = 0 ; | |
5812 | char *kwnames[] = { | |
5813 | (char *) "self", NULL | |
5814 | }; | |
5815 | ||
5816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
5817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5818 | { | |
5819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5820 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
5821 | ||
5822 | wxPyEndAllowThreads(__tstate); | |
5823 | if (PyErr_Occurred()) SWIG_fail; | |
5824 | } | |
5825 | resultobj = PyInt_FromLong((long)result); | |
5826 | return resultobj; | |
5827 | fail: | |
5828 | return NULL; | |
5829 | } | |
5830 | ||
5831 | ||
5832 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject *resultobj; | |
5834 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5835 | int result; | |
5836 | PyObject * obj0 = 0 ; | |
5837 | char *kwnames[] = { | |
5838 | (char *) "self", NULL | |
5839 | }; | |
5840 | ||
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
5842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5843 | { | |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
5846 | ||
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
5850 | resultobj = PyInt_FromLong((long)result); | |
5851 | return resultobj; | |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5858 | PyObject *resultobj; | |
5859 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5860 | bool result; | |
5861 | PyObject * obj0 = 0 ; | |
5862 | char *kwnames[] = { | |
5863 | (char *) "self", NULL | |
5864 | }; | |
5865 | ||
5866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
5867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5868 | { | |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5870 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
5871 | ||
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | } | |
5875 | resultobj = PyInt_FromLong((long)result); | |
5876 | return resultobj; | |
5877 | fail: | |
5878 | return NULL; | |
5879 | } | |
5880 | ||
5881 | ||
5882 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { | |
5883 | PyObject *obj; | |
5884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5885 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
5886 | Py_INCREF(obj); | |
5887 | return Py_BuildValue((char *)""); | |
5888 | } | |
5889 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5890 | PyObject *resultobj; | |
5891 | int arg1 = (int) 0 ; | |
5892 | int arg2 = (int) 0 ; | |
5893 | wxTimerEvent *result; | |
5894 | char *kwnames[] = { | |
5895 | (char *) "timerid",(char *) "interval", NULL | |
5896 | }; | |
5897 | ||
5898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TimerEvent",kwnames,&arg1,&arg2)) goto fail; | |
5899 | { | |
5900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5901 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
5902 | ||
5903 | wxPyEndAllowThreads(__tstate); | |
5904 | if (PyErr_Occurred()) SWIG_fail; | |
5905 | } | |
5906 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
5907 | return resultobj; | |
5908 | fail: | |
5909 | return NULL; | |
5910 | } | |
5911 | ||
5912 | ||
5913 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5914 | PyObject *resultobj; | |
5915 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
5916 | int result; | |
5917 | PyObject * obj0 = 0 ; | |
5918 | char *kwnames[] = { | |
5919 | (char *) "self", NULL | |
5920 | }; | |
5921 | ||
5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
5923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5924 | { | |
5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5926 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
5927 | ||
5928 | wxPyEndAllowThreads(__tstate); | |
5929 | if (PyErr_Occurred()) SWIG_fail; | |
5930 | } | |
5931 | resultobj = PyInt_FromLong((long)result); | |
5932 | return resultobj; | |
5933 | fail: | |
5934 | return NULL; | |
5935 | } | |
5936 | ||
5937 | ||
5938 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
5939 | PyObject *obj; | |
5940 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5941 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
5942 | Py_INCREF(obj); | |
5943 | return Py_BuildValue((char *)""); | |
5944 | } | |
5945 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
5946 | PyObject *resultobj; | |
5947 | wxTimer *arg1 = 0 ; | |
5948 | wxTimerRunner *result; | |
5949 | PyObject * obj0 = 0 ; | |
5950 | ||
5951 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
5952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5953 | if (arg1 == NULL) { | |
5954 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5955 | } | |
5956 | { | |
5957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5958 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
5959 | ||
5960 | wxPyEndAllowThreads(__tstate); | |
5961 | if (PyErr_Occurred()) SWIG_fail; | |
5962 | } | |
5963 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
5964 | return resultobj; | |
5965 | fail: | |
5966 | return NULL; | |
5967 | } | |
5968 | ||
5969 | ||
5970 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
5971 | PyObject *resultobj; | |
5972 | wxTimer *arg1 = 0 ; | |
5973 | int arg2 ; | |
423f194a | 5974 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5975 | wxTimerRunner *result; |
5976 | PyObject * obj0 = 0 ; | |
5977 | PyObject * obj2 = 0 ; | |
5978 | ||
5979 | if(!PyArg_ParseTuple(args,(char *)"Oi|O:new_TimerRunner",&obj0,&arg2,&obj2)) goto fail; | |
5980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5981 | if (arg1 == NULL) { | |
5982 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5983 | } | |
5984 | if (obj2) { | |
5985 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5986 | if (PyErr_Occurred()) SWIG_fail; | |
5987 | } | |
5988 | { | |
5989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5990 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
5991 | ||
5992 | wxPyEndAllowThreads(__tstate); | |
5993 | if (PyErr_Occurred()) SWIG_fail; | |
5994 | } | |
5995 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
5996 | return resultobj; | |
5997 | fail: | |
5998 | return NULL; | |
5999 | } | |
6000 | ||
6001 | ||
6002 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6003 | int argc; | |
6004 | PyObject *argv[4]; | |
6005 | int ii; | |
6006 | ||
6007 | argc = PyObject_Length(args); | |
6008 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6009 | argv[ii] = PyTuple_GetItem(args,ii); | |
6010 | } | |
6011 | if (argc == 1) { | |
6012 | int _v; | |
6013 | { | |
6014 | void *ptr; | |
6015 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6016 | _v = 0; | |
6017 | PyErr_Clear(); | |
6018 | } else { | |
6019 | _v = 1; | |
6020 | } | |
6021 | } | |
6022 | if (_v) { | |
6023 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6024 | } | |
6025 | } | |
6026 | if ((argc >= 2) && (argc <= 3)) { | |
6027 | int _v; | |
6028 | { | |
6029 | void *ptr; | |
6030 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6031 | _v = 0; | |
6032 | PyErr_Clear(); | |
6033 | } else { | |
6034 | _v = 1; | |
6035 | } | |
6036 | } | |
6037 | if (_v) { | |
6038 | { | |
6039 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
6040 | } | |
6041 | if (_v) { | |
6042 | if (argc <= 2) { | |
6043 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6044 | } | |
6045 | { | |
6046 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
6047 | } | |
6048 | if (_v) { | |
6049 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6050 | } | |
6051 | } | |
6052 | } | |
6053 | } | |
6054 | ||
6055 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6056 | return NULL; | |
6057 | } | |
6058 | ||
6059 | ||
6060 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6061 | PyObject *resultobj; | |
6062 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6063 | PyObject * obj0 = 0 ; | |
6064 | char *kwnames[] = { | |
6065 | (char *) "self", NULL | |
6066 | }; | |
6067 | ||
6068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6070 | { | |
6071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6072 | delete arg1; | |
6073 | ||
6074 | wxPyEndAllowThreads(__tstate); | |
6075 | if (PyErr_Occurred()) SWIG_fail; | |
6076 | } | |
6077 | Py_INCREF(Py_None); resultobj = Py_None; | |
6078 | return resultobj; | |
6079 | fail: | |
6080 | return NULL; | |
6081 | } | |
6082 | ||
6083 | ||
6084 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6085 | PyObject *resultobj; | |
6086 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6087 | int arg2 ; | |
423f194a | 6088 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6089 | PyObject * obj0 = 0 ; |
6090 | PyObject * obj2 = 0 ; | |
6091 | char *kwnames[] = { | |
6092 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6093 | }; | |
6094 | ||
6095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:TimerRunner_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6097 | if (obj2) { | |
6098 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
6101 | { | |
6102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6103 | (arg1)->Start(arg2,arg3); | |
6104 | ||
6105 | wxPyEndAllowThreads(__tstate); | |
6106 | if (PyErr_Occurred()) SWIG_fail; | |
6107 | } | |
6108 | Py_INCREF(Py_None); resultobj = Py_None; | |
6109 | return resultobj; | |
6110 | fail: | |
6111 | return NULL; | |
6112 | } | |
6113 | ||
6114 | ||
6115 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6116 | PyObject *obj; | |
6117 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6118 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6119 | Py_INCREF(obj); | |
6120 | return Py_BuildValue((char *)""); | |
6121 | } | |
6122 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6123 | PyObject *resultobj; | |
6124 | wxLog *result; | |
6125 | char *kwnames[] = { | |
6126 | NULL | |
6127 | }; | |
6128 | ||
6129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6130 | { | |
6131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6132 | result = (wxLog *)new wxLog(); | |
6133 | ||
6134 | wxPyEndAllowThreads(__tstate); | |
6135 | if (PyErr_Occurred()) SWIG_fail; | |
6136 | } | |
6137 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6138 | return resultobj; | |
6139 | fail: | |
6140 | return NULL; | |
6141 | } | |
6142 | ||
6143 | ||
6144 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6145 | PyObject *resultobj; | |
6146 | bool result; | |
6147 | char *kwnames[] = { | |
6148 | NULL | |
6149 | }; | |
6150 | ||
6151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6152 | { | |
6153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6154 | result = (bool)wxLog::IsEnabled(); | |
6155 | ||
6156 | wxPyEndAllowThreads(__tstate); | |
6157 | if (PyErr_Occurred()) SWIG_fail; | |
6158 | } | |
6159 | resultobj = PyInt_FromLong((long)result); | |
6160 | return resultobj; | |
6161 | fail: | |
6162 | return NULL; | |
6163 | } | |
6164 | ||
6165 | ||
6166 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6167 | PyObject *resultobj; | |
423f194a | 6168 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6169 | bool result; |
6170 | PyObject * obj0 = 0 ; | |
6171 | char *kwnames[] = { | |
6172 | (char *) "doIt", NULL | |
6173 | }; | |
6174 | ||
6175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6176 | if (obj0) { | |
6177 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6178 | if (PyErr_Occurred()) SWIG_fail; | |
6179 | } | |
6180 | { | |
6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6182 | result = (bool)wxLog::EnableLogging(arg1); | |
6183 | ||
6184 | wxPyEndAllowThreads(__tstate); | |
6185 | if (PyErr_Occurred()) SWIG_fail; | |
6186 | } | |
6187 | resultobj = PyInt_FromLong((long)result); | |
6188 | return resultobj; | |
6189 | fail: | |
6190 | return NULL; | |
6191 | } | |
6192 | ||
6193 | ||
6194 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6195 | PyObject *resultobj; | |
6196 | wxLogLevel arg1 ; | |
6197 | wxChar *arg2 = (wxChar *) 0 ; | |
6198 | time_t arg3 ; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | PyObject * obj1 = 0 ; | |
6201 | PyObject * obj2 = 0 ; | |
6202 | char *kwnames[] = { | |
6203 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6204 | }; | |
6205 | ||
6206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6207 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6210 | arg3 = (time_t) PyInt_AsLong(obj2); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | { | |
6213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6214 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6215 | ||
6216 | wxPyEndAllowThreads(__tstate); | |
6217 | if (PyErr_Occurred()) SWIG_fail; | |
6218 | } | |
6219 | Py_INCREF(Py_None); resultobj = Py_None; | |
6220 | return resultobj; | |
6221 | fail: | |
6222 | return NULL; | |
6223 | } | |
6224 | ||
6225 | ||
6226 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject *resultobj; | |
6228 | wxLog *arg1 = (wxLog *) 0 ; | |
6229 | PyObject * obj0 = 0 ; | |
6230 | char *kwnames[] = { | |
6231 | (char *) "self", NULL | |
6232 | }; | |
6233 | ||
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6236 | { | |
6237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6238 | (arg1)->Flush(); | |
6239 | ||
6240 | wxPyEndAllowThreads(__tstate); | |
6241 | if (PyErr_Occurred()) SWIG_fail; | |
6242 | } | |
6243 | Py_INCREF(Py_None); resultobj = Py_None; | |
6244 | return resultobj; | |
6245 | fail: | |
6246 | return NULL; | |
6247 | } | |
6248 | ||
6249 | ||
6250 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6251 | PyObject *resultobj; | |
6252 | char *kwnames[] = { | |
6253 | NULL | |
6254 | }; | |
6255 | ||
6256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6257 | { | |
6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6259 | wxLog::FlushActive(); | |
6260 | ||
6261 | wxPyEndAllowThreads(__tstate); | |
6262 | if (PyErr_Occurred()) SWIG_fail; | |
6263 | } | |
6264 | Py_INCREF(Py_None); resultobj = Py_None; | |
6265 | return resultobj; | |
6266 | fail: | |
6267 | return NULL; | |
6268 | } | |
6269 | ||
6270 | ||
6271 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6272 | PyObject *resultobj; | |
6273 | wxLog *result; | |
6274 | char *kwnames[] = { | |
6275 | NULL | |
6276 | }; | |
6277 | ||
6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6279 | { | |
6280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6281 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6282 | ||
6283 | wxPyEndAllowThreads(__tstate); | |
6284 | if (PyErr_Occurred()) SWIG_fail; | |
6285 | } | |
6286 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6287 | return resultobj; | |
6288 | fail: | |
6289 | return NULL; | |
6290 | } | |
6291 | ||
6292 | ||
6293 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6294 | PyObject *resultobj; | |
6295 | wxLog *arg1 = (wxLog *) 0 ; | |
6296 | wxLog *result; | |
6297 | PyObject * obj0 = 0 ; | |
6298 | char *kwnames[] = { | |
6299 | (char *) "pLogger", NULL | |
6300 | }; | |
6301 | ||
6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6303 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6304 | { | |
6305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6306 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6307 | ||
6308 | wxPyEndAllowThreads(__tstate); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
6310 | } | |
6311 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6312 | return resultobj; | |
6313 | fail: | |
6314 | return NULL; | |
6315 | } | |
6316 | ||
6317 | ||
6318 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6319 | PyObject *resultobj; | |
6320 | char *kwnames[] = { | |
6321 | NULL | |
6322 | }; | |
6323 | ||
6324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6325 | { | |
6326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6327 | wxLog::Suspend(); | |
6328 | ||
6329 | wxPyEndAllowThreads(__tstate); | |
6330 | if (PyErr_Occurred()) SWIG_fail; | |
6331 | } | |
6332 | Py_INCREF(Py_None); resultobj = Py_None; | |
6333 | return resultobj; | |
6334 | fail: | |
6335 | return NULL; | |
6336 | } | |
6337 | ||
6338 | ||
6339 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6340 | PyObject *resultobj; | |
6341 | char *kwnames[] = { | |
6342 | NULL | |
6343 | }; | |
6344 | ||
6345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6346 | { | |
6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6348 | wxLog::Resume(); | |
6349 | ||
6350 | wxPyEndAllowThreads(__tstate); | |
6351 | if (PyErr_Occurred()) SWIG_fail; | |
6352 | } | |
6353 | Py_INCREF(Py_None); resultobj = Py_None; | |
6354 | return resultobj; | |
6355 | fail: | |
6356 | return NULL; | |
6357 | } | |
6358 | ||
6359 | ||
6360 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6361 | PyObject *resultobj; | |
423f194a | 6362 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6363 | PyObject * obj0 = 0 ; |
6364 | char *kwnames[] = { | |
6365 | (char *) "bVerbose", NULL | |
6366 | }; | |
6367 | ||
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6369 | if (obj0) { | |
6370 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
6372 | } | |
6373 | { | |
6374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6375 | wxLog::SetVerbose(arg1); | |
6376 | ||
6377 | wxPyEndAllowThreads(__tstate); | |
6378 | if (PyErr_Occurred()) SWIG_fail; | |
6379 | } | |
6380 | Py_INCREF(Py_None); resultobj = Py_None; | |
6381 | return resultobj; | |
6382 | fail: | |
6383 | return NULL; | |
6384 | } | |
6385 | ||
6386 | ||
6387 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6388 | PyObject *resultobj; | |
6389 | wxLogLevel arg1 ; | |
6390 | PyObject * obj0 = 0 ; | |
6391 | char *kwnames[] = { | |
6392 | (char *) "logLevel", NULL | |
6393 | }; | |
6394 | ||
6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
6396 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6397 | if (PyErr_Occurred()) SWIG_fail; | |
6398 | { | |
6399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6400 | wxLog::SetLogLevel(arg1); | |
6401 | ||
6402 | wxPyEndAllowThreads(__tstate); | |
6403 | if (PyErr_Occurred()) SWIG_fail; | |
6404 | } | |
6405 | Py_INCREF(Py_None); resultobj = Py_None; | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj; | |
6414 | char *kwnames[] = { | |
6415 | NULL | |
6416 | }; | |
6417 | ||
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6419 | { | |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6421 | wxLog::DontCreateOnDemand(); | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
6426 | Py_INCREF(Py_None); resultobj = Py_None; | |
6427 | return resultobj; | |
6428 | fail: | |
6429 | return NULL; | |
6430 | } | |
6431 | ||
6432 | ||
6433 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6434 | PyObject *resultobj; | |
6435 | wxTraceMask arg1 ; | |
6436 | PyObject * obj0 = 0 ; | |
6437 | char *kwnames[] = { | |
6438 | (char *) "ulMask", NULL | |
6439 | }; | |
6440 | ||
6441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
6442 | arg1 = (wxTraceMask) PyInt_AsLong(obj0); | |
6443 | if (PyErr_Occurred()) SWIG_fail; | |
6444 | { | |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | wxLog::SetTraceMask(arg1); | |
6447 | ||
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | Py_INCREF(Py_None); resultobj = Py_None; | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
6455 | } | |
6456 | ||
6457 | ||
6458 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6459 | PyObject *resultobj; | |
6460 | wxString *arg1 = 0 ; | |
423f194a | 6461 | bool temp1 = False ; |
d14a1e28 RD |
6462 | PyObject * obj0 = 0 ; |
6463 | char *kwnames[] = { | |
6464 | (char *) "str", NULL | |
6465 | }; | |
6466 | ||
6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
6468 | { | |
6469 | arg1 = wxString_in_helper(obj0); | |
6470 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6471 | temp1 = True; |
d14a1e28 RD |
6472 | } |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | wxLog::AddTraceMask((wxString const &)*arg1); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
6480 | Py_INCREF(Py_None); resultobj = Py_None; | |
6481 | { | |
6482 | if (temp1) | |
6483 | delete arg1; | |
6484 | } | |
6485 | return resultobj; | |
6486 | fail: | |
6487 | { | |
6488 | if (temp1) | |
6489 | delete arg1; | |
6490 | } | |
6491 | return NULL; | |
6492 | } | |
6493 | ||
6494 | ||
6495 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6496 | PyObject *resultobj; | |
6497 | wxString *arg1 = 0 ; | |
423f194a | 6498 | bool temp1 = False ; |
d14a1e28 RD |
6499 | PyObject * obj0 = 0 ; |
6500 | char *kwnames[] = { | |
6501 | (char *) "str", NULL | |
6502 | }; | |
6503 | ||
6504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
6505 | { | |
6506 | arg1 = wxString_in_helper(obj0); | |
6507 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6508 | temp1 = True; |
d14a1e28 RD |
6509 | } |
6510 | { | |
6511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6512 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
6513 | ||
6514 | wxPyEndAllowThreads(__tstate); | |
6515 | if (PyErr_Occurred()) SWIG_fail; | |
6516 | } | |
6517 | Py_INCREF(Py_None); resultobj = Py_None; | |
6518 | { | |
6519 | if (temp1) | |
6520 | delete arg1; | |
6521 | } | |
6522 | return resultobj; | |
6523 | fail: | |
6524 | { | |
6525 | if (temp1) | |
6526 | delete arg1; | |
6527 | } | |
6528 | return NULL; | |
6529 | } | |
6530 | ||
6531 | ||
6532 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6533 | PyObject *resultobj; | |
6534 | char *kwnames[] = { | |
6535 | NULL | |
6536 | }; | |
6537 | ||
6538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
6539 | { | |
6540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6541 | wxLog::ClearTraceMasks(); | |
6542 | ||
6543 | wxPyEndAllowThreads(__tstate); | |
6544 | if (PyErr_Occurred()) SWIG_fail; | |
6545 | } | |
6546 | Py_INCREF(Py_None); resultobj = Py_None; | |
6547 | return resultobj; | |
6548 | fail: | |
6549 | return NULL; | |
6550 | } | |
6551 | ||
6552 | ||
6553 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6554 | PyObject *resultobj; | |
6555 | wxArrayString *result; | |
6556 | char *kwnames[] = { | |
6557 | NULL | |
6558 | }; | |
6559 | ||
6560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
6561 | { | |
6562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6563 | { | |
6564 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
6565 | result = (wxArrayString *) &_result_ref; | |
6566 | } | |
6567 | ||
6568 | wxPyEndAllowThreads(__tstate); | |
6569 | if (PyErr_Occurred()) SWIG_fail; | |
6570 | } | |
6571 | { | |
6572 | resultobj = wxArrayString2PyList_helper(*result); | |
6573 | } | |
6574 | return resultobj; | |
6575 | fail: | |
6576 | return NULL; | |
6577 | } | |
6578 | ||
6579 | ||
6580 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6581 | PyObject *resultobj; | |
6582 | wxChar *arg1 = (wxChar *) 0 ; | |
6583 | PyObject * obj0 = 0 ; | |
6584 | char *kwnames[] = { | |
6585 | (char *) "ts", NULL | |
6586 | }; | |
6587 | ||
6588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
6589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6590 | { | |
6591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6592 | wxLog::SetTimestamp((wxChar const *)arg1); | |
6593 | ||
6594 | wxPyEndAllowThreads(__tstate); | |
6595 | if (PyErr_Occurred()) SWIG_fail; | |
6596 | } | |
6597 | Py_INCREF(Py_None); resultobj = Py_None; | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6605 | PyObject *resultobj; | |
6606 | bool result; | |
6607 | char *kwnames[] = { | |
6608 | NULL | |
6609 | }; | |
6610 | ||
6611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
6612 | { | |
6613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6614 | result = (bool)wxLog::GetVerbose(); | |
6615 | ||
6616 | wxPyEndAllowThreads(__tstate); | |
6617 | if (PyErr_Occurred()) SWIG_fail; | |
6618 | } | |
6619 | resultobj = PyInt_FromLong((long)result); | |
6620 | return resultobj; | |
6621 | fail: | |
6622 | return NULL; | |
6623 | } | |
6624 | ||
6625 | ||
6626 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6627 | PyObject *resultobj; | |
6628 | wxTraceMask result; | |
6629 | char *kwnames[] = { | |
6630 | NULL | |
6631 | }; | |
6632 | ||
6633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
6634 | { | |
6635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6636 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
6637 | ||
6638 | wxPyEndAllowThreads(__tstate); | |
6639 | if (PyErr_Occurred()) SWIG_fail; | |
6640 | } | |
6641 | resultobj = PyInt_FromLong((long)result); | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | return NULL; | |
6645 | } | |
6646 | ||
6647 | ||
6648 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6649 | PyObject *resultobj; | |
6650 | wxChar *arg1 = (wxChar *) 0 ; | |
6651 | bool result; | |
6652 | PyObject * obj0 = 0 ; | |
6653 | char *kwnames[] = { | |
6654 | (char *) "mask", NULL | |
6655 | }; | |
6656 | ||
6657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
6658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6659 | { | |
6660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6661 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
6662 | ||
6663 | wxPyEndAllowThreads(__tstate); | |
6664 | if (PyErr_Occurred()) SWIG_fail; | |
6665 | } | |
6666 | resultobj = PyInt_FromLong((long)result); | |
6667 | return resultobj; | |
6668 | fail: | |
6669 | return NULL; | |
6670 | } | |
6671 | ||
6672 | ||
6673 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6674 | PyObject *resultobj; | |
6675 | wxLogLevel result; | |
6676 | char *kwnames[] = { | |
6677 | NULL | |
6678 | }; | |
6679 | ||
6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
6681 | { | |
6682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6683 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
6684 | ||
6685 | wxPyEndAllowThreads(__tstate); | |
6686 | if (PyErr_Occurred()) SWIG_fail; | |
6687 | } | |
6688 | resultobj = PyInt_FromLong((long)result); | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | return NULL; | |
6692 | } | |
6693 | ||
6694 | ||
6695 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6696 | PyObject *resultobj; | |
6697 | wxChar *result; | |
6698 | char *kwnames[] = { | |
6699 | NULL | |
6700 | }; | |
6701 | ||
6702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
6703 | { | |
6704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6705 | result = (wxChar *)wxLog::GetTimestamp(); | |
6706 | ||
6707 | wxPyEndAllowThreads(__tstate); | |
6708 | if (PyErr_Occurred()) SWIG_fail; | |
6709 | } | |
6710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
6711 | return resultobj; | |
6712 | fail: | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
6717 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6718 | PyObject *resultobj; | |
6719 | wxString result; | |
6720 | char *kwnames[] = { | |
6721 | NULL | |
6722 | }; | |
6723 | ||
6724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
6725 | { | |
6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6727 | result = Log_TimeStamp(); | |
6728 | ||
6729 | wxPyEndAllowThreads(__tstate); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
6731 | } | |
6732 | { | |
6733 | #if wxUSE_UNICODE | |
6734 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6735 | #else | |
6736 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6737 | #endif | |
6738 | } | |
6739 | return resultobj; | |
6740 | fail: | |
6741 | return NULL; | |
6742 | } | |
6743 | ||
6744 | ||
6745 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6746 | PyObject *resultobj; | |
6747 | wxLog *arg1 = (wxLog *) 0 ; | |
6748 | PyObject * obj0 = 0 ; | |
6749 | char *kwnames[] = { | |
6750 | (char *) "self", NULL | |
6751 | }; | |
6752 | ||
6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
6754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6755 | { | |
6756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6757 | wxLog_Destroy(arg1); | |
6758 | ||
6759 | wxPyEndAllowThreads(__tstate); | |
6760 | if (PyErr_Occurred()) SWIG_fail; | |
6761 | } | |
6762 | Py_INCREF(Py_None); resultobj = Py_None; | |
6763 | return resultobj; | |
6764 | fail: | |
6765 | return NULL; | |
6766 | } | |
6767 | ||
6768 | ||
6769 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
6770 | PyObject *obj; | |
6771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6772 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
6773 | Py_INCREF(obj); | |
6774 | return Py_BuildValue((char *)""); | |
6775 | } | |
6776 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6777 | PyObject *resultobj; | |
6778 | wxLogStderr *result; | |
6779 | char *kwnames[] = { | |
6780 | NULL | |
6781 | }; | |
6782 | ||
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
6784 | { | |
6785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6786 | result = (wxLogStderr *)new wxLogStderr(); | |
6787 | ||
6788 | wxPyEndAllowThreads(__tstate); | |
6789 | if (PyErr_Occurred()) SWIG_fail; | |
6790 | } | |
6791 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
6792 | return resultobj; | |
6793 | fail: | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
6798 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
6799 | PyObject *obj; | |
6800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6801 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
6802 | Py_INCREF(obj); | |
6803 | return Py_BuildValue((char *)""); | |
6804 | } | |
6805 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6806 | PyObject *resultobj; | |
6807 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6808 | wxLogTextCtrl *result; | |
6809 | PyObject * obj0 = 0 ; | |
6810 | char *kwnames[] = { | |
6811 | (char *) "pTextCtrl", NULL | |
6812 | }; | |
6813 | ||
6814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
6815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6816 | { | |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) SWIG_fail; | |
6822 | } | |
6823 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
6824 | return resultobj; | |
6825 | fail: | |
6826 | return NULL; | |
6827 | } | |
6828 | ||
6829 | ||
6830 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
6831 | PyObject *obj; | |
6832 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6833 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
6834 | Py_INCREF(obj); | |
6835 | return Py_BuildValue((char *)""); | |
6836 | } | |
6837 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6838 | PyObject *resultobj; | |
6839 | wxLogGui *result; | |
6840 | char *kwnames[] = { | |
6841 | NULL | |
6842 | }; | |
6843 | ||
6844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
6845 | { | |
6846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6847 | result = (wxLogGui *)new wxLogGui(); | |
6848 | ||
6849 | wxPyEndAllowThreads(__tstate); | |
6850 | if (PyErr_Occurred()) SWIG_fail; | |
6851 | } | |
6852 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
6853 | return resultobj; | |
6854 | fail: | |
6855 | return NULL; | |
6856 | } | |
6857 | ||
6858 | ||
6859 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
6860 | PyObject *obj; | |
6861 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6862 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
6863 | Py_INCREF(obj); | |
6864 | return Py_BuildValue((char *)""); | |
6865 | } | |
6866 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6867 | PyObject *resultobj; | |
6868 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6869 | wxString *arg2 = 0 ; | |
423f194a RD |
6870 | bool arg3 = (bool) True ; |
6871 | bool arg4 = (bool) True ; | |
d14a1e28 | 6872 | wxLogWindow *result; |
423f194a | 6873 | bool temp2 = False ; |
d14a1e28 RD |
6874 | PyObject * obj0 = 0 ; |
6875 | PyObject * obj1 = 0 ; | |
6876 | PyObject * obj2 = 0 ; | |
6877 | PyObject * obj3 = 0 ; | |
6878 | char *kwnames[] = { | |
6879 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
6880 | }; | |
6881 | ||
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6884 | { | |
6885 | arg2 = wxString_in_helper(obj1); | |
6886 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6887 | temp2 = True; |
d14a1e28 RD |
6888 | } |
6889 | if (obj2) { | |
6890 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6891 | if (PyErr_Occurred()) SWIG_fail; | |
6892 | } | |
6893 | if (obj3) { | |
6894 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6895 | if (PyErr_Occurred()) SWIG_fail; | |
6896 | } | |
6897 | { | |
6898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6899 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
6900 | ||
6901 | wxPyEndAllowThreads(__tstate); | |
6902 | if (PyErr_Occurred()) SWIG_fail; | |
6903 | } | |
6904 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
6905 | { | |
6906 | if (temp2) | |
6907 | delete arg2; | |
6908 | } | |
6909 | return resultobj; | |
6910 | fail: | |
6911 | { | |
6912 | if (temp2) | |
6913 | delete arg2; | |
6914 | } | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
6919 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6920 | PyObject *resultobj; | |
6921 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
423f194a | 6922 | bool arg2 = (bool) True ; |
d14a1e28 RD |
6923 | PyObject * obj0 = 0 ; |
6924 | PyObject * obj1 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "self",(char *) "bShow", NULL | |
6927 | }; | |
6928 | ||
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
6930 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6931 | if (obj1) { | |
6932 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
6935 | { | |
6936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6937 | (arg1)->Show(arg2); | |
6938 | ||
6939 | wxPyEndAllowThreads(__tstate); | |
6940 | if (PyErr_Occurred()) SWIG_fail; | |
6941 | } | |
6942 | Py_INCREF(Py_None); resultobj = Py_None; | |
6943 | return resultobj; | |
6944 | fail: | |
6945 | return NULL; | |
6946 | } | |
6947 | ||
6948 | ||
6949 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6950 | PyObject *resultobj; | |
6951 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6952 | wxFrame *result; | |
6953 | PyObject * obj0 = 0 ; | |
6954 | char *kwnames[] = { | |
6955 | (char *) "self", NULL | |
6956 | }; | |
6957 | ||
6958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
6959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6960 | { | |
6961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6962 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
6963 | ||
6964 | wxPyEndAllowThreads(__tstate); | |
6965 | if (PyErr_Occurred()) SWIG_fail; | |
6966 | } | |
6967 | { | |
6968 | resultobj = wxPyMake_wxObject(result); | |
6969 | } | |
6970 | return resultobj; | |
6971 | fail: | |
6972 | return NULL; | |
6973 | } | |
6974 | ||
6975 | ||
6976 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6977 | PyObject *resultobj; | |
6978 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6979 | wxLog *result; | |
6980 | PyObject * obj0 = 0 ; | |
6981 | char *kwnames[] = { | |
6982 | (char *) "self", NULL | |
6983 | }; | |
6984 | ||
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
6986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6987 | { | |
6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6989 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
6990 | ||
6991 | wxPyEndAllowThreads(__tstate); | |
6992 | if (PyErr_Occurred()) SWIG_fail; | |
6993 | } | |
6994 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6995 | return resultobj; | |
6996 | fail: | |
6997 | return NULL; | |
6998 | } | |
6999 | ||
7000 | ||
7001 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7002 | PyObject *resultobj; | |
7003 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7004 | bool result; | |
7005 | PyObject * obj0 = 0 ; | |
7006 | char *kwnames[] = { | |
7007 | (char *) "self", NULL | |
7008 | }; | |
7009 | ||
7010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
7019 | resultobj = PyInt_FromLong((long)result); | |
7020 | return resultobj; | |
7021 | fail: | |
7022 | return NULL; | |
7023 | } | |
7024 | ||
7025 | ||
7026 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7027 | PyObject *resultobj; | |
7028 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7029 | bool arg2 ; | |
7030 | PyObject * obj0 = 0 ; | |
7031 | PyObject * obj1 = 0 ; | |
7032 | char *kwnames[] = { | |
7033 | (char *) "self",(char *) "bDoPass", NULL | |
7034 | }; | |
7035 | ||
7036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7038 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7039 | if (PyErr_Occurred()) SWIG_fail; | |
7040 | { | |
7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7042 | (arg1)->PassMessages(arg2); | |
7043 | ||
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
7047 | Py_INCREF(Py_None); resultobj = Py_None; | |
7048 | return resultobj; | |
7049 | fail: | |
7050 | return NULL; | |
7051 | } | |
7052 | ||
7053 | ||
7054 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7055 | PyObject *obj; | |
7056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7057 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7058 | Py_INCREF(obj); | |
7059 | return Py_BuildValue((char *)""); | |
7060 | } | |
7061 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7062 | PyObject *resultobj; | |
7063 | wxLog *arg1 = (wxLog *) 0 ; | |
7064 | wxLogChain *result; | |
7065 | PyObject * obj0 = 0 ; | |
7066 | char *kwnames[] = { | |
7067 | (char *) "logger", NULL | |
7068 | }; | |
7069 | ||
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7072 | { | |
7073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7074 | result = (wxLogChain *)new wxLogChain(arg1); | |
7075 | ||
7076 | wxPyEndAllowThreads(__tstate); | |
7077 | if (PyErr_Occurred()) SWIG_fail; | |
7078 | } | |
7079 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7080 | return resultobj; | |
7081 | fail: | |
7082 | return NULL; | |
7083 | } | |
7084 | ||
7085 | ||
7086 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7087 | PyObject *resultobj; | |
7088 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7089 | wxLog *arg2 = (wxLog *) 0 ; | |
7090 | PyObject * obj0 = 0 ; | |
7091 | PyObject * obj1 = 0 ; | |
7092 | char *kwnames[] = { | |
7093 | (char *) "self",(char *) "logger", NULL | |
7094 | }; | |
7095 | ||
7096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7099 | { | |
7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7101 | (arg1)->SetLog(arg2); | |
7102 | ||
7103 | wxPyEndAllowThreads(__tstate); | |
7104 | if (PyErr_Occurred()) SWIG_fail; | |
7105 | } | |
7106 | Py_INCREF(Py_None); resultobj = Py_None; | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
7113 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7114 | PyObject *resultobj; | |
7115 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7116 | bool arg2 ; | |
7117 | PyObject * obj0 = 0 ; | |
7118 | PyObject * obj1 = 0 ; | |
7119 | char *kwnames[] = { | |
7120 | (char *) "self",(char *) "bDoPass", NULL | |
7121 | }; | |
7122 | ||
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7125 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7126 | if (PyErr_Occurred()) SWIG_fail; | |
7127 | { | |
7128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7129 | (arg1)->PassMessages(arg2); | |
7130 | ||
7131 | wxPyEndAllowThreads(__tstate); | |
7132 | if (PyErr_Occurred()) SWIG_fail; | |
7133 | } | |
7134 | Py_INCREF(Py_None); resultobj = Py_None; | |
7135 | return resultobj; | |
7136 | fail: | |
7137 | return NULL; | |
7138 | } | |
7139 | ||
7140 | ||
7141 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7142 | PyObject *resultobj; | |
7143 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7144 | bool result; | |
7145 | PyObject * obj0 = 0 ; | |
7146 | char *kwnames[] = { | |
7147 | (char *) "self", NULL | |
7148 | }; | |
7149 | ||
7150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7152 | { | |
7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7154 | result = (bool)(arg1)->IsPassingMessages(); | |
7155 | ||
7156 | wxPyEndAllowThreads(__tstate); | |
7157 | if (PyErr_Occurred()) SWIG_fail; | |
7158 | } | |
7159 | resultobj = PyInt_FromLong((long)result); | |
7160 | return resultobj; | |
7161 | fail: | |
7162 | return NULL; | |
7163 | } | |
7164 | ||
7165 | ||
7166 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7167 | PyObject *resultobj; | |
7168 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7169 | wxLog *result; | |
7170 | PyObject * obj0 = 0 ; | |
7171 | char *kwnames[] = { | |
7172 | (char *) "self", NULL | |
7173 | }; | |
7174 | ||
7175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7177 | { | |
7178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7179 | result = (wxLog *)(arg1)->GetOldLog(); | |
7180 | ||
7181 | wxPyEndAllowThreads(__tstate); | |
7182 | if (PyErr_Occurred()) SWIG_fail; | |
7183 | } | |
7184 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7185 | return resultobj; | |
7186 | fail: | |
7187 | return NULL; | |
7188 | } | |
7189 | ||
7190 | ||
7191 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7192 | PyObject *obj; | |
7193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7194 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7195 | Py_INCREF(obj); | |
7196 | return Py_BuildValue((char *)""); | |
7197 | } | |
7198 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7199 | PyObject *resultobj; | |
7200 | unsigned long result; | |
7201 | char *kwnames[] = { | |
7202 | NULL | |
7203 | }; | |
7204 | ||
7205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7206 | { | |
7207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7208 | result = (unsigned long)wxSysErrorCode(); | |
7209 | ||
7210 | wxPyEndAllowThreads(__tstate); | |
7211 | if (PyErr_Occurred()) SWIG_fail; | |
7212 | } | |
7213 | resultobj = PyInt_FromLong((long)result); | |
7214 | return resultobj; | |
7215 | fail: | |
7216 | return NULL; | |
7217 | } | |
7218 | ||
7219 | ||
7220 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7221 | PyObject *resultobj; | |
7222 | unsigned long arg1 = (unsigned long) 0 ; | |
7223 | wxString result; | |
7224 | PyObject * obj0 = 0 ; | |
7225 | char *kwnames[] = { | |
7226 | (char *) "nErrCode", NULL | |
7227 | }; | |
7228 | ||
7229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7230 | if (obj0) { | |
7231 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7232 | if (PyErr_Occurred()) SWIG_fail; | |
7233 | } | |
7234 | { | |
7235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7236 | result = wxSysErrorMsg(arg1); | |
7237 | ||
7238 | wxPyEndAllowThreads(__tstate); | |
7239 | if (PyErr_Occurred()) SWIG_fail; | |
7240 | } | |
7241 | { | |
7242 | #if wxUSE_UNICODE | |
7243 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7244 | #else | |
7245 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7246 | #endif | |
7247 | } | |
7248 | return resultobj; | |
7249 | fail: | |
7250 | return NULL; | |
7251 | } | |
7252 | ||
7253 | ||
7254 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7255 | PyObject *resultobj; | |
7256 | wxString *arg1 = 0 ; | |
423f194a | 7257 | bool temp1 = False ; |
d14a1e28 RD |
7258 | PyObject * obj0 = 0 ; |
7259 | char *kwnames[] = { | |
7260 | (char *) "msg", NULL | |
7261 | }; | |
7262 | ||
7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7264 | { | |
7265 | arg1 = wxString_in_helper(obj0); | |
7266 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7267 | temp1 = True; |
d14a1e28 RD |
7268 | } |
7269 | { | |
7270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7271 | wxLogFatalError((wxString const &)*arg1); | |
7272 | ||
7273 | wxPyEndAllowThreads(__tstate); | |
7274 | if (PyErr_Occurred()) SWIG_fail; | |
7275 | } | |
7276 | Py_INCREF(Py_None); resultobj = Py_None; | |
7277 | { | |
7278 | if (temp1) | |
7279 | delete arg1; | |
7280 | } | |
7281 | return resultobj; | |
7282 | fail: | |
7283 | { | |
7284 | if (temp1) | |
7285 | delete arg1; | |
7286 | } | |
7287 | return NULL; | |
7288 | } | |
7289 | ||
7290 | ||
7291 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7292 | PyObject *resultobj; | |
7293 | wxString *arg1 = 0 ; | |
423f194a | 7294 | bool temp1 = False ; |
d14a1e28 RD |
7295 | PyObject * obj0 = 0 ; |
7296 | char *kwnames[] = { | |
7297 | (char *) "msg", NULL | |
7298 | }; | |
7299 | ||
7300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7301 | { | |
7302 | arg1 = wxString_in_helper(obj0); | |
7303 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7304 | temp1 = True; |
d14a1e28 RD |
7305 | } |
7306 | { | |
7307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7308 | wxLogError((wxString const &)*arg1); | |
7309 | ||
7310 | wxPyEndAllowThreads(__tstate); | |
7311 | if (PyErr_Occurred()) SWIG_fail; | |
7312 | } | |
7313 | Py_INCREF(Py_None); resultobj = Py_None; | |
7314 | { | |
7315 | if (temp1) | |
7316 | delete arg1; | |
7317 | } | |
7318 | return resultobj; | |
7319 | fail: | |
7320 | { | |
7321 | if (temp1) | |
7322 | delete arg1; | |
7323 | } | |
7324 | return NULL; | |
7325 | } | |
7326 | ||
7327 | ||
7328 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7329 | PyObject *resultobj; | |
7330 | wxString *arg1 = 0 ; | |
423f194a | 7331 | bool temp1 = False ; |
d14a1e28 RD |
7332 | PyObject * obj0 = 0 ; |
7333 | char *kwnames[] = { | |
7334 | (char *) "msg", NULL | |
7335 | }; | |
7336 | ||
7337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7338 | { | |
7339 | arg1 = wxString_in_helper(obj0); | |
7340 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7341 | temp1 = True; |
d14a1e28 RD |
7342 | } |
7343 | { | |
7344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7345 | wxLogWarning((wxString const &)*arg1); | |
7346 | ||
7347 | wxPyEndAllowThreads(__tstate); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
7350 | Py_INCREF(Py_None); resultobj = Py_None; | |
7351 | { | |
7352 | if (temp1) | |
7353 | delete arg1; | |
7354 | } | |
7355 | return resultobj; | |
7356 | fail: | |
7357 | { | |
7358 | if (temp1) | |
7359 | delete arg1; | |
7360 | } | |
7361 | return NULL; | |
7362 | } | |
7363 | ||
7364 | ||
7365 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7366 | PyObject *resultobj; | |
7367 | wxString *arg1 = 0 ; | |
423f194a | 7368 | bool temp1 = False ; |
d14a1e28 RD |
7369 | PyObject * obj0 = 0 ; |
7370 | char *kwnames[] = { | |
7371 | (char *) "msg", NULL | |
7372 | }; | |
7373 | ||
7374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7375 | { | |
7376 | arg1 = wxString_in_helper(obj0); | |
7377 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7378 | temp1 = True; |
d14a1e28 RD |
7379 | } |
7380 | { | |
7381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7382 | wxLogMessage((wxString const &)*arg1); | |
7383 | ||
7384 | wxPyEndAllowThreads(__tstate); | |
7385 | if (PyErr_Occurred()) SWIG_fail; | |
7386 | } | |
7387 | Py_INCREF(Py_None); resultobj = Py_None; | |
7388 | { | |
7389 | if (temp1) | |
7390 | delete arg1; | |
7391 | } | |
7392 | return resultobj; | |
7393 | fail: | |
7394 | { | |
7395 | if (temp1) | |
7396 | delete arg1; | |
7397 | } | |
7398 | return NULL; | |
7399 | } | |
7400 | ||
7401 | ||
7402 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7403 | PyObject *resultobj; | |
7404 | wxString *arg1 = 0 ; | |
423f194a | 7405 | bool temp1 = False ; |
d14a1e28 RD |
7406 | PyObject * obj0 = 0 ; |
7407 | char *kwnames[] = { | |
7408 | (char *) "msg", NULL | |
7409 | }; | |
7410 | ||
7411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7412 | { | |
7413 | arg1 = wxString_in_helper(obj0); | |
7414 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7415 | temp1 = True; |
d14a1e28 RD |
7416 | } |
7417 | { | |
7418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7419 | wxLogInfo((wxString const &)*arg1); | |
7420 | ||
7421 | wxPyEndAllowThreads(__tstate); | |
7422 | if (PyErr_Occurred()) SWIG_fail; | |
7423 | } | |
7424 | Py_INCREF(Py_None); resultobj = Py_None; | |
7425 | { | |
7426 | if (temp1) | |
7427 | delete arg1; | |
7428 | } | |
7429 | return resultobj; | |
7430 | fail: | |
7431 | { | |
7432 | if (temp1) | |
7433 | delete arg1; | |
7434 | } | |
7435 | return NULL; | |
7436 | } | |
7437 | ||
7438 | ||
7439 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7440 | PyObject *resultobj; | |
7441 | wxString *arg1 = 0 ; | |
423f194a | 7442 | bool temp1 = False ; |
d14a1e28 RD |
7443 | PyObject * obj0 = 0 ; |
7444 | char *kwnames[] = { | |
7445 | (char *) "msg", NULL | |
7446 | }; | |
7447 | ||
7448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
7449 | { | |
7450 | arg1 = wxString_in_helper(obj0); | |
7451 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7452 | temp1 = True; |
d14a1e28 RD |
7453 | } |
7454 | { | |
7455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7456 | wxLogDebug((wxString const &)*arg1); | |
7457 | ||
7458 | wxPyEndAllowThreads(__tstate); | |
7459 | if (PyErr_Occurred()) SWIG_fail; | |
7460 | } | |
7461 | Py_INCREF(Py_None); resultobj = Py_None; | |
7462 | { | |
7463 | if (temp1) | |
7464 | delete arg1; | |
7465 | } | |
7466 | return resultobj; | |
7467 | fail: | |
7468 | { | |
7469 | if (temp1) | |
7470 | delete arg1; | |
7471 | } | |
7472 | return NULL; | |
7473 | } | |
7474 | ||
7475 | ||
7476 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7477 | PyObject *resultobj; | |
7478 | wxString *arg1 = 0 ; | |
423f194a | 7479 | bool temp1 = False ; |
d14a1e28 RD |
7480 | PyObject * obj0 = 0 ; |
7481 | char *kwnames[] = { | |
7482 | (char *) "msg", NULL | |
7483 | }; | |
7484 | ||
7485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
7486 | { | |
7487 | arg1 = wxString_in_helper(obj0); | |
7488 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7489 | temp1 = True; |
d14a1e28 RD |
7490 | } |
7491 | { | |
7492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7493 | wxLogVerbose((wxString const &)*arg1); | |
7494 | ||
7495 | wxPyEndAllowThreads(__tstate); | |
7496 | if (PyErr_Occurred()) SWIG_fail; | |
7497 | } | |
7498 | Py_INCREF(Py_None); resultobj = Py_None; | |
7499 | { | |
7500 | if (temp1) | |
7501 | delete arg1; | |
7502 | } | |
7503 | return resultobj; | |
7504 | fail: | |
7505 | { | |
7506 | if (temp1) | |
7507 | delete arg1; | |
7508 | } | |
7509 | return NULL; | |
7510 | } | |
7511 | ||
7512 | ||
7513 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7514 | PyObject *resultobj; | |
7515 | wxString *arg1 = 0 ; | |
423f194a | 7516 | bool temp1 = False ; |
d14a1e28 RD |
7517 | PyObject * obj0 = 0 ; |
7518 | char *kwnames[] = { | |
7519 | (char *) "msg", NULL | |
7520 | }; | |
7521 | ||
7522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
7523 | { | |
7524 | arg1 = wxString_in_helper(obj0); | |
7525 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7526 | temp1 = True; |
d14a1e28 RD |
7527 | } |
7528 | { | |
7529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7530 | wxLogStatus((wxString const &)*arg1); | |
7531 | ||
7532 | wxPyEndAllowThreads(__tstate); | |
7533 | if (PyErr_Occurred()) SWIG_fail; | |
7534 | } | |
7535 | Py_INCREF(Py_None); resultobj = Py_None; | |
7536 | { | |
7537 | if (temp1) | |
7538 | delete arg1; | |
7539 | } | |
7540 | return resultobj; | |
7541 | fail: | |
7542 | { | |
7543 | if (temp1) | |
7544 | delete arg1; | |
7545 | } | |
7546 | return NULL; | |
7547 | } | |
7548 | ||
7549 | ||
7550 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7551 | PyObject *resultobj; | |
7552 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7553 | wxString *arg2 = 0 ; | |
423f194a | 7554 | bool temp2 = False ; |
d14a1e28 RD |
7555 | PyObject * obj0 = 0 ; |
7556 | PyObject * obj1 = 0 ; | |
7557 | char *kwnames[] = { | |
7558 | (char *) "pFrame",(char *) "msg", NULL | |
7559 | }; | |
7560 | ||
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
7562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7563 | { | |
7564 | arg2 = wxString_in_helper(obj1); | |
7565 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7566 | temp2 = True; |
d14a1e28 RD |
7567 | } |
7568 | { | |
7569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7570 | wxLogStatus(arg1,(wxString const &)*arg2); | |
7571 | ||
7572 | wxPyEndAllowThreads(__tstate); | |
7573 | if (PyErr_Occurred()) SWIG_fail; | |
7574 | } | |
7575 | Py_INCREF(Py_None); resultobj = Py_None; | |
7576 | { | |
7577 | if (temp2) | |
7578 | delete arg2; | |
7579 | } | |
7580 | return resultobj; | |
7581 | fail: | |
7582 | { | |
7583 | if (temp2) | |
7584 | delete arg2; | |
7585 | } | |
7586 | return NULL; | |
7587 | } | |
7588 | ||
7589 | ||
7590 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7591 | PyObject *resultobj; | |
7592 | wxString *arg1 = 0 ; | |
423f194a | 7593 | bool temp1 = False ; |
d14a1e28 RD |
7594 | PyObject * obj0 = 0 ; |
7595 | char *kwnames[] = { | |
7596 | (char *) "msg", NULL | |
7597 | }; | |
7598 | ||
7599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
7600 | { | |
7601 | arg1 = wxString_in_helper(obj0); | |
7602 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7603 | temp1 = True; |
d14a1e28 RD |
7604 | } |
7605 | { | |
7606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7607 | wxLogSysError((wxString const &)*arg1); | |
7608 | ||
7609 | wxPyEndAllowThreads(__tstate); | |
7610 | if (PyErr_Occurred()) SWIG_fail; | |
7611 | } | |
7612 | Py_INCREF(Py_None); resultobj = Py_None; | |
7613 | { | |
7614 | if (temp1) | |
7615 | delete arg1; | |
7616 | } | |
7617 | return resultobj; | |
7618 | fail: | |
7619 | { | |
7620 | if (temp1) | |
7621 | delete arg1; | |
7622 | } | |
7623 | return NULL; | |
7624 | } | |
7625 | ||
7626 | ||
7627 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7628 | PyObject *resultobj; | |
7629 | wxString *arg1 = 0 ; | |
423f194a | 7630 | bool temp1 = False ; |
d14a1e28 RD |
7631 | PyObject * obj0 = 0 ; |
7632 | char *kwnames[] = { | |
7633 | (char *) "msg", NULL | |
7634 | }; | |
7635 | ||
7636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogTrace",kwnames,&obj0)) goto fail; | |
7637 | { | |
7638 | arg1 = wxString_in_helper(obj0); | |
7639 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7640 | temp1 = True; |
d14a1e28 RD |
7641 | } |
7642 | { | |
7643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7644 | wxLogTrace((wxString const &)*arg1); | |
7645 | ||
7646 | wxPyEndAllowThreads(__tstate); | |
7647 | if (PyErr_Occurred()) SWIG_fail; | |
7648 | } | |
7649 | Py_INCREF(Py_None); resultobj = Py_None; | |
7650 | { | |
7651 | if (temp1) | |
7652 | delete arg1; | |
7653 | } | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | { | |
7657 | if (temp1) | |
7658 | delete arg1; | |
7659 | } | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
7664 | static PyObject *_wrap_LogTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7665 | PyObject *resultobj; | |
7666 | wxString *arg1 = 0 ; | |
7667 | wxString *arg2 = 0 ; | |
423f194a RD |
7668 | bool temp1 = False ; |
7669 | bool temp2 = False ; | |
d14a1e28 RD |
7670 | PyObject * obj0 = 0 ; |
7671 | PyObject * obj1 = 0 ; | |
7672 | char *kwnames[] = { | |
7673 | (char *) "mask",(char *) "msg", NULL | |
7674 | }; | |
7675 | ||
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogTraceMask",kwnames,&obj0,&obj1)) goto fail; | |
7677 | { | |
7678 | arg1 = wxString_in_helper(obj0); | |
7679 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7680 | temp1 = True; |
d14a1e28 RD |
7681 | } |
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 | wxLogTrace((wxString const &)*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 (temp1) | |
7697 | delete arg1; | |
7698 | } | |
7699 | { | |
7700 | if (temp2) | |
7701 | delete arg2; | |
7702 | } | |
7703 | return resultobj; | |
7704 | fail: | |
7705 | { | |
7706 | if (temp1) | |
7707 | delete arg1; | |
7708 | } | |
7709 | { | |
7710 | if (temp2) | |
7711 | delete arg2; | |
7712 | } | |
7713 | return NULL; | |
7714 | } | |
7715 | ||
7716 | ||
7717 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7718 | PyObject *resultobj; | |
7719 | unsigned long arg1 ; | |
7720 | wxString *arg2 = 0 ; | |
423f194a | 7721 | bool temp2 = False ; |
d14a1e28 RD |
7722 | PyObject * obj0 = 0 ; |
7723 | PyObject * obj1 = 0 ; | |
7724 | char *kwnames[] = { | |
7725 | (char *) "level",(char *) "msg", NULL | |
7726 | }; | |
7727 | ||
7728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
7729 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | { | |
7732 | arg2 = wxString_in_helper(obj1); | |
7733 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7734 | temp2 = True; |
d14a1e28 RD |
7735 | } |
7736 | { | |
7737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7738 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
7739 | ||
7740 | wxPyEndAllowThreads(__tstate); | |
7741 | if (PyErr_Occurred()) SWIG_fail; | |
7742 | } | |
7743 | Py_INCREF(Py_None); resultobj = Py_None; | |
7744 | { | |
7745 | if (temp2) | |
7746 | delete arg2; | |
7747 | } | |
7748 | return resultobj; | |
7749 | fail: | |
7750 | { | |
7751 | if (temp2) | |
7752 | delete arg2; | |
7753 | } | |
7754 | return NULL; | |
7755 | } | |
7756 | ||
7757 | ||
7758 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7759 | PyObject *resultobj; | |
7760 | wxString *arg1 = 0 ; | |
7761 | wxString *arg2 = 0 ; | |
423f194a RD |
7762 | bool temp1 = False ; |
7763 | bool temp2 = False ; | |
d14a1e28 RD |
7764 | PyObject * obj0 = 0 ; |
7765 | PyObject * obj1 = 0 ; | |
7766 | char *kwnames[] = { | |
7767 | (char *) "title",(char *) "text", NULL | |
7768 | }; | |
7769 | ||
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
7771 | { | |
7772 | arg1 = wxString_in_helper(obj0); | |
7773 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7774 | temp1 = True; |
d14a1e28 RD |
7775 | } |
7776 | { | |
7777 | arg2 = wxString_in_helper(obj1); | |
7778 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7779 | temp2 = True; |
d14a1e28 RD |
7780 | } |
7781 | { | |
7782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7783 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
7784 | ||
7785 | wxPyEndAllowThreads(__tstate); | |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
7787 | } | |
7788 | Py_INCREF(Py_None); resultobj = Py_None; | |
7789 | { | |
7790 | if (temp1) | |
7791 | delete arg1; | |
7792 | } | |
7793 | { | |
7794 | if (temp2) | |
7795 | delete arg2; | |
7796 | } | |
7797 | return resultobj; | |
7798 | fail: | |
7799 | { | |
7800 | if (temp1) | |
7801 | delete arg1; | |
7802 | } | |
7803 | { | |
7804 | if (temp2) | |
7805 | delete arg2; | |
7806 | } | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
7811 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7812 | PyObject *resultobj; | |
7813 | wxLogNull *result; | |
7814 | char *kwnames[] = { | |
7815 | NULL | |
7816 | }; | |
7817 | ||
7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
7819 | { | |
7820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7821 | result = (wxLogNull *)new wxLogNull(); | |
7822 | ||
7823 | wxPyEndAllowThreads(__tstate); | |
7824 | if (PyErr_Occurred()) SWIG_fail; | |
7825 | } | |
7826 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
7827 | return resultobj; | |
7828 | fail: | |
7829 | return NULL; | |
7830 | } | |
7831 | ||
7832 | ||
7833 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7834 | PyObject *resultobj; | |
7835 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
7836 | PyObject * obj0 = 0 ; | |
7837 | char *kwnames[] = { | |
7838 | (char *) "self", NULL | |
7839 | }; | |
7840 | ||
7841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
7842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7843 | { | |
7844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7845 | delete arg1; | |
7846 | ||
7847 | wxPyEndAllowThreads(__tstate); | |
7848 | if (PyErr_Occurred()) SWIG_fail; | |
7849 | } | |
7850 | Py_INCREF(Py_None); resultobj = Py_None; | |
7851 | return resultobj; | |
7852 | fail: | |
7853 | return NULL; | |
7854 | } | |
7855 | ||
7856 | ||
7857 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
7858 | PyObject *obj; | |
7859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7860 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
7861 | Py_INCREF(obj); | |
7862 | return Py_BuildValue((char *)""); | |
7863 | } | |
7864 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7865 | PyObject *resultobj; | |
7866 | wxPyLog *result; | |
7867 | char *kwnames[] = { | |
7868 | NULL | |
7869 | }; | |
7870 | ||
7871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
7872 | { | |
7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7874 | result = (wxPyLog *)new wxPyLog(); | |
7875 | ||
7876 | wxPyEndAllowThreads(__tstate); | |
7877 | if (PyErr_Occurred()) SWIG_fail; | |
7878 | } | |
7879 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
7880 | return resultobj; | |
7881 | fail: | |
7882 | return NULL; | |
7883 | } | |
7884 | ||
7885 | ||
7886 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject *resultobj; | |
7888 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
7889 | PyObject *arg2 = (PyObject *) 0 ; | |
7890 | PyObject *arg3 = (PyObject *) 0 ; | |
7891 | PyObject * obj0 = 0 ; | |
7892 | PyObject * obj1 = 0 ; | |
7893 | PyObject * obj2 = 0 ; | |
7894 | char *kwnames[] = { | |
7895 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
7896 | }; | |
7897 | ||
7898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7900 | arg2 = obj1; | |
7901 | arg3 = obj2; | |
7902 | { | |
7903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7904 | (arg1)->_setCallbackInfo(arg2,arg3); | |
7905 | ||
7906 | wxPyEndAllowThreads(__tstate); | |
7907 | if (PyErr_Occurred()) SWIG_fail; | |
7908 | } | |
7909 | Py_INCREF(Py_None); resultobj = Py_None; | |
7910 | return resultobj; | |
7911 | fail: | |
7912 | return NULL; | |
7913 | } | |
7914 | ||
7915 | ||
7916 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
7917 | PyObject *obj; | |
7918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7919 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
7920 | Py_INCREF(obj); | |
7921 | return Py_BuildValue((char *)""); | |
7922 | } | |
7923 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7924 | PyObject *resultobj; | |
7925 | int arg1 ; | |
7926 | int arg2 = (int) wxSIGTERM ; | |
7927 | int result; | |
7928 | char *kwnames[] = { | |
7929 | (char *) "pid",(char *) "sig", NULL | |
7930 | }; | |
7931 | ||
7932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:Process_Kill",kwnames,&arg1,&arg2)) goto fail; | |
7933 | { | |
7934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7935 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
7936 | ||
7937 | wxPyEndAllowThreads(__tstate); | |
7938 | if (PyErr_Occurred()) SWIG_fail; | |
7939 | } | |
7940 | resultobj = PyInt_FromLong((long)result); | |
7941 | return resultobj; | |
7942 | fail: | |
7943 | return NULL; | |
7944 | } | |
7945 | ||
7946 | ||
7947 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7948 | PyObject *resultobj; | |
7949 | int arg1 ; | |
7950 | bool result; | |
7951 | char *kwnames[] = { | |
7952 | (char *) "pid", NULL | |
7953 | }; | |
7954 | ||
7955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Process_Exists",kwnames,&arg1)) goto fail; | |
7956 | { | |
7957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7958 | result = (bool)wxPyProcess::Exists(arg1); | |
7959 | ||
7960 | wxPyEndAllowThreads(__tstate); | |
7961 | if (PyErr_Occurred()) SWIG_fail; | |
7962 | } | |
7963 | resultobj = PyInt_FromLong((long)result); | |
7964 | return resultobj; | |
7965 | fail: | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
7970 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7971 | PyObject *resultobj; | |
7972 | wxString *arg1 = 0 ; | |
7973 | int arg2 = (int) wxEXEC_ASYNC ; | |
7974 | wxPyProcess *result; | |
423f194a | 7975 | bool temp1 = False ; |
d14a1e28 RD |
7976 | PyObject * obj0 = 0 ; |
7977 | char *kwnames[] = { | |
7978 | (char *) "cmd",(char *) "flags", NULL | |
7979 | }; | |
7980 | ||
7981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Process_Open",kwnames,&obj0,&arg2)) goto fail; | |
7982 | { | |
7983 | arg1 = wxString_in_helper(obj0); | |
7984 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7985 | temp1 = True; |
d14a1e28 RD |
7986 | } |
7987 | { | |
7988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7989 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
7990 | ||
7991 | wxPyEndAllowThreads(__tstate); | |
7992 | if (PyErr_Occurred()) SWIG_fail; | |
7993 | } | |
7994 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
7995 | { | |
7996 | if (temp1) | |
7997 | delete arg1; | |
7998 | } | |
7999 | return resultobj; | |
8000 | fail: | |
8001 | { | |
8002 | if (temp1) | |
8003 | delete arg1; | |
8004 | } | |
8005 | return NULL; | |
8006 | } | |
8007 | ||
8008 | ||
8009 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8010 | PyObject *resultobj; | |
8011 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8012 | int arg2 = (int) -1 ; | |
8013 | wxPyProcess *result; | |
8014 | PyObject * obj0 = 0 ; | |
8015 | char *kwnames[] = { | |
8016 | (char *) "parent",(char *) "id", NULL | |
8017 | }; | |
8018 | ||
8019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Process",kwnames,&obj0,&arg2)) goto fail; | |
8020 | if (obj0) { | |
8021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8022 | } | |
8023 | { | |
8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8025 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8026 | ||
8027 | wxPyEndAllowThreads(__tstate); | |
8028 | if (PyErr_Occurred()) SWIG_fail; | |
8029 | } | |
8030 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
8031 | return resultobj; | |
8032 | fail: | |
8033 | return NULL; | |
8034 | } | |
8035 | ||
8036 | ||
8037 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8038 | PyObject *resultobj; | |
8039 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8040 | PyObject *arg2 = (PyObject *) 0 ; | |
8041 | PyObject *arg3 = (PyObject *) 0 ; | |
8042 | PyObject * obj0 = 0 ; | |
8043 | PyObject * obj1 = 0 ; | |
8044 | PyObject * obj2 = 0 ; | |
8045 | char *kwnames[] = { | |
8046 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8047 | }; | |
8048 | ||
8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8051 | arg2 = obj1; | |
8052 | arg3 = obj2; | |
8053 | { | |
8054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8055 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8056 | ||
8057 | wxPyEndAllowThreads(__tstate); | |
8058 | if (PyErr_Occurred()) SWIG_fail; | |
8059 | } | |
8060 | Py_INCREF(Py_None); resultobj = Py_None; | |
8061 | return resultobj; | |
8062 | fail: | |
8063 | return NULL; | |
8064 | } | |
8065 | ||
8066 | ||
8067 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject *resultobj; | |
8069 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8070 | int arg2 ; | |
8071 | int arg3 ; | |
8072 | PyObject * obj0 = 0 ; | |
8073 | char *kwnames[] = { | |
8074 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8075 | }; | |
8076 | ||
8077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Process_base_OnTerminate",kwnames,&obj0,&arg2,&arg3)) 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 | (arg1)->base_OnTerminate(arg2,arg3); | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) SWIG_fail; | |
8085 | } | |
8086 | Py_INCREF(Py_None); resultobj = Py_None; | |
8087 | return resultobj; | |
8088 | fail: | |
8089 | return NULL; | |
8090 | } | |
8091 | ||
8092 | ||
8093 | static PyObject *_wrap_Process_Redirect(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_Redirect",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)->Redirect(); | |
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_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8118 | PyObject *resultobj; | |
8119 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8120 | bool result; | |
8121 | PyObject * obj0 = 0 ; | |
8122 | char *kwnames[] = { | |
8123 | (char *) "self", NULL | |
8124 | }; | |
8125 | ||
8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",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 = (bool)(arg1)->IsRedirected(); | |
8131 | ||
8132 | wxPyEndAllowThreads(__tstate); | |
8133 | if (PyErr_Occurred()) SWIG_fail; | |
8134 | } | |
8135 | resultobj = PyInt_FromLong((long)result); | |
8136 | return resultobj; | |
8137 | fail: | |
8138 | return NULL; | |
8139 | } | |
8140 | ||
8141 | ||
8142 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8143 | PyObject *resultobj; | |
8144 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8145 | PyObject * obj0 = 0 ; | |
8146 | char *kwnames[] = { | |
8147 | (char *) "self", NULL | |
8148 | }; | |
8149 | ||
8150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8152 | { | |
8153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8154 | (arg1)->Detach(); | |
8155 | ||
8156 | wxPyEndAllowThreads(__tstate); | |
8157 | if (PyErr_Occurred()) SWIG_fail; | |
8158 | } | |
8159 | Py_INCREF(Py_None); resultobj = Py_None; | |
8160 | return resultobj; | |
8161 | fail: | |
8162 | return NULL; | |
8163 | } | |
8164 | ||
8165 | ||
8166 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8167 | PyObject *resultobj; | |
8168 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8169 | wxInputStream *result; | |
8170 | PyObject * obj0 = 0 ; | |
8171 | char *kwnames[] = { | |
8172 | (char *) "self", NULL | |
8173 | }; | |
8174 | ||
8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8177 | { | |
8178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8179 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8180 | ||
8181 | wxPyEndAllowThreads(__tstate); | |
8182 | if (PyErr_Occurred()) SWIG_fail; | |
8183 | } | |
8184 | { | |
8185 | wxPyInputStream * _ptr = NULL; | |
8186 | ||
8187 | if (result) { | |
8188 | _ptr = new wxPyInputStream(result); | |
8189 | } | |
423f194a | 8190 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8191 | } |
8192 | return resultobj; | |
8193 | fail: | |
8194 | return NULL; | |
8195 | } | |
8196 | ||
8197 | ||
8198 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8199 | PyObject *resultobj; | |
8200 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8201 | wxInputStream *result; | |
8202 | PyObject * obj0 = 0 ; | |
8203 | char *kwnames[] = { | |
8204 | (char *) "self", NULL | |
8205 | }; | |
8206 | ||
8207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8209 | { | |
8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8211 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8212 | ||
8213 | wxPyEndAllowThreads(__tstate); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
8216 | { | |
8217 | wxPyInputStream * _ptr = NULL; | |
8218 | ||
8219 | if (result) { | |
8220 | _ptr = new wxPyInputStream(result); | |
8221 | } | |
423f194a | 8222 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8223 | } |
8224 | return resultobj; | |
8225 | fail: | |
8226 | return NULL; | |
8227 | } | |
8228 | ||
8229 | ||
8230 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8231 | PyObject *resultobj; | |
8232 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8233 | wxOutputStream *result; | |
8234 | PyObject * obj0 = 0 ; | |
8235 | char *kwnames[] = { | |
8236 | (char *) "self", NULL | |
8237 | }; | |
8238 | ||
8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",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 = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8244 | ||
8245 | wxPyEndAllowThreads(__tstate); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8249 | return resultobj; | |
8250 | fail: | |
8251 | return NULL; | |
8252 | } | |
8253 | ||
8254 | ||
8255 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8256 | PyObject *resultobj; | |
8257 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8258 | PyObject * obj0 = 0 ; | |
8259 | char *kwnames[] = { | |
8260 | (char *) "self", NULL | |
8261 | }; | |
8262 | ||
8263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
8264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8265 | { | |
8266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8267 | (arg1)->CloseOutput(); | |
8268 | ||
8269 | wxPyEndAllowThreads(__tstate); | |
8270 | if (PyErr_Occurred()) SWIG_fail; | |
8271 | } | |
8272 | Py_INCREF(Py_None); resultobj = Py_None; | |
8273 | return resultobj; | |
8274 | fail: | |
8275 | return NULL; | |
8276 | } | |
8277 | ||
8278 | ||
8279 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8280 | PyObject *resultobj; | |
8281 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8282 | bool result; | |
8283 | PyObject * obj0 = 0 ; | |
8284 | char *kwnames[] = { | |
8285 | (char *) "self", NULL | |
8286 | }; | |
8287 | ||
8288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8290 | { | |
8291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8292 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8293 | ||
8294 | wxPyEndAllowThreads(__tstate); | |
8295 | if (PyErr_Occurred()) SWIG_fail; | |
8296 | } | |
8297 | resultobj = PyInt_FromLong((long)result); | |
8298 | return resultobj; | |
8299 | fail: | |
8300 | return NULL; | |
8301 | } | |
8302 | ||
8303 | ||
8304 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8305 | PyObject *resultobj; | |
8306 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8307 | bool result; | |
8308 | PyObject * obj0 = 0 ; | |
8309 | char *kwnames[] = { | |
8310 | (char *) "self", NULL | |
8311 | }; | |
8312 | ||
8313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8315 | { | |
8316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8317 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8318 | ||
8319 | wxPyEndAllowThreads(__tstate); | |
8320 | if (PyErr_Occurred()) SWIG_fail; | |
8321 | } | |
8322 | resultobj = PyInt_FromLong((long)result); | |
8323 | return resultobj; | |
8324 | fail: | |
8325 | return NULL; | |
8326 | } | |
8327 | ||
8328 | ||
8329 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8330 | PyObject *resultobj; | |
8331 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8332 | bool result; | |
8333 | PyObject * obj0 = 0 ; | |
8334 | char *kwnames[] = { | |
8335 | (char *) "self", NULL | |
8336 | }; | |
8337 | ||
8338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8340 | { | |
8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8342 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8343 | ||
8344 | wxPyEndAllowThreads(__tstate); | |
8345 | if (PyErr_Occurred()) SWIG_fail; | |
8346 | } | |
8347 | resultobj = PyInt_FromLong((long)result); | |
8348 | return resultobj; | |
8349 | fail: | |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
8354 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
8355 | PyObject *obj; | |
8356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8357 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
8358 | Py_INCREF(obj); | |
8359 | return Py_BuildValue((char *)""); | |
8360 | } | |
8361 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8362 | PyObject *resultobj; | |
8363 | int arg1 = (int) 0 ; | |
8364 | int arg2 = (int) 0 ; | |
8365 | int arg3 = (int) 0 ; | |
8366 | wxProcessEvent *result; | |
8367 | char *kwnames[] = { | |
8368 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
8369 | }; | |
8370 | ||
8371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ProcessEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
8372 | { | |
8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8374 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
8375 | ||
8376 | wxPyEndAllowThreads(__tstate); | |
8377 | if (PyErr_Occurred()) SWIG_fail; | |
8378 | } | |
8379 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
8380 | return resultobj; | |
8381 | fail: | |
8382 | return NULL; | |
8383 | } | |
8384 | ||
8385 | ||
8386 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8387 | PyObject *resultobj; | |
8388 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8389 | int result; | |
8390 | PyObject * obj0 = 0 ; | |
8391 | char *kwnames[] = { | |
8392 | (char *) "self", NULL | |
8393 | }; | |
8394 | ||
8395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
8396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8397 | { | |
8398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8399 | result = (int)(arg1)->GetPid(); | |
8400 | ||
8401 | wxPyEndAllowThreads(__tstate); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | resultobj = PyInt_FromLong((long)result); | |
8405 | return resultobj; | |
8406 | fail: | |
8407 | return NULL; | |
8408 | } | |
8409 | ||
8410 | ||
8411 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8412 | PyObject *resultobj; | |
8413 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8414 | int result; | |
8415 | PyObject * obj0 = 0 ; | |
8416 | char *kwnames[] = { | |
8417 | (char *) "self", NULL | |
8418 | }; | |
8419 | ||
8420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
8421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8422 | { | |
8423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8424 | result = (int)(arg1)->GetExitCode(); | |
8425 | ||
8426 | wxPyEndAllowThreads(__tstate); | |
8427 | if (PyErr_Occurred()) SWIG_fail; | |
8428 | } | |
8429 | resultobj = PyInt_FromLong((long)result); | |
8430 | return resultobj; | |
8431 | fail: | |
8432 | return NULL; | |
8433 | } | |
8434 | ||
8435 | ||
8436 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8437 | PyObject *resultobj; | |
8438 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8439 | int arg2 ; | |
8440 | PyObject * obj0 = 0 ; | |
8441 | char *kwnames[] = { | |
8442 | (char *) "self",(char *) "m_pid", NULL | |
8443 | }; | |
8444 | ||
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_pid_set",kwnames,&obj0,&arg2)) goto fail; | |
8446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8447 | if (arg1) (arg1)->m_pid = arg2; | |
8448 | ||
8449 | Py_INCREF(Py_None); resultobj = Py_None; | |
8450 | return resultobj; | |
8451 | fail: | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
8456 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8457 | PyObject *resultobj; | |
8458 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8459 | int result; | |
8460 | PyObject * obj0 = 0 ; | |
8461 | char *kwnames[] = { | |
8462 | (char *) "self", NULL | |
8463 | }; | |
8464 | ||
8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
8466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8467 | result = (int) ((arg1)->m_pid); | |
8468 | ||
8469 | resultobj = PyInt_FromLong((long)result); | |
8470 | return resultobj; | |
8471 | fail: | |
8472 | return NULL; | |
8473 | } | |
8474 | ||
8475 | ||
8476 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8477 | PyObject *resultobj; | |
8478 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8479 | int arg2 ; | |
8480 | PyObject * obj0 = 0 ; | |
8481 | char *kwnames[] = { | |
8482 | (char *) "self",(char *) "m_exitcode", NULL | |
8483 | }; | |
8484 | ||
8485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_exitcode_set",kwnames,&obj0,&arg2)) goto fail; | |
8486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8487 | if (arg1) (arg1)->m_exitcode = arg2; | |
8488 | ||
8489 | Py_INCREF(Py_None); resultobj = Py_None; | |
8490 | return resultobj; | |
8491 | fail: | |
8492 | return NULL; | |
8493 | } | |
8494 | ||
8495 | ||
8496 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8497 | PyObject *resultobj; | |
8498 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8499 | int result; | |
8500 | PyObject * obj0 = 0 ; | |
8501 | char *kwnames[] = { | |
8502 | (char *) "self", NULL | |
8503 | }; | |
8504 | ||
8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
8506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8507 | result = (int) ((arg1)->m_exitcode); | |
8508 | ||
8509 | resultobj = PyInt_FromLong((long)result); | |
8510 | return resultobj; | |
8511 | fail: | |
8512 | return NULL; | |
8513 | } | |
8514 | ||
8515 | ||
8516 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
8517 | PyObject *obj; | |
8518 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8519 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
8520 | Py_INCREF(obj); | |
8521 | return Py_BuildValue((char *)""); | |
8522 | } | |
8523 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8524 | PyObject *resultobj; | |
8525 | wxString *arg1 = 0 ; | |
8526 | int arg2 = (int) wxEXEC_ASYNC ; | |
8527 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
8528 | long result; | |
423f194a | 8529 | bool temp1 = False ; |
d14a1e28 RD |
8530 | PyObject * obj0 = 0 ; |
8531 | PyObject * obj2 = 0 ; | |
8532 | char *kwnames[] = { | |
8533 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
8534 | }; | |
8535 | ||
8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Execute",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8537 | { | |
8538 | arg1 = wxString_in_helper(obj0); | |
8539 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8540 | temp1 = True; |
d14a1e28 RD |
8541 | } |
8542 | if (obj2) { | |
8543 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8544 | } | |
8545 | { | |
8546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8547 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
8548 | ||
8549 | wxPyEndAllowThreads(__tstate); | |
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
8552 | resultobj = PyInt_FromLong((long)result); | |
8553 | { | |
8554 | if (temp1) | |
8555 | delete arg1; | |
8556 | } | |
8557 | return resultobj; | |
8558 | fail: | |
8559 | { | |
8560 | if (temp1) | |
8561 | delete arg1; | |
8562 | } | |
8563 | return NULL; | |
8564 | } | |
8565 | ||
8566 | ||
8567 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8568 | PyObject *resultobj; | |
8569 | int arg1 = (int) wxJOYSTICK1 ; | |
8570 | wxJoystick *result; | |
8571 | char *kwnames[] = { | |
8572 | (char *) "joystick", NULL | |
8573 | }; | |
8574 | ||
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_Joystick",kwnames,&arg1)) goto fail; | |
8576 | { | |
8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8578 | result = (wxJoystick *)new wxJoystick(arg1); | |
8579 | ||
8580 | wxPyEndAllowThreads(__tstate); | |
8581 | if (PyErr_Occurred()) SWIG_fail; | |
8582 | } | |
8583 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
8584 | return resultobj; | |
8585 | fail: | |
8586 | return NULL; | |
8587 | } | |
8588 | ||
8589 | ||
8590 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8591 | PyObject *resultobj; | |
8592 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8593 | PyObject * obj0 = 0 ; | |
8594 | char *kwnames[] = { | |
8595 | (char *) "self", NULL | |
8596 | }; | |
8597 | ||
8598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
8599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8600 | { | |
8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8602 | delete arg1; | |
8603 | ||
8604 | wxPyEndAllowThreads(__tstate); | |
8605 | if (PyErr_Occurred()) SWIG_fail; | |
8606 | } | |
8607 | Py_INCREF(Py_None); resultobj = Py_None; | |
8608 | return resultobj; | |
8609 | fail: | |
8610 | return NULL; | |
8611 | } | |
8612 | ||
8613 | ||
8614 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8615 | PyObject *resultobj; | |
8616 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8617 | wxPoint result; | |
8618 | PyObject * obj0 = 0 ; | |
8619 | char *kwnames[] = { | |
8620 | (char *) "self", NULL | |
8621 | }; | |
8622 | ||
8623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
8624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8625 | { | |
8626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8627 | result = (arg1)->GetPosition(); | |
8628 | ||
8629 | wxPyEndAllowThreads(__tstate); | |
8630 | if (PyErr_Occurred()) SWIG_fail; | |
8631 | } | |
8632 | { | |
8633 | wxPoint * resultptr; | |
8634 | resultptr = new wxPoint((wxPoint &) result); | |
8635 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
8636 | } | |
8637 | return resultobj; | |
8638 | fail: | |
8639 | return NULL; | |
8640 | } | |
8641 | ||
8642 | ||
8643 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8644 | PyObject *resultobj; | |
8645 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8646 | int result; | |
8647 | PyObject * obj0 = 0 ; | |
8648 | char *kwnames[] = { | |
8649 | (char *) "self", NULL | |
8650 | }; | |
8651 | ||
8652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
8653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8654 | { | |
8655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8656 | result = (int)(arg1)->GetZPosition(); | |
8657 | ||
8658 | wxPyEndAllowThreads(__tstate); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
8661 | resultobj = PyInt_FromLong((long)result); | |
8662 | return resultobj; | |
8663 | fail: | |
8664 | return NULL; | |
8665 | } | |
8666 | ||
8667 | ||
8668 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8669 | PyObject *resultobj; | |
8670 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8671 | int result; | |
8672 | PyObject * obj0 = 0 ; | |
8673 | char *kwnames[] = { | |
8674 | (char *) "self", NULL | |
8675 | }; | |
8676 | ||
8677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
8678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8679 | { | |
8680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8681 | result = (int)(arg1)->GetButtonState(); | |
8682 | ||
8683 | wxPyEndAllowThreads(__tstate); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | resultobj = PyInt_FromLong((long)result); | |
8687 | return resultobj; | |
8688 | fail: | |
8689 | return NULL; | |
8690 | } | |
8691 | ||
8692 | ||
8693 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8694 | PyObject *resultobj; | |
8695 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8696 | int result; | |
8697 | PyObject * obj0 = 0 ; | |
8698 | char *kwnames[] = { | |
8699 | (char *) "self", NULL | |
8700 | }; | |
8701 | ||
8702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
8703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8704 | { | |
8705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8706 | result = (int)(arg1)->GetPOVPosition(); | |
8707 | ||
8708 | wxPyEndAllowThreads(__tstate); | |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
8710 | } | |
8711 | resultobj = PyInt_FromLong((long)result); | |
8712 | return resultobj; | |
8713 | fail: | |
8714 | return NULL; | |
8715 | } | |
8716 | ||
8717 | ||
8718 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8719 | PyObject *resultobj; | |
8720 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8721 | int result; | |
8722 | PyObject * obj0 = 0 ; | |
8723 | char *kwnames[] = { | |
8724 | (char *) "self", NULL | |
8725 | }; | |
8726 | ||
8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
8728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8729 | { | |
8730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8731 | result = (int)(arg1)->GetPOVCTSPosition(); | |
8732 | ||
8733 | wxPyEndAllowThreads(__tstate); | |
8734 | if (PyErr_Occurred()) SWIG_fail; | |
8735 | } | |
8736 | resultobj = PyInt_FromLong((long)result); | |
8737 | return resultobj; | |
8738 | fail: | |
8739 | return NULL; | |
8740 | } | |
8741 | ||
8742 | ||
8743 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8744 | PyObject *resultobj; | |
8745 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8746 | int result; | |
8747 | PyObject * obj0 = 0 ; | |
8748 | char *kwnames[] = { | |
8749 | (char *) "self", NULL | |
8750 | }; | |
8751 | ||
8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
8753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8754 | { | |
8755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8756 | result = (int)(arg1)->GetRudderPosition(); | |
8757 | ||
8758 | wxPyEndAllowThreads(__tstate); | |
8759 | if (PyErr_Occurred()) SWIG_fail; | |
8760 | } | |
8761 | resultobj = PyInt_FromLong((long)result); | |
8762 | return resultobj; | |
8763 | fail: | |
8764 | return NULL; | |
8765 | } | |
8766 | ||
8767 | ||
8768 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8769 | PyObject *resultobj; | |
8770 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8771 | int result; | |
8772 | PyObject * obj0 = 0 ; | |
8773 | char *kwnames[] = { | |
8774 | (char *) "self", NULL | |
8775 | }; | |
8776 | ||
8777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
8778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8779 | { | |
8780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8781 | result = (int)(arg1)->GetUPosition(); | |
8782 | ||
8783 | wxPyEndAllowThreads(__tstate); | |
8784 | if (PyErr_Occurred()) SWIG_fail; | |
8785 | } | |
8786 | resultobj = PyInt_FromLong((long)result); | |
8787 | return resultobj; | |
8788 | fail: | |
8789 | return NULL; | |
8790 | } | |
8791 | ||
8792 | ||
8793 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8794 | PyObject *resultobj; | |
8795 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8796 | int result; | |
8797 | PyObject * obj0 = 0 ; | |
8798 | char *kwnames[] = { | |
8799 | (char *) "self", NULL | |
8800 | }; | |
8801 | ||
8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
8803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8804 | { | |
8805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8806 | result = (int)(arg1)->GetVPosition(); | |
8807 | ||
8808 | wxPyEndAllowThreads(__tstate); | |
8809 | if (PyErr_Occurred()) SWIG_fail; | |
8810 | } | |
8811 | resultobj = PyInt_FromLong((long)result); | |
8812 | return resultobj; | |
8813 | fail: | |
8814 | return NULL; | |
8815 | } | |
8816 | ||
8817 | ||
8818 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8819 | PyObject *resultobj; | |
8820 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8821 | int result; | |
8822 | PyObject * obj0 = 0 ; | |
8823 | char *kwnames[] = { | |
8824 | (char *) "self", NULL | |
8825 | }; | |
8826 | ||
8827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
8828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8829 | { | |
8830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8831 | result = (int)(arg1)->GetMovementThreshold(); | |
8832 | ||
8833 | wxPyEndAllowThreads(__tstate); | |
8834 | if (PyErr_Occurred()) SWIG_fail; | |
8835 | } | |
8836 | resultobj = PyInt_FromLong((long)result); | |
8837 | return resultobj; | |
8838 | fail: | |
8839 | return NULL; | |
8840 | } | |
8841 | ||
8842 | ||
8843 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8844 | PyObject *resultobj; | |
8845 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8846 | int arg2 ; | |
8847 | PyObject * obj0 = 0 ; | |
8848 | char *kwnames[] = { | |
8849 | (char *) "self",(char *) "threshold", NULL | |
8850 | }; | |
8851 | ||
8852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Joystick_SetMovementThreshold",kwnames,&obj0,&arg2)) goto fail; | |
8853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8854 | { | |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | (arg1)->SetMovementThreshold(arg2); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
8861 | Py_INCREF(Py_None); resultobj = Py_None; | |
8862 | return resultobj; | |
8863 | fail: | |
8864 | return NULL; | |
8865 | } | |
8866 | ||
8867 | ||
8868 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8869 | PyObject *resultobj; | |
8870 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8871 | bool result; | |
8872 | PyObject * obj0 = 0 ; | |
8873 | char *kwnames[] = { | |
8874 | (char *) "self", NULL | |
8875 | }; | |
8876 | ||
8877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
8878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8879 | { | |
8880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8881 | result = (bool)(arg1)->IsOk(); | |
8882 | ||
8883 | wxPyEndAllowThreads(__tstate); | |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
8885 | } | |
8886 | resultobj = PyInt_FromLong((long)result); | |
8887 | return resultobj; | |
8888 | fail: | |
8889 | return NULL; | |
8890 | } | |
8891 | ||
8892 | ||
8893 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8894 | PyObject *resultobj; | |
8895 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8896 | int result; | |
8897 | PyObject * obj0 = 0 ; | |
8898 | char *kwnames[] = { | |
8899 | (char *) "self", NULL | |
8900 | }; | |
8901 | ||
8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
8903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8904 | { | |
8905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8906 | result = (int)(arg1)->GetNumberJoysticks(); | |
8907 | ||
8908 | wxPyEndAllowThreads(__tstate); | |
8909 | if (PyErr_Occurred()) SWIG_fail; | |
8910 | } | |
8911 | resultobj = PyInt_FromLong((long)result); | |
8912 | return resultobj; | |
8913 | fail: | |
8914 | return NULL; | |
8915 | } | |
8916 | ||
8917 | ||
8918 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8919 | PyObject *resultobj; | |
8920 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8921 | int result; | |
8922 | PyObject * obj0 = 0 ; | |
8923 | char *kwnames[] = { | |
8924 | (char *) "self", NULL | |
8925 | }; | |
8926 | ||
8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
8928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8929 | { | |
8930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8931 | result = (int)(arg1)->GetManufacturerId(); | |
8932 | ||
8933 | wxPyEndAllowThreads(__tstate); | |
8934 | if (PyErr_Occurred()) SWIG_fail; | |
8935 | } | |
8936 | resultobj = PyInt_FromLong((long)result); | |
8937 | return resultobj; | |
8938 | fail: | |
8939 | return NULL; | |
8940 | } | |
8941 | ||
8942 | ||
8943 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8944 | PyObject *resultobj; | |
8945 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8946 | int result; | |
8947 | PyObject * obj0 = 0 ; | |
8948 | char *kwnames[] = { | |
8949 | (char *) "self", NULL | |
8950 | }; | |
8951 | ||
8952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
8953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8954 | { | |
8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8956 | result = (int)(arg1)->GetProductId(); | |
8957 | ||
8958 | wxPyEndAllowThreads(__tstate); | |
8959 | if (PyErr_Occurred()) SWIG_fail; | |
8960 | } | |
8961 | resultobj = PyInt_FromLong((long)result); | |
8962 | return resultobj; | |
8963 | fail: | |
8964 | return NULL; | |
8965 | } | |
8966 | ||
8967 | ||
8968 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8969 | PyObject *resultobj; | |
8970 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8971 | wxString result; | |
8972 | PyObject * obj0 = 0 ; | |
8973 | char *kwnames[] = { | |
8974 | (char *) "self", NULL | |
8975 | }; | |
8976 | ||
8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
8978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8979 | { | |
8980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8981 | result = (arg1)->GetProductName(); | |
8982 | ||
8983 | wxPyEndAllowThreads(__tstate); | |
8984 | if (PyErr_Occurred()) SWIG_fail; | |
8985 | } | |
8986 | { | |
8987 | #if wxUSE_UNICODE | |
8988 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8989 | #else | |
8990 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8991 | #endif | |
8992 | } | |
8993 | return resultobj; | |
8994 | fail: | |
8995 | return NULL; | |
8996 | } | |
8997 | ||
8998 | ||
8999 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9000 | PyObject *resultobj; | |
9001 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9002 | int result; | |
9003 | PyObject * obj0 = 0 ; | |
9004 | char *kwnames[] = { | |
9005 | (char *) "self", NULL | |
9006 | }; | |
9007 | ||
9008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9010 | { | |
9011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9012 | result = (int)(arg1)->GetXMin(); | |
9013 | ||
9014 | wxPyEndAllowThreads(__tstate); | |
9015 | if (PyErr_Occurred()) SWIG_fail; | |
9016 | } | |
9017 | resultobj = PyInt_FromLong((long)result); | |
9018 | return resultobj; | |
9019 | fail: | |
9020 | return NULL; | |
9021 | } | |
9022 | ||
9023 | ||
9024 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9025 | PyObject *resultobj; | |
9026 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9027 | int result; | |
9028 | PyObject * obj0 = 0 ; | |
9029 | char *kwnames[] = { | |
9030 | (char *) "self", NULL | |
9031 | }; | |
9032 | ||
9033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9035 | { | |
9036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9037 | result = (int)(arg1)->GetYMin(); | |
9038 | ||
9039 | wxPyEndAllowThreads(__tstate); | |
9040 | if (PyErr_Occurred()) SWIG_fail; | |
9041 | } | |
9042 | resultobj = PyInt_FromLong((long)result); | |
9043 | return resultobj; | |
9044 | fail: | |
9045 | return NULL; | |
9046 | } | |
9047 | ||
9048 | ||
9049 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9050 | PyObject *resultobj; | |
9051 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9052 | int result; | |
9053 | PyObject * obj0 = 0 ; | |
9054 | char *kwnames[] = { | |
9055 | (char *) "self", NULL | |
9056 | }; | |
9057 | ||
9058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9060 | { | |
9061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9062 | result = (int)(arg1)->GetZMin(); | |
9063 | ||
9064 | wxPyEndAllowThreads(__tstate); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | resultobj = PyInt_FromLong((long)result); | |
9068 | return resultobj; | |
9069 | fail: | |
9070 | return NULL; | |
9071 | } | |
9072 | ||
9073 | ||
9074 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9075 | PyObject *resultobj; | |
9076 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9077 | int result; | |
9078 | PyObject * obj0 = 0 ; | |
9079 | char *kwnames[] = { | |
9080 | (char *) "self", NULL | |
9081 | }; | |
9082 | ||
9083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9085 | { | |
9086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9087 | result = (int)(arg1)->GetXMax(); | |
9088 | ||
9089 | wxPyEndAllowThreads(__tstate); | |
9090 | if (PyErr_Occurred()) SWIG_fail; | |
9091 | } | |
9092 | resultobj = PyInt_FromLong((long)result); | |
9093 | return resultobj; | |
9094 | fail: | |
9095 | return NULL; | |
9096 | } | |
9097 | ||
9098 | ||
9099 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9100 | PyObject *resultobj; | |
9101 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9102 | int result; | |
9103 | PyObject * obj0 = 0 ; | |
9104 | char *kwnames[] = { | |
9105 | (char *) "self", NULL | |
9106 | }; | |
9107 | ||
9108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9110 | { | |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9112 | result = (int)(arg1)->GetYMax(); | |
9113 | ||
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
9117 | resultobj = PyInt_FromLong((long)result); | |
9118 | return resultobj; | |
9119 | fail: | |
9120 | return NULL; | |
9121 | } | |
9122 | ||
9123 | ||
9124 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9125 | PyObject *resultobj; | |
9126 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9127 | int result; | |
9128 | PyObject * obj0 = 0 ; | |
9129 | char *kwnames[] = { | |
9130 | (char *) "self", NULL | |
9131 | }; | |
9132 | ||
9133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9135 | { | |
9136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9137 | result = (int)(arg1)->GetZMax(); | |
9138 | ||
9139 | wxPyEndAllowThreads(__tstate); | |
9140 | if (PyErr_Occurred()) SWIG_fail; | |
9141 | } | |
9142 | resultobj = PyInt_FromLong((long)result); | |
9143 | return resultobj; | |
9144 | fail: | |
9145 | return NULL; | |
9146 | } | |
9147 | ||
9148 | ||
9149 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9150 | PyObject *resultobj; | |
9151 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9152 | int result; | |
9153 | PyObject * obj0 = 0 ; | |
9154 | char *kwnames[] = { | |
9155 | (char *) "self", NULL | |
9156 | }; | |
9157 | ||
9158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9160 | { | |
9161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9162 | result = (int)(arg1)->GetNumberButtons(); | |
9163 | ||
9164 | wxPyEndAllowThreads(__tstate); | |
9165 | if (PyErr_Occurred()) SWIG_fail; | |
9166 | } | |
9167 | resultobj = PyInt_FromLong((long)result); | |
9168 | return resultobj; | |
9169 | fail: | |
9170 | return NULL; | |
9171 | } | |
9172 | ||
9173 | ||
9174 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9175 | PyObject *resultobj; | |
9176 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9177 | int result; | |
9178 | PyObject * obj0 = 0 ; | |
9179 | char *kwnames[] = { | |
9180 | (char *) "self", NULL | |
9181 | }; | |
9182 | ||
9183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9185 | { | |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | result = (int)(arg1)->GetNumberAxes(); | |
9188 | ||
9189 | wxPyEndAllowThreads(__tstate); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | } | |
9192 | resultobj = PyInt_FromLong((long)result); | |
9193 | return resultobj; | |
9194 | fail: | |
9195 | return NULL; | |
9196 | } | |
9197 | ||
9198 | ||
9199 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9200 | PyObject *resultobj; | |
9201 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9202 | int result; | |
9203 | PyObject * obj0 = 0 ; | |
9204 | char *kwnames[] = { | |
9205 | (char *) "self", NULL | |
9206 | }; | |
9207 | ||
9208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9210 | { | |
9211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9212 | result = (int)(arg1)->GetMaxButtons(); | |
9213 | ||
9214 | wxPyEndAllowThreads(__tstate); | |
9215 | if (PyErr_Occurred()) SWIG_fail; | |
9216 | } | |
9217 | resultobj = PyInt_FromLong((long)result); | |
9218 | return resultobj; | |
9219 | fail: | |
9220 | return NULL; | |
9221 | } | |
9222 | ||
9223 | ||
9224 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9225 | PyObject *resultobj; | |
9226 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9227 | int result; | |
9228 | PyObject * obj0 = 0 ; | |
9229 | char *kwnames[] = { | |
9230 | (char *) "self", NULL | |
9231 | }; | |
9232 | ||
9233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9235 | { | |
9236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9237 | result = (int)(arg1)->GetMaxAxes(); | |
9238 | ||
9239 | wxPyEndAllowThreads(__tstate); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
9242 | resultobj = PyInt_FromLong((long)result); | |
9243 | return resultobj; | |
9244 | fail: | |
9245 | return NULL; | |
9246 | } | |
9247 | ||
9248 | ||
9249 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9250 | PyObject *resultobj; | |
9251 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9252 | int result; | |
9253 | PyObject * obj0 = 0 ; | |
9254 | char *kwnames[] = { | |
9255 | (char *) "self", NULL | |
9256 | }; | |
9257 | ||
9258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9260 | { | |
9261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9262 | result = (int)(arg1)->GetPollingMin(); | |
9263 | ||
9264 | wxPyEndAllowThreads(__tstate); | |
9265 | if (PyErr_Occurred()) SWIG_fail; | |
9266 | } | |
9267 | resultobj = PyInt_FromLong((long)result); | |
9268 | return resultobj; | |
9269 | fail: | |
9270 | return NULL; | |
9271 | } | |
9272 | ||
9273 | ||
9274 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9275 | PyObject *resultobj; | |
9276 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9277 | int result; | |
9278 | PyObject * obj0 = 0 ; | |
9279 | char *kwnames[] = { | |
9280 | (char *) "self", NULL | |
9281 | }; | |
9282 | ||
9283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
9284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9285 | { | |
9286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9287 | result = (int)(arg1)->GetPollingMax(); | |
9288 | ||
9289 | wxPyEndAllowThreads(__tstate); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
9291 | } | |
9292 | resultobj = PyInt_FromLong((long)result); | |
9293 | return resultobj; | |
9294 | fail: | |
9295 | return NULL; | |
9296 | } | |
9297 | ||
9298 | ||
9299 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9300 | PyObject *resultobj; | |
9301 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9302 | int result; | |
9303 | PyObject * obj0 = 0 ; | |
9304 | char *kwnames[] = { | |
9305 | (char *) "self", NULL | |
9306 | }; | |
9307 | ||
9308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
9309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9310 | { | |
9311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9312 | result = (int)(arg1)->GetRudderMin(); | |
9313 | ||
9314 | wxPyEndAllowThreads(__tstate); | |
9315 | if (PyErr_Occurred()) SWIG_fail; | |
9316 | } | |
9317 | resultobj = PyInt_FromLong((long)result); | |
9318 | return resultobj; | |
9319 | fail: | |
9320 | return NULL; | |
9321 | } | |
9322 | ||
9323 | ||
9324 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9325 | PyObject *resultobj; | |
9326 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9327 | int result; | |
9328 | PyObject * obj0 = 0 ; | |
9329 | char *kwnames[] = { | |
9330 | (char *) "self", NULL | |
9331 | }; | |
9332 | ||
9333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
9334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9335 | { | |
9336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9337 | result = (int)(arg1)->GetRudderMax(); | |
9338 | ||
9339 | wxPyEndAllowThreads(__tstate); | |
9340 | if (PyErr_Occurred()) SWIG_fail; | |
9341 | } | |
9342 | resultobj = PyInt_FromLong((long)result); | |
9343 | return resultobj; | |
9344 | fail: | |
9345 | return NULL; | |
9346 | } | |
9347 | ||
9348 | ||
9349 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9350 | PyObject *resultobj; | |
9351 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9352 | int result; | |
9353 | PyObject * obj0 = 0 ; | |
9354 | char *kwnames[] = { | |
9355 | (char *) "self", NULL | |
9356 | }; | |
9357 | ||
9358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
9359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9360 | { | |
9361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9362 | result = (int)(arg1)->GetUMin(); | |
9363 | ||
9364 | wxPyEndAllowThreads(__tstate); | |
9365 | if (PyErr_Occurred()) SWIG_fail; | |
9366 | } | |
9367 | resultobj = PyInt_FromLong((long)result); | |
9368 | return resultobj; | |
9369 | fail: | |
9370 | return NULL; | |
9371 | } | |
9372 | ||
9373 | ||
9374 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9375 | PyObject *resultobj; | |
9376 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9377 | int result; | |
9378 | PyObject * obj0 = 0 ; | |
9379 | char *kwnames[] = { | |
9380 | (char *) "self", NULL | |
9381 | }; | |
9382 | ||
9383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
9384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9385 | { | |
9386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9387 | result = (int)(arg1)->GetUMax(); | |
9388 | ||
9389 | wxPyEndAllowThreads(__tstate); | |
9390 | if (PyErr_Occurred()) SWIG_fail; | |
9391 | } | |
9392 | resultobj = PyInt_FromLong((long)result); | |
9393 | return resultobj; | |
9394 | fail: | |
9395 | return NULL; | |
9396 | } | |
9397 | ||
9398 | ||
9399 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9400 | PyObject *resultobj; | |
9401 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9402 | int result; | |
9403 | PyObject * obj0 = 0 ; | |
9404 | char *kwnames[] = { | |
9405 | (char *) "self", NULL | |
9406 | }; | |
9407 | ||
9408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
9409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9410 | { | |
9411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9412 | result = (int)(arg1)->GetVMin(); | |
9413 | ||
9414 | wxPyEndAllowThreads(__tstate); | |
9415 | if (PyErr_Occurred()) SWIG_fail; | |
9416 | } | |
9417 | resultobj = PyInt_FromLong((long)result); | |
9418 | return resultobj; | |
9419 | fail: | |
9420 | return NULL; | |
9421 | } | |
9422 | ||
9423 | ||
9424 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9425 | PyObject *resultobj; | |
9426 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9427 | int result; | |
9428 | PyObject * obj0 = 0 ; | |
9429 | char *kwnames[] = { | |
9430 | (char *) "self", NULL | |
9431 | }; | |
9432 | ||
9433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
9434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9435 | { | |
9436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9437 | result = (int)(arg1)->GetVMax(); | |
9438 | ||
9439 | wxPyEndAllowThreads(__tstate); | |
9440 | if (PyErr_Occurred()) SWIG_fail; | |
9441 | } | |
9442 | resultobj = PyInt_FromLong((long)result); | |
9443 | return resultobj; | |
9444 | fail: | |
9445 | return NULL; | |
9446 | } | |
9447 | ||
9448 | ||
9449 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9450 | PyObject *resultobj; | |
9451 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9452 | bool result; | |
9453 | PyObject * obj0 = 0 ; | |
9454 | char *kwnames[] = { | |
9455 | (char *) "self", NULL | |
9456 | }; | |
9457 | ||
9458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
9459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9460 | { | |
9461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9462 | result = (bool)(arg1)->HasRudder(); | |
9463 | ||
9464 | wxPyEndAllowThreads(__tstate); | |
9465 | if (PyErr_Occurred()) SWIG_fail; | |
9466 | } | |
9467 | resultobj = PyInt_FromLong((long)result); | |
9468 | return resultobj; | |
9469 | fail: | |
9470 | return NULL; | |
9471 | } | |
9472 | ||
9473 | ||
9474 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9475 | PyObject *resultobj; | |
9476 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9477 | bool result; | |
9478 | PyObject * obj0 = 0 ; | |
9479 | char *kwnames[] = { | |
9480 | (char *) "self", NULL | |
9481 | }; | |
9482 | ||
9483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
9484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9485 | { | |
9486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9487 | result = (bool)(arg1)->HasZ(); | |
9488 | ||
9489 | wxPyEndAllowThreads(__tstate); | |
9490 | if (PyErr_Occurred()) SWIG_fail; | |
9491 | } | |
9492 | resultobj = PyInt_FromLong((long)result); | |
9493 | return resultobj; | |
9494 | fail: | |
9495 | return NULL; | |
9496 | } | |
9497 | ||
9498 | ||
9499 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9500 | PyObject *resultobj; | |
9501 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9502 | bool result; | |
9503 | PyObject * obj0 = 0 ; | |
9504 | char *kwnames[] = { | |
9505 | (char *) "self", NULL | |
9506 | }; | |
9507 | ||
9508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
9509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9510 | { | |
9511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9512 | result = (bool)(arg1)->HasU(); | |
9513 | ||
9514 | wxPyEndAllowThreads(__tstate); | |
9515 | if (PyErr_Occurred()) SWIG_fail; | |
9516 | } | |
9517 | resultobj = PyInt_FromLong((long)result); | |
9518 | return resultobj; | |
9519 | fail: | |
9520 | return NULL; | |
9521 | } | |
9522 | ||
9523 | ||
9524 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9525 | PyObject *resultobj; | |
9526 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9527 | bool result; | |
9528 | PyObject * obj0 = 0 ; | |
9529 | char *kwnames[] = { | |
9530 | (char *) "self", NULL | |
9531 | }; | |
9532 | ||
9533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
9534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9535 | { | |
9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9537 | result = (bool)(arg1)->HasV(); | |
9538 | ||
9539 | wxPyEndAllowThreads(__tstate); | |
9540 | if (PyErr_Occurred()) SWIG_fail; | |
9541 | } | |
9542 | resultobj = PyInt_FromLong((long)result); | |
9543 | return resultobj; | |
9544 | fail: | |
9545 | return NULL; | |
9546 | } | |
9547 | ||
9548 | ||
9549 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9550 | PyObject *resultobj; | |
9551 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9552 | bool result; | |
9553 | PyObject * obj0 = 0 ; | |
9554 | char *kwnames[] = { | |
9555 | (char *) "self", NULL | |
9556 | }; | |
9557 | ||
9558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
9559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9560 | { | |
9561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9562 | result = (bool)(arg1)->HasPOV(); | |
9563 | ||
9564 | wxPyEndAllowThreads(__tstate); | |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
9566 | } | |
9567 | resultobj = PyInt_FromLong((long)result); | |
9568 | return resultobj; | |
9569 | fail: | |
9570 | return NULL; | |
9571 | } | |
9572 | ||
9573 | ||
9574 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9575 | PyObject *resultobj; | |
9576 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9577 | bool result; | |
9578 | PyObject * obj0 = 0 ; | |
9579 | char *kwnames[] = { | |
9580 | (char *) "self", NULL | |
9581 | }; | |
9582 | ||
9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
9584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9585 | { | |
9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9587 | result = (bool)(arg1)->HasPOV4Dir(); | |
9588 | ||
9589 | wxPyEndAllowThreads(__tstate); | |
9590 | if (PyErr_Occurred()) SWIG_fail; | |
9591 | } | |
9592 | resultobj = PyInt_FromLong((long)result); | |
9593 | return resultobj; | |
9594 | fail: | |
9595 | return NULL; | |
9596 | } | |
9597 | ||
9598 | ||
9599 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9600 | PyObject *resultobj; | |
9601 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9602 | bool result; | |
9603 | PyObject * obj0 = 0 ; | |
9604 | char *kwnames[] = { | |
9605 | (char *) "self", NULL | |
9606 | }; | |
9607 | ||
9608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
9609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9610 | { | |
9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9612 | result = (bool)(arg1)->HasPOVCTS(); | |
9613 | ||
9614 | wxPyEndAllowThreads(__tstate); | |
9615 | if (PyErr_Occurred()) SWIG_fail; | |
9616 | } | |
9617 | resultobj = PyInt_FromLong((long)result); | |
9618 | return resultobj; | |
9619 | fail: | |
9620 | return NULL; | |
9621 | } | |
9622 | ||
9623 | ||
9624 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9625 | PyObject *resultobj; | |
9626 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9627 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9628 | int arg3 = (int) 0 ; | |
9629 | bool result; | |
9630 | PyObject * obj0 = 0 ; | |
9631 | PyObject * obj1 = 0 ; | |
9632 | char *kwnames[] = { | |
9633 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
9634 | }; | |
9635 | ||
9636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Joystick_SetCapture",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9637 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9638 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
9642 | ||
9643 | wxPyEndAllowThreads(__tstate); | |
9644 | if (PyErr_Occurred()) SWIG_fail; | |
9645 | } | |
9646 | resultobj = PyInt_FromLong((long)result); | |
9647 | return resultobj; | |
9648 | fail: | |
9649 | return NULL; | |
9650 | } | |
9651 | ||
9652 | ||
9653 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj; | |
9655 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9656 | bool result; | |
9657 | PyObject * obj0 = 0 ; | |
9658 | char *kwnames[] = { | |
9659 | (char *) "self", NULL | |
9660 | }; | |
9661 | ||
9662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
9663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9664 | { | |
9665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9666 | result = (bool)(arg1)->ReleaseCapture(); | |
9667 | ||
9668 | wxPyEndAllowThreads(__tstate); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
9670 | } | |
9671 | resultobj = PyInt_FromLong((long)result); | |
9672 | return resultobj; | |
9673 | fail: | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
9678 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
9679 | PyObject *obj; | |
9680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9681 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
9682 | Py_INCREF(obj); | |
9683 | return Py_BuildValue((char *)""); | |
9684 | } | |
9685 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9686 | PyObject *resultobj; | |
9687 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9688 | wxPoint *arg2 = (wxPoint *) 0 ; | |
9689 | PyObject * obj0 = 0 ; | |
9690 | PyObject * obj1 = 0 ; | |
9691 | char *kwnames[] = { | |
9692 | (char *) "self",(char *) "m_pos", NULL | |
9693 | }; | |
9694 | ||
9695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
9696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9697 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9698 | if (arg1) (arg1)->m_pos = *arg2; | |
9699 | ||
9700 | Py_INCREF(Py_None); resultobj = Py_None; | |
9701 | return resultobj; | |
9702 | fail: | |
9703 | return NULL; | |
9704 | } | |
9705 | ||
9706 | ||
9707 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9708 | PyObject *resultobj; | |
9709 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9710 | wxPoint *result; | |
9711 | PyObject * obj0 = 0 ; | |
9712 | char *kwnames[] = { | |
9713 | (char *) "self", NULL | |
9714 | }; | |
9715 | ||
9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
9717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9718 | result = (wxPoint *)& ((arg1)->m_pos); | |
9719 | ||
9720 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
9721 | return resultobj; | |
9722 | fail: | |
9723 | return NULL; | |
9724 | } | |
9725 | ||
9726 | ||
9727 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9728 | PyObject *resultobj; | |
9729 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9730 | int arg2 ; | |
9731 | PyObject * obj0 = 0 ; | |
9732 | char *kwnames[] = { | |
9733 | (char *) "self",(char *) "m_zPosition", NULL | |
9734 | }; | |
9735 | ||
9736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_zPosition_set",kwnames,&obj0,&arg2)) goto fail; | |
9737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9738 | if (arg1) (arg1)->m_zPosition = arg2; | |
9739 | ||
9740 | Py_INCREF(Py_None); resultobj = Py_None; | |
9741 | return resultobj; | |
9742 | fail: | |
9743 | return NULL; | |
9744 | } | |
9745 | ||
9746 | ||
9747 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9748 | PyObject *resultobj; | |
9749 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9750 | int result; | |
9751 | PyObject * obj0 = 0 ; | |
9752 | char *kwnames[] = { | |
9753 | (char *) "self", NULL | |
9754 | }; | |
9755 | ||
9756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
9757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9758 | result = (int) ((arg1)->m_zPosition); | |
9759 | ||
9760 | resultobj = PyInt_FromLong((long)result); | |
9761 | return resultobj; | |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
9767 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9768 | PyObject *resultobj; | |
9769 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9770 | int arg2 ; | |
9771 | PyObject * obj0 = 0 ; | |
9772 | char *kwnames[] = { | |
9773 | (char *) "self",(char *) "m_buttonChange", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&arg2)) goto fail; | |
9777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9778 | if (arg1) (arg1)->m_buttonChange = arg2; | |
9779 | ||
9780 | Py_INCREF(Py_None); resultobj = Py_None; | |
9781 | return resultobj; | |
9782 | fail: | |
9783 | return NULL; | |
9784 | } | |
9785 | ||
9786 | ||
9787 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject *resultobj; | |
9789 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9790 | int result; | |
9791 | PyObject * obj0 = 0 ; | |
9792 | char *kwnames[] = { | |
9793 | (char *) "self", NULL | |
9794 | }; | |
9795 | ||
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
9797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9798 | result = (int) ((arg1)->m_buttonChange); | |
9799 | ||
9800 | resultobj = PyInt_FromLong((long)result); | |
9801 | return resultobj; | |
9802 | fail: | |
9803 | return NULL; | |
9804 | } | |
9805 | ||
9806 | ||
9807 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9808 | PyObject *resultobj; | |
9809 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9810 | int arg2 ; | |
9811 | PyObject * obj0 = 0 ; | |
9812 | char *kwnames[] = { | |
9813 | (char *) "self",(char *) "m_buttonState", NULL | |
9814 | }; | |
9815 | ||
9816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonState_set",kwnames,&obj0,&arg2)) goto fail; | |
9817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9818 | if (arg1) (arg1)->m_buttonState = arg2; | |
9819 | ||
9820 | Py_INCREF(Py_None); resultobj = Py_None; | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | return NULL; | |
9824 | } | |
9825 | ||
9826 | ||
9827 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9828 | PyObject *resultobj; | |
9829 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9830 | int result; | |
9831 | PyObject * obj0 = 0 ; | |
9832 | char *kwnames[] = { | |
9833 | (char *) "self", NULL | |
9834 | }; | |
9835 | ||
9836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
9837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9838 | result = (int) ((arg1)->m_buttonState); | |
9839 | ||
9840 | resultobj = PyInt_FromLong((long)result); | |
9841 | return resultobj; | |
9842 | fail: | |
9843 | return NULL; | |
9844 | } | |
9845 | ||
9846 | ||
9847 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9848 | PyObject *resultobj; | |
9849 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9850 | int arg2 ; | |
9851 | PyObject * obj0 = 0 ; | |
9852 | char *kwnames[] = { | |
9853 | (char *) "self",(char *) "m_joyStick", NULL | |
9854 | }; | |
9855 | ||
9856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_joyStick_set",kwnames,&obj0,&arg2)) goto fail; | |
9857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9858 | if (arg1) (arg1)->m_joyStick = arg2; | |
9859 | ||
9860 | Py_INCREF(Py_None); resultobj = Py_None; | |
9861 | return resultobj; | |
9862 | fail: | |
9863 | return NULL; | |
9864 | } | |
9865 | ||
9866 | ||
9867 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9868 | PyObject *resultobj; | |
9869 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9870 | int result; | |
9871 | PyObject * obj0 = 0 ; | |
9872 | char *kwnames[] = { | |
9873 | (char *) "self", NULL | |
9874 | }; | |
9875 | ||
9876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
9877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9878 | result = (int) ((arg1)->m_joyStick); | |
9879 | ||
9880 | resultobj = PyInt_FromLong((long)result); | |
9881 | return resultobj; | |
9882 | fail: | |
9883 | return NULL; | |
9884 | } | |
9885 | ||
9886 | ||
9887 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject *resultobj; | |
9889 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
9890 | int arg2 = (int) 0 ; | |
9891 | int arg3 = (int) wxJOYSTICK1 ; | |
9892 | int arg4 = (int) 0 ; | |
9893 | wxJoystickEvent *result; | |
9894 | char *kwnames[] = { | |
9895 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
9896 | }; | |
9897 | ||
9898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_JoystickEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
9899 | { | |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
9906 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
9907 | return resultobj; | |
9908 | fail: | |
9909 | return NULL; | |
9910 | } | |
9911 | ||
9912 | ||
9913 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject *resultobj; | |
9915 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9916 | wxPoint result; | |
9917 | PyObject * obj0 = 0 ; | |
9918 | char *kwnames[] = { | |
9919 | (char *) "self", NULL | |
9920 | }; | |
9921 | ||
9922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
9923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9924 | { | |
9925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9926 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
9927 | ||
9928 | wxPyEndAllowThreads(__tstate); | |
9929 | if (PyErr_Occurred()) SWIG_fail; | |
9930 | } | |
9931 | { | |
9932 | wxPoint * resultptr; | |
9933 | resultptr = new wxPoint((wxPoint &) result); | |
9934 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9935 | } | |
9936 | return resultobj; | |
9937 | fail: | |
9938 | return NULL; | |
9939 | } | |
9940 | ||
9941 | ||
9942 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9943 | PyObject *resultobj; | |
9944 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9945 | int result; | |
9946 | PyObject * obj0 = 0 ; | |
9947 | char *kwnames[] = { | |
9948 | (char *) "self", NULL | |
9949 | }; | |
9950 | ||
9951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
9952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9953 | { | |
9954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9955 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
9956 | ||
9957 | wxPyEndAllowThreads(__tstate); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | } | |
9960 | resultobj = PyInt_FromLong((long)result); | |
9961 | return resultobj; | |
9962 | fail: | |
9963 | return NULL; | |
9964 | } | |
9965 | ||
9966 | ||
9967 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9968 | PyObject *resultobj; | |
9969 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9970 | int result; | |
9971 | PyObject * obj0 = 0 ; | |
9972 | char *kwnames[] = { | |
9973 | (char *) "self", NULL | |
9974 | }; | |
9975 | ||
9976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
9977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9978 | { | |
9979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9980 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
9981 | ||
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
9985 | resultobj = PyInt_FromLong((long)result); | |
9986 | return resultobj; | |
9987 | fail: | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
9992 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9993 | PyObject *resultobj; | |
9994 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9995 | int result; | |
9996 | PyObject * obj0 = 0 ; | |
9997 | char *kwnames[] = { | |
9998 | (char *) "self", NULL | |
9999 | }; | |
10000 | ||
10001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10003 | { | |
10004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10005 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10006 | ||
10007 | wxPyEndAllowThreads(__tstate); | |
10008 | if (PyErr_Occurred()) SWIG_fail; | |
10009 | } | |
10010 | resultobj = PyInt_FromLong((long)result); | |
10011 | return resultobj; | |
10012 | fail: | |
10013 | return NULL; | |
10014 | } | |
10015 | ||
10016 | ||
10017 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10018 | PyObject *resultobj; | |
10019 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10020 | int result; | |
10021 | PyObject * obj0 = 0 ; | |
10022 | char *kwnames[] = { | |
10023 | (char *) "self", NULL | |
10024 | }; | |
10025 | ||
10026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
10027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10028 | { | |
10029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10030 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10031 | ||
10032 | wxPyEndAllowThreads(__tstate); | |
10033 | if (PyErr_Occurred()) SWIG_fail; | |
10034 | } | |
10035 | resultobj = PyInt_FromLong((long)result); | |
10036 | return resultobj; | |
10037 | fail: | |
10038 | return NULL; | |
10039 | } | |
10040 | ||
10041 | ||
10042 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10043 | PyObject *resultobj; | |
10044 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10045 | int arg2 ; | |
10046 | PyObject * obj0 = 0 ; | |
10047 | char *kwnames[] = { | |
10048 | (char *) "self",(char *) "stick", NULL | |
10049 | }; | |
10050 | ||
10051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetJoystick",kwnames,&obj0,&arg2)) goto fail; | |
10052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10053 | { | |
10054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10055 | (arg1)->SetJoystick(arg2); | |
10056 | ||
10057 | wxPyEndAllowThreads(__tstate); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | } | |
10060 | Py_INCREF(Py_None); resultobj = Py_None; | |
10061 | return resultobj; | |
10062 | fail: | |
10063 | return NULL; | |
10064 | } | |
10065 | ||
10066 | ||
10067 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10068 | PyObject *resultobj; | |
10069 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10070 | int arg2 ; | |
10071 | PyObject * obj0 = 0 ; | |
10072 | char *kwnames[] = { | |
10073 | (char *) "self",(char *) "state", NULL | |
10074 | }; | |
10075 | ||
10076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonState",kwnames,&obj0,&arg2)) goto fail; | |
10077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10078 | { | |
10079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10080 | (arg1)->SetButtonState(arg2); | |
10081 | ||
10082 | wxPyEndAllowThreads(__tstate); | |
10083 | if (PyErr_Occurred()) SWIG_fail; | |
10084 | } | |
10085 | Py_INCREF(Py_None); resultobj = Py_None; | |
10086 | return resultobj; | |
10087 | fail: | |
10088 | return NULL; | |
10089 | } | |
10090 | ||
10091 | ||
10092 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10093 | PyObject *resultobj; | |
10094 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10095 | int arg2 ; | |
10096 | PyObject * obj0 = 0 ; | |
10097 | char *kwnames[] = { | |
10098 | (char *) "self",(char *) "change", NULL | |
10099 | }; | |
10100 | ||
10101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonChange",kwnames,&obj0,&arg2)) goto fail; | |
10102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10103 | { | |
10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10105 | (arg1)->SetButtonChange(arg2); | |
10106 | ||
10107 | wxPyEndAllowThreads(__tstate); | |
10108 | if (PyErr_Occurred()) SWIG_fail; | |
10109 | } | |
10110 | Py_INCREF(Py_None); resultobj = Py_None; | |
10111 | return resultobj; | |
10112 | fail: | |
10113 | return NULL; | |
10114 | } | |
10115 | ||
10116 | ||
10117 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10118 | PyObject *resultobj; | |
10119 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10120 | wxPoint *arg2 = 0 ; | |
10121 | wxPoint temp2 ; | |
10122 | PyObject * obj0 = 0 ; | |
10123 | PyObject * obj1 = 0 ; | |
10124 | char *kwnames[] = { | |
10125 | (char *) "self",(char *) "pos", NULL | |
10126 | }; | |
10127 | ||
10128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10130 | { | |
10131 | arg2 = &temp2; | |
10132 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10133 | } | |
10134 | { | |
10135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10136 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10137 | ||
10138 | wxPyEndAllowThreads(__tstate); | |
10139 | if (PyErr_Occurred()) SWIG_fail; | |
10140 | } | |
10141 | Py_INCREF(Py_None); resultobj = Py_None; | |
10142 | return resultobj; | |
10143 | fail: | |
10144 | return NULL; | |
10145 | } | |
10146 | ||
10147 | ||
10148 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10149 | PyObject *resultobj; | |
10150 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10151 | int arg2 ; | |
10152 | PyObject * obj0 = 0 ; | |
10153 | char *kwnames[] = { | |
10154 | (char *) "self",(char *) "zPos", NULL | |
10155 | }; | |
10156 | ||
10157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetZPosition",kwnames,&obj0,&arg2)) goto fail; | |
10158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10159 | { | |
10160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10161 | (arg1)->SetZPosition(arg2); | |
10162 | ||
10163 | wxPyEndAllowThreads(__tstate); | |
10164 | if (PyErr_Occurred()) SWIG_fail; | |
10165 | } | |
10166 | Py_INCREF(Py_None); resultobj = Py_None; | |
10167 | return resultobj; | |
10168 | fail: | |
10169 | return NULL; | |
10170 | } | |
10171 | ||
10172 | ||
10173 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10174 | PyObject *resultobj; | |
10175 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10176 | bool result; | |
10177 | PyObject * obj0 = 0 ; | |
10178 | char *kwnames[] = { | |
10179 | (char *) "self", NULL | |
10180 | }; | |
10181 | ||
10182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10184 | { | |
10185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10186 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10187 | ||
10188 | wxPyEndAllowThreads(__tstate); | |
10189 | if (PyErr_Occurred()) SWIG_fail; | |
10190 | } | |
10191 | resultobj = PyInt_FromLong((long)result); | |
10192 | return resultobj; | |
10193 | fail: | |
10194 | return NULL; | |
10195 | } | |
10196 | ||
10197 | ||
10198 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10199 | PyObject *resultobj; | |
10200 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10201 | bool result; | |
10202 | PyObject * obj0 = 0 ; | |
10203 | char *kwnames[] = { | |
10204 | (char *) "self", NULL | |
10205 | }; | |
10206 | ||
10207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10209 | { | |
10210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10211 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10212 | ||
10213 | wxPyEndAllowThreads(__tstate); | |
10214 | if (PyErr_Occurred()) SWIG_fail; | |
10215 | } | |
10216 | resultobj = PyInt_FromLong((long)result); | |
10217 | return resultobj; | |
10218 | fail: | |
10219 | return NULL; | |
10220 | } | |
10221 | ||
10222 | ||
10223 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10224 | PyObject *resultobj; | |
10225 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10226 | bool result; | |
10227 | PyObject * obj0 = 0 ; | |
10228 | char *kwnames[] = { | |
10229 | (char *) "self", NULL | |
10230 | }; | |
10231 | ||
10232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
10233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10234 | { | |
10235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10236 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
10237 | ||
10238 | wxPyEndAllowThreads(__tstate); | |
10239 | if (PyErr_Occurred()) SWIG_fail; | |
10240 | } | |
10241 | resultobj = PyInt_FromLong((long)result); | |
10242 | return resultobj; | |
10243 | fail: | |
10244 | return NULL; | |
10245 | } | |
10246 | ||
10247 | ||
10248 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10249 | PyObject *resultobj; | |
10250 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10251 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10252 | bool result; | |
10253 | PyObject * obj0 = 0 ; | |
10254 | char *kwnames[] = { | |
10255 | (char *) "self",(char *) "but", NULL | |
10256 | }; | |
10257 | ||
10258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
10259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10260 | { | |
10261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10262 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
10263 | ||
10264 | wxPyEndAllowThreads(__tstate); | |
10265 | if (PyErr_Occurred()) SWIG_fail; | |
10266 | } | |
10267 | resultobj = PyInt_FromLong((long)result); | |
10268 | return resultobj; | |
10269 | fail: | |
10270 | return NULL; | |
10271 | } | |
10272 | ||
10273 | ||
10274 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10275 | PyObject *resultobj; | |
10276 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10277 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10278 | bool result; | |
10279 | PyObject * obj0 = 0 ; | |
10280 | char *kwnames[] = { | |
10281 | (char *) "self",(char *) "but", NULL | |
10282 | }; | |
10283 | ||
10284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
10285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10286 | { | |
10287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10288 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
10289 | ||
10290 | wxPyEndAllowThreads(__tstate); | |
10291 | if (PyErr_Occurred()) SWIG_fail; | |
10292 | } | |
10293 | resultobj = PyInt_FromLong((long)result); | |
10294 | return resultobj; | |
10295 | fail: | |
10296 | return NULL; | |
10297 | } | |
10298 | ||
10299 | ||
10300 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10301 | PyObject *resultobj; | |
10302 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10303 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10304 | bool result; | |
10305 | PyObject * obj0 = 0 ; | |
10306 | char *kwnames[] = { | |
10307 | (char *) "self",(char *) "but", NULL | |
10308 | }; | |
10309 | ||
10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
10311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10312 | { | |
10313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10314 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
10315 | ||
10316 | wxPyEndAllowThreads(__tstate); | |
10317 | if (PyErr_Occurred()) SWIG_fail; | |
10318 | } | |
10319 | resultobj = PyInt_FromLong((long)result); | |
10320 | return resultobj; | |
10321 | fail: | |
10322 | return NULL; | |
10323 | } | |
10324 | ||
10325 | ||
10326 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
10327 | PyObject *obj; | |
10328 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10329 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
10330 | Py_INCREF(obj); | |
10331 | return Py_BuildValue((char *)""); | |
10332 | } | |
10333 | static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10334 | PyObject *resultobj; | |
10335 | wxString *arg1 = 0 ; | |
423f194a | 10336 | bool arg2 = (bool) False ; |
d14a1e28 | 10337 | wxWave *result; |
423f194a | 10338 | bool temp1 = False ; |
d14a1e28 RD |
10339 | PyObject * obj0 = 0 ; |
10340 | PyObject * obj1 = 0 ; | |
10341 | char *kwnames[] = { | |
10342 | (char *) "fileName",(char *) "isResource", NULL | |
10343 | }; | |
10344 | ||
10345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail; | |
10346 | { | |
10347 | arg1 = wxString_in_helper(obj0); | |
10348 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10349 | temp1 = True; |
d14a1e28 RD |
10350 | } |
10351 | if (obj1) { | |
10352 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
10355 | { | |
10356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10357 | result = (wxWave *)new wxWave((wxString const &)*arg1,arg2); | |
10358 | ||
10359 | wxPyEndAllowThreads(__tstate); | |
10360 | if (PyErr_Occurred()) SWIG_fail; | |
10361 | } | |
10362 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10363 | { | |
10364 | if (temp1) | |
10365 | delete arg1; | |
10366 | } | |
10367 | return resultobj; | |
10368 | fail: | |
10369 | { | |
10370 | if (temp1) | |
10371 | delete arg1; | |
10372 | } | |
10373 | return NULL; | |
10374 | } | |
10375 | ||
10376 | ||
10377 | static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10378 | PyObject *resultobj; | |
10379 | wxString *arg1 = 0 ; | |
10380 | wxWave *result; | |
423f194a | 10381 | bool temp1 = False ; |
d14a1e28 RD |
10382 | PyObject * obj0 = 0 ; |
10383 | char *kwnames[] = { | |
10384 | (char *) "data", NULL | |
10385 | }; | |
10386 | ||
10387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail; | |
10388 | { | |
10389 | arg1 = wxString_in_helper(obj0); | |
10390 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10391 | temp1 = True; |
d14a1e28 RD |
10392 | } |
10393 | { | |
10394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10395 | result = (wxWave *)new_wxWave((wxString const &)*arg1); | |
10396 | ||
10397 | wxPyEndAllowThreads(__tstate); | |
10398 | if (PyErr_Occurred()) SWIG_fail; | |
10399 | } | |
10400 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10401 | { | |
10402 | if (temp1) | |
10403 | delete arg1; | |
10404 | } | |
10405 | return resultobj; | |
10406 | fail: | |
10407 | { | |
10408 | if (temp1) | |
10409 | delete arg1; | |
10410 | } | |
10411 | return NULL; | |
10412 | } | |
10413 | ||
10414 | ||
10415 | static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10416 | PyObject *resultobj; | |
10417 | wxWave *arg1 = (wxWave *) 0 ; | |
10418 | PyObject * obj0 = 0 ; | |
10419 | char *kwnames[] = { | |
10420 | (char *) "self", NULL | |
10421 | }; | |
10422 | ||
10423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail; | |
10424 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10425 | { | |
10426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10427 | delete arg1; | |
10428 | ||
10429 | wxPyEndAllowThreads(__tstate); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
10432 | Py_INCREF(Py_None); resultobj = Py_None; | |
10433 | return resultobj; | |
10434 | fail: | |
10435 | return NULL; | |
10436 | } | |
10437 | ||
10438 | ||
10439 | static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10440 | PyObject *resultobj; | |
10441 | wxWave *arg1 = (wxWave *) 0 ; | |
10442 | bool result; | |
10443 | PyObject * obj0 = 0 ; | |
10444 | char *kwnames[] = { | |
10445 | (char *) "self", NULL | |
10446 | }; | |
10447 | ||
10448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail; | |
10449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10450 | { | |
10451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10452 | result = (bool)((wxWave const *)arg1)->IsOk(); | |
10453 | ||
10454 | wxPyEndAllowThreads(__tstate); | |
10455 | if (PyErr_Occurred()) SWIG_fail; | |
10456 | } | |
10457 | resultobj = PyInt_FromLong((long)result); | |
10458 | return resultobj; | |
10459 | fail: | |
10460 | return NULL; | |
10461 | } | |
10462 | ||
10463 | ||
10464 | static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10465 | PyObject *resultobj; | |
10466 | wxWave *arg1 = (wxWave *) 0 ; | |
423f194a RD |
10467 | bool arg2 = (bool) True ; |
10468 | bool arg3 = (bool) False ; | |
d14a1e28 RD |
10469 | bool result; |
10470 | PyObject * obj0 = 0 ; | |
10471 | PyObject * obj1 = 0 ; | |
10472 | PyObject * obj2 = 0 ; | |
10473 | char *kwnames[] = { | |
10474 | (char *) "self",(char *) "async",(char *) "looped", NULL | |
10475 | }; | |
10476 | ||
10477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10479 | if (obj1) { | |
10480 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | if (obj2) { | |
10484 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
10485 | if (PyErr_Occurred()) SWIG_fail; | |
10486 | } | |
10487 | { | |
10488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10489 | result = (bool)((wxWave const *)arg1)->Play(arg2,arg3); | |
10490 | ||
10491 | wxPyEndAllowThreads(__tstate); | |
10492 | if (PyErr_Occurred()) SWIG_fail; | |
10493 | } | |
10494 | resultobj = PyInt_FromLong((long)result); | |
10495 | return resultobj; | |
10496 | fail: | |
10497 | return NULL; | |
10498 | } | |
10499 | ||
10500 | ||
10501 | static PyObject * Wave_swigregister(PyObject *self, PyObject *args) { | |
10502 | PyObject *obj; | |
10503 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10504 | SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj); | |
10505 | Py_INCREF(obj); | |
10506 | return Py_BuildValue((char *)""); | |
10507 | } | |
10508 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10509 | PyObject *resultobj; | |
10510 | wxString *arg1 = 0 ; | |
10511 | wxString *arg2 = 0 ; | |
10512 | wxString *arg3 = 0 ; | |
10513 | wxString *arg4 = 0 ; | |
10514 | wxFileTypeInfo *result; | |
423f194a RD |
10515 | bool temp1 = False ; |
10516 | bool temp2 = False ; | |
10517 | bool temp3 = False ; | |
10518 | bool temp4 = False ; | |
d14a1e28 RD |
10519 | PyObject * obj0 = 0 ; |
10520 | PyObject * obj1 = 0 ; | |
10521 | PyObject * obj2 = 0 ; | |
10522 | PyObject * obj3 = 0 ; | |
10523 | char *kwnames[] = { | |
10524 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
10525 | }; | |
10526 | ||
10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10528 | { | |
10529 | arg1 = wxString_in_helper(obj0); | |
10530 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10531 | temp1 = True; |
d14a1e28 RD |
10532 | } |
10533 | { | |
10534 | arg2 = wxString_in_helper(obj1); | |
10535 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10536 | temp2 = True; |
d14a1e28 RD |
10537 | } |
10538 | { | |
10539 | arg3 = wxString_in_helper(obj2); | |
10540 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10541 | temp3 = True; |
d14a1e28 RD |
10542 | } |
10543 | { | |
10544 | arg4 = wxString_in_helper(obj3); | |
10545 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10546 | temp4 = True; |
d14a1e28 RD |
10547 | } |
10548 | { | |
10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10550 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
10551 | ||
10552 | wxPyEndAllowThreads(__tstate); | |
10553 | if (PyErr_Occurred()) SWIG_fail; | |
10554 | } | |
10555 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10556 | { | |
10557 | if (temp1) | |
10558 | delete arg1; | |
10559 | } | |
10560 | { | |
10561 | if (temp2) | |
10562 | delete arg2; | |
10563 | } | |
10564 | { | |
10565 | if (temp3) | |
10566 | delete arg3; | |
10567 | } | |
10568 | { | |
10569 | if (temp4) | |
10570 | delete arg4; | |
10571 | } | |
10572 | return resultobj; | |
10573 | fail: | |
10574 | { | |
10575 | if (temp1) | |
10576 | delete arg1; | |
10577 | } | |
10578 | { | |
10579 | if (temp2) | |
10580 | delete arg2; | |
10581 | } | |
10582 | { | |
10583 | if (temp3) | |
10584 | delete arg3; | |
10585 | } | |
10586 | { | |
10587 | if (temp4) | |
10588 | delete arg4; | |
10589 | } | |
10590 | return NULL; | |
10591 | } | |
10592 | ||
10593 | ||
10594 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10595 | PyObject *resultobj; | |
10596 | wxArrayString *arg1 = 0 ; | |
10597 | wxFileTypeInfo *result; | |
10598 | PyObject * obj0 = 0 ; | |
10599 | char *kwnames[] = { | |
10600 | (char *) "sArray", NULL | |
10601 | }; | |
10602 | ||
10603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
10604 | { | |
10605 | if (! PySequence_Check(obj0)) { | |
10606 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10607 | SWIG_fail; | |
10608 | } | |
10609 | arg1 = new wxArrayString; | |
10610 | int i, len=PySequence_Length(obj0); | |
10611 | for (i=0; i<len; i++) { | |
10612 | PyObject* item = PySequence_GetItem(obj0, i); | |
10613 | #if wxUSE_UNICODE | |
10614 | PyObject* str = PyObject_Unicode(item); | |
10615 | #else | |
10616 | PyObject* str = PyObject_Str(item); | |
10617 | #endif | |
10618 | arg1->Add(Py2wxString(str)); | |
10619 | Py_DECREF(item); | |
10620 | Py_DECREF(str); | |
10621 | } | |
10622 | } | |
10623 | { | |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10625 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
10626 | ||
10627 | wxPyEndAllowThreads(__tstate); | |
10628 | if (PyErr_Occurred()) SWIG_fail; | |
10629 | } | |
10630 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10631 | { | |
10632 | if (arg1) delete arg1; | |
10633 | } | |
10634 | return resultobj; | |
10635 | fail: | |
10636 | { | |
10637 | if (arg1) delete arg1; | |
10638 | } | |
10639 | return NULL; | |
10640 | } | |
10641 | ||
10642 | ||
10643 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10644 | PyObject *resultobj; | |
10645 | wxFileTypeInfo *result; | |
10646 | char *kwnames[] = { | |
10647 | NULL | |
10648 | }; | |
10649 | ||
10650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
10651 | { | |
10652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10653 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
10654 | ||
10655 | wxPyEndAllowThreads(__tstate); | |
10656 | if (PyErr_Occurred()) SWIG_fail; | |
10657 | } | |
10658 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10659 | return resultobj; | |
10660 | fail: | |
10661 | return NULL; | |
10662 | } | |
10663 | ||
10664 | ||
10665 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10666 | PyObject *resultobj; | |
10667 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10668 | bool result; | |
10669 | PyObject * obj0 = 0 ; | |
10670 | char *kwnames[] = { | |
10671 | (char *) "self", NULL | |
10672 | }; | |
10673 | ||
10674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
10675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10676 | { | |
10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10678 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
10679 | ||
10680 | wxPyEndAllowThreads(__tstate); | |
10681 | if (PyErr_Occurred()) SWIG_fail; | |
10682 | } | |
10683 | resultobj = PyInt_FromLong((long)result); | |
10684 | return resultobj; | |
10685 | fail: | |
10686 | return NULL; | |
10687 | } | |
10688 | ||
10689 | ||
10690 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10691 | PyObject *resultobj; | |
10692 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10693 | wxString *arg2 = 0 ; | |
10694 | int arg3 = (int) 0 ; | |
423f194a | 10695 | bool temp2 = False ; |
d14a1e28 RD |
10696 | PyObject * obj0 = 0 ; |
10697 | PyObject * obj1 = 0 ; | |
10698 | char *kwnames[] = { | |
10699 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
10700 | }; | |
10701 | ||
10702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10704 | { | |
10705 | arg2 = wxString_in_helper(obj1); | |
10706 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10707 | temp2 = True; |
d14a1e28 RD |
10708 | } |
10709 | { | |
10710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10711 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
10712 | ||
10713 | wxPyEndAllowThreads(__tstate); | |
10714 | if (PyErr_Occurred()) SWIG_fail; | |
10715 | } | |
10716 | Py_INCREF(Py_None); resultobj = Py_None; | |
10717 | { | |
10718 | if (temp2) | |
10719 | delete arg2; | |
10720 | } | |
10721 | return resultobj; | |
10722 | fail: | |
10723 | { | |
10724 | if (temp2) | |
10725 | delete arg2; | |
10726 | } | |
10727 | return NULL; | |
10728 | } | |
10729 | ||
10730 | ||
10731 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10732 | PyObject *resultobj; | |
10733 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10734 | wxString *arg2 = 0 ; | |
423f194a | 10735 | bool temp2 = False ; |
d14a1e28 RD |
10736 | PyObject * obj0 = 0 ; |
10737 | PyObject * obj1 = 0 ; | |
10738 | char *kwnames[] = { | |
10739 | (char *) "self",(char *) "shortDesc", NULL | |
10740 | }; | |
10741 | ||
10742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
10743 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10744 | { | |
10745 | arg2 = wxString_in_helper(obj1); | |
10746 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10747 | temp2 = True; |
d14a1e28 RD |
10748 | } |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | Py_INCREF(Py_None); resultobj = Py_None; | |
10757 | { | |
10758 | if (temp2) | |
10759 | delete arg2; | |
10760 | } | |
10761 | return resultobj; | |
10762 | fail: | |
10763 | { | |
10764 | if (temp2) | |
10765 | delete arg2; | |
10766 | } | |
10767 | return NULL; | |
10768 | } | |
10769 | ||
10770 | ||
10771 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10772 | PyObject *resultobj; | |
10773 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10774 | wxString *result; | |
10775 | PyObject * obj0 = 0 ; | |
10776 | char *kwnames[] = { | |
10777 | (char *) "self", NULL | |
10778 | }; | |
10779 | ||
10780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
10781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10782 | { | |
10783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10784 | { | |
10785 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
10786 | result = (wxString *) &_result_ref; | |
10787 | } | |
10788 | ||
10789 | wxPyEndAllowThreads(__tstate); | |
10790 | if (PyErr_Occurred()) SWIG_fail; | |
10791 | } | |
10792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10793 | return resultobj; | |
10794 | fail: | |
10795 | return NULL; | |
10796 | } | |
10797 | ||
10798 | ||
10799 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10800 | PyObject *resultobj; | |
10801 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10802 | wxString *result; | |
10803 | PyObject * obj0 = 0 ; | |
10804 | char *kwnames[] = { | |
10805 | (char *) "self", NULL | |
10806 | }; | |
10807 | ||
10808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
10809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10810 | { | |
10811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10812 | { | |
10813 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
10814 | result = (wxString *) &_result_ref; | |
10815 | } | |
10816 | ||
10817 | wxPyEndAllowThreads(__tstate); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
10819 | } | |
10820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10821 | return resultobj; | |
10822 | fail: | |
10823 | return NULL; | |
10824 | } | |
10825 | ||
10826 | ||
10827 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10828 | PyObject *resultobj; | |
10829 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10830 | wxString *result; | |
10831 | PyObject * obj0 = 0 ; | |
10832 | char *kwnames[] = { | |
10833 | (char *) "self", NULL | |
10834 | }; | |
10835 | ||
10836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
10837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10838 | { | |
10839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10840 | { | |
10841 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
10842 | result = (wxString *) &_result_ref; | |
10843 | } | |
10844 | ||
10845 | wxPyEndAllowThreads(__tstate); | |
10846 | if (PyErr_Occurred()) SWIG_fail; | |
10847 | } | |
10848 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10849 | return resultobj; | |
10850 | fail: | |
10851 | return NULL; | |
10852 | } | |
10853 | ||
10854 | ||
10855 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10856 | PyObject *resultobj; | |
10857 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10858 | wxString *result; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | char *kwnames[] = { | |
10861 | (char *) "self", NULL | |
10862 | }; | |
10863 | ||
10864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
10865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10866 | { | |
10867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10868 | { | |
10869 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
10870 | result = (wxString *) &_result_ref; | |
10871 | } | |
10872 | ||
10873 | wxPyEndAllowThreads(__tstate); | |
10874 | if (PyErr_Occurred()) SWIG_fail; | |
10875 | } | |
10876 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10877 | return resultobj; | |
10878 | fail: | |
10879 | return NULL; | |
10880 | } | |
10881 | ||
10882 | ||
10883 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10884 | PyObject *resultobj; | |
10885 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10886 | wxString *result; | |
10887 | PyObject * obj0 = 0 ; | |
10888 | char *kwnames[] = { | |
10889 | (char *) "self", NULL | |
10890 | }; | |
10891 | ||
10892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
10893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | { | |
10897 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
10898 | result = (wxString *) &_result_ref; | |
10899 | } | |
10900 | ||
10901 | wxPyEndAllowThreads(__tstate); | |
10902 | if (PyErr_Occurred()) SWIG_fail; | |
10903 | } | |
10904 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10905 | return resultobj; | |
10906 | fail: | |
10907 | return NULL; | |
10908 | } | |
10909 | ||
10910 | ||
10911 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10912 | PyObject *resultobj; | |
10913 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10914 | wxArrayString *result; | |
10915 | PyObject * obj0 = 0 ; | |
10916 | char *kwnames[] = { | |
10917 | (char *) "self", NULL | |
10918 | }; | |
10919 | ||
10920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
10921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10922 | { | |
10923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10924 | { | |
10925 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
10926 | result = (wxArrayString *) &_result_ref; | |
10927 | } | |
10928 | ||
10929 | wxPyEndAllowThreads(__tstate); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
10932 | { | |
10933 | resultobj = wxArrayString2PyList_helper(*result); | |
10934 | } | |
10935 | return resultobj; | |
10936 | fail: | |
10937 | return NULL; | |
10938 | } | |
10939 | ||
10940 | ||
10941 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10942 | PyObject *resultobj; | |
10943 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10944 | int result; | |
10945 | PyObject * obj0 = 0 ; | |
10946 | char *kwnames[] = { | |
10947 | (char *) "self", NULL | |
10948 | }; | |
10949 | ||
10950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
10951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10952 | { | |
10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10954 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
10955 | ||
10956 | wxPyEndAllowThreads(__tstate); | |
10957 | if (PyErr_Occurred()) SWIG_fail; | |
10958 | } | |
10959 | resultobj = PyInt_FromLong((long)result); | |
10960 | return resultobj; | |
10961 | fail: | |
10962 | return NULL; | |
10963 | } | |
10964 | ||
10965 | ||
10966 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10967 | PyObject *resultobj; | |
10968 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10969 | wxString *result; | |
10970 | PyObject * obj0 = 0 ; | |
10971 | char *kwnames[] = { | |
10972 | (char *) "self", NULL | |
10973 | }; | |
10974 | ||
10975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
10976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10977 | { | |
10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10979 | { | |
10980 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
10981 | result = (wxString *) &_result_ref; | |
10982 | } | |
10983 | ||
10984 | wxPyEndAllowThreads(__tstate); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
10987 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
10988 | return resultobj; | |
10989 | fail: | |
10990 | return NULL; | |
10991 | } | |
10992 | ||
10993 | ||
10994 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10995 | PyObject *resultobj; | |
10996 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10997 | int result; | |
10998 | PyObject * obj0 = 0 ; | |
10999 | char *kwnames[] = { | |
11000 | (char *) "self", NULL | |
11001 | }; | |
11002 | ||
11003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
11004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11005 | { | |
11006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11007 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
11008 | ||
11009 | wxPyEndAllowThreads(__tstate); | |
11010 | if (PyErr_Occurred()) SWIG_fail; | |
11011 | } | |
11012 | resultobj = PyInt_FromLong((long)result); | |
11013 | return resultobj; | |
11014 | fail: | |
11015 | return NULL; | |
11016 | } | |
11017 | ||
11018 | ||
11019 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
11020 | PyObject *obj; | |
11021 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11022 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
11023 | Py_INCREF(obj); | |
11024 | return Py_BuildValue((char *)""); | |
11025 | } | |
11026 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11027 | PyObject *resultobj; | |
11028 | wxFileTypeInfo *arg1 = 0 ; | |
11029 | wxFileType *result; | |
11030 | PyObject * obj0 = 0 ; | |
11031 | char *kwnames[] = { | |
11032 | (char *) "ftInfo", NULL | |
11033 | }; | |
11034 | ||
11035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
11036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11037 | if (arg1 == NULL) { | |
11038 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11039 | } | |
11040 | { | |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11042 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
11054 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11057 | PyObject * obj0 = 0 ; | |
11058 | char *kwnames[] = { | |
11059 | (char *) "self", NULL | |
11060 | }; | |
11061 | ||
11062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
11063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | delete arg1; | |
11067 | ||
11068 | wxPyEndAllowThreads(__tstate); | |
11069 | if (PyErr_Occurred()) SWIG_fail; | |
11070 | } | |
11071 | Py_INCREF(Py_None); resultobj = Py_None; | |
11072 | return resultobj; | |
11073 | fail: | |
11074 | return NULL; | |
11075 | } | |
11076 | ||
11077 | ||
11078 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11079 | PyObject *resultobj; | |
11080 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11081 | PyObject *result; | |
11082 | PyObject * obj0 = 0 ; | |
11083 | char *kwnames[] = { | |
11084 | (char *) "self", NULL | |
11085 | }; | |
11086 | ||
11087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
11088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11089 | { | |
11090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11091 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
11092 | ||
11093 | wxPyEndAllowThreads(__tstate); | |
11094 | if (PyErr_Occurred()) SWIG_fail; | |
11095 | } | |
11096 | resultobj = result; | |
11097 | return resultobj; | |
11098 | fail: | |
11099 | return NULL; | |
11100 | } | |
11101 | ||
11102 | ||
11103 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11104 | PyObject *resultobj; | |
11105 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11106 | PyObject *result; | |
11107 | PyObject * obj0 = 0 ; | |
11108 | char *kwnames[] = { | |
11109 | (char *) "self", NULL | |
11110 | }; | |
11111 | ||
11112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
11113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11114 | { | |
11115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11116 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
11117 | ||
11118 | wxPyEndAllowThreads(__tstate); | |
11119 | if (PyErr_Occurred()) SWIG_fail; | |
11120 | } | |
11121 | resultobj = result; | |
11122 | return resultobj; | |
11123 | fail: | |
11124 | return NULL; | |
11125 | } | |
11126 | ||
11127 | ||
11128 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11129 | PyObject *resultobj; | |
11130 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11131 | PyObject *result; | |
11132 | PyObject * obj0 = 0 ; | |
11133 | char *kwnames[] = { | |
11134 | (char *) "self", NULL | |
11135 | }; | |
11136 | ||
11137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
11138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11139 | { | |
11140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11141 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
11142 | ||
11143 | wxPyEndAllowThreads(__tstate); | |
11144 | if (PyErr_Occurred()) SWIG_fail; | |
11145 | } | |
11146 | resultobj = result; | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
11150 | } | |
11151 | ||
11152 | ||
11153 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11154 | PyObject *resultobj; | |
11155 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11156 | wxIcon *result; | |
11157 | PyObject * obj0 = 0 ; | |
11158 | char *kwnames[] = { | |
11159 | (char *) "self", NULL | |
11160 | }; | |
11161 | ||
11162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
11163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11164 | { | |
11165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11166 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
11167 | ||
11168 | wxPyEndAllowThreads(__tstate); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | } | |
11171 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
11172 | return resultobj; | |
11173 | fail: | |
11174 | return NULL; | |
11175 | } | |
11176 | ||
11177 | ||
11178 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11179 | PyObject *resultobj; | |
11180 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11181 | PyObject *result; | |
11182 | PyObject * obj0 = 0 ; | |
11183 | char *kwnames[] = { | |
11184 | (char *) "self", NULL | |
11185 | }; | |
11186 | ||
11187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
11188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11189 | { | |
11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11191 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
11192 | ||
11193 | wxPyEndAllowThreads(__tstate); | |
11194 | if (PyErr_Occurred()) SWIG_fail; | |
11195 | } | |
11196 | resultobj = result; | |
11197 | return resultobj; | |
11198 | fail: | |
11199 | return NULL; | |
11200 | } | |
11201 | ||
11202 | ||
11203 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11204 | PyObject *resultobj; | |
11205 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11206 | PyObject *result; | |
11207 | PyObject * obj0 = 0 ; | |
11208 | char *kwnames[] = { | |
11209 | (char *) "self", NULL | |
11210 | }; | |
11211 | ||
11212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
11213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11214 | { | |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11216 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
11217 | ||
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
11221 | resultobj = result; | |
11222 | return resultobj; | |
11223 | fail: | |
11224 | return NULL; | |
11225 | } | |
11226 | ||
11227 | ||
11228 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11229 | PyObject *resultobj; | |
11230 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11231 | wxString *arg2 = 0 ; | |
11232 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11233 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11234 | PyObject *result; | |
423f194a RD |
11235 | bool temp2 = False ; |
11236 | bool temp3 = False ; | |
d14a1e28 RD |
11237 | PyObject * obj0 = 0 ; |
11238 | PyObject * obj1 = 0 ; | |
11239 | PyObject * obj2 = 0 ; | |
11240 | char *kwnames[] = { | |
11241 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11242 | }; | |
11243 | ||
11244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11246 | { | |
11247 | arg2 = wxString_in_helper(obj1); | |
11248 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11249 | temp2 = True; |
d14a1e28 RD |
11250 | } |
11251 | if (obj2) { | |
11252 | { | |
11253 | arg3 = wxString_in_helper(obj2); | |
11254 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11255 | temp3 = True; |
d14a1e28 RD |
11256 | } |
11257 | } | |
11258 | { | |
11259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11260 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11261 | ||
11262 | wxPyEndAllowThreads(__tstate); | |
11263 | if (PyErr_Occurred()) SWIG_fail; | |
11264 | } | |
11265 | resultobj = result; | |
11266 | { | |
11267 | if (temp2) | |
11268 | delete arg2; | |
11269 | } | |
11270 | { | |
11271 | if (temp3) | |
11272 | delete arg3; | |
11273 | } | |
11274 | return resultobj; | |
11275 | fail: | |
11276 | { | |
11277 | if (temp2) | |
11278 | delete arg2; | |
11279 | } | |
11280 | { | |
11281 | if (temp3) | |
11282 | delete arg3; | |
11283 | } | |
11284 | return NULL; | |
11285 | } | |
11286 | ||
11287 | ||
11288 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11289 | PyObject *resultobj; | |
11290 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11291 | wxString *arg2 = 0 ; | |
11292 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11293 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11294 | PyObject *result; | |
423f194a RD |
11295 | bool temp2 = False ; |
11296 | bool temp3 = False ; | |
d14a1e28 RD |
11297 | PyObject * obj0 = 0 ; |
11298 | PyObject * obj1 = 0 ; | |
11299 | PyObject * obj2 = 0 ; | |
11300 | char *kwnames[] = { | |
11301 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11302 | }; | |
11303 | ||
11304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11306 | { | |
11307 | arg2 = wxString_in_helper(obj1); | |
11308 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11309 | temp2 = True; |
d14a1e28 RD |
11310 | } |
11311 | if (obj2) { | |
11312 | { | |
11313 | arg3 = wxString_in_helper(obj2); | |
11314 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11315 | temp3 = True; |
d14a1e28 RD |
11316 | } |
11317 | } | |
11318 | { | |
11319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11320 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11321 | ||
11322 | wxPyEndAllowThreads(__tstate); | |
11323 | if (PyErr_Occurred()) SWIG_fail; | |
11324 | } | |
11325 | resultobj = result; | |
11326 | { | |
11327 | if (temp2) | |
11328 | delete arg2; | |
11329 | } | |
11330 | { | |
11331 | if (temp3) | |
11332 | delete arg3; | |
11333 | } | |
11334 | return resultobj; | |
11335 | fail: | |
11336 | { | |
11337 | if (temp2) | |
11338 | delete arg2; | |
11339 | } | |
11340 | { | |
11341 | if (temp3) | |
11342 | delete arg3; | |
11343 | } | |
11344 | return NULL; | |
11345 | } | |
11346 | ||
11347 | ||
11348 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11349 | PyObject *resultobj; | |
11350 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11351 | wxString *arg2 = 0 ; | |
11352 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11353 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11354 | PyObject *result; | |
423f194a RD |
11355 | bool temp2 = False ; |
11356 | bool temp3 = False ; | |
d14a1e28 RD |
11357 | PyObject * obj0 = 0 ; |
11358 | PyObject * obj1 = 0 ; | |
11359 | PyObject * obj2 = 0 ; | |
11360 | char *kwnames[] = { | |
11361 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11362 | }; | |
11363 | ||
11364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11366 | { | |
11367 | arg2 = wxString_in_helper(obj1); | |
11368 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11369 | temp2 = True; |
d14a1e28 RD |
11370 | } |
11371 | if (obj2) { | |
11372 | { | |
11373 | arg3 = wxString_in_helper(obj2); | |
11374 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11375 | temp3 = True; |
d14a1e28 RD |
11376 | } |
11377 | } | |
11378 | { | |
11379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11380 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11381 | ||
11382 | wxPyEndAllowThreads(__tstate); | |
11383 | if (PyErr_Occurred()) SWIG_fail; | |
11384 | } | |
11385 | resultobj = result; | |
11386 | { | |
11387 | if (temp2) | |
11388 | delete arg2; | |
11389 | } | |
11390 | { | |
11391 | if (temp3) | |
11392 | delete arg3; | |
11393 | } | |
11394 | return resultobj; | |
11395 | fail: | |
11396 | { | |
11397 | if (temp2) | |
11398 | delete arg2; | |
11399 | } | |
11400 | { | |
11401 | if (temp3) | |
11402 | delete arg3; | |
11403 | } | |
11404 | return NULL; | |
11405 | } | |
11406 | ||
11407 | ||
11408 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11409 | PyObject *resultobj; | |
11410 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11411 | wxString *arg2 = 0 ; | |
11412 | wxString *arg3 = 0 ; | |
423f194a | 11413 | bool arg4 = (bool) True ; |
d14a1e28 | 11414 | bool result; |
423f194a RD |
11415 | bool temp2 = False ; |
11416 | bool temp3 = False ; | |
d14a1e28 RD |
11417 | PyObject * obj0 = 0 ; |
11418 | PyObject * obj1 = 0 ; | |
11419 | PyObject * obj2 = 0 ; | |
11420 | PyObject * obj3 = 0 ; | |
11421 | char *kwnames[] = { | |
11422 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
11423 | }; | |
11424 | ||
11425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11427 | { | |
11428 | arg2 = wxString_in_helper(obj1); | |
11429 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11430 | temp2 = True; |
d14a1e28 RD |
11431 | } |
11432 | { | |
11433 | arg3 = wxString_in_helper(obj2); | |
11434 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11435 | temp3 = True; |
d14a1e28 RD |
11436 | } |
11437 | if (obj3) { | |
11438 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11439 | if (PyErr_Occurred()) SWIG_fail; | |
11440 | } | |
11441 | { | |
11442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11443 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11444 | ||
11445 | wxPyEndAllowThreads(__tstate); | |
11446 | if (PyErr_Occurred()) SWIG_fail; | |
11447 | } | |
11448 | resultobj = PyInt_FromLong((long)result); | |
11449 | { | |
11450 | if (temp2) | |
11451 | delete arg2; | |
11452 | } | |
11453 | { | |
11454 | if (temp3) | |
11455 | delete arg3; | |
11456 | } | |
11457 | return resultobj; | |
11458 | fail: | |
11459 | { | |
11460 | if (temp2) | |
11461 | delete arg2; | |
11462 | } | |
11463 | { | |
11464 | if (temp3) | |
11465 | delete arg3; | |
11466 | } | |
11467 | return NULL; | |
11468 | } | |
11469 | ||
11470 | ||
11471 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11472 | PyObject *resultobj; | |
11473 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11474 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
11475 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11476 | int arg3 = (int) 0 ; | |
11477 | bool result; | |
423f194a | 11478 | bool temp2 = False ; |
d14a1e28 RD |
11479 | PyObject * obj0 = 0 ; |
11480 | PyObject * obj1 = 0 ; | |
11481 | char *kwnames[] = { | |
11482 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
11483 | }; | |
11484 | ||
11485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11487 | if (obj1) { | |
11488 | { | |
11489 | arg2 = wxString_in_helper(obj1); | |
11490 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11491 | temp2 = True; |
d14a1e28 RD |
11492 | } |
11493 | } | |
11494 | { | |
11495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11496 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
11497 | ||
11498 | wxPyEndAllowThreads(__tstate); | |
11499 | if (PyErr_Occurred()) SWIG_fail; | |
11500 | } | |
11501 | resultobj = PyInt_FromLong((long)result); | |
11502 | { | |
11503 | if (temp2) | |
11504 | delete arg2; | |
11505 | } | |
11506 | return resultobj; | |
11507 | fail: | |
11508 | { | |
11509 | if (temp2) | |
11510 | delete arg2; | |
11511 | } | |
11512 | return NULL; | |
11513 | } | |
11514 | ||
11515 | ||
11516 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11517 | PyObject *resultobj; | |
11518 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11519 | bool result; | |
11520 | PyObject * obj0 = 0 ; | |
11521 | char *kwnames[] = { | |
11522 | (char *) "self", NULL | |
11523 | }; | |
11524 | ||
11525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
11526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11527 | { | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | result = (bool)(arg1)->Unassociate(); | |
11530 | ||
11531 | wxPyEndAllowThreads(__tstate); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
11534 | resultobj = PyInt_FromLong((long)result); | |
11535 | return resultobj; | |
11536 | fail: | |
11537 | return NULL; | |
11538 | } | |
11539 | ||
11540 | ||
11541 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11542 | PyObject *resultobj; | |
11543 | wxString *arg1 = 0 ; | |
11544 | wxString *arg2 = 0 ; | |
11545 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11546 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11547 | wxString result; | |
423f194a RD |
11548 | bool temp1 = False ; |
11549 | bool temp2 = False ; | |
11550 | bool temp3 = False ; | |
d14a1e28 RD |
11551 | PyObject * obj0 = 0 ; |
11552 | PyObject * obj1 = 0 ; | |
11553 | PyObject * obj2 = 0 ; | |
11554 | char *kwnames[] = { | |
11555 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
11556 | }; | |
11557 | ||
11558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11559 | { | |
11560 | arg1 = wxString_in_helper(obj0); | |
11561 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11562 | temp1 = True; |
d14a1e28 RD |
11563 | } |
11564 | { | |
11565 | arg2 = wxString_in_helper(obj1); | |
11566 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11567 | temp2 = True; |
d14a1e28 RD |
11568 | } |
11569 | if (obj2) { | |
11570 | { | |
11571 | arg3 = wxString_in_helper(obj2); | |
11572 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11573 | temp3 = True; |
d14a1e28 RD |
11574 | } |
11575 | } | |
11576 | { | |
11577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11578 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11579 | ||
11580 | wxPyEndAllowThreads(__tstate); | |
11581 | if (PyErr_Occurred()) SWIG_fail; | |
11582 | } | |
11583 | { | |
11584 | #if wxUSE_UNICODE | |
11585 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11586 | #else | |
11587 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11588 | #endif | |
11589 | } | |
11590 | { | |
11591 | if (temp1) | |
11592 | delete arg1; | |
11593 | } | |
11594 | { | |
11595 | if (temp2) | |
11596 | delete arg2; | |
11597 | } | |
11598 | { | |
11599 | if (temp3) | |
11600 | delete arg3; | |
11601 | } | |
11602 | return resultobj; | |
11603 | fail: | |
11604 | { | |
11605 | if (temp1) | |
11606 | delete arg1; | |
11607 | } | |
11608 | { | |
11609 | if (temp2) | |
11610 | delete arg2; | |
11611 | } | |
11612 | { | |
11613 | if (temp3) | |
11614 | delete arg3; | |
11615 | } | |
11616 | return NULL; | |
11617 | } | |
11618 | ||
11619 | ||
11620 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
11621 | PyObject *obj; | |
11622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11623 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
11624 | Py_INCREF(obj); | |
11625 | return Py_BuildValue((char *)""); | |
11626 | } | |
11627 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
11628 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
11629 | return 1; | |
11630 | } | |
11631 | ||
11632 | ||
11633 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
11634 | PyObject *pyobj; | |
11635 | ||
11636 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
11637 | return pyobj; | |
11638 | } | |
11639 | ||
11640 | ||
11641 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11642 | PyObject *resultobj; | |
11643 | wxString *arg1 = 0 ; | |
11644 | wxString *arg2 = 0 ; | |
11645 | bool result; | |
423f194a RD |
11646 | bool temp1 = False ; |
11647 | bool temp2 = False ; | |
d14a1e28 RD |
11648 | PyObject * obj0 = 0 ; |
11649 | PyObject * obj1 = 0 ; | |
11650 | char *kwnames[] = { | |
11651 | (char *) "mimeType",(char *) "wildcard", NULL | |
11652 | }; | |
11653 | ||
11654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
11655 | { | |
11656 | arg1 = wxString_in_helper(obj0); | |
11657 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11658 | temp1 = True; |
d14a1e28 RD |
11659 | } |
11660 | { | |
11661 | arg2 = wxString_in_helper(obj1); | |
11662 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11663 | temp2 = True; |
d14a1e28 RD |
11664 | } |
11665 | { | |
11666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11667 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
11668 | ||
11669 | wxPyEndAllowThreads(__tstate); | |
11670 | if (PyErr_Occurred()) SWIG_fail; | |
11671 | } | |
11672 | resultobj = PyInt_FromLong((long)result); | |
11673 | { | |
11674 | if (temp1) | |
11675 | delete arg1; | |
11676 | } | |
11677 | { | |
11678 | if (temp2) | |
11679 | delete arg2; | |
11680 | } | |
11681 | return resultobj; | |
11682 | fail: | |
11683 | { | |
11684 | if (temp1) | |
11685 | delete arg1; | |
11686 | } | |
11687 | { | |
11688 | if (temp2) | |
11689 | delete arg2; | |
11690 | } | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
11695 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11696 | PyObject *resultobj; | |
11697 | wxMimeTypesManager *result; | |
11698 | char *kwnames[] = { | |
11699 | NULL | |
11700 | }; | |
11701 | ||
11702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
11703 | { | |
11704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11705 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
11706 | ||
11707 | wxPyEndAllowThreads(__tstate); | |
11708 | if (PyErr_Occurred()) SWIG_fail; | |
11709 | } | |
11710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
11711 | return resultobj; | |
11712 | fail: | |
11713 | return NULL; | |
11714 | } | |
11715 | ||
11716 | ||
11717 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11718 | PyObject *resultobj; | |
11719 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11720 | int arg2 = (int) wxMAILCAP_ALL ; | |
11721 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11722 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 11723 | bool temp3 = False ; |
d14a1e28 RD |
11724 | PyObject * obj0 = 0 ; |
11725 | PyObject * obj2 = 0 ; | |
11726 | char *kwnames[] = { | |
11727 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
11728 | }; | |
11729 | ||
11730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:MimeTypesManager_Initialize",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
11731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11732 | if (obj2) { | |
11733 | { | |
11734 | arg3 = wxString_in_helper(obj2); | |
11735 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11736 | temp3 = True; |
d14a1e28 RD |
11737 | } |
11738 | } | |
11739 | { | |
11740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11741 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
11742 | ||
11743 | wxPyEndAllowThreads(__tstate); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | } | |
11746 | Py_INCREF(Py_None); resultobj = Py_None; | |
11747 | { | |
11748 | if (temp3) | |
11749 | delete arg3; | |
11750 | } | |
11751 | return resultobj; | |
11752 | fail: | |
11753 | { | |
11754 | if (temp3) | |
11755 | delete arg3; | |
11756 | } | |
11757 | return NULL; | |
11758 | } | |
11759 | ||
11760 | ||
11761 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11762 | PyObject *resultobj; | |
11763 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11764 | PyObject * obj0 = 0 ; | |
11765 | char *kwnames[] = { | |
11766 | (char *) "self", NULL | |
11767 | }; | |
11768 | ||
11769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
11770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11771 | { | |
11772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11773 | (arg1)->ClearData(); | |
11774 | ||
11775 | wxPyEndAllowThreads(__tstate); | |
11776 | if (PyErr_Occurred()) SWIG_fail; | |
11777 | } | |
11778 | Py_INCREF(Py_None); resultobj = Py_None; | |
11779 | return resultobj; | |
11780 | fail: | |
11781 | return NULL; | |
11782 | } | |
11783 | ||
11784 | ||
11785 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11786 | PyObject *resultobj; | |
11787 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11788 | wxString *arg2 = 0 ; | |
11789 | wxFileType *result; | |
423f194a | 11790 | bool temp2 = False ; |
d14a1e28 RD |
11791 | PyObject * obj0 = 0 ; |
11792 | PyObject * obj1 = 0 ; | |
11793 | char *kwnames[] = { | |
11794 | (char *) "self",(char *) "ext", NULL | |
11795 | }; | |
11796 | ||
11797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
11798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11799 | { | |
11800 | arg2 = wxString_in_helper(obj1); | |
11801 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11802 | temp2 = True; |
d14a1e28 RD |
11803 | } |
11804 | { | |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
11811 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11812 | { | |
11813 | if (temp2) | |
11814 | delete arg2; | |
11815 | } | |
11816 | return resultobj; | |
11817 | fail: | |
11818 | { | |
11819 | if (temp2) | |
11820 | delete arg2; | |
11821 | } | |
11822 | return NULL; | |
11823 | } | |
11824 | ||
11825 | ||
11826 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11827 | PyObject *resultobj; | |
11828 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11829 | wxString *arg2 = 0 ; | |
11830 | wxFileType *result; | |
423f194a | 11831 | bool temp2 = False ; |
d14a1e28 RD |
11832 | PyObject * obj0 = 0 ; |
11833 | PyObject * obj1 = 0 ; | |
11834 | char *kwnames[] = { | |
11835 | (char *) "self",(char *) "mimeType", NULL | |
11836 | }; | |
11837 | ||
11838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
11839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11840 | { | |
11841 | arg2 = wxString_in_helper(obj1); | |
11842 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11843 | temp2 = True; |
d14a1e28 RD |
11844 | } |
11845 | { | |
11846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11847 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
11848 | ||
11849 | wxPyEndAllowThreads(__tstate); | |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
11851 | } | |
11852 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11853 | { | |
11854 | if (temp2) | |
11855 | delete arg2; | |
11856 | } | |
11857 | return resultobj; | |
11858 | fail: | |
11859 | { | |
11860 | if (temp2) | |
11861 | delete arg2; | |
11862 | } | |
11863 | return NULL; | |
11864 | } | |
11865 | ||
11866 | ||
11867 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11868 | PyObject *resultobj; | |
11869 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11870 | wxString *arg2 = 0 ; | |
423f194a | 11871 | bool arg3 = (bool) False ; |
d14a1e28 | 11872 | bool result; |
423f194a | 11873 | bool temp2 = False ; |
d14a1e28 RD |
11874 | PyObject * obj0 = 0 ; |
11875 | PyObject * obj1 = 0 ; | |
11876 | PyObject * obj2 = 0 ; | |
11877 | char *kwnames[] = { | |
11878 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
11879 | }; | |
11880 | ||
11881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11883 | { | |
11884 | arg2 = wxString_in_helper(obj1); | |
11885 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11886 | temp2 = True; |
d14a1e28 RD |
11887 | } |
11888 | if (obj2) { | |
11889 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | { | |
11893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11894 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
11895 | ||
11896 | wxPyEndAllowThreads(__tstate); | |
11897 | if (PyErr_Occurred()) SWIG_fail; | |
11898 | } | |
11899 | resultobj = PyInt_FromLong((long)result); | |
11900 | { | |
11901 | if (temp2) | |
11902 | delete arg2; | |
11903 | } | |
11904 | return resultobj; | |
11905 | fail: | |
11906 | { | |
11907 | if (temp2) | |
11908 | delete arg2; | |
11909 | } | |
11910 | return NULL; | |
11911 | } | |
11912 | ||
11913 | ||
11914 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11915 | PyObject *resultobj; | |
11916 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11917 | wxString *arg2 = 0 ; | |
11918 | bool result; | |
423f194a | 11919 | bool temp2 = False ; |
d14a1e28 RD |
11920 | PyObject * obj0 = 0 ; |
11921 | PyObject * obj1 = 0 ; | |
11922 | char *kwnames[] = { | |
11923 | (char *) "self",(char *) "filename", NULL | |
11924 | }; | |
11925 | ||
11926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
11927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11928 | { | |
11929 | arg2 = wxString_in_helper(obj1); | |
11930 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11931 | temp2 = True; |
d14a1e28 RD |
11932 | } |
11933 | { | |
11934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11935 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
11936 | ||
11937 | wxPyEndAllowThreads(__tstate); | |
11938 | if (PyErr_Occurred()) SWIG_fail; | |
11939 | } | |
11940 | resultobj = PyInt_FromLong((long)result); | |
11941 | { | |
11942 | if (temp2) | |
11943 | delete arg2; | |
11944 | } | |
11945 | return resultobj; | |
11946 | fail: | |
11947 | { | |
11948 | if (temp2) | |
11949 | delete arg2; | |
11950 | } | |
11951 | return NULL; | |
11952 | } | |
11953 | ||
11954 | ||
11955 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11956 | PyObject *resultobj; | |
11957 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11958 | PyObject *result; | |
11959 | PyObject * obj0 = 0 ; | |
11960 | char *kwnames[] = { | |
11961 | (char *) "self", NULL | |
11962 | }; | |
11963 | ||
11964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
11965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11966 | { | |
11967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11968 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
11969 | ||
11970 | wxPyEndAllowThreads(__tstate); | |
11971 | if (PyErr_Occurred()) SWIG_fail; | |
11972 | } | |
11973 | resultobj = result; | |
11974 | return resultobj; | |
11975 | fail: | |
11976 | return NULL; | |
11977 | } | |
11978 | ||
11979 | ||
11980 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11981 | PyObject *resultobj; | |
11982 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11983 | wxFileTypeInfo *arg2 = 0 ; | |
11984 | PyObject * obj0 = 0 ; | |
11985 | PyObject * obj1 = 0 ; | |
11986 | char *kwnames[] = { | |
11987 | (char *) "self",(char *) "ft", NULL | |
11988 | }; | |
11989 | ||
11990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
11991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11992 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11993 | if (arg2 == NULL) { | |
11994 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11995 | } | |
11996 | { | |
11997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11998 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
11999 | ||
12000 | wxPyEndAllowThreads(__tstate); | |
12001 | if (PyErr_Occurred()) SWIG_fail; | |
12002 | } | |
12003 | Py_INCREF(Py_None); resultobj = Py_None; | |
12004 | return resultobj; | |
12005 | fail: | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
12010 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12011 | PyObject *resultobj; | |
12012 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12013 | wxFileTypeInfo *arg2 = 0 ; | |
12014 | wxFileType *result; | |
12015 | PyObject * obj0 = 0 ; | |
12016 | PyObject * obj1 = 0 ; | |
12017 | char *kwnames[] = { | |
12018 | (char *) "self",(char *) "ftInfo", NULL | |
12019 | }; | |
12020 | ||
12021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
12022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12023 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12024 | if (arg2 == NULL) { | |
12025 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12026 | } | |
12027 | { | |
12028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12029 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
12030 | ||
12031 | wxPyEndAllowThreads(__tstate); | |
12032 | if (PyErr_Occurred()) SWIG_fail; | |
12033 | } | |
12034 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12035 | return resultobj; | |
12036 | fail: | |
12037 | return NULL; | |
12038 | } | |
12039 | ||
12040 | ||
12041 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12042 | PyObject *resultobj; | |
12043 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12044 | wxFileType *arg2 = (wxFileType *) 0 ; | |
12045 | bool result; | |
12046 | PyObject * obj0 = 0 ; | |
12047 | PyObject * obj1 = 0 ; | |
12048 | char *kwnames[] = { | |
12049 | (char *) "self",(char *) "ft", NULL | |
12050 | }; | |
12051 | ||
12052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
12053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12054 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12055 | { | |
12056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12057 | result = (bool)(arg1)->Unassociate(arg2); | |
12058 | ||
12059 | wxPyEndAllowThreads(__tstate); | |
12060 | if (PyErr_Occurred()) SWIG_fail; | |
12061 | } | |
12062 | resultobj = PyInt_FromLong((long)result); | |
12063 | return resultobj; | |
12064 | fail: | |
12065 | return NULL; | |
12066 | } | |
12067 | ||
12068 | ||
12069 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12070 | PyObject *resultobj; | |
12071 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12072 | PyObject * obj0 = 0 ; | |
12073 | char *kwnames[] = { | |
12074 | (char *) "self", NULL | |
12075 | }; | |
12076 | ||
12077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
12078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12079 | { | |
12080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12081 | delete arg1; | |
12082 | ||
12083 | wxPyEndAllowThreads(__tstate); | |
12084 | if (PyErr_Occurred()) SWIG_fail; | |
12085 | } | |
12086 | Py_INCREF(Py_None); resultobj = Py_None; | |
12087 | return resultobj; | |
12088 | fail: | |
12089 | return NULL; | |
12090 | } | |
12091 | ||
12092 | ||
12093 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
12094 | PyObject *obj; | |
12095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12096 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
12097 | Py_INCREF(obj); | |
12098 | return Py_BuildValue((char *)""); | |
12099 | } | |
12100 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
12101 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
12102 | return 1; | |
12103 | } | |
12104 | ||
12105 | ||
12106 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
12107 | PyObject *pyobj; | |
12108 | ||
12109 | { | |
12110 | #if wxUSE_UNICODE | |
12111 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12112 | #else | |
12113 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12114 | #endif | |
12115 | } | |
12116 | return pyobj; | |
12117 | } | |
12118 | ||
12119 | ||
12120 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
12121 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
12122 | return 1; | |
12123 | } | |
12124 | ||
12125 | ||
12126 | static PyObject *_wrap_ART_MENU_get() { | |
12127 | PyObject *pyobj; | |
12128 | ||
12129 | { | |
12130 | #if wxUSE_UNICODE | |
12131 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12132 | #else | |
12133 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12134 | #endif | |
12135 | } | |
12136 | return pyobj; | |
12137 | } | |
12138 | ||
12139 | ||
12140 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
12141 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
12142 | return 1; | |
12143 | } | |
12144 | ||
12145 | ||
12146 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
12147 | PyObject *pyobj; | |
12148 | ||
12149 | { | |
12150 | #if wxUSE_UNICODE | |
12151 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12152 | #else | |
12153 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12154 | #endif | |
12155 | } | |
12156 | return pyobj; | |
12157 | } | |
12158 | ||
12159 | ||
12160 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
12161 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
12162 | return 1; | |
12163 | } | |
12164 | ||
12165 | ||
12166 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
12167 | PyObject *pyobj; | |
12168 | ||
12169 | { | |
12170 | #if wxUSE_UNICODE | |
12171 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12172 | #else | |
12173 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12174 | #endif | |
12175 | } | |
12176 | return pyobj; | |
12177 | } | |
12178 | ||
12179 | ||
12180 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
12181 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
12182 | return 1; | |
12183 | } | |
12184 | ||
12185 | ||
12186 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
12187 | PyObject *pyobj; | |
12188 | ||
12189 | { | |
12190 | #if wxUSE_UNICODE | |
12191 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12192 | #else | |
12193 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12194 | #endif | |
12195 | } | |
12196 | return pyobj; | |
12197 | } | |
12198 | ||
12199 | ||
12200 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
12201 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
12202 | return 1; | |
12203 | } | |
12204 | ||
12205 | ||
12206 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
12207 | PyObject *pyobj; | |
12208 | ||
12209 | { | |
12210 | #if wxUSE_UNICODE | |
12211 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12212 | #else | |
12213 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12214 | #endif | |
12215 | } | |
12216 | return pyobj; | |
12217 | } | |
12218 | ||
12219 | ||
12220 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
12221 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
12222 | return 1; | |
12223 | } | |
12224 | ||
12225 | ||
12226 | static PyObject *_wrap_ART_OTHER_get() { | |
12227 | PyObject *pyobj; | |
12228 | ||
12229 | { | |
12230 | #if wxUSE_UNICODE | |
12231 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12232 | #else | |
12233 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12234 | #endif | |
12235 | } | |
12236 | return pyobj; | |
12237 | } | |
12238 | ||
12239 | ||
12240 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
12241 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
12242 | return 1; | |
12243 | } | |
12244 | ||
12245 | ||
12246 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
12247 | PyObject *pyobj; | |
12248 | ||
12249 | { | |
12250 | #if wxUSE_UNICODE | |
12251 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12252 | #else | |
12253 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12254 | #endif | |
12255 | } | |
12256 | return pyobj; | |
12257 | } | |
12258 | ||
12259 | ||
12260 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
12261 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
12262 | return 1; | |
12263 | } | |
12264 | ||
12265 | ||
12266 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
12267 | PyObject *pyobj; | |
12268 | ||
12269 | { | |
12270 | #if wxUSE_UNICODE | |
12271 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12272 | #else | |
12273 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12274 | #endif | |
12275 | } | |
12276 | return pyobj; | |
12277 | } | |
12278 | ||
12279 | ||
12280 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
12281 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
12282 | return 1; | |
12283 | } | |
12284 | ||
12285 | ||
12286 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
12287 | PyObject *pyobj; | |
12288 | ||
12289 | { | |
12290 | #if wxUSE_UNICODE | |
12291 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12292 | #else | |
12293 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12294 | #endif | |
12295 | } | |
12296 | return pyobj; | |
12297 | } | |
12298 | ||
12299 | ||
12300 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
12301 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
12302 | return 1; | |
12303 | } | |
12304 | ||
12305 | ||
12306 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
12307 | PyObject *pyobj; | |
12308 | ||
12309 | { | |
12310 | #if wxUSE_UNICODE | |
12311 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12312 | #else | |
12313 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12314 | #endif | |
12315 | } | |
12316 | return pyobj; | |
12317 | } | |
12318 | ||
12319 | ||
12320 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
12321 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
12322 | return 1; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
12327 | PyObject *pyobj; | |
12328 | ||
12329 | { | |
12330 | #if wxUSE_UNICODE | |
12331 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12332 | #else | |
12333 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12334 | #endif | |
12335 | } | |
12336 | return pyobj; | |
12337 | } | |
12338 | ||
12339 | ||
12340 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
12341 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
12342 | return 1; | |
12343 | } | |
12344 | ||
12345 | ||
12346 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
12347 | PyObject *pyobj; | |
12348 | ||
12349 | { | |
12350 | #if wxUSE_UNICODE | |
12351 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12352 | #else | |
12353 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12354 | #endif | |
12355 | } | |
12356 | return pyobj; | |
12357 | } | |
12358 | ||
12359 | ||
12360 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
12361 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
12362 | return 1; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
12367 | PyObject *pyobj; | |
12368 | ||
12369 | { | |
12370 | #if wxUSE_UNICODE | |
12371 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12372 | #else | |
12373 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12374 | #endif | |
12375 | } | |
12376 | return pyobj; | |
12377 | } | |
12378 | ||
12379 | ||
12380 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
12381 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
12382 | return 1; | |
12383 | } | |
12384 | ||
12385 | ||
12386 | static PyObject *_wrap_ART_GO_BACK_get() { | |
12387 | PyObject *pyobj; | |
12388 | ||
12389 | { | |
12390 | #if wxUSE_UNICODE | |
12391 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12392 | #else | |
12393 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12394 | #endif | |
12395 | } | |
12396 | return pyobj; | |
12397 | } | |
12398 | ||
12399 | ||
12400 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
12401 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
12402 | return 1; | |
12403 | } | |
12404 | ||
12405 | ||
12406 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
12407 | PyObject *pyobj; | |
12408 | ||
12409 | { | |
12410 | #if wxUSE_UNICODE | |
12411 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12412 | #else | |
12413 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12414 | #endif | |
12415 | } | |
12416 | return pyobj; | |
12417 | } | |
12418 | ||
12419 | ||
12420 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
12421 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
12422 | return 1; | |
12423 | } | |
12424 | ||
12425 | ||
12426 | static PyObject *_wrap_ART_GO_UP_get() { | |
12427 | PyObject *pyobj; | |
12428 | ||
12429 | { | |
12430 | #if wxUSE_UNICODE | |
12431 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12432 | #else | |
12433 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12434 | #endif | |
12435 | } | |
12436 | return pyobj; | |
12437 | } | |
12438 | ||
12439 | ||
12440 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
12441 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
12442 | return 1; | |
12443 | } | |
12444 | ||
12445 | ||
12446 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
12447 | PyObject *pyobj; | |
12448 | ||
12449 | { | |
12450 | #if wxUSE_UNICODE | |
12451 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12452 | #else | |
12453 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12454 | #endif | |
12455 | } | |
12456 | return pyobj; | |
12457 | } | |
12458 | ||
12459 | ||
12460 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
12461 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
12462 | return 1; | |
12463 | } | |
12464 | ||
12465 | ||
12466 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
12467 | PyObject *pyobj; | |
12468 | ||
12469 | { | |
12470 | #if wxUSE_UNICODE | |
12471 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12472 | #else | |
12473 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12474 | #endif | |
12475 | } | |
12476 | return pyobj; | |
12477 | } | |
12478 | ||
12479 | ||
12480 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
12481 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
12482 | return 1; | |
12483 | } | |
12484 | ||
12485 | ||
12486 | static PyObject *_wrap_ART_GO_HOME_get() { | |
12487 | PyObject *pyobj; | |
12488 | ||
12489 | { | |
12490 | #if wxUSE_UNICODE | |
12491 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12492 | #else | |
12493 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12494 | #endif | |
12495 | } | |
12496 | return pyobj; | |
12497 | } | |
12498 | ||
12499 | ||
12500 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
12501 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
12502 | return 1; | |
12503 | } | |
12504 | ||
12505 | ||
12506 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
12507 | PyObject *pyobj; | |
12508 | ||
12509 | { | |
12510 | #if wxUSE_UNICODE | |
12511 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12512 | #else | |
12513 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12514 | #endif | |
12515 | } | |
12516 | return pyobj; | |
12517 | } | |
12518 | ||
12519 | ||
12520 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
12521 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
12522 | return 1; | |
12523 | } | |
12524 | ||
12525 | ||
12526 | static PyObject *_wrap_ART_PRINT_get() { | |
12527 | PyObject *pyobj; | |
12528 | ||
12529 | { | |
12530 | #if wxUSE_UNICODE | |
12531 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12532 | #else | |
12533 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12534 | #endif | |
12535 | } | |
12536 | return pyobj; | |
12537 | } | |
12538 | ||
12539 | ||
12540 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
12541 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
12542 | return 1; | |
12543 | } | |
12544 | ||
12545 | ||
12546 | static PyObject *_wrap_ART_HELP_get() { | |
12547 | PyObject *pyobj; | |
12548 | ||
12549 | { | |
12550 | #if wxUSE_UNICODE | |
12551 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12552 | #else | |
12553 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12554 | #endif | |
12555 | } | |
12556 | return pyobj; | |
12557 | } | |
12558 | ||
12559 | ||
12560 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
12561 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
12562 | return 1; | |
12563 | } | |
12564 | ||
12565 | ||
12566 | static PyObject *_wrap_ART_TIP_get() { | |
12567 | PyObject *pyobj; | |
12568 | ||
12569 | { | |
12570 | #if wxUSE_UNICODE | |
12571 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12572 | #else | |
12573 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12574 | #endif | |
12575 | } | |
12576 | return pyobj; | |
12577 | } | |
12578 | ||
12579 | ||
12580 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
12581 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
12582 | return 1; | |
12583 | } | |
12584 | ||
12585 | ||
12586 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
12587 | PyObject *pyobj; | |
12588 | ||
12589 | { | |
12590 | #if wxUSE_UNICODE | |
12591 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12592 | #else | |
12593 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12594 | #endif | |
12595 | } | |
12596 | return pyobj; | |
12597 | } | |
12598 | ||
12599 | ||
12600 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
12601 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
12602 | return 1; | |
12603 | } | |
12604 | ||
12605 | ||
12606 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
12607 | PyObject *pyobj; | |
12608 | ||
12609 | { | |
12610 | #if wxUSE_UNICODE | |
12611 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12612 | #else | |
12613 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12614 | #endif | |
12615 | } | |
12616 | return pyobj; | |
12617 | } | |
12618 | ||
12619 | ||
12620 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
12621 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
12622 | return 1; | |
12623 | } | |
12624 | ||
12625 | ||
12626 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
12627 | PyObject *pyobj; | |
12628 | ||
12629 | { | |
12630 | #if wxUSE_UNICODE | |
12631 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12632 | #else | |
12633 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12634 | #endif | |
12635 | } | |
12636 | return pyobj; | |
12637 | } | |
12638 | ||
12639 | ||
12640 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
12641 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
12642 | return 1; | |
12643 | } | |
12644 | ||
12645 | ||
12646 | static PyObject *_wrap_ART_FOLDER_get() { | |
12647 | PyObject *pyobj; | |
12648 | ||
12649 | { | |
12650 | #if wxUSE_UNICODE | |
12651 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12652 | #else | |
12653 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12654 | #endif | |
12655 | } | |
12656 | return pyobj; | |
12657 | } | |
12658 | ||
12659 | ||
12660 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
12661 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
12662 | return 1; | |
12663 | } | |
12664 | ||
12665 | ||
12666 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
12667 | PyObject *pyobj; | |
12668 | ||
12669 | { | |
12670 | #if wxUSE_UNICODE | |
12671 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12672 | #else | |
12673 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12674 | #endif | |
12675 | } | |
12676 | return pyobj; | |
12677 | } | |
12678 | ||
12679 | ||
12680 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
12681 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
12682 | return 1; | |
12683 | } | |
12684 | ||
12685 | ||
12686 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
12687 | PyObject *pyobj; | |
12688 | ||
12689 | { | |
12690 | #if wxUSE_UNICODE | |
12691 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12692 | #else | |
12693 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12694 | #endif | |
12695 | } | |
12696 | return pyobj; | |
12697 | } | |
12698 | ||
12699 | ||
12700 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
12701 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
12702 | return 1; | |
12703 | } | |
12704 | ||
12705 | ||
12706 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
12707 | PyObject *pyobj; | |
12708 | ||
12709 | { | |
12710 | #if wxUSE_UNICODE | |
12711 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12712 | #else | |
12713 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12714 | #endif | |
12715 | } | |
12716 | return pyobj; | |
12717 | } | |
12718 | ||
12719 | ||
12720 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
12721 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
12722 | return 1; | |
12723 | } | |
12724 | ||
12725 | ||
12726 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
12727 | PyObject *pyobj; | |
12728 | ||
12729 | { | |
12730 | #if wxUSE_UNICODE | |
12731 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12732 | #else | |
12733 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12734 | #endif | |
12735 | } | |
12736 | return pyobj; | |
12737 | } | |
12738 | ||
12739 | ||
12740 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
12741 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
12742 | return 1; | |
12743 | } | |
12744 | ||
12745 | ||
12746 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
12747 | PyObject *pyobj; | |
12748 | ||
12749 | { | |
12750 | #if wxUSE_UNICODE | |
12751 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12752 | #else | |
12753 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12754 | #endif | |
12755 | } | |
12756 | return pyobj; | |
12757 | } | |
12758 | ||
12759 | ||
12760 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
12761 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
12762 | return 1; | |
12763 | } | |
12764 | ||
12765 | ||
12766 | static PyObject *_wrap_ART_ERROR_get() { | |
12767 | PyObject *pyobj; | |
12768 | ||
12769 | { | |
12770 | #if wxUSE_UNICODE | |
12771 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12772 | #else | |
12773 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12774 | #endif | |
12775 | } | |
12776 | return pyobj; | |
12777 | } | |
12778 | ||
12779 | ||
12780 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
12781 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
12782 | return 1; | |
12783 | } | |
12784 | ||
12785 | ||
12786 | static PyObject *_wrap_ART_QUESTION_get() { | |
12787 | PyObject *pyobj; | |
12788 | ||
12789 | { | |
12790 | #if wxUSE_UNICODE | |
12791 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12792 | #else | |
12793 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12794 | #endif | |
12795 | } | |
12796 | return pyobj; | |
12797 | } | |
12798 | ||
12799 | ||
12800 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
12801 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
12802 | return 1; | |
12803 | } | |
12804 | ||
12805 | ||
12806 | static PyObject *_wrap_ART_WARNING_get() { | |
12807 | PyObject *pyobj; | |
12808 | ||
12809 | { | |
12810 | #if wxUSE_UNICODE | |
12811 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12812 | #else | |
12813 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12814 | #endif | |
12815 | } | |
12816 | return pyobj; | |
12817 | } | |
12818 | ||
12819 | ||
12820 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
12821 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
12822 | return 1; | |
12823 | } | |
12824 | ||
12825 | ||
12826 | static PyObject *_wrap_ART_INFORMATION_get() { | |
12827 | PyObject *pyobj; | |
12828 | ||
12829 | { | |
12830 | #if wxUSE_UNICODE | |
12831 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12832 | #else | |
12833 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12834 | #endif | |
12835 | } | |
12836 | return pyobj; | |
12837 | } | |
12838 | ||
12839 | ||
12840 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
12841 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
12842 | return 1; | |
12843 | } | |
12844 | ||
12845 | ||
12846 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
12847 | PyObject *pyobj; | |
12848 | ||
12849 | { | |
12850 | #if wxUSE_UNICODE | |
12851 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
12852 | #else | |
12853 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
12854 | #endif | |
12855 | } | |
12856 | return pyobj; | |
12857 | } | |
12858 | ||
12859 | ||
12860 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12861 | PyObject *resultobj; | |
12862 | wxPyArtProvider *result; | |
12863 | char *kwnames[] = { | |
12864 | NULL | |
12865 | }; | |
12866 | ||
12867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
12868 | { | |
12869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12870 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
12871 | ||
12872 | wxPyEndAllowThreads(__tstate); | |
12873 | if (PyErr_Occurred()) SWIG_fail; | |
12874 | } | |
12875 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
12876 | return resultobj; | |
12877 | fail: | |
12878 | return NULL; | |
12879 | } | |
12880 | ||
12881 | ||
12882 | static PyObject *_wrap_delete_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12883 | PyObject *resultobj; | |
12884 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12885 | PyObject * obj0 = 0 ; | |
12886 | char *kwnames[] = { | |
12887 | (char *) "self", NULL | |
12888 | }; | |
12889 | ||
12890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArtProvider",kwnames,&obj0)) goto fail; | |
12891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12892 | { | |
12893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12894 | delete arg1; | |
12895 | ||
12896 | wxPyEndAllowThreads(__tstate); | |
12897 | if (PyErr_Occurred()) SWIG_fail; | |
12898 | } | |
12899 | Py_INCREF(Py_None); resultobj = Py_None; | |
12900 | return resultobj; | |
12901 | fail: | |
12902 | return NULL; | |
12903 | } | |
12904 | ||
12905 | ||
12906 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12907 | PyObject *resultobj; | |
12908 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12909 | PyObject *arg2 = (PyObject *) 0 ; | |
12910 | PyObject *arg3 = (PyObject *) 0 ; | |
12911 | PyObject * obj0 = 0 ; | |
12912 | PyObject * obj1 = 0 ; | |
12913 | PyObject * obj2 = 0 ; | |
12914 | char *kwnames[] = { | |
12915 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
12916 | }; | |
12917 | ||
12918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12920 | arg2 = obj1; | |
12921 | arg3 = obj2; | |
12922 | { | |
12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12924 | (arg1)->_setCallbackInfo(arg2,arg3); | |
12925 | ||
12926 | wxPyEndAllowThreads(__tstate); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | Py_INCREF(Py_None); resultobj = Py_None; | |
12930 | return resultobj; | |
12931 | fail: | |
12932 | return NULL; | |
12933 | } | |
12934 | ||
12935 | ||
12936 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12937 | PyObject *resultobj; | |
12938 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12939 | PyObject * obj0 = 0 ; | |
12940 | char *kwnames[] = { | |
12941 | (char *) "provider", NULL | |
12942 | }; | |
12943 | ||
12944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
12945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12946 | { | |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12948 | wxPyArtProvider::PushProvider(arg1); | |
12949 | ||
12950 | wxPyEndAllowThreads(__tstate); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
12953 | Py_INCREF(Py_None); resultobj = Py_None; | |
12954 | return resultobj; | |
12955 | fail: | |
12956 | return NULL; | |
12957 | } | |
12958 | ||
12959 | ||
12960 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12961 | PyObject *resultobj; | |
12962 | bool result; | |
12963 | char *kwnames[] = { | |
12964 | NULL | |
12965 | }; | |
12966 | ||
12967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
12968 | { | |
12969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12970 | result = (bool)wxPyArtProvider::PopProvider(); | |
12971 | ||
12972 | wxPyEndAllowThreads(__tstate); | |
12973 | if (PyErr_Occurred()) SWIG_fail; | |
12974 | } | |
12975 | resultobj = PyInt_FromLong((long)result); | |
12976 | return resultobj; | |
12977 | fail: | |
12978 | return NULL; | |
12979 | } | |
12980 | ||
12981 | ||
12982 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12983 | PyObject *resultobj; | |
12984 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12985 | bool result; | |
12986 | PyObject * obj0 = 0 ; | |
12987 | char *kwnames[] = { | |
12988 | (char *) "provider", NULL | |
12989 | }; | |
12990 | ||
12991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
12992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12993 | { | |
12994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12995 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
12996 | ||
12997 | wxPyEndAllowThreads(__tstate); | |
12998 | if (PyErr_Occurred()) SWIG_fail; | |
12999 | } | |
13000 | resultobj = PyInt_FromLong((long)result); | |
13001 | return resultobj; | |
13002 | fail: | |
13003 | return NULL; | |
13004 | } | |
13005 | ||
13006 | ||
13007 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13008 | PyObject *resultobj; | |
13009 | wxString *arg1 = 0 ; | |
13010 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13011 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13012 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13013 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13014 | wxBitmap result; | |
423f194a RD |
13015 | bool temp1 = False ; |
13016 | bool temp2 = False ; | |
d14a1e28 RD |
13017 | wxSize temp3 ; |
13018 | PyObject * obj0 = 0 ; | |
13019 | PyObject * obj1 = 0 ; | |
13020 | PyObject * obj2 = 0 ; | |
13021 | char *kwnames[] = { | |
13022 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13023 | }; | |
13024 | ||
13025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13026 | { | |
13027 | arg1 = wxString_in_helper(obj0); | |
13028 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13029 | temp1 = True; |
d14a1e28 RD |
13030 | } |
13031 | if (obj1) { | |
13032 | { | |
13033 | arg2 = wxString_in_helper(obj1); | |
13034 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13035 | temp2 = True; |
d14a1e28 RD |
13036 | } |
13037 | } | |
13038 | if (obj2) { | |
13039 | { | |
13040 | arg3 = &temp3; | |
13041 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13042 | } | |
13043 | } | |
13044 | { | |
13045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13046 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13047 | ||
13048 | wxPyEndAllowThreads(__tstate); | |
13049 | if (PyErr_Occurred()) SWIG_fail; | |
13050 | } | |
13051 | { | |
13052 | wxBitmap * resultptr; | |
13053 | resultptr = new wxBitmap((wxBitmap &) result); | |
13054 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13055 | } | |
13056 | { | |
13057 | if (temp1) | |
13058 | delete arg1; | |
13059 | } | |
13060 | { | |
13061 | if (temp2) | |
13062 | delete arg2; | |
13063 | } | |
13064 | return resultobj; | |
13065 | fail: | |
13066 | { | |
13067 | if (temp1) | |
13068 | delete arg1; | |
13069 | } | |
13070 | { | |
13071 | if (temp2) | |
13072 | delete arg2; | |
13073 | } | |
13074 | return NULL; | |
13075 | } | |
13076 | ||
13077 | ||
13078 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13079 | PyObject *resultobj; | |
13080 | wxString *arg1 = 0 ; | |
13081 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13082 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13083 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13084 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13085 | wxIcon result; | |
423f194a RD |
13086 | bool temp1 = False ; |
13087 | bool temp2 = False ; | |
d14a1e28 RD |
13088 | wxSize temp3 ; |
13089 | PyObject * obj0 = 0 ; | |
13090 | PyObject * obj1 = 0 ; | |
13091 | PyObject * obj2 = 0 ; | |
13092 | char *kwnames[] = { | |
13093 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13094 | }; | |
13095 | ||
13096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13097 | { | |
13098 | arg1 = wxString_in_helper(obj0); | |
13099 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13100 | temp1 = True; |
d14a1e28 RD |
13101 | } |
13102 | if (obj1) { | |
13103 | { | |
13104 | arg2 = wxString_in_helper(obj1); | |
13105 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13106 | temp2 = True; |
d14a1e28 RD |
13107 | } |
13108 | } | |
13109 | if (obj2) { | |
13110 | { | |
13111 | arg3 = &temp3; | |
13112 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13113 | } | |
13114 | } | |
13115 | { | |
13116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13117 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13118 | ||
13119 | wxPyEndAllowThreads(__tstate); | |
13120 | if (PyErr_Occurred()) SWIG_fail; | |
13121 | } | |
13122 | { | |
13123 | wxIcon * resultptr; | |
13124 | resultptr = new wxIcon((wxIcon &) result); | |
13125 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
13126 | } | |
13127 | { | |
13128 | if (temp1) | |
13129 | delete arg1; | |
13130 | } | |
13131 | { | |
13132 | if (temp2) | |
13133 | delete arg2; | |
13134 | } | |
13135 | return resultobj; | |
13136 | fail: | |
13137 | { | |
13138 | if (temp1) | |
13139 | delete arg1; | |
13140 | } | |
13141 | { | |
13142 | if (temp2) | |
13143 | delete arg2; | |
13144 | } | |
13145 | return NULL; | |
13146 | } | |
13147 | ||
13148 | ||
13149 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { | |
13150 | PyObject *obj; | |
13151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13152 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
13153 | Py_INCREF(obj); | |
13154 | return Py_BuildValue((char *)""); | |
13155 | } | |
13156 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13157 | PyObject *resultobj; | |
13158 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13159 | PyObject * obj0 = 0 ; | |
13160 | char *kwnames[] = { | |
13161 | (char *) "self", NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
13165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13166 | { | |
13167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13168 | delete arg1; | |
13169 | ||
13170 | wxPyEndAllowThreads(__tstate); | |
13171 | if (PyErr_Occurred()) SWIG_fail; | |
13172 | } | |
13173 | Py_INCREF(Py_None); resultobj = Py_None; | |
13174 | return resultobj; | |
13175 | fail: | |
13176 | return NULL; | |
13177 | } | |
13178 | ||
13179 | ||
13180 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13181 | PyObject *resultobj; | |
13182 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13183 | wxConfigBase *result; | |
13184 | PyObject * obj0 = 0 ; | |
13185 | char *kwnames[] = { | |
13186 | (char *) "pConfig", NULL | |
13187 | }; | |
13188 | ||
13189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
13190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13191 | { | |
13192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13193 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
13194 | ||
13195 | wxPyEndAllowThreads(__tstate); | |
13196 | if (PyErr_Occurred()) SWIG_fail; | |
13197 | } | |
13198 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13199 | return resultobj; | |
13200 | fail: | |
13201 | return NULL; | |
13202 | } | |
13203 | ||
13204 | ||
13205 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13206 | PyObject *resultobj; | |
423f194a | 13207 | bool arg1 = (bool) True ; |
d14a1e28 RD |
13208 | wxConfigBase *result; |
13209 | PyObject * obj0 = 0 ; | |
13210 | char *kwnames[] = { | |
13211 | (char *) "createOnDemand", NULL | |
13212 | }; | |
13213 | ||
13214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
13215 | if (obj0) { | |
13216 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | { | |
13220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13221 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
13222 | ||
13223 | wxPyEndAllowThreads(__tstate); | |
13224 | if (PyErr_Occurred()) SWIG_fail; | |
13225 | } | |
13226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13227 | return resultobj; | |
13228 | fail: | |
13229 | return NULL; | |
13230 | } | |
13231 | ||
13232 | ||
13233 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13234 | PyObject *resultobj; | |
13235 | wxConfigBase *result; | |
13236 | char *kwnames[] = { | |
13237 | NULL | |
13238 | }; | |
13239 | ||
13240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
13241 | { | |
13242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13243 | result = (wxConfigBase *)wxConfigBase::Create(); | |
13244 | ||
13245 | wxPyEndAllowThreads(__tstate); | |
13246 | if (PyErr_Occurred()) SWIG_fail; | |
13247 | } | |
13248 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13249 | return resultobj; | |
13250 | fail: | |
13251 | return NULL; | |
13252 | } | |
13253 | ||
13254 | ||
13255 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13256 | PyObject *resultobj; | |
13257 | char *kwnames[] = { | |
13258 | NULL | |
13259 | }; | |
13260 | ||
13261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
13262 | { | |
13263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13264 | wxConfigBase::DontCreateOnDemand(); | |
13265 | ||
13266 | wxPyEndAllowThreads(__tstate); | |
13267 | if (PyErr_Occurred()) SWIG_fail; | |
13268 | } | |
13269 | Py_INCREF(Py_None); resultobj = Py_None; | |
13270 | return resultobj; | |
13271 | fail: | |
13272 | return NULL; | |
13273 | } | |
13274 | ||
13275 | ||
13276 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13277 | PyObject *resultobj; | |
13278 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13279 | wxString *arg2 = 0 ; | |
423f194a | 13280 | bool temp2 = False ; |
d14a1e28 RD |
13281 | PyObject * obj0 = 0 ; |
13282 | PyObject * obj1 = 0 ; | |
13283 | char *kwnames[] = { | |
13284 | (char *) "self",(char *) "strPath", NULL | |
13285 | }; | |
13286 | ||
13287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
13288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13289 | { | |
13290 | arg2 = wxString_in_helper(obj1); | |
13291 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13292 | temp2 = True; |
d14a1e28 RD |
13293 | } |
13294 | { | |
13295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13296 | (arg1)->SetPath((wxString const &)*arg2); | |
13297 | ||
13298 | wxPyEndAllowThreads(__tstate); | |
13299 | if (PyErr_Occurred()) SWIG_fail; | |
13300 | } | |
13301 | Py_INCREF(Py_None); resultobj = Py_None; | |
13302 | { | |
13303 | if (temp2) | |
13304 | delete arg2; | |
13305 | } | |
13306 | return resultobj; | |
13307 | fail: | |
13308 | { | |
13309 | if (temp2) | |
13310 | delete arg2; | |
13311 | } | |
13312 | return NULL; | |
13313 | } | |
13314 | ||
13315 | ||
13316 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13317 | PyObject *resultobj; | |
13318 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13319 | wxString *result; | |
13320 | PyObject * obj0 = 0 ; | |
13321 | char *kwnames[] = { | |
13322 | (char *) "self", NULL | |
13323 | }; | |
13324 | ||
13325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
13326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13327 | { | |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | { | |
13330 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
13331 | result = (wxString *) &_result_ref; | |
13332 | } | |
13333 | ||
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
13338 | return resultobj; | |
13339 | fail: | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
13344 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13345 | PyObject *resultobj; | |
13346 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13347 | PyObject *result; | |
13348 | PyObject * obj0 = 0 ; | |
13349 | char *kwnames[] = { | |
13350 | (char *) "self", NULL | |
13351 | }; | |
13352 | ||
13353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
13354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13355 | { | |
13356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13357 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
13358 | ||
13359 | wxPyEndAllowThreads(__tstate); | |
13360 | if (PyErr_Occurred()) SWIG_fail; | |
13361 | } | |
13362 | resultobj = result; | |
13363 | return resultobj; | |
13364 | fail: | |
13365 | return NULL; | |
13366 | } | |
13367 | ||
13368 | ||
13369 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13370 | PyObject *resultobj; | |
13371 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13372 | long arg2 ; | |
13373 | PyObject *result; | |
13374 | PyObject * obj0 = 0 ; | |
13375 | char *kwnames[] = { | |
13376 | (char *) "self",(char *) "index", NULL | |
13377 | }; | |
13378 | ||
13379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextGroup",kwnames,&obj0,&arg2)) goto fail; | |
13380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13381 | { | |
13382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13383 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
13384 | ||
13385 | wxPyEndAllowThreads(__tstate); | |
13386 | if (PyErr_Occurred()) SWIG_fail; | |
13387 | } | |
13388 | resultobj = result; | |
13389 | return resultobj; | |
13390 | fail: | |
13391 | return NULL; | |
13392 | } | |
13393 | ||
13394 | ||
13395 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13396 | PyObject *resultobj; | |
13397 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13398 | PyObject *result; | |
13399 | PyObject * obj0 = 0 ; | |
13400 | char *kwnames[] = { | |
13401 | (char *) "self", NULL | |
13402 | }; | |
13403 | ||
13404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
13405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13406 | { | |
13407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13408 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
13409 | ||
13410 | wxPyEndAllowThreads(__tstate); | |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
13412 | } | |
13413 | resultobj = result; | |
13414 | return resultobj; | |
13415 | fail: | |
13416 | return NULL; | |
13417 | } | |
13418 | ||
13419 | ||
13420 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13421 | PyObject *resultobj; | |
13422 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13423 | long arg2 ; | |
13424 | PyObject *result; | |
13425 | PyObject * obj0 = 0 ; | |
13426 | char *kwnames[] = { | |
13427 | (char *) "self",(char *) "index", NULL | |
13428 | }; | |
13429 | ||
13430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextEntry",kwnames,&obj0,&arg2)) goto fail; | |
13431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13432 | { | |
13433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13434 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
13435 | ||
13436 | wxPyEndAllowThreads(__tstate); | |
13437 | if (PyErr_Occurred()) SWIG_fail; | |
13438 | } | |
13439 | resultobj = result; | |
13440 | return resultobj; | |
13441 | fail: | |
13442 | return NULL; | |
13443 | } | |
13444 | ||
13445 | ||
13446 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13447 | PyObject *resultobj; | |
13448 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13449 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13450 | size_t result; |
13451 | PyObject * obj0 = 0 ; | |
13452 | PyObject * obj1 = 0 ; | |
13453 | char *kwnames[] = { | |
13454 | (char *) "self",(char *) "bRecursive", NULL | |
13455 | }; | |
13456 | ||
13457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
13458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13459 | if (obj1) { | |
13460 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13461 | if (PyErr_Occurred()) SWIG_fail; | |
13462 | } | |
13463 | { | |
13464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13465 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
13466 | ||
13467 | wxPyEndAllowThreads(__tstate); | |
13468 | if (PyErr_Occurred()) SWIG_fail; | |
13469 | } | |
13470 | resultobj = PyInt_FromLong((long)result); | |
13471 | return resultobj; | |
13472 | fail: | |
13473 | return NULL; | |
13474 | } | |
13475 | ||
13476 | ||
13477 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13478 | PyObject *resultobj; | |
13479 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13480 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13481 | size_t result; |
13482 | PyObject * obj0 = 0 ; | |
13483 | PyObject * obj1 = 0 ; | |
13484 | char *kwnames[] = { | |
13485 | (char *) "self",(char *) "bRecursive", NULL | |
13486 | }; | |
13487 | ||
13488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
13489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13490 | if (obj1) { | |
13491 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13492 | if (PyErr_Occurred()) SWIG_fail; | |
13493 | } | |
13494 | { | |
13495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13496 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
13497 | ||
13498 | wxPyEndAllowThreads(__tstate); | |
13499 | if (PyErr_Occurred()) SWIG_fail; | |
13500 | } | |
13501 | resultobj = PyInt_FromLong((long)result); | |
13502 | return resultobj; | |
13503 | fail: | |
13504 | return NULL; | |
13505 | } | |
13506 | ||
13507 | ||
13508 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13509 | PyObject *resultobj; | |
13510 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13511 | wxString *arg2 = 0 ; | |
13512 | bool result; | |
423f194a | 13513 | bool temp2 = False ; |
d14a1e28 RD |
13514 | PyObject * obj0 = 0 ; |
13515 | PyObject * obj1 = 0 ; | |
13516 | char *kwnames[] = { | |
13517 | (char *) "self",(char *) "strName", NULL | |
13518 | }; | |
13519 | ||
13520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
13521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13522 | { | |
13523 | arg2 = wxString_in_helper(obj1); | |
13524 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13525 | temp2 = True; |
d14a1e28 RD |
13526 | } |
13527 | { | |
13528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13529 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
13530 | ||
13531 | wxPyEndAllowThreads(__tstate); | |
13532 | if (PyErr_Occurred()) SWIG_fail; | |
13533 | } | |
13534 | resultobj = PyInt_FromLong((long)result); | |
13535 | { | |
13536 | if (temp2) | |
13537 | delete arg2; | |
13538 | } | |
13539 | return resultobj; | |
13540 | fail: | |
13541 | { | |
13542 | if (temp2) | |
13543 | delete arg2; | |
13544 | } | |
13545 | return NULL; | |
13546 | } | |
13547 | ||
13548 | ||
13549 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13550 | PyObject *resultobj; | |
13551 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13552 | wxString *arg2 = 0 ; | |
13553 | bool result; | |
423f194a | 13554 | bool temp2 = False ; |
d14a1e28 RD |
13555 | PyObject * obj0 = 0 ; |
13556 | PyObject * obj1 = 0 ; | |
13557 | char *kwnames[] = { | |
13558 | (char *) "self",(char *) "strName", NULL | |
13559 | }; | |
13560 | ||
13561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
13562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13563 | { | |
13564 | arg2 = wxString_in_helper(obj1); | |
13565 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13566 | temp2 = True; |
d14a1e28 RD |
13567 | } |
13568 | { | |
13569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13570 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
13571 | ||
13572 | wxPyEndAllowThreads(__tstate); | |
13573 | if (PyErr_Occurred()) SWIG_fail; | |
13574 | } | |
13575 | resultobj = PyInt_FromLong((long)result); | |
13576 | { | |
13577 | if (temp2) | |
13578 | delete arg2; | |
13579 | } | |
13580 | return resultobj; | |
13581 | fail: | |
13582 | { | |
13583 | if (temp2) | |
13584 | delete arg2; | |
13585 | } | |
13586 | return NULL; | |
13587 | } | |
13588 | ||
13589 | ||
13590 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13591 | PyObject *resultobj; | |
13592 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13593 | wxString *arg2 = 0 ; | |
13594 | bool result; | |
423f194a | 13595 | bool temp2 = False ; |
d14a1e28 RD |
13596 | PyObject * obj0 = 0 ; |
13597 | PyObject * obj1 = 0 ; | |
13598 | char *kwnames[] = { | |
13599 | (char *) "self",(char *) "strName", NULL | |
13600 | }; | |
13601 | ||
13602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
13603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13604 | { | |
13605 | arg2 = wxString_in_helper(obj1); | |
13606 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13607 | temp2 = True; |
d14a1e28 RD |
13608 | } |
13609 | { | |
13610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13611 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
13612 | ||
13613 | wxPyEndAllowThreads(__tstate); | |
13614 | if (PyErr_Occurred()) SWIG_fail; | |
13615 | } | |
13616 | resultobj = PyInt_FromLong((long)result); | |
13617 | { | |
13618 | if (temp2) | |
13619 | delete arg2; | |
13620 | } | |
13621 | return resultobj; | |
13622 | fail: | |
13623 | { | |
13624 | if (temp2) | |
13625 | delete arg2; | |
13626 | } | |
13627 | return NULL; | |
13628 | } | |
13629 | ||
13630 | ||
13631 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13632 | PyObject *resultobj; | |
13633 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13634 | wxString *arg2 = 0 ; | |
13635 | int result; | |
423f194a | 13636 | bool temp2 = False ; |
d14a1e28 RD |
13637 | PyObject * obj0 = 0 ; |
13638 | PyObject * obj1 = 0 ; | |
13639 | char *kwnames[] = { | |
13640 | (char *) "self",(char *) "name", NULL | |
13641 | }; | |
13642 | ||
13643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
13644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13645 | { | |
13646 | arg2 = wxString_in_helper(obj1); | |
13647 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13648 | temp2 = True; |
d14a1e28 RD |
13649 | } |
13650 | { | |
13651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13652 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
13653 | ||
13654 | wxPyEndAllowThreads(__tstate); | |
13655 | if (PyErr_Occurred()) SWIG_fail; | |
13656 | } | |
13657 | resultobj = PyInt_FromLong((long)result); | |
13658 | { | |
13659 | if (temp2) | |
13660 | delete arg2; | |
13661 | } | |
13662 | return resultobj; | |
13663 | fail: | |
13664 | { | |
13665 | if (temp2) | |
13666 | delete arg2; | |
13667 | } | |
13668 | return NULL; | |
13669 | } | |
13670 | ||
13671 | ||
13672 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13673 | PyObject *resultobj; | |
13674 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13675 | wxString *arg2 = 0 ; | |
13676 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13677 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13678 | wxString result; | |
423f194a RD |
13679 | bool temp2 = False ; |
13680 | bool temp3 = False ; | |
d14a1e28 RD |
13681 | PyObject * obj0 = 0 ; |
13682 | PyObject * obj1 = 0 ; | |
13683 | PyObject * obj2 = 0 ; | |
13684 | char *kwnames[] = { | |
13685 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13686 | }; | |
13687 | ||
13688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13690 | { | |
13691 | arg2 = wxString_in_helper(obj1); | |
13692 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13693 | temp2 = True; |
d14a1e28 RD |
13694 | } |
13695 | if (obj2) { | |
13696 | { | |
13697 | arg3 = wxString_in_helper(obj2); | |
13698 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13699 | temp3 = True; |
d14a1e28 RD |
13700 | } |
13701 | } | |
13702 | { | |
13703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13704 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
13705 | ||
13706 | wxPyEndAllowThreads(__tstate); | |
13707 | if (PyErr_Occurred()) SWIG_fail; | |
13708 | } | |
13709 | { | |
13710 | #if wxUSE_UNICODE | |
13711 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13712 | #else | |
13713 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13714 | #endif | |
13715 | } | |
13716 | { | |
13717 | if (temp2) | |
13718 | delete arg2; | |
13719 | } | |
13720 | { | |
13721 | if (temp3) | |
13722 | delete arg3; | |
13723 | } | |
13724 | return resultobj; | |
13725 | fail: | |
13726 | { | |
13727 | if (temp2) | |
13728 | delete arg2; | |
13729 | } | |
13730 | { | |
13731 | if (temp3) | |
13732 | delete arg3; | |
13733 | } | |
13734 | return NULL; | |
13735 | } | |
13736 | ||
13737 | ||
13738 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13739 | PyObject *resultobj; | |
13740 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13741 | wxString *arg2 = 0 ; | |
13742 | long arg3 = (long) 0 ; | |
13743 | long result; | |
423f194a | 13744 | bool temp2 = False ; |
d14a1e28 RD |
13745 | PyObject * obj0 = 0 ; |
13746 | PyObject * obj1 = 0 ; | |
13747 | char *kwnames[] = { | |
13748 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13749 | }; | |
13750 | ||
13751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13753 | { | |
13754 | arg2 = wxString_in_helper(obj1); | |
13755 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13756 | temp2 = True; |
d14a1e28 RD |
13757 | } |
13758 | { | |
13759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13760 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
13761 | ||
13762 | wxPyEndAllowThreads(__tstate); | |
13763 | if (PyErr_Occurred()) SWIG_fail; | |
13764 | } | |
13765 | resultobj = PyInt_FromLong((long)result); | |
13766 | { | |
13767 | if (temp2) | |
13768 | delete arg2; | |
13769 | } | |
13770 | return resultobj; | |
13771 | fail: | |
13772 | { | |
13773 | if (temp2) | |
13774 | delete arg2; | |
13775 | } | |
13776 | return NULL; | |
13777 | } | |
13778 | ||
13779 | ||
13780 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13781 | PyObject *resultobj; | |
13782 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13783 | wxString *arg2 = 0 ; | |
13784 | double arg3 = (double) 0.0 ; | |
13785 | double result; | |
423f194a | 13786 | bool temp2 = False ; |
d14a1e28 RD |
13787 | PyObject * obj0 = 0 ; |
13788 | PyObject * obj1 = 0 ; | |
13789 | char *kwnames[] = { | |
13790 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13791 | }; | |
13792 | ||
13793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|d:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13795 | { | |
13796 | arg2 = wxString_in_helper(obj1); | |
13797 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13798 | temp2 = True; |
d14a1e28 RD |
13799 | } |
13800 | { | |
13801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13802 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
13803 | ||
13804 | wxPyEndAllowThreads(__tstate); | |
13805 | if (PyErr_Occurred()) SWIG_fail; | |
13806 | } | |
13807 | resultobj = PyFloat_FromDouble(result); | |
13808 | { | |
13809 | if (temp2) | |
13810 | delete arg2; | |
13811 | } | |
13812 | return resultobj; | |
13813 | fail: | |
13814 | { | |
13815 | if (temp2) | |
13816 | delete arg2; | |
13817 | } | |
13818 | return NULL; | |
13819 | } | |
13820 | ||
13821 | ||
13822 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13823 | PyObject *resultobj; | |
13824 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13825 | wxString *arg2 = 0 ; | |
423f194a | 13826 | bool arg3 = (bool) False ; |
d14a1e28 | 13827 | bool result; |
423f194a | 13828 | bool temp2 = False ; |
d14a1e28 RD |
13829 | PyObject * obj0 = 0 ; |
13830 | PyObject * obj1 = 0 ; | |
13831 | PyObject * obj2 = 0 ; | |
13832 | char *kwnames[] = { | |
13833 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13834 | }; | |
13835 | ||
13836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13838 | { | |
13839 | arg2 = wxString_in_helper(obj1); | |
13840 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13841 | temp2 = True; |
d14a1e28 RD |
13842 | } |
13843 | if (obj2) { | |
13844 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13845 | if (PyErr_Occurred()) SWIG_fail; | |
13846 | } | |
13847 | { | |
13848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13849 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
13850 | ||
13851 | wxPyEndAllowThreads(__tstate); | |
13852 | if (PyErr_Occurred()) SWIG_fail; | |
13853 | } | |
13854 | resultobj = PyInt_FromLong((long)result); | |
13855 | { | |
13856 | if (temp2) | |
13857 | delete arg2; | |
13858 | } | |
13859 | return resultobj; | |
13860 | fail: | |
13861 | { | |
13862 | if (temp2) | |
13863 | delete arg2; | |
13864 | } | |
13865 | return NULL; | |
13866 | } | |
13867 | ||
13868 | ||
13869 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13870 | PyObject *resultobj; | |
13871 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13872 | wxString *arg2 = 0 ; | |
13873 | wxString *arg3 = 0 ; | |
13874 | bool result; | |
423f194a RD |
13875 | bool temp2 = False ; |
13876 | bool temp3 = False ; | |
d14a1e28 RD |
13877 | PyObject * obj0 = 0 ; |
13878 | PyObject * obj1 = 0 ; | |
13879 | PyObject * obj2 = 0 ; | |
13880 | char *kwnames[] = { | |
13881 | (char *) "self",(char *) "key",(char *) "value", NULL | |
13882 | }; | |
13883 | ||
13884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13886 | { | |
13887 | arg2 = wxString_in_helper(obj1); | |
13888 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13889 | temp2 = True; |
d14a1e28 RD |
13890 | } |
13891 | { | |
13892 | arg3 = wxString_in_helper(obj2); | |
13893 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13894 | temp3 = True; |
d14a1e28 RD |
13895 | } |
13896 | { | |
13897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13898 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
13899 | ||
13900 | wxPyEndAllowThreads(__tstate); | |
13901 | if (PyErr_Occurred()) SWIG_fail; | |
13902 | } | |
13903 | resultobj = PyInt_FromLong((long)result); | |
13904 | { | |
13905 | if (temp2) | |
13906 | delete arg2; | |
13907 | } | |
13908 | { | |
13909 | if (temp3) | |
13910 | delete arg3; | |
13911 | } | |
13912 | return resultobj; | |
13913 | fail: | |
13914 | { | |
13915 | if (temp2) | |
13916 | delete arg2; | |
13917 | } | |
13918 | { | |
13919 | if (temp3) | |
13920 | delete arg3; | |
13921 | } | |
13922 | return NULL; | |
13923 | } | |
13924 | ||
13925 | ||
13926 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13927 | PyObject *resultobj; | |
13928 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13929 | wxString *arg2 = 0 ; | |
13930 | long arg3 ; | |
13931 | bool result; | |
423f194a | 13932 | bool temp2 = False ; |
d14a1e28 RD |
13933 | PyObject * obj0 = 0 ; |
13934 | PyObject * obj1 = 0 ; | |
13935 | char *kwnames[] = { | |
13936 | (char *) "self",(char *) "key",(char *) "value", NULL | |
13937 | }; | |
13938 | ||
13939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13941 | { | |
13942 | arg2 = wxString_in_helper(obj1); | |
13943 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13944 | temp2 = True; |
d14a1e28 RD |
13945 | } |
13946 | { | |
13947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13948 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
13949 | ||
13950 | wxPyEndAllowThreads(__tstate); | |
13951 | if (PyErr_Occurred()) SWIG_fail; | |
13952 | } | |
13953 | resultobj = PyInt_FromLong((long)result); | |
13954 | { | |
13955 | if (temp2) | |
13956 | delete arg2; | |
13957 | } | |
13958 | return resultobj; | |
13959 | fail: | |
13960 | { | |
13961 | if (temp2) | |
13962 | delete arg2; | |
13963 | } | |
13964 | return NULL; | |
13965 | } | |
13966 | ||
13967 | ||
13968 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13969 | PyObject *resultobj; | |
13970 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13971 | wxString *arg2 = 0 ; | |
13972 | double arg3 ; | |
13973 | bool result; | |
423f194a | 13974 | bool temp2 = False ; |
d14a1e28 RD |
13975 | PyObject * obj0 = 0 ; |
13976 | PyObject * obj1 = 0 ; | |
13977 | char *kwnames[] = { | |
13978 | (char *) "self",(char *) "key",(char *) "value", NULL | |
13979 | }; | |
13980 | ||
13981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13983 | { | |
13984 | arg2 = wxString_in_helper(obj1); | |
13985 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13986 | temp2 = True; |
d14a1e28 RD |
13987 | } |
13988 | { | |
13989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13990 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
13991 | ||
13992 | wxPyEndAllowThreads(__tstate); | |
13993 | if (PyErr_Occurred()) SWIG_fail; | |
13994 | } | |
13995 | resultobj = PyInt_FromLong((long)result); | |
13996 | { | |
13997 | if (temp2) | |
13998 | delete arg2; | |
13999 | } | |
14000 | return resultobj; | |
14001 | fail: | |
14002 | { | |
14003 | if (temp2) | |
14004 | delete arg2; | |
14005 | } | |
14006 | return NULL; | |
14007 | } | |
14008 | ||
14009 | ||
14010 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14011 | PyObject *resultobj; | |
14012 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14013 | wxString *arg2 = 0 ; | |
14014 | bool arg3 ; | |
14015 | bool result; | |
423f194a | 14016 | bool temp2 = False ; |
d14a1e28 RD |
14017 | PyObject * obj0 = 0 ; |
14018 | PyObject * obj1 = 0 ; | |
14019 | PyObject * obj2 = 0 ; | |
14020 | char *kwnames[] = { | |
14021 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14022 | }; | |
14023 | ||
14024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14026 | { | |
14027 | arg2 = wxString_in_helper(obj1); | |
14028 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14029 | temp2 = True; |
d14a1e28 RD |
14030 | } |
14031 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14032 | if (PyErr_Occurred()) SWIG_fail; | |
14033 | { | |
14034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14035 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14036 | ||
14037 | wxPyEndAllowThreads(__tstate); | |
14038 | if (PyErr_Occurred()) SWIG_fail; | |
14039 | } | |
14040 | resultobj = PyInt_FromLong((long)result); | |
14041 | { | |
14042 | if (temp2) | |
14043 | delete arg2; | |
14044 | } | |
14045 | return resultobj; | |
14046 | fail: | |
14047 | { | |
14048 | if (temp2) | |
14049 | delete arg2; | |
14050 | } | |
14051 | return NULL; | |
14052 | } | |
14053 | ||
14054 | ||
14055 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14056 | PyObject *resultobj; | |
14057 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14058 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14059 | bool result; |
14060 | PyObject * obj0 = 0 ; | |
14061 | PyObject * obj1 = 0 ; | |
14062 | char *kwnames[] = { | |
14063 | (char *) "self",(char *) "bCurrentOnly", NULL | |
14064 | }; | |
14065 | ||
14066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
14067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14068 | if (obj1) { | |
14069 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14070 | if (PyErr_Occurred()) SWIG_fail; | |
14071 | } | |
14072 | { | |
14073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14074 | result = (bool)(arg1)->Flush(arg2); | |
14075 | ||
14076 | wxPyEndAllowThreads(__tstate); | |
14077 | if (PyErr_Occurred()) SWIG_fail; | |
14078 | } | |
14079 | resultobj = PyInt_FromLong((long)result); | |
14080 | return resultobj; | |
14081 | fail: | |
14082 | return NULL; | |
14083 | } | |
14084 | ||
14085 | ||
14086 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14087 | PyObject *resultobj; | |
14088 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14089 | wxString *arg2 = 0 ; | |
14090 | wxString *arg3 = 0 ; | |
14091 | bool result; | |
423f194a RD |
14092 | bool temp2 = False ; |
14093 | bool temp3 = False ; | |
d14a1e28 RD |
14094 | PyObject * obj0 = 0 ; |
14095 | PyObject * obj1 = 0 ; | |
14096 | PyObject * obj2 = 0 ; | |
14097 | char *kwnames[] = { | |
14098 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14099 | }; | |
14100 | ||
14101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14103 | { | |
14104 | arg2 = wxString_in_helper(obj1); | |
14105 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14106 | temp2 = True; |
d14a1e28 RD |
14107 | } |
14108 | { | |
14109 | arg3 = wxString_in_helper(obj2); | |
14110 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14111 | temp3 = True; |
d14a1e28 RD |
14112 | } |
14113 | { | |
14114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14115 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
14116 | ||
14117 | wxPyEndAllowThreads(__tstate); | |
14118 | if (PyErr_Occurred()) SWIG_fail; | |
14119 | } | |
14120 | resultobj = PyInt_FromLong((long)result); | |
14121 | { | |
14122 | if (temp2) | |
14123 | delete arg2; | |
14124 | } | |
14125 | { | |
14126 | if (temp3) | |
14127 | delete arg3; | |
14128 | } | |
14129 | return resultobj; | |
14130 | fail: | |
14131 | { | |
14132 | if (temp2) | |
14133 | delete arg2; | |
14134 | } | |
14135 | { | |
14136 | if (temp3) | |
14137 | delete arg3; | |
14138 | } | |
14139 | return NULL; | |
14140 | } | |
14141 | ||
14142 | ||
14143 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14144 | PyObject *resultobj; | |
14145 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14146 | wxString *arg2 = 0 ; | |
14147 | wxString *arg3 = 0 ; | |
14148 | bool result; | |
423f194a RD |
14149 | bool temp2 = False ; |
14150 | bool temp3 = False ; | |
d14a1e28 RD |
14151 | PyObject * obj0 = 0 ; |
14152 | PyObject * obj1 = 0 ; | |
14153 | PyObject * obj2 = 0 ; | |
14154 | char *kwnames[] = { | |
14155 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14156 | }; | |
14157 | ||
14158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14160 | { | |
14161 | arg2 = wxString_in_helper(obj1); | |
14162 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14163 | temp2 = True; |
d14a1e28 RD |
14164 | } |
14165 | { | |
14166 | arg3 = wxString_in_helper(obj2); | |
14167 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14168 | temp3 = True; |
d14a1e28 RD |
14169 | } |
14170 | { | |
14171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14172 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
14173 | ||
14174 | wxPyEndAllowThreads(__tstate); | |
14175 | if (PyErr_Occurred()) SWIG_fail; | |
14176 | } | |
14177 | resultobj = PyInt_FromLong((long)result); | |
14178 | { | |
14179 | if (temp2) | |
14180 | delete arg2; | |
14181 | } | |
14182 | { | |
14183 | if (temp3) | |
14184 | delete arg3; | |
14185 | } | |
14186 | return resultobj; | |
14187 | fail: | |
14188 | { | |
14189 | if (temp2) | |
14190 | delete arg2; | |
14191 | } | |
14192 | { | |
14193 | if (temp3) | |
14194 | delete arg3; | |
14195 | } | |
14196 | return NULL; | |
14197 | } | |
14198 | ||
14199 | ||
14200 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14201 | PyObject *resultobj; | |
14202 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14203 | wxString *arg2 = 0 ; | |
423f194a | 14204 | bool arg3 = (bool) True ; |
d14a1e28 | 14205 | bool result; |
423f194a | 14206 | bool temp2 = False ; |
d14a1e28 RD |
14207 | PyObject * obj0 = 0 ; |
14208 | PyObject * obj1 = 0 ; | |
14209 | PyObject * obj2 = 0 ; | |
14210 | char *kwnames[] = { | |
14211 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
14212 | }; | |
14213 | ||
14214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14216 | { | |
14217 | arg2 = wxString_in_helper(obj1); | |
14218 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14219 | temp2 = True; |
d14a1e28 RD |
14220 | } |
14221 | if (obj2) { | |
14222 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14223 | if (PyErr_Occurred()) SWIG_fail; | |
14224 | } | |
14225 | { | |
14226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14227 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
14228 | ||
14229 | wxPyEndAllowThreads(__tstate); | |
14230 | if (PyErr_Occurred()) SWIG_fail; | |
14231 | } | |
14232 | resultobj = PyInt_FromLong((long)result); | |
14233 | { | |
14234 | if (temp2) | |
14235 | delete arg2; | |
14236 | } | |
14237 | return resultobj; | |
14238 | fail: | |
14239 | { | |
14240 | if (temp2) | |
14241 | delete arg2; | |
14242 | } | |
14243 | return NULL; | |
14244 | } | |
14245 | ||
14246 | ||
14247 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14248 | PyObject *resultobj; | |
14249 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14250 | wxString *arg2 = 0 ; | |
14251 | bool result; | |
423f194a | 14252 | bool temp2 = False ; |
d14a1e28 RD |
14253 | PyObject * obj0 = 0 ; |
14254 | PyObject * obj1 = 0 ; | |
14255 | char *kwnames[] = { | |
14256 | (char *) "self",(char *) "key", NULL | |
14257 | }; | |
14258 | ||
14259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
14260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14261 | { | |
14262 | arg2 = wxString_in_helper(obj1); | |
14263 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14264 | temp2 = True; |
d14a1e28 RD |
14265 | } |
14266 | { | |
14267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14268 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
14269 | ||
14270 | wxPyEndAllowThreads(__tstate); | |
14271 | if (PyErr_Occurred()) SWIG_fail; | |
14272 | } | |
14273 | resultobj = PyInt_FromLong((long)result); | |
14274 | { | |
14275 | if (temp2) | |
14276 | delete arg2; | |
14277 | } | |
14278 | return resultobj; | |
14279 | fail: | |
14280 | { | |
14281 | if (temp2) | |
14282 | delete arg2; | |
14283 | } | |
14284 | return NULL; | |
14285 | } | |
14286 | ||
14287 | ||
14288 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14289 | PyObject *resultobj; | |
14290 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14291 | bool result; | |
14292 | PyObject * obj0 = 0 ; | |
14293 | char *kwnames[] = { | |
14294 | (char *) "self", NULL | |
14295 | }; | |
14296 | ||
14297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
14298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14299 | { | |
14300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14301 | result = (bool)(arg1)->DeleteAll(); | |
14302 | ||
14303 | wxPyEndAllowThreads(__tstate); | |
14304 | if (PyErr_Occurred()) SWIG_fail; | |
14305 | } | |
14306 | resultobj = PyInt_FromLong((long)result); | |
14307 | return resultobj; | |
14308 | fail: | |
14309 | return NULL; | |
14310 | } | |
14311 | ||
14312 | ||
14313 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14314 | PyObject *resultobj; | |
14315 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14316 | bool result; | |
14317 | PyObject * obj0 = 0 ; | |
14318 | char *kwnames[] = { | |
14319 | (char *) "self", NULL | |
14320 | }; | |
14321 | ||
14322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
14323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14324 | { | |
14325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14326 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
14327 | ||
14328 | wxPyEndAllowThreads(__tstate); | |
14329 | if (PyErr_Occurred()) SWIG_fail; | |
14330 | } | |
14331 | resultobj = PyInt_FromLong((long)result); | |
14332 | return resultobj; | |
14333 | fail: | |
14334 | return NULL; | |
14335 | } | |
14336 | ||
14337 | ||
14338 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14339 | PyObject *resultobj; | |
14340 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14341 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14342 | PyObject * obj0 = 0 ; |
14343 | PyObject * obj1 = 0 ; | |
14344 | char *kwnames[] = { | |
14345 | (char *) "self",(char *) "bDoIt", NULL | |
14346 | }; | |
14347 | ||
14348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14350 | if (obj1) { | |
14351 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14352 | if (PyErr_Occurred()) SWIG_fail; | |
14353 | } | |
14354 | { | |
14355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14356 | (arg1)->SetExpandEnvVars(arg2); | |
14357 | ||
14358 | wxPyEndAllowThreads(__tstate); | |
14359 | if (PyErr_Occurred()) SWIG_fail; | |
14360 | } | |
14361 | Py_INCREF(Py_None); resultobj = Py_None; | |
14362 | return resultobj; | |
14363 | fail: | |
14364 | return NULL; | |
14365 | } | |
14366 | ||
14367 | ||
14368 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14369 | PyObject *resultobj; | |
14370 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14371 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14372 | PyObject * obj0 = 0 ; |
14373 | PyObject * obj1 = 0 ; | |
14374 | char *kwnames[] = { | |
14375 | (char *) "self",(char *) "bDoIt", NULL | |
14376 | }; | |
14377 | ||
14378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
14379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14380 | if (obj1) { | |
14381 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14382 | if (PyErr_Occurred()) SWIG_fail; | |
14383 | } | |
14384 | { | |
14385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14386 | (arg1)->SetRecordDefaults(arg2); | |
14387 | ||
14388 | wxPyEndAllowThreads(__tstate); | |
14389 | if (PyErr_Occurred()) SWIG_fail; | |
14390 | } | |
14391 | Py_INCREF(Py_None); resultobj = Py_None; | |
14392 | return resultobj; | |
14393 | fail: | |
14394 | return NULL; | |
14395 | } | |
14396 | ||
14397 | ||
14398 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14399 | PyObject *resultobj; | |
14400 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14401 | bool result; | |
14402 | PyObject * obj0 = 0 ; | |
14403 | char *kwnames[] = { | |
14404 | (char *) "self", NULL | |
14405 | }; | |
14406 | ||
14407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
14408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14409 | { | |
14410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14411 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
14412 | ||
14413 | wxPyEndAllowThreads(__tstate); | |
14414 | if (PyErr_Occurred()) SWIG_fail; | |
14415 | } | |
14416 | resultobj = PyInt_FromLong((long)result); | |
14417 | return resultobj; | |
14418 | fail: | |
14419 | return NULL; | |
14420 | } | |
14421 | ||
14422 | ||
14423 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14424 | PyObject *resultobj; | |
14425 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14426 | wxString *arg2 = 0 ; | |
14427 | wxString result; | |
423f194a | 14428 | bool temp2 = False ; |
d14a1e28 RD |
14429 | PyObject * obj0 = 0 ; |
14430 | PyObject * obj1 = 0 ; | |
14431 | char *kwnames[] = { | |
14432 | (char *) "self",(char *) "str", NULL | |
14433 | }; | |
14434 | ||
14435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14437 | { | |
14438 | arg2 = wxString_in_helper(obj1); | |
14439 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14440 | temp2 = True; |
d14a1e28 RD |
14441 | } |
14442 | { | |
14443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14444 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
14445 | ||
14446 | wxPyEndAllowThreads(__tstate); | |
14447 | if (PyErr_Occurred()) SWIG_fail; | |
14448 | } | |
14449 | { | |
14450 | #if wxUSE_UNICODE | |
14451 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14452 | #else | |
14453 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14454 | #endif | |
14455 | } | |
14456 | { | |
14457 | if (temp2) | |
14458 | delete arg2; | |
14459 | } | |
14460 | return resultobj; | |
14461 | fail: | |
14462 | { | |
14463 | if (temp2) | |
14464 | delete arg2; | |
14465 | } | |
14466 | return NULL; | |
14467 | } | |
14468 | ||
14469 | ||
14470 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14471 | PyObject *resultobj; | |
14472 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14473 | wxString result; | |
14474 | PyObject * obj0 = 0 ; | |
14475 | char *kwnames[] = { | |
14476 | (char *) "self", NULL | |
14477 | }; | |
14478 | ||
14479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
14480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14481 | { | |
14482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14483 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
14484 | ||
14485 | wxPyEndAllowThreads(__tstate); | |
14486 | if (PyErr_Occurred()) SWIG_fail; | |
14487 | } | |
14488 | { | |
14489 | #if wxUSE_UNICODE | |
14490 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14491 | #else | |
14492 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14493 | #endif | |
14494 | } | |
14495 | return resultobj; | |
14496 | fail: | |
14497 | return NULL; | |
14498 | } | |
14499 | ||
14500 | ||
14501 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14502 | PyObject *resultobj; | |
14503 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14504 | wxString result; | |
14505 | PyObject * obj0 = 0 ; | |
14506 | char *kwnames[] = { | |
14507 | (char *) "self", NULL | |
14508 | }; | |
14509 | ||
14510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
14511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14512 | { | |
14513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14514 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
14515 | ||
14516 | wxPyEndAllowThreads(__tstate); | |
14517 | if (PyErr_Occurred()) SWIG_fail; | |
14518 | } | |
14519 | { | |
14520 | #if wxUSE_UNICODE | |
14521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14522 | #else | |
14523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14524 | #endif | |
14525 | } | |
14526 | return resultobj; | |
14527 | fail: | |
14528 | return NULL; | |
14529 | } | |
14530 | ||
14531 | ||
14532 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14533 | PyObject *resultobj; | |
14534 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14535 | wxString *arg2 = 0 ; | |
423f194a | 14536 | bool temp2 = False ; |
d14a1e28 RD |
14537 | PyObject * obj0 = 0 ; |
14538 | PyObject * obj1 = 0 ; | |
14539 | char *kwnames[] = { | |
14540 | (char *) "self",(char *) "appName", NULL | |
14541 | }; | |
14542 | ||
14543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
14544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14545 | { | |
14546 | arg2 = wxString_in_helper(obj1); | |
14547 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14548 | temp2 = True; |
d14a1e28 RD |
14549 | } |
14550 | { | |
14551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14552 | (arg1)->SetAppName((wxString const &)*arg2); | |
14553 | ||
14554 | wxPyEndAllowThreads(__tstate); | |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
14556 | } | |
14557 | Py_INCREF(Py_None); resultobj = Py_None; | |
14558 | { | |
14559 | if (temp2) | |
14560 | delete arg2; | |
14561 | } | |
14562 | return resultobj; | |
14563 | fail: | |
14564 | { | |
14565 | if (temp2) | |
14566 | delete arg2; | |
14567 | } | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
14572 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14573 | PyObject *resultobj; | |
14574 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14575 | wxString *arg2 = 0 ; | |
423f194a | 14576 | bool temp2 = False ; |
d14a1e28 RD |
14577 | PyObject * obj0 = 0 ; |
14578 | PyObject * obj1 = 0 ; | |
14579 | char *kwnames[] = { | |
14580 | (char *) "self",(char *) "vendorName", NULL | |
14581 | }; | |
14582 | ||
14583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
14584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14585 | { | |
14586 | arg2 = wxString_in_helper(obj1); | |
14587 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14588 | temp2 = True; |
d14a1e28 RD |
14589 | } |
14590 | { | |
14591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14592 | (arg1)->SetVendorName((wxString const &)*arg2); | |
14593 | ||
14594 | wxPyEndAllowThreads(__tstate); | |
14595 | if (PyErr_Occurred()) SWIG_fail; | |
14596 | } | |
14597 | Py_INCREF(Py_None); resultobj = Py_None; | |
14598 | { | |
14599 | if (temp2) | |
14600 | delete arg2; | |
14601 | } | |
14602 | return resultobj; | |
14603 | fail: | |
14604 | { | |
14605 | if (temp2) | |
14606 | delete arg2; | |
14607 | } | |
14608 | return NULL; | |
14609 | } | |
14610 | ||
14611 | ||
14612 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14613 | PyObject *resultobj; | |
14614 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14615 | long arg2 ; | |
14616 | PyObject * obj0 = 0 ; | |
14617 | char *kwnames[] = { | |
14618 | (char *) "self",(char *) "style", NULL | |
14619 | }; | |
14620 | ||
14621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
14622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14623 | { | |
14624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14625 | (arg1)->SetStyle(arg2); | |
14626 | ||
14627 | wxPyEndAllowThreads(__tstate); | |
14628 | if (PyErr_Occurred()) SWIG_fail; | |
14629 | } | |
14630 | Py_INCREF(Py_None); resultobj = Py_None; | |
14631 | return resultobj; | |
14632 | fail: | |
14633 | return NULL; | |
14634 | } | |
14635 | ||
14636 | ||
14637 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14638 | PyObject *resultobj; | |
14639 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14640 | long result; | |
14641 | PyObject * obj0 = 0 ; | |
14642 | char *kwnames[] = { | |
14643 | (char *) "self", NULL | |
14644 | }; | |
14645 | ||
14646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
14647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14648 | { | |
14649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14650 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
14651 | ||
14652 | wxPyEndAllowThreads(__tstate); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
14655 | resultobj = PyInt_FromLong((long)result); | |
14656 | return resultobj; | |
14657 | fail: | |
14658 | return NULL; | |
14659 | } | |
14660 | ||
14661 | ||
14662 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
14663 | PyObject *obj; | |
14664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14665 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
14666 | Py_INCREF(obj); | |
14667 | return Py_BuildValue((char *)""); | |
14668 | } | |
14669 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14670 | PyObject *resultobj; | |
14671 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14672 | wxString *arg2 = 0 ; | |
14673 | wxConfigPathChanger *result; | |
423f194a | 14674 | bool temp2 = False ; |
d14a1e28 RD |
14675 | PyObject * obj0 = 0 ; |
14676 | PyObject * obj1 = 0 ; | |
14677 | char *kwnames[] = { | |
14678 | (char *) "pContainer",(char *) "strEntry", NULL | |
14679 | }; | |
14680 | ||
14681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
14682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14683 | { | |
14684 | arg2 = wxString_in_helper(obj1); | |
14685 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14686 | temp2 = True; |
d14a1e28 RD |
14687 | } |
14688 | { | |
14689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14690 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
14691 | ||
14692 | wxPyEndAllowThreads(__tstate); | |
14693 | if (PyErr_Occurred()) SWIG_fail; | |
14694 | } | |
14695 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
14696 | { | |
14697 | if (temp2) | |
14698 | delete arg2; | |
14699 | } | |
14700 | return resultobj; | |
14701 | fail: | |
14702 | { | |
14703 | if (temp2) | |
14704 | delete arg2; | |
14705 | } | |
14706 | return NULL; | |
14707 | } | |
14708 | ||
14709 | ||
14710 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14711 | PyObject *resultobj; | |
14712 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14713 | PyObject * obj0 = 0 ; | |
14714 | char *kwnames[] = { | |
14715 | (char *) "self", NULL | |
14716 | }; | |
14717 | ||
14718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
14719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14720 | { | |
14721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14722 | delete arg1; | |
14723 | ||
14724 | wxPyEndAllowThreads(__tstate); | |
14725 | if (PyErr_Occurred()) SWIG_fail; | |
14726 | } | |
14727 | Py_INCREF(Py_None); resultobj = Py_None; | |
14728 | return resultobj; | |
14729 | fail: | |
14730 | return NULL; | |
14731 | } | |
14732 | ||
14733 | ||
14734 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14735 | PyObject *resultobj; | |
14736 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14737 | wxString *result; | |
14738 | PyObject * obj0 = 0 ; | |
14739 | char *kwnames[] = { | |
14740 | (char *) "self", NULL | |
14741 | }; | |
14742 | ||
14743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
14744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14745 | { | |
14746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14747 | { | |
14748 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
14749 | result = (wxString *) &_result_ref; | |
14750 | } | |
14751 | ||
14752 | wxPyEndAllowThreads(__tstate); | |
14753 | if (PyErr_Occurred()) SWIG_fail; | |
14754 | } | |
14755 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0); | |
14756 | return resultobj; | |
14757 | fail: | |
14758 | return NULL; | |
14759 | } | |
14760 | ||
14761 | ||
14762 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
14763 | PyObject *obj; | |
14764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14765 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
14766 | Py_INCREF(obj); | |
14767 | return Py_BuildValue((char *)""); | |
14768 | } | |
14769 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14770 | PyObject *resultobj; | |
14771 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14772 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14773 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14774 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14775 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14776 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14777 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14778 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14779 | long arg5 = (long) 0 ; | |
14780 | wxConfig *result; | |
423f194a RD |
14781 | bool temp1 = False ; |
14782 | bool temp2 = False ; | |
14783 | bool temp3 = False ; | |
14784 | bool temp4 = False ; | |
d14a1e28 RD |
14785 | PyObject * obj0 = 0 ; |
14786 | PyObject * obj1 = 0 ; | |
14787 | PyObject * obj2 = 0 ; | |
14788 | PyObject * obj3 = 0 ; | |
14789 | char *kwnames[] = { | |
14790 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
14791 | }; | |
14792 | ||
14793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
14794 | if (obj0) { | |
14795 | { | |
14796 | arg1 = wxString_in_helper(obj0); | |
14797 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14798 | temp1 = True; |
d14a1e28 RD |
14799 | } |
14800 | } | |
14801 | if (obj1) { | |
14802 | { | |
14803 | arg2 = wxString_in_helper(obj1); | |
14804 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14805 | temp2 = True; |
d14a1e28 RD |
14806 | } |
14807 | } | |
14808 | if (obj2) { | |
14809 | { | |
14810 | arg3 = wxString_in_helper(obj2); | |
14811 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14812 | temp3 = True; |
d14a1e28 RD |
14813 | } |
14814 | } | |
14815 | if (obj3) { | |
14816 | { | |
14817 | arg4 = wxString_in_helper(obj3); | |
14818 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14819 | temp4 = True; |
d14a1e28 RD |
14820 | } |
14821 | } | |
14822 | { | |
14823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14824 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
14825 | ||
14826 | wxPyEndAllowThreads(__tstate); | |
14827 | if (PyErr_Occurred()) SWIG_fail; | |
14828 | } | |
14829 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
14830 | { | |
14831 | if (temp1) | |
14832 | delete arg1; | |
14833 | } | |
14834 | { | |
14835 | if (temp2) | |
14836 | delete arg2; | |
14837 | } | |
14838 | { | |
14839 | if (temp3) | |
14840 | delete arg3; | |
14841 | } | |
14842 | { | |
14843 | if (temp4) | |
14844 | delete arg4; | |
14845 | } | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | { | |
14849 | if (temp1) | |
14850 | delete arg1; | |
14851 | } | |
14852 | { | |
14853 | if (temp2) | |
14854 | delete arg2; | |
14855 | } | |
14856 | { | |
14857 | if (temp3) | |
14858 | delete arg3; | |
14859 | } | |
14860 | { | |
14861 | if (temp4) | |
14862 | delete arg4; | |
14863 | } | |
14864 | return NULL; | |
14865 | } | |
14866 | ||
14867 | ||
14868 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14869 | PyObject *resultobj; | |
14870 | wxConfig *arg1 = (wxConfig *) 0 ; | |
14871 | PyObject * obj0 = 0 ; | |
14872 | char *kwnames[] = { | |
14873 | (char *) "self", NULL | |
14874 | }; | |
14875 | ||
14876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
14877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14878 | { | |
14879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14880 | delete arg1; | |
14881 | ||
14882 | wxPyEndAllowThreads(__tstate); | |
14883 | if (PyErr_Occurred()) SWIG_fail; | |
14884 | } | |
14885 | Py_INCREF(Py_None); resultobj = Py_None; | |
14886 | return resultobj; | |
14887 | fail: | |
14888 | return NULL; | |
14889 | } | |
14890 | ||
14891 | ||
14892 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
14893 | PyObject *obj; | |
14894 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14895 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
14896 | Py_INCREF(obj); | |
14897 | return Py_BuildValue((char *)""); | |
14898 | } | |
14899 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14900 | PyObject *resultobj; | |
14901 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14902 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14903 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14904 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14905 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14906 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14907 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14908 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14909 | long arg5 = (long) 0 ; | |
14910 | wxFileConfig *result; | |
423f194a RD |
14911 | bool temp1 = False ; |
14912 | bool temp2 = False ; | |
14913 | bool temp3 = False ; | |
14914 | bool temp4 = False ; | |
d14a1e28 RD |
14915 | PyObject * obj0 = 0 ; |
14916 | PyObject * obj1 = 0 ; | |
14917 | PyObject * obj2 = 0 ; | |
14918 | PyObject * obj3 = 0 ; | |
14919 | char *kwnames[] = { | |
14920 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
14921 | }; | |
14922 | ||
14923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
14924 | if (obj0) { | |
14925 | { | |
14926 | arg1 = wxString_in_helper(obj0); | |
14927 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14928 | temp1 = True; |
d14a1e28 RD |
14929 | } |
14930 | } | |
14931 | if (obj1) { | |
14932 | { | |
14933 | arg2 = wxString_in_helper(obj1); | |
14934 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14935 | temp2 = True; |
d14a1e28 RD |
14936 | } |
14937 | } | |
14938 | if (obj2) { | |
14939 | { | |
14940 | arg3 = wxString_in_helper(obj2); | |
14941 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14942 | temp3 = True; |
d14a1e28 RD |
14943 | } |
14944 | } | |
14945 | if (obj3) { | |
14946 | { | |
14947 | arg4 = wxString_in_helper(obj3); | |
14948 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14949 | temp4 = True; |
d14a1e28 RD |
14950 | } |
14951 | } | |
14952 | { | |
14953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14954 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
14955 | ||
14956 | wxPyEndAllowThreads(__tstate); | |
14957 | if (PyErr_Occurred()) SWIG_fail; | |
14958 | } | |
14959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
14960 | { | |
14961 | if (temp1) | |
14962 | delete arg1; | |
14963 | } | |
14964 | { | |
14965 | if (temp2) | |
14966 | delete arg2; | |
14967 | } | |
14968 | { | |
14969 | if (temp3) | |
14970 | delete arg3; | |
14971 | } | |
14972 | { | |
14973 | if (temp4) | |
14974 | delete arg4; | |
14975 | } | |
14976 | return resultobj; | |
14977 | fail: | |
14978 | { | |
14979 | if (temp1) | |
14980 | delete arg1; | |
14981 | } | |
14982 | { | |
14983 | if (temp2) | |
14984 | delete arg2; | |
14985 | } | |
14986 | { | |
14987 | if (temp3) | |
14988 | delete arg3; | |
14989 | } | |
14990 | { | |
14991 | if (temp4) | |
14992 | delete arg4; | |
14993 | } | |
14994 | return NULL; | |
14995 | } | |
14996 | ||
14997 | ||
14998 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14999 | PyObject *resultobj; | |
15000 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
15001 | PyObject * obj0 = 0 ; | |
15002 | char *kwnames[] = { | |
15003 | (char *) "self", NULL | |
15004 | }; | |
15005 | ||
15006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | delete 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 * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
15023 | PyObject *obj; | |
15024 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15025 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
15026 | Py_INCREF(obj); | |
15027 | return Py_BuildValue((char *)""); | |
15028 | } | |
15029 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15030 | PyObject *resultobj; | |
15031 | wxString *arg1 = 0 ; | |
15032 | wxString result; | |
423f194a | 15033 | bool temp1 = False ; |
d14a1e28 RD |
15034 | PyObject * obj0 = 0 ; |
15035 | char *kwnames[] = { | |
15036 | (char *) "sz", NULL | |
15037 | }; | |
15038 | ||
15039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
15040 | { | |
15041 | arg1 = wxString_in_helper(obj0); | |
15042 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15043 | temp1 = True; |
d14a1e28 RD |
15044 | } |
15045 | { | |
15046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15047 | result = wxExpandEnvVars((wxString const &)*arg1); | |
15048 | ||
15049 | wxPyEndAllowThreads(__tstate); | |
15050 | if (PyErr_Occurred()) SWIG_fail; | |
15051 | } | |
15052 | { | |
15053 | #if wxUSE_UNICODE | |
15054 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15055 | #else | |
15056 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15057 | #endif | |
15058 | } | |
15059 | { | |
15060 | if (temp1) | |
15061 | delete arg1; | |
15062 | } | |
15063 | return resultobj; | |
15064 | fail: | |
15065 | { | |
15066 | if (temp1) | |
15067 | delete arg1; | |
15068 | } | |
15069 | return NULL; | |
15070 | } | |
15071 | ||
15072 | ||
15073 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15074 | PyObject *resultobj; | |
15075 | int arg1 ; | |
15076 | char *kwnames[] = { | |
15077 | (char *) "country", NULL | |
15078 | }; | |
15079 | ||
15080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_SetCountry",kwnames,&arg1)) goto fail; | |
15081 | { | |
15082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15083 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
15084 | ||
15085 | wxPyEndAllowThreads(__tstate); | |
15086 | if (PyErr_Occurred()) SWIG_fail; | |
15087 | } | |
15088 | Py_INCREF(Py_None); resultobj = Py_None; | |
15089 | return resultobj; | |
15090 | fail: | |
15091 | return NULL; | |
15092 | } | |
15093 | ||
15094 | ||
15095 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15096 | PyObject *resultobj; | |
15097 | int result; | |
15098 | char *kwnames[] = { | |
15099 | NULL | |
15100 | }; | |
15101 | ||
15102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
15103 | { | |
15104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15105 | result = (int)wxDateTime::GetCountry(); | |
15106 | ||
15107 | wxPyEndAllowThreads(__tstate); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
15110 | resultobj = PyInt_FromLong((long)result); | |
15111 | return resultobj; | |
15112 | fail: | |
15113 | return NULL; | |
15114 | } | |
15115 | ||
15116 | ||
15117 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15118 | PyObject *resultobj; | |
15119 | int arg1 = (int) wxDateTime::Country_Default ; | |
15120 | bool result; | |
15121 | char *kwnames[] = { | |
15122 | (char *) "country", NULL | |
15123 | }; | |
15124 | ||
15125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_IsWestEuropeanCountry",kwnames,&arg1)) goto fail; | |
15126 | { | |
15127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15128 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
15129 | ||
15130 | wxPyEndAllowThreads(__tstate); | |
15131 | if (PyErr_Occurred()) SWIG_fail; | |
15132 | } | |
15133 | resultobj = PyInt_FromLong((long)result); | |
15134 | return resultobj; | |
15135 | fail: | |
15136 | return NULL; | |
15137 | } | |
15138 | ||
15139 | ||
15140 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15141 | PyObject *resultobj; | |
15142 | int arg1 = (int) wxDateTime::Gregorian ; | |
15143 | int result; | |
15144 | char *kwnames[] = { | |
15145 | (char *) "cal", NULL | |
15146 | }; | |
15147 | ||
15148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentYear",kwnames,&arg1)) goto fail; | |
15149 | { | |
15150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15151 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
15152 | ||
15153 | wxPyEndAllowThreads(__tstate); | |
15154 | if (PyErr_Occurred()) SWIG_fail; | |
15155 | } | |
15156 | resultobj = PyInt_FromLong((long)result); | |
15157 | return resultobj; | |
15158 | fail: | |
15159 | return NULL; | |
15160 | } | |
15161 | ||
15162 | ||
15163 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15164 | PyObject *resultobj; | |
15165 | int arg1 ; | |
15166 | int result; | |
15167 | char *kwnames[] = { | |
15168 | (char *) "year", NULL | |
15169 | }; | |
15170 | ||
15171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_ConvertYearToBC",kwnames,&arg1)) goto fail; | |
15172 | { | |
15173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15174 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
15175 | ||
15176 | wxPyEndAllowThreads(__tstate); | |
15177 | if (PyErr_Occurred()) SWIG_fail; | |
15178 | } | |
15179 | resultobj = PyInt_FromLong((long)result); | |
15180 | return resultobj; | |
15181 | fail: | |
15182 | return NULL; | |
15183 | } | |
15184 | ||
15185 | ||
15186 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15187 | PyObject *resultobj; | |
15188 | int arg1 = (int) wxDateTime::Gregorian ; | |
15189 | int result; | |
15190 | char *kwnames[] = { | |
15191 | (char *) "cal", NULL | |
15192 | }; | |
15193 | ||
15194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentMonth",kwnames,&arg1)) goto fail; | |
15195 | { | |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
15202 | resultobj = PyInt_FromLong((long)result); | |
15203 | return resultobj; | |
15204 | fail: | |
15205 | return NULL; | |
15206 | } | |
15207 | ||
15208 | ||
15209 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15210 | PyObject *resultobj; | |
15211 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15212 | int arg2 = (int) wxDateTime::Gregorian ; | |
15213 | bool result; | |
15214 | char *kwnames[] = { | |
15215 | (char *) "year",(char *) "cal", NULL | |
15216 | }; | |
15217 | ||
15218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsLeapYear",kwnames,&arg1,&arg2)) goto fail; | |
15219 | { | |
15220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15221 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
15222 | ||
15223 | wxPyEndAllowThreads(__tstate); | |
15224 | if (PyErr_Occurred()) SWIG_fail; | |
15225 | } | |
15226 | resultobj = PyInt_FromLong((long)result); | |
15227 | return resultobj; | |
15228 | fail: | |
15229 | return NULL; | |
15230 | } | |
15231 | ||
15232 | ||
15233 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15234 | PyObject *resultobj; | |
15235 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15236 | int result; | |
15237 | char *kwnames[] = { | |
15238 | (char *) "year", NULL | |
15239 | }; | |
15240 | ||
15241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCentury",kwnames,&arg1)) goto fail; | |
15242 | { | |
15243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15244 | result = (int)wxDateTime::GetCentury(arg1); | |
15245 | ||
15246 | wxPyEndAllowThreads(__tstate); | |
15247 | if (PyErr_Occurred()) SWIG_fail; | |
15248 | } | |
15249 | resultobj = PyInt_FromLong((long)result); | |
15250 | return resultobj; | |
15251 | fail: | |
15252 | return NULL; | |
15253 | } | |
15254 | ||
15255 | ||
15256 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15257 | PyObject *resultobj; | |
15258 | int arg1 ; | |
15259 | int arg2 = (int) wxDateTime::Gregorian ; | |
15260 | wxDateTime::wxDateTime_t result; | |
15261 | char *kwnames[] = { | |
15262 | (char *) "year",(char *) "cal", NULL | |
15263 | }; | |
15264 | ||
15265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetNumberOfDaysinYear",kwnames,&arg1,&arg2)) goto fail; | |
15266 | { | |
15267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15268 | result = (wxDateTime::wxDateTime_t)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); | |
15269 | ||
15270 | wxPyEndAllowThreads(__tstate); | |
15271 | if (PyErr_Occurred()) SWIG_fail; | |
15272 | } | |
15273 | resultobj = PyInt_FromLong((long)result); | |
15274 | return resultobj; | |
15275 | fail: | |
15276 | return NULL; | |
15277 | } | |
15278 | ||
15279 | ||
15280 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15281 | PyObject *resultobj; | |
15282 | int arg1 ; | |
15283 | int arg2 = (int) wxDateTime::Inv_Year ; | |
15284 | int arg3 = (int) wxDateTime::Gregorian ; | |
15285 | wxDateTime::wxDateTime_t result; | |
15286 | char *kwnames[] = { | |
15287 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
15288 | }; | |
15289 | ||
15290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|ii:DateTime_GetNumberOfDaysInMonth",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
15291 | { | |
15292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15293 | result = (wxDateTime::wxDateTime_t)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); | |
15294 | ||
15295 | wxPyEndAllowThreads(__tstate); | |
15296 | if (PyErr_Occurred()) SWIG_fail; | |
15297 | } | |
15298 | resultobj = PyInt_FromLong((long)result); | |
15299 | return resultobj; | |
15300 | fail: | |
15301 | return NULL; | |
15302 | } | |
15303 | ||
15304 | ||
15305 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15306 | PyObject *resultobj; | |
15307 | int arg1 ; | |
15308 | int arg2 = (int) wxDateTime::Name_Full ; | |
15309 | wxString result; | |
15310 | char *kwnames[] = { | |
15311 | (char *) "month",(char *) "flags", NULL | |
15312 | }; | |
15313 | ||
15314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetMonthName",kwnames,&arg1,&arg2)) goto fail; | |
15315 | { | |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
15322 | { | |
15323 | #if wxUSE_UNICODE | |
15324 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15325 | #else | |
15326 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15327 | #endif | |
15328 | } | |
15329 | return resultobj; | |
15330 | fail: | |
15331 | return NULL; | |
15332 | } | |
15333 | ||
15334 | ||
15335 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15336 | PyObject *resultobj; | |
15337 | int arg1 ; | |
15338 | int arg2 = (int) wxDateTime::Name_Full ; | |
15339 | wxString result; | |
15340 | char *kwnames[] = { | |
15341 | (char *) "weekday",(char *) "flags", NULL | |
15342 | }; | |
15343 | ||
15344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetWeekDayName",kwnames,&arg1,&arg2)) goto fail; | |
15345 | { | |
15346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15347 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
15348 | ||
15349 | wxPyEndAllowThreads(__tstate); | |
15350 | if (PyErr_Occurred()) SWIG_fail; | |
15351 | } | |
15352 | { | |
15353 | #if wxUSE_UNICODE | |
15354 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15355 | #else | |
15356 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15357 | #endif | |
15358 | } | |
15359 | return resultobj; | |
15360 | fail: | |
15361 | return NULL; | |
15362 | } | |
15363 | ||
15364 | ||
15365 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15366 | PyObject *resultobj; | |
15367 | wxString *arg1 = (wxString *) 0 ; | |
15368 | wxString *arg2 = (wxString *) 0 ; | |
15369 | PyObject * obj0 = 0 ; | |
15370 | PyObject * obj1 = 0 ; | |
15371 | char *kwnames[] = { | |
15372 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
15373 | }; | |
15374 | ||
15375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
15376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15377 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15378 | { | |
15379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15380 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
15381 | ||
15382 | wxPyEndAllowThreads(__tstate); | |
15383 | if (PyErr_Occurred()) SWIG_fail; | |
15384 | } | |
15385 | Py_INCREF(Py_None); resultobj = Py_None; | |
15386 | return resultobj; | |
15387 | fail: | |
15388 | return NULL; | |
15389 | } | |
15390 | ||
15391 | ||
15392 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15393 | PyObject *resultobj; | |
15394 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15395 | int arg2 = (int) wxDateTime::Country_Default ; | |
15396 | bool result; | |
15397 | char *kwnames[] = { | |
15398 | (char *) "year",(char *) "country", NULL | |
15399 | }; | |
15400 | ||
15401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsDSTApplicable",kwnames,&arg1,&arg2)) goto fail; | |
15402 | { | |
15403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15404 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
15405 | ||
15406 | wxPyEndAllowThreads(__tstate); | |
15407 | if (PyErr_Occurred()) SWIG_fail; | |
15408 | } | |
15409 | resultobj = PyInt_FromLong((long)result); | |
15410 | return resultobj; | |
15411 | fail: | |
15412 | return NULL; | |
15413 | } | |
15414 | ||
15415 | ||
15416 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15417 | PyObject *resultobj; | |
15418 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15419 | int arg2 = (int) wxDateTime::Country_Default ; | |
15420 | wxDateTime result; | |
15421 | char *kwnames[] = { | |
15422 | (char *) "year",(char *) "country", NULL | |
15423 | }; | |
15424 | ||
15425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetBeginDST",kwnames,&arg1,&arg2)) goto fail; | |
15426 | { | |
15427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15428 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
15429 | ||
15430 | wxPyEndAllowThreads(__tstate); | |
15431 | if (PyErr_Occurred()) SWIG_fail; | |
15432 | } | |
15433 | { | |
15434 | wxDateTime * resultptr; | |
15435 | resultptr = new wxDateTime((wxDateTime &) result); | |
15436 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15437 | } | |
15438 | return resultobj; | |
15439 | fail: | |
15440 | return NULL; | |
15441 | } | |
15442 | ||
15443 | ||
15444 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15445 | PyObject *resultobj; | |
15446 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15447 | int arg2 = (int) wxDateTime::Country_Default ; | |
15448 | wxDateTime result; | |
15449 | char *kwnames[] = { | |
15450 | (char *) "year",(char *) "country", NULL | |
15451 | }; | |
15452 | ||
15453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetEndDST",kwnames,&arg1,&arg2)) goto fail; | |
15454 | { | |
15455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15456 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
15457 | ||
15458 | wxPyEndAllowThreads(__tstate); | |
15459 | if (PyErr_Occurred()) SWIG_fail; | |
15460 | } | |
15461 | { | |
15462 | wxDateTime * resultptr; | |
15463 | resultptr = new wxDateTime((wxDateTime &) result); | |
15464 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15465 | } | |
15466 | return resultobj; | |
15467 | fail: | |
15468 | return NULL; | |
15469 | } | |
15470 | ||
15471 | ||
15472 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15473 | PyObject *resultobj; | |
15474 | wxDateTime result; | |
15475 | char *kwnames[] = { | |
15476 | NULL | |
15477 | }; | |
15478 | ||
15479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
15480 | { | |
15481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15482 | result = wxDateTime::Now(); | |
15483 | ||
15484 | wxPyEndAllowThreads(__tstate); | |
15485 | if (PyErr_Occurred()) SWIG_fail; | |
15486 | } | |
15487 | { | |
15488 | wxDateTime * resultptr; | |
15489 | resultptr = new wxDateTime((wxDateTime &) result); | |
15490 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15491 | } | |
15492 | return resultobj; | |
15493 | fail: | |
15494 | return NULL; | |
15495 | } | |
15496 | ||
15497 | ||
15498 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15499 | PyObject *resultobj; | |
15500 | wxDateTime result; | |
15501 | char *kwnames[] = { | |
15502 | NULL | |
15503 | }; | |
15504 | ||
15505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
15506 | { | |
15507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15508 | result = wxDateTime::UNow(); | |
15509 | ||
15510 | wxPyEndAllowThreads(__tstate); | |
15511 | if (PyErr_Occurred()) SWIG_fail; | |
15512 | } | |
15513 | { | |
15514 | wxDateTime * resultptr; | |
15515 | resultptr = new wxDateTime((wxDateTime &) result); | |
15516 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15517 | } | |
15518 | return resultobj; | |
15519 | fail: | |
15520 | return NULL; | |
15521 | } | |
15522 | ||
15523 | ||
15524 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15525 | PyObject *resultobj; | |
15526 | wxDateTime result; | |
15527 | char *kwnames[] = { | |
15528 | NULL | |
15529 | }; | |
15530 | ||
15531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
15532 | { | |
15533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15534 | result = wxDateTime::Today(); | |
15535 | ||
15536 | wxPyEndAllowThreads(__tstate); | |
15537 | if (PyErr_Occurred()) SWIG_fail; | |
15538 | } | |
15539 | { | |
15540 | wxDateTime * resultptr; | |
15541 | resultptr = new wxDateTime((wxDateTime &) result); | |
15542 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15543 | } | |
15544 | return resultobj; | |
15545 | fail: | |
15546 | return NULL; | |
15547 | } | |
15548 | ||
15549 | ||
15550 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15551 | PyObject *resultobj; | |
15552 | wxDateTime *result; | |
15553 | char *kwnames[] = { | |
15554 | NULL | |
15555 | }; | |
15556 | ||
15557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
15558 | { | |
15559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15560 | result = (wxDateTime *)new wxDateTime(); | |
15561 | ||
15562 | wxPyEndAllowThreads(__tstate); | |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
15564 | } | |
15565 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15566 | return resultobj; | |
15567 | fail: | |
15568 | return NULL; | |
15569 | } | |
15570 | ||
15571 | ||
15572 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15573 | PyObject *resultobj; | |
15574 | time_t arg1 ; | |
15575 | wxDateTime *result; | |
15576 | PyObject * obj0 = 0 ; | |
15577 | char *kwnames[] = { | |
15578 | (char *) "timet", NULL | |
15579 | }; | |
15580 | ||
15581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15582 | arg1 = (time_t) PyInt_AsLong(obj0); | |
15583 | if (PyErr_Occurred()) SWIG_fail; | |
15584 | { | |
15585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15586 | result = (wxDateTime *)new wxDateTime(arg1); | |
15587 | ||
15588 | wxPyEndAllowThreads(__tstate); | |
15589 | if (PyErr_Occurred()) SWIG_fail; | |
15590 | } | |
15591 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15592 | return resultobj; | |
15593 | fail: | |
15594 | return NULL; | |
15595 | } | |
15596 | ||
15597 | ||
15598 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15599 | PyObject *resultobj; | |
15600 | double arg1 ; | |
15601 | wxDateTime *result; | |
15602 | char *kwnames[] = { | |
15603 | (char *) "jdn", NULL | |
15604 | }; | |
15605 | ||
15606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"d:new_DateTimeFromJDN",kwnames,&arg1)) goto fail; | |
15607 | { | |
15608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15609 | result = (wxDateTime *)new wxDateTime(arg1); | |
15610 | ||
15611 | wxPyEndAllowThreads(__tstate); | |
15612 | if (PyErr_Occurred()) SWIG_fail; | |
15613 | } | |
15614 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15615 | return resultobj; | |
15616 | fail: | |
15617 | return NULL; | |
15618 | } | |
15619 | ||
15620 | ||
15621 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15622 | PyObject *resultobj; | |
15623 | wxDateTime::wxDateTime_t arg1 ; | |
15624 | wxDateTime::wxDateTime_t arg2 = (wxDateTime::wxDateTime_t) 0 ; | |
15625 | wxDateTime::wxDateTime_t arg3 = (wxDateTime::wxDateTime_t) 0 ; | |
15626 | wxDateTime::wxDateTime_t arg4 = (wxDateTime::wxDateTime_t) 0 ; | |
15627 | wxDateTime *result; | |
15628 | PyObject * obj0 = 0 ; | |
15629 | PyObject * obj1 = 0 ; | |
15630 | PyObject * obj2 = 0 ; | |
15631 | PyObject * obj3 = 0 ; | |
15632 | char *kwnames[] = { | |
15633 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15634 | }; | |
15635 | ||
15636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15637 | arg1 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj0); | |
15638 | if (PyErr_Occurred()) SWIG_fail; | |
15639 | if (obj1) { | |
15640 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
15641 | if (PyErr_Occurred()) SWIG_fail; | |
15642 | } | |
15643 | if (obj2) { | |
15644 | arg3 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj2); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
15647 | if (obj3) { | |
15648 | arg4 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj3); | |
15649 | if (PyErr_Occurred()) SWIG_fail; | |
15650 | } | |
15651 | { | |
15652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15653 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
15654 | ||
15655 | wxPyEndAllowThreads(__tstate); | |
15656 | if (PyErr_Occurred()) SWIG_fail; | |
15657 | } | |
15658 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15659 | return resultobj; | |
15660 | fail: | |
15661 | return NULL; | |
15662 | } | |
15663 | ||
15664 | ||
15665 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15666 | PyObject *resultobj; | |
15667 | wxDateTime::wxDateTime_t arg1 ; | |
15668 | int arg2 = (int) wxDateTime::Inv_Month ; | |
15669 | int arg3 = (int) wxDateTime::Inv_Year ; | |
15670 | wxDateTime::wxDateTime_t arg4 = (wxDateTime::wxDateTime_t) 0 ; | |
15671 | wxDateTime::wxDateTime_t arg5 = (wxDateTime::wxDateTime_t) 0 ; | |
15672 | wxDateTime::wxDateTime_t arg6 = (wxDateTime::wxDateTime_t) 0 ; | |
15673 | wxDateTime::wxDateTime_t arg7 = (wxDateTime::wxDateTime_t) 0 ; | |
15674 | wxDateTime *result; | |
15675 | PyObject * obj0 = 0 ; | |
15676 | PyObject * obj3 = 0 ; | |
15677 | PyObject * obj4 = 0 ; | |
15678 | PyObject * obj5 = 0 ; | |
15679 | PyObject * obj6 = 0 ; | |
15680 | char *kwnames[] = { | |
15681 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15682 | }; | |
15683 | ||
15684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiOOOO:new_DateTimeFromDMY",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
15685 | arg1 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj0); | |
15686 | if (PyErr_Occurred()) SWIG_fail; | |
15687 | if (obj3) { | |
15688 | arg4 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj3); | |
15689 | if (PyErr_Occurred()) SWIG_fail; | |
15690 | } | |
15691 | if (obj4) { | |
15692 | arg5 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj4); | |
15693 | if (PyErr_Occurred()) SWIG_fail; | |
15694 | } | |
15695 | if (obj5) { | |
15696 | arg6 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj5); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
15699 | if (obj6) { | |
15700 | arg7 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj6); | |
15701 | if (PyErr_Occurred()) SWIG_fail; | |
15702 | } | |
15703 | { | |
15704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15705 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
15706 | ||
15707 | wxPyEndAllowThreads(__tstate); | |
15708 | if (PyErr_Occurred()) SWIG_fail; | |
15709 | } | |
15710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15711 | return resultobj; | |
15712 | fail: | |
15713 | return NULL; | |
15714 | } | |
15715 | ||
15716 | ||
15717 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15718 | PyObject *resultobj; | |
15719 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15720 | PyObject * obj0 = 0 ; | |
15721 | char *kwnames[] = { | |
15722 | (char *) "self", NULL | |
15723 | }; | |
15724 | ||
15725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15727 | { | |
15728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15729 | delete arg1; | |
15730 | ||
15731 | wxPyEndAllowThreads(__tstate); | |
15732 | if (PyErr_Occurred()) SWIG_fail; | |
15733 | } | |
15734 | Py_INCREF(Py_None); resultobj = Py_None; | |
15735 | return resultobj; | |
15736 | fail: | |
15737 | return NULL; | |
15738 | } | |
15739 | ||
15740 | ||
15741 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15742 | PyObject *resultobj; | |
15743 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15744 | wxDateTime *result; | |
15745 | PyObject * obj0 = 0 ; | |
15746 | char *kwnames[] = { | |
15747 | (char *) "self", NULL | |
15748 | }; | |
15749 | ||
15750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15752 | { | |
15753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15754 | { | |
15755 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
15756 | result = (wxDateTime *) &_result_ref; | |
15757 | } | |
15758 | ||
15759 | wxPyEndAllowThreads(__tstate); | |
15760 | if (PyErr_Occurred()) SWIG_fail; | |
15761 | } | |
15762 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15763 | return resultobj; | |
15764 | fail: | |
15765 | return NULL; | |
15766 | } | |
15767 | ||
15768 | ||
15769 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15770 | PyObject *resultobj; | |
15771 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15772 | time_t arg2 ; | |
15773 | wxDateTime *result; | |
15774 | PyObject * obj0 = 0 ; | |
15775 | PyObject * obj1 = 0 ; | |
15776 | char *kwnames[] = { | |
15777 | (char *) "self",(char *) "timet", NULL | |
15778 | }; | |
15779 | ||
15780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15782 | arg2 = (time_t) PyInt_AsLong(obj1); | |
15783 | if (PyErr_Occurred()) SWIG_fail; | |
15784 | { | |
15785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15786 | { | |
15787 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
15788 | result = (wxDateTime *) &_result_ref; | |
15789 | } | |
15790 | ||
15791 | wxPyEndAllowThreads(__tstate); | |
15792 | if (PyErr_Occurred()) SWIG_fail; | |
15793 | } | |
15794 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15795 | return resultobj; | |
15796 | fail: | |
15797 | return NULL; | |
15798 | } | |
15799 | ||
15800 | ||
15801 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15802 | PyObject *resultobj; | |
15803 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15804 | double arg2 ; | |
15805 | wxDateTime *result; | |
15806 | PyObject * obj0 = 0 ; | |
15807 | char *kwnames[] = { | |
15808 | (char *) "self",(char *) "jdn", NULL | |
15809 | }; | |
15810 | ||
15811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:DateTime_SetJDN",kwnames,&obj0,&arg2)) goto fail; | |
15812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15813 | { | |
15814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15815 | { | |
15816 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
15817 | result = (wxDateTime *) &_result_ref; | |
15818 | } | |
15819 | ||
15820 | wxPyEndAllowThreads(__tstate); | |
15821 | if (PyErr_Occurred()) SWIG_fail; | |
15822 | } | |
15823 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15824 | return resultobj; | |
15825 | fail: | |
15826 | return NULL; | |
15827 | } | |
15828 | ||
15829 | ||
15830 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15831 | PyObject *resultobj; | |
15832 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15833 | wxDateTime::wxDateTime_t arg2 ; | |
15834 | wxDateTime::wxDateTime_t arg3 = (wxDateTime::wxDateTime_t) 0 ; | |
15835 | wxDateTime::wxDateTime_t arg4 = (wxDateTime::wxDateTime_t) 0 ; | |
15836 | wxDateTime::wxDateTime_t arg5 = (wxDateTime::wxDateTime_t) 0 ; | |
15837 | wxDateTime *result; | |
15838 | PyObject * obj0 = 0 ; | |
15839 | PyObject * obj1 = 0 ; | |
15840 | PyObject * obj2 = 0 ; | |
15841 | PyObject * obj3 = 0 ; | |
15842 | PyObject * obj4 = 0 ; | |
15843 | char *kwnames[] = { | |
15844 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15845 | }; | |
15846 | ||
15847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15849 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
15850 | if (PyErr_Occurred()) SWIG_fail; | |
15851 | if (obj2) { | |
15852 | arg3 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj2); | |
15853 | if (PyErr_Occurred()) SWIG_fail; | |
15854 | } | |
15855 | if (obj3) { | |
15856 | arg4 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj3); | |
15857 | if (PyErr_Occurred()) SWIG_fail; | |
15858 | } | |
15859 | if (obj4) { | |
15860 | arg5 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj4); | |
15861 | if (PyErr_Occurred()) SWIG_fail; | |
15862 | } | |
15863 | { | |
15864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15865 | { | |
15866 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
15867 | result = (wxDateTime *) &_result_ref; | |
15868 | } | |
15869 | ||
15870 | wxPyEndAllowThreads(__tstate); | |
15871 | if (PyErr_Occurred()) SWIG_fail; | |
15872 | } | |
15873 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15874 | return resultobj; | |
15875 | fail: | |
15876 | return NULL; | |
15877 | } | |
15878 | ||
15879 | ||
15880 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15881 | PyObject *resultobj; | |
15882 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15883 | wxDateTime::wxDateTime_t arg2 ; | |
15884 | int arg3 = (int) wxDateTime::Inv_Month ; | |
15885 | int arg4 = (int) wxDateTime::Inv_Year ; | |
15886 | wxDateTime::wxDateTime_t arg5 = (wxDateTime::wxDateTime_t) 0 ; | |
15887 | wxDateTime::wxDateTime_t arg6 = (wxDateTime::wxDateTime_t) 0 ; | |
15888 | wxDateTime::wxDateTime_t arg7 = (wxDateTime::wxDateTime_t) 0 ; | |
15889 | wxDateTime::wxDateTime_t arg8 = (wxDateTime::wxDateTime_t) 0 ; | |
15890 | wxDateTime *result; | |
15891 | PyObject * obj0 = 0 ; | |
15892 | PyObject * obj1 = 0 ; | |
15893 | PyObject * obj4 = 0 ; | |
15894 | PyObject * obj5 = 0 ; | |
15895 | PyObject * obj6 = 0 ; | |
15896 | PyObject * obj7 = 0 ; | |
15897 | char *kwnames[] = { | |
15898 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15899 | }; | |
15900 | ||
15901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiOOOO:DateTime_Set",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
15902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15903 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
15904 | if (PyErr_Occurred()) SWIG_fail; | |
15905 | if (obj4) { | |
15906 | arg5 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj4); | |
15907 | if (PyErr_Occurred()) SWIG_fail; | |
15908 | } | |
15909 | if (obj5) { | |
15910 | arg6 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj5); | |
15911 | if (PyErr_Occurred()) SWIG_fail; | |
15912 | } | |
15913 | if (obj6) { | |
15914 | arg7 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj6); | |
15915 | if (PyErr_Occurred()) SWIG_fail; | |
15916 | } | |
15917 | if (obj7) { | |
15918 | arg8 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj7); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | { | |
15922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15923 | { | |
15924 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
15925 | result = (wxDateTime *) &_result_ref; | |
15926 | } | |
15927 | ||
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15931 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15932 | return resultobj; | |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
15938 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15939 | PyObject *resultobj; | |
15940 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15941 | wxDateTime *result; | |
15942 | PyObject * obj0 = 0 ; | |
15943 | char *kwnames[] = { | |
15944 | (char *) "self", NULL | |
15945 | }; | |
15946 | ||
15947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15949 | { | |
15950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15951 | { | |
15952 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
15953 | result = (wxDateTime *) &_result_ref; | |
15954 | } | |
15955 | ||
15956 | wxPyEndAllowThreads(__tstate); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
15959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15960 | return resultobj; | |
15961 | fail: | |
15962 | return NULL; | |
15963 | } | |
15964 | ||
15965 | ||
15966 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15967 | PyObject *resultobj; | |
15968 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15969 | int arg2 ; | |
15970 | wxDateTime *result; | |
15971 | PyObject * obj0 = 0 ; | |
15972 | char *kwnames[] = { | |
15973 | (char *) "self",(char *) "year", NULL | |
15974 | }; | |
15975 | ||
15976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetYear",kwnames,&obj0,&arg2)) goto fail; | |
15977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15978 | { | |
15979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15980 | { | |
15981 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
15982 | result = (wxDateTime *) &_result_ref; | |
15983 | } | |
15984 | ||
15985 | wxPyEndAllowThreads(__tstate); | |
15986 | if (PyErr_Occurred()) SWIG_fail; | |
15987 | } | |
15988 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15989 | return resultobj; | |
15990 | fail: | |
15991 | return NULL; | |
15992 | } | |
15993 | ||
15994 | ||
15995 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15996 | PyObject *resultobj; | |
15997 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15998 | int arg2 ; | |
15999 | wxDateTime *result; | |
16000 | PyObject * obj0 = 0 ; | |
16001 | char *kwnames[] = { | |
16002 | (char *) "self",(char *) "month", NULL | |
16003 | }; | |
16004 | ||
16005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMonth",kwnames,&obj0,&arg2)) goto fail; | |
16006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16007 | { | |
16008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16009 | { | |
16010 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
16011 | result = (wxDateTime *) &_result_ref; | |
16012 | } | |
16013 | ||
16014 | wxPyEndAllowThreads(__tstate); | |
16015 | if (PyErr_Occurred()) SWIG_fail; | |
16016 | } | |
16017 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16018 | return resultobj; | |
16019 | fail: | |
16020 | return NULL; | |
16021 | } | |
16022 | ||
16023 | ||
16024 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16025 | PyObject *resultobj; | |
16026 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16027 | wxDateTime::wxDateTime_t arg2 ; | |
16028 | wxDateTime *result; | |
16029 | PyObject * obj0 = 0 ; | |
16030 | PyObject * obj1 = 0 ; | |
16031 | char *kwnames[] = { | |
16032 | (char *) "self",(char *) "day", NULL | |
16033 | }; | |
16034 | ||
16035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail; | |
16036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16037 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16038 | if (PyErr_Occurred()) SWIG_fail; | |
16039 | { | |
16040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16041 | { | |
16042 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
16043 | result = (wxDateTime *) &_result_ref; | |
16044 | } | |
16045 | ||
16046 | wxPyEndAllowThreads(__tstate); | |
16047 | if (PyErr_Occurred()) SWIG_fail; | |
16048 | } | |
16049 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16050 | return resultobj; | |
16051 | fail: | |
16052 | return NULL; | |
16053 | } | |
16054 | ||
16055 | ||
16056 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16057 | PyObject *resultobj; | |
16058 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16059 | wxDateTime::wxDateTime_t arg2 ; | |
16060 | wxDateTime *result; | |
16061 | PyObject * obj0 = 0 ; | |
16062 | PyObject * obj1 = 0 ; | |
16063 | char *kwnames[] = { | |
16064 | (char *) "self",(char *) "hour", NULL | |
16065 | }; | |
16066 | ||
16067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail; | |
16068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16069 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | { | |
16072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16073 | { | |
16074 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
16075 | result = (wxDateTime *) &_result_ref; | |
16076 | } | |
16077 | ||
16078 | wxPyEndAllowThreads(__tstate); | |
16079 | if (PyErr_Occurred()) SWIG_fail; | |
16080 | } | |
16081 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16082 | return resultobj; | |
16083 | fail: | |
16084 | return NULL; | |
16085 | } | |
16086 | ||
16087 | ||
16088 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16089 | PyObject *resultobj; | |
16090 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16091 | wxDateTime::wxDateTime_t arg2 ; | |
16092 | wxDateTime *result; | |
16093 | PyObject * obj0 = 0 ; | |
16094 | PyObject * obj1 = 0 ; | |
16095 | char *kwnames[] = { | |
16096 | (char *) "self",(char *) "minute", NULL | |
16097 | }; | |
16098 | ||
16099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail; | |
16100 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16101 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16102 | if (PyErr_Occurred()) SWIG_fail; | |
16103 | { | |
16104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16105 | { | |
16106 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
16107 | result = (wxDateTime *) &_result_ref; | |
16108 | } | |
16109 | ||
16110 | wxPyEndAllowThreads(__tstate); | |
16111 | if (PyErr_Occurred()) SWIG_fail; | |
16112 | } | |
16113 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16114 | return resultobj; | |
16115 | fail: | |
16116 | return NULL; | |
16117 | } | |
16118 | ||
16119 | ||
16120 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16121 | PyObject *resultobj; | |
16122 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16123 | wxDateTime::wxDateTime_t arg2 ; | |
16124 | wxDateTime *result; | |
16125 | PyObject * obj0 = 0 ; | |
16126 | PyObject * obj1 = 0 ; | |
16127 | char *kwnames[] = { | |
16128 | (char *) "self",(char *) "second", NULL | |
16129 | }; | |
16130 | ||
16131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail; | |
16132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16133 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16134 | if (PyErr_Occurred()) SWIG_fail; | |
16135 | { | |
16136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16137 | { | |
16138 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
16139 | result = (wxDateTime *) &_result_ref; | |
16140 | } | |
16141 | ||
16142 | wxPyEndAllowThreads(__tstate); | |
16143 | if (PyErr_Occurred()) SWIG_fail; | |
16144 | } | |
16145 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16146 | return resultobj; | |
16147 | fail: | |
16148 | return NULL; | |
16149 | } | |
16150 | ||
16151 | ||
16152 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16153 | PyObject *resultobj; | |
16154 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16155 | wxDateTime::wxDateTime_t arg2 ; | |
16156 | wxDateTime *result; | |
16157 | PyObject * obj0 = 0 ; | |
16158 | PyObject * obj1 = 0 ; | |
16159 | char *kwnames[] = { | |
16160 | (char *) "self",(char *) "millisecond", NULL | |
16161 | }; | |
16162 | ||
16163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
16164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16165 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16166 | if (PyErr_Occurred()) SWIG_fail; | |
16167 | { | |
16168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16169 | { | |
16170 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
16171 | result = (wxDateTime *) &_result_ref; | |
16172 | } | |
16173 | ||
16174 | wxPyEndAllowThreads(__tstate); | |
16175 | if (PyErr_Occurred()) SWIG_fail; | |
16176 | } | |
16177 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16178 | return resultobj; | |
16179 | fail: | |
16180 | return NULL; | |
16181 | } | |
16182 | ||
16183 | ||
16184 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16185 | PyObject *resultobj; | |
16186 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16187 | int arg2 ; | |
16188 | int arg3 = (int) wxDateTime::Monday_First ; | |
16189 | wxDateTime *result; | |
16190 | PyObject * obj0 = 0 ; | |
16191 | char *kwnames[] = { | |
16192 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16193 | }; | |
16194 | ||
16195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16197 | { | |
16198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16199 | { | |
16200 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16201 | result = (wxDateTime *) &_result_ref; | |
16202 | } | |
16203 | ||
16204 | wxPyEndAllowThreads(__tstate); | |
16205 | if (PyErr_Occurred()) SWIG_fail; | |
16206 | } | |
16207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16208 | return resultobj; | |
16209 | fail: | |
16210 | return NULL; | |
16211 | } | |
16212 | ||
16213 | ||
16214 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16215 | PyObject *resultobj; | |
16216 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16217 | int arg2 ; | |
16218 | int arg3 = (int) wxDateTime::Monday_First ; | |
16219 | wxDateTime result; | |
16220 | PyObject * obj0 = 0 ; | |
16221 | char *kwnames[] = { | |
16222 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16223 | }; | |
16224 | ||
16225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16227 | { | |
16228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16229 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16230 | ||
16231 | wxPyEndAllowThreads(__tstate); | |
16232 | if (PyErr_Occurred()) SWIG_fail; | |
16233 | } | |
16234 | { | |
16235 | wxDateTime * resultptr; | |
16236 | resultptr = new wxDateTime((wxDateTime &) result); | |
16237 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16238 | } | |
16239 | return resultobj; | |
16240 | fail: | |
16241 | return NULL; | |
16242 | } | |
16243 | ||
16244 | ||
16245 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16246 | PyObject *resultobj; | |
16247 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16248 | int arg2 ; | |
16249 | wxDateTime *result; | |
16250 | PyObject * obj0 = 0 ; | |
16251 | char *kwnames[] = { | |
16252 | (char *) "self",(char *) "weekday", NULL | |
16253 | }; | |
16254 | ||
16255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16257 | { | |
16258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16259 | { | |
16260 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
16261 | result = (wxDateTime *) &_result_ref; | |
16262 | } | |
16263 | ||
16264 | wxPyEndAllowThreads(__tstate); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | } | |
16267 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16268 | return resultobj; | |
16269 | fail: | |
16270 | return NULL; | |
16271 | } | |
16272 | ||
16273 | ||
16274 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16275 | PyObject *resultobj; | |
16276 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16277 | int arg2 ; | |
16278 | wxDateTime result; | |
16279 | PyObject * obj0 = 0 ; | |
16280 | char *kwnames[] = { | |
16281 | (char *) "self",(char *) "weekday", NULL | |
16282 | }; | |
16283 | ||
16284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16286 | { | |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
16289 | ||
16290 | wxPyEndAllowThreads(__tstate); | |
16291 | if (PyErr_Occurred()) SWIG_fail; | |
16292 | } | |
16293 | { | |
16294 | wxDateTime * resultptr; | |
16295 | resultptr = new wxDateTime((wxDateTime &) result); | |
16296 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16297 | } | |
16298 | return resultobj; | |
16299 | fail: | |
16300 | return NULL; | |
16301 | } | |
16302 | ||
16303 | ||
16304 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16305 | PyObject *resultobj; | |
16306 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16307 | int arg2 ; | |
16308 | wxDateTime *result; | |
16309 | PyObject * obj0 = 0 ; | |
16310 | char *kwnames[] = { | |
16311 | (char *) "self",(char *) "weekday", NULL | |
16312 | }; | |
16313 | ||
16314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16316 | { | |
16317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16318 | { | |
16319 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16320 | result = (wxDateTime *) &_result_ref; | |
16321 | } | |
16322 | ||
16323 | wxPyEndAllowThreads(__tstate); | |
16324 | if (PyErr_Occurred()) SWIG_fail; | |
16325 | } | |
16326 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16327 | return resultobj; | |
16328 | fail: | |
16329 | return NULL; | |
16330 | } | |
16331 | ||
16332 | ||
16333 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16334 | PyObject *resultobj; | |
16335 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16336 | int arg2 ; | |
16337 | wxDateTime result; | |
16338 | PyObject * obj0 = 0 ; | |
16339 | char *kwnames[] = { | |
16340 | (char *) "self",(char *) "weekday", NULL | |
16341 | }; | |
16342 | ||
16343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16345 | { | |
16346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16347 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16348 | ||
16349 | wxPyEndAllowThreads(__tstate); | |
16350 | if (PyErr_Occurred()) SWIG_fail; | |
16351 | } | |
16352 | { | |
16353 | wxDateTime * resultptr; | |
16354 | resultptr = new wxDateTime((wxDateTime &) result); | |
16355 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16356 | } | |
16357 | return resultobj; | |
16358 | fail: | |
16359 | return NULL; | |
16360 | } | |
16361 | ||
16362 | ||
16363 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16364 | PyObject *resultobj; | |
16365 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16366 | int arg2 ; | |
16367 | int arg3 = (int) 1 ; | |
16368 | int arg4 = (int) wxDateTime::Inv_Month ; | |
16369 | int arg5 = (int) wxDateTime::Inv_Year ; | |
16370 | bool result; | |
16371 | PyObject * obj0 = 0 ; | |
16372 | char *kwnames[] = { | |
16373 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
16374 | }; | |
16375 | ||
16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetToWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16378 | { | |
16379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16380 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
16381 | ||
16382 | wxPyEndAllowThreads(__tstate); | |
16383 | if (PyErr_Occurred()) SWIG_fail; | |
16384 | } | |
16385 | resultobj = PyInt_FromLong((long)result); | |
16386 | return resultobj; | |
16387 | fail: | |
16388 | return NULL; | |
16389 | } | |
16390 | ||
16391 | ||
16392 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16393 | PyObject *resultobj; | |
16394 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16395 | int arg2 ; | |
16396 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16397 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16398 | bool result; | |
16399 | PyObject * obj0 = 0 ; | |
16400 | char *kwnames[] = { | |
16401 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16402 | }; | |
16403 | ||
16404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16406 | { | |
16407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16408 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16409 | ||
16410 | wxPyEndAllowThreads(__tstate); | |
16411 | if (PyErr_Occurred()) SWIG_fail; | |
16412 | } | |
16413 | resultobj = PyInt_FromLong((long)result); | |
16414 | return resultobj; | |
16415 | fail: | |
16416 | return NULL; | |
16417 | } | |
16418 | ||
16419 | ||
16420 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16421 | PyObject *resultobj; | |
16422 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16423 | int arg2 ; | |
16424 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16425 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16426 | wxDateTime result; | |
16427 | PyObject * obj0 = 0 ; | |
16428 | char *kwnames[] = { | |
16429 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16430 | }; | |
16431 | ||
16432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16434 | { | |
16435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16436 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16437 | ||
16438 | wxPyEndAllowThreads(__tstate); | |
16439 | if (PyErr_Occurred()) SWIG_fail; | |
16440 | } | |
16441 | { | |
16442 | wxDateTime * resultptr; | |
16443 | resultptr = new wxDateTime((wxDateTime &) result); | |
16444 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16445 | } | |
16446 | return resultobj; | |
16447 | fail: | |
16448 | return NULL; | |
16449 | } | |
16450 | ||
16451 | ||
16452 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16453 | PyObject *resultobj; | |
16454 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16455 | wxDateTime::wxDateTime_t arg2 ; | |
16456 | int arg3 = (int) wxDateTime::Mon ; | |
16457 | int arg4 = (int) wxDateTime::Monday_First ; | |
16458 | bool result; | |
16459 | PyObject * obj0 = 0 ; | |
16460 | PyObject * obj1 = 0 ; | |
16461 | char *kwnames[] = { | |
16462 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16463 | }; | |
16464 | ||
16465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
16466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16467 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16468 | if (PyErr_Occurred()) SWIG_fail; | |
16469 | { | |
16470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16471 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16472 | ||
16473 | wxPyEndAllowThreads(__tstate); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
16475 | } | |
16476 | resultobj = PyInt_FromLong((long)result); | |
16477 | return resultobj; | |
16478 | fail: | |
16479 | return NULL; | |
16480 | } | |
16481 | ||
16482 | ||
16483 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16484 | PyObject *resultobj; | |
16485 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16486 | wxDateTime::wxDateTime_t arg2 ; | |
16487 | int arg3 = (int) wxDateTime::Mon ; | |
16488 | int arg4 = (int) wxDateTime::Monday_First ; | |
16489 | wxDateTime result; | |
16490 | PyObject * obj0 = 0 ; | |
16491 | PyObject * obj1 = 0 ; | |
16492 | char *kwnames[] = { | |
16493 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16494 | }; | |
16495 | ||
16496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|ii:DateTime_GetWeek",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
16497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16498 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16499 | if (PyErr_Occurred()) SWIG_fail; | |
16500 | { | |
16501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16502 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16503 | ||
16504 | wxPyEndAllowThreads(__tstate); | |
16505 | if (PyErr_Occurred()) SWIG_fail; | |
16506 | } | |
16507 | { | |
16508 | wxDateTime * resultptr; | |
16509 | resultptr = new wxDateTime((wxDateTime &) result); | |
16510 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16511 | } | |
16512 | return resultobj; | |
16513 | fail: | |
16514 | return NULL; | |
16515 | } | |
16516 | ||
16517 | ||
16518 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16519 | PyObject *resultobj; | |
16520 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16521 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16522 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16523 | wxDateTime *result; | |
16524 | PyObject * obj0 = 0 ; | |
16525 | char *kwnames[] = { | |
16526 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16527 | }; | |
16528 | ||
16529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_SetToLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16531 | { | |
16532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16533 | { | |
16534 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16535 | result = (wxDateTime *) &_result_ref; | |
16536 | } | |
16537 | ||
16538 | wxPyEndAllowThreads(__tstate); | |
16539 | if (PyErr_Occurred()) SWIG_fail; | |
16540 | } | |
16541 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16542 | return resultobj; | |
16543 | fail: | |
16544 | return NULL; | |
16545 | } | |
16546 | ||
16547 | ||
16548 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16549 | PyObject *resultobj; | |
16550 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16551 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16552 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16553 | wxDateTime result; | |
16554 | PyObject * obj0 = 0 ; | |
16555 | char *kwnames[] = { | |
16556 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16557 | }; | |
16558 | ||
16559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_GetLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16561 | { | |
16562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16563 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16564 | ||
16565 | wxPyEndAllowThreads(__tstate); | |
16566 | if (PyErr_Occurred()) SWIG_fail; | |
16567 | } | |
16568 | { | |
16569 | wxDateTime * resultptr; | |
16570 | resultptr = new wxDateTime((wxDateTime &) result); | |
16571 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16572 | } | |
16573 | return resultobj; | |
16574 | fail: | |
16575 | return NULL; | |
16576 | } | |
16577 | ||
16578 | ||
16579 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16580 | PyObject *resultobj; | |
16581 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16582 | wxDateTime::wxDateTime_t arg2 ; | |
16583 | wxDateTime *result; | |
16584 | PyObject * obj0 = 0 ; | |
16585 | PyObject * obj1 = 0 ; | |
16586 | char *kwnames[] = { | |
16587 | (char *) "self",(char *) "yday", NULL | |
16588 | }; | |
16589 | ||
16590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail; | |
16591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16592 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16593 | if (PyErr_Occurred()) SWIG_fail; | |
16594 | { | |
16595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16596 | { | |
16597 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
16598 | result = (wxDateTime *) &_result_ref; | |
16599 | } | |
16600 | ||
16601 | wxPyEndAllowThreads(__tstate); | |
16602 | if (PyErr_Occurred()) SWIG_fail; | |
16603 | } | |
16604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16605 | return resultobj; | |
16606 | fail: | |
16607 | return NULL; | |
16608 | } | |
16609 | ||
16610 | ||
16611 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16612 | PyObject *resultobj; | |
16613 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16614 | wxDateTime::wxDateTime_t arg2 ; | |
16615 | wxDateTime result; | |
16616 | PyObject * obj0 = 0 ; | |
16617 | PyObject * obj1 = 0 ; | |
16618 | char *kwnames[] = { | |
16619 | (char *) "self",(char *) "yday", NULL | |
16620 | }; | |
16621 | ||
16622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail; | |
16623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16624 | arg2 = (wxDateTime::wxDateTime_t) PyInt_AsLong(obj1); | |
16625 | if (PyErr_Occurred()) SWIG_fail; | |
16626 | { | |
16627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16628 | result = (arg1)->GetYearDay(arg2); | |
16629 | ||
16630 | wxPyEndAllowThreads(__tstate); | |
16631 | if (PyErr_Occurred()) SWIG_fail; | |
16632 | } | |
16633 | { | |
16634 | wxDateTime * resultptr; | |
16635 | resultptr = new wxDateTime((wxDateTime &) result); | |
16636 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16637 | } | |
16638 | return resultobj; | |
16639 | fail: | |
16640 | return NULL; | |
16641 | } | |
16642 | ||
16643 | ||
16644 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16645 | PyObject *resultobj; | |
16646 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16647 | double result; | |
16648 | PyObject * obj0 = 0 ; | |
16649 | char *kwnames[] = { | |
16650 | (char *) "self", NULL | |
16651 | }; | |
16652 | ||
16653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
16654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16655 | { | |
16656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16657 | result = (double)(arg1)->GetJulianDayNumber(); | |
16658 | ||
16659 | wxPyEndAllowThreads(__tstate); | |
16660 | if (PyErr_Occurred()) SWIG_fail; | |
16661 | } | |
16662 | resultobj = PyFloat_FromDouble(result); | |
16663 | return resultobj; | |
16664 | fail: | |
16665 | return NULL; | |
16666 | } | |
16667 | ||
16668 | ||
16669 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16670 | PyObject *resultobj; | |
16671 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16672 | double result; | |
16673 | PyObject * obj0 = 0 ; | |
16674 | char *kwnames[] = { | |
16675 | (char *) "self", NULL | |
16676 | }; | |
16677 | ||
16678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
16679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16680 | { | |
16681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16682 | result = (double)(arg1)->GetJDN(); | |
16683 | ||
16684 | wxPyEndAllowThreads(__tstate); | |
16685 | if (PyErr_Occurred()) SWIG_fail; | |
16686 | } | |
16687 | resultobj = PyFloat_FromDouble(result); | |
16688 | return resultobj; | |
16689 | fail: | |
16690 | return NULL; | |
16691 | } | |
16692 | ||
16693 | ||
16694 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16695 | PyObject *resultobj; | |
16696 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16697 | double result; | |
16698 | PyObject * obj0 = 0 ; | |
16699 | char *kwnames[] = { | |
16700 | (char *) "self", NULL | |
16701 | }; | |
16702 | ||
16703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
16704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16705 | { | |
16706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16707 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
16708 | ||
16709 | wxPyEndAllowThreads(__tstate); | |
16710 | if (PyErr_Occurred()) SWIG_fail; | |
16711 | } | |
16712 | resultobj = PyFloat_FromDouble(result); | |
16713 | return resultobj; | |
16714 | fail: | |
16715 | return NULL; | |
16716 | } | |
16717 | ||
16718 | ||
16719 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16720 | PyObject *resultobj; | |
16721 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16722 | double result; | |
16723 | PyObject * obj0 = 0 ; | |
16724 | char *kwnames[] = { | |
16725 | (char *) "self", NULL | |
16726 | }; | |
16727 | ||
16728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
16729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16730 | { | |
16731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16732 | result = (double)(arg1)->GetMJD(); | |
16733 | ||
16734 | wxPyEndAllowThreads(__tstate); | |
16735 | if (PyErr_Occurred()) SWIG_fail; | |
16736 | } | |
16737 | resultobj = PyFloat_FromDouble(result); | |
16738 | return resultobj; | |
16739 | fail: | |
16740 | return NULL; | |
16741 | } | |
16742 | ||
16743 | ||
16744 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16745 | PyObject *resultobj; | |
16746 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16747 | double result; | |
16748 | PyObject * obj0 = 0 ; | |
16749 | char *kwnames[] = { | |
16750 | (char *) "self", NULL | |
16751 | }; | |
16752 | ||
16753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
16754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16755 | { | |
16756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16757 | result = (double)(arg1)->GetRataDie(); | |
16758 | ||
16759 | wxPyEndAllowThreads(__tstate); | |
16760 | if (PyErr_Occurred()) SWIG_fail; | |
16761 | } | |
16762 | resultobj = PyFloat_FromDouble(result); | |
16763 | return resultobj; | |
16764 | fail: | |
16765 | return NULL; | |
16766 | } | |
16767 | ||
16768 | ||
16769 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16770 | PyObject *resultobj; | |
16771 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16772 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 16773 | bool arg3 = (bool) False ; |
d14a1e28 RD |
16774 | wxDateTime result; |
16775 | PyObject * obj0 = 0 ; | |
16776 | PyObject * obj1 = 0 ; | |
16777 | PyObject * obj2 = 0 ; | |
16778 | char *kwnames[] = { | |
16779 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16780 | }; | |
16781 | ||
16782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16784 | { | |
16785 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
16786 | } | |
16787 | if (obj2) { | |
16788 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | } | |
16791 | { | |
16792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16793 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16794 | ||
16795 | wxPyEndAllowThreads(__tstate); | |
16796 | if (PyErr_Occurred()) SWIG_fail; | |
16797 | } | |
16798 | { | |
16799 | wxDateTime * resultptr; | |
16800 | resultptr = new wxDateTime((wxDateTime &) result); | |
16801 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16802 | } | |
16803 | { | |
16804 | if (arg2) delete arg2; | |
16805 | } | |
16806 | return resultobj; | |
16807 | fail: | |
16808 | { | |
16809 | if (arg2) delete arg2; | |
16810 | } | |
16811 | return NULL; | |
16812 | } | |
16813 | ||
16814 | ||
16815 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16816 | PyObject *resultobj; | |
16817 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16818 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 16819 | bool arg3 = (bool) False ; |
d14a1e28 RD |
16820 | wxDateTime *result; |
16821 | PyObject * obj0 = 0 ; | |
16822 | PyObject * obj1 = 0 ; | |
16823 | PyObject * obj2 = 0 ; | |
16824 | char *kwnames[] = { | |
16825 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16826 | }; | |
16827 | ||
16828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16830 | { | |
16831 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
16832 | } | |
16833 | if (obj2) { | |
16834 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16835 | if (PyErr_Occurred()) SWIG_fail; | |
16836 | } | |
16837 | { | |
16838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16839 | { | |
16840 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16841 | result = (wxDateTime *) &_result_ref; | |
16842 | } | |
16843 | ||
16844 | wxPyEndAllowThreads(__tstate); | |
16845 | if (PyErr_Occurred()) SWIG_fail; | |
16846 | } | |
16847 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16848 | { | |
16849 | if (arg2) delete arg2; | |
16850 | } | |
16851 | return resultobj; | |
16852 | fail: | |
16853 | { | |
16854 | if (arg2) delete arg2; | |
16855 | } | |
16856 | return NULL; | |
16857 | } | |
16858 | ||
16859 | ||
16860 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16861 | PyObject *resultobj; | |
16862 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 16863 | bool arg2 = (bool) False ; |
d14a1e28 RD |
16864 | wxDateTime result; |
16865 | PyObject * obj0 = 0 ; | |
16866 | PyObject * obj1 = 0 ; | |
16867 | char *kwnames[] = { | |
16868 | (char *) "self",(char *) "noDST", NULL | |
16869 | }; | |
16870 | ||
16871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
16872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16873 | if (obj1) { | |
16874 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16875 | if (PyErr_Occurred()) SWIG_fail; | |
16876 | } | |
16877 | { | |
16878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16879 | result = (arg1)->ToGMT(arg2); | |
16880 | ||
16881 | wxPyEndAllowThreads(__tstate); | |
16882 | if (PyErr_Occurred()) SWIG_fail; | |
16883 | } | |
16884 | { | |
16885 | wxDateTime * resultptr; | |
16886 | resultptr = new wxDateTime((wxDateTime &) result); | |
16887 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16888 | } | |
16889 | return resultobj; | |
16890 | fail: | |
16891 | return NULL; | |
16892 | } | |
16893 | ||
16894 | ||
16895 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16896 | PyObject *resultobj; | |
16897 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 16898 | bool arg2 = (bool) False ; |
d14a1e28 RD |
16899 | wxDateTime *result; |
16900 | PyObject * obj0 = 0 ; | |
16901 | PyObject * obj1 = 0 ; | |
16902 | char *kwnames[] = { | |
16903 | (char *) "self",(char *) "noDST", NULL | |
16904 | }; | |
16905 | ||
16906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
16907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16908 | if (obj1) { | |
16909 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16910 | if (PyErr_Occurred()) SWIG_fail; | |
16911 | } | |
16912 | { | |
16913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16914 | { | |
16915 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
16916 | result = (wxDateTime *) &_result_ref; | |
16917 | } | |
16918 | ||
16919 | wxPyEndAllowThreads(__tstate); | |
16920 | if (PyErr_Occurred()) SWIG_fail; | |
16921 | } | |
16922 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16923 | return resultobj; | |
16924 | fail: | |
16925 | return NULL; | |
16926 | } | |
16927 | ||
16928 | ||
16929 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16930 | PyObject *resultobj; | |
16931 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16932 | int arg2 = (int) wxDateTime::Country_Default ; | |
16933 | int result; | |
16934 | PyObject * obj0 = 0 ; | |
16935 | char *kwnames[] = { | |
16936 | (char *) "self",(char *) "country", NULL | |
16937 | }; | |
16938 | ||
16939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsDST",kwnames,&obj0,&arg2)) goto fail; | |
16940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16941 | { | |
16942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16943 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
16944 | ||
16945 | wxPyEndAllowThreads(__tstate); | |
16946 | if (PyErr_Occurred()) SWIG_fail; | |
16947 | } | |
16948 | resultobj = PyInt_FromLong((long)result); | |
16949 | return resultobj; | |
16950 | fail: | |
16951 | return NULL; | |
16952 | } | |
16953 | ||
16954 | ||
16955 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16956 | PyObject *resultobj; | |
16957 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16958 | bool result; | |
16959 | PyObject * obj0 = 0 ; | |
16960 | char *kwnames[] = { | |
16961 | (char *) "self", NULL | |
16962 | }; | |
16963 | ||
16964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
16965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16966 | { | |
16967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16968 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
16969 | ||
16970 | wxPyEndAllowThreads(__tstate); | |
16971 | if (PyErr_Occurred()) SWIG_fail; | |
16972 | } | |
16973 | resultobj = PyInt_FromLong((long)result); | |
16974 | return resultobj; | |
16975 | fail: | |
16976 | return NULL; | |
16977 | } | |
16978 | ||
16979 | ||
16980 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16981 | PyObject *resultobj; | |
16982 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16983 | time_t result; | |
16984 | PyObject * obj0 = 0 ; | |
16985 | char *kwnames[] = { | |
16986 | (char *) "self", NULL | |
16987 | }; | |
16988 | ||
16989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
16990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16991 | { | |
16992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16993 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
16994 | ||
16995 | wxPyEndAllowThreads(__tstate); | |
16996 | if (PyErr_Occurred()) SWIG_fail; | |
16997 | } | |
16998 | resultobj = PyInt_FromLong((long)result); | |
16999 | return resultobj; | |
17000 | fail: | |
17001 | return NULL; | |
17002 | } | |
17003 | ||
17004 | ||
17005 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17006 | PyObject *resultobj; | |
17007 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17008 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17009 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17010 | int result; | |
17011 | PyObject * obj0 = 0 ; | |
17012 | PyObject * obj1 = 0 ; | |
17013 | char *kwnames[] = { | |
17014 | (char *) "self",(char *) "tz", NULL | |
17015 | }; | |
17016 | ||
17017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
17018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17019 | if (obj1) { | |
17020 | { | |
17021 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17022 | } | |
17023 | } | |
17024 | { | |
17025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17026 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
17027 | ||
17028 | wxPyEndAllowThreads(__tstate); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | resultobj = PyInt_FromLong((long)result); | |
17032 | { | |
17033 | if (arg2) delete arg2; | |
17034 | } | |
17035 | return resultobj; | |
17036 | fail: | |
17037 | { | |
17038 | if (arg2) delete arg2; | |
17039 | } | |
17040 | return NULL; | |
17041 | } | |
17042 | ||
17043 | ||
17044 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17045 | PyObject *resultobj; | |
17046 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17047 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17048 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17049 | int result; | |
17050 | PyObject * obj0 = 0 ; | |
17051 | PyObject * obj1 = 0 ; | |
17052 | char *kwnames[] = { | |
17053 | (char *) "self",(char *) "tz", NULL | |
17054 | }; | |
17055 | ||
17056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17058 | if (obj1) { | |
17059 | { | |
17060 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17061 | } | |
17062 | } | |
17063 | { | |
17064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17065 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
17066 | ||
17067 | wxPyEndAllowThreads(__tstate); | |
17068 | if (PyErr_Occurred()) SWIG_fail; | |
17069 | } | |
17070 | resultobj = PyInt_FromLong((long)result); | |
17071 | { | |
17072 | if (arg2) delete arg2; | |
17073 | } | |
17074 | return resultobj; | |
17075 | fail: | |
17076 | { | |
17077 | if (arg2) delete arg2; | |
17078 | } | |
17079 | return NULL; | |
17080 | } | |
17081 | ||
17082 | ||
17083 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17084 | PyObject *resultobj; | |
17085 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17086 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17087 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17088 | wxDateTime::wxDateTime_t result; | |
17089 | PyObject * obj0 = 0 ; | |
17090 | PyObject * obj1 = 0 ; | |
17091 | char *kwnames[] = { | |
17092 | (char *) "self",(char *) "tz", NULL | |
17093 | }; | |
17094 | ||
17095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
17096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17097 | if (obj1) { | |
17098 | { | |
17099 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17100 | } | |
17101 | } | |
17102 | { | |
17103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17104 | result = (wxDateTime::wxDateTime_t)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); | |
17105 | ||
17106 | wxPyEndAllowThreads(__tstate); | |
17107 | if (PyErr_Occurred()) SWIG_fail; | |
17108 | } | |
17109 | resultobj = PyInt_FromLong((long)result); | |
17110 | { | |
17111 | if (arg2) delete arg2; | |
17112 | } | |
17113 | return resultobj; | |
17114 | fail: | |
17115 | { | |
17116 | if (arg2) delete arg2; | |
17117 | } | |
17118 | return NULL; | |
17119 | } | |
17120 | ||
17121 | ||
17122 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17123 | PyObject *resultobj; | |
17124 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17125 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17126 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17127 | int result; | |
17128 | PyObject * obj0 = 0 ; | |
17129 | PyObject * obj1 = 0 ; | |
17130 | char *kwnames[] = { | |
17131 | (char *) "self",(char *) "tz", NULL | |
17132 | }; | |
17133 | ||
17134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17136 | if (obj1) { | |
17137 | { | |
17138 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17139 | } | |
17140 | } | |
17141 | { | |
17142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17143 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
17144 | ||
17145 | wxPyEndAllowThreads(__tstate); | |
17146 | if (PyErr_Occurred()) SWIG_fail; | |
17147 | } | |
17148 | resultobj = PyInt_FromLong((long)result); | |
17149 | { | |
17150 | if (arg2) delete arg2; | |
17151 | } | |
17152 | return resultobj; | |
17153 | fail: | |
17154 | { | |
17155 | if (arg2) delete arg2; | |
17156 | } | |
17157 | return NULL; | |
17158 | } | |
17159 | ||
17160 | ||
17161 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17162 | PyObject *resultobj; | |
17163 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17164 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17165 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17166 | wxDateTime::wxDateTime_t result; | |
17167 | PyObject * obj0 = 0 ; | |
17168 | PyObject * obj1 = 0 ; | |
17169 | char *kwnames[] = { | |
17170 | (char *) "self",(char *) "tz", NULL | |
17171 | }; | |
17172 | ||
17173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
17174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17175 | if (obj1) { | |
17176 | { | |
17177 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17178 | } | |
17179 | } | |
17180 | { | |
17181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17182 | result = (wxDateTime::wxDateTime_t)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); | |
17183 | ||
17184 | wxPyEndAllowThreads(__tstate); | |
17185 | if (PyErr_Occurred()) SWIG_fail; | |
17186 | } | |
17187 | resultobj = PyInt_FromLong((long)result); | |
17188 | { | |
17189 | if (arg2) delete arg2; | |
17190 | } | |
17191 | return resultobj; | |
17192 | fail: | |
17193 | { | |
17194 | if (arg2) delete arg2; | |
17195 | } | |
17196 | return NULL; | |
17197 | } | |
17198 | ||
17199 | ||
17200 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17201 | PyObject *resultobj; | |
17202 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17203 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17204 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17205 | wxDateTime::wxDateTime_t result; | |
17206 | PyObject * obj0 = 0 ; | |
17207 | PyObject * obj1 = 0 ; | |
17208 | char *kwnames[] = { | |
17209 | (char *) "self",(char *) "tz", NULL | |
17210 | }; | |
17211 | ||
17212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17214 | if (obj1) { | |
17215 | { | |
17216 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17217 | } | |
17218 | } | |
17219 | { | |
17220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17221 | result = (wxDateTime::wxDateTime_t)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); | |
17222 | ||
17223 | wxPyEndAllowThreads(__tstate); | |
17224 | if (PyErr_Occurred()) SWIG_fail; | |
17225 | } | |
17226 | resultobj = PyInt_FromLong((long)result); | |
17227 | { | |
17228 | if (arg2) delete arg2; | |
17229 | } | |
17230 | return resultobj; | |
17231 | fail: | |
17232 | { | |
17233 | if (arg2) delete arg2; | |
17234 | } | |
17235 | return NULL; | |
17236 | } | |
17237 | ||
17238 | ||
17239 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17240 | PyObject *resultobj; | |
17241 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17242 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17243 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17244 | wxDateTime::wxDateTime_t result; | |
17245 | PyObject * obj0 = 0 ; | |
17246 | PyObject * obj1 = 0 ; | |
17247 | char *kwnames[] = { | |
17248 | (char *) "self",(char *) "tz", NULL | |
17249 | }; | |
17250 | ||
17251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17253 | if (obj1) { | |
17254 | { | |
17255 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17256 | } | |
17257 | } | |
17258 | { | |
17259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17260 | result = (wxDateTime::wxDateTime_t)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); | |
17261 | ||
17262 | wxPyEndAllowThreads(__tstate); | |
17263 | if (PyErr_Occurred()) SWIG_fail; | |
17264 | } | |
17265 | resultobj = PyInt_FromLong((long)result); | |
17266 | { | |
17267 | if (arg2) delete arg2; | |
17268 | } | |
17269 | return resultobj; | |
17270 | fail: | |
17271 | { | |
17272 | if (arg2) delete arg2; | |
17273 | } | |
17274 | return NULL; | |
17275 | } | |
17276 | ||
17277 | ||
17278 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17279 | PyObject *resultobj; | |
17280 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17281 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17282 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17283 | wxDateTime::wxDateTime_t result; | |
17284 | PyObject * obj0 = 0 ; | |
17285 | PyObject * obj1 = 0 ; | |
17286 | char *kwnames[] = { | |
17287 | (char *) "self",(char *) "tz", NULL | |
17288 | }; | |
17289 | ||
17290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17292 | if (obj1) { | |
17293 | { | |
17294 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17295 | } | |
17296 | } | |
17297 | { | |
17298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17299 | result = (wxDateTime::wxDateTime_t)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); | |
17300 | ||
17301 | wxPyEndAllowThreads(__tstate); | |
17302 | if (PyErr_Occurred()) SWIG_fail; | |
17303 | } | |
17304 | resultobj = PyInt_FromLong((long)result); | |
17305 | { | |
17306 | if (arg2) delete arg2; | |
17307 | } | |
17308 | return resultobj; | |
17309 | fail: | |
17310 | { | |
17311 | if (arg2) delete arg2; | |
17312 | } | |
17313 | return NULL; | |
17314 | } | |
17315 | ||
17316 | ||
17317 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17318 | PyObject *resultobj; | |
17319 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17320 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17321 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17322 | wxDateTime::wxDateTime_t result; | |
17323 | PyObject * obj0 = 0 ; | |
17324 | PyObject * obj1 = 0 ; | |
17325 | char *kwnames[] = { | |
17326 | (char *) "self",(char *) "tz", NULL | |
17327 | }; | |
17328 | ||
17329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
17330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17331 | if (obj1) { | |
17332 | { | |
17333 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
17334 | } | |
17335 | } | |
17336 | { | |
17337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17338 | result = (wxDateTime::wxDateTime_t)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); | |
17339 | ||
17340 | wxPyEndAllowThreads(__tstate); | |
17341 | if (PyErr_Occurred()) SWIG_fail; | |
17342 | } | |
17343 | resultobj = PyInt_FromLong((long)result); | |
17344 | { | |
17345 | if (arg2) delete arg2; | |
17346 | } | |
17347 | return resultobj; | |
17348 | fail: | |
17349 | { | |
17350 | if (arg2) delete arg2; | |
17351 | } | |
17352 | return NULL; | |
17353 | } | |
17354 | ||
17355 | ||
17356 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17357 | PyObject *resultobj; | |
17358 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17359 | int arg2 = (int) wxDateTime::Monday_First ; | |
17360 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17361 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
17362 | wxDateTime::wxDateTime_t result; | |
17363 | PyObject * obj0 = 0 ; | |
17364 | PyObject * obj2 = 0 ; | |
17365 | char *kwnames[] = { | |
17366 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17367 | }; | |
17368 | ||
17369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfYear",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17371 | if (obj2) { | |
17372 | { | |
17373 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
17374 | } | |
17375 | } | |
17376 | { | |
17377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17378 | result = (wxDateTime::wxDateTime_t)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
17379 | ||
17380 | wxPyEndAllowThreads(__tstate); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | resultobj = PyInt_FromLong((long)result); | |
17384 | { | |
17385 | if (arg3) delete arg3; | |
17386 | } | |
17387 | return resultobj; | |
17388 | fail: | |
17389 | { | |
17390 | if (arg3) delete arg3; | |
17391 | } | |
17392 | return NULL; | |
17393 | } | |
17394 | ||
17395 | ||
17396 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17397 | PyObject *resultobj; | |
17398 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17399 | int arg2 = (int) wxDateTime::Monday_First ; | |
17400 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17401 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
17402 | wxDateTime::wxDateTime_t result; | |
17403 | PyObject * obj0 = 0 ; | |
17404 | PyObject * obj2 = 0 ; | |
17405 | char *kwnames[] = { | |
17406 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17407 | }; | |
17408 | ||
17409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfMonth",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17411 | if (obj2) { | |
17412 | { | |
17413 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
17414 | } | |
17415 | } | |
17416 | { | |
17417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17418 | result = (wxDateTime::wxDateTime_t)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); | |
17419 | ||
17420 | wxPyEndAllowThreads(__tstate); | |
17421 | if (PyErr_Occurred()) SWIG_fail; | |
17422 | } | |
17423 | resultobj = PyInt_FromLong((long)result); | |
17424 | { | |
17425 | if (arg3) delete arg3; | |
17426 | } | |
17427 | return resultobj; | |
17428 | fail: | |
17429 | { | |
17430 | if (arg3) delete arg3; | |
17431 | } | |
17432 | return NULL; | |
17433 | } | |
17434 | ||
17435 | ||
17436 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17437 | PyObject *resultobj; | |
17438 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17439 | int arg2 = (int) wxDateTime::Country_Default ; | |
17440 | bool result; | |
17441 | PyObject * obj0 = 0 ; | |
17442 | char *kwnames[] = { | |
17443 | (char *) "self",(char *) "country", NULL | |
17444 | }; | |
17445 | ||
17446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsWorkDay",kwnames,&obj0,&arg2)) goto fail; | |
17447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17448 | { | |
17449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17450 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
17451 | ||
17452 | wxPyEndAllowThreads(__tstate); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
17454 | } | |
17455 | resultobj = PyInt_FromLong((long)result); | |
17456 | return resultobj; | |
17457 | fail: | |
17458 | return NULL; | |
17459 | } | |
17460 | ||
17461 | ||
17462 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17463 | PyObject *resultobj; | |
17464 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17465 | wxDateTime *arg2 = 0 ; | |
17466 | bool result; | |
17467 | PyObject * obj0 = 0 ; | |
17468 | PyObject * obj1 = 0 ; | |
17469 | char *kwnames[] = { | |
17470 | (char *) "self",(char *) "datetime", NULL | |
17471 | }; | |
17472 | ||
17473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
17474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17476 | if (arg2 == NULL) { | |
17477 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17478 | } | |
17479 | { | |
17480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17481 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
17482 | ||
17483 | wxPyEndAllowThreads(__tstate); | |
17484 | if (PyErr_Occurred()) SWIG_fail; | |
17485 | } | |
17486 | resultobj = PyInt_FromLong((long)result); | |
17487 | return resultobj; | |
17488 | fail: | |
17489 | return NULL; | |
17490 | } | |
17491 | ||
17492 | ||
17493 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17494 | PyObject *resultobj; | |
17495 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17496 | wxDateTime *arg2 = 0 ; | |
17497 | bool result; | |
17498 | PyObject * obj0 = 0 ; | |
17499 | PyObject * obj1 = 0 ; | |
17500 | char *kwnames[] = { | |
17501 | (char *) "self",(char *) "datetime", NULL | |
17502 | }; | |
17503 | ||
17504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
17505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17506 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17507 | if (arg2 == NULL) { | |
17508 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17509 | } | |
17510 | { | |
17511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17512 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
17513 | ||
17514 | wxPyEndAllowThreads(__tstate); | |
17515 | if (PyErr_Occurred()) SWIG_fail; | |
17516 | } | |
17517 | resultobj = PyInt_FromLong((long)result); | |
17518 | return resultobj; | |
17519 | fail: | |
17520 | return NULL; | |
17521 | } | |
17522 | ||
17523 | ||
17524 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17525 | PyObject *resultobj; | |
17526 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17527 | wxDateTime *arg2 = 0 ; | |
17528 | bool result; | |
17529 | PyObject * obj0 = 0 ; | |
17530 | PyObject * obj1 = 0 ; | |
17531 | char *kwnames[] = { | |
17532 | (char *) "self",(char *) "datetime", NULL | |
17533 | }; | |
17534 | ||
17535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
17536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17537 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17538 | if (arg2 == NULL) { | |
17539 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17540 | } | |
17541 | { | |
17542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17543 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
17544 | ||
17545 | wxPyEndAllowThreads(__tstate); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | } | |
17548 | resultobj = PyInt_FromLong((long)result); | |
17549 | return resultobj; | |
17550 | fail: | |
17551 | return NULL; | |
17552 | } | |
17553 | ||
17554 | ||
17555 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17556 | PyObject *resultobj; | |
17557 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17558 | wxDateTime *arg2 = 0 ; | |
17559 | wxDateTime *arg3 = 0 ; | |
17560 | bool result; | |
17561 | PyObject * obj0 = 0 ; | |
17562 | PyObject * obj1 = 0 ; | |
17563 | PyObject * obj2 = 0 ; | |
17564 | char *kwnames[] = { | |
17565 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17566 | }; | |
17567 | ||
17568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17570 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17571 | if (arg2 == NULL) { | |
17572 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17573 | } | |
17574 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17575 | if (arg3 == NULL) { | |
17576 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17577 | } | |
17578 | { | |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
17585 | resultobj = PyInt_FromLong((long)result); | |
17586 | return resultobj; | |
17587 | fail: | |
17588 | return NULL; | |
17589 | } | |
17590 | ||
17591 | ||
17592 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17593 | PyObject *resultobj; | |
17594 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17595 | wxDateTime *arg2 = 0 ; | |
17596 | wxDateTime *arg3 = 0 ; | |
17597 | bool result; | |
17598 | PyObject * obj0 = 0 ; | |
17599 | PyObject * obj1 = 0 ; | |
17600 | PyObject * obj2 = 0 ; | |
17601 | char *kwnames[] = { | |
17602 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17603 | }; | |
17604 | ||
17605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17607 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17608 | if (arg2 == NULL) { | |
17609 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17610 | } | |
17611 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17612 | if (arg3 == NULL) { | |
17613 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17614 | } | |
17615 | { | |
17616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17617 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | resultobj = PyInt_FromLong((long)result); | |
17623 | return resultobj; | |
17624 | fail: | |
17625 | return NULL; | |
17626 | } | |
17627 | ||
17628 | ||
17629 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17630 | PyObject *resultobj; | |
17631 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17632 | wxDateTime *arg2 = 0 ; | |
17633 | bool result; | |
17634 | PyObject * obj0 = 0 ; | |
17635 | PyObject * obj1 = 0 ; | |
17636 | char *kwnames[] = { | |
17637 | (char *) "self",(char *) "dt", NULL | |
17638 | }; | |
17639 | ||
17640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
17641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17642 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17643 | if (arg2 == NULL) { | |
17644 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17645 | } | |
17646 | { | |
17647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17648 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
17649 | ||
17650 | wxPyEndAllowThreads(__tstate); | |
17651 | if (PyErr_Occurred()) SWIG_fail; | |
17652 | } | |
17653 | resultobj = PyInt_FromLong((long)result); | |
17654 | return resultobj; | |
17655 | fail: | |
17656 | return NULL; | |
17657 | } | |
17658 | ||
17659 | ||
17660 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17661 | PyObject *resultobj; | |
17662 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17663 | wxDateTime *arg2 = 0 ; | |
17664 | bool result; | |
17665 | PyObject * obj0 = 0 ; | |
17666 | PyObject * obj1 = 0 ; | |
17667 | char *kwnames[] = { | |
17668 | (char *) "self",(char *) "dt", NULL | |
17669 | }; | |
17670 | ||
17671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
17672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17673 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17674 | if (arg2 == NULL) { | |
17675 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17676 | } | |
17677 | { | |
17678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17679 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
17680 | ||
17681 | wxPyEndAllowThreads(__tstate); | |
17682 | if (PyErr_Occurred()) SWIG_fail; | |
17683 | } | |
17684 | resultobj = PyInt_FromLong((long)result); | |
17685 | return resultobj; | |
17686 | fail: | |
17687 | return NULL; | |
17688 | } | |
17689 | ||
17690 | ||
17691 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17692 | PyObject *resultobj; | |
17693 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17694 | wxDateTime *arg2 = 0 ; | |
17695 | wxTimeSpan *arg3 = 0 ; | |
17696 | bool result; | |
17697 | PyObject * obj0 = 0 ; | |
17698 | PyObject * obj1 = 0 ; | |
17699 | PyObject * obj2 = 0 ; | |
17700 | char *kwnames[] = { | |
17701 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
17702 | }; | |
17703 | ||
17704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17705 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17706 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17707 | if (arg2 == NULL) { | |
17708 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17709 | } | |
17710 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17711 | if (arg3 == NULL) { | |
17712 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17713 | } | |
17714 | { | |
17715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17716 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
17717 | ||
17718 | wxPyEndAllowThreads(__tstate); | |
17719 | if (PyErr_Occurred()) SWIG_fail; | |
17720 | } | |
17721 | resultobj = PyInt_FromLong((long)result); | |
17722 | return resultobj; | |
17723 | fail: | |
17724 | return NULL; | |
17725 | } | |
17726 | ||
17727 | ||
17728 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17729 | PyObject *resultobj; | |
17730 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17731 | wxTimeSpan *arg2 = 0 ; | |
17732 | wxDateTime *result; | |
17733 | PyObject * obj0 = 0 ; | |
17734 | PyObject * obj1 = 0 ; | |
17735 | char *kwnames[] = { | |
17736 | (char *) "self",(char *) "diff", NULL | |
17737 | }; | |
17738 | ||
17739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
17740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17741 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17742 | if (arg2 == NULL) { | |
17743 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17744 | } | |
17745 | { | |
17746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17747 | { | |
17748 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
17749 | result = (wxDateTime *) &_result_ref; | |
17750 | } | |
17751 | ||
17752 | wxPyEndAllowThreads(__tstate); | |
17753 | if (PyErr_Occurred()) SWIG_fail; | |
17754 | } | |
17755 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17756 | return resultobj; | |
17757 | fail: | |
17758 | return NULL; | |
17759 | } | |
17760 | ||
17761 | ||
17762 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17763 | PyObject *resultobj; | |
17764 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17765 | wxDateSpan *arg2 = 0 ; | |
17766 | wxDateTime *result; | |
17767 | PyObject * obj0 = 0 ; | |
17768 | PyObject * obj1 = 0 ; | |
17769 | char *kwnames[] = { | |
17770 | (char *) "self",(char *) "diff", NULL | |
17771 | }; | |
17772 | ||
17773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
17774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17775 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17776 | if (arg2 == NULL) { | |
17777 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17778 | } | |
17779 | { | |
17780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17781 | { | |
17782 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
17783 | result = (wxDateTime *) &_result_ref; | |
17784 | } | |
17785 | ||
17786 | wxPyEndAllowThreads(__tstate); | |
17787 | if (PyErr_Occurred()) SWIG_fail; | |
17788 | } | |
17789 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17790 | return resultobj; | |
17791 | fail: | |
17792 | return NULL; | |
17793 | } | |
17794 | ||
17795 | ||
17796 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17797 | PyObject *resultobj; | |
17798 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17799 | wxTimeSpan *arg2 = 0 ; | |
17800 | wxDateTime *result; | |
17801 | PyObject * obj0 = 0 ; | |
17802 | PyObject * obj1 = 0 ; | |
17803 | char *kwnames[] = { | |
17804 | (char *) "self",(char *) "diff", NULL | |
17805 | }; | |
17806 | ||
17807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
17808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17810 | if (arg2 == NULL) { | |
17811 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17812 | } | |
17813 | { | |
17814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17815 | { | |
17816 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
17817 | result = (wxDateTime *) &_result_ref; | |
17818 | } | |
17819 | ||
17820 | wxPyEndAllowThreads(__tstate); | |
17821 | if (PyErr_Occurred()) SWIG_fail; | |
17822 | } | |
17823 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17824 | return resultobj; | |
17825 | fail: | |
17826 | return NULL; | |
17827 | } | |
17828 | ||
17829 | ||
17830 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17831 | PyObject *resultobj; | |
17832 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17833 | wxDateSpan *arg2 = 0 ; | |
17834 | wxDateTime *result; | |
17835 | PyObject * obj0 = 0 ; | |
17836 | PyObject * obj1 = 0 ; | |
17837 | char *kwnames[] = { | |
17838 | (char *) "self",(char *) "diff", NULL | |
17839 | }; | |
17840 | ||
17841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
17842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17843 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17844 | if (arg2 == NULL) { | |
17845 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17846 | } | |
17847 | { | |
17848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17849 | { | |
17850 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
17851 | result = (wxDateTime *) &_result_ref; | |
17852 | } | |
17853 | ||
17854 | wxPyEndAllowThreads(__tstate); | |
17855 | if (PyErr_Occurred()) SWIG_fail; | |
17856 | } | |
17857 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17858 | return resultobj; | |
17859 | fail: | |
17860 | return NULL; | |
17861 | } | |
17862 | ||
17863 | ||
17864 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17865 | PyObject *resultobj; | |
17866 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17867 | wxDateTime *arg2 = 0 ; | |
17868 | wxTimeSpan result; | |
17869 | PyObject * obj0 = 0 ; | |
17870 | PyObject * obj1 = 0 ; | |
17871 | char *kwnames[] = { | |
17872 | (char *) "self",(char *) "dt", NULL | |
17873 | }; | |
17874 | ||
17875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
17876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17877 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17878 | if (arg2 == NULL) { | |
17879 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17880 | } | |
17881 | { | |
17882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17883 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
17884 | ||
17885 | wxPyEndAllowThreads(__tstate); | |
17886 | if (PyErr_Occurred()) SWIG_fail; | |
17887 | } | |
17888 | { | |
17889 | wxTimeSpan * resultptr; | |
17890 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
17891 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
17892 | } | |
17893 | return resultobj; | |
17894 | fail: | |
17895 | return NULL; | |
17896 | } | |
17897 | ||
17898 | ||
17899 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
17900 | PyObject *resultobj; | |
17901 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17902 | wxTimeSpan *arg2 = 0 ; | |
17903 | wxDateTime *result; | |
17904 | PyObject * obj0 = 0 ; | |
17905 | PyObject * obj1 = 0 ; | |
17906 | ||
17907 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
17908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17909 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17910 | if (arg2 == NULL) { | |
17911 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17912 | } | |
17913 | { | |
17914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17915 | { | |
17916 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
17917 | result = (wxDateTime *) &_result_ref; | |
17918 | } | |
17919 | ||
17920 | wxPyEndAllowThreads(__tstate); | |
17921 | if (PyErr_Occurred()) SWIG_fail; | |
17922 | } | |
17923 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17924 | return resultobj; | |
17925 | fail: | |
17926 | return NULL; | |
17927 | } | |
17928 | ||
17929 | ||
17930 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
17931 | PyObject *resultobj; | |
17932 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17933 | wxDateSpan *arg2 = 0 ; | |
17934 | wxDateTime *result; | |
17935 | PyObject * obj0 = 0 ; | |
17936 | PyObject * obj1 = 0 ; | |
17937 | ||
17938 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
17939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17940 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17941 | if (arg2 == NULL) { | |
17942 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17943 | } | |
17944 | { | |
17945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17946 | { | |
17947 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
17948 | result = (wxDateTime *) &_result_ref; | |
17949 | } | |
17950 | ||
17951 | wxPyEndAllowThreads(__tstate); | |
17952 | if (PyErr_Occurred()) SWIG_fail; | |
17953 | } | |
17954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17955 | return resultobj; | |
17956 | fail: | |
17957 | return NULL; | |
17958 | } | |
17959 | ||
17960 | ||
17961 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
17962 | int argc; | |
17963 | PyObject *argv[3]; | |
17964 | int ii; | |
17965 | ||
17966 | argc = PyObject_Length(args); | |
17967 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
17968 | argv[ii] = PyTuple_GetItem(args,ii); | |
17969 | } | |
17970 | if (argc == 2) { | |
17971 | int _v; | |
17972 | { | |
17973 | void *ptr; | |
17974 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
17975 | _v = 0; | |
17976 | PyErr_Clear(); | |
17977 | } else { | |
17978 | _v = 1; | |
17979 | } | |
17980 | } | |
17981 | if (_v) { | |
17982 | { | |
17983 | void *ptr; | |
17984 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
17985 | _v = 0; | |
17986 | PyErr_Clear(); | |
17987 | } else { | |
17988 | _v = 1; | |
17989 | } | |
17990 | } | |
17991 | if (_v) { | |
17992 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
17993 | } | |
17994 | } | |
17995 | } | |
17996 | if (argc == 2) { | |
17997 | int _v; | |
17998 | { | |
17999 | void *ptr; | |
18000 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18001 | _v = 0; | |
18002 | PyErr_Clear(); | |
18003 | } else { | |
18004 | _v = 1; | |
18005 | } | |
18006 | } | |
18007 | if (_v) { | |
18008 | { | |
18009 | void *ptr; | |
18010 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18011 | _v = 0; | |
18012 | PyErr_Clear(); | |
18013 | } else { | |
18014 | _v = 1; | |
18015 | } | |
18016 | } | |
18017 | if (_v) { | |
18018 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
18019 | } | |
18020 | } | |
18021 | } | |
18022 | ||
18023 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
18024 | return NULL; | |
18025 | } | |
18026 | ||
18027 | ||
18028 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
18029 | PyObject *resultobj; | |
18030 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18031 | wxTimeSpan *arg2 = 0 ; | |
18032 | wxDateTime *result; | |
18033 | PyObject * obj0 = 0 ; | |
18034 | PyObject * obj1 = 0 ; | |
18035 | ||
18036 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18038 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18039 | if (arg2 == NULL) { | |
18040 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18041 | } | |
18042 | { | |
18043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18044 | { | |
18045 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
18046 | result = (wxDateTime *) &_result_ref; | |
18047 | } | |
18048 | ||
18049 | wxPyEndAllowThreads(__tstate); | |
18050 | if (PyErr_Occurred()) SWIG_fail; | |
18051 | } | |
18052 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18053 | return resultobj; | |
18054 | fail: | |
18055 | return NULL; | |
18056 | } | |
18057 | ||
18058 | ||
18059 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
18060 | PyObject *resultobj; | |
18061 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18062 | wxDateSpan *arg2 = 0 ; | |
18063 | wxDateTime *result; | |
18064 | PyObject * obj0 = 0 ; | |
18065 | PyObject * obj1 = 0 ; | |
18066 | ||
18067 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18069 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18070 | if (arg2 == NULL) { | |
18071 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18072 | } | |
18073 | { | |
18074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18075 | { | |
18076 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
18077 | result = (wxDateTime *) &_result_ref; | |
18078 | } | |
18079 | ||
18080 | wxPyEndAllowThreads(__tstate); | |
18081 | if (PyErr_Occurred()) SWIG_fail; | |
18082 | } | |
18083 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18084 | return resultobj; | |
18085 | fail: | |
18086 | return NULL; | |
18087 | } | |
18088 | ||
18089 | ||
18090 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
18091 | int argc; | |
18092 | PyObject *argv[3]; | |
18093 | int ii; | |
18094 | ||
18095 | argc = PyObject_Length(args); | |
18096 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18097 | argv[ii] = PyTuple_GetItem(args,ii); | |
18098 | } | |
18099 | if (argc == 2) { | |
18100 | int _v; | |
18101 | { | |
18102 | void *ptr; | |
18103 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18104 | _v = 0; | |
18105 | PyErr_Clear(); | |
18106 | } else { | |
18107 | _v = 1; | |
18108 | } | |
18109 | } | |
18110 | if (_v) { | |
18111 | { | |
18112 | void *ptr; | |
18113 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18114 | _v = 0; | |
18115 | PyErr_Clear(); | |
18116 | } else { | |
18117 | _v = 1; | |
18118 | } | |
18119 | } | |
18120 | if (_v) { | |
18121 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
18122 | } | |
18123 | } | |
18124 | } | |
18125 | if (argc == 2) { | |
18126 | int _v; | |
18127 | { | |
18128 | void *ptr; | |
18129 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18130 | _v = 0; | |
18131 | PyErr_Clear(); | |
18132 | } else { | |
18133 | _v = 1; | |
18134 | } | |
18135 | } | |
18136 | if (_v) { | |
18137 | { | |
18138 | void *ptr; | |
18139 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18140 | _v = 0; | |
18141 | PyErr_Clear(); | |
18142 | } else { | |
18143 | _v = 1; | |
18144 | } | |
18145 | } | |
18146 | if (_v) { | |
18147 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
18148 | } | |
18149 | } | |
18150 | } | |
18151 | ||
18152 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
18153 | return NULL; | |
18154 | } | |
18155 | ||
18156 | ||
18157 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
18158 | PyObject *resultobj; | |
18159 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18160 | wxTimeSpan *arg2 = 0 ; | |
18161 | wxDateTime result; | |
18162 | PyObject * obj0 = 0 ; | |
18163 | PyObject * obj1 = 0 ; | |
18164 | ||
18165 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18167 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18168 | if (arg2 == NULL) { | |
18169 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18170 | } | |
18171 | { | |
18172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18173 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
18174 | ||
18175 | wxPyEndAllowThreads(__tstate); | |
18176 | if (PyErr_Occurred()) SWIG_fail; | |
18177 | } | |
18178 | { | |
18179 | wxDateTime * resultptr; | |
18180 | resultptr = new wxDateTime((wxDateTime &) result); | |
18181 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18182 | } | |
18183 | return resultobj; | |
18184 | fail: | |
18185 | return NULL; | |
18186 | } | |
18187 | ||
18188 | ||
18189 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
18190 | PyObject *resultobj; | |
18191 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18192 | wxDateSpan *arg2 = 0 ; | |
18193 | wxDateTime result; | |
18194 | PyObject * obj0 = 0 ; | |
18195 | PyObject * obj1 = 0 ; | |
18196 | ||
18197 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18199 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18200 | if (arg2 == NULL) { | |
18201 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18202 | } | |
18203 | { | |
18204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18205 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
18206 | ||
18207 | wxPyEndAllowThreads(__tstate); | |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
18209 | } | |
18210 | { | |
18211 | wxDateTime * resultptr; | |
18212 | resultptr = new wxDateTime((wxDateTime &) result); | |
18213 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18214 | } | |
18215 | return resultobj; | |
18216 | fail: | |
18217 | return NULL; | |
18218 | } | |
18219 | ||
18220 | ||
18221 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
18222 | int argc; | |
18223 | PyObject *argv[3]; | |
18224 | int ii; | |
18225 | ||
18226 | argc = PyObject_Length(args); | |
18227 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18228 | argv[ii] = PyTuple_GetItem(args,ii); | |
18229 | } | |
18230 | if (argc == 2) { | |
18231 | int _v; | |
18232 | { | |
18233 | void *ptr; | |
18234 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18235 | _v = 0; | |
18236 | PyErr_Clear(); | |
18237 | } else { | |
18238 | _v = 1; | |
18239 | } | |
18240 | } | |
18241 | if (_v) { | |
18242 | { | |
18243 | void *ptr; | |
18244 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18245 | _v = 0; | |
18246 | PyErr_Clear(); | |
18247 | } else { | |
18248 | _v = 1; | |
18249 | } | |
18250 | } | |
18251 | if (_v) { | |
18252 | return _wrap_DateTime___add____SWIG_0(self,args); | |
18253 | } | |
18254 | } | |
18255 | } | |
18256 | if (argc == 2) { | |
18257 | int _v; | |
18258 | { | |
18259 | void *ptr; | |
18260 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18261 | _v = 0; | |
18262 | PyErr_Clear(); | |
18263 | } else { | |
18264 | _v = 1; | |
18265 | } | |
18266 | } | |
18267 | if (_v) { | |
18268 | { | |
18269 | void *ptr; | |
18270 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18271 | _v = 0; | |
18272 | PyErr_Clear(); | |
18273 | } else { | |
18274 | _v = 1; | |
18275 | } | |
18276 | } | |
18277 | if (_v) { | |
18278 | return _wrap_DateTime___add____SWIG_1(self,args); | |
18279 | } | |
18280 | } | |
18281 | } | |
18282 | ||
18283 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
18284 | return NULL; | |
18285 | } | |
18286 | ||
18287 | ||
18288 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
18289 | PyObject *resultobj; | |
18290 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18291 | wxDateTime *arg2 = 0 ; | |
18292 | wxTimeSpan result; | |
18293 | PyObject * obj0 = 0 ; | |
18294 | PyObject * obj1 = 0 ; | |
18295 | ||
18296 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18298 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18299 | if (arg2 == NULL) { | |
18300 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18301 | } | |
18302 | { | |
18303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18304 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
18305 | ||
18306 | wxPyEndAllowThreads(__tstate); | |
18307 | if (PyErr_Occurred()) SWIG_fail; | |
18308 | } | |
18309 | { | |
18310 | wxTimeSpan * resultptr; | |
18311 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18312 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18313 | } | |
18314 | return resultobj; | |
18315 | fail: | |
18316 | return NULL; | |
18317 | } | |
18318 | ||
18319 | ||
18320 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
18321 | PyObject *resultobj; | |
18322 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18323 | wxTimeSpan *arg2 = 0 ; | |
18324 | wxDateTime result; | |
18325 | PyObject * obj0 = 0 ; | |
18326 | PyObject * obj1 = 0 ; | |
18327 | ||
18328 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18330 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18331 | if (arg2 == NULL) { | |
18332 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18333 | } | |
18334 | { | |
18335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18336 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
18337 | ||
18338 | wxPyEndAllowThreads(__tstate); | |
18339 | if (PyErr_Occurred()) SWIG_fail; | |
18340 | } | |
18341 | { | |
18342 | wxDateTime * resultptr; | |
18343 | resultptr = new wxDateTime((wxDateTime &) result); | |
18344 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18345 | } | |
18346 | return resultobj; | |
18347 | fail: | |
18348 | return NULL; | |
18349 | } | |
18350 | ||
18351 | ||
18352 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
18353 | PyObject *resultobj; | |
18354 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18355 | wxDateSpan *arg2 = 0 ; | |
18356 | wxDateTime result; | |
18357 | PyObject * obj0 = 0 ; | |
18358 | PyObject * obj1 = 0 ; | |
18359 | ||
18360 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18362 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18363 | if (arg2 == NULL) { | |
18364 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18365 | } | |
18366 | { | |
18367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18368 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
18369 | ||
18370 | wxPyEndAllowThreads(__tstate); | |
18371 | if (PyErr_Occurred()) SWIG_fail; | |
18372 | } | |
18373 | { | |
18374 | wxDateTime * resultptr; | |
18375 | resultptr = new wxDateTime((wxDateTime &) result); | |
18376 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18377 | } | |
18378 | return resultobj; | |
18379 | fail: | |
18380 | return NULL; | |
18381 | } | |
18382 | ||
18383 | ||
18384 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
18385 | int argc; | |
18386 | PyObject *argv[3]; | |
18387 | int ii; | |
18388 | ||
18389 | argc = PyObject_Length(args); | |
18390 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18391 | argv[ii] = PyTuple_GetItem(args,ii); | |
18392 | } | |
18393 | if (argc == 2) { | |
18394 | int _v; | |
18395 | { | |
18396 | void *ptr; | |
18397 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18398 | _v = 0; | |
18399 | PyErr_Clear(); | |
18400 | } else { | |
18401 | _v = 1; | |
18402 | } | |
18403 | } | |
18404 | if (_v) { | |
18405 | { | |
18406 | void *ptr; | |
18407 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18408 | _v = 0; | |
18409 | PyErr_Clear(); | |
18410 | } else { | |
18411 | _v = 1; | |
18412 | } | |
18413 | } | |
18414 | if (_v) { | |
18415 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
18416 | } | |
18417 | } | |
18418 | } | |
18419 | if (argc == 2) { | |
18420 | int _v; | |
18421 | { | |
18422 | void *ptr; | |
18423 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18424 | _v = 0; | |
18425 | PyErr_Clear(); | |
18426 | } else { | |
18427 | _v = 1; | |
18428 | } | |
18429 | } | |
18430 | if (_v) { | |
18431 | { | |
18432 | void *ptr; | |
18433 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18434 | _v = 0; | |
18435 | PyErr_Clear(); | |
18436 | } else { | |
18437 | _v = 1; | |
18438 | } | |
18439 | } | |
18440 | if (_v) { | |
18441 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
18442 | } | |
18443 | } | |
18444 | } | |
18445 | if (argc == 2) { | |
18446 | int _v; | |
18447 | { | |
18448 | void *ptr; | |
18449 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18450 | _v = 0; | |
18451 | PyErr_Clear(); | |
18452 | } else { | |
18453 | _v = 1; | |
18454 | } | |
18455 | } | |
18456 | if (_v) { | |
18457 | { | |
18458 | void *ptr; | |
18459 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18460 | _v = 0; | |
18461 | PyErr_Clear(); | |
18462 | } else { | |
18463 | _v = 1; | |
18464 | } | |
18465 | } | |
18466 | if (_v) { | |
18467 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
18468 | } | |
18469 | } | |
18470 | } | |
18471 | ||
18472 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
18473 | return NULL; | |
18474 | } | |
18475 | ||
18476 | ||
18477 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
18478 | PyObject *resultobj; | |
18479 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18480 | wxDateTime *arg2 = 0 ; | |
18481 | bool result; | |
18482 | PyObject * obj0 = 0 ; | |
18483 | PyObject * obj1 = 0 ; | |
18484 | ||
18485 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
18486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18487 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18488 | if (arg2 == NULL) { | |
18489 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18490 | } | |
18491 | { | |
18492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18493 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
18494 | ||
18495 | wxPyEndAllowThreads(__tstate); | |
18496 | if (PyErr_Occurred()) SWIG_fail; | |
18497 | } | |
18498 | resultobj = PyInt_FromLong((long)result); | |
18499 | return resultobj; | |
18500 | fail: | |
18501 | return NULL; | |
18502 | } | |
18503 | ||
18504 | ||
18505 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
18506 | PyObject *resultobj; | |
18507 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18508 | wxDateTime *arg2 = 0 ; | |
18509 | bool result; | |
18510 | PyObject * obj0 = 0 ; | |
18511 | PyObject * obj1 = 0 ; | |
18512 | ||
18513 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
18514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18515 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18516 | if (arg2 == NULL) { | |
18517 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18518 | } | |
18519 | { | |
18520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18521 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
18522 | ||
18523 | wxPyEndAllowThreads(__tstate); | |
18524 | if (PyErr_Occurred()) SWIG_fail; | |
18525 | } | |
18526 | resultobj = PyInt_FromLong((long)result); | |
18527 | return resultobj; | |
18528 | fail: | |
18529 | return NULL; | |
18530 | } | |
18531 | ||
18532 | ||
18533 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
18534 | PyObject *resultobj; | |
18535 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18536 | wxDateTime *arg2 = 0 ; | |
18537 | bool result; | |
18538 | PyObject * obj0 = 0 ; | |
18539 | PyObject * obj1 = 0 ; | |
18540 | ||
18541 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
18542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18543 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18544 | if (arg2 == NULL) { | |
18545 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18546 | } | |
18547 | { | |
18548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18549 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
18550 | ||
18551 | wxPyEndAllowThreads(__tstate); | |
18552 | if (PyErr_Occurred()) SWIG_fail; | |
18553 | } | |
18554 | resultobj = PyInt_FromLong((long)result); | |
18555 | return resultobj; | |
18556 | fail: | |
18557 | return NULL; | |
18558 | } | |
18559 | ||
18560 | ||
18561 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
18562 | PyObject *resultobj; | |
18563 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18564 | wxDateTime *arg2 = 0 ; | |
18565 | bool result; | |
18566 | PyObject * obj0 = 0 ; | |
18567 | PyObject * obj1 = 0 ; | |
18568 | ||
18569 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
18570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18571 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18572 | if (arg2 == NULL) { | |
18573 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18574 | } | |
18575 | { | |
18576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18577 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
18578 | ||
18579 | wxPyEndAllowThreads(__tstate); | |
18580 | if (PyErr_Occurred()) SWIG_fail; | |
18581 | } | |
18582 | resultobj = PyInt_FromLong((long)result); | |
18583 | return resultobj; | |
18584 | fail: | |
18585 | return NULL; | |
18586 | } | |
18587 | ||
18588 | ||
18589 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
18590 | PyObject *resultobj; | |
18591 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18592 | wxDateTime *arg2 = 0 ; | |
18593 | bool result; | |
18594 | PyObject * obj0 = 0 ; | |
18595 | PyObject * obj1 = 0 ; | |
18596 | ||
18597 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
18598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18599 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18600 | if (arg2 == NULL) { | |
18601 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18602 | } | |
18603 | { | |
18604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18605 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
18606 | ||
18607 | wxPyEndAllowThreads(__tstate); | |
18608 | if (PyErr_Occurred()) SWIG_fail; | |
18609 | } | |
18610 | resultobj = PyInt_FromLong((long)result); | |
18611 | return resultobj; | |
18612 | fail: | |
18613 | return NULL; | |
18614 | } | |
18615 | ||
18616 | ||
18617 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
18618 | PyObject *resultobj; | |
18619 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18620 | wxDateTime *arg2 = 0 ; | |
18621 | bool result; | |
18622 | PyObject * obj0 = 0 ; | |
18623 | PyObject * obj1 = 0 ; | |
18624 | ||
18625 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
18626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18627 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18628 | if (arg2 == NULL) { | |
18629 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18630 | } | |
18631 | { | |
18632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18633 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
18634 | ||
18635 | wxPyEndAllowThreads(__tstate); | |
18636 | if (PyErr_Occurred()) SWIG_fail; | |
18637 | } | |
18638 | resultobj = PyInt_FromLong((long)result); | |
18639 | return resultobj; | |
18640 | fail: | |
18641 | return NULL; | |
18642 | } | |
18643 | ||
18644 | ||
18645 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18646 | PyObject *resultobj; | |
18647 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18648 | wxString *arg2 = 0 ; | |
18649 | int result; | |
423f194a | 18650 | bool temp2 = False ; |
d14a1e28 RD |
18651 | PyObject * obj0 = 0 ; |
18652 | PyObject * obj1 = 0 ; | |
18653 | char *kwnames[] = { | |
18654 | (char *) "self",(char *) "date", NULL | |
18655 | }; | |
18656 | ||
18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
18658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18659 | { | |
18660 | arg2 = wxString_in_helper(obj1); | |
18661 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18662 | temp2 = True; |
d14a1e28 RD |
18663 | } |
18664 | { | |
18665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18666 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
18667 | ||
18668 | wxPyEndAllowThreads(__tstate); | |
18669 | if (PyErr_Occurred()) SWIG_fail; | |
18670 | } | |
18671 | resultobj = PyInt_FromLong((long)result); | |
18672 | { | |
18673 | if (temp2) | |
18674 | delete arg2; | |
18675 | } | |
18676 | return resultobj; | |
18677 | fail: | |
18678 | { | |
18679 | if (temp2) | |
18680 | delete arg2; | |
18681 | } | |
18682 | return NULL; | |
18683 | } | |
18684 | ||
18685 | ||
18686 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18687 | PyObject *resultobj; | |
18688 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18689 | wxString *arg2 = 0 ; | |
18690 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
18691 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18692 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
18693 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
18694 | int result; | |
423f194a RD |
18695 | bool temp2 = False ; |
18696 | bool temp3 = False ; | |
d14a1e28 RD |
18697 | PyObject * obj0 = 0 ; |
18698 | PyObject * obj1 = 0 ; | |
18699 | PyObject * obj2 = 0 ; | |
18700 | PyObject * obj3 = 0 ; | |
18701 | char *kwnames[] = { | |
18702 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
18703 | }; | |
18704 | ||
18705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18707 | { | |
18708 | arg2 = wxString_in_helper(obj1); | |
18709 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18710 | temp2 = True; |
d14a1e28 RD |
18711 | } |
18712 | if (obj2) { | |
18713 | { | |
18714 | arg3 = wxString_in_helper(obj2); | |
18715 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 18716 | temp3 = True; |
d14a1e28 RD |
18717 | } |
18718 | } | |
18719 | if (obj3) { | |
18720 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18721 | if (arg4 == NULL) { | |
18722 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18723 | } | |
18724 | } | |
18725 | { | |
18726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18727 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
18728 | ||
18729 | wxPyEndAllowThreads(__tstate); | |
18730 | if (PyErr_Occurred()) SWIG_fail; | |
18731 | } | |
18732 | resultobj = PyInt_FromLong((long)result); | |
18733 | { | |
18734 | if (temp2) | |
18735 | delete arg2; | |
18736 | } | |
18737 | { | |
18738 | if (temp3) | |
18739 | delete arg3; | |
18740 | } | |
18741 | return resultobj; | |
18742 | fail: | |
18743 | { | |
18744 | if (temp2) | |
18745 | delete arg2; | |
18746 | } | |
18747 | { | |
18748 | if (temp3) | |
18749 | delete arg3; | |
18750 | } | |
18751 | return NULL; | |
18752 | } | |
18753 | ||
18754 | ||
18755 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18756 | PyObject *resultobj; | |
18757 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18758 | wxString *arg2 = 0 ; | |
18759 | int result; | |
423f194a | 18760 | bool temp2 = False ; |
d14a1e28 RD |
18761 | PyObject * obj0 = 0 ; |
18762 | PyObject * obj1 = 0 ; | |
18763 | char *kwnames[] = { | |
18764 | (char *) "self",(char *) "datetime", NULL | |
18765 | }; | |
18766 | ||
18767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
18768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18769 | { | |
18770 | arg2 = wxString_in_helper(obj1); | |
18771 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18772 | temp2 = True; |
d14a1e28 RD |
18773 | } |
18774 | { | |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
18781 | resultobj = PyInt_FromLong((long)result); | |
18782 | { | |
18783 | if (temp2) | |
18784 | delete arg2; | |
18785 | } | |
18786 | return resultobj; | |
18787 | fail: | |
18788 | { | |
18789 | if (temp2) | |
18790 | delete arg2; | |
18791 | } | |
18792 | return NULL; | |
18793 | } | |
18794 | ||
18795 | ||
18796 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18797 | PyObject *resultobj; | |
18798 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18799 | wxString *arg2 = 0 ; | |
18800 | int result; | |
423f194a | 18801 | bool temp2 = False ; |
d14a1e28 RD |
18802 | PyObject * obj0 = 0 ; |
18803 | PyObject * obj1 = 0 ; | |
18804 | char *kwnames[] = { | |
18805 | (char *) "self",(char *) "date", NULL | |
18806 | }; | |
18807 | ||
18808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
18809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18810 | { | |
18811 | arg2 = wxString_in_helper(obj1); | |
18812 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18813 | temp2 = True; |
d14a1e28 RD |
18814 | } |
18815 | { | |
18816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18817 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
18818 | ||
18819 | wxPyEndAllowThreads(__tstate); | |
18820 | if (PyErr_Occurred()) SWIG_fail; | |
18821 | } | |
18822 | resultobj = PyInt_FromLong((long)result); | |
18823 | { | |
18824 | if (temp2) | |
18825 | delete arg2; | |
18826 | } | |
18827 | return resultobj; | |
18828 | fail: | |
18829 | { | |
18830 | if (temp2) | |
18831 | delete arg2; | |
18832 | } | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
18837 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18838 | PyObject *resultobj; | |
18839 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18840 | wxString *arg2 = 0 ; | |
18841 | int result; | |
423f194a | 18842 | bool temp2 = False ; |
d14a1e28 RD |
18843 | PyObject * obj0 = 0 ; |
18844 | PyObject * obj1 = 0 ; | |
18845 | char *kwnames[] = { | |
18846 | (char *) "self",(char *) "time", NULL | |
18847 | }; | |
18848 | ||
18849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
18850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18851 | { | |
18852 | arg2 = wxString_in_helper(obj1); | |
18853 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18854 | temp2 = True; |
d14a1e28 RD |
18855 | } |
18856 | { | |
18857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18858 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
18859 | ||
18860 | wxPyEndAllowThreads(__tstate); | |
18861 | if (PyErr_Occurred()) SWIG_fail; | |
18862 | } | |
18863 | resultobj = PyInt_FromLong((long)result); | |
18864 | { | |
18865 | if (temp2) | |
18866 | delete arg2; | |
18867 | } | |
18868 | return resultobj; | |
18869 | fail: | |
18870 | { | |
18871 | if (temp2) | |
18872 | delete arg2; | |
18873 | } | |
18874 | return NULL; | |
18875 | } | |
18876 | ||
18877 | ||
18878 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18879 | PyObject *resultobj; | |
18880 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18881 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
18882 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
18883 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
18884 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
18885 | wxString result; | |
423f194a | 18886 | bool temp2 = False ; |
d14a1e28 RD |
18887 | PyObject * obj0 = 0 ; |
18888 | PyObject * obj1 = 0 ; | |
18889 | PyObject * obj2 = 0 ; | |
18890 | char *kwnames[] = { | |
18891 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
18892 | }; | |
18893 | ||
18894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18896 | if (obj1) { | |
18897 | { | |
18898 | arg2 = wxString_in_helper(obj1); | |
18899 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18900 | temp2 = True; |
d14a1e28 RD |
18901 | } |
18902 | } | |
18903 | if (obj2) { | |
18904 | { | |
18905 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
18906 | } | |
18907 | } | |
18908 | { | |
18909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18910 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
18911 | ||
18912 | wxPyEndAllowThreads(__tstate); | |
18913 | if (PyErr_Occurred()) SWIG_fail; | |
18914 | } | |
18915 | { | |
18916 | #if wxUSE_UNICODE | |
18917 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18918 | #else | |
18919 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18920 | #endif | |
18921 | } | |
18922 | { | |
18923 | if (temp2) | |
18924 | delete arg2; | |
18925 | } | |
18926 | { | |
18927 | if (arg3) delete arg3; | |
18928 | } | |
18929 | return resultobj; | |
18930 | fail: | |
18931 | { | |
18932 | if (temp2) | |
18933 | delete arg2; | |
18934 | } | |
18935 | { | |
18936 | if (arg3) delete arg3; | |
18937 | } | |
18938 | return NULL; | |
18939 | } | |
18940 | ||
18941 | ||
18942 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18943 | PyObject *resultobj; | |
18944 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18945 | wxString result; | |
18946 | PyObject * obj0 = 0 ; | |
18947 | char *kwnames[] = { | |
18948 | (char *) "self", NULL | |
18949 | }; | |
18950 | ||
18951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
18952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18953 | { | |
18954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18955 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
18956 | ||
18957 | wxPyEndAllowThreads(__tstate); | |
18958 | if (PyErr_Occurred()) SWIG_fail; | |
18959 | } | |
18960 | { | |
18961 | #if wxUSE_UNICODE | |
18962 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18963 | #else | |
18964 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18965 | #endif | |
18966 | } | |
18967 | return resultobj; | |
18968 | fail: | |
18969 | return NULL; | |
18970 | } | |
18971 | ||
18972 | ||
18973 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18974 | PyObject *resultobj; | |
18975 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18976 | wxString result; | |
18977 | PyObject * obj0 = 0 ; | |
18978 | char *kwnames[] = { | |
18979 | (char *) "self", NULL | |
18980 | }; | |
18981 | ||
18982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
18983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18984 | { | |
18985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18986 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
18987 | ||
18988 | wxPyEndAllowThreads(__tstate); | |
18989 | if (PyErr_Occurred()) SWIG_fail; | |
18990 | } | |
18991 | { | |
18992 | #if wxUSE_UNICODE | |
18993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18994 | #else | |
18995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18996 | #endif | |
18997 | } | |
18998 | return resultobj; | |
18999 | fail: | |
19000 | return NULL; | |
19001 | } | |
19002 | ||
19003 | ||
19004 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19005 | PyObject *resultobj; | |
19006 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19007 | wxString result; | |
19008 | PyObject * obj0 = 0 ; | |
19009 | char *kwnames[] = { | |
19010 | (char *) "self", NULL | |
19011 | }; | |
19012 | ||
19013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
19014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19015 | { | |
19016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19017 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
19018 | ||
19019 | wxPyEndAllowThreads(__tstate); | |
19020 | if (PyErr_Occurred()) SWIG_fail; | |
19021 | } | |
19022 | { | |
19023 | #if wxUSE_UNICODE | |
19024 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19025 | #else | |
19026 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19027 | #endif | |
19028 | } | |
19029 | return resultobj; | |
19030 | fail: | |
19031 | return NULL; | |
19032 | } | |
19033 | ||
19034 | ||
19035 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19036 | PyObject *resultobj; | |
19037 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19038 | wxString result; | |
19039 | PyObject * obj0 = 0 ; | |
19040 | char *kwnames[] = { | |
19041 | (char *) "self", NULL | |
19042 | }; | |
19043 | ||
19044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
19045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19046 | { | |
19047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19048 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
19049 | ||
19050 | wxPyEndAllowThreads(__tstate); | |
19051 | if (PyErr_Occurred()) SWIG_fail; | |
19052 | } | |
19053 | { | |
19054 | #if wxUSE_UNICODE | |
19055 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19056 | #else | |
19057 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19058 | #endif | |
19059 | } | |
19060 | return resultobj; | |
19061 | fail: | |
19062 | return NULL; | |
19063 | } | |
19064 | ||
19065 | ||
19066 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
19067 | PyObject *obj; | |
19068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19069 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
19070 | Py_INCREF(obj); | |
19071 | return Py_BuildValue((char *)""); | |
19072 | } | |
19073 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19074 | PyObject *resultobj; | |
19075 | long arg1 ; | |
19076 | wxTimeSpan result; | |
19077 | char *kwnames[] = { | |
19078 | (char *) "sec", NULL | |
19079 | }; | |
19080 | ||
19081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Seconds",kwnames,&arg1)) goto fail; | |
19082 | { | |
19083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19084 | result = wxTimeSpan::Seconds(arg1); | |
19085 | ||
19086 | wxPyEndAllowThreads(__tstate); | |
19087 | if (PyErr_Occurred()) SWIG_fail; | |
19088 | } | |
19089 | { | |
19090 | wxTimeSpan * resultptr; | |
19091 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19092 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19093 | } | |
19094 | return resultobj; | |
19095 | fail: | |
19096 | return NULL; | |
19097 | } | |
19098 | ||
19099 | ||
19100 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19101 | PyObject *resultobj; | |
19102 | wxTimeSpan result; | |
19103 | char *kwnames[] = { | |
19104 | NULL | |
19105 | }; | |
19106 | ||
19107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
19108 | { | |
19109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19110 | result = wxTimeSpan::Second(); | |
19111 | ||
19112 | wxPyEndAllowThreads(__tstate); | |
19113 | if (PyErr_Occurred()) SWIG_fail; | |
19114 | } | |
19115 | { | |
19116 | wxTimeSpan * resultptr; | |
19117 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19118 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19119 | } | |
19120 | return resultobj; | |
19121 | fail: | |
19122 | return NULL; | |
19123 | } | |
19124 | ||
19125 | ||
19126 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19127 | PyObject *resultobj; | |
19128 | long arg1 ; | |
19129 | wxTimeSpan result; | |
19130 | char *kwnames[] = { | |
19131 | (char *) "min", NULL | |
19132 | }; | |
19133 | ||
19134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Minutes",kwnames,&arg1)) goto fail; | |
19135 | { | |
19136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19137 | result = wxTimeSpan::Minutes(arg1); | |
19138 | ||
19139 | wxPyEndAllowThreads(__tstate); | |
19140 | if (PyErr_Occurred()) SWIG_fail; | |
19141 | } | |
19142 | { | |
19143 | wxTimeSpan * resultptr; | |
19144 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19145 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19146 | } | |
19147 | return resultobj; | |
19148 | fail: | |
19149 | return NULL; | |
19150 | } | |
19151 | ||
19152 | ||
19153 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19154 | PyObject *resultobj; | |
19155 | wxTimeSpan result; | |
19156 | char *kwnames[] = { | |
19157 | NULL | |
19158 | }; | |
19159 | ||
19160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
19161 | { | |
19162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19163 | result = wxTimeSpan::Minute(); | |
19164 | ||
19165 | wxPyEndAllowThreads(__tstate); | |
19166 | if (PyErr_Occurred()) SWIG_fail; | |
19167 | } | |
19168 | { | |
19169 | wxTimeSpan * resultptr; | |
19170 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19171 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19172 | } | |
19173 | return resultobj; | |
19174 | fail: | |
19175 | return NULL; | |
19176 | } | |
19177 | ||
19178 | ||
19179 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19180 | PyObject *resultobj; | |
19181 | long arg1 ; | |
19182 | wxTimeSpan result; | |
19183 | char *kwnames[] = { | |
19184 | (char *) "hours", NULL | |
19185 | }; | |
19186 | ||
19187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Hours",kwnames,&arg1)) goto fail; | |
19188 | { | |
19189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19190 | result = wxTimeSpan::Hours(arg1); | |
19191 | ||
19192 | wxPyEndAllowThreads(__tstate); | |
19193 | if (PyErr_Occurred()) SWIG_fail; | |
19194 | } | |
19195 | { | |
19196 | wxTimeSpan * resultptr; | |
19197 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19198 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19199 | } | |
19200 | return resultobj; | |
19201 | fail: | |
19202 | return NULL; | |
19203 | } | |
19204 | ||
19205 | ||
19206 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19207 | PyObject *resultobj; | |
19208 | wxTimeSpan result; | |
19209 | char *kwnames[] = { | |
19210 | NULL | |
19211 | }; | |
19212 | ||
19213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
19214 | { | |
19215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19216 | result = wxTimeSpan::Hour(); | |
19217 | ||
19218 | wxPyEndAllowThreads(__tstate); | |
19219 | if (PyErr_Occurred()) SWIG_fail; | |
19220 | } | |
19221 | { | |
19222 | wxTimeSpan * resultptr; | |
19223 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19224 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19225 | } | |
19226 | return resultobj; | |
19227 | fail: | |
19228 | return NULL; | |
19229 | } | |
19230 | ||
19231 | ||
19232 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19233 | PyObject *resultobj; | |
19234 | long arg1 ; | |
19235 | wxTimeSpan result; | |
19236 | char *kwnames[] = { | |
19237 | (char *) "days", NULL | |
19238 | }; | |
19239 | ||
19240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Days",kwnames,&arg1)) goto fail; | |
19241 | { | |
19242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19243 | result = wxTimeSpan::Days(arg1); | |
19244 | ||
19245 | wxPyEndAllowThreads(__tstate); | |
19246 | if (PyErr_Occurred()) SWIG_fail; | |
19247 | } | |
19248 | { | |
19249 | wxTimeSpan * resultptr; | |
19250 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19251 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19252 | } | |
19253 | return resultobj; | |
19254 | fail: | |
19255 | return NULL; | |
19256 | } | |
19257 | ||
19258 | ||
19259 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19260 | PyObject *resultobj; | |
19261 | wxTimeSpan result; | |
19262 | char *kwnames[] = { | |
19263 | NULL | |
19264 | }; | |
19265 | ||
19266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
19267 | { | |
19268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19269 | result = wxTimeSpan::Day(); | |
19270 | ||
19271 | wxPyEndAllowThreads(__tstate); | |
19272 | if (PyErr_Occurred()) SWIG_fail; | |
19273 | } | |
19274 | { | |
19275 | wxTimeSpan * resultptr; | |
19276 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19277 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19278 | } | |
19279 | return resultobj; | |
19280 | fail: | |
19281 | return NULL; | |
19282 | } | |
19283 | ||
19284 | ||
19285 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19286 | PyObject *resultobj; | |
19287 | long arg1 ; | |
19288 | wxTimeSpan result; | |
19289 | char *kwnames[] = { | |
19290 | (char *) "days", NULL | |
19291 | }; | |
19292 | ||
19293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Weeks",kwnames,&arg1)) goto fail; | |
19294 | { | |
19295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19296 | result = wxTimeSpan::Weeks(arg1); | |
19297 | ||
19298 | wxPyEndAllowThreads(__tstate); | |
19299 | if (PyErr_Occurred()) SWIG_fail; | |
19300 | } | |
19301 | { | |
19302 | wxTimeSpan * resultptr; | |
19303 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19304 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19305 | } | |
19306 | return resultobj; | |
19307 | fail: | |
19308 | return NULL; | |
19309 | } | |
19310 | ||
19311 | ||
19312 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19313 | PyObject *resultobj; | |
19314 | wxTimeSpan result; | |
19315 | char *kwnames[] = { | |
19316 | NULL | |
19317 | }; | |
19318 | ||
19319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
19320 | { | |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19322 | result = wxTimeSpan::Week(); | |
19323 | ||
19324 | wxPyEndAllowThreads(__tstate); | |
19325 | if (PyErr_Occurred()) SWIG_fail; | |
19326 | } | |
19327 | { | |
19328 | wxTimeSpan * resultptr; | |
19329 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19330 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19331 | } | |
19332 | return resultobj; | |
19333 | fail: | |
19334 | return NULL; | |
19335 | } | |
19336 | ||
19337 | ||
19338 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19339 | PyObject *resultobj; | |
19340 | long arg1 = (long) 0 ; | |
19341 | long arg2 = (long) 0 ; | |
19342 | long arg3 = (long) 0 ; | |
19343 | long arg4 = (long) 0 ; | |
19344 | wxTimeSpan *result; | |
19345 | char *kwnames[] = { | |
19346 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
19347 | }; | |
19348 | ||
19349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|llll:new_TimeSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
19350 | { | |
19351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19352 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
19353 | ||
19354 | wxPyEndAllowThreads(__tstate); | |
19355 | if (PyErr_Occurred()) SWIG_fail; | |
19356 | } | |
19357 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
19358 | return resultobj; | |
19359 | fail: | |
19360 | return NULL; | |
19361 | } | |
19362 | ||
19363 | ||
19364 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19365 | PyObject *resultobj; | |
19366 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19367 | PyObject * obj0 = 0 ; | |
19368 | char *kwnames[] = { | |
19369 | (char *) "self", NULL | |
19370 | }; | |
19371 | ||
19372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
19373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19374 | { | |
19375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19376 | delete arg1; | |
19377 | ||
19378 | wxPyEndAllowThreads(__tstate); | |
19379 | if (PyErr_Occurred()) SWIG_fail; | |
19380 | } | |
19381 | Py_INCREF(Py_None); resultobj = Py_None; | |
19382 | return resultobj; | |
19383 | fail: | |
19384 | return NULL; | |
19385 | } | |
19386 | ||
19387 | ||
19388 | static PyObject *_wrap_TimeSpan_Add(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_Add",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)->Add((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_Subtract(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_Subtract",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)->Subtract((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_Multiply(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_Multiply",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)->Multiply(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)->Neg(); | |
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_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19514 | PyObject *resultobj; | |
19515 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19516 | wxTimeSpan result; | |
19517 | PyObject * obj0 = 0 ; | |
19518 | char *kwnames[] = { | |
19519 | (char *) "self", NULL | |
19520 | }; | |
19521 | ||
19522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
19523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19524 | { | |
19525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19526 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
19527 | ||
19528 | wxPyEndAllowThreads(__tstate); | |
19529 | if (PyErr_Occurred()) SWIG_fail; | |
19530 | } | |
19531 | { | |
19532 | wxTimeSpan * resultptr; | |
19533 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19534 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19535 | } | |
19536 | return resultobj; | |
19537 | fail: | |
19538 | return NULL; | |
19539 | } | |
19540 | ||
19541 | ||
19542 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19543 | PyObject *resultobj; | |
19544 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19545 | wxTimeSpan *arg2 = 0 ; | |
19546 | wxTimeSpan *result; | |
19547 | PyObject * obj0 = 0 ; | |
19548 | PyObject * obj1 = 0 ; | |
19549 | char *kwnames[] = { | |
19550 | (char *) "self",(char *) "diff", NULL | |
19551 | }; | |
19552 | ||
19553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
19554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19555 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19556 | if (arg2 == NULL) { | |
19557 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19558 | } | |
19559 | { | |
19560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19561 | { | |
19562 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19563 | result = (wxTimeSpan *) &_result_ref; | |
19564 | } | |
19565 | ||
19566 | wxPyEndAllowThreads(__tstate); | |
19567 | if (PyErr_Occurred()) SWIG_fail; | |
19568 | } | |
19569 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19570 | return resultobj; | |
19571 | fail: | |
19572 | return NULL; | |
19573 | } | |
19574 | ||
19575 | ||
19576 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19577 | PyObject *resultobj; | |
19578 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19579 | wxTimeSpan *arg2 = 0 ; | |
19580 | wxTimeSpan *result; | |
19581 | PyObject * obj0 = 0 ; | |
19582 | PyObject * obj1 = 0 ; | |
19583 | char *kwnames[] = { | |
19584 | (char *) "self",(char *) "diff", NULL | |
19585 | }; | |
19586 | ||
19587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
19588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19589 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19590 | if (arg2 == NULL) { | |
19591 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19592 | } | |
19593 | { | |
19594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19595 | { | |
19596 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19597 | result = (wxTimeSpan *) &_result_ref; | |
19598 | } | |
19599 | ||
19600 | wxPyEndAllowThreads(__tstate); | |
19601 | if (PyErr_Occurred()) SWIG_fail; | |
19602 | } | |
19603 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19604 | return resultobj; | |
19605 | fail: | |
19606 | return NULL; | |
19607 | } | |
19608 | ||
19609 | ||
19610 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19611 | PyObject *resultobj; | |
19612 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19613 | int arg2 ; | |
19614 | wxTimeSpan *result; | |
19615 | PyObject * obj0 = 0 ; | |
19616 | char *kwnames[] = { | |
19617 | (char *) "self",(char *) "n", NULL | |
19618 | }; | |
19619 | ||
19620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
19621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19622 | { | |
19623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19624 | { | |
19625 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
19626 | result = (wxTimeSpan *) &_result_ref; | |
19627 | } | |
19628 | ||
19629 | wxPyEndAllowThreads(__tstate); | |
19630 | if (PyErr_Occurred()) SWIG_fail; | |
19631 | } | |
19632 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19633 | return resultobj; | |
19634 | fail: | |
19635 | return NULL; | |
19636 | } | |
19637 | ||
19638 | ||
19639 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19640 | PyObject *resultobj; | |
19641 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19642 | wxTimeSpan *result; | |
19643 | PyObject * obj0 = 0 ; | |
19644 | char *kwnames[] = { | |
19645 | (char *) "self", NULL | |
19646 | }; | |
19647 | ||
19648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
19649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19650 | { | |
19651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19652 | { | |
19653 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
19654 | result = (wxTimeSpan *) &_result_ref; | |
19655 | } | |
19656 | ||
19657 | wxPyEndAllowThreads(__tstate); | |
19658 | if (PyErr_Occurred()) SWIG_fail; | |
19659 | } | |
19660 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19661 | return resultobj; | |
19662 | fail: | |
19663 | return NULL; | |
19664 | } | |
19665 | ||
19666 | ||
19667 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19668 | PyObject *resultobj; | |
19669 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19670 | wxTimeSpan *arg2 = 0 ; | |
19671 | wxTimeSpan result; | |
19672 | PyObject * obj0 = 0 ; | |
19673 | PyObject * obj1 = 0 ; | |
19674 | char *kwnames[] = { | |
19675 | (char *) "self",(char *) "other", NULL | |
19676 | }; | |
19677 | ||
19678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
19679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19681 | if (arg2 == NULL) { | |
19682 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19683 | } | |
19684 | { | |
19685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19686 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
19687 | ||
19688 | wxPyEndAllowThreads(__tstate); | |
19689 | if (PyErr_Occurred()) SWIG_fail; | |
19690 | } | |
19691 | { | |
19692 | wxTimeSpan * resultptr; | |
19693 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19694 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19695 | } | |
19696 | return resultobj; | |
19697 | fail: | |
19698 | return NULL; | |
19699 | } | |
19700 | ||
19701 | ||
19702 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19703 | PyObject *resultobj; | |
19704 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19705 | wxTimeSpan *arg2 = 0 ; | |
19706 | wxTimeSpan result; | |
19707 | PyObject * obj0 = 0 ; | |
19708 | PyObject * obj1 = 0 ; | |
19709 | char *kwnames[] = { | |
19710 | (char *) "self",(char *) "other", NULL | |
19711 | }; | |
19712 | ||
19713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
19714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19715 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19716 | if (arg2 == NULL) { | |
19717 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19718 | } | |
19719 | { | |
19720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19721 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
19722 | ||
19723 | wxPyEndAllowThreads(__tstate); | |
19724 | if (PyErr_Occurred()) SWIG_fail; | |
19725 | } | |
19726 | { | |
19727 | wxTimeSpan * resultptr; | |
19728 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19729 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19730 | } | |
19731 | return resultobj; | |
19732 | fail: | |
19733 | return NULL; | |
19734 | } | |
19735 | ||
19736 | ||
19737 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19738 | PyObject *resultobj; | |
19739 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19740 | int arg2 ; | |
19741 | wxTimeSpan result; | |
19742 | PyObject * obj0 = 0 ; | |
19743 | char *kwnames[] = { | |
19744 | (char *) "self",(char *) "n", NULL | |
19745 | }; | |
19746 | ||
19747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
19748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19749 | { | |
19750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19751 | result = wxTimeSpan___mul__(arg1,arg2); | |
19752 | ||
19753 | wxPyEndAllowThreads(__tstate); | |
19754 | if (PyErr_Occurred()) SWIG_fail; | |
19755 | } | |
19756 | { | |
19757 | wxTimeSpan * resultptr; | |
19758 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19759 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19760 | } | |
19761 | return resultobj; | |
19762 | fail: | |
19763 | return NULL; | |
19764 | } | |
19765 | ||
19766 | ||
19767 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19768 | PyObject *resultobj; | |
19769 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19770 | int arg2 ; | |
19771 | wxTimeSpan result; | |
19772 | PyObject * obj0 = 0 ; | |
19773 | char *kwnames[] = { | |
19774 | (char *) "self",(char *) "n", NULL | |
19775 | }; | |
19776 | ||
19777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
19778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19779 | { | |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | result = wxTimeSpan___rmul__(arg1,arg2); | |
19782 | ||
19783 | wxPyEndAllowThreads(__tstate); | |
19784 | if (PyErr_Occurred()) SWIG_fail; | |
19785 | } | |
19786 | { | |
19787 | wxTimeSpan * resultptr; | |
19788 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19789 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19790 | } | |
19791 | return resultobj; | |
19792 | fail: | |
19793 | return NULL; | |
19794 | } | |
19795 | ||
19796 | ||
19797 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19798 | PyObject *resultobj; | |
19799 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19800 | wxTimeSpan *arg2 = 0 ; | |
19801 | bool result; | |
19802 | PyObject * obj0 = 0 ; | |
19803 | PyObject * obj1 = 0 ; | |
19804 | char *kwnames[] = { | |
19805 | (char *) "self",(char *) "other", NULL | |
19806 | }; | |
19807 | ||
19808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
19809 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19810 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19811 | if (arg2 == NULL) { | |
19812 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19813 | } | |
19814 | { | |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
19817 | ||
19818 | wxPyEndAllowThreads(__tstate); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
19821 | resultobj = PyInt_FromLong((long)result); | |
19822 | return resultobj; | |
19823 | fail: | |
19824 | return NULL; | |
19825 | } | |
19826 | ||
19827 | ||
19828 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19829 | PyObject *resultobj; | |
19830 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19831 | wxTimeSpan *arg2 = 0 ; | |
19832 | bool result; | |
19833 | PyObject * obj0 = 0 ; | |
19834 | PyObject * obj1 = 0 ; | |
19835 | char *kwnames[] = { | |
19836 | (char *) "self",(char *) "other", NULL | |
19837 | }; | |
19838 | ||
19839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
19840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19841 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19842 | if (arg2 == NULL) { | |
19843 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19844 | } | |
19845 | { | |
19846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19847 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
19848 | ||
19849 | wxPyEndAllowThreads(__tstate); | |
19850 | if (PyErr_Occurred()) SWIG_fail; | |
19851 | } | |
19852 | resultobj = PyInt_FromLong((long)result); | |
19853 | return resultobj; | |
19854 | fail: | |
19855 | return NULL; | |
19856 | } | |
19857 | ||
19858 | ||
19859 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19860 | PyObject *resultobj; | |
19861 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19862 | wxTimeSpan *arg2 = 0 ; | |
19863 | bool result; | |
19864 | PyObject * obj0 = 0 ; | |
19865 | PyObject * obj1 = 0 ; | |
19866 | char *kwnames[] = { | |
19867 | (char *) "self",(char *) "other", NULL | |
19868 | }; | |
19869 | ||
19870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
19871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19872 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19873 | if (arg2 == NULL) { | |
19874 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19875 | } | |
19876 | { | |
19877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19878 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
19879 | ||
19880 | wxPyEndAllowThreads(__tstate); | |
19881 | if (PyErr_Occurred()) SWIG_fail; | |
19882 | } | |
19883 | resultobj = PyInt_FromLong((long)result); | |
19884 | return resultobj; | |
19885 | fail: | |
19886 | return NULL; | |
19887 | } | |
19888 | ||
19889 | ||
19890 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19891 | PyObject *resultobj; | |
19892 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19893 | wxTimeSpan *arg2 = 0 ; | |
19894 | bool result; | |
19895 | PyObject * obj0 = 0 ; | |
19896 | PyObject * obj1 = 0 ; | |
19897 | char *kwnames[] = { | |
19898 | (char *) "self",(char *) "other", NULL | |
19899 | }; | |
19900 | ||
19901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
19902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19903 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19904 | if (arg2 == NULL) { | |
19905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19906 | } | |
19907 | { | |
19908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19909 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
19910 | ||
19911 | wxPyEndAllowThreads(__tstate); | |
19912 | if (PyErr_Occurred()) SWIG_fail; | |
19913 | } | |
19914 | resultobj = PyInt_FromLong((long)result); | |
19915 | return resultobj; | |
19916 | fail: | |
19917 | return NULL; | |
19918 | } | |
19919 | ||
19920 | ||
19921 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19922 | PyObject *resultobj; | |
19923 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19924 | wxTimeSpan *arg2 = 0 ; | |
19925 | bool result; | |
19926 | PyObject * obj0 = 0 ; | |
19927 | PyObject * obj1 = 0 ; | |
19928 | char *kwnames[] = { | |
19929 | (char *) "self",(char *) "other", NULL | |
19930 | }; | |
19931 | ||
19932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
19933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19934 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19935 | if (arg2 == NULL) { | |
19936 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19937 | } | |
19938 | { | |
19939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19940 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
19941 | ||
19942 | wxPyEndAllowThreads(__tstate); | |
19943 | if (PyErr_Occurred()) SWIG_fail; | |
19944 | } | |
19945 | resultobj = PyInt_FromLong((long)result); | |
19946 | return resultobj; | |
19947 | fail: | |
19948 | return NULL; | |
19949 | } | |
19950 | ||
19951 | ||
19952 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19953 | PyObject *resultobj; | |
19954 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19955 | wxTimeSpan *arg2 = 0 ; | |
19956 | bool result; | |
19957 | PyObject * obj0 = 0 ; | |
19958 | PyObject * obj1 = 0 ; | |
19959 | char *kwnames[] = { | |
19960 | (char *) "self",(char *) "other", NULL | |
19961 | }; | |
19962 | ||
19963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
19964 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19965 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19966 | if (arg2 == NULL) { | |
19967 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19968 | } | |
19969 | { | |
19970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19971 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
19972 | ||
19973 | wxPyEndAllowThreads(__tstate); | |
19974 | if (PyErr_Occurred()) SWIG_fail; | |
19975 | } | |
19976 | resultobj = PyInt_FromLong((long)result); | |
19977 | return resultobj; | |
19978 | fail: | |
19979 | return NULL; | |
19980 | } | |
19981 | ||
19982 | ||
19983 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19984 | PyObject *resultobj; | |
19985 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19986 | bool result; | |
19987 | PyObject * obj0 = 0 ; | |
19988 | char *kwnames[] = { | |
19989 | (char *) "self", NULL | |
19990 | }; | |
19991 | ||
19992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
19993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19994 | { | |
19995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19996 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
19997 | ||
19998 | wxPyEndAllowThreads(__tstate); | |
19999 | if (PyErr_Occurred()) SWIG_fail; | |
20000 | } | |
20001 | resultobj = PyInt_FromLong((long)result); | |
20002 | return resultobj; | |
20003 | fail: | |
20004 | return NULL; | |
20005 | } | |
20006 | ||
20007 | ||
20008 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20009 | PyObject *resultobj; | |
20010 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20011 | bool result; | |
20012 | PyObject * obj0 = 0 ; | |
20013 | char *kwnames[] = { | |
20014 | (char *) "self", NULL | |
20015 | }; | |
20016 | ||
20017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
20018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20019 | { | |
20020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20021 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
20022 | ||
20023 | wxPyEndAllowThreads(__tstate); | |
20024 | if (PyErr_Occurred()) SWIG_fail; | |
20025 | } | |
20026 | resultobj = PyInt_FromLong((long)result); | |
20027 | return resultobj; | |
20028 | fail: | |
20029 | return NULL; | |
20030 | } | |
20031 | ||
20032 | ||
20033 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20034 | PyObject *resultobj; | |
20035 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20036 | bool result; | |
20037 | PyObject * obj0 = 0 ; | |
20038 | char *kwnames[] = { | |
20039 | (char *) "self", NULL | |
20040 | }; | |
20041 | ||
20042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
20043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20044 | { | |
20045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20046 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
20047 | ||
20048 | wxPyEndAllowThreads(__tstate); | |
20049 | if (PyErr_Occurred()) SWIG_fail; | |
20050 | } | |
20051 | resultobj = PyInt_FromLong((long)result); | |
20052 | return resultobj; | |
20053 | fail: | |
20054 | return NULL; | |
20055 | } | |
20056 | ||
20057 | ||
20058 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20059 | PyObject *resultobj; | |
20060 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20061 | wxTimeSpan *arg2 = 0 ; | |
20062 | bool result; | |
20063 | PyObject * obj0 = 0 ; | |
20064 | PyObject * obj1 = 0 ; | |
20065 | char *kwnames[] = { | |
20066 | (char *) "self",(char *) "ts", NULL | |
20067 | }; | |
20068 | ||
20069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
20070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20071 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20072 | if (arg2 == NULL) { | |
20073 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20074 | } | |
20075 | { | |
20076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20077 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
20078 | ||
20079 | wxPyEndAllowThreads(__tstate); | |
20080 | if (PyErr_Occurred()) SWIG_fail; | |
20081 | } | |
20082 | resultobj = PyInt_FromLong((long)result); | |
20083 | return resultobj; | |
20084 | fail: | |
20085 | return NULL; | |
20086 | } | |
20087 | ||
20088 | ||
20089 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20090 | PyObject *resultobj; | |
20091 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20092 | wxTimeSpan *arg2 = 0 ; | |
20093 | bool result; | |
20094 | PyObject * obj0 = 0 ; | |
20095 | PyObject * obj1 = 0 ; | |
20096 | char *kwnames[] = { | |
20097 | (char *) "self",(char *) "ts", NULL | |
20098 | }; | |
20099 | ||
20100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
20101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20102 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20103 | if (arg2 == NULL) { | |
20104 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20105 | } | |
20106 | { | |
20107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20108 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
20109 | ||
20110 | wxPyEndAllowThreads(__tstate); | |
20111 | if (PyErr_Occurred()) SWIG_fail; | |
20112 | } | |
20113 | resultobj = PyInt_FromLong((long)result); | |
20114 | return resultobj; | |
20115 | fail: | |
20116 | return NULL; | |
20117 | } | |
20118 | ||
20119 | ||
20120 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20121 | PyObject *resultobj; | |
20122 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20123 | wxTimeSpan *arg2 = 0 ; | |
20124 | bool result; | |
20125 | PyObject * obj0 = 0 ; | |
20126 | PyObject * obj1 = 0 ; | |
20127 | char *kwnames[] = { | |
20128 | (char *) "self",(char *) "t", NULL | |
20129 | }; | |
20130 | ||
20131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
20132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20133 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20134 | if (arg2 == NULL) { | |
20135 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20136 | } | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
20140 | ||
20141 | wxPyEndAllowThreads(__tstate); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | resultobj = PyInt_FromLong((long)result); | |
20145 | return resultobj; | |
20146 | fail: | |
20147 | return NULL; | |
20148 | } | |
20149 | ||
20150 | ||
20151 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20152 | PyObject *resultobj; | |
20153 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20154 | int result; | |
20155 | PyObject * obj0 = 0 ; | |
20156 | char *kwnames[] = { | |
20157 | (char *) "self", NULL | |
20158 | }; | |
20159 | ||
20160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20162 | { | |
20163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20164 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
20165 | ||
20166 | wxPyEndAllowThreads(__tstate); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
20169 | resultobj = PyInt_FromLong((long)result); | |
20170 | return resultobj; | |
20171 | fail: | |
20172 | return NULL; | |
20173 | } | |
20174 | ||
20175 | ||
20176 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20177 | PyObject *resultobj; | |
20178 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20179 | int result; | |
20180 | PyObject * obj0 = 0 ; | |
20181 | char *kwnames[] = { | |
20182 | (char *) "self", NULL | |
20183 | }; | |
20184 | ||
20185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
20186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20187 | { | |
20188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20189 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
20190 | ||
20191 | wxPyEndAllowThreads(__tstate); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
20193 | } | |
20194 | resultobj = PyInt_FromLong((long)result); | |
20195 | return resultobj; | |
20196 | fail: | |
20197 | return NULL; | |
20198 | } | |
20199 | ||
20200 | ||
20201 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20202 | PyObject *resultobj; | |
20203 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20204 | int result; | |
20205 | PyObject * obj0 = 0 ; | |
20206 | char *kwnames[] = { | |
20207 | (char *) "self", NULL | |
20208 | }; | |
20209 | ||
20210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
20211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20212 | { | |
20213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20214 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
20215 | ||
20216 | wxPyEndAllowThreads(__tstate); | |
20217 | if (PyErr_Occurred()) SWIG_fail; | |
20218 | } | |
20219 | resultobj = PyInt_FromLong((long)result); | |
20220 | return resultobj; | |
20221 | fail: | |
20222 | return NULL; | |
20223 | } | |
20224 | ||
20225 | ||
20226 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20227 | PyObject *resultobj; | |
20228 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20229 | int result; | |
20230 | PyObject * obj0 = 0 ; | |
20231 | char *kwnames[] = { | |
20232 | (char *) "self", NULL | |
20233 | }; | |
20234 | ||
20235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
20236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20237 | { | |
20238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20239 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
20240 | ||
20241 | wxPyEndAllowThreads(__tstate); | |
20242 | if (PyErr_Occurred()) SWIG_fail; | |
20243 | } | |
20244 | resultobj = PyInt_FromLong((long)result); | |
20245 | return resultobj; | |
20246 | fail: | |
20247 | return NULL; | |
20248 | } | |
20249 | ||
20250 | ||
20251 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20252 | PyObject *resultobj; | |
20253 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20254 | wxLongLong result; | |
20255 | PyObject * obj0 = 0 ; | |
20256 | char *kwnames[] = { | |
20257 | (char *) "self", NULL | |
20258 | }; | |
20259 | ||
20260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
20261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20262 | { | |
20263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20264 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
20265 | ||
20266 | wxPyEndAllowThreads(__tstate); | |
20267 | if (PyErr_Occurred()) SWIG_fail; | |
20268 | } | |
20269 | { | |
20270 | PyObject *hi, *lo, *shifter, *shifted; | |
20271 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20272 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20273 | shifter = PyLong_FromLong(32); | |
20274 | shifted = PyNumber_Lshift(hi, shifter); | |
20275 | resultobj = PyNumber_Or(shifted, lo); | |
20276 | Py_DECREF(hi); | |
20277 | Py_DECREF(lo); | |
20278 | Py_DECREF(shifter); | |
20279 | Py_DECREF(shifted); | |
20280 | } | |
20281 | return resultobj; | |
20282 | fail: | |
20283 | return NULL; | |
20284 | } | |
20285 | ||
20286 | ||
20287 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20288 | PyObject *resultobj; | |
20289 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20290 | wxLongLong result; | |
20291 | PyObject * obj0 = 0 ; | |
20292 | char *kwnames[] = { | |
20293 | (char *) "self", NULL | |
20294 | }; | |
20295 | ||
20296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
20297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20298 | { | |
20299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20300 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
20301 | ||
20302 | wxPyEndAllowThreads(__tstate); | |
20303 | if (PyErr_Occurred()) SWIG_fail; | |
20304 | } | |
20305 | { | |
20306 | PyObject *hi, *lo, *shifter, *shifted; | |
20307 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20308 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20309 | shifter = PyLong_FromLong(32); | |
20310 | shifted = PyNumber_Lshift(hi, shifter); | |
20311 | resultobj = PyNumber_Or(shifted, lo); | |
20312 | Py_DECREF(hi); | |
20313 | Py_DECREF(lo); | |
20314 | Py_DECREF(shifter); | |
20315 | Py_DECREF(shifted); | |
20316 | } | |
20317 | return resultobj; | |
20318 | fail: | |
20319 | return NULL; | |
20320 | } | |
20321 | ||
20322 | ||
20323 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20324 | PyObject *resultobj; | |
20325 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20326 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
20327 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20328 | wxString result; | |
423f194a | 20329 | bool temp2 = False ; |
d14a1e28 RD |
20330 | PyObject * obj0 = 0 ; |
20331 | PyObject * obj1 = 0 ; | |
20332 | char *kwnames[] = { | |
20333 | (char *) "self",(char *) "format", NULL | |
20334 | }; | |
20335 | ||
20336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
20337 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20338 | if (obj1) { | |
20339 | { | |
20340 | arg2 = wxString_in_helper(obj1); | |
20341 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20342 | temp2 = True; |
d14a1e28 RD |
20343 | } |
20344 | } | |
20345 | { | |
20346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20347 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
20348 | ||
20349 | wxPyEndAllowThreads(__tstate); | |
20350 | if (PyErr_Occurred()) SWIG_fail; | |
20351 | } | |
20352 | { | |
20353 | #if wxUSE_UNICODE | |
20354 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20355 | #else | |
20356 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20357 | #endif | |
20358 | } | |
20359 | { | |
20360 | if (temp2) | |
20361 | delete arg2; | |
20362 | } | |
20363 | return resultobj; | |
20364 | fail: | |
20365 | { | |
20366 | if (temp2) | |
20367 | delete arg2; | |
20368 | } | |
20369 | return NULL; | |
20370 | } | |
20371 | ||
20372 | ||
20373 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
20374 | PyObject *obj; | |
20375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20376 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
20377 | Py_INCREF(obj); | |
20378 | return Py_BuildValue((char *)""); | |
20379 | } | |
20380 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20381 | PyObject *resultobj; | |
20382 | int arg1 = (int) 0 ; | |
20383 | int arg2 = (int) 0 ; | |
20384 | int arg3 = (int) 0 ; | |
20385 | int arg4 = (int) 0 ; | |
20386 | wxDateSpan *result; | |
20387 | char *kwnames[] = { | |
20388 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
20389 | }; | |
20390 | ||
20391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_DateSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
20392 | { | |
20393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20394 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
20395 | ||
20396 | wxPyEndAllowThreads(__tstate); | |
20397 | if (PyErr_Occurred()) SWIG_fail; | |
20398 | } | |
20399 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
20400 | return resultobj; | |
20401 | fail: | |
20402 | return NULL; | |
20403 | } | |
20404 | ||
20405 | ||
20406 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20407 | PyObject *resultobj; | |
20408 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20409 | PyObject * obj0 = 0 ; | |
20410 | char *kwnames[] = { | |
20411 | (char *) "self", NULL | |
20412 | }; | |
20413 | ||
20414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
20415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20416 | { | |
20417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20418 | delete arg1; | |
20419 | ||
20420 | wxPyEndAllowThreads(__tstate); | |
20421 | if (PyErr_Occurred()) SWIG_fail; | |
20422 | } | |
20423 | Py_INCREF(Py_None); resultobj = Py_None; | |
20424 | return resultobj; | |
20425 | fail: | |
20426 | return NULL; | |
20427 | } | |
20428 | ||
20429 | ||
20430 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20431 | PyObject *resultobj; | |
20432 | int arg1 ; | |
20433 | wxDateSpan result; | |
20434 | char *kwnames[] = { | |
20435 | (char *) "days", NULL | |
20436 | }; | |
20437 | ||
20438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Days",kwnames,&arg1)) goto fail; | |
20439 | { | |
20440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20441 | result = wxDateSpan::Days(arg1); | |
20442 | ||
20443 | wxPyEndAllowThreads(__tstate); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | } | |
20446 | { | |
20447 | wxDateSpan * resultptr; | |
20448 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20449 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20450 | } | |
20451 | return resultobj; | |
20452 | fail: | |
20453 | return NULL; | |
20454 | } | |
20455 | ||
20456 | ||
20457 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20458 | PyObject *resultobj; | |
20459 | wxDateSpan result; | |
20460 | char *kwnames[] = { | |
20461 | NULL | |
20462 | }; | |
20463 | ||
20464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
20465 | { | |
20466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20467 | result = wxDateSpan::Day(); | |
20468 | ||
20469 | wxPyEndAllowThreads(__tstate); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
20472 | { | |
20473 | wxDateSpan * resultptr; | |
20474 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20475 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20476 | } | |
20477 | return resultobj; | |
20478 | fail: | |
20479 | return NULL; | |
20480 | } | |
20481 | ||
20482 | ||
20483 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20484 | PyObject *resultobj; | |
20485 | int arg1 ; | |
20486 | wxDateSpan result; | |
20487 | char *kwnames[] = { | |
20488 | (char *) "weeks", NULL | |
20489 | }; | |
20490 | ||
20491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Weeks",kwnames,&arg1)) goto fail; | |
20492 | { | |
20493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20494 | result = wxDateSpan::Weeks(arg1); | |
20495 | ||
20496 | wxPyEndAllowThreads(__tstate); | |
20497 | if (PyErr_Occurred()) SWIG_fail; | |
20498 | } | |
20499 | { | |
20500 | wxDateSpan * resultptr; | |
20501 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20502 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20503 | } | |
20504 | return resultobj; | |
20505 | fail: | |
20506 | return NULL; | |
20507 | } | |
20508 | ||
20509 | ||
20510 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20511 | PyObject *resultobj; | |
20512 | wxDateSpan result; | |
20513 | char *kwnames[] = { | |
20514 | NULL | |
20515 | }; | |
20516 | ||
20517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
20518 | { | |
20519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20520 | result = wxDateSpan::Week(); | |
20521 | ||
20522 | wxPyEndAllowThreads(__tstate); | |
20523 | if (PyErr_Occurred()) SWIG_fail; | |
20524 | } | |
20525 | { | |
20526 | wxDateSpan * resultptr; | |
20527 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20528 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20529 | } | |
20530 | return resultobj; | |
20531 | fail: | |
20532 | return NULL; | |
20533 | } | |
20534 | ||
20535 | ||
20536 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20537 | PyObject *resultobj; | |
20538 | int arg1 ; | |
20539 | wxDateSpan result; | |
20540 | char *kwnames[] = { | |
20541 | (char *) "mon", NULL | |
20542 | }; | |
20543 | ||
20544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Months",kwnames,&arg1)) goto fail; | |
20545 | { | |
20546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20547 | result = wxDateSpan::Months(arg1); | |
20548 | ||
20549 | wxPyEndAllowThreads(__tstate); | |
20550 | if (PyErr_Occurred()) SWIG_fail; | |
20551 | } | |
20552 | { | |
20553 | wxDateSpan * resultptr; | |
20554 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20555 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20556 | } | |
20557 | return resultobj; | |
20558 | fail: | |
20559 | return NULL; | |
20560 | } | |
20561 | ||
20562 | ||
20563 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20564 | PyObject *resultobj; | |
20565 | wxDateSpan result; | |
20566 | char *kwnames[] = { | |
20567 | NULL | |
20568 | }; | |
20569 | ||
20570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
20571 | { | |
20572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20573 | result = wxDateSpan::Month(); | |
20574 | ||
20575 | wxPyEndAllowThreads(__tstate); | |
20576 | if (PyErr_Occurred()) SWIG_fail; | |
20577 | } | |
20578 | { | |
20579 | wxDateSpan * resultptr; | |
20580 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20581 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20582 | } | |
20583 | return resultobj; | |
20584 | fail: | |
20585 | return NULL; | |
20586 | } | |
20587 | ||
20588 | ||
20589 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20590 | PyObject *resultobj; | |
20591 | int arg1 ; | |
20592 | wxDateSpan result; | |
20593 | char *kwnames[] = { | |
20594 | (char *) "years", NULL | |
20595 | }; | |
20596 | ||
20597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Years",kwnames,&arg1)) goto fail; | |
20598 | { | |
20599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20600 | result = wxDateSpan::Years(arg1); | |
20601 | ||
20602 | wxPyEndAllowThreads(__tstate); | |
20603 | if (PyErr_Occurred()) SWIG_fail; | |
20604 | } | |
20605 | { | |
20606 | wxDateSpan * resultptr; | |
20607 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20608 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20609 | } | |
20610 | return resultobj; | |
20611 | fail: | |
20612 | return NULL; | |
20613 | } | |
20614 | ||
20615 | ||
20616 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20617 | PyObject *resultobj; | |
20618 | wxDateSpan result; | |
20619 | char *kwnames[] = { | |
20620 | NULL | |
20621 | }; | |
20622 | ||
20623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
20624 | { | |
20625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20626 | result = wxDateSpan::Year(); | |
20627 | ||
20628 | wxPyEndAllowThreads(__tstate); | |
20629 | if (PyErr_Occurred()) SWIG_fail; | |
20630 | } | |
20631 | { | |
20632 | wxDateSpan * resultptr; | |
20633 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20634 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20635 | } | |
20636 | return resultobj; | |
20637 | fail: | |
20638 | return NULL; | |
20639 | } | |
20640 | ||
20641 | ||
20642 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20643 | PyObject *resultobj; | |
20644 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20645 | int arg2 ; | |
20646 | wxDateSpan *result; | |
20647 | PyObject * obj0 = 0 ; | |
20648 | char *kwnames[] = { | |
20649 | (char *) "self",(char *) "n", NULL | |
20650 | }; | |
20651 | ||
20652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetYears",kwnames,&obj0,&arg2)) goto fail; | |
20653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20654 | { | |
20655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20656 | { | |
20657 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
20658 | result = (wxDateSpan *) &_result_ref; | |
20659 | } | |
20660 | ||
20661 | wxPyEndAllowThreads(__tstate); | |
20662 | if (PyErr_Occurred()) SWIG_fail; | |
20663 | } | |
20664 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20665 | return resultobj; | |
20666 | fail: | |
20667 | return NULL; | |
20668 | } | |
20669 | ||
20670 | ||
20671 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20672 | PyObject *resultobj; | |
20673 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20674 | int arg2 ; | |
20675 | wxDateSpan *result; | |
20676 | PyObject * obj0 = 0 ; | |
20677 | char *kwnames[] = { | |
20678 | (char *) "self",(char *) "n", NULL | |
20679 | }; | |
20680 | ||
20681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetMonths",kwnames,&obj0,&arg2)) goto fail; | |
20682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20683 | { | |
20684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20685 | { | |
20686 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
20687 | result = (wxDateSpan *) &_result_ref; | |
20688 | } | |
20689 | ||
20690 | wxPyEndAllowThreads(__tstate); | |
20691 | if (PyErr_Occurred()) SWIG_fail; | |
20692 | } | |
20693 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20694 | return resultobj; | |
20695 | fail: | |
20696 | return NULL; | |
20697 | } | |
20698 | ||
20699 | ||
20700 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20701 | PyObject *resultobj; | |
20702 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20703 | int arg2 ; | |
20704 | wxDateSpan *result; | |
20705 | PyObject * obj0 = 0 ; | |
20706 | char *kwnames[] = { | |
20707 | (char *) "self",(char *) "n", NULL | |
20708 | }; | |
20709 | ||
20710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetWeeks",kwnames,&obj0,&arg2)) goto fail; | |
20711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20712 | { | |
20713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20714 | { | |
20715 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
20716 | result = (wxDateSpan *) &_result_ref; | |
20717 | } | |
20718 | ||
20719 | wxPyEndAllowThreads(__tstate); | |
20720 | if (PyErr_Occurred()) SWIG_fail; | |
20721 | } | |
20722 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20723 | return resultobj; | |
20724 | fail: | |
20725 | return NULL; | |
20726 | } | |
20727 | ||
20728 | ||
20729 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20730 | PyObject *resultobj; | |
20731 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20732 | int arg2 ; | |
20733 | wxDateSpan *result; | |
20734 | PyObject * obj0 = 0 ; | |
20735 | char *kwnames[] = { | |
20736 | (char *) "self",(char *) "n", NULL | |
20737 | }; | |
20738 | ||
20739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetDays",kwnames,&obj0,&arg2)) goto fail; | |
20740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20741 | { | |
20742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20743 | { | |
20744 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
20745 | result = (wxDateSpan *) &_result_ref; | |
20746 | } | |
20747 | ||
20748 | wxPyEndAllowThreads(__tstate); | |
20749 | if (PyErr_Occurred()) SWIG_fail; | |
20750 | } | |
20751 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20752 | return resultobj; | |
20753 | fail: | |
20754 | return NULL; | |
20755 | } | |
20756 | ||
20757 | ||
20758 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20759 | PyObject *resultobj; | |
20760 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20761 | int result; | |
20762 | PyObject * obj0 = 0 ; | |
20763 | char *kwnames[] = { | |
20764 | (char *) "self", NULL | |
20765 | }; | |
20766 | ||
20767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
20768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20769 | { | |
20770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20771 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
20772 | ||
20773 | wxPyEndAllowThreads(__tstate); | |
20774 | if (PyErr_Occurred()) SWIG_fail; | |
20775 | } | |
20776 | resultobj = PyInt_FromLong((long)result); | |
20777 | return resultobj; | |
20778 | fail: | |
20779 | return NULL; | |
20780 | } | |
20781 | ||
20782 | ||
20783 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20784 | PyObject *resultobj; | |
20785 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20786 | int result; | |
20787 | PyObject * obj0 = 0 ; | |
20788 | char *kwnames[] = { | |
20789 | (char *) "self", NULL | |
20790 | }; | |
20791 | ||
20792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
20793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20794 | { | |
20795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20796 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
20797 | ||
20798 | wxPyEndAllowThreads(__tstate); | |
20799 | if (PyErr_Occurred()) SWIG_fail; | |
20800 | } | |
20801 | resultobj = PyInt_FromLong((long)result); | |
20802 | return resultobj; | |
20803 | fail: | |
20804 | return NULL; | |
20805 | } | |
20806 | ||
20807 | ||
20808 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20809 | PyObject *resultobj; | |
20810 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20811 | int result; | |
20812 | PyObject * obj0 = 0 ; | |
20813 | char *kwnames[] = { | |
20814 | (char *) "self", NULL | |
20815 | }; | |
20816 | ||
20817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20819 | { | |
20820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20821 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
20822 | ||
20823 | wxPyEndAllowThreads(__tstate); | |
20824 | if (PyErr_Occurred()) SWIG_fail; | |
20825 | } | |
20826 | resultobj = PyInt_FromLong((long)result); | |
20827 | return resultobj; | |
20828 | fail: | |
20829 | return NULL; | |
20830 | } | |
20831 | ||
20832 | ||
20833 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20834 | PyObject *resultobj; | |
20835 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20836 | int result; | |
20837 | PyObject * obj0 = 0 ; | |
20838 | char *kwnames[] = { | |
20839 | (char *) "self", NULL | |
20840 | }; | |
20841 | ||
20842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
20843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20844 | { | |
20845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20846 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
20847 | ||
20848 | wxPyEndAllowThreads(__tstate); | |
20849 | if (PyErr_Occurred()) SWIG_fail; | |
20850 | } | |
20851 | resultobj = PyInt_FromLong((long)result); | |
20852 | return resultobj; | |
20853 | fail: | |
20854 | return NULL; | |
20855 | } | |
20856 | ||
20857 | ||
20858 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20859 | PyObject *resultobj; | |
20860 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20861 | int result; | |
20862 | PyObject * obj0 = 0 ; | |
20863 | char *kwnames[] = { | |
20864 | (char *) "self", NULL | |
20865 | }; | |
20866 | ||
20867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
20868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20869 | { | |
20870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20871 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
20872 | ||
20873 | wxPyEndAllowThreads(__tstate); | |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
20875 | } | |
20876 | resultobj = PyInt_FromLong((long)result); | |
20877 | return resultobj; | |
20878 | fail: | |
20879 | return NULL; | |
20880 | } | |
20881 | ||
20882 | ||
20883 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20884 | PyObject *resultobj; | |
20885 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20886 | wxDateSpan *arg2 = 0 ; | |
20887 | wxDateSpan *result; | |
20888 | PyObject * obj0 = 0 ; | |
20889 | PyObject * obj1 = 0 ; | |
20890 | char *kwnames[] = { | |
20891 | (char *) "self",(char *) "other", NULL | |
20892 | }; | |
20893 | ||
20894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
20895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20896 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20897 | if (arg2 == NULL) { | |
20898 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20899 | } | |
20900 | { | |
20901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20902 | { | |
20903 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20904 | result = (wxDateSpan *) &_result_ref; | |
20905 | } | |
20906 | ||
20907 | wxPyEndAllowThreads(__tstate); | |
20908 | if (PyErr_Occurred()) SWIG_fail; | |
20909 | } | |
20910 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20911 | return resultobj; | |
20912 | fail: | |
20913 | return NULL; | |
20914 | } | |
20915 | ||
20916 | ||
20917 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20918 | PyObject *resultobj; | |
20919 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20920 | wxDateSpan *arg2 = 0 ; | |
20921 | wxDateSpan *result; | |
20922 | PyObject * obj0 = 0 ; | |
20923 | PyObject * obj1 = 0 ; | |
20924 | char *kwnames[] = { | |
20925 | (char *) "self",(char *) "other", NULL | |
20926 | }; | |
20927 | ||
20928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20931 | if (arg2 == NULL) { | |
20932 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20933 | } | |
20934 | { | |
20935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20936 | { | |
20937 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20938 | result = (wxDateSpan *) &_result_ref; | |
20939 | } | |
20940 | ||
20941 | wxPyEndAllowThreads(__tstate); | |
20942 | if (PyErr_Occurred()) SWIG_fail; | |
20943 | } | |
20944 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20945 | return resultobj; | |
20946 | fail: | |
20947 | return NULL; | |
20948 | } | |
20949 | ||
20950 | ||
20951 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20952 | PyObject *resultobj; | |
20953 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20954 | wxDateSpan *result; | |
20955 | PyObject * obj0 = 0 ; | |
20956 | char *kwnames[] = { | |
20957 | (char *) "self", NULL | |
20958 | }; | |
20959 | ||
20960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) 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)->Neg(); | |
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_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20980 | PyObject *resultobj; | |
20981 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20982 | int arg2 ; | |
20983 | wxDateSpan *result; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | char *kwnames[] = { | |
20986 | (char *) "self",(char *) "factor", NULL | |
20987 | }; | |
20988 | ||
20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
20990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20991 | { | |
20992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20993 | { | |
20994 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
20995 | result = (wxDateSpan *) &_result_ref; | |
20996 | } | |
20997 | ||
20998 | wxPyEndAllowThreads(__tstate); | |
20999 | if (PyErr_Occurred()) SWIG_fail; | |
21000 | } | |
21001 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21002 | return resultobj; | |
21003 | fail: | |
21004 | return NULL; | |
21005 | } | |
21006 | ||
21007 | ||
21008 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21009 | PyObject *resultobj; | |
21010 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21011 | wxDateSpan *arg2 = 0 ; | |
21012 | wxDateSpan *result; | |
21013 | PyObject * obj0 = 0 ; | |
21014 | PyObject * obj1 = 0 ; | |
21015 | char *kwnames[] = { | |
21016 | (char *) "self",(char *) "other", NULL | |
21017 | }; | |
21018 | ||
21019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21021 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21022 | if (arg2 == NULL) { | |
21023 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21024 | } | |
21025 | { | |
21026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21027 | { | |
21028 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
21029 | result = (wxDateSpan *) &_result_ref; | |
21030 | } | |
21031 | ||
21032 | wxPyEndAllowThreads(__tstate); | |
21033 | if (PyErr_Occurred()) SWIG_fail; | |
21034 | } | |
21035 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21036 | return resultobj; | |
21037 | fail: | |
21038 | return NULL; | |
21039 | } | |
21040 | ||
21041 | ||
21042 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21043 | PyObject *resultobj; | |
21044 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21045 | wxDateSpan *arg2 = 0 ; | |
21046 | wxDateSpan *result; | |
21047 | PyObject * obj0 = 0 ; | |
21048 | PyObject * obj1 = 0 ; | |
21049 | char *kwnames[] = { | |
21050 | (char *) "self",(char *) "other", NULL | |
21051 | }; | |
21052 | ||
21053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21055 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21056 | if (arg2 == NULL) { | |
21057 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21058 | } | |
21059 | { | |
21060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21061 | { | |
21062 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
21063 | result = (wxDateSpan *) &_result_ref; | |
21064 | } | |
21065 | ||
21066 | wxPyEndAllowThreads(__tstate); | |
21067 | if (PyErr_Occurred()) SWIG_fail; | |
21068 | } | |
21069 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21070 | return resultobj; | |
21071 | fail: | |
21072 | return NULL; | |
21073 | } | |
21074 | ||
21075 | ||
21076 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21077 | PyObject *resultobj; | |
21078 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21079 | wxDateSpan *result; | |
21080 | PyObject * obj0 = 0 ; | |
21081 | char *kwnames[] = { | |
21082 | (char *) "self", NULL | |
21083 | }; | |
21084 | ||
21085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
21086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21087 | { | |
21088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21089 | { | |
21090 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
21091 | result = (wxDateSpan *) &_result_ref; | |
21092 | } | |
21093 | ||
21094 | wxPyEndAllowThreads(__tstate); | |
21095 | if (PyErr_Occurred()) SWIG_fail; | |
21096 | } | |
21097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21098 | return resultobj; | |
21099 | fail: | |
21100 | return NULL; | |
21101 | } | |
21102 | ||
21103 | ||
21104 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21105 | PyObject *resultobj; | |
21106 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21107 | int arg2 ; | |
21108 | wxDateSpan *result; | |
21109 | PyObject * obj0 = 0 ; | |
21110 | char *kwnames[] = { | |
21111 | (char *) "self",(char *) "factor", NULL | |
21112 | }; | |
21113 | ||
21114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
21115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21116 | { | |
21117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21118 | { | |
21119 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
21120 | result = (wxDateSpan *) &_result_ref; | |
21121 | } | |
21122 | ||
21123 | wxPyEndAllowThreads(__tstate); | |
21124 | if (PyErr_Occurred()) SWIG_fail; | |
21125 | } | |
21126 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21127 | return resultobj; | |
21128 | fail: | |
21129 | return NULL; | |
21130 | } | |
21131 | ||
21132 | ||
21133 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21134 | PyObject *resultobj; | |
21135 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21136 | wxDateSpan *arg2 = 0 ; | |
21137 | wxDateSpan result; | |
21138 | PyObject * obj0 = 0 ; | |
21139 | PyObject * obj1 = 0 ; | |
21140 | char *kwnames[] = { | |
21141 | (char *) "self",(char *) "other", NULL | |
21142 | }; | |
21143 | ||
21144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21146 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21147 | if (arg2 == NULL) { | |
21148 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21149 | } | |
21150 | { | |
21151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21152 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
21153 | ||
21154 | wxPyEndAllowThreads(__tstate); | |
21155 | if (PyErr_Occurred()) SWIG_fail; | |
21156 | } | |
21157 | { | |
21158 | wxDateSpan * resultptr; | |
21159 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21160 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21161 | } | |
21162 | return resultobj; | |
21163 | fail: | |
21164 | return NULL; | |
21165 | } | |
21166 | ||
21167 | ||
21168 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21169 | PyObject *resultobj; | |
21170 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21171 | wxDateSpan *arg2 = 0 ; | |
21172 | wxDateSpan result; | |
21173 | PyObject * obj0 = 0 ; | |
21174 | PyObject * obj1 = 0 ; | |
21175 | char *kwnames[] = { | |
21176 | (char *) "self",(char *) "other", NULL | |
21177 | }; | |
21178 | ||
21179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21181 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21182 | if (arg2 == NULL) { | |
21183 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21184 | } | |
21185 | { | |
21186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21187 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
21188 | ||
21189 | wxPyEndAllowThreads(__tstate); | |
21190 | if (PyErr_Occurred()) SWIG_fail; | |
21191 | } | |
21192 | { | |
21193 | wxDateSpan * resultptr; | |
21194 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21195 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21196 | } | |
21197 | return resultobj; | |
21198 | fail: | |
21199 | return NULL; | |
21200 | } | |
21201 | ||
21202 | ||
21203 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21204 | PyObject *resultobj; | |
21205 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21206 | int arg2 ; | |
21207 | wxDateSpan result; | |
21208 | PyObject * obj0 = 0 ; | |
21209 | char *kwnames[] = { | |
21210 | (char *) "self",(char *) "n", NULL | |
21211 | }; | |
21212 | ||
21213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
21214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21215 | { | |
21216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21217 | result = wxDateSpan___mul__(arg1,arg2); | |
21218 | ||
21219 | wxPyEndAllowThreads(__tstate); | |
21220 | if (PyErr_Occurred()) SWIG_fail; | |
21221 | } | |
21222 | { | |
21223 | wxDateSpan * resultptr; | |
21224 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21225 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21226 | } | |
21227 | return resultobj; | |
21228 | fail: | |
21229 | return NULL; | |
21230 | } | |
21231 | ||
21232 | ||
21233 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21234 | PyObject *resultobj; | |
21235 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21236 | int arg2 ; | |
21237 | wxDateSpan result; | |
21238 | PyObject * obj0 = 0 ; | |
21239 | char *kwnames[] = { | |
21240 | (char *) "self",(char *) "n", NULL | |
21241 | }; | |
21242 | ||
21243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
21244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21245 | { | |
21246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21247 | result = wxDateSpan___rmul__(arg1,arg2); | |
21248 | ||
21249 | wxPyEndAllowThreads(__tstate); | |
21250 | if (PyErr_Occurred()) SWIG_fail; | |
21251 | } | |
21252 | { | |
21253 | wxDateSpan * resultptr; | |
21254 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21255 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21256 | } | |
21257 | return resultobj; | |
21258 | fail: | |
21259 | return NULL; | |
21260 | } | |
21261 | ||
21262 | ||
21263 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21264 | PyObject *resultobj; | |
21265 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21266 | wxDateSpan *arg2 = 0 ; | |
21267 | bool result; | |
21268 | PyObject * obj0 = 0 ; | |
21269 | PyObject * obj1 = 0 ; | |
21270 | char *kwnames[] = { | |
21271 | (char *) "self",(char *) "other", NULL | |
21272 | }; | |
21273 | ||
21274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21277 | if (arg2 == NULL) { | |
21278 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21279 | } | |
21280 | { | |
21281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21282 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
21283 | ||
21284 | wxPyEndAllowThreads(__tstate); | |
21285 | if (PyErr_Occurred()) SWIG_fail; | |
21286 | } | |
21287 | resultobj = PyInt_FromLong((long)result); | |
21288 | return resultobj; | |
21289 | fail: | |
21290 | return NULL; | |
21291 | } | |
21292 | ||
21293 | ||
21294 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21295 | PyObject *resultobj; | |
21296 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21297 | wxDateSpan *arg2 = 0 ; | |
21298 | bool result; | |
21299 | PyObject * obj0 = 0 ; | |
21300 | PyObject * obj1 = 0 ; | |
21301 | char *kwnames[] = { | |
21302 | (char *) "self",(char *) "other", NULL | |
21303 | }; | |
21304 | ||
21305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21307 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21308 | if (arg2 == NULL) { | |
21309 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21310 | } | |
21311 | { | |
21312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21313 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
21314 | ||
21315 | wxPyEndAllowThreads(__tstate); | |
21316 | if (PyErr_Occurred()) SWIG_fail; | |
21317 | } | |
21318 | resultobj = PyInt_FromLong((long)result); | |
21319 | return resultobj; | |
21320 | fail: | |
21321 | return NULL; | |
21322 | } | |
21323 | ||
21324 | ||
21325 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
21326 | PyObject *obj; | |
21327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21328 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
21329 | Py_INCREF(obj); | |
21330 | return Py_BuildValue((char *)""); | |
21331 | } | |
21332 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21333 | PyObject *resultobj; | |
21334 | long result; | |
21335 | char *kwnames[] = { | |
21336 | NULL | |
21337 | }; | |
21338 | ||
21339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
21340 | { | |
21341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21342 | result = (long)wxGetLocalTime(); | |
21343 | ||
21344 | wxPyEndAllowThreads(__tstate); | |
21345 | if (PyErr_Occurred()) SWIG_fail; | |
21346 | } | |
21347 | resultobj = PyInt_FromLong((long)result); | |
21348 | return resultobj; | |
21349 | fail: | |
21350 | return NULL; | |
21351 | } | |
21352 | ||
21353 | ||
21354 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21355 | PyObject *resultobj; | |
21356 | long result; | |
21357 | char *kwnames[] = { | |
21358 | NULL | |
21359 | }; | |
21360 | ||
21361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
21362 | { | |
21363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21364 | result = (long)wxGetUTCTime(); | |
21365 | ||
21366 | wxPyEndAllowThreads(__tstate); | |
21367 | if (PyErr_Occurred()) SWIG_fail; | |
21368 | } | |
21369 | resultobj = PyInt_FromLong((long)result); | |
21370 | return resultobj; | |
21371 | fail: | |
21372 | return NULL; | |
21373 | } | |
21374 | ||
21375 | ||
21376 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21377 | PyObject *resultobj; | |
21378 | long result; | |
21379 | char *kwnames[] = { | |
21380 | NULL | |
21381 | }; | |
21382 | ||
21383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
21384 | { | |
21385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21386 | result = (long)wxGetCurrentTime(); | |
21387 | ||
21388 | wxPyEndAllowThreads(__tstate); | |
21389 | if (PyErr_Occurred()) SWIG_fail; | |
21390 | } | |
21391 | resultobj = PyInt_FromLong((long)result); | |
21392 | return resultobj; | |
21393 | fail: | |
21394 | return NULL; | |
21395 | } | |
21396 | ||
21397 | ||
21398 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21399 | PyObject *resultobj; | |
21400 | wxLongLong result; | |
21401 | char *kwnames[] = { | |
21402 | NULL | |
21403 | }; | |
21404 | ||
21405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
21406 | { | |
21407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21408 | result = wxGetLocalTimeMillis(); | |
21409 | ||
21410 | wxPyEndAllowThreads(__tstate); | |
21411 | if (PyErr_Occurred()) SWIG_fail; | |
21412 | } | |
21413 | { | |
21414 | PyObject *hi, *lo, *shifter, *shifted; | |
21415 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
21416 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
21417 | shifter = PyLong_FromLong(32); | |
21418 | shifted = PyNumber_Lshift(hi, shifter); | |
21419 | resultobj = PyNumber_Or(shifted, lo); | |
21420 | Py_DECREF(hi); | |
21421 | Py_DECREF(lo); | |
21422 | Py_DECREF(shifter); | |
21423 | Py_DECREF(shifted); | |
21424 | } | |
21425 | return resultobj; | |
21426 | fail: | |
21427 | return NULL; | |
21428 | } | |
21429 | ||
21430 | ||
21431 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21432 | PyObject *resultobj; | |
21433 | int arg1 ; | |
21434 | wxDataFormat *result; | |
21435 | char *kwnames[] = { | |
21436 | (char *) "type", NULL | |
21437 | }; | |
21438 | ||
21439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_DataFormat",kwnames,&arg1)) goto fail; | |
21440 | { | |
21441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21442 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
21443 | ||
21444 | wxPyEndAllowThreads(__tstate); | |
21445 | if (PyErr_Occurred()) SWIG_fail; | |
21446 | } | |
21447 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21448 | return resultobj; | |
21449 | fail: | |
21450 | return NULL; | |
21451 | } | |
21452 | ||
21453 | ||
21454 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21455 | PyObject *resultobj; | |
21456 | wxString *arg1 = 0 ; | |
21457 | wxDataFormat *result; | |
423f194a | 21458 | bool temp1 = False ; |
d14a1e28 RD |
21459 | PyObject * obj0 = 0 ; |
21460 | char *kwnames[] = { | |
21461 | (char *) "format", NULL | |
21462 | }; | |
21463 | ||
21464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
21465 | { | |
21466 | arg1 = wxString_in_helper(obj0); | |
21467 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 21468 | temp1 = True; |
d14a1e28 RD |
21469 | } |
21470 | { | |
21471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21472 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
21473 | ||
21474 | wxPyEndAllowThreads(__tstate); | |
21475 | if (PyErr_Occurred()) SWIG_fail; | |
21476 | } | |
21477 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21478 | { | |
21479 | if (temp1) | |
21480 | delete arg1; | |
21481 | } | |
21482 | return resultobj; | |
21483 | fail: | |
21484 | { | |
21485 | if (temp1) | |
21486 | delete arg1; | |
21487 | } | |
21488 | return NULL; | |
21489 | } | |
21490 | ||
21491 | ||
21492 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21493 | PyObject *resultobj; | |
21494 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21495 | PyObject * obj0 = 0 ; | |
21496 | char *kwnames[] = { | |
21497 | (char *) "self", NULL | |
21498 | }; | |
21499 | ||
21500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
21501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21502 | { | |
21503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21504 | delete arg1; | |
21505 | ||
21506 | wxPyEndAllowThreads(__tstate); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
21508 | } | |
21509 | Py_INCREF(Py_None); resultobj = Py_None; | |
21510 | return resultobj; | |
21511 | fail: | |
21512 | return NULL; | |
21513 | } | |
21514 | ||
21515 | ||
21516 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
21517 | PyObject *resultobj; | |
21518 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21519 | int arg2 ; | |
21520 | bool result; | |
21521 | PyObject * obj0 = 0 ; | |
21522 | ||
21523 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___eq__",&obj0,&arg2)) goto fail; | |
21524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21525 | { | |
21526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21527 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
21528 | ||
21529 | wxPyEndAllowThreads(__tstate); | |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
21531 | } | |
21532 | resultobj = PyInt_FromLong((long)result); | |
21533 | return resultobj; | |
21534 | fail: | |
21535 | return NULL; | |
21536 | } | |
21537 | ||
21538 | ||
21539 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
21540 | PyObject *resultobj; | |
21541 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21542 | int arg2 ; | |
21543 | bool result; | |
21544 | PyObject * obj0 = 0 ; | |
21545 | ||
21546 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___ne__",&obj0,&arg2)) goto fail; | |
21547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21548 | { | |
21549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21550 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
21551 | ||
21552 | wxPyEndAllowThreads(__tstate); | |
21553 | if (PyErr_Occurred()) SWIG_fail; | |
21554 | } | |
21555 | resultobj = PyInt_FromLong((long)result); | |
21556 | return resultobj; | |
21557 | fail: | |
21558 | return NULL; | |
21559 | } | |
21560 | ||
21561 | ||
21562 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
21563 | PyObject *resultobj; | |
21564 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21565 | wxDataFormat *arg2 = 0 ; | |
21566 | bool result; | |
21567 | PyObject * obj0 = 0 ; | |
21568 | PyObject * obj1 = 0 ; | |
21569 | ||
21570 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
21571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21572 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21573 | if (arg2 == NULL) { | |
21574 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21575 | } | |
21576 | { | |
21577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21578 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
21579 | ||
21580 | wxPyEndAllowThreads(__tstate); | |
21581 | if (PyErr_Occurred()) SWIG_fail; | |
21582 | } | |
21583 | resultobj = PyInt_FromLong((long)result); | |
21584 | return resultobj; | |
21585 | fail: | |
21586 | return NULL; | |
21587 | } | |
21588 | ||
21589 | ||
21590 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
21591 | int argc; | |
21592 | PyObject *argv[3]; | |
21593 | int ii; | |
21594 | ||
21595 | argc = PyObject_Length(args); | |
21596 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21597 | argv[ii] = PyTuple_GetItem(args,ii); | |
21598 | } | |
21599 | if (argc == 2) { | |
21600 | int _v; | |
21601 | { | |
21602 | void *ptr; | |
21603 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21604 | _v = 0; | |
21605 | PyErr_Clear(); | |
21606 | } else { | |
21607 | _v = 1; | |
21608 | } | |
21609 | } | |
21610 | if (_v) { | |
21611 | { | |
21612 | void *ptr; | |
21613 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21614 | _v = 0; | |
21615 | PyErr_Clear(); | |
21616 | } else { | |
21617 | _v = 1; | |
21618 | } | |
21619 | } | |
21620 | if (_v) { | |
21621 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
21622 | } | |
21623 | } | |
21624 | } | |
21625 | if (argc == 2) { | |
21626 | int _v; | |
21627 | { | |
21628 | void *ptr; | |
21629 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21630 | _v = 0; | |
21631 | PyErr_Clear(); | |
21632 | } else { | |
21633 | _v = 1; | |
21634 | } | |
21635 | } | |
21636 | if (_v) { | |
21637 | { | |
21638 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21639 | } | |
21640 | if (_v) { | |
21641 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
21642 | } | |
21643 | } | |
21644 | } | |
21645 | ||
21646 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
21647 | return NULL; | |
21648 | } | |
21649 | ||
21650 | ||
21651 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
21652 | PyObject *resultobj; | |
21653 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21654 | wxDataFormat *arg2 = 0 ; | |
21655 | bool result; | |
21656 | PyObject * obj0 = 0 ; | |
21657 | PyObject * obj1 = 0 ; | |
21658 | ||
21659 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
21660 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21661 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21662 | if (arg2 == NULL) { | |
21663 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21664 | } | |
21665 | { | |
21666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21667 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
21668 | ||
21669 | wxPyEndAllowThreads(__tstate); | |
21670 | if (PyErr_Occurred()) SWIG_fail; | |
21671 | } | |
21672 | resultobj = PyInt_FromLong((long)result); | |
21673 | return resultobj; | |
21674 | fail: | |
21675 | return NULL; | |
21676 | } | |
21677 | ||
21678 | ||
21679 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
21680 | int argc; | |
21681 | PyObject *argv[3]; | |
21682 | int ii; | |
21683 | ||
21684 | argc = PyObject_Length(args); | |
21685 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21686 | argv[ii] = PyTuple_GetItem(args,ii); | |
21687 | } | |
21688 | if (argc == 2) { | |
21689 | int _v; | |
21690 | { | |
21691 | void *ptr; | |
21692 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21693 | _v = 0; | |
21694 | PyErr_Clear(); | |
21695 | } else { | |
21696 | _v = 1; | |
21697 | } | |
21698 | } | |
21699 | if (_v) { | |
21700 | { | |
21701 | void *ptr; | |
21702 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21703 | _v = 0; | |
21704 | PyErr_Clear(); | |
21705 | } else { | |
21706 | _v = 1; | |
21707 | } | |
21708 | } | |
21709 | if (_v) { | |
21710 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
21711 | } | |
21712 | } | |
21713 | } | |
21714 | if (argc == 2) { | |
21715 | int _v; | |
21716 | { | |
21717 | void *ptr; | |
21718 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21719 | _v = 0; | |
21720 | PyErr_Clear(); | |
21721 | } else { | |
21722 | _v = 1; | |
21723 | } | |
21724 | } | |
21725 | if (_v) { | |
21726 | { | |
21727 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21728 | } | |
21729 | if (_v) { | |
21730 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
21731 | } | |
21732 | } | |
21733 | } | |
21734 | ||
21735 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
21736 | return NULL; | |
21737 | } | |
21738 | ||
21739 | ||
21740 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21741 | PyObject *resultobj; | |
21742 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21743 | int arg2 ; | |
21744 | PyObject * obj0 = 0 ; | |
21745 | char *kwnames[] = { | |
21746 | (char *) "self",(char *) "format", NULL | |
21747 | }; | |
21748 | ||
21749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DataFormat_SetType",kwnames,&obj0,&arg2)) goto fail; | |
21750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21751 | { | |
21752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21753 | (arg1)->SetType((wxDataFormatId )arg2); | |
21754 | ||
21755 | wxPyEndAllowThreads(__tstate); | |
21756 | if (PyErr_Occurred()) SWIG_fail; | |
21757 | } | |
21758 | Py_INCREF(Py_None); resultobj = Py_None; | |
21759 | return resultobj; | |
21760 | fail: | |
21761 | return NULL; | |
21762 | } | |
21763 | ||
21764 | ||
21765 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21766 | PyObject *resultobj; | |
21767 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21768 | int result; | |
21769 | PyObject * obj0 = 0 ; | |
21770 | char *kwnames[] = { | |
21771 | (char *) "self", NULL | |
21772 | }; | |
21773 | ||
21774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
21775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21776 | { | |
21777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21778 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
21779 | ||
21780 | wxPyEndAllowThreads(__tstate); | |
21781 | if (PyErr_Occurred()) SWIG_fail; | |
21782 | } | |
21783 | resultobj = PyInt_FromLong((long)result); | |
21784 | return resultobj; | |
21785 | fail: | |
21786 | return NULL; | |
21787 | } | |
21788 | ||
21789 | ||
21790 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21791 | PyObject *resultobj; | |
21792 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21793 | wxString result; | |
21794 | PyObject * obj0 = 0 ; | |
21795 | char *kwnames[] = { | |
21796 | (char *) "self", NULL | |
21797 | }; | |
21798 | ||
21799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
21800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21801 | { | |
21802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21803 | result = ((wxDataFormat const *)arg1)->GetId(); | |
21804 | ||
21805 | wxPyEndAllowThreads(__tstate); | |
21806 | if (PyErr_Occurred()) SWIG_fail; | |
21807 | } | |
21808 | { | |
21809 | #if wxUSE_UNICODE | |
21810 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21811 | #else | |
21812 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21813 | #endif | |
21814 | } | |
21815 | return resultobj; | |
21816 | fail: | |
21817 | return NULL; | |
21818 | } | |
21819 | ||
21820 | ||
21821 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21822 | PyObject *resultobj; | |
21823 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21824 | wxString *arg2 = 0 ; | |
423f194a | 21825 | bool temp2 = False ; |
d14a1e28 RD |
21826 | PyObject * obj0 = 0 ; |
21827 | PyObject * obj1 = 0 ; | |
21828 | char *kwnames[] = { | |
21829 | (char *) "self",(char *) "format", NULL | |
21830 | }; | |
21831 | ||
21832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
21833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21834 | { | |
21835 | arg2 = wxString_in_helper(obj1); | |
21836 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21837 | temp2 = True; |
d14a1e28 RD |
21838 | } |
21839 | { | |
21840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21841 | (arg1)->SetId((wxString const &)*arg2); | |
21842 | ||
21843 | wxPyEndAllowThreads(__tstate); | |
21844 | if (PyErr_Occurred()) SWIG_fail; | |
21845 | } | |
21846 | Py_INCREF(Py_None); resultobj = Py_None; | |
21847 | { | |
21848 | if (temp2) | |
21849 | delete arg2; | |
21850 | } | |
21851 | return resultobj; | |
21852 | fail: | |
21853 | { | |
21854 | if (temp2) | |
21855 | delete arg2; | |
21856 | } | |
21857 | return NULL; | |
21858 | } | |
21859 | ||
21860 | ||
21861 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
21862 | PyObject *obj; | |
21863 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21864 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
21865 | Py_INCREF(obj); | |
21866 | return Py_BuildValue((char *)""); | |
21867 | } | |
21868 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
21869 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
21870 | return 1; | |
21871 | } | |
21872 | ||
21873 | ||
21874 | static PyObject *_wrap_FormatInvalid_get() { | |
21875 | PyObject *pyobj; | |
21876 | ||
21877 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
21878 | return pyobj; | |
21879 | } | |
21880 | ||
21881 | ||
21882 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21883 | PyObject *resultobj; | |
21884 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21885 | PyObject * obj0 = 0 ; | |
21886 | char *kwnames[] = { | |
21887 | (char *) "self", NULL | |
21888 | }; | |
21889 | ||
21890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
21891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21892 | { | |
21893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21894 | delete arg1; | |
21895 | ||
21896 | wxPyEndAllowThreads(__tstate); | |
21897 | if (PyErr_Occurred()) SWIG_fail; | |
21898 | } | |
21899 | Py_INCREF(Py_None); resultobj = Py_None; | |
21900 | return resultobj; | |
21901 | fail: | |
21902 | return NULL; | |
21903 | } | |
21904 | ||
21905 | ||
21906 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21907 | PyObject *resultobj; | |
21908 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21909 | int arg2 = (int) wxDataObject::Get ; | |
21910 | SwigValueWrapper< wxDataFormat > result; | |
21911 | PyObject * obj0 = 0 ; | |
21912 | char *kwnames[] = { | |
21913 | (char *) "self",(char *) "dir", NULL | |
21914 | }; | |
21915 | ||
21916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetPreferredFormat",kwnames,&obj0,&arg2)) goto fail; | |
21917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21918 | { | |
21919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21920 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
21921 | ||
21922 | wxPyEndAllowThreads(__tstate); | |
21923 | if (PyErr_Occurred()) SWIG_fail; | |
21924 | } | |
21925 | { | |
21926 | wxDataFormat * resultptr; | |
21927 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
21928 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
21929 | } | |
21930 | return resultobj; | |
21931 | fail: | |
21932 | return NULL; | |
21933 | } | |
21934 | ||
21935 | ||
21936 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21937 | PyObject *resultobj; | |
21938 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21939 | int arg2 = (int) wxDataObject::Get ; | |
21940 | size_t result; | |
21941 | PyObject * obj0 = 0 ; | |
21942 | char *kwnames[] = { | |
21943 | (char *) "self",(char *) "dir", NULL | |
21944 | }; | |
21945 | ||
21946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetFormatCount",kwnames,&obj0,&arg2)) goto fail; | |
21947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21948 | { | |
21949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21950 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
21951 | ||
21952 | wxPyEndAllowThreads(__tstate); | |
21953 | if (PyErr_Occurred()) SWIG_fail; | |
21954 | } | |
21955 | resultobj = PyInt_FromLong((long)result); | |
21956 | return resultobj; | |
21957 | fail: | |
21958 | return NULL; | |
21959 | } | |
21960 | ||
21961 | ||
21962 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21963 | PyObject *resultobj; | |
21964 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21965 | wxDataFormat *arg2 = 0 ; | |
21966 | int arg3 = (int) wxDataObject::Get ; | |
21967 | bool result; | |
21968 | PyObject * obj0 = 0 ; | |
21969 | PyObject * obj1 = 0 ; | |
21970 | char *kwnames[] = { | |
21971 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
21972 | }; | |
21973 | ||
21974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_IsSupported",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
21975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21976 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21977 | if (arg2 == NULL) { | |
21978 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21979 | } | |
21980 | { | |
21981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21982 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
21983 | ||
21984 | wxPyEndAllowThreads(__tstate); | |
21985 | if (PyErr_Occurred()) SWIG_fail; | |
21986 | } | |
21987 | resultobj = PyInt_FromLong((long)result); | |
21988 | return resultobj; | |
21989 | fail: | |
21990 | return NULL; | |
21991 | } | |
21992 | ||
21993 | ||
21994 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21995 | PyObject *resultobj; | |
21996 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21997 | wxDataFormat *arg2 = 0 ; | |
21998 | size_t result; | |
21999 | PyObject * obj0 = 0 ; | |
22000 | PyObject * obj1 = 0 ; | |
22001 | char *kwnames[] = { | |
22002 | (char *) "self",(char *) "format", NULL | |
22003 | }; | |
22004 | ||
22005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
22006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22008 | if (arg2 == NULL) { | |
22009 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22010 | } | |
22011 | { | |
22012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22013 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
22014 | ||
22015 | wxPyEndAllowThreads(__tstate); | |
22016 | if (PyErr_Occurred()) SWIG_fail; | |
22017 | } | |
22018 | resultobj = PyInt_FromLong((long)result); | |
22019 | return resultobj; | |
22020 | fail: | |
22021 | return NULL; | |
22022 | } | |
22023 | ||
22024 | ||
22025 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22026 | PyObject *resultobj; | |
22027 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22028 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
22029 | int arg3 = (int) wxDataObject::Get ; | |
22030 | PyObject * obj0 = 0 ; | |
22031 | PyObject * obj1 = 0 ; | |
22032 | char *kwnames[] = { | |
22033 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
22034 | }; | |
22035 | ||
22036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22038 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22039 | { | |
22040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22041 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
22042 | ||
22043 | wxPyEndAllowThreads(__tstate); | |
22044 | if (PyErr_Occurred()) SWIG_fail; | |
22045 | } | |
22046 | Py_INCREF(Py_None); resultobj = Py_None; | |
22047 | return resultobj; | |
22048 | fail: | |
22049 | return NULL; | |
22050 | } | |
22051 | ||
22052 | ||
22053 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22054 | PyObject *resultobj; | |
22055 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22056 | wxDataFormat *arg2 = 0 ; | |
22057 | void *arg3 = (void *) 0 ; | |
22058 | bool result; | |
22059 | PyObject * obj0 = 0 ; | |
22060 | PyObject * obj1 = 0 ; | |
22061 | PyObject * obj2 = 0 ; | |
22062 | char *kwnames[] = { | |
22063 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
22064 | }; | |
22065 | ||
22066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22068 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22069 | if (arg2 == NULL) { | |
22070 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22071 | } | |
22072 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22073 | { | |
22074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22075 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
22076 | ||
22077 | wxPyEndAllowThreads(__tstate); | |
22078 | if (PyErr_Occurred()) SWIG_fail; | |
22079 | } | |
22080 | resultobj = PyInt_FromLong((long)result); | |
22081 | return resultobj; | |
22082 | fail: | |
22083 | return NULL; | |
22084 | } | |
22085 | ||
22086 | ||
22087 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22088 | PyObject *resultobj; | |
22089 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22090 | wxDataFormat *arg2 = 0 ; | |
22091 | size_t arg3 ; | |
22092 | void *arg4 = (void *) 0 ; | |
22093 | bool result; | |
22094 | PyObject * obj0 = 0 ; | |
22095 | PyObject * obj1 = 0 ; | |
22096 | PyObject * obj2 = 0 ; | |
22097 | PyObject * obj3 = 0 ; | |
22098 | char *kwnames[] = { | |
22099 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
22100 | }; | |
22101 | ||
22102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22104 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22105 | if (arg2 == NULL) { | |
22106 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22107 | } | |
22108 | arg3 = (size_t) PyInt_AsLong(obj2); | |
22109 | if (PyErr_Occurred()) SWIG_fail; | |
22110 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22111 | { | |
22112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22113 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
22114 | ||
22115 | wxPyEndAllowThreads(__tstate); | |
22116 | if (PyErr_Occurred()) SWIG_fail; | |
22117 | } | |
22118 | resultobj = PyInt_FromLong((long)result); | |
22119 | return resultobj; | |
22120 | fail: | |
22121 | return NULL; | |
22122 | } | |
22123 | ||
22124 | ||
22125 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
22126 | PyObject *obj; | |
22127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22128 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
22129 | Py_INCREF(obj); | |
22130 | return Py_BuildValue((char *)""); | |
22131 | } | |
22132 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22133 | PyObject *resultobj; | |
22134 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22135 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22136 | wxDataObjectSimple *result; | |
22137 | PyObject * obj0 = 0 ; | |
22138 | char *kwnames[] = { | |
22139 | (char *) "format", NULL | |
22140 | }; | |
22141 | ||
22142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
22143 | if (obj0) { | |
22144 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22145 | if (arg1 == NULL) { | |
22146 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22147 | } | |
22148 | } | |
22149 | { | |
22150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22151 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
22152 | ||
22153 | wxPyEndAllowThreads(__tstate); | |
22154 | if (PyErr_Occurred()) SWIG_fail; | |
22155 | } | |
22156 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
22157 | return resultobj; | |
22158 | fail: | |
22159 | return NULL; | |
22160 | } | |
22161 | ||
22162 | ||
22163 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22164 | PyObject *resultobj; | |
22165 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22166 | wxDataFormat *result; | |
22167 | PyObject * obj0 = 0 ; | |
22168 | char *kwnames[] = { | |
22169 | (char *) "self", NULL | |
22170 | }; | |
22171 | ||
22172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
22173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22174 | { | |
22175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22176 | { | |
22177 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
22178 | result = (wxDataFormat *) &_result_ref; | |
22179 | } | |
22180 | ||
22181 | wxPyEndAllowThreads(__tstate); | |
22182 | if (PyErr_Occurred()) SWIG_fail; | |
22183 | } | |
22184 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
22185 | return resultobj; | |
22186 | fail: | |
22187 | return NULL; | |
22188 | } | |
22189 | ||
22190 | ||
22191 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22192 | PyObject *resultobj; | |
22193 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22194 | wxDataFormat *arg2 = 0 ; | |
22195 | PyObject * obj0 = 0 ; | |
22196 | PyObject * obj1 = 0 ; | |
22197 | char *kwnames[] = { | |
22198 | (char *) "self",(char *) "format", NULL | |
22199 | }; | |
22200 | ||
22201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
22202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22203 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22204 | if (arg2 == NULL) { | |
22205 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22206 | } | |
22207 | { | |
22208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22209 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
22210 | ||
22211 | wxPyEndAllowThreads(__tstate); | |
22212 | if (PyErr_Occurred()) SWIG_fail; | |
22213 | } | |
22214 | Py_INCREF(Py_None); resultobj = Py_None; | |
22215 | return resultobj; | |
22216 | fail: | |
22217 | return NULL; | |
22218 | } | |
22219 | ||
22220 | ||
22221 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22222 | PyObject *obj; | |
22223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22224 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
22225 | Py_INCREF(obj); | |
22226 | return Py_BuildValue((char *)""); | |
22227 | } | |
22228 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22229 | PyObject *resultobj; | |
22230 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22231 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22232 | wxPyDataObjectSimple *result; | |
22233 | PyObject * obj0 = 0 ; | |
22234 | char *kwnames[] = { | |
22235 | (char *) "format", NULL | |
22236 | }; | |
22237 | ||
22238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
22239 | if (obj0) { | |
22240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22241 | if (arg1 == NULL) { | |
22242 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22243 | } | |
22244 | } | |
22245 | { | |
22246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22247 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
22248 | ||
22249 | wxPyEndAllowThreads(__tstate); | |
22250 | if (PyErr_Occurred()) SWIG_fail; | |
22251 | } | |
22252 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
22253 | return resultobj; | |
22254 | fail: | |
22255 | return NULL; | |
22256 | } | |
22257 | ||
22258 | ||
22259 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22260 | PyObject *resultobj; | |
22261 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
22262 | PyObject *arg2 = (PyObject *) 0 ; | |
22263 | PyObject *arg3 = (PyObject *) 0 ; | |
22264 | PyObject * obj0 = 0 ; | |
22265 | PyObject * obj1 = 0 ; | |
22266 | PyObject * obj2 = 0 ; | |
22267 | char *kwnames[] = { | |
22268 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22269 | }; | |
22270 | ||
22271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22273 | arg2 = obj1; | |
22274 | arg3 = obj2; | |
22275 | { | |
22276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22277 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22278 | ||
22279 | wxPyEndAllowThreads(__tstate); | |
22280 | if (PyErr_Occurred()) SWIG_fail; | |
22281 | } | |
22282 | Py_INCREF(Py_None); resultobj = Py_None; | |
22283 | return resultobj; | |
22284 | fail: | |
22285 | return NULL; | |
22286 | } | |
22287 | ||
22288 | ||
22289 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22290 | PyObject *obj; | |
22291 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22292 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
22293 | Py_INCREF(obj); | |
22294 | return Py_BuildValue((char *)""); | |
22295 | } | |
22296 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22297 | PyObject *resultobj; | |
22298 | wxDataObjectComposite *result; | |
22299 | char *kwnames[] = { | |
22300 | NULL | |
22301 | }; | |
22302 | ||
22303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
22304 | { | |
22305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22306 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
22307 | ||
22308 | wxPyEndAllowThreads(__tstate); | |
22309 | if (PyErr_Occurred()) SWIG_fail; | |
22310 | } | |
22311 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
22312 | return resultobj; | |
22313 | fail: | |
22314 | return NULL; | |
22315 | } | |
22316 | ||
22317 | ||
22318 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22319 | PyObject *resultobj; | |
22320 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
22321 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
423f194a | 22322 | int arg3 = (int) False ; |
d14a1e28 RD |
22323 | PyObject * obj0 = 0 ; |
22324 | PyObject * obj1 = 0 ; | |
22325 | char *kwnames[] = { | |
22326 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
22327 | }; | |
22328 | ||
22329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObjectComposite_Add",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22331 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22332 | { | |
22333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22334 | (arg1)->Add(arg2,arg3); | |
22335 | ||
22336 | wxPyEndAllowThreads(__tstate); | |
22337 | if (PyErr_Occurred()) SWIG_fail; | |
22338 | } | |
22339 | Py_INCREF(Py_None); resultobj = Py_None; | |
22340 | return resultobj; | |
22341 | fail: | |
22342 | return NULL; | |
22343 | } | |
22344 | ||
22345 | ||
22346 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
22347 | PyObject *obj; | |
22348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22349 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
22350 | Py_INCREF(obj); | |
22351 | return Py_BuildValue((char *)""); | |
22352 | } | |
22353 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22354 | PyObject *resultobj; | |
22355 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22356 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22357 | wxTextDataObject *result; | |
423f194a | 22358 | bool temp1 = False ; |
d14a1e28 RD |
22359 | PyObject * obj0 = 0 ; |
22360 | char *kwnames[] = { | |
22361 | (char *) "text", NULL | |
22362 | }; | |
22363 | ||
22364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
22365 | if (obj0) { | |
22366 | { | |
22367 | arg1 = wxString_in_helper(obj0); | |
22368 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 22369 | temp1 = True; |
d14a1e28 RD |
22370 | } |
22371 | } | |
22372 | { | |
22373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22374 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
22375 | ||
22376 | wxPyEndAllowThreads(__tstate); | |
22377 | if (PyErr_Occurred()) SWIG_fail; | |
22378 | } | |
22379 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
22380 | { | |
22381 | if (temp1) | |
22382 | delete arg1; | |
22383 | } | |
22384 | return resultobj; | |
22385 | fail: | |
22386 | { | |
22387 | if (temp1) | |
22388 | delete arg1; | |
22389 | } | |
22390 | return NULL; | |
22391 | } | |
22392 | ||
22393 | ||
22394 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22395 | PyObject *resultobj; | |
22396 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22397 | size_t result; | |
22398 | PyObject * obj0 = 0 ; | |
22399 | char *kwnames[] = { | |
22400 | (char *) "self", NULL | |
22401 | }; | |
22402 | ||
22403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
22404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22405 | { | |
22406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22407 | result = (size_t)(arg1)->GetTextLength(); | |
22408 | ||
22409 | wxPyEndAllowThreads(__tstate); | |
22410 | if (PyErr_Occurred()) SWIG_fail; | |
22411 | } | |
22412 | resultobj = PyInt_FromLong((long)result); | |
22413 | return resultobj; | |
22414 | fail: | |
22415 | return NULL; | |
22416 | } | |
22417 | ||
22418 | ||
22419 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22420 | PyObject *resultobj; | |
22421 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22422 | wxString result; | |
22423 | PyObject * obj0 = 0 ; | |
22424 | char *kwnames[] = { | |
22425 | (char *) "self", NULL | |
22426 | }; | |
22427 | ||
22428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
22429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22430 | { | |
22431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22432 | result = (arg1)->GetText(); | |
22433 | ||
22434 | wxPyEndAllowThreads(__tstate); | |
22435 | if (PyErr_Occurred()) SWIG_fail; | |
22436 | } | |
22437 | { | |
22438 | #if wxUSE_UNICODE | |
22439 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22440 | #else | |
22441 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22442 | #endif | |
22443 | } | |
22444 | return resultobj; | |
22445 | fail: | |
22446 | return NULL; | |
22447 | } | |
22448 | ||
22449 | ||
22450 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22451 | PyObject *resultobj; | |
22452 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22453 | wxString *arg2 = 0 ; | |
423f194a | 22454 | bool temp2 = False ; |
d14a1e28 RD |
22455 | PyObject * obj0 = 0 ; |
22456 | PyObject * obj1 = 0 ; | |
22457 | char *kwnames[] = { | |
22458 | (char *) "self",(char *) "text", NULL | |
22459 | }; | |
22460 | ||
22461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
22462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22463 | { | |
22464 | arg2 = wxString_in_helper(obj1); | |
22465 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22466 | temp2 = True; |
d14a1e28 RD |
22467 | } |
22468 | { | |
22469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22470 | (arg1)->SetText((wxString const &)*arg2); | |
22471 | ||
22472 | wxPyEndAllowThreads(__tstate); | |
22473 | if (PyErr_Occurred()) SWIG_fail; | |
22474 | } | |
22475 | Py_INCREF(Py_None); resultobj = Py_None; | |
22476 | { | |
22477 | if (temp2) | |
22478 | delete arg2; | |
22479 | } | |
22480 | return resultobj; | |
22481 | fail: | |
22482 | { | |
22483 | if (temp2) | |
22484 | delete arg2; | |
22485 | } | |
22486 | return NULL; | |
22487 | } | |
22488 | ||
22489 | ||
22490 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22491 | PyObject *obj; | |
22492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22493 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
22494 | Py_INCREF(obj); | |
22495 | return Py_BuildValue((char *)""); | |
22496 | } | |
22497 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22498 | PyObject *resultobj; | |
22499 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22500 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22501 | wxPyTextDataObject *result; | |
423f194a | 22502 | bool temp1 = False ; |
d14a1e28 RD |
22503 | PyObject * obj0 = 0 ; |
22504 | char *kwnames[] = { | |
22505 | (char *) "text", NULL | |
22506 | }; | |
22507 | ||
22508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
22509 | if (obj0) { | |
22510 | { | |
22511 | arg1 = wxString_in_helper(obj0); | |
22512 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 22513 | temp1 = True; |
d14a1e28 RD |
22514 | } |
22515 | } | |
22516 | { | |
22517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22518 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
22519 | ||
22520 | wxPyEndAllowThreads(__tstate); | |
22521 | if (PyErr_Occurred()) SWIG_fail; | |
22522 | } | |
22523 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
22524 | { | |
22525 | if (temp1) | |
22526 | delete arg1; | |
22527 | } | |
22528 | return resultobj; | |
22529 | fail: | |
22530 | { | |
22531 | if (temp1) | |
22532 | delete arg1; | |
22533 | } | |
22534 | return NULL; | |
22535 | } | |
22536 | ||
22537 | ||
22538 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22539 | PyObject *resultobj; | |
22540 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
22541 | PyObject *arg2 = (PyObject *) 0 ; | |
22542 | PyObject *arg3 = (PyObject *) 0 ; | |
22543 | PyObject * obj0 = 0 ; | |
22544 | PyObject * obj1 = 0 ; | |
22545 | PyObject * obj2 = 0 ; | |
22546 | char *kwnames[] = { | |
22547 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22548 | }; | |
22549 | ||
22550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22552 | arg2 = obj1; | |
22553 | arg3 = obj2; | |
22554 | { | |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22557 | ||
22558 | wxPyEndAllowThreads(__tstate); | |
22559 | if (PyErr_Occurred()) SWIG_fail; | |
22560 | } | |
22561 | Py_INCREF(Py_None); resultobj = Py_None; | |
22562 | return resultobj; | |
22563 | fail: | |
22564 | return NULL; | |
22565 | } | |
22566 | ||
22567 | ||
22568 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22569 | PyObject *obj; | |
22570 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22571 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
22572 | Py_INCREF(obj); | |
22573 | return Py_BuildValue((char *)""); | |
22574 | } | |
22575 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22576 | PyObject *resultobj; | |
22577 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22578 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22579 | wxBitmapDataObject *result; | |
22580 | PyObject * obj0 = 0 ; | |
22581 | char *kwnames[] = { | |
22582 | (char *) "bitmap", NULL | |
22583 | }; | |
22584 | ||
22585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
22586 | if (obj0) { | |
22587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22588 | if (arg1 == NULL) { | |
22589 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22590 | } | |
22591 | } | |
22592 | { | |
22593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22594 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
22595 | ||
22596 | wxPyEndAllowThreads(__tstate); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
22599 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
22600 | return resultobj; | |
22601 | fail: | |
22602 | return NULL; | |
22603 | } | |
22604 | ||
22605 | ||
22606 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22607 | PyObject *resultobj; | |
22608 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22609 | wxBitmap result; | |
22610 | PyObject * obj0 = 0 ; | |
22611 | char *kwnames[] = { | |
22612 | (char *) "self", NULL | |
22613 | }; | |
22614 | ||
22615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
22616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22617 | { | |
22618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22619 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
22620 | ||
22621 | wxPyEndAllowThreads(__tstate); | |
22622 | if (PyErr_Occurred()) SWIG_fail; | |
22623 | } | |
22624 | { | |
22625 | wxBitmap * resultptr; | |
22626 | resultptr = new wxBitmap((wxBitmap &) result); | |
22627 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
22628 | } | |
22629 | return resultobj; | |
22630 | fail: | |
22631 | return NULL; | |
22632 | } | |
22633 | ||
22634 | ||
22635 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22636 | PyObject *resultobj; | |
22637 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22638 | wxBitmap *arg2 = 0 ; | |
22639 | PyObject * obj0 = 0 ; | |
22640 | PyObject * obj1 = 0 ; | |
22641 | char *kwnames[] = { | |
22642 | (char *) "self",(char *) "bitmap", NULL | |
22643 | }; | |
22644 | ||
22645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
22646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22647 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22648 | if (arg2 == NULL) { | |
22649 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22650 | } | |
22651 | { | |
22652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22653 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
22654 | ||
22655 | wxPyEndAllowThreads(__tstate); | |
22656 | if (PyErr_Occurred()) SWIG_fail; | |
22657 | } | |
22658 | Py_INCREF(Py_None); resultobj = Py_None; | |
22659 | return resultobj; | |
22660 | fail: | |
22661 | return NULL; | |
22662 | } | |
22663 | ||
22664 | ||
22665 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22666 | PyObject *obj; | |
22667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22668 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
22669 | Py_INCREF(obj); | |
22670 | return Py_BuildValue((char *)""); | |
22671 | } | |
22672 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22673 | PyObject *resultobj; | |
22674 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22675 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22676 | wxPyBitmapDataObject *result; | |
22677 | PyObject * obj0 = 0 ; | |
22678 | char *kwnames[] = { | |
22679 | (char *) "bitmap", NULL | |
22680 | }; | |
22681 | ||
22682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
22683 | if (obj0) { | |
22684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22685 | if (arg1 == NULL) { | |
22686 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22687 | } | |
22688 | } | |
22689 | { | |
22690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22691 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
22692 | ||
22693 | wxPyEndAllowThreads(__tstate); | |
22694 | if (PyErr_Occurred()) SWIG_fail; | |
22695 | } | |
22696 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
22697 | return resultobj; | |
22698 | fail: | |
22699 | return NULL; | |
22700 | } | |
22701 | ||
22702 | ||
22703 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22704 | PyObject *resultobj; | |
22705 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
22706 | PyObject *arg2 = (PyObject *) 0 ; | |
22707 | PyObject *arg3 = (PyObject *) 0 ; | |
22708 | PyObject * obj0 = 0 ; | |
22709 | PyObject * obj1 = 0 ; | |
22710 | PyObject * obj2 = 0 ; | |
22711 | char *kwnames[] = { | |
22712 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22713 | }; | |
22714 | ||
22715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22717 | arg2 = obj1; | |
22718 | arg3 = obj2; | |
22719 | { | |
22720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22721 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22722 | ||
22723 | wxPyEndAllowThreads(__tstate); | |
22724 | if (PyErr_Occurred()) SWIG_fail; | |
22725 | } | |
22726 | Py_INCREF(Py_None); resultobj = Py_None; | |
22727 | return resultobj; | |
22728 | fail: | |
22729 | return NULL; | |
22730 | } | |
22731 | ||
22732 | ||
22733 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22734 | PyObject *obj; | |
22735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22736 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
22737 | Py_INCREF(obj); | |
22738 | return Py_BuildValue((char *)""); | |
22739 | } | |
22740 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22741 | PyObject *resultobj; | |
22742 | wxFileDataObject *result; | |
22743 | char *kwnames[] = { | |
22744 | NULL | |
22745 | }; | |
22746 | ||
22747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
22748 | { | |
22749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22750 | result = (wxFileDataObject *)new wxFileDataObject(); | |
22751 | ||
22752 | wxPyEndAllowThreads(__tstate); | |
22753 | if (PyErr_Occurred()) SWIG_fail; | |
22754 | } | |
22755 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
22756 | return resultobj; | |
22757 | fail: | |
22758 | return NULL; | |
22759 | } | |
22760 | ||
22761 | ||
22762 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22763 | PyObject *resultobj; | |
22764 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
22765 | wxArrayString *result; | |
22766 | PyObject * obj0 = 0 ; | |
22767 | char *kwnames[] = { | |
22768 | (char *) "self", NULL | |
22769 | }; | |
22770 | ||
22771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
22772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22773 | { | |
22774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22775 | { | |
22776 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
22777 | result = (wxArrayString *) &_result_ref; | |
22778 | } | |
22779 | ||
22780 | wxPyEndAllowThreads(__tstate); | |
22781 | if (PyErr_Occurred()) SWIG_fail; | |
22782 | } | |
22783 | { | |
22784 | resultobj = wxArrayString2PyList_helper(*result); | |
22785 | } | |
22786 | return resultobj; | |
22787 | fail: | |
22788 | return NULL; | |
22789 | } | |
22790 | ||
22791 | ||
22792 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
22793 | PyObject *obj; | |
22794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22795 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
22796 | Py_INCREF(obj); | |
22797 | return Py_BuildValue((char *)""); | |
22798 | } | |
22799 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22800 | PyObject *resultobj; | |
22801 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22802 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22803 | wxCustomDataObject *result; | |
22804 | PyObject * obj0 = 0 ; | |
22805 | char *kwnames[] = { | |
22806 | (char *) "format", NULL | |
22807 | }; | |
22808 | ||
22809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
22810 | if (obj0) { | |
22811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22812 | if (arg1 == NULL) { | |
22813 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22814 | } | |
22815 | } | |
22816 | { | |
22817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22818 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
22819 | ||
22820 | wxPyEndAllowThreads(__tstate); | |
22821 | if (PyErr_Occurred()) SWIG_fail; | |
22822 | } | |
22823 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
22824 | return resultobj; | |
22825 | fail: | |
22826 | return NULL; | |
22827 | } | |
22828 | ||
22829 | ||
22830 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22831 | PyObject *resultobj; | |
22832 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22833 | PyObject *arg2 = (PyObject *) 0 ; | |
22834 | PyObject * obj0 = 0 ; | |
22835 | PyObject * obj1 = 0 ; | |
22836 | char *kwnames[] = { | |
22837 | (char *) "self",(char *) "data", NULL | |
22838 | }; | |
22839 | ||
22840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
22841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22842 | arg2 = obj1; | |
22843 | { | |
22844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22845 | wxCustomDataObject_TakeData(arg1,arg2); | |
22846 | ||
22847 | wxPyEndAllowThreads(__tstate); | |
22848 | if (PyErr_Occurred()) SWIG_fail; | |
22849 | } | |
22850 | Py_INCREF(Py_None); resultobj = Py_None; | |
22851 | return resultobj; | |
22852 | fail: | |
22853 | return NULL; | |
22854 | } | |
22855 | ||
22856 | ||
22857 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22858 | PyObject *resultobj; | |
22859 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22860 | PyObject *arg2 = (PyObject *) 0 ; | |
22861 | bool result; | |
22862 | PyObject * obj0 = 0 ; | |
22863 | PyObject * obj1 = 0 ; | |
22864 | char *kwnames[] = { | |
22865 | (char *) "self",(char *) "data", NULL | |
22866 | }; | |
22867 | ||
22868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
22869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22870 | arg2 = obj1; | |
22871 | { | |
22872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22873 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
22874 | ||
22875 | wxPyEndAllowThreads(__tstate); | |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
22877 | } | |
22878 | resultobj = PyInt_FromLong((long)result); | |
22879 | return resultobj; | |
22880 | fail: | |
22881 | return NULL; | |
22882 | } | |
22883 | ||
22884 | ||
22885 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22886 | PyObject *resultobj; | |
22887 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22888 | size_t result; | |
22889 | PyObject * obj0 = 0 ; | |
22890 | char *kwnames[] = { | |
22891 | (char *) "self", NULL | |
22892 | }; | |
22893 | ||
22894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
22895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22896 | { | |
22897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22898 | result = (size_t)(arg1)->GetSize(); | |
22899 | ||
22900 | wxPyEndAllowThreads(__tstate); | |
22901 | if (PyErr_Occurred()) SWIG_fail; | |
22902 | } | |
22903 | resultobj = PyInt_FromLong((long)result); | |
22904 | return resultobj; | |
22905 | fail: | |
22906 | return NULL; | |
22907 | } | |
22908 | ||
22909 | ||
22910 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22911 | PyObject *resultobj; | |
22912 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22913 | PyObject *result; | |
22914 | PyObject * obj0 = 0 ; | |
22915 | char *kwnames[] = { | |
22916 | (char *) "self", NULL | |
22917 | }; | |
22918 | ||
22919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
22920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
22924 | ||
22925 | wxPyEndAllowThreads(__tstate); | |
22926 | if (PyErr_Occurred()) SWIG_fail; | |
22927 | } | |
22928 | resultobj = result; | |
22929 | return resultobj; | |
22930 | fail: | |
22931 | return NULL; | |
22932 | } | |
22933 | ||
22934 | ||
22935 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
22936 | PyObject *obj; | |
22937 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22938 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
22939 | Py_INCREF(obj); | |
22940 | return Py_BuildValue((char *)""); | |
22941 | } | |
22942 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22943 | PyObject *resultobj; | |
22944 | wxURLDataObject *result; | |
22945 | char *kwnames[] = { | |
22946 | NULL | |
22947 | }; | |
22948 | ||
22949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
22950 | { | |
22951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22952 | result = (wxURLDataObject *)new wxURLDataObject(); | |
22953 | ||
22954 | wxPyEndAllowThreads(__tstate); | |
22955 | if (PyErr_Occurred()) SWIG_fail; | |
22956 | } | |
22957 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
22958 | return resultobj; | |
22959 | fail: | |
22960 | return NULL; | |
22961 | } | |
22962 | ||
22963 | ||
22964 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22965 | PyObject *resultobj; | |
22966 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
22967 | wxString result; | |
22968 | PyObject * obj0 = 0 ; | |
22969 | char *kwnames[] = { | |
22970 | (char *) "self", NULL | |
22971 | }; | |
22972 | ||
22973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
22974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22975 | { | |
22976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22977 | result = (arg1)->GetURL(); | |
22978 | ||
22979 | wxPyEndAllowThreads(__tstate); | |
22980 | if (PyErr_Occurred()) SWIG_fail; | |
22981 | } | |
22982 | { | |
22983 | #if wxUSE_UNICODE | |
22984 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22985 | #else | |
22986 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22987 | #endif | |
22988 | } | |
22989 | return resultobj; | |
22990 | fail: | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
22995 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22996 | PyObject *resultobj; | |
22997 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
22998 | wxString *arg2 = 0 ; | |
423f194a | 22999 | bool temp2 = False ; |
d14a1e28 RD |
23000 | PyObject * obj0 = 0 ; |
23001 | PyObject * obj1 = 0 ; | |
23002 | char *kwnames[] = { | |
23003 | (char *) "self",(char *) "url", NULL | |
23004 | }; | |
23005 | ||
23006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
23007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23008 | { | |
23009 | arg2 = wxString_in_helper(obj1); | |
23010 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23011 | temp2 = True; |
d14a1e28 RD |
23012 | } |
23013 | { | |
23014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23015 | (arg1)->SetURL((wxString const &)*arg2); | |
23016 | ||
23017 | wxPyEndAllowThreads(__tstate); | |
23018 | if (PyErr_Occurred()) SWIG_fail; | |
23019 | } | |
23020 | Py_INCREF(Py_None); resultobj = Py_None; | |
23021 | { | |
23022 | if (temp2) | |
23023 | delete arg2; | |
23024 | } | |
23025 | return resultobj; | |
23026 | fail: | |
23027 | { | |
23028 | if (temp2) | |
23029 | delete arg2; | |
23030 | } | |
23031 | return NULL; | |
23032 | } | |
23033 | ||
23034 | ||
23035 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
23036 | PyObject *obj; | |
23037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23038 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
23039 | Py_INCREF(obj); | |
23040 | return Py_BuildValue((char *)""); | |
23041 | } | |
23042 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23043 | PyObject *resultobj; | |
23044 | wxMetafileDataObject *result; | |
23045 | char *kwnames[] = { | |
23046 | NULL | |
23047 | }; | |
23048 | ||
23049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
23050 | { | |
23051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23052 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
23053 | ||
23054 | wxPyEndAllowThreads(__tstate); | |
23055 | if (PyErr_Occurred()) SWIG_fail; | |
23056 | } | |
23057 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
23058 | return resultobj; | |
23059 | fail: | |
23060 | return NULL; | |
23061 | } | |
23062 | ||
23063 | ||
23064 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23065 | PyObject *resultobj; | |
23066 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
23067 | wxMetafile *arg2 = 0 ; | |
23068 | PyObject * obj0 = 0 ; | |
23069 | PyObject * obj1 = 0 ; | |
23070 | char *kwnames[] = { | |
23071 | (char *) "self",(char *) "metafile", NULL | |
23072 | }; | |
23073 | ||
23074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
23075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23076 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMetafile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23077 | if (arg2 == NULL) { | |
23078 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23079 | } | |
23080 | { | |
23081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23082 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
23083 | ||
23084 | wxPyEndAllowThreads(__tstate); | |
23085 | if (PyErr_Occurred()) SWIG_fail; | |
23086 | } | |
23087 | Py_INCREF(Py_None); resultobj = Py_None; | |
23088 | return resultobj; | |
23089 | fail: | |
23090 | return NULL; | |
23091 | } | |
23092 | ||
23093 | ||
23094 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23095 | PyObject *resultobj; | |
23096 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
23097 | wxMetafile result; | |
23098 | PyObject * obj0 = 0 ; | |
23099 | char *kwnames[] = { | |
23100 | (char *) "self", NULL | |
23101 | }; | |
23102 | ||
23103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
23104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23105 | { | |
23106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23107 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
23108 | ||
23109 | wxPyEndAllowThreads(__tstate); | |
23110 | if (PyErr_Occurred()) SWIG_fail; | |
23111 | } | |
23112 | { | |
23113 | wxMetafile * resultptr; | |
23114 | resultptr = new wxMetafile((wxMetafile &) result); | |
23115 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxMetafile, 1); | |
23116 | } | |
23117 | return resultobj; | |
23118 | fail: | |
23119 | return NULL; | |
23120 | } | |
23121 | ||
23122 | ||
23123 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
23124 | PyObject *obj; | |
23125 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23126 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
23127 | Py_INCREF(obj); | |
23128 | return Py_BuildValue((char *)""); | |
23129 | } | |
23130 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23131 | PyObject *resultobj; | |
23132 | int arg1 ; | |
23133 | bool result; | |
23134 | char *kwnames[] = { | |
23135 | (char *) "res", NULL | |
23136 | }; | |
23137 | ||
23138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IsDragResultOk",kwnames,&arg1)) goto fail; | |
23139 | { | |
23140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23141 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
23142 | ||
23143 | wxPyEndAllowThreads(__tstate); | |
23144 | if (PyErr_Occurred()) SWIG_fail; | |
23145 | } | |
23146 | resultobj = PyInt_FromLong((long)result); | |
23147 | return resultobj; | |
23148 | fail: | |
23149 | return NULL; | |
23150 | } | |
23151 | ||
23152 | ||
23153 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23154 | PyObject *resultobj; | |
23155 | wxWindow *arg1 = (wxWindow *) NULL ; | |
23156 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
23157 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
23158 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
23159 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
23160 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
23161 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
23162 | wxPyDropSource *result; | |
23163 | PyObject * obj0 = 0 ; | |
23164 | PyObject * obj1 = 0 ; | |
23165 | PyObject * obj2 = 0 ; | |
23166 | PyObject * obj3 = 0 ; | |
23167 | char *kwnames[] = { | |
23168 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
23169 | }; | |
23170 | ||
23171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23172 | if (obj0) { | |
23173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23174 | } | |
23175 | if (obj1) { | |
23176 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23177 | if (arg2 == NULL) { | |
23178 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23179 | } | |
23180 | } | |
23181 | if (obj2) { | |
23182 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23183 | if (arg3 == NULL) { | |
23184 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23185 | } | |
23186 | } | |
23187 | if (obj3) { | |
23188 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23189 | if (arg4 == NULL) { | |
23190 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23191 | } | |
23192 | } | |
23193 | { | |
23194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23195 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
23196 | ||
23197 | wxPyEndAllowThreads(__tstate); | |
23198 | if (PyErr_Occurred()) SWIG_fail; | |
23199 | } | |
23200 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
23201 | return resultobj; | |
23202 | fail: | |
23203 | return NULL; | |
23204 | } | |
23205 | ||
23206 | ||
23207 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23208 | PyObject *resultobj; | |
23209 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23210 | PyObject *arg2 = (PyObject *) 0 ; | |
23211 | PyObject *arg3 = (PyObject *) 0 ; | |
23212 | int arg4 ; | |
23213 | PyObject * obj0 = 0 ; | |
23214 | PyObject * obj1 = 0 ; | |
23215 | PyObject * obj2 = 0 ; | |
23216 | char *kwnames[] = { | |
23217 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
23218 | }; | |
23219 | ||
23220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
23221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23222 | arg2 = obj1; | |
23223 | arg3 = obj2; | |
23224 | { | |
23225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23226 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
23227 | ||
23228 | wxPyEndAllowThreads(__tstate); | |
23229 | if (PyErr_Occurred()) SWIG_fail; | |
23230 | } | |
23231 | Py_INCREF(Py_None); resultobj = Py_None; | |
23232 | return resultobj; | |
23233 | fail: | |
23234 | return NULL; | |
23235 | } | |
23236 | ||
23237 | ||
23238 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23239 | PyObject *resultobj; | |
23240 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23241 | PyObject * obj0 = 0 ; | |
23242 | char *kwnames[] = { | |
23243 | (char *) "self", NULL | |
23244 | }; | |
23245 | ||
23246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
23247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23248 | { | |
23249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23250 | delete arg1; | |
23251 | ||
23252 | wxPyEndAllowThreads(__tstate); | |
23253 | if (PyErr_Occurred()) SWIG_fail; | |
23254 | } | |
23255 | Py_INCREF(Py_None); resultobj = Py_None; | |
23256 | return resultobj; | |
23257 | fail: | |
23258 | return NULL; | |
23259 | } | |
23260 | ||
23261 | ||
23262 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23263 | PyObject *resultobj; | |
23264 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23265 | wxDataObject *arg2 = 0 ; | |
23266 | PyObject * obj0 = 0 ; | |
23267 | PyObject * obj1 = 0 ; | |
23268 | char *kwnames[] = { | |
23269 | (char *) "self",(char *) "data", NULL | |
23270 | }; | |
23271 | ||
23272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23275 | if (arg2 == NULL) { | |
23276 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23277 | } | |
23278 | { | |
23279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23280 | (arg1)->SetData(*arg2); | |
23281 | ||
23282 | wxPyEndAllowThreads(__tstate); | |
23283 | if (PyErr_Occurred()) SWIG_fail; | |
23284 | } | |
23285 | Py_INCREF(Py_None); resultobj = Py_None; | |
23286 | return resultobj; | |
23287 | fail: | |
23288 | return NULL; | |
23289 | } | |
23290 | ||
23291 | ||
23292 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23293 | PyObject *resultobj; | |
23294 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23295 | wxDataObject *result; | |
23296 | PyObject * obj0 = 0 ; | |
23297 | char *kwnames[] = { | |
23298 | (char *) "self", NULL | |
23299 | }; | |
23300 | ||
23301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
23302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23303 | { | |
23304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23305 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23306 | ||
23307 | wxPyEndAllowThreads(__tstate); | |
23308 | if (PyErr_Occurred()) SWIG_fail; | |
23309 | } | |
23310 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23311 | return resultobj; | |
23312 | fail: | |
23313 | return NULL; | |
23314 | } | |
23315 | ||
23316 | ||
23317 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23318 | PyObject *resultobj; | |
23319 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23320 | int arg2 ; | |
23321 | wxCursor *arg3 = 0 ; | |
23322 | PyObject * obj0 = 0 ; | |
23323 | PyObject * obj2 = 0 ; | |
23324 | char *kwnames[] = { | |
23325 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
23326 | }; | |
23327 | ||
23328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:DropSource_SetCursor",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
23329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23330 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23331 | if (arg3 == NULL) { | |
23332 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23333 | } | |
23334 | { | |
23335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23336 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
23337 | ||
23338 | wxPyEndAllowThreads(__tstate); | |
23339 | if (PyErr_Occurred()) SWIG_fail; | |
23340 | } | |
23341 | Py_INCREF(Py_None); resultobj = Py_None; | |
23342 | return resultobj; | |
23343 | fail: | |
23344 | return NULL; | |
23345 | } | |
23346 | ||
23347 | ||
23348 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23349 | PyObject *resultobj; | |
23350 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23351 | int arg2 = (int) wxDrag_CopyOnly ; | |
23352 | int result; | |
23353 | PyObject * obj0 = 0 ; | |
23354 | char *kwnames[] = { | |
23355 | (char *) "self",(char *) "flags", NULL | |
23356 | }; | |
23357 | ||
23358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DropSource_DoDragDrop",kwnames,&obj0,&arg2)) goto fail; | |
23359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23360 | { | |
23361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23362 | result = (int)(arg1)->DoDragDrop(arg2); | |
23363 | ||
23364 | wxPyEndAllowThreads(__tstate); | |
23365 | if (PyErr_Occurred()) SWIG_fail; | |
23366 | } | |
23367 | resultobj = PyInt_FromLong((long)result); | |
23368 | return resultobj; | |
23369 | fail: | |
23370 | return NULL; | |
23371 | } | |
23372 | ||
23373 | ||
23374 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23375 | PyObject *resultobj; | |
23376 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23377 | int arg2 ; | |
23378 | bool result; | |
23379 | PyObject * obj0 = 0 ; | |
23380 | char *kwnames[] = { | |
23381 | (char *) "self",(char *) "effect", NULL | |
23382 | }; | |
23383 | ||
23384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DropSource_base_GiveFeedback",kwnames,&obj0,&arg2)) goto fail; | |
23385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23386 | { | |
23387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23388 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
23389 | ||
23390 | wxPyEndAllowThreads(__tstate); | |
23391 | if (PyErr_Occurred()) SWIG_fail; | |
23392 | } | |
23393 | resultobj = PyInt_FromLong((long)result); | |
23394 | return resultobj; | |
23395 | fail: | |
23396 | return NULL; | |
23397 | } | |
23398 | ||
23399 | ||
23400 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
23401 | PyObject *obj; | |
23402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23403 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
23404 | Py_INCREF(obj); | |
23405 | return Py_BuildValue((char *)""); | |
23406 | } | |
23407 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23408 | PyObject *resultobj; | |
23409 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
23410 | wxPyDropTarget *result; | |
23411 | PyObject * obj0 = 0 ; | |
23412 | char *kwnames[] = { | |
23413 | (char *) "dataObject", NULL | |
23414 | }; | |
23415 | ||
23416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
23417 | if (obj0) { | |
23418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23419 | } | |
23420 | { | |
23421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23422 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
23423 | ||
23424 | wxPyEndAllowThreads(__tstate); | |
23425 | if (PyErr_Occurred()) SWIG_fail; | |
23426 | } | |
23427 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
23428 | return resultobj; | |
23429 | fail: | |
23430 | return NULL; | |
23431 | } | |
23432 | ||
23433 | ||
23434 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23435 | PyObject *resultobj; | |
23436 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23437 | PyObject *arg2 = (PyObject *) 0 ; | |
23438 | PyObject *arg3 = (PyObject *) 0 ; | |
23439 | PyObject * obj0 = 0 ; | |
23440 | PyObject * obj1 = 0 ; | |
23441 | PyObject * obj2 = 0 ; | |
23442 | char *kwnames[] = { | |
23443 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23444 | }; | |
23445 | ||
23446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23448 | arg2 = obj1; | |
23449 | arg3 = obj2; | |
23450 | { | |
23451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23452 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23453 | ||
23454 | wxPyEndAllowThreads(__tstate); | |
23455 | if (PyErr_Occurred()) SWIG_fail; | |
23456 | } | |
23457 | Py_INCREF(Py_None); resultobj = Py_None; | |
23458 | return resultobj; | |
23459 | fail: | |
23460 | return NULL; | |
23461 | } | |
23462 | ||
23463 | ||
23464 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23465 | PyObject *resultobj; | |
23466 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23467 | PyObject * obj0 = 0 ; | |
23468 | char *kwnames[] = { | |
23469 | (char *) "self", NULL | |
23470 | }; | |
23471 | ||
23472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
23473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23474 | { | |
23475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23476 | delete arg1; | |
23477 | ||
23478 | wxPyEndAllowThreads(__tstate); | |
23479 | if (PyErr_Occurred()) SWIG_fail; | |
23480 | } | |
23481 | Py_INCREF(Py_None); resultobj = Py_None; | |
23482 | return resultobj; | |
23483 | fail: | |
23484 | return NULL; | |
23485 | } | |
23486 | ||
23487 | ||
23488 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23489 | PyObject *resultobj; | |
23490 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23491 | wxDataObject *result; | |
23492 | PyObject * obj0 = 0 ; | |
23493 | char *kwnames[] = { | |
23494 | (char *) "self", NULL | |
23495 | }; | |
23496 | ||
23497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
23498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23499 | { | |
23500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23501 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23502 | ||
23503 | wxPyEndAllowThreads(__tstate); | |
23504 | if (PyErr_Occurred()) SWIG_fail; | |
23505 | } | |
23506 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23507 | return resultobj; | |
23508 | fail: | |
23509 | return NULL; | |
23510 | } | |
23511 | ||
23512 | ||
23513 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23514 | PyObject *resultobj; | |
23515 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23516 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
23517 | PyObject * obj0 = 0 ; | |
23518 | PyObject * obj1 = 0 ; | |
23519 | char *kwnames[] = { | |
23520 | (char *) "self",(char *) "dataObject", NULL | |
23521 | }; | |
23522 | ||
23523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
23524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23525 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23526 | { | |
23527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23528 | (arg1)->SetDataObject(arg2); | |
23529 | ||
23530 | wxPyEndAllowThreads(__tstate); | |
23531 | if (PyErr_Occurred()) SWIG_fail; | |
23532 | } | |
23533 | Py_INCREF(Py_None); resultobj = Py_None; | |
23534 | return resultobj; | |
23535 | fail: | |
23536 | return NULL; | |
23537 | } | |
23538 | ||
23539 | ||
23540 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23541 | PyObject *resultobj; | |
23542 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23543 | int arg2 ; |
23544 | int arg3 ; | |
d14a1e28 RD |
23545 | int arg4 ; |
23546 | int result; | |
23547 | PyObject * obj0 = 0 ; | |
23548 | char *kwnames[] = { | |
23549 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23550 | }; | |
23551 | ||
23552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23554 | { | |
23555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23556 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23557 | ||
23558 | wxPyEndAllowThreads(__tstate); | |
23559 | if (PyErr_Occurred()) SWIG_fail; | |
23560 | } | |
23561 | resultobj = PyInt_FromLong((long)result); | |
23562 | return resultobj; | |
23563 | fail: | |
23564 | return NULL; | |
23565 | } | |
23566 | ||
23567 | ||
23568 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23569 | PyObject *resultobj; | |
23570 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23571 | int arg2 ; |
23572 | int arg3 ; | |
d14a1e28 RD |
23573 | int arg4 ; |
23574 | int result; | |
23575 | PyObject * obj0 = 0 ; | |
23576 | char *kwnames[] = { | |
23577 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23578 | }; | |
23579 | ||
23580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23582 | { | |
23583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23584 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23585 | ||
23586 | wxPyEndAllowThreads(__tstate); | |
23587 | if (PyErr_Occurred()) SWIG_fail; | |
23588 | } | |
23589 | resultobj = PyInt_FromLong((long)result); | |
23590 | return resultobj; | |
23591 | fail: | |
23592 | return NULL; | |
23593 | } | |
23594 | ||
23595 | ||
23596 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23597 | PyObject *resultobj; | |
23598 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23599 | PyObject * obj0 = 0 ; | |
23600 | char *kwnames[] = { | |
23601 | (char *) "self", NULL | |
23602 | }; | |
23603 | ||
23604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23606 | { | |
23607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23608 | (arg1)->base_OnLeave(); | |
23609 | ||
23610 | wxPyEndAllowThreads(__tstate); | |
23611 | if (PyErr_Occurred()) SWIG_fail; | |
23612 | } | |
23613 | Py_INCREF(Py_None); resultobj = Py_None; | |
23614 | return resultobj; | |
23615 | fail: | |
23616 | return NULL; | |
23617 | } | |
23618 | ||
23619 | ||
23620 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23621 | PyObject *resultobj; | |
23622 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23623 | int arg2 ; |
23624 | int arg3 ; | |
d14a1e28 RD |
23625 | bool result; |
23626 | PyObject * obj0 = 0 ; | |
23627 | char *kwnames[] = { | |
23628 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23629 | }; | |
23630 | ||
23631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23633 | { | |
23634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23635 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23636 | ||
23637 | wxPyEndAllowThreads(__tstate); | |
23638 | if (PyErr_Occurred()) SWIG_fail; | |
23639 | } | |
23640 | resultobj = PyInt_FromLong((long)result); | |
23641 | return resultobj; | |
23642 | fail: | |
23643 | return NULL; | |
23644 | } | |
23645 | ||
23646 | ||
23647 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23648 | PyObject *resultobj; | |
23649 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23650 | bool result; | |
23651 | PyObject * obj0 = 0 ; | |
23652 | char *kwnames[] = { | |
23653 | (char *) "self", NULL | |
23654 | }; | |
23655 | ||
23656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
23657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23658 | { | |
23659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23660 | result = (bool)(arg1)->GetData(); | |
23661 | ||
23662 | wxPyEndAllowThreads(__tstate); | |
23663 | if (PyErr_Occurred()) SWIG_fail; | |
23664 | } | |
23665 | resultobj = PyInt_FromLong((long)result); | |
23666 | return resultobj; | |
23667 | fail: | |
23668 | return NULL; | |
23669 | } | |
23670 | ||
23671 | ||
23672 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
23673 | PyObject *obj; | |
23674 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23675 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
23676 | Py_INCREF(obj); | |
23677 | return Py_BuildValue((char *)""); | |
23678 | } | |
23679 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23680 | PyObject *resultobj; | |
23681 | wxPyTextDropTarget *result; | |
23682 | char *kwnames[] = { | |
23683 | NULL | |
23684 | }; | |
23685 | ||
23686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
23687 | { | |
23688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23689 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
23690 | ||
23691 | wxPyEndAllowThreads(__tstate); | |
23692 | if (PyErr_Occurred()) SWIG_fail; | |
23693 | } | |
23694 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
23695 | return resultobj; | |
23696 | fail: | |
23697 | return NULL; | |
23698 | } | |
23699 | ||
23700 | ||
23701 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23702 | PyObject *resultobj; | |
23703 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23704 | PyObject *arg2 = (PyObject *) 0 ; | |
23705 | PyObject *arg3 = (PyObject *) 0 ; | |
23706 | PyObject * obj0 = 0 ; | |
23707 | PyObject * obj1 = 0 ; | |
23708 | PyObject * obj2 = 0 ; | |
23709 | char *kwnames[] = { | |
23710 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23711 | }; | |
23712 | ||
23713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23715 | arg2 = obj1; | |
23716 | arg3 = obj2; | |
23717 | { | |
23718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23719 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23720 | ||
23721 | wxPyEndAllowThreads(__tstate); | |
23722 | if (PyErr_Occurred()) SWIG_fail; | |
23723 | } | |
23724 | Py_INCREF(Py_None); resultobj = Py_None; | |
23725 | return resultobj; | |
23726 | fail: | |
23727 | return NULL; | |
23728 | } | |
23729 | ||
23730 | ||
23731 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23732 | PyObject *resultobj; | |
23733 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23734 | int arg2 ; |
23735 | int arg3 ; | |
d14a1e28 RD |
23736 | int arg4 ; |
23737 | int result; | |
23738 | PyObject * obj0 = 0 ; | |
23739 | char *kwnames[] = { | |
23740 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23741 | }; | |
23742 | ||
23743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23745 | { | |
23746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23747 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23748 | ||
23749 | wxPyEndAllowThreads(__tstate); | |
23750 | if (PyErr_Occurred()) SWIG_fail; | |
23751 | } | |
23752 | resultobj = PyInt_FromLong((long)result); | |
23753 | return resultobj; | |
23754 | fail: | |
23755 | return NULL; | |
23756 | } | |
23757 | ||
23758 | ||
23759 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23760 | PyObject *resultobj; | |
23761 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23762 | int arg2 ; |
23763 | int arg3 ; | |
d14a1e28 RD |
23764 | int arg4 ; |
23765 | int result; | |
23766 | PyObject * obj0 = 0 ; | |
23767 | char *kwnames[] = { | |
23768 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23769 | }; | |
23770 | ||
23771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23773 | { | |
23774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23775 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23776 | ||
23777 | wxPyEndAllowThreads(__tstate); | |
23778 | if (PyErr_Occurred()) SWIG_fail; | |
23779 | } | |
23780 | resultobj = PyInt_FromLong((long)result); | |
23781 | return resultobj; | |
23782 | fail: | |
23783 | return NULL; | |
23784 | } | |
23785 | ||
23786 | ||
23787 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23788 | PyObject *resultobj; | |
23789 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23790 | PyObject * obj0 = 0 ; | |
23791 | char *kwnames[] = { | |
23792 | (char *) "self", NULL | |
23793 | }; | |
23794 | ||
23795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23797 | { | |
23798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23799 | (arg1)->base_OnLeave(); | |
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_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23812 | PyObject *resultobj; | |
23813 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23814 | int arg2 ; |
23815 | int arg3 ; | |
d14a1e28 RD |
23816 | bool result; |
23817 | PyObject * obj0 = 0 ; | |
23818 | char *kwnames[] = { | |
23819 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23820 | }; | |
23821 | ||
23822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:TextDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23824 | { | |
23825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23826 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23827 | ||
23828 | wxPyEndAllowThreads(__tstate); | |
23829 | if (PyErr_Occurred()) SWIG_fail; | |
23830 | } | |
23831 | resultobj = PyInt_FromLong((long)result); | |
23832 | return resultobj; | |
23833 | fail: | |
23834 | return NULL; | |
23835 | } | |
23836 | ||
23837 | ||
23838 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23839 | PyObject *resultobj; | |
23840 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23841 | int arg2 ; |
23842 | int arg3 ; | |
d14a1e28 RD |
23843 | int arg4 ; |
23844 | int result; | |
23845 | PyObject * obj0 = 0 ; | |
23846 | char *kwnames[] = { | |
23847 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23848 | }; | |
23849 | ||
23850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23852 | { | |
23853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23854 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
23855 | ||
23856 | wxPyEndAllowThreads(__tstate); | |
23857 | if (PyErr_Occurred()) SWIG_fail; | |
23858 | } | |
23859 | resultobj = PyInt_FromLong((long)result); | |
23860 | return resultobj; | |
23861 | fail: | |
23862 | return NULL; | |
23863 | } | |
23864 | ||
23865 | ||
23866 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
23867 | PyObject *obj; | |
23868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23869 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
23870 | Py_INCREF(obj); | |
23871 | return Py_BuildValue((char *)""); | |
23872 | } | |
23873 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23874 | PyObject *resultobj; | |
23875 | wxPyFileDropTarget *result; | |
23876 | char *kwnames[] = { | |
23877 | NULL | |
23878 | }; | |
23879 | ||
23880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
23881 | { | |
23882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23883 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
23884 | ||
23885 | wxPyEndAllowThreads(__tstate); | |
23886 | if (PyErr_Occurred()) SWIG_fail; | |
23887 | } | |
23888 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
23889 | return resultobj; | |
23890 | fail: | |
23891 | return NULL; | |
23892 | } | |
23893 | ||
23894 | ||
23895 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23896 | PyObject *resultobj; | |
23897 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
23898 | PyObject *arg2 = (PyObject *) 0 ; | |
23899 | PyObject *arg3 = (PyObject *) 0 ; | |
23900 | PyObject * obj0 = 0 ; | |
23901 | PyObject * obj1 = 0 ; | |
23902 | PyObject * obj2 = 0 ; | |
23903 | char *kwnames[] = { | |
23904 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23905 | }; | |
23906 | ||
23907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23909 | arg2 = obj1; | |
23910 | arg3 = obj2; | |
23911 | { | |
23912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23913 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23914 | ||
23915 | wxPyEndAllowThreads(__tstate); | |
23916 | if (PyErr_Occurred()) SWIG_fail; | |
23917 | } | |
23918 | Py_INCREF(Py_None); resultobj = Py_None; | |
23919 | return resultobj; | |
23920 | fail: | |
23921 | return NULL; | |
23922 | } | |
23923 | ||
23924 | ||
23925 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23926 | PyObject *resultobj; | |
23927 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
23928 | int arg2 ; |
23929 | int arg3 ; | |
d14a1e28 RD |
23930 | int arg4 ; |
23931 | int result; | |
23932 | PyObject * obj0 = 0 ; | |
23933 | char *kwnames[] = { | |
23934 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23935 | }; | |
23936 | ||
23937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23939 | { | |
23940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23941 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23942 | ||
23943 | wxPyEndAllowThreads(__tstate); | |
23944 | if (PyErr_Occurred()) SWIG_fail; | |
23945 | } | |
23946 | resultobj = PyInt_FromLong((long)result); | |
23947 | return resultobj; | |
23948 | fail: | |
23949 | return NULL; | |
23950 | } | |
23951 | ||
23952 | ||
23953 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23954 | PyObject *resultobj; | |
23955 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
23956 | int arg2 ; |
23957 | int arg3 ; | |
d14a1e28 RD |
23958 | int arg4 ; |
23959 | int result; | |
23960 | PyObject * obj0 = 0 ; | |
23961 | char *kwnames[] = { | |
23962 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23963 | }; | |
23964 | ||
23965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23967 | { | |
23968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23969 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23970 | ||
23971 | wxPyEndAllowThreads(__tstate); | |
23972 | if (PyErr_Occurred()) SWIG_fail; | |
23973 | } | |
23974 | resultobj = PyInt_FromLong((long)result); | |
23975 | return resultobj; | |
23976 | fail: | |
23977 | return NULL; | |
23978 | } | |
23979 | ||
23980 | ||
23981 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23982 | PyObject *resultobj; | |
23983 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
23984 | PyObject * obj0 = 0 ; | |
23985 | char *kwnames[] = { | |
23986 | (char *) "self", NULL | |
23987 | }; | |
23988 | ||
23989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23991 | { | |
23992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23993 | (arg1)->base_OnLeave(); | |
23994 | ||
23995 | wxPyEndAllowThreads(__tstate); | |
23996 | if (PyErr_Occurred()) SWIG_fail; | |
23997 | } | |
23998 | Py_INCREF(Py_None); resultobj = Py_None; | |
23999 | return resultobj; | |
24000 | fail: | |
24001 | return NULL; | |
24002 | } | |
24003 | ||
24004 | ||
24005 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24006 | PyObject *resultobj; | |
24007 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
24008 | int arg2 ; |
24009 | int arg3 ; | |
d14a1e28 RD |
24010 | bool result; |
24011 | PyObject * obj0 = 0 ; | |
24012 | char *kwnames[] = { | |
24013 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24014 | }; | |
24015 | ||
24016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:FileDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24018 | { | |
24019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24020 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
24021 | ||
24022 | wxPyEndAllowThreads(__tstate); | |
24023 | if (PyErr_Occurred()) SWIG_fail; | |
24024 | } | |
24025 | resultobj = PyInt_FromLong((long)result); | |
24026 | return resultobj; | |
24027 | fail: | |
24028 | return NULL; | |
24029 | } | |
24030 | ||
24031 | ||
24032 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24033 | PyObject *resultobj; | |
24034 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
24035 | int arg2 ; |
24036 | int arg3 ; | |
d14a1e28 RD |
24037 | int arg4 ; |
24038 | int result; | |
24039 | PyObject * obj0 = 0 ; | |
24040 | char *kwnames[] = { | |
24041 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24042 | }; | |
24043 | ||
24044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24046 | { | |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
24049 | ||
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
24053 | resultobj = PyInt_FromLong((long)result); | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
24060 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
24061 | PyObject *obj; | |
24062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24063 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
24064 | Py_INCREF(obj); | |
24065 | return Py_BuildValue((char *)""); | |
24066 | } | |
24067 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24068 | PyObject *resultobj; | |
24069 | wxClipboard *result; | |
24070 | char *kwnames[] = { | |
24071 | NULL | |
24072 | }; | |
24073 | ||
24074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
24075 | { | |
24076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24077 | result = (wxClipboard *)new wxClipboard(); | |
24078 | ||
24079 | wxPyEndAllowThreads(__tstate); | |
24080 | if (PyErr_Occurred()) SWIG_fail; | |
24081 | } | |
24082 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
24083 | return resultobj; | |
24084 | fail: | |
24085 | return NULL; | |
24086 | } | |
24087 | ||
24088 | ||
24089 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24090 | PyObject *resultobj; | |
24091 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24092 | PyObject * obj0 = 0 ; | |
24093 | char *kwnames[] = { | |
24094 | (char *) "self", NULL | |
24095 | }; | |
24096 | ||
24097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
24098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24099 | { | |
24100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24101 | delete arg1; | |
24102 | ||
24103 | wxPyEndAllowThreads(__tstate); | |
24104 | if (PyErr_Occurred()) SWIG_fail; | |
24105 | } | |
24106 | Py_INCREF(Py_None); resultobj = Py_None; | |
24107 | return resultobj; | |
24108 | fail: | |
24109 | return NULL; | |
24110 | } | |
24111 | ||
24112 | ||
24113 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24114 | PyObject *resultobj; | |
24115 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24116 | bool result; | |
24117 | PyObject * obj0 = 0 ; | |
24118 | char *kwnames[] = { | |
24119 | (char *) "self", NULL | |
24120 | }; | |
24121 | ||
24122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
24123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24124 | { | |
24125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24126 | result = (bool)(arg1)->Open(); | |
24127 | ||
24128 | wxPyEndAllowThreads(__tstate); | |
24129 | if (PyErr_Occurred()) SWIG_fail; | |
24130 | } | |
24131 | resultobj = PyInt_FromLong((long)result); | |
24132 | return resultobj; | |
24133 | fail: | |
24134 | return NULL; | |
24135 | } | |
24136 | ||
24137 | ||
24138 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24139 | PyObject *resultobj; | |
24140 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24141 | PyObject * obj0 = 0 ; | |
24142 | char *kwnames[] = { | |
24143 | (char *) "self", NULL | |
24144 | }; | |
24145 | ||
24146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
24147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24148 | { | |
24149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24150 | (arg1)->Close(); | |
24151 | ||
24152 | wxPyEndAllowThreads(__tstate); | |
24153 | if (PyErr_Occurred()) SWIG_fail; | |
24154 | } | |
24155 | Py_INCREF(Py_None); resultobj = Py_None; | |
24156 | return resultobj; | |
24157 | fail: | |
24158 | return NULL; | |
24159 | } | |
24160 | ||
24161 | ||
24162 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24163 | PyObject *resultobj; | |
24164 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24165 | bool result; | |
24166 | PyObject * obj0 = 0 ; | |
24167 | char *kwnames[] = { | |
24168 | (char *) "self", NULL | |
24169 | }; | |
24170 | ||
24171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
24172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24173 | { | |
24174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24175 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
24176 | ||
24177 | wxPyEndAllowThreads(__tstate); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | } | |
24180 | resultobj = PyInt_FromLong((long)result); | |
24181 | return resultobj; | |
24182 | fail: | |
24183 | return NULL; | |
24184 | } | |
24185 | ||
24186 | ||
24187 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24188 | PyObject *resultobj; | |
24189 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24190 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24191 | bool result; | |
24192 | PyObject * obj0 = 0 ; | |
24193 | PyObject * obj1 = 0 ; | |
24194 | char *kwnames[] = { | |
24195 | (char *) "self",(char *) "data", NULL | |
24196 | }; | |
24197 | ||
24198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
24199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24200 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24201 | { | |
24202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24203 | result = (bool)(arg1)->AddData(arg2); | |
24204 | ||
24205 | wxPyEndAllowThreads(__tstate); | |
24206 | if (PyErr_Occurred()) SWIG_fail; | |
24207 | } | |
24208 | resultobj = PyInt_FromLong((long)result); | |
24209 | return resultobj; | |
24210 | fail: | |
24211 | return NULL; | |
24212 | } | |
24213 | ||
24214 | ||
24215 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24216 | PyObject *resultobj; | |
24217 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24218 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24219 | bool result; | |
24220 | PyObject * obj0 = 0 ; | |
24221 | PyObject * obj1 = 0 ; | |
24222 | char *kwnames[] = { | |
24223 | (char *) "self",(char *) "data", NULL | |
24224 | }; | |
24225 | ||
24226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24228 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24229 | { | |
24230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24231 | result = (bool)(arg1)->SetData(arg2); | |
24232 | ||
24233 | wxPyEndAllowThreads(__tstate); | |
24234 | if (PyErr_Occurred()) SWIG_fail; | |
24235 | } | |
24236 | resultobj = PyInt_FromLong((long)result); | |
24237 | return resultobj; | |
24238 | fail: | |
24239 | return NULL; | |
24240 | } | |
24241 | ||
24242 | ||
24243 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24244 | PyObject *resultobj; | |
24245 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24246 | wxDataFormat *arg2 = 0 ; | |
24247 | bool result; | |
24248 | PyObject * obj0 = 0 ; | |
24249 | PyObject * obj1 = 0 ; | |
24250 | char *kwnames[] = { | |
24251 | (char *) "self",(char *) "format", NULL | |
24252 | }; | |
24253 | ||
24254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
24255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24256 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24257 | if (arg2 == NULL) { | |
24258 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24259 | } | |
24260 | { | |
24261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24262 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
24263 | ||
24264 | wxPyEndAllowThreads(__tstate); | |
24265 | if (PyErr_Occurred()) SWIG_fail; | |
24266 | } | |
24267 | resultobj = PyInt_FromLong((long)result); | |
24268 | return resultobj; | |
24269 | fail: | |
24270 | return NULL; | |
24271 | } | |
24272 | ||
24273 | ||
24274 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24275 | PyObject *resultobj; | |
24276 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24277 | wxDataObject *arg2 = 0 ; | |
24278 | bool result; | |
24279 | PyObject * obj0 = 0 ; | |
24280 | PyObject * obj1 = 0 ; | |
24281 | char *kwnames[] = { | |
24282 | (char *) "self",(char *) "data", NULL | |
24283 | }; | |
24284 | ||
24285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
24286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24287 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24288 | if (arg2 == NULL) { | |
24289 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24290 | } | |
24291 | { | |
24292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24293 | result = (bool)(arg1)->GetData(*arg2); | |
24294 | ||
24295 | wxPyEndAllowThreads(__tstate); | |
24296 | if (PyErr_Occurred()) SWIG_fail; | |
24297 | } | |
24298 | resultobj = PyInt_FromLong((long)result); | |
24299 | return resultobj; | |
24300 | fail: | |
24301 | return NULL; | |
24302 | } | |
24303 | ||
24304 | ||
24305 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24306 | PyObject *resultobj; | |
24307 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24308 | PyObject * obj0 = 0 ; | |
24309 | char *kwnames[] = { | |
24310 | (char *) "self", NULL | |
24311 | }; | |
24312 | ||
24313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
24314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24315 | { | |
24316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24317 | (arg1)->Clear(); | |
24318 | ||
24319 | wxPyEndAllowThreads(__tstate); | |
24320 | if (PyErr_Occurred()) SWIG_fail; | |
24321 | } | |
24322 | Py_INCREF(Py_None); resultobj = Py_None; | |
24323 | return resultobj; | |
24324 | fail: | |
24325 | return NULL; | |
24326 | } | |
24327 | ||
24328 | ||
24329 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24330 | PyObject *resultobj; | |
24331 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24332 | bool result; | |
24333 | PyObject * obj0 = 0 ; | |
24334 | char *kwnames[] = { | |
24335 | (char *) "self", NULL | |
24336 | }; | |
24337 | ||
24338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
24339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24340 | { | |
24341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24342 | result = (bool)(arg1)->Flush(); | |
24343 | ||
24344 | wxPyEndAllowThreads(__tstate); | |
24345 | if (PyErr_Occurred()) SWIG_fail; | |
24346 | } | |
24347 | resultobj = PyInt_FromLong((long)result); | |
24348 | return resultobj; | |
24349 | fail: | |
24350 | return NULL; | |
24351 | } | |
24352 | ||
24353 | ||
24354 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24355 | PyObject *resultobj; | |
24356 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
423f194a | 24357 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24358 | PyObject * obj0 = 0 ; |
24359 | PyObject * obj1 = 0 ; | |
24360 | char *kwnames[] = { | |
24361 | (char *) "self",(char *) "primary", NULL | |
24362 | }; | |
24363 | ||
24364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
24365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24366 | if (obj1) { | |
24367 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24368 | if (PyErr_Occurred()) SWIG_fail; | |
24369 | } | |
24370 | { | |
24371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24372 | (arg1)->UsePrimarySelection(arg2); | |
24373 | ||
24374 | wxPyEndAllowThreads(__tstate); | |
24375 | if (PyErr_Occurred()) SWIG_fail; | |
24376 | } | |
24377 | Py_INCREF(Py_None); resultobj = Py_None; | |
24378 | return resultobj; | |
24379 | fail: | |
24380 | return NULL; | |
24381 | } | |
24382 | ||
24383 | ||
24384 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
24385 | PyObject *obj; | |
24386 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24387 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
24388 | Py_INCREF(obj); | |
24389 | return Py_BuildValue((char *)""); | |
24390 | } | |
24391 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
24392 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
24393 | return 1; | |
24394 | } | |
24395 | ||
24396 | ||
24397 | static PyObject *_wrap_TheClipboard_get() { | |
24398 | PyObject *pyobj; | |
24399 | ||
24400 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
24401 | return pyobj; | |
24402 | } | |
24403 | ||
24404 | ||
24405 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24406 | PyObject *resultobj; | |
24407 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
24408 | wxClipboardLocker *result; | |
24409 | PyObject * obj0 = 0 ; | |
24410 | char *kwnames[] = { | |
24411 | (char *) "clipboard", NULL | |
24412 | }; | |
24413 | ||
24414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24415 | if (obj0) { | |
24416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24417 | } | |
24418 | { | |
24419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24420 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
24421 | ||
24422 | wxPyEndAllowThreads(__tstate); | |
24423 | if (PyErr_Occurred()) SWIG_fail; | |
24424 | } | |
24425 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
24426 | return resultobj; | |
24427 | fail: | |
24428 | return NULL; | |
24429 | } | |
24430 | ||
24431 | ||
24432 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24433 | PyObject *resultobj; | |
24434 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24435 | PyObject * obj0 = 0 ; | |
24436 | char *kwnames[] = { | |
24437 | (char *) "self", NULL | |
24438 | }; | |
24439 | ||
24440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24442 | { | |
24443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24444 | delete arg1; | |
24445 | ||
24446 | wxPyEndAllowThreads(__tstate); | |
24447 | if (PyErr_Occurred()) SWIG_fail; | |
24448 | } | |
24449 | Py_INCREF(Py_None); resultobj = Py_None; | |
24450 | return resultobj; | |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
24456 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24457 | PyObject *resultobj; | |
24458 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24459 | bool result; | |
24460 | PyObject * obj0 = 0 ; | |
24461 | char *kwnames[] = { | |
24462 | (char *) "self", NULL | |
24463 | }; | |
24464 | ||
24465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
24466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24467 | { | |
24468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24469 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
24470 | ||
24471 | wxPyEndAllowThreads(__tstate); | |
24472 | if (PyErr_Occurred()) SWIG_fail; | |
24473 | } | |
24474 | resultobj = PyInt_FromLong((long)result); | |
24475 | return resultobj; | |
24476 | fail: | |
24477 | return NULL; | |
24478 | } | |
24479 | ||
24480 | ||
24481 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
24482 | PyObject *obj; | |
24483 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24484 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
24485 | Py_INCREF(obj); | |
24486 | return Py_BuildValue((char *)""); | |
24487 | } | |
24488 | static PyMethodDef SwigMethods[] = { | |
24489 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24490 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
24491 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
24492 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
24493 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24494 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24495 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
24496 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
24497 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
24498 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24499 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
24500 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24501 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
24502 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
24503 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
24504 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
24505 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
24506 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
24507 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24508 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
24509 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
24510 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
24511 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
24512 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
24513 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
24514 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
24515 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
24516 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
24517 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
24518 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
24519 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
24520 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
24521 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
24522 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
24523 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
24524 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
24525 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
24526 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
24527 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
24528 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
24529 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
24530 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
24531 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24532 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24533 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24534 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
24535 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24536 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24537 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
24538 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
24539 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
24540 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24541 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
24542 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24543 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24544 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24545 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24546 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24547 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24548 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24549 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24550 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
24551 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24552 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24553 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24554 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24555 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
24556 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
24557 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
24558 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
24559 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24560 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24561 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
24562 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
24563 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
24564 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
24565 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24566 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24567 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
24568 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
24569 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
24570 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24571 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24572 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24573 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
24574 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
24575 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24576 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
24577 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
24578 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24579 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
24580 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
24581 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
24582 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24583 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
24584 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
24585 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
24586 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24587 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24588 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24589 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24590 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
24591 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24592 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24593 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
24594 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24595 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24596 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
24597 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
24598 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
24599 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
24600 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24601 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
24602 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
24603 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24604 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24605 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
24606 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
24607 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
24608 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
24609 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
24610 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
24611 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
24612 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
24613 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
24614 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
24615 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
24616 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
24617 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24618 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24619 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24620 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
24621 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
24622 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
24623 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
24624 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24625 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24626 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
24627 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
24628 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
24629 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24630 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24631 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
24632 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
24633 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24634 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
24635 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
24636 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
24639 | { (char *)"Timer_Notify", (PyCFunction) _wrap_Timer_Notify, METH_VARARGS | METH_KEYWORDS }, | |
24640 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
24641 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24642 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
24643 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, | |
24644 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
24645 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
24647 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
24648 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
24651 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
24653 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
24654 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
24655 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
24656 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
24657 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24658 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24659 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
24660 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24661 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24663 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24665 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24666 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24668 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24669 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24670 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24672 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24673 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24674 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24675 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
24676 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24677 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
24678 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
24679 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
24680 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
24681 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
24682 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
24684 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
24685 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24688 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24689 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24690 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
24691 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
24692 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
24693 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24694 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24696 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
24697 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
24698 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
24701 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
24702 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
24703 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
24704 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
24707 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
24708 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
24709 | { (char *)"LogTrace", (PyCFunction) _wrap_LogTrace, METH_VARARGS | METH_KEYWORDS }, | |
24710 | { (char *)"LogTraceMask", (PyCFunction) _wrap_LogTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24714 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24715 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
24716 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
24717 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
24719 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
24720 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24721 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
24722 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
24723 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24724 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
24725 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
24726 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
24728 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
24730 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24731 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
24732 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
24733 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24734 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24735 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
24736 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
24737 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
24739 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
24740 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
24742 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
24743 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
24744 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24746 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24747 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24748 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24749 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24750 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24751 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
24752 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24755 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24756 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24757 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24758 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
24762 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
24763 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
24764 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
24765 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
24769 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
24772 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
24774 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
24775 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
24778 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
24780 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
24781 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
24782 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
24783 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
24784 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
24786 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
24787 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
24789 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
24790 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
24791 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
24792 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
24794 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
24795 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
24796 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
24797 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
24798 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
24799 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
24801 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24803 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24807 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24809 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24810 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24811 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
24812 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
24814 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
24815 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
24816 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
24817 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
24818 | { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24821 | { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24822 | { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS }, | |
24824 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24825 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
24826 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24827 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24829 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24831 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24832 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24833 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24835 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
24837 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
24838 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
24839 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
24840 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24843 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24844 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24846 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24848 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24850 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
24853 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
24854 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
24855 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
24856 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
24857 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
24858 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
24860 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24862 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24864 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
24865 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
24867 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
24869 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
24870 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
24871 | { (char *)"delete_ArtProvider", (PyCFunction) _wrap_delete_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24873 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
24874 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
24875 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
24876 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, | |
24879 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
24880 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
24881 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
24882 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
24889 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
24890 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
24892 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
24900 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
24906 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
24907 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
24909 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24912 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
24913 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
24914 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24915 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
24916 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
24917 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
24922 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
24923 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
24926 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
24929 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
24932 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
24937 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
24939 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
24941 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
24944 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
24945 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
24946 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
24949 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
24950 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
24951 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
24952 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
24953 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
24954 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
24955 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
24958 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
24959 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
24962 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
24964 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
24965 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
24966 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
24967 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
24968 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
24969 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
24970 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
24971 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
24972 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
24973 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24974 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24975 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24976 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24977 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24978 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
24983 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
24984 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
24986 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
24988 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
24991 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
24993 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
24994 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
24996 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
24997 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
24998 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
24999 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25000 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25002 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25006 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25008 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
25010 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25011 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
25014 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
25016 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
25017 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
25018 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
25020 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
25021 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
25022 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25023 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
25024 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
25025 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
25026 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
25027 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
25028 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
25029 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
25030 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
25031 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
25032 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
25033 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
25034 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
25035 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
25037 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
25038 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
25040 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
25041 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
25042 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
25044 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
25045 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
25046 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
25049 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25053 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25056 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25060 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
25061 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25062 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25063 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25064 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25065 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25066 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25067 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25068 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25069 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
25070 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
25072 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
25073 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25074 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25075 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
25076 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
25078 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
25080 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
25081 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25082 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25083 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
25084 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
25085 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
25089 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25091 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25095 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25116 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
25123 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
25124 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
25125 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
25126 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25128 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25130 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
25131 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
25132 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
25133 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
25137 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
25143 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
25146 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25149 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
25150 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
25153 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
25155 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
25156 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25157 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
25158 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
25159 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
25160 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
25161 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25162 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
25164 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25167 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
25168 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
25171 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25172 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25173 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
25174 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25175 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25178 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25179 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
25180 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
25182 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
25184 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
25187 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
25188 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
25189 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
25195 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
25196 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
25197 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
25198 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25207 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
25209 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25213 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
25217 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25221 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25222 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
25225 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
25229 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
25230 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
25231 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25234 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25235 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25236 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
25237 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
25238 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
25242 | { NULL, NULL } | |
25243 | }; | |
25244 | ||
25245 | ||
25246 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25247 | ||
25248 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25249 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25250 | } | |
25251 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25252 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25253 | } | |
25254 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25255 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25256 | } | |
25257 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25258 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25259 | } | |
25260 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25261 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25262 | } | |
25263 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25264 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25265 | } | |
25266 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
25267 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
25268 | } | |
25269 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25270 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25271 | } | |
25272 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25273 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25274 | } | |
25275 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25276 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25277 | } | |
25278 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25279 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25280 | } | |
25281 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
25282 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
25283 | } | |
25284 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25285 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25286 | } | |
25287 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25288 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25289 | } | |
25290 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25291 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25292 | } | |
25293 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25294 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25295 | } | |
25296 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25297 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25298 | } | |
25299 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25300 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25301 | } | |
25302 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25303 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25304 | } | |
25305 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25306 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25307 | } | |
25308 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25309 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25310 | } | |
25311 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25312 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25313 | } | |
25314 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25315 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25316 | } | |
25317 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25318 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25319 | } | |
25320 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25321 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25322 | } | |
25323 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25324 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25325 | } | |
25326 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25327 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25328 | } | |
25329 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25330 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25331 | } | |
25332 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25333 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25334 | } | |
25335 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25336 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25337 | } | |
25338 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
25339 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
25340 | } | |
25341 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25342 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25343 | } | |
25344 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25345 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25346 | } | |
25347 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25348 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25349 | } | |
25350 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25351 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25352 | } | |
25353 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25354 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25355 | } | |
25356 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25357 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25358 | } | |
25359 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25360 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25361 | } | |
25362 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
25363 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
25364 | } | |
25365 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
25366 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
25367 | } | |
25368 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
25369 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25370 | } | |
25371 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
25372 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25373 | } | |
25374 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25375 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
25376 | } | |
25377 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25378 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25379 | } | |
25380 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
25381 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
25382 | } | |
25383 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
25384 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25385 | } | |
25386 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
25387 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25388 | } | |
25389 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25390 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25391 | } | |
25392 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25393 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25394 | } | |
25395 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
25396 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25397 | } | |
25398 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
25399 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25400 | } | |
25401 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
25402 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25403 | } | |
25404 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
25405 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25406 | } | |
25407 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
25408 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25409 | } | |
25410 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
25411 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25412 | } | |
25413 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25414 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25415 | } | |
25416 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25417 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25418 | } | |
25419 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25420 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25421 | } | |
25422 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25423 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25424 | } | |
25425 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25426 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25427 | } | |
25428 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25429 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25430 | } | |
25431 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25432 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25433 | } | |
25434 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25435 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25436 | } | |
25437 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25438 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25439 | } | |
25440 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25441 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25442 | } | |
25443 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25444 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25445 | } | |
25446 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
25447 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
25448 | } | |
25449 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25450 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25451 | } | |
25452 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25453 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25454 | } | |
25455 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25456 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25457 | } | |
25458 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25459 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25460 | } | |
25461 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
25462 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
25463 | } | |
25464 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
25465 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
25466 | } | |
25467 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25468 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25469 | } | |
25470 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25471 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25472 | } | |
25473 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25474 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25475 | } | |
25476 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25477 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25478 | } | |
25479 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25480 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25481 | } | |
25482 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25483 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25484 | } | |
25485 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25486 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25487 | } | |
25488 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25489 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25490 | } | |
25491 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25492 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25493 | } | |
25494 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
25495 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
25496 | } | |
25497 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25498 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25499 | } | |
25500 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25501 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25502 | } | |
25503 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25504 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25505 | } | |
25506 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25507 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25508 | } | |
25509 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25510 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25511 | } | |
25512 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25513 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25514 | } | |
25515 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25516 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25517 | } | |
25518 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25519 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25520 | } | |
25521 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25522 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25523 | } | |
25524 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25525 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25526 | } | |
25527 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25528 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25529 | } | |
25530 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25531 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25532 | } | |
25533 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25534 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25535 | } | |
25536 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
25537 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
25538 | } | |
25539 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25540 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25541 | } | |
25542 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
25543 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
25544 | } | |
25545 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25546 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25547 | } | |
25548 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25549 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25550 | } | |
25551 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25552 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25553 | } | |
25554 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25555 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25556 | } | |
25557 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
25558 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
25559 | } | |
25560 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25561 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25562 | } | |
25563 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25564 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25565 | } | |
25566 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25567 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25568 | } | |
25569 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25570 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25571 | } | |
25572 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25573 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25574 | } | |
25575 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25576 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25577 | } | |
25578 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25579 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25580 | } | |
25581 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25582 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25583 | } | |
25584 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25585 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25586 | } | |
25587 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25588 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25589 | } | |
25590 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25591 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25592 | } | |
25593 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25594 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25595 | } | |
25596 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25597 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25598 | } | |
25599 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25600 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25601 | } | |
25602 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25603 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25604 | } | |
25605 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25606 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25607 | } | |
25608 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25609 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25610 | } | |
25611 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25612 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25613 | } | |
25614 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25615 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25616 | } | |
25617 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25618 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25619 | } | |
25620 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25621 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25622 | } | |
25623 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25624 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25625 | } | |
25626 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
25627 | return (void *)((wxObject *) ((wxImage *) x)); | |
25628 | } | |
25629 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25630 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25631 | } | |
25632 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
25633 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
25634 | } | |
25635 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
25636 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
25637 | } | |
25638 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25639 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25640 | } | |
25641 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25642 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25643 | } | |
25644 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25645 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25646 | } | |
25647 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25648 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25649 | } | |
25650 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25651 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25652 | } | |
25653 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25654 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25655 | } | |
25656 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
25657 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
25658 | } | |
25659 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25660 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25661 | } | |
25662 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25663 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25664 | } | |
25665 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25666 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25667 | } | |
25668 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25669 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25670 | } | |
25671 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25672 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25673 | } | |
25674 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25675 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25676 | } | |
25677 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25678 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25679 | } | |
25680 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
25681 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
25682 | } | |
25683 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25684 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25685 | } | |
25686 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25687 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25688 | } | |
25689 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
25690 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
25691 | } | |
25692 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
25693 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
25694 | } | |
25695 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
25696 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25697 | } | |
25698 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
25699 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
25700 | } | |
25701 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
25702 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25703 | } | |
25704 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
25705 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
25706 | } | |
25707 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
25708 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
25709 | } | |
25710 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
25711 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
25712 | } | |
25713 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
25714 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
25715 | } | |
25716 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
25717 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
25718 | } | |
25719 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
25720 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
25721 | } | |
25722 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
25723 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
25724 | } | |
25725 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
25726 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
25727 | } | |
25728 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
25729 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
25730 | } | |
25731 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
25732 | return (void *)((wxWindow *) ((wxControl *) x)); | |
25733 | } | |
25734 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
25735 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
25736 | } | |
25737 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
25738 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
25739 | } | |
25740 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
25741 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
25742 | } | |
25743 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
25744 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
25745 | } | |
25746 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
25747 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
25748 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0},{"_p_wxMetafile"},{0}}; | |
25749 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
25750 | 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}}; | |
25751 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
25752 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
25753 | 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}}; | |
25754 | 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}}; | |
25755 | static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}}; | |
25756 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; | |
25757 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
25758 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
25759 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
25760 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
25761 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
25762 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
25763 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
25764 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
25765 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
25766 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
25767 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
25768 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
25769 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
25770 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
25771 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
25772 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
25773 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; | |
25774 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; | |
25775 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; | |
25776 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
25777 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
25778 | 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}}; | |
25779 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; | |
25780 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
25781 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
25782 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; | |
25783 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
25784 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
25785 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
25786 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
25787 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
25788 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
25789 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
25790 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
25791 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
25792 | 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}}; | |
25793 | 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}}; | |
25794 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
25795 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; | |
25796 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
25797 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
25798 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
25799 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
25800 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
25801 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
25802 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
25803 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
25804 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
25805 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
25806 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
25807 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
25808 | 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}}; | |
25809 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; | |
25810 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
25811 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
25812 | 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}}; | |
25813 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
25814 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
25815 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
25816 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
25817 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
25818 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
25819 | 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}}; | |
25820 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
25821 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
25822 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
25823 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
25824 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
25825 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
25826 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; | |
25827 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
25828 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
25829 | ||
25830 | static swig_type_info *swig_types_initial[] = { | |
25831 | _swigt__p_wxLogChain, | |
25832 | _swigt__p_wxMutexGuiLocker, | |
25833 | _swigt__p_wxMetafile, | |
25834 | _swigt__p_wxFileHistory, | |
25835 | _swigt__p_wxLog, | |
25836 | _swigt__p_wxDateTime__TimeZone, | |
25837 | _swigt__p_wxMenu, | |
25838 | _swigt__p_wxEvent, | |
25839 | _swigt__p_wxConfigBase, | |
25840 | _swigt__p_wxWave, | |
25841 | _swigt__p_wxFileType, | |
25842 | _swigt__p_wxLogGui, | |
25843 | _swigt__p_wxFont, | |
25844 | _swigt__p_wxDataFormat, | |
25845 | _swigt__p_wxTimerEvent, | |
25846 | _swigt__p_wxCaret, | |
25847 | _swigt__p_int, | |
25848 | _swigt__p_wxSize, | |
25849 | _swigt__p_wxClipboard, | |
25850 | _swigt__p_wxStopWatch, | |
25851 | _swigt__p_wxDC, | |
25852 | _swigt__p_wxClipboardLocker, | |
25853 | _swigt__p_wxIcon, | |
25854 | _swigt__p_wxLogStderr, | |
25855 | _swigt__p_wxLogTextCtrl, | |
25856 | _swigt__p_wxTextCtrl, | |
25857 | _swigt__p_wxBusyCursor, | |
25858 | _swigt__p_wxFileDataObject, | |
25859 | _swigt__p_wxPyBitmapDataObject, | |
25860 | _swigt__p_wxPyTextDataObject, | |
25861 | _swigt__p_wxBitmapDataObject, | |
25862 | _swigt__p_wxTextDataObject, | |
25863 | _swigt__p_wxDataObject, | |
25864 | _swigt__p_wxCustomDataObject, | |
25865 | _swigt__p_wxURLDataObject, | |
25866 | _swigt__p_wxMetafileDataObject, | |
25867 | _swigt__p_wxTimerRunner, | |
25868 | _swigt__p_wxLogWindow, | |
25869 | _swigt__p_wxTimeSpan, | |
25870 | _swigt__p_wxArrayString, | |
25871 | _swigt__p_wxWindowDisabler, | |
25872 | _swigt__p_wxToolTip, | |
25873 | _swigt__p_wxDataObjectComposite, | |
25874 | _swigt__p_wxFileConfig, | |
25875 | _swigt__p_wxSystemSettings, | |
25876 | _swigt__p_wxPyDataObjectSimple, | |
25877 | _swigt__p_wxDataObjectSimple, | |
25878 | _swigt__p_wxEvtHandler, | |
25879 | _swigt__p_wxRect, | |
25880 | _swigt__p_wxSingleInstanceChecker, | |
25881 | _swigt__p_wxFileTypeInfo, | |
25882 | _swigt__p_wxFrame, | |
25883 | _swigt__p_wxTimer, | |
25884 | _swigt__p_wxMimeTypesManager, | |
25885 | _swigt__p_wxPyArtProvider, | |
25886 | _swigt__p_wxPyTipProvider, | |
25887 | _swigt__p_wxTipProvider, | |
25888 | _swigt__p_wxJoystick, | |
25889 | _swigt__p_wxSystemOptions, | |
25890 | _swigt__p_wxPoint, | |
25891 | _swigt__p_wxJoystickEvent, | |
25892 | _swigt__p_wxCursor, | |
25893 | _swigt__p_wxObject, | |
25894 | _swigt__p_wxOutputStream, | |
25895 | _swigt__p_wxDateTime, | |
25896 | _swigt__p_wxPyDropSource, | |
25897 | _swigt__p_wxWindow, | |
25898 | _swigt__p_wxString, | |
25899 | _swigt__p_wxPyProcess, | |
25900 | _swigt__p_wxBitmap, | |
25901 | _swigt__p_wxConfig, | |
25902 | _swigt__p_wxChar, | |
25903 | _swigt__p_wxBusyInfo, | |
25904 | _swigt__p_wxPyDropTarget, | |
25905 | _swigt__p_wxPyTextDropTarget, | |
25906 | _swigt__p_wxPyFileDropTarget, | |
25907 | _swigt__p_wxProcessEvent, | |
25908 | _swigt__p_wxPyLog, | |
25909 | _swigt__p_wxLogNull, | |
25910 | _swigt__p_wxColour, | |
25911 | _swigt__p_wxConfigPathChanger, | |
25912 | _swigt__p_wxPyTimer, | |
25913 | _swigt__p_wxDateSpan, | |
25914 | 0 | |
25915 | }; | |
25916 | ||
25917 | ||
25918 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
25919 | ||
25920 | static swig_const_info swig_const_table[] = { | |
25921 | { SWIG_PY_INT, (char *)"SYS_OEM_FIXED_FONT", (long) wxSYS_OEM_FIXED_FONT, 0, 0, 0}, | |
25922 | { SWIG_PY_INT, (char *)"SYS_ANSI_FIXED_FONT", (long) wxSYS_ANSI_FIXED_FONT, 0, 0, 0}, | |
25923 | { SWIG_PY_INT, (char *)"SYS_ANSI_VAR_FONT", (long) wxSYS_ANSI_VAR_FONT, 0, 0, 0}, | |
25924 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FONT", (long) wxSYS_SYSTEM_FONT, 0, 0, 0}, | |
25925 | { SWIG_PY_INT, (char *)"SYS_DEVICE_DEFAULT_FONT", (long) wxSYS_DEVICE_DEFAULT_FONT, 0, 0, 0}, | |
25926 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_PALETTE", (long) wxSYS_DEFAULT_PALETTE, 0, 0, 0}, | |
25927 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FIXED_FONT", (long) wxSYS_SYSTEM_FIXED_FONT, 0, 0, 0}, | |
25928 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_GUI_FONT", (long) wxSYS_DEFAULT_GUI_FONT, 0, 0, 0}, | |
25929 | { SWIG_PY_INT, (char *)"SYS_ICONTITLE_FONT", (long) wxSYS_ICONTITLE_FONT, 0, 0, 0}, | |
25930 | { SWIG_PY_INT, (char *)"SYS_COLOUR_SCROLLBAR", (long) wxSYS_COLOUR_SCROLLBAR, 0, 0, 0}, | |
25931 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BACKGROUND", (long) wxSYS_COLOUR_BACKGROUND, 0, 0, 0}, | |
25932 | { SWIG_PY_INT, (char *)"SYS_COLOUR_DESKTOP", (long) wxSYS_COLOUR_DESKTOP, 0, 0, 0}, | |
25933 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVECAPTION", (long) wxSYS_COLOUR_ACTIVECAPTION, 0, 0, 0}, | |
25934 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTION", (long) wxSYS_COLOUR_INACTIVECAPTION, 0, 0, 0}, | |
25935 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENU", (long) wxSYS_COLOUR_MENU, 0, 0, 0}, | |
25936 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOW", (long) wxSYS_COLOUR_WINDOW, 0, 0, 0}, | |
25937 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWFRAME", (long) wxSYS_COLOUR_WINDOWFRAME, 0, 0, 0}, | |
25938 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUTEXT", (long) wxSYS_COLOUR_MENUTEXT, 0, 0, 0}, | |
25939 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWTEXT", (long) wxSYS_COLOUR_WINDOWTEXT, 0, 0, 0}, | |
25940 | { SWIG_PY_INT, (char *)"SYS_COLOUR_CAPTIONTEXT", (long) wxSYS_COLOUR_CAPTIONTEXT, 0, 0, 0}, | |
25941 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVEBORDER", (long) wxSYS_COLOUR_ACTIVEBORDER, 0, 0, 0}, | |
25942 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVEBORDER", (long) wxSYS_COLOUR_INACTIVEBORDER, 0, 0, 0}, | |
25943 | { SWIG_PY_INT, (char *)"SYS_COLOUR_APPWORKSPACE", (long) wxSYS_COLOUR_APPWORKSPACE, 0, 0, 0}, | |
25944 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHT", (long) wxSYS_COLOUR_HIGHLIGHT, 0, 0, 0}, | |
25945 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHTTEXT", (long) wxSYS_COLOUR_HIGHLIGHTTEXT, 0, 0, 0}, | |
25946 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNFACE", (long) wxSYS_COLOUR_BTNFACE, 0, 0, 0}, | |
25947 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DFACE", (long) wxSYS_COLOUR_3DFACE, 0, 0, 0}, | |
25948 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNSHADOW", (long) wxSYS_COLOUR_BTNSHADOW, 0, 0, 0}, | |
25949 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DSHADOW", (long) wxSYS_COLOUR_3DSHADOW, 0, 0, 0}, | |
25950 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRAYTEXT", (long) wxSYS_COLOUR_GRAYTEXT, 0, 0, 0}, | |
25951 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNTEXT", (long) wxSYS_COLOUR_BTNTEXT, 0, 0, 0}, | |
25952 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTIONTEXT", (long) wxSYS_COLOUR_INACTIVECAPTIONTEXT, 0, 0, 0}, | |
25953 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHIGHLIGHT", (long) wxSYS_COLOUR_BTNHIGHLIGHT, 0, 0, 0}, | |
25954 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHILIGHT", (long) wxSYS_COLOUR_BTNHILIGHT, 0, 0, 0}, | |
25955 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHIGHLIGHT", (long) wxSYS_COLOUR_3DHIGHLIGHT, 0, 0, 0}, | |
25956 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHILIGHT", (long) wxSYS_COLOUR_3DHILIGHT, 0, 0, 0}, | |
25957 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DDKSHADOW", (long) wxSYS_COLOUR_3DDKSHADOW, 0, 0, 0}, | |
25958 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DLIGHT", (long) wxSYS_COLOUR_3DLIGHT, 0, 0, 0}, | |
25959 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOTEXT", (long) wxSYS_COLOUR_INFOTEXT, 0, 0, 0}, | |
25960 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOBK", (long) wxSYS_COLOUR_INFOBK, 0, 0, 0}, | |
25961 | { SWIG_PY_INT, (char *)"SYS_COLOUR_LISTBOX", (long) wxSYS_COLOUR_LISTBOX, 0, 0, 0}, | |
25962 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HOTLIGHT", (long) wxSYS_COLOUR_HOTLIGHT, 0, 0, 0}, | |
25963 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTACTIVECAPTION, 0, 0, 0}, | |
25964 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTINACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION, 0, 0, 0}, | |
25965 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUHILIGHT", (long) wxSYS_COLOUR_MENUHILIGHT, 0, 0, 0}, | |
25966 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUBAR", (long) wxSYS_COLOUR_MENUBAR, 0, 0, 0}, | |
25967 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MAX", (long) wxSYS_COLOUR_MAX, 0, 0, 0}, | |
25968 | { SWIG_PY_INT, (char *)"SYS_MOUSE_BUTTONS", (long) wxSYS_MOUSE_BUTTONS, 0, 0, 0}, | |
25969 | { SWIG_PY_INT, (char *)"SYS_BORDER_X", (long) wxSYS_BORDER_X, 0, 0, 0}, | |
25970 | { SWIG_PY_INT, (char *)"SYS_BORDER_Y", (long) wxSYS_BORDER_Y, 0, 0, 0}, | |
25971 | { SWIG_PY_INT, (char *)"SYS_CURSOR_X", (long) wxSYS_CURSOR_X, 0, 0, 0}, | |
25972 | { SWIG_PY_INT, (char *)"SYS_CURSOR_Y", (long) wxSYS_CURSOR_Y, 0, 0, 0}, | |
25973 | { SWIG_PY_INT, (char *)"SYS_DCLICK_X", (long) wxSYS_DCLICK_X, 0, 0, 0}, | |
25974 | { SWIG_PY_INT, (char *)"SYS_DCLICK_Y", (long) wxSYS_DCLICK_Y, 0, 0, 0}, | |
25975 | { SWIG_PY_INT, (char *)"SYS_DRAG_X", (long) wxSYS_DRAG_X, 0, 0, 0}, | |
25976 | { SWIG_PY_INT, (char *)"SYS_DRAG_Y", (long) wxSYS_DRAG_Y, 0, 0, 0}, | |
25977 | { SWIG_PY_INT, (char *)"SYS_EDGE_X", (long) wxSYS_EDGE_X, 0, 0, 0}, | |
25978 | { SWIG_PY_INT, (char *)"SYS_EDGE_Y", (long) wxSYS_EDGE_Y, 0, 0, 0}, | |
25979 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_X", (long) wxSYS_HSCROLL_ARROW_X, 0, 0, 0}, | |
25980 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_Y", (long) wxSYS_HSCROLL_ARROW_Y, 0, 0, 0}, | |
25981 | { SWIG_PY_INT, (char *)"SYS_HTHUMB_X", (long) wxSYS_HTHUMB_X, 0, 0, 0}, | |
25982 | { SWIG_PY_INT, (char *)"SYS_ICON_X", (long) wxSYS_ICON_X, 0, 0, 0}, | |
25983 | { SWIG_PY_INT, (char *)"SYS_ICON_Y", (long) wxSYS_ICON_Y, 0, 0, 0}, | |
25984 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_X", (long) wxSYS_ICONSPACING_X, 0, 0, 0}, | |
25985 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_Y", (long) wxSYS_ICONSPACING_Y, 0, 0, 0}, | |
25986 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_X", (long) wxSYS_WINDOWMIN_X, 0, 0, 0}, | |
25987 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_Y", (long) wxSYS_WINDOWMIN_Y, 0, 0, 0}, | |
25988 | { SWIG_PY_INT, (char *)"SYS_SCREEN_X", (long) wxSYS_SCREEN_X, 0, 0, 0}, | |
25989 | { SWIG_PY_INT, (char *)"SYS_SCREEN_Y", (long) wxSYS_SCREEN_Y, 0, 0, 0}, | |
25990 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_X", (long) wxSYS_FRAMESIZE_X, 0, 0, 0}, | |
25991 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_Y", (long) wxSYS_FRAMESIZE_Y, 0, 0, 0}, | |
25992 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_X", (long) wxSYS_SMALLICON_X, 0, 0, 0}, | |
25993 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_Y", (long) wxSYS_SMALLICON_Y, 0, 0, 0}, | |
25994 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_Y", (long) wxSYS_HSCROLL_Y, 0, 0, 0}, | |
25995 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_X", (long) wxSYS_VSCROLL_X, 0, 0, 0}, | |
25996 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_X", (long) wxSYS_VSCROLL_ARROW_X, 0, 0, 0}, | |
25997 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_Y", (long) wxSYS_VSCROLL_ARROW_Y, 0, 0, 0}, | |
25998 | { SWIG_PY_INT, (char *)"SYS_VTHUMB_Y", (long) wxSYS_VTHUMB_Y, 0, 0, 0}, | |
25999 | { SWIG_PY_INT, (char *)"SYS_CAPTION_Y", (long) wxSYS_CAPTION_Y, 0, 0, 0}, | |
26000 | { SWIG_PY_INT, (char *)"SYS_MENU_Y", (long) wxSYS_MENU_Y, 0, 0, 0}, | |
26001 | { SWIG_PY_INT, (char *)"SYS_NETWORK_PRESENT", (long) wxSYS_NETWORK_PRESENT, 0, 0, 0}, | |
26002 | { SWIG_PY_INT, (char *)"SYS_PENWINDOWS_PRESENT", (long) wxSYS_PENWINDOWS_PRESENT, 0, 0, 0}, | |
26003 | { SWIG_PY_INT, (char *)"SYS_SHOW_SOUNDS", (long) wxSYS_SHOW_SOUNDS, 0, 0, 0}, | |
26004 | { SWIG_PY_INT, (char *)"SYS_SWAP_BUTTONS", (long) wxSYS_SWAP_BUTTONS, 0, 0, 0}, | |
26005 | { SWIG_PY_INT, (char *)"SYS_CAN_DRAW_FRAME_DECORATIONS", (long) wxSYS_CAN_DRAW_FRAME_DECORATIONS, 0, 0, 0}, | |
26006 | { SWIG_PY_INT, (char *)"SYS_CAN_ICONIZE_FRAME", (long) wxSYS_CAN_ICONIZE_FRAME, 0, 0, 0}, | |
26007 | { SWIG_PY_INT, (char *)"SYS_SCREEN_NONE", (long) wxSYS_SCREEN_NONE, 0, 0, 0}, | |
26008 | { SWIG_PY_INT, (char *)"SYS_SCREEN_TINY", (long) wxSYS_SCREEN_TINY, 0, 0, 0}, | |
26009 | { SWIG_PY_INT, (char *)"SYS_SCREEN_PDA", (long) wxSYS_SCREEN_PDA, 0, 0, 0}, | |
26010 | { SWIG_PY_INT, (char *)"SYS_SCREEN_SMALL", (long) wxSYS_SCREEN_SMALL, 0, 0, 0}, | |
26011 | { SWIG_PY_INT, (char *)"SYS_SCREEN_DESKTOP", (long) wxSYS_SCREEN_DESKTOP, 0, 0, 0}, | |
26012 | { SWIG_PY_INT, (char *)"SHUTDOWN_POWEROFF", (long) wxSHUTDOWN_POWEROFF, 0, 0, 0}, | |
26013 | { SWIG_PY_INT, (char *)"SHUTDOWN_REBOOT", (long) wxSHUTDOWN_REBOOT, 0, 0, 0}, | |
26014 | { SWIG_PY_INT, (char *)"TIMER_CONTINUOUS", (long) wxTIMER_CONTINUOUS, 0, 0, 0}, | |
26015 | { SWIG_PY_INT, (char *)"TIMER_ONE_SHOT", (long) wxTIMER_ONE_SHOT, 0, 0, 0}, | |
26016 | { SWIG_PY_INT, (char *)"wxEVT_TIMER", (long) wxEVT_TIMER, 0, 0, 0}, | |
26017 | { SWIG_PY_INT, (char *)"LOG_FatalError", (long) wxLOG_FatalError, 0, 0, 0}, | |
26018 | { SWIG_PY_INT, (char *)"LOG_Error", (long) wxLOG_Error, 0, 0, 0}, | |
26019 | { SWIG_PY_INT, (char *)"LOG_Warning", (long) wxLOG_Warning, 0, 0, 0}, | |
26020 | { SWIG_PY_INT, (char *)"LOG_Message", (long) wxLOG_Message, 0, 0, 0}, | |
26021 | { SWIG_PY_INT, (char *)"LOG_Status", (long) wxLOG_Status, 0, 0, 0}, | |
26022 | { SWIG_PY_INT, (char *)"LOG_Info", (long) wxLOG_Info, 0, 0, 0}, | |
26023 | { SWIG_PY_INT, (char *)"LOG_Debug", (long) wxLOG_Debug, 0, 0, 0}, | |
26024 | { SWIG_PY_INT, (char *)"LOG_Trace", (long) wxLOG_Trace, 0, 0, 0}, | |
26025 | { SWIG_PY_INT, (char *)"LOG_Progress", (long) wxLOG_Progress, 0, 0, 0}, | |
26026 | { SWIG_PY_INT, (char *)"LOG_User", (long) wxLOG_User, 0, 0, 0}, | |
26027 | { SWIG_PY_INT, (char *)"LOG_Max", (long) wxLOG_Max, 0, 0, 0}, | |
26028 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, | |
26029 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
26030 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
26031 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
26032 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
26033 | { SWIG_PY_INT, (char *)"TraceMemAlloc", (long) 0x0001, 0, 0, 0}, | |
26034 | { SWIG_PY_INT, (char *)"TraceMessages", (long) 0x0002, 0, 0, 0}, | |
26035 | { SWIG_PY_INT, (char *)"TraceResAlloc", (long) 0x0004, 0, 0, 0}, | |
26036 | { SWIG_PY_INT, (char *)"TraceRefCount", (long) 0x0008, 0, 0, 0}, | |
26037 | { SWIG_PY_INT, (char *)"TraceOleCalls", (long) 0x0100, 0, 0, 0}, | |
26038 | { SWIG_PY_INT, (char *)"PROCESS_DEFAULT", (long) wxPROCESS_DEFAULT, 0, 0, 0}, | |
26039 | { SWIG_PY_INT, (char *)"PROCESS_REDIRECT", (long) wxPROCESS_REDIRECT, 0, 0, 0}, | |
26040 | { SWIG_PY_INT, (char *)"KILL_OK", (long) wxKILL_OK, 0, 0, 0}, | |
26041 | { SWIG_PY_INT, (char *)"KILL_BAD_SIGNAL", (long) wxKILL_BAD_SIGNAL, 0, 0, 0}, | |
26042 | { SWIG_PY_INT, (char *)"KILL_ACCESS_DENIED", (long) wxKILL_ACCESS_DENIED, 0, 0, 0}, | |
26043 | { SWIG_PY_INT, (char *)"KILL_NO_PROCESS", (long) wxKILL_NO_PROCESS, 0, 0, 0}, | |
26044 | { SWIG_PY_INT, (char *)"KILL_ERROR", (long) wxKILL_ERROR, 0, 0, 0}, | |
26045 | { SWIG_PY_INT, (char *)"SIGNONE", (long) wxSIGNONE, 0, 0, 0}, | |
26046 | { SWIG_PY_INT, (char *)"SIGHUP", (long) wxSIGHUP, 0, 0, 0}, | |
26047 | { SWIG_PY_INT, (char *)"SIGINT", (long) wxSIGINT, 0, 0, 0}, | |
26048 | { SWIG_PY_INT, (char *)"SIGQUIT", (long) wxSIGQUIT, 0, 0, 0}, | |
26049 | { SWIG_PY_INT, (char *)"SIGILL", (long) wxSIGILL, 0, 0, 0}, | |
26050 | { SWIG_PY_INT, (char *)"SIGTRAP", (long) wxSIGTRAP, 0, 0, 0}, | |
26051 | { SWIG_PY_INT, (char *)"SIGABRT", (long) wxSIGABRT, 0, 0, 0}, | |
26052 | { SWIG_PY_INT, (char *)"SIGIOT", (long) wxSIGIOT, 0, 0, 0}, | |
26053 | { SWIG_PY_INT, (char *)"SIGEMT", (long) wxSIGEMT, 0, 0, 0}, | |
26054 | { SWIG_PY_INT, (char *)"SIGFPE", (long) wxSIGFPE, 0, 0, 0}, | |
26055 | { SWIG_PY_INT, (char *)"SIGKILL", (long) wxSIGKILL, 0, 0, 0}, | |
26056 | { SWIG_PY_INT, (char *)"SIGBUS", (long) wxSIGBUS, 0, 0, 0}, | |
26057 | { SWIG_PY_INT, (char *)"SIGSEGV", (long) wxSIGSEGV, 0, 0, 0}, | |
26058 | { SWIG_PY_INT, (char *)"SIGSYS", (long) wxSIGSYS, 0, 0, 0}, | |
26059 | { SWIG_PY_INT, (char *)"SIGPIPE", (long) wxSIGPIPE, 0, 0, 0}, | |
26060 | { SWIG_PY_INT, (char *)"SIGALRM", (long) wxSIGALRM, 0, 0, 0}, | |
26061 | { SWIG_PY_INT, (char *)"SIGTERM", (long) wxSIGTERM, 0, 0, 0}, | |
26062 | { SWIG_PY_INT, (char *)"wxEVT_END_PROCESS", (long) wxEVT_END_PROCESS, 0, 0, 0}, | |
26063 | { SWIG_PY_INT, (char *)"EXEC_ASYNC", (long) wxEXEC_ASYNC, 0, 0, 0}, | |
26064 | { SWIG_PY_INT, (char *)"EXEC_SYNC", (long) wxEXEC_SYNC, 0, 0, 0}, | |
26065 | { SWIG_PY_INT, (char *)"EXEC_NOHIDE", (long) wxEXEC_NOHIDE, 0, 0, 0}, | |
26066 | { SWIG_PY_INT, (char *)"EXEC_MAKE_GROUP_LEADER", (long) wxEXEC_MAKE_GROUP_LEADER, 0, 0, 0}, | |
26067 | { SWIG_PY_INT, (char *)"JOYSTICK1", (long) wxJOYSTICK1, 0, 0, 0}, | |
26068 | { SWIG_PY_INT, (char *)"JOYSTICK2", (long) wxJOYSTICK2, 0, 0, 0}, | |
26069 | { SWIG_PY_INT, (char *)"JOY_BUTTON_ANY", (long) wxJOY_BUTTON_ANY, 0, 0, 0}, | |
26070 | { SWIG_PY_INT, (char *)"JOY_BUTTON1", (long) wxJOY_BUTTON1, 0, 0, 0}, | |
26071 | { SWIG_PY_INT, (char *)"JOY_BUTTON2", (long) wxJOY_BUTTON2, 0, 0, 0}, | |
26072 | { SWIG_PY_INT, (char *)"JOY_BUTTON3", (long) wxJOY_BUTTON3, 0, 0, 0}, | |
26073 | { SWIG_PY_INT, (char *)"JOY_BUTTON4", (long) wxJOY_BUTTON4, 0, 0, 0}, | |
26074 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_DOWN", (long) wxEVT_JOY_BUTTON_DOWN, 0, 0, 0}, | |
26075 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_UP", (long) wxEVT_JOY_BUTTON_UP, 0, 0, 0}, | |
26076 | { SWIG_PY_INT, (char *)"wxEVT_JOY_MOVE", (long) wxEVT_JOY_MOVE, 0, 0, 0}, | |
26077 | { SWIG_PY_INT, (char *)"wxEVT_JOY_ZMOVE", (long) wxEVT_JOY_ZMOVE, 0, 0, 0}, | |
26078 | { SWIG_PY_INT, (char *)"MAILCAP_STANDARD", (long) wxMAILCAP_STANDARD, 0, 0, 0}, | |
26079 | { SWIG_PY_INT, (char *)"MAILCAP_NETSCAPE", (long) wxMAILCAP_NETSCAPE, 0, 0, 0}, | |
26080 | { SWIG_PY_INT, (char *)"MAILCAP_KDE", (long) wxMAILCAP_KDE, 0, 0, 0}, | |
26081 | { SWIG_PY_INT, (char *)"MAILCAP_GNOME", (long) wxMAILCAP_GNOME, 0, 0, 0}, | |
26082 | { SWIG_PY_INT, (char *)"MAILCAP_ALL", (long) wxMAILCAP_ALL, 0, 0, 0}, | |
26083 | { SWIG_PY_INT, (char *)"CONFIG_USE_LOCAL_FILE", (long) wxCONFIG_USE_LOCAL_FILE, 0, 0, 0}, | |
26084 | { SWIG_PY_INT, (char *)"CONFIG_USE_GLOBAL_FILE", (long) wxCONFIG_USE_GLOBAL_FILE, 0, 0, 0}, | |
26085 | { SWIG_PY_INT, (char *)"CONFIG_USE_RELATIVE_PATH", (long) wxCONFIG_USE_RELATIVE_PATH, 0, 0, 0}, | |
26086 | { SWIG_PY_INT, (char *)"CONFIG_USE_NO_ESCAPE_CHARACTERS", (long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS, 0, 0, 0}, | |
26087 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Unknown", (long) wxConfigBase::Type_Unknown, 0, 0, 0}, | |
26088 | { SWIG_PY_INT, (char *)"ConfigBase_Type_String", (long) wxConfigBase::Type_String, 0, 0, 0}, | |
26089 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Boolean", (long) wxConfigBase::Type_Boolean, 0, 0, 0}, | |
26090 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Integer", (long) wxConfigBase::Type_Integer, 0, 0, 0}, | |
26091 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Float", (long) wxConfigBase::Type_Float, 0, 0, 0}, | |
26092 | { SWIG_PY_INT, (char *)"DateTime_Local", (long) wxDateTime::Local, 0, 0, 0}, | |
26093 | { SWIG_PY_INT, (char *)"DateTime_GMT_12", (long) wxDateTime::GMT_12, 0, 0, 0}, | |
26094 | { SWIG_PY_INT, (char *)"DateTime_GMT_11", (long) wxDateTime::GMT_11, 0, 0, 0}, | |
26095 | { SWIG_PY_INT, (char *)"DateTime_GMT_10", (long) wxDateTime::GMT_10, 0, 0, 0}, | |
26096 | { SWIG_PY_INT, (char *)"DateTime_GMT_9", (long) wxDateTime::GMT_9, 0, 0, 0}, | |
26097 | { SWIG_PY_INT, (char *)"DateTime_GMT_8", (long) wxDateTime::GMT_8, 0, 0, 0}, | |
26098 | { SWIG_PY_INT, (char *)"DateTime_GMT_7", (long) wxDateTime::GMT_7, 0, 0, 0}, | |
26099 | { SWIG_PY_INT, (char *)"DateTime_GMT_6", (long) wxDateTime::GMT_6, 0, 0, 0}, | |
26100 | { SWIG_PY_INT, (char *)"DateTime_GMT_5", (long) wxDateTime::GMT_5, 0, 0, 0}, | |
26101 | { SWIG_PY_INT, (char *)"DateTime_GMT_4", (long) wxDateTime::GMT_4, 0, 0, 0}, | |
26102 | { SWIG_PY_INT, (char *)"DateTime_GMT_3", (long) wxDateTime::GMT_3, 0, 0, 0}, | |
26103 | { SWIG_PY_INT, (char *)"DateTime_GMT_2", (long) wxDateTime::GMT_2, 0, 0, 0}, | |
26104 | { SWIG_PY_INT, (char *)"DateTime_GMT_1", (long) wxDateTime::GMT_1, 0, 0, 0}, | |
26105 | { SWIG_PY_INT, (char *)"DateTime_GMT0", (long) wxDateTime::GMT0, 0, 0, 0}, | |
26106 | { SWIG_PY_INT, (char *)"DateTime_GMT1", (long) wxDateTime::GMT1, 0, 0, 0}, | |
26107 | { SWIG_PY_INT, (char *)"DateTime_GMT2", (long) wxDateTime::GMT2, 0, 0, 0}, | |
26108 | { SWIG_PY_INT, (char *)"DateTime_GMT3", (long) wxDateTime::GMT3, 0, 0, 0}, | |
26109 | { SWIG_PY_INT, (char *)"DateTime_GMT4", (long) wxDateTime::GMT4, 0, 0, 0}, | |
26110 | { SWIG_PY_INT, (char *)"DateTime_GMT5", (long) wxDateTime::GMT5, 0, 0, 0}, | |
26111 | { SWIG_PY_INT, (char *)"DateTime_GMT6", (long) wxDateTime::GMT6, 0, 0, 0}, | |
26112 | { SWIG_PY_INT, (char *)"DateTime_GMT7", (long) wxDateTime::GMT7, 0, 0, 0}, | |
26113 | { SWIG_PY_INT, (char *)"DateTime_GMT8", (long) wxDateTime::GMT8, 0, 0, 0}, | |
26114 | { SWIG_PY_INT, (char *)"DateTime_GMT9", (long) wxDateTime::GMT9, 0, 0, 0}, | |
26115 | { SWIG_PY_INT, (char *)"DateTime_GMT10", (long) wxDateTime::GMT10, 0, 0, 0}, | |
26116 | { SWIG_PY_INT, (char *)"DateTime_GMT11", (long) wxDateTime::GMT11, 0, 0, 0}, | |
26117 | { SWIG_PY_INT, (char *)"DateTime_GMT12", (long) wxDateTime::GMT12, 0, 0, 0}, | |
26118 | { SWIG_PY_INT, (char *)"DateTime_WET", (long) wxDateTime::WET, 0, 0, 0}, | |
26119 | { SWIG_PY_INT, (char *)"DateTime_WEST", (long) wxDateTime::WEST, 0, 0, 0}, | |
26120 | { SWIG_PY_INT, (char *)"DateTime_CET", (long) wxDateTime::CET, 0, 0, 0}, | |
26121 | { SWIG_PY_INT, (char *)"DateTime_CEST", (long) wxDateTime::CEST, 0, 0, 0}, | |
26122 | { SWIG_PY_INT, (char *)"DateTime_EET", (long) wxDateTime::EET, 0, 0, 0}, | |
26123 | { SWIG_PY_INT, (char *)"DateTime_EEST", (long) wxDateTime::EEST, 0, 0, 0}, | |
26124 | { SWIG_PY_INT, (char *)"DateTime_MSK", (long) wxDateTime::MSK, 0, 0, 0}, | |
26125 | { SWIG_PY_INT, (char *)"DateTime_MSD", (long) wxDateTime::MSD, 0, 0, 0}, | |
26126 | { SWIG_PY_INT, (char *)"DateTime_AST", (long) wxDateTime::AST, 0, 0, 0}, | |
26127 | { SWIG_PY_INT, (char *)"DateTime_ADT", (long) wxDateTime::ADT, 0, 0, 0}, | |
26128 | { SWIG_PY_INT, (char *)"DateTime_EST", (long) wxDateTime::EST, 0, 0, 0}, | |
26129 | { SWIG_PY_INT, (char *)"DateTime_EDT", (long) wxDateTime::EDT, 0, 0, 0}, | |
26130 | { SWIG_PY_INT, (char *)"DateTime_CST", (long) wxDateTime::CST, 0, 0, 0}, | |
26131 | { SWIG_PY_INT, (char *)"DateTime_CDT", (long) wxDateTime::CDT, 0, 0, 0}, | |
26132 | { SWIG_PY_INT, (char *)"DateTime_MST", (long) wxDateTime::MST, 0, 0, 0}, | |
26133 | { SWIG_PY_INT, (char *)"DateTime_MDT", (long) wxDateTime::MDT, 0, 0, 0}, | |
26134 | { SWIG_PY_INT, (char *)"DateTime_PST", (long) wxDateTime::PST, 0, 0, 0}, | |
26135 | { SWIG_PY_INT, (char *)"DateTime_PDT", (long) wxDateTime::PDT, 0, 0, 0}, | |
26136 | { SWIG_PY_INT, (char *)"DateTime_HST", (long) wxDateTime::HST, 0, 0, 0}, | |
26137 | { SWIG_PY_INT, (char *)"DateTime_AKST", (long) wxDateTime::AKST, 0, 0, 0}, | |
26138 | { SWIG_PY_INT, (char *)"DateTime_AKDT", (long) wxDateTime::AKDT, 0, 0, 0}, | |
26139 | { SWIG_PY_INT, (char *)"DateTime_A_WST", (long) wxDateTime::A_WST, 0, 0, 0}, | |
26140 | { SWIG_PY_INT, (char *)"DateTime_A_CST", (long) wxDateTime::A_CST, 0, 0, 0}, | |
26141 | { SWIG_PY_INT, (char *)"DateTime_A_EST", (long) wxDateTime::A_EST, 0, 0, 0}, | |
26142 | { SWIG_PY_INT, (char *)"DateTime_A_ESST", (long) wxDateTime::A_ESST, 0, 0, 0}, | |
26143 | { SWIG_PY_INT, (char *)"DateTime_UTC", (long) wxDateTime::UTC, 0, 0, 0}, | |
26144 | { SWIG_PY_INT, (char *)"DateTime_Gregorian", (long) wxDateTime::Gregorian, 0, 0, 0}, | |
26145 | { SWIG_PY_INT, (char *)"DateTime_Julian", (long) wxDateTime::Julian, 0, 0, 0}, | |
26146 | { SWIG_PY_INT, (char *)"DateTime_Gr_Unknown", (long) wxDateTime::Gr_Unknown, 0, 0, 0}, | |
26147 | { SWIG_PY_INT, (char *)"DateTime_Gr_Standard", (long) wxDateTime::Gr_Standard, 0, 0, 0}, | |
26148 | { SWIG_PY_INT, (char *)"DateTime_Gr_Alaska", (long) wxDateTime::Gr_Alaska, 0, 0, 0}, | |
26149 | { SWIG_PY_INT, (char *)"DateTime_Gr_Albania", (long) wxDateTime::Gr_Albania, 0, 0, 0}, | |
26150 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria", (long) wxDateTime::Gr_Austria, 0, 0, 0}, | |
26151 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Brixen", (long) wxDateTime::Gr_Austria_Brixen, 0, 0, 0}, | |
26152 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Salzburg", (long) wxDateTime::Gr_Austria_Salzburg, 0, 0, 0}, | |
26153 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Tyrol", (long) wxDateTime::Gr_Austria_Tyrol, 0, 0, 0}, | |
26154 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Carinthia", (long) wxDateTime::Gr_Austria_Carinthia, 0, 0, 0}, | |
26155 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Styria", (long) wxDateTime::Gr_Austria_Styria, 0, 0, 0}, | |
26156 | { SWIG_PY_INT, (char *)"DateTime_Gr_Belgium", (long) wxDateTime::Gr_Belgium, 0, 0, 0}, | |
26157 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria", (long) wxDateTime::Gr_Bulgaria, 0, 0, 0}, | |
26158 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_1", (long) wxDateTime::Gr_Bulgaria_1, 0, 0, 0}, | |
26159 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_2", (long) wxDateTime::Gr_Bulgaria_2, 0, 0, 0}, | |
26160 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_3", (long) wxDateTime::Gr_Bulgaria_3, 0, 0, 0}, | |
26161 | { SWIG_PY_INT, (char *)"DateTime_Gr_Canada", (long) wxDateTime::Gr_Canada, 0, 0, 0}, | |
26162 | { SWIG_PY_INT, (char *)"DateTime_Gr_China", (long) wxDateTime::Gr_China, 0, 0, 0}, | |
26163 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_1", (long) wxDateTime::Gr_China_1, 0, 0, 0}, | |
26164 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_2", (long) wxDateTime::Gr_China_2, 0, 0, 0}, | |
26165 | { SWIG_PY_INT, (char *)"DateTime_Gr_Czechoslovakia", (long) wxDateTime::Gr_Czechoslovakia, 0, 0, 0}, | |
26166 | { SWIG_PY_INT, (char *)"DateTime_Gr_Denmark", (long) wxDateTime::Gr_Denmark, 0, 0, 0}, | |
26167 | { SWIG_PY_INT, (char *)"DateTime_Gr_Egypt", (long) wxDateTime::Gr_Egypt, 0, 0, 0}, | |
26168 | { SWIG_PY_INT, (char *)"DateTime_Gr_Estonia", (long) wxDateTime::Gr_Estonia, 0, 0, 0}, | |
26169 | { SWIG_PY_INT, (char *)"DateTime_Gr_Finland", (long) wxDateTime::Gr_Finland, 0, 0, 0}, | |
26170 | { SWIG_PY_INT, (char *)"DateTime_Gr_France", (long) wxDateTime::Gr_France, 0, 0, 0}, | |
26171 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Alsace", (long) wxDateTime::Gr_France_Alsace, 0, 0, 0}, | |
26172 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Lorraine", (long) wxDateTime::Gr_France_Lorraine, 0, 0, 0}, | |
26173 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Strasbourg", (long) wxDateTime::Gr_France_Strasbourg, 0, 0, 0}, | |
26174 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany", (long) wxDateTime::Gr_Germany, 0, 0, 0}, | |
26175 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Catholic", (long) wxDateTime::Gr_Germany_Catholic, 0, 0, 0}, | |
26176 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Prussia", (long) wxDateTime::Gr_Germany_Prussia, 0, 0, 0}, | |
26177 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Protestant", (long) wxDateTime::Gr_Germany_Protestant, 0, 0, 0}, | |
26178 | { SWIG_PY_INT, (char *)"DateTime_Gr_GreatBritain", (long) wxDateTime::Gr_GreatBritain, 0, 0, 0}, | |
26179 | { SWIG_PY_INT, (char *)"DateTime_Gr_Greece", (long) wxDateTime::Gr_Greece, 0, 0, 0}, | |
26180 | { SWIG_PY_INT, (char *)"DateTime_Gr_Hungary", (long) wxDateTime::Gr_Hungary, 0, 0, 0}, | |
26181 | { SWIG_PY_INT, (char *)"DateTime_Gr_Ireland", (long) wxDateTime::Gr_Ireland, 0, 0, 0}, | |
26182 | { SWIG_PY_INT, (char *)"DateTime_Gr_Italy", (long) wxDateTime::Gr_Italy, 0, 0, 0}, | |
26183 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan", (long) wxDateTime::Gr_Japan, 0, 0, 0}, | |
26184 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_1", (long) wxDateTime::Gr_Japan_1, 0, 0, 0}, | |
26185 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_2", (long) wxDateTime::Gr_Japan_2, 0, 0, 0}, | |
26186 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_3", (long) wxDateTime::Gr_Japan_3, 0, 0, 0}, | |
26187 | { SWIG_PY_INT, (char *)"DateTime_Gr_Latvia", (long) wxDateTime::Gr_Latvia, 0, 0, 0}, | |
26188 | { SWIG_PY_INT, (char *)"DateTime_Gr_Lithuania", (long) wxDateTime::Gr_Lithuania, 0, 0, 0}, | |
26189 | { SWIG_PY_INT, (char *)"DateTime_Gr_Luxemburg", (long) wxDateTime::Gr_Luxemburg, 0, 0, 0}, | |
26190 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands", (long) wxDateTime::Gr_Netherlands, 0, 0, 0}, | |
26191 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Groningen", (long) wxDateTime::Gr_Netherlands_Groningen, 0, 0, 0}, | |
26192 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Gelderland", (long) wxDateTime::Gr_Netherlands_Gelderland, 0, 0, 0}, | |
26193 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Utrecht", (long) wxDateTime::Gr_Netherlands_Utrecht, 0, 0, 0}, | |
26194 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Friesland", (long) wxDateTime::Gr_Netherlands_Friesland, 0, 0, 0}, | |
26195 | { SWIG_PY_INT, (char *)"DateTime_Gr_Norway", (long) wxDateTime::Gr_Norway, 0, 0, 0}, | |
26196 | { SWIG_PY_INT, (char *)"DateTime_Gr_Poland", (long) wxDateTime::Gr_Poland, 0, 0, 0}, | |
26197 | { SWIG_PY_INT, (char *)"DateTime_Gr_Portugal", (long) wxDateTime::Gr_Portugal, 0, 0, 0}, | |
26198 | { SWIG_PY_INT, (char *)"DateTime_Gr_Romania", (long) wxDateTime::Gr_Romania, 0, 0, 0}, | |
26199 | { SWIG_PY_INT, (char *)"DateTime_Gr_Russia", (long) wxDateTime::Gr_Russia, 0, 0, 0}, | |
26200 | { SWIG_PY_INT, (char *)"DateTime_Gr_Scotland", (long) wxDateTime::Gr_Scotland, 0, 0, 0}, | |
26201 | { SWIG_PY_INT, (char *)"DateTime_Gr_Spain", (long) wxDateTime::Gr_Spain, 0, 0, 0}, | |
26202 | { SWIG_PY_INT, (char *)"DateTime_Gr_Sweden", (long) wxDateTime::Gr_Sweden, 0, 0, 0}, | |
26203 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland", (long) wxDateTime::Gr_Switzerland, 0, 0, 0}, | |
26204 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Catholic", (long) wxDateTime::Gr_Switzerland_Catholic, 0, 0, 0}, | |
26205 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Protestant", (long) wxDateTime::Gr_Switzerland_Protestant, 0, 0, 0}, | |
26206 | { SWIG_PY_INT, (char *)"DateTime_Gr_Turkey", (long) wxDateTime::Gr_Turkey, 0, 0, 0}, | |
26207 | { SWIG_PY_INT, (char *)"DateTime_Gr_USA", (long) wxDateTime::Gr_USA, 0, 0, 0}, | |
26208 | { SWIG_PY_INT, (char *)"DateTime_Gr_Wales", (long) wxDateTime::Gr_Wales, 0, 0, 0}, | |
26209 | { SWIG_PY_INT, (char *)"DateTime_Gr_Yugoslavia", (long) wxDateTime::Gr_Yugoslavia, 0, 0, 0}, | |
26210 | { SWIG_PY_INT, (char *)"DateTime_Country_Unknown", (long) wxDateTime::Country_Unknown, 0, 0, 0}, | |
26211 | { SWIG_PY_INT, (char *)"DateTime_Country_Default", (long) wxDateTime::Country_Default, 0, 0, 0}, | |
26212 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_Start", (long) wxDateTime::Country_WesternEurope_Start, 0, 0, 0}, | |
26213 | { SWIG_PY_INT, (char *)"DateTime_Country_EEC", (long) wxDateTime::Country_EEC, 0, 0, 0}, | |
26214 | { SWIG_PY_INT, (char *)"DateTime_France", (long) wxDateTime::France, 0, 0, 0}, | |
26215 | { SWIG_PY_INT, (char *)"DateTime_Germany", (long) wxDateTime::Germany, 0, 0, 0}, | |
26216 | { SWIG_PY_INT, (char *)"DateTime_UK", (long) wxDateTime::UK, 0, 0, 0}, | |
26217 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_End", (long) wxDateTime::Country_WesternEurope_End, 0, 0, 0}, | |
26218 | { SWIG_PY_INT, (char *)"DateTime_Russia", (long) wxDateTime::Russia, 0, 0, 0}, | |
26219 | { SWIG_PY_INT, (char *)"DateTime_USA", (long) wxDateTime::USA, 0, 0, 0}, | |
26220 | { SWIG_PY_INT, (char *)"DateTime_Jan", (long) wxDateTime::Jan, 0, 0, 0}, | |
26221 | { SWIG_PY_INT, (char *)"DateTime_Feb", (long) wxDateTime::Feb, 0, 0, 0}, | |
26222 | { SWIG_PY_INT, (char *)"DateTime_Mar", (long) wxDateTime::Mar, 0, 0, 0}, | |
26223 | { SWIG_PY_INT, (char *)"DateTime_Apr", (long) wxDateTime::Apr, 0, 0, 0}, | |
26224 | { SWIG_PY_INT, (char *)"DateTime_May", (long) wxDateTime::May, 0, 0, 0}, | |
26225 | { SWIG_PY_INT, (char *)"DateTime_Jun", (long) wxDateTime::Jun, 0, 0, 0}, | |
26226 | { SWIG_PY_INT, (char *)"DateTime_Jul", (long) wxDateTime::Jul, 0, 0, 0}, | |
26227 | { SWIG_PY_INT, (char *)"DateTime_Aug", (long) wxDateTime::Aug, 0, 0, 0}, | |
26228 | { SWIG_PY_INT, (char *)"DateTime_Sep", (long) wxDateTime::Sep, 0, 0, 0}, | |
26229 | { SWIG_PY_INT, (char *)"DateTime_Oct", (long) wxDateTime::Oct, 0, 0, 0}, | |
26230 | { SWIG_PY_INT, (char *)"DateTime_Nov", (long) wxDateTime::Nov, 0, 0, 0}, | |
26231 | { SWIG_PY_INT, (char *)"DateTime_Dec", (long) wxDateTime::Dec, 0, 0, 0}, | |
26232 | { SWIG_PY_INT, (char *)"DateTime_Inv_Month", (long) wxDateTime::Inv_Month, 0, 0, 0}, | |
26233 | { SWIG_PY_INT, (char *)"DateTime_Sun", (long) wxDateTime::Sun, 0, 0, 0}, | |
26234 | { SWIG_PY_INT, (char *)"DateTime_Mon", (long) wxDateTime::Mon, 0, 0, 0}, | |
26235 | { SWIG_PY_INT, (char *)"DateTime_Tue", (long) wxDateTime::Tue, 0, 0, 0}, | |
26236 | { SWIG_PY_INT, (char *)"DateTime_Wed", (long) wxDateTime::Wed, 0, 0, 0}, | |
26237 | { SWIG_PY_INT, (char *)"DateTime_Thu", (long) wxDateTime::Thu, 0, 0, 0}, | |
26238 | { SWIG_PY_INT, (char *)"DateTime_Fri", (long) wxDateTime::Fri, 0, 0, 0}, | |
26239 | { SWIG_PY_INT, (char *)"DateTime_Sat", (long) wxDateTime::Sat, 0, 0, 0}, | |
26240 | { SWIG_PY_INT, (char *)"DateTime_Inv_WeekDay", (long) wxDateTime::Inv_WeekDay, 0, 0, 0}, | |
26241 | { SWIG_PY_INT, (char *)"DateTime_Inv_Year", (long) wxDateTime::Inv_Year, 0, 0, 0}, | |
26242 | { SWIG_PY_INT, (char *)"DateTime_Name_Full", (long) wxDateTime::Name_Full, 0, 0, 0}, | |
26243 | { SWIG_PY_INT, (char *)"DateTime_Name_Abbr", (long) wxDateTime::Name_Abbr, 0, 0, 0}, | |
26244 | { SWIG_PY_INT, (char *)"DateTime_Default_First", (long) wxDateTime::Default_First, 0, 0, 0}, | |
26245 | { SWIG_PY_INT, (char *)"DateTime_Monday_First", (long) wxDateTime::Monday_First, 0, 0, 0}, | |
26246 | { SWIG_PY_INT, (char *)"DateTime_Sunday_First", (long) wxDateTime::Sunday_First, 0, 0, 0}, | |
26247 | { SWIG_PY_INT, (char *)"DF_INVALID", (long) wxDF_INVALID, 0, 0, 0}, | |
26248 | { SWIG_PY_INT, (char *)"DF_TEXT", (long) wxDF_TEXT, 0, 0, 0}, | |
26249 | { SWIG_PY_INT, (char *)"DF_BITMAP", (long) wxDF_BITMAP, 0, 0, 0}, | |
26250 | { SWIG_PY_INT, (char *)"DF_METAFILE", (long) wxDF_METAFILE, 0, 0, 0}, | |
26251 | { SWIG_PY_INT, (char *)"DF_SYLK", (long) wxDF_SYLK, 0, 0, 0}, | |
26252 | { SWIG_PY_INT, (char *)"DF_DIF", (long) wxDF_DIF, 0, 0, 0}, | |
26253 | { SWIG_PY_INT, (char *)"DF_TIFF", (long) wxDF_TIFF, 0, 0, 0}, | |
26254 | { SWIG_PY_INT, (char *)"DF_OEMTEXT", (long) wxDF_OEMTEXT, 0, 0, 0}, | |
26255 | { SWIG_PY_INT, (char *)"DF_DIB", (long) wxDF_DIB, 0, 0, 0}, | |
26256 | { SWIG_PY_INT, (char *)"DF_PALETTE", (long) wxDF_PALETTE, 0, 0, 0}, | |
26257 | { SWIG_PY_INT, (char *)"DF_PENDATA", (long) wxDF_PENDATA, 0, 0, 0}, | |
26258 | { SWIG_PY_INT, (char *)"DF_RIFF", (long) wxDF_RIFF, 0, 0, 0}, | |
26259 | { SWIG_PY_INT, (char *)"DF_WAVE", (long) wxDF_WAVE, 0, 0, 0}, | |
26260 | { SWIG_PY_INT, (char *)"DF_UNICODETEXT", (long) wxDF_UNICODETEXT, 0, 0, 0}, | |
26261 | { SWIG_PY_INT, (char *)"DF_ENHMETAFILE", (long) wxDF_ENHMETAFILE, 0, 0, 0}, | |
26262 | { SWIG_PY_INT, (char *)"DF_FILENAME", (long) wxDF_FILENAME, 0, 0, 0}, | |
26263 | { SWIG_PY_INT, (char *)"DF_LOCALE", (long) wxDF_LOCALE, 0, 0, 0}, | |
26264 | { SWIG_PY_INT, (char *)"DF_PRIVATE", (long) wxDF_PRIVATE, 0, 0, 0}, | |
26265 | { SWIG_PY_INT, (char *)"DF_HTML", (long) wxDF_HTML, 0, 0, 0}, | |
26266 | { SWIG_PY_INT, (char *)"DF_MAX", (long) wxDF_MAX, 0, 0, 0}, | |
26267 | { SWIG_PY_INT, (char *)"DataObject_Get", (long) wxDataObject::Get, 0, 0, 0}, | |
26268 | { SWIG_PY_INT, (char *)"DataObject_Set", (long) wxDataObject::Set, 0, 0, 0}, | |
26269 | { SWIG_PY_INT, (char *)"DataObject_Both", (long) wxDataObject::Both, 0, 0, 0}, | |
26270 | { SWIG_PY_INT, (char *)"Drag_CopyOnly", (long) wxDrag_CopyOnly, 0, 0, 0}, | |
26271 | { SWIG_PY_INT, (char *)"Drag_AllowMove", (long) wxDrag_AllowMove, 0, 0, 0}, | |
26272 | { SWIG_PY_INT, (char *)"Drag_DefaultMove", (long) wxDrag_DefaultMove, 0, 0, 0}, | |
26273 | { SWIG_PY_INT, (char *)"DragError", (long) wxDragError, 0, 0, 0}, | |
26274 | { SWIG_PY_INT, (char *)"DragNone", (long) wxDragNone, 0, 0, 0}, | |
26275 | { SWIG_PY_INT, (char *)"DragCopy", (long) wxDragCopy, 0, 0, 0}, | |
26276 | { SWIG_PY_INT, (char *)"DragMove", (long) wxDragMove, 0, 0, 0}, | |
26277 | { SWIG_PY_INT, (char *)"DragLink", (long) wxDragLink, 0, 0, 0}, | |
26278 | { SWIG_PY_INT, (char *)"DragCancel", (long) wxDragCancel, 0, 0, 0}, | |
26279 | {0}}; | |
26280 | ||
26281 | #ifdef __cplusplus | |
26282 | } | |
26283 | #endif | |
26284 | ||
26285 | #ifdef __cplusplus | |
26286 | extern "C" | |
26287 | #endif | |
26288 | SWIGEXPORT(void) SWIG_init(void) { | |
26289 | static PyObject *SWIG_globals = 0; | |
26290 | static int typeinit = 0; | |
26291 | PyObject *m, *d; | |
26292 | int i; | |
26293 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26294 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26295 | d = PyModule_GetDict(m); | |
26296 | ||
26297 | if (!typeinit) { | |
26298 | for (i = 0; swig_types_initial[i]; i++) { | |
26299 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26300 | } | |
26301 | typeinit = 1; | |
26302 | } | |
26303 | SWIG_InstallConstants(d,swig_const_table); | |
26304 | ||
26305 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
26306 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
26307 | ||
26308 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
26309 | ||
26310 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
26311 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
26312 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
26313 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
26314 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
26315 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
26316 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
26317 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
26318 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
26319 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
26320 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
26321 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
26322 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
26323 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
26324 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
26325 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
26326 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
26327 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
26328 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
26329 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
26330 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
26331 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
26332 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
26333 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
26334 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
26335 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
26336 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
26337 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
26338 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
26339 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
26340 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
26341 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
26342 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
26343 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
26344 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
26345 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
26346 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
26347 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
26348 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
26349 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
26350 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
26351 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
26352 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
26353 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
26354 | ||
26355 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
26356 | ||
26357 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
26358 | ||
26359 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
26360 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
26361 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
26362 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
26363 | ||
26364 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
26365 | } | |
26366 |