]>
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 | |
f0983263 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
d14a1e28 RD |
50 | |
51 | /*********************************************************************** | |
52 | * common.swg for wxPython | |
53 | * | |
54 | * Include only the function prototypes and such from SWIG's common.swg, | |
55 | * but not the runtime functions themselves. This helps keep the | |
56 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
57 | * anyway. | |
58 | * | |
59 | ************************************************************************/ | |
60 | ||
61 | #include <string.h> | |
62 | ||
f0983263 RD |
63 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
64 | # if defined(_MSC_VER) || defined(__GNUC__) | |
65 | # if defined(STATIC_LINKED) | |
66 | # define SWIGEXPORT(a) a | |
67 | # define SWIGIMPORT(a) extern a | |
68 | # else | |
69 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
70 | # define SWIGIMPORT(a) extern a | |
71 | # endif | |
72 | # else | |
73 | # if defined(__BORLANDC__) | |
74 | # define SWIGEXPORT(a) a _export | |
75 | # define SWIGIMPORT(a) a _export | |
76 | # else | |
77 | # define SWIGEXPORT(a) a | |
78 | # define SWIGIMPORT(a) a | |
79 | # endif | |
80 | # endif | |
d14a1e28 | 81 | #else |
f0983263 RD |
82 | # define SWIGEXPORT(a) a |
83 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
84 | #endif |
85 | ||
86 | #ifdef SWIG_GLOBAL | |
f0983263 | 87 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 88 | #else |
f0983263 | 89 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
90 | #endif |
91 | ||
d14a1e28 RD |
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 { | |
f0983263 | 100 | const char *name; |
d14a1e28 RD |
101 | swig_converter_func converter; |
102 | const char *str; | |
f0983263 | 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 *); | |
f0983263 RD |
117 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
118 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
119 | |
120 | ||
121 | #ifdef __cplusplus | |
122 | } | |
423f194a | 123 | |
d14a1e28 RD |
124 | #endif |
125 | ||
f0983263 | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | ||
f0983263 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | ||
199 | /* Contract support */ | |
200 | ||
423f194a | 201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 202 | |
d14a1e28 RD |
203 | #ifdef __cplusplus |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
208 | ||
209 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
210 | ||
211 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
212 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
213 | #define SWIGTYPE_p_wxMetafile swig_types[2] | |
214 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
215 | #define SWIGTYPE_p_wxLog swig_types[4] | |
216 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
217 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
218 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
219 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
220 | #define SWIGTYPE_p_wxWave swig_types[9] | |
221 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
222 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
223 | #define SWIGTYPE_p_wxFont swig_types[12] | |
224 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
225 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
226 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
227 | #define SWIGTYPE_p_int swig_types[16] | |
228 | #define SWIGTYPE_p_wxSize swig_types[17] | |
229 | #define SWIGTYPE_p_wxClipboard swig_types[18] | |
230 | #define SWIGTYPE_p_wxStopWatch swig_types[19] | |
231 | #define SWIGTYPE_p_wxDC swig_types[20] | |
232 | #define SWIGTYPE_p_wxClipboardLocker swig_types[21] | |
233 | #define SWIGTYPE_p_wxIcon swig_types[22] | |
234 | #define SWIGTYPE_p_wxLogStderr swig_types[23] | |
235 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[24] | |
236 | #define SWIGTYPE_p_wxTextCtrl swig_types[25] | |
237 | #define SWIGTYPE_p_wxBusyCursor swig_types[26] | |
238 | #define SWIGTYPE_p_wxFileDataObject swig_types[27] | |
239 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[28] | |
240 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[29] | |
241 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[30] | |
242 | #define SWIGTYPE_p_wxTextDataObject swig_types[31] | |
243 | #define SWIGTYPE_p_wxDataObject swig_types[32] | |
244 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
245 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
246 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
247 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] | |
248 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
249 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
250 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
251 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
252 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
253 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
254 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
255 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
256 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[45] | |
257 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[46] | |
258 | #define SWIGTYPE_p_wxEvtHandler swig_types[47] | |
259 | #define SWIGTYPE_p_wxRect swig_types[48] | |
260 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[49] | |
261 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[50] | |
262 | #define SWIGTYPE_p_wxFrame swig_types[51] | |
263 | #define SWIGTYPE_p_wxTimer swig_types[52] | |
264 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[53] | |
265 | #define SWIGTYPE_p_wxPyArtProvider swig_types[54] | |
266 | #define SWIGTYPE_p_wxPyTipProvider swig_types[55] | |
267 | #define SWIGTYPE_p_wxTipProvider swig_types[56] | |
268 | #define SWIGTYPE_p_wxJoystick swig_types[57] | |
269 | #define SWIGTYPE_p_wxSystemOptions swig_types[58] | |
270 | #define SWIGTYPE_p_wxPoint swig_types[59] | |
271 | #define SWIGTYPE_p_wxJoystickEvent swig_types[60] | |
272 | #define SWIGTYPE_p_wxCursor swig_types[61] | |
273 | #define SWIGTYPE_p_wxObject swig_types[62] | |
274 | #define SWIGTYPE_p_wxOutputStream swig_types[63] | |
275 | #define SWIGTYPE_p_wxDateTime swig_types[64] | |
276 | #define SWIGTYPE_p_wxPyDropSource swig_types[65] | |
277 | #define SWIGTYPE_p_wxWindow swig_types[66] | |
278 | #define SWIGTYPE_p_wxString swig_types[67] | |
279 | #define SWIGTYPE_p_wxPyProcess swig_types[68] | |
280 | #define SWIGTYPE_p_wxBitmap swig_types[69] | |
281 | #define SWIGTYPE_p_wxConfig swig_types[70] | |
282 | #define SWIGTYPE_p_wxChar swig_types[71] | |
283 | #define SWIGTYPE_p_wxBusyInfo swig_types[72] | |
284 | #define SWIGTYPE_p_wxPyDropTarget swig_types[73] | |
285 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[74] | |
286 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[75] | |
287 | #define SWIGTYPE_p_wxProcessEvent swig_types[76] | |
288 | #define SWIGTYPE_p_wxPyLog swig_types[77] | |
289 | #define SWIGTYPE_p_wxLogNull swig_types[78] | |
290 | #define SWIGTYPE_p_wxColour swig_types[79] | |
291 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[80] | |
292 | #define SWIGTYPE_p_wxPyTimer swig_types[81] | |
293 | #define SWIGTYPE_p_wxDateSpan swig_types[82] | |
294 | static swig_type_info *swig_types[84]; | |
295 | ||
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
300 | @(target):= _misc.so | |
301 | ------------------------------------------------*/ | |
302 | #define SWIG_init init_misc | |
303 | ||
304 | #define SWIG_name "_misc" | |
305 | ||
306 | #include "wx/wxPython/wxPython.h" | |
307 | #include "wx/wxPython/pyclasses.h" | |
308 | #include "wx/wxPython/pyistream.h" | |
309 | ||
310 | DECLARE_DEF_STRING(EmptyString); | |
311 | ||
312 | ||
313 | ||
314 | ||
315 | ||
316 | DECLARE_DEF_STRING(FileSelectorPromptStr); | |
317 | DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); | |
318 | DECLARE_DEF_STRING(DirSelectorPromptStr); | |
319 | ||
320 | ||
321 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
322 | PyObject* o2; | |
323 | PyObject* o3; | |
324 | ||
325 | if (!target) { | |
326 | target = o; | |
327 | } else if (target == Py_None) { | |
328 | Py_DECREF(Py_None); | |
329 | target = o; | |
330 | } else { | |
331 | if (!PyTuple_Check(target)) { | |
332 | o2 = target; | |
333 | target = PyTuple_New(1); | |
334 | PyTuple_SetItem(target, 0, o2); | |
335 | } | |
336 | o3 = PyTuple_New(1); | |
337 | PyTuple_SetItem(o3, 0, o); | |
338 | ||
339 | o2 = target; | |
340 | target = PySequence_Concat(o2, o3); | |
341 | Py_DECREF(o2); | |
342 | Py_DECREF(o3); | |
343 | } | |
344 | return target; | |
345 | } | |
346 | ||
347 | ||
348 | bool wxThread_IsMain() { | |
349 | #ifdef WXP_WITH_THREAD | |
350 | return wxThread::IsMain(); | |
351 | #else | |
423f194a | 352 | return True; |
d14a1e28 RD |
353 | #endif |
354 | } | |
355 | ||
356 | ||
357 | int wxCaret_GetBlinkTime() { | |
358 | return wxCaret::GetBlinkTime(); | |
359 | } | |
360 | ||
361 | void wxCaret_SetBlinkTime(int milliseconds) { | |
362 | wxCaret::SetBlinkTime(milliseconds); | |
363 | } | |
364 | ||
365 | ||
366 | #include <wx/snglinst.h> | |
367 | ||
368 | ||
369 | #ifdef __WXMSW__ | |
370 | #include <wx/msw/private.h> | |
371 | #include <wx/dynload.h> | |
372 | #endif | |
373 | ||
374 | ||
375 | ||
376 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
377 | { | |
378 | #ifdef __WXMSW__ | |
379 | ||
380 | switch (method) | |
381 | { | |
382 | case 1: | |
383 | // This one only partially works. Appears to be an undocumented | |
384 | // "standard" convention that not all widgets adhear to. For | |
385 | // example, for some widgets backgrounds or non-client areas may | |
386 | // not be painted. | |
387 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
388 | break; | |
389 | ||
390 | case 2: | |
391 | // This one works much better, except for on XP. On Win2k nearly | |
392 | // all widgets and their children are captured correctly[**]. On | |
393 | // XP with Themes activated most native widgets draw only | |
394 | // partially, if at all. Without themes it works just like on | |
395 | // Win2k. | |
396 | // | |
397 | // ** For example the radio buttons in a wxRadioBox are not its | |
398 | // children by default, but you can capture it via the panel | |
399 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
400 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
401 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
402 | PRF_ERASEBKGND | PRF_OWNED ); | |
403 | break; | |
404 | ||
405 | case 3: | |
406 | // This one is only defined in the latest SDK and is only | |
407 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
408 | // so I expect that it will work similar to the above. Since it | |
409 | // is avaialble only on XP, it can't be compiled like this and | |
410 | // will have to be loaded dynamically. | |
411 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
412 | ||
413 | // fall through | |
414 | ||
415 | case 4: | |
416 | // Use PrintWindow if available, or fallback to WM_PRINT | |
417 | // otherwise. Unfortunately using PrintWindow is even worse than | |
418 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
419 | // at all, with or without Themes. | |
420 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
423f194a | 421 | static bool s_triedToLoad = False; |
d14a1e28 RD |
422 | static PrintWindow_t pfnPrintWindow = NULL; |
423 | if ( !s_triedToLoad ) | |
424 | { | |
425 | ||
423f194a | 426 | s_triedToLoad = True; |
d14a1e28 RD |
427 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
428 | if ( dllUser32.IsLoaded() ) | |
429 | { | |
430 | wxLogNull nolog; // Don't report errors here | |
431 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
432 | } | |
433 | } | |
434 | if (pfnPrintWindow) | |
435 | { | |
436 | printf("Using PrintWindow\n"); | |
437 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
438 | } | |
439 | else | |
440 | { | |
441 | printf("Using WM_PRINT\n"); | |
442 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
443 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
444 | } | |
445 | } | |
446 | #endif | |
447 | } | |
448 | ||
449 | ||
450 | ||
451 | #include <wx/tipdlg.h> | |
452 | ||
453 | ||
454 | class wxPyTipProvider : public wxTipProvider { | |
455 | public: | |
456 | wxPyTipProvider(size_t currentTip) | |
457 | : wxTipProvider(currentTip) {} | |
458 | ||
459 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
460 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
461 | PYPRIVATE; | |
462 | }; | |
463 | ||
464 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
465 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
466 | ||
467 | ||
468 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
469 | ||
470 | wxString Log_TimeStamp(){ | |
471 | wxString msg; | |
472 | wxLog::TimeStamp(&msg); | |
473 | return msg; | |
474 | } | |
475 | void wxLog_Destroy(wxLog *self){ delete self; } | |
476 | ||
477 | // A wxLog class that can be derived from in wxPython | |
478 | class wxPyLog : public wxLog { | |
479 | public: | |
480 | wxPyLog() : wxLog() {} | |
481 | ||
482 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
483 | bool found; | |
484 | wxPyBeginBlockThreads(); | |
485 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
486 | PyObject* s = wx2PyString(szString); | |
487 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
488 | Py_DECREF(s); | |
489 | } | |
490 | wxPyEndBlockThreads(); | |
491 | if (! found) | |
492 | wxLog::DoLog(level, szString, t); | |
493 | } | |
494 | ||
495 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
496 | bool found; | |
497 | wxPyBeginBlockThreads(); | |
498 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
499 | PyObject* s = wx2PyString(szString); | |
500 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
501 | Py_DECREF(s); | |
502 | } | |
503 | wxPyEndBlockThreads(); | |
504 | if (! found) | |
505 | wxLog::DoLogString(szString, t); | |
506 | } | |
507 | ||
508 | PYPRIVATE; | |
509 | }; | |
510 | ||
511 | ||
512 | ||
513 | ||
514 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
515 | ||
516 | ||
517 | #include <wx/joystick.h> | |
518 | ||
519 | ||
520 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
521 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
522 | class wxJoystick : public wxObject { | |
523 | public: | |
524 | wxJoystick(int joystick = wxJOYSTICK1) { | |
525 | wxPyBeginBlockThreads(); | |
526 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); | |
527 | wxPyEndBlockThreads(); | |
528 | } | |
529 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
530 | int GetZPosition() { return -1; } | |
531 | int GetButtonState() { return -1; } | |
532 | int GetPOVPosition() { return -1; } | |
533 | int GetPOVCTSPosition() { return -1; } | |
534 | int GetRudderPosition() { return -1; } | |
535 | int GetUPosition() { return -1; } | |
536 | int GetVPosition() { return -1; } | |
537 | int GetMovementThreshold() { return -1; } | |
538 | void SetMovementThreshold(int threshold) {} | |
539 | ||
423f194a | 540 | bool IsOk(void) { return False; } |
d14a1e28 RD |
541 | int GetNumberJoysticks() { return -1; } |
542 | int GetManufacturerId() { return -1; } | |
543 | int GetProductId() { return -1; } | |
544 | wxString GetProductName() { return ""; } | |
545 | int GetXMin() { return -1; } | |
546 | int GetYMin() { return -1; } | |
547 | int GetZMin() { return -1; } | |
548 | int GetXMax() { return -1; } | |
549 | int GetYMax() { return -1; } | |
550 | int GetZMax() { return -1; } | |
551 | int GetNumberButtons() { return -1; } | |
552 | int GetNumberAxes() { return -1; } | |
553 | int GetMaxButtons() { return -1; } | |
554 | int GetMaxAxes() { return -1; } | |
555 | int GetPollingMin() { return -1; } | |
556 | int GetPollingMax() { return -1; } | |
557 | int GetRudderMin() { return -1; } | |
558 | int GetRudderMax() { return -1; } | |
559 | int GetUMin() { return -1; } | |
560 | int GetUMax() { return -1; } | |
561 | int GetVMin() { return -1; } | |
562 | int GetVMax() { return -1; } | |
563 | ||
423f194a RD |
564 | bool HasRudder() { return False; } |
565 | bool HasZ() { return False; } | |
566 | bool HasU() { return False; } | |
567 | bool HasV() { return False; } | |
568 | bool HasPOV() { return False; } | |
569 | bool HasPOV4Dir() { return False; } | |
570 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 571 | |
423f194a RD |
572 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
573 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
574 | }; |
575 | #endif | |
576 | ||
577 | ||
578 | #include <wx/wave.h> | |
579 | ||
580 | ||
581 | #if !wxUSE_WAVE | |
582 | // A C++ stub class for wxWave for platforms that don't have it. | |
583 | class wxWave : public wxObject | |
584 | { | |
585 | public: | |
423f194a | 586 | wxWave(const wxString& fileName, bool isResource = False) { |
d14a1e28 RD |
587 | wxPyBeginBlockThreads(); |
588 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); | |
589 | wxPyEndBlockThreads(); | |
590 | } | |
591 | wxWave(int size, const wxByte* data) { | |
592 | wxPyBeginBlockThreads(); | |
593 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); | |
594 | wxPyEndBlockThreads(); | |
595 | } | |
596 | ||
597 | ~wxWave() {} | |
598 | ||
423f194a RD |
599 | bool IsOk() const { return False; } |
600 | bool Play(bool async = True, bool looped = False) const { return False; } | |
d14a1e28 RD |
601 | }; |
602 | ||
603 | #endif | |
604 | ||
605 | wxWave *new_wxWave(wxString const &data){ | |
606 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
607 | } | |
608 | ||
609 | #include <wx/mimetype.h> | |
610 | ||
611 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
612 | wxString str; | |
613 | if (self->GetMimeType(&str)) | |
614 | return wx2PyString(str); | |
615 | else | |
616 | RETURN_NONE(); | |
617 | } | |
618 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
619 | wxArrayString arr; | |
620 | if (self->GetMimeTypes(arr)) | |
621 | return wxArrayString2PyList_helper(arr); | |
622 | else | |
623 | RETURN_NONE(); | |
624 | } | |
625 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
626 | wxArrayString arr; | |
627 | if (self->GetExtensions(arr)) | |
628 | return wxArrayString2PyList_helper(arr); | |
629 | else | |
630 | RETURN_NONE(); | |
631 | } | |
632 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
633 | wxIconLocation loc; | |
634 | if (self->GetIcon(&loc)) | |
635 | return new wxIcon(loc); | |
636 | else | |
637 | return NULL; | |
638 | } | |
639 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
640 | wxIconLocation loc; | |
641 | if (self->GetIcon(&loc)) { | |
642 | wxString iconFile = loc.GetFileName(); | |
643 | int iconIndex = -1; | |
644 | ||
645 | iconIndex = loc.GetIndex(); | |
646 | ||
647 | // Make a tuple and put the values in it | |
648 | wxPyBeginBlockThreads(); | |
649 | PyObject* tuple = PyTuple_New(3); | |
650 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
423f194a | 651 | wxT("wxIcon"), True)); |
d14a1e28 RD |
652 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
653 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
654 | wxPyEndBlockThreads(); | |
655 | return tuple; | |
656 | } | |
657 | else | |
658 | RETURN_NONE(); | |
659 | } | |
660 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
661 | wxString str; | |
662 | if (self->GetDescription(&str)) | |
663 | return wx2PyString(str); | |
664 | else | |
665 | RETURN_NONE(); | |
666 | } | |
667 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
668 | wxString str; | |
669 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
670 | return wx2PyString(str); | |
671 | else | |
672 | RETURN_NONE(); | |
673 | } | |
674 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
675 | wxString str; | |
676 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
677 | return wx2PyString(str); | |
678 | else | |
679 | RETURN_NONE(); | |
680 | } | |
681 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
682 | wxArrayString verbs; | |
683 | wxArrayString commands; | |
684 | if (self->GetAllCommands(&verbs, &commands, | |
685 | wxFileType::MessageParameters(filename, mimetype))) { | |
686 | wxPyBeginBlockThreads(); | |
687 | PyObject* tuple = PyTuple_New(2); | |
688 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
689 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
690 | wxPyEndBlockThreads(); | |
691 | return tuple; | |
692 | } | |
693 | else | |
694 | RETURN_NONE(); | |
695 | } | |
696 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
697 | return wxFileType::ExpandCommand(command, | |
698 | wxFileType::MessageParameters(filename, mimetype)); | |
699 | } | |
700 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
701 | wxArrayString arr; | |
702 | self->EnumAllFileTypes(arr); | |
703 | return wxArrayString2PyList_helper(arr); | |
704 | } | |
705 | ||
706 | #include <wx/artprov.h> | |
707 | ||
708 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
709 | static const wxString wxPyART_MENU(wxART_MENU); | |
710 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
711 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
712 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
713 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
714 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
715 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
716 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
717 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
718 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
719 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
720 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
721 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
722 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
723 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
724 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
725 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
726 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
727 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
728 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
729 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
730 | static const wxString wxPyART_HELP(wxART_HELP); | |
731 | static const wxString wxPyART_TIP(wxART_TIP); | |
732 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
733 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
734 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
735 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
736 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
737 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
738 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
739 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
740 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
741 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
742 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
743 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
744 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
745 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
746 | // Python aware wxArtProvider | |
747 | class wxPyArtProvider : public wxArtProvider { | |
748 | public: | |
749 | ||
750 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
751 | const wxArtClient& client, | |
752 | const wxSize& size) { | |
753 | wxBitmap rval = wxNullBitmap; | |
754 | wxPyBeginBlockThreads(); | |
755 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
756 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
757 | PyObject* ro; | |
758 | wxBitmap* ptr; | |
759 | PyObject* s1, *s2; | |
760 | s1 = wx2PyString(id); | |
761 | s2 = wx2PyString(client); | |
762 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
763 | Py_DECREF(so); | |
764 | Py_DECREF(s1); | |
765 | Py_DECREF(s2); | |
766 | if (ro) { | |
767 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
768 | rval = *ptr; | |
769 | Py_DECREF(ro); | |
770 | } | |
771 | } | |
772 | wxPyEndBlockThreads(); | |
773 | return rval; | |
774 | } | |
775 | ||
776 | PYPRIVATE; | |
777 | }; | |
778 | ||
41f1cec7 | 779 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
780 | |
781 | ||
782 | ||
783 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
784 | PyObject* ret = PyTuple_New(3); | |
785 | if (ret) { | |
786 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
787 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
788 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
789 | } | |
790 | return ret; | |
791 | } | |
792 | ||
793 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
794 | bool cont; | |
795 | long index = 0; | |
796 | wxString value; | |
797 | ||
798 | cont = self->GetFirstGroup(value, index); | |
799 | return __EnumerationHelper(cont, value, index); | |
800 | } | |
801 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
802 | bool cont; | |
803 | wxString value; | |
804 | ||
805 | cont = self->GetNextGroup(value, index); | |
806 | return __EnumerationHelper(cont, value, index); | |
807 | } | |
808 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
809 | bool cont; | |
810 | long index = 0; | |
811 | wxString value; | |
812 | ||
813 | cont = self->GetFirstEntry(value, index); | |
814 | return __EnumerationHelper(cont, value, index); | |
815 | } | |
816 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
817 | bool cont; | |
818 | wxString value; | |
819 | ||
820 | cont = self->GetNextEntry(value, index); | |
821 | return __EnumerationHelper(cont, value, index); | |
822 | } | |
823 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
824 | long rv; | |
825 | self->Read(key, &rv, defaultVal); | |
826 | return rv; | |
827 | } | |
828 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
829 | double rv; | |
830 | self->Read(key, &rv, defaultVal); | |
831 | return rv; | |
832 | } | |
833 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
834 | bool rv; | |
835 | self->Read(key, &rv, defaultVal); | |
836 | return rv; | |
837 | } | |
838 | ||
839 | #include <wx/datetime.h> | |
840 | ||
841 | DECLARE_DEF_STRING2(DateFormatStr, wxT("%c")); | |
842 | DECLARE_DEF_STRING2(TimeSpanFormatStr, wxT("%H:%M:%S")); | |
843 | ||
844 | ||
845 | ||
846 | #define LOCAL_TZ wxDateTime::Local | |
847 | ||
848 | wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; } | |
849 | wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; } | |
850 | wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; } | |
851 | wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; } | |
852 | wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; } | |
853 | bool wxDateTime___lt__(wxDateTime *self,wxDateTime const &other){ return *self < other; } | |
854 | bool wxDateTime___le__(wxDateTime *self,wxDateTime const &other){ return *self <= other; } | |
855 | bool wxDateTime___gt__(wxDateTime *self,wxDateTime const &other){ return *self > other; } | |
856 | bool wxDateTime___ge__(wxDateTime *self,wxDateTime const &other){ return *self >= other; } | |
857 | bool wxDateTime___eq__(wxDateTime *self,wxDateTime const &other){ return *self == other; } | |
858 | bool wxDateTime___ne__(wxDateTime *self,wxDateTime const &other){ return *self != other; } | |
859 | int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){ | |
860 | const wxChar* rv; | |
861 | const wxChar* _date = date; | |
862 | rv = self->ParseRfc822Date(_date); | |
863 | if (rv == NULL) return -1; | |
864 | return rv - _date; | |
865 | } | |
866 | int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){ | |
867 | const wxChar* rv; | |
868 | const wxChar* _date = date; | |
869 | rv = self->ParseFormat(_date, format, dateDef); | |
870 | if (rv == NULL) return -1; | |
871 | return rv - _date; | |
872 | } | |
873 | int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){ | |
874 | const wxChar* rv; | |
875 | const wxChar* _datetime = datetime; | |
876 | rv = self->ParseDateTime(_datetime); | |
877 | if (rv == NULL) return -1; | |
878 | return rv - _datetime; | |
879 | } | |
880 | int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){ | |
881 | const wxChar* rv; | |
882 | const wxChar* _date = date; | |
883 | rv = self->ParseDate(_date); | |
884 | if (rv == NULL) return -1; | |
885 | return rv - _date; | |
886 | } | |
887 | int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){ | |
888 | const wxChar* rv; | |
889 | const wxChar* _time = time; | |
890 | rv = self->ParseTime(_time); | |
891 | if (rv == NULL) return -1; | |
892 | return rv - _time; | |
893 | } | |
894 | wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; } | |
895 | wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; } | |
896 | wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; } | |
897 | wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; } | |
898 | bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self < other; } | |
899 | bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const &other){ return *self <= other; } | |
900 | bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const &other){ return *self > other; } | |
901 | bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const &other){ return *self >= other; } | |
902 | bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const &other){ return *self == other; } | |
903 | bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const &other){ return *self != other; } | |
904 | wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; } | |
905 | wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; } | |
906 | wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; } | |
907 | wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; } | |
908 | bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const &other){ return *self == other; } | |
909 | bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const &other){ return *self != other; } | |
910 | ||
911 | #include <wx/dataobj.h> | |
912 | ||
913 | // Create a new class for wxPython to use | |
914 | class wxPyDataObjectSimple : public wxDataObjectSimple { | |
915 | public: | |
916 | wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) | |
917 | : wxDataObjectSimple(format) {} | |
918 | ||
919 | DEC_PYCALLBACK_SIZET__const(GetDataSize); | |
920 | bool GetDataHere(void *buf) const; | |
921 | bool SetData(size_t len, const void *buf) const; | |
922 | PYPRIVATE; | |
923 | }; | |
924 | ||
925 | IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize); | |
926 | ||
927 | bool wxPyDataObjectSimple::GetDataHere(void *buf) const { | |
928 | // We need to get the data for this object and write it to buf. I think | |
929 | // the best way to do this for wxPython is to have the Python method | |
930 | // return either a string or None and then act appropriately with the | |
931 | // C++ version. | |
932 | ||
423f194a | 933 | bool rval = False; |
d14a1e28 RD |
934 | wxPyBeginBlockThreads(); |
935 | if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) { | |
936 | PyObject* ro; | |
937 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
938 | if (ro) { | |
939 | rval = (ro != Py_None && PyString_Check(ro)); | |
940 | if (rval) | |
941 | memcpy(buf, PyString_AsString(ro), PyString_Size(ro)); | |
942 | Py_DECREF(ro); | |
943 | } | |
944 | } | |
945 | wxPyEndBlockThreads(); | |
946 | return rval; | |
947 | } | |
948 | ||
949 | bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{ | |
950 | // For this one we simply need to make a string from buf and len | |
951 | // and send it to the Python method. | |
423f194a | 952 | bool rval = False; |
d14a1e28 RD |
953 | wxPyBeginBlockThreads(); |
954 | if (wxPyCBH_findCallback(m_myInst, "SetData")) { | |
955 | PyObject* data = PyString_FromStringAndSize((char*)buf, len); | |
956 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data)); | |
957 | Py_DECREF(data); | |
958 | } | |
959 | wxPyEndBlockThreads(); | |
960 | return rval; | |
961 | } | |
962 | ||
963 | // Create a new class for wxPython to use | |
964 | class wxPyTextDataObject : public wxTextDataObject { | |
965 | public: | |
966 | wxPyTextDataObject(const wxString& text = wxPyEmptyString) | |
967 | : wxTextDataObject(text) {} | |
968 | ||
969 | DEC_PYCALLBACK_SIZET__const(GetTextLength); | |
970 | DEC_PYCALLBACK_STRING__const(GetText); | |
971 | DEC_PYCALLBACK__STRING(SetText); | |
972 | PYPRIVATE; | |
973 | }; | |
974 | ||
975 | IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength); | |
976 | IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText); | |
977 | IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText); | |
978 | ||
979 | ||
980 | // Create a new class for wxPython to use | |
981 | class wxPyBitmapDataObject : public wxBitmapDataObject { | |
982 | public: | |
983 | wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap) | |
984 | : wxBitmapDataObject(bitmap) {} | |
985 | ||
986 | wxBitmap GetBitmap() const; | |
987 | void SetBitmap(const wxBitmap& bitmap); | |
988 | PYPRIVATE; | |
989 | }; | |
990 | ||
991 | wxBitmap wxPyBitmapDataObject::GetBitmap() const { | |
992 | wxBitmap* rval = &wxNullBitmap; | |
993 | wxPyBeginBlockThreads(); | |
994 | if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) { | |
995 | PyObject* ro; | |
996 | wxBitmap* ptr; | |
997 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
998 | if (ro) { | |
999 | if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap"))) | |
1000 | rval = ptr; | |
1001 | Py_DECREF(ro); | |
1002 | } | |
1003 | } | |
1004 | wxPyEndBlockThreads(); | |
1005 | return *rval; | |
1006 | } | |
1007 | ||
1008 | void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) { | |
1009 | wxPyBeginBlockThreads(); | |
1010 | if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) { | |
423f194a | 1011 | PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False); |
d14a1e28 RD |
1012 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo)); |
1013 | Py_DECREF(bo); | |
1014 | } | |
1015 | wxPyEndBlockThreads(); | |
1016 | } | |
1017 | ||
1018 | void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){ | |
1019 | if (PyString_Check(data)) { | |
1020 | // for Python we just call SetData here since we always need it to make a copy. | |
1021 | self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1022 | } | |
1023 | else { | |
1024 | // raise a TypeError if not a string | |
1025 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
1026 | } | |
1027 | } | |
1028 | bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){ | |
1029 | if (PyString_Check(data)) { | |
1030 | return self->SetData(PyString_Size(data), PyString_AsString(data)); | |
1031 | } | |
1032 | else { | |
1033 | // raise a TypeError if not a string | |
1034 | PyErr_SetString(PyExc_TypeError, "String expected."); | |
423f194a | 1035 | return False; |
d14a1e28 RD |
1036 | } |
1037 | } | |
1038 | PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){ | |
1039 | return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize()); | |
1040 | } | |
1041 | ||
1042 | #include <wx/metafile.h> | |
1043 | ||
1044 | ||
d14a1e28 RD |
1045 | |
1046 | ||
d14a1e28 RD |
1047 | IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback); |
1048 | ||
1049 | ||
d14a1e28 RD |
1050 | IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave); |
1051 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter); | |
1052 | IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver); | |
1053 | IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData); | |
1054 | IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop); | |
1055 | ||
1056 | ||
d14a1e28 RD |
1057 | class wxPyTextDropTarget : public wxTextDropTarget { |
1058 | public: | |
1059 | wxPyTextDropTarget() {} | |
1060 | ||
1061 | DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText); | |
1062 | ||
1063 | DEC_PYCALLBACK__(OnLeave); | |
1064 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1065 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1066 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1067 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1068 | ||
1069 | PYPRIVATE; | |
1070 | }; | |
1071 | ||
1072 | IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText); | |
1073 | IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave); | |
1074 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter); | |
1075 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver); | |
1076 | IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData); | |
1077 | IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop); | |
1078 | ||
1079 | ||
1080 | ||
1081 | class wxPyFileDropTarget : public wxFileDropTarget { | |
1082 | public: | |
1083 | wxPyFileDropTarget() {} | |
1084 | ||
1085 | virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames); | |
1086 | ||
1087 | DEC_PYCALLBACK__(OnLeave); | |
1088 | DEC_PYCALLBACK_DR_2WXCDR(OnEnter); | |
1089 | DEC_PYCALLBACK_DR_2WXCDR(OnDragOver); | |
1090 | DEC_PYCALLBACK_DR_2WXCDR(OnData); | |
1091 | DEC_PYCALLBACK_BOOL_INTINT(OnDrop); | |
1092 | ||
1093 | PYPRIVATE; | |
1094 | }; | |
1095 | ||
1096 | bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, | |
1097 | const wxArrayString& filenames) { | |
423f194a | 1098 | bool rval = False; |
d14a1e28 RD |
1099 | wxPyBeginBlockThreads(); |
1100 | if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) { | |
1101 | PyObject* list = wxArrayString2PyList_helper(filenames); | |
1102 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list)); | |
1103 | Py_DECREF(list); | |
1104 | } | |
1105 | wxPyEndBlockThreads(); | |
1106 | return rval; | |
1107 | } | |
1108 | ||
1109 | ||
1110 | ||
1111 | IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave); | |
1112 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter); | |
1113 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver); | |
1114 | IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData); | |
1115 | IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop); | |
1116 | ||
1117 | ||
1118 | ||
1119 | ||
1120 | bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); } | |
1121 | #ifdef __cplusplus | |
1122 | extern "C" { | |
1123 | #endif | |
1124 | static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1125 | PyObject *resultobj; | |
1126 | int arg1 ; | |
1127 | wxColour result; | |
1128 | char *kwnames[] = { | |
1129 | (char *) "index", NULL | |
1130 | }; | |
1131 | ||
1132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetColour",kwnames,&arg1)) goto fail; | |
1133 | { | |
1134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1135 | result = wxSystemSettings::GetColour((wxSystemColour )arg1); | |
1136 | ||
1137 | wxPyEndAllowThreads(__tstate); | |
1138 | if (PyErr_Occurred()) SWIG_fail; | |
1139 | } | |
1140 | { | |
1141 | wxColour * resultptr; | |
1142 | resultptr = new wxColour((wxColour &) result); | |
1143 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
1144 | } | |
1145 | return resultobj; | |
1146 | fail: | |
1147 | return NULL; | |
1148 | } | |
1149 | ||
1150 | ||
1151 | static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject *resultobj; | |
1153 | int arg1 ; | |
1154 | wxFont result; | |
1155 | char *kwnames[] = { | |
1156 | (char *) "index", NULL | |
1157 | }; | |
1158 | ||
1159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetFont",kwnames,&arg1)) goto fail; | |
1160 | { | |
1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1162 | result = wxSystemSettings::GetFont((wxSystemFont )arg1); | |
1163 | ||
1164 | wxPyEndAllowThreads(__tstate); | |
1165 | if (PyErr_Occurred()) SWIG_fail; | |
1166 | } | |
1167 | { | |
1168 | wxFont * resultptr; | |
1169 | resultptr = new wxFont((wxFont &) result); | |
1170 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
1171 | } | |
1172 | return resultobj; | |
1173 | fail: | |
1174 | return NULL; | |
1175 | } | |
1176 | ||
1177 | ||
1178 | static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1179 | PyObject *resultobj; | |
1180 | int arg1 ; | |
1181 | int result; | |
1182 | char *kwnames[] = { | |
1183 | (char *) "index", NULL | |
1184 | }; | |
1185 | ||
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_GetMetric",kwnames,&arg1)) goto fail; | |
1187 | { | |
1188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1189 | result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1); | |
1190 | ||
1191 | wxPyEndAllowThreads(__tstate); | |
1192 | if (PyErr_Occurred()) SWIG_fail; | |
1193 | } | |
1194 | resultobj = PyInt_FromLong((long)result); | |
1195 | return resultobj; | |
1196 | fail: | |
1197 | return NULL; | |
1198 | } | |
1199 | ||
1200 | ||
1201 | static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1202 | PyObject *resultobj; | |
1203 | int arg1 ; | |
1204 | bool result; | |
1205 | char *kwnames[] = { | |
1206 | (char *) "index", NULL | |
1207 | }; | |
1208 | ||
1209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_HasFeature",kwnames,&arg1)) goto fail; | |
1210 | { | |
1211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1212 | result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1); | |
1213 | ||
1214 | wxPyEndAllowThreads(__tstate); | |
1215 | if (PyErr_Occurred()) SWIG_fail; | |
1216 | } | |
1217 | resultobj = PyInt_FromLong((long)result); | |
1218 | return resultobj; | |
1219 | fail: | |
1220 | return NULL; | |
1221 | } | |
1222 | ||
1223 | ||
1224 | static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1225 | PyObject *resultobj; | |
1226 | int result; | |
1227 | char *kwnames[] = { | |
1228 | NULL | |
1229 | }; | |
1230 | ||
1231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail; | |
1232 | { | |
1233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1234 | result = (int)wxSystemSettings::GetScreenType(); | |
1235 | ||
1236 | wxPyEndAllowThreads(__tstate); | |
1237 | if (PyErr_Occurred()) SWIG_fail; | |
1238 | } | |
1239 | resultobj = PyInt_FromLong((long)result); | |
1240 | return resultobj; | |
1241 | fail: | |
1242 | return NULL; | |
1243 | } | |
1244 | ||
1245 | ||
1246 | static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1247 | PyObject *resultobj; | |
1248 | int arg1 ; | |
1249 | char *kwnames[] = { | |
1250 | (char *) "screen", NULL | |
1251 | }; | |
1252 | ||
1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:SystemSettings_SetScreenType",kwnames,&arg1)) goto fail; | |
1254 | { | |
1255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1256 | wxSystemSettings::SetScreenType((wxSystemScreenType )arg1); | |
1257 | ||
1258 | wxPyEndAllowThreads(__tstate); | |
1259 | if (PyErr_Occurred()) SWIG_fail; | |
1260 | } | |
1261 | Py_INCREF(Py_None); resultobj = Py_None; | |
1262 | return resultobj; | |
1263 | fail: | |
1264 | return NULL; | |
1265 | } | |
1266 | ||
1267 | ||
1268 | static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) { | |
1269 | PyObject *obj; | |
1270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1271 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj); | |
1272 | Py_INCREF(obj); | |
1273 | return Py_BuildValue((char *)""); | |
1274 | } | |
1275 | static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject *resultobj; | |
1277 | wxSystemOptions *result; | |
1278 | char *kwnames[] = { | |
1279 | NULL | |
1280 | }; | |
1281 | ||
1282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail; | |
1283 | { | |
1284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1285 | result = (wxSystemOptions *)new wxSystemOptions(); | |
1286 | ||
1287 | wxPyEndAllowThreads(__tstate); | |
1288 | if (PyErr_Occurred()) SWIG_fail; | |
1289 | } | |
1290 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSystemOptions, 1); | |
1291 | return resultobj; | |
1292 | fail: | |
1293 | return NULL; | |
1294 | } | |
1295 | ||
1296 | ||
1297 | static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1298 | PyObject *resultobj; | |
1299 | wxString *arg1 = 0 ; | |
1300 | wxString *arg2 = 0 ; | |
423f194a RD |
1301 | bool temp1 = False ; |
1302 | bool temp2 = False ; | |
d14a1e28 RD |
1303 | PyObject * obj0 = 0 ; |
1304 | PyObject * obj1 = 0 ; | |
1305 | char *kwnames[] = { | |
1306 | (char *) "name",(char *) "value", NULL | |
1307 | }; | |
1308 | ||
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail; | |
1310 | { | |
1311 | arg1 = wxString_in_helper(obj0); | |
1312 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1313 | temp1 = True; |
d14a1e28 RD |
1314 | } |
1315 | { | |
1316 | arg2 = wxString_in_helper(obj1); | |
1317 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 1318 | temp2 = True; |
d14a1e28 RD |
1319 | } |
1320 | { | |
1321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1322 | wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2); | |
1323 | ||
1324 | wxPyEndAllowThreads(__tstate); | |
1325 | if (PyErr_Occurred()) SWIG_fail; | |
1326 | } | |
1327 | Py_INCREF(Py_None); resultobj = Py_None; | |
1328 | { | |
1329 | if (temp1) | |
1330 | delete arg1; | |
1331 | } | |
1332 | { | |
1333 | if (temp2) | |
1334 | delete arg2; | |
1335 | } | |
1336 | return resultobj; | |
1337 | fail: | |
1338 | { | |
1339 | if (temp1) | |
1340 | delete arg1; | |
1341 | } | |
1342 | { | |
1343 | if (temp2) | |
1344 | delete arg2; | |
1345 | } | |
1346 | return NULL; | |
1347 | } | |
1348 | ||
1349 | ||
1350 | static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1351 | PyObject *resultobj; | |
1352 | wxString *arg1 = 0 ; | |
1353 | int arg2 ; | |
423f194a | 1354 | bool temp1 = False ; |
d14a1e28 RD |
1355 | PyObject * obj0 = 0 ; |
1356 | char *kwnames[] = { | |
1357 | (char *) "name",(char *) "value", NULL | |
1358 | }; | |
1359 | ||
1360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SystemOptions_SetOptionInt",kwnames,&obj0,&arg2)) goto fail; | |
1361 | { | |
1362 | arg1 = wxString_in_helper(obj0); | |
1363 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1364 | temp1 = True; |
d14a1e28 RD |
1365 | } |
1366 | { | |
1367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1368 | wxSystemOptions::SetOption((wxString const &)*arg1,arg2); | |
1369 | ||
1370 | wxPyEndAllowThreads(__tstate); | |
1371 | if (PyErr_Occurred()) SWIG_fail; | |
1372 | } | |
1373 | Py_INCREF(Py_None); resultobj = Py_None; | |
1374 | { | |
1375 | if (temp1) | |
1376 | delete arg1; | |
1377 | } | |
1378 | return resultobj; | |
1379 | fail: | |
1380 | { | |
1381 | if (temp1) | |
1382 | delete arg1; | |
1383 | } | |
1384 | return NULL; | |
1385 | } | |
1386 | ||
1387 | ||
1388 | static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1389 | PyObject *resultobj; | |
1390 | wxString *arg1 = 0 ; | |
1391 | wxString result; | |
423f194a | 1392 | bool temp1 = False ; |
d14a1e28 RD |
1393 | PyObject * obj0 = 0 ; |
1394 | char *kwnames[] = { | |
1395 | (char *) "name", NULL | |
1396 | }; | |
1397 | ||
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail; | |
1399 | { | |
1400 | arg1 = wxString_in_helper(obj0); | |
1401 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1402 | temp1 = True; |
d14a1e28 RD |
1403 | } |
1404 | { | |
1405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1406 | result = wxSystemOptions::GetOption((wxString const &)*arg1); | |
1407 | ||
1408 | wxPyEndAllowThreads(__tstate); | |
1409 | if (PyErr_Occurred()) SWIG_fail; | |
1410 | } | |
1411 | { | |
1412 | #if wxUSE_UNICODE | |
1413 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1414 | #else | |
1415 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1416 | #endif | |
1417 | } | |
1418 | { | |
1419 | if (temp1) | |
1420 | delete arg1; | |
1421 | } | |
1422 | return resultobj; | |
1423 | fail: | |
1424 | { | |
1425 | if (temp1) | |
1426 | delete arg1; | |
1427 | } | |
1428 | return NULL; | |
1429 | } | |
1430 | ||
1431 | ||
1432 | static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1433 | PyObject *resultobj; | |
1434 | wxString *arg1 = 0 ; | |
1435 | int result; | |
423f194a | 1436 | bool temp1 = False ; |
d14a1e28 RD |
1437 | PyObject * obj0 = 0 ; |
1438 | char *kwnames[] = { | |
1439 | (char *) "name", NULL | |
1440 | }; | |
1441 | ||
1442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail; | |
1443 | { | |
1444 | arg1 = wxString_in_helper(obj0); | |
1445 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1446 | temp1 = True; |
d14a1e28 RD |
1447 | } |
1448 | { | |
1449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1450 | result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1); | |
1451 | ||
1452 | wxPyEndAllowThreads(__tstate); | |
1453 | if (PyErr_Occurred()) SWIG_fail; | |
1454 | } | |
1455 | resultobj = PyInt_FromLong((long)result); | |
1456 | { | |
1457 | if (temp1) | |
1458 | delete arg1; | |
1459 | } | |
1460 | return resultobj; | |
1461 | fail: | |
1462 | { | |
1463 | if (temp1) | |
1464 | delete arg1; | |
1465 | } | |
1466 | return NULL; | |
1467 | } | |
1468 | ||
1469 | ||
1470 | static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject *resultobj; | |
1472 | wxString *arg1 = 0 ; | |
1473 | bool result; | |
423f194a | 1474 | bool temp1 = False ; |
d14a1e28 RD |
1475 | PyObject * obj0 = 0 ; |
1476 | char *kwnames[] = { | |
1477 | (char *) "name", NULL | |
1478 | }; | |
1479 | ||
1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail; | |
1481 | { | |
1482 | arg1 = wxString_in_helper(obj0); | |
1483 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1484 | temp1 = True; |
d14a1e28 RD |
1485 | } |
1486 | { | |
1487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1488 | result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1); | |
1489 | ||
1490 | wxPyEndAllowThreads(__tstate); | |
1491 | if (PyErr_Occurred()) SWIG_fail; | |
1492 | } | |
1493 | resultobj = PyInt_FromLong((long)result); | |
1494 | { | |
1495 | if (temp1) | |
1496 | delete arg1; | |
1497 | } | |
1498 | return resultobj; | |
1499 | fail: | |
1500 | { | |
1501 | if (temp1) | |
1502 | delete arg1; | |
1503 | } | |
1504 | return NULL; | |
1505 | } | |
1506 | ||
1507 | ||
1508 | static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) { | |
1509 | PyObject *obj; | |
1510 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1511 | SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj); | |
1512 | Py_INCREF(obj); | |
1513 | return Py_BuildValue((char *)""); | |
1514 | } | |
1515 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1516 | PyObject *resultobj; | |
1517 | long result; | |
1518 | char *kwnames[] = { | |
1519 | NULL | |
1520 | }; | |
1521 | ||
1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1523 | { | |
1524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1525 | result = (long)wxNewId(); | |
1526 | ||
1527 | wxPyEndAllowThreads(__tstate); | |
1528 | if (PyErr_Occurred()) SWIG_fail; | |
1529 | } | |
1530 | resultobj = PyInt_FromLong((long)result); | |
1531 | return resultobj; | |
1532 | fail: | |
1533 | return NULL; | |
1534 | } | |
1535 | ||
1536 | ||
1537 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject *resultobj; | |
1539 | long arg1 ; | |
1540 | char *kwnames[] = { | |
1541 | (char *) "id", NULL | |
1542 | }; | |
1543 | ||
1544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:RegisterId",kwnames,&arg1)) goto fail; | |
1545 | { | |
1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1547 | wxRegisterId(arg1); | |
1548 | ||
1549 | wxPyEndAllowThreads(__tstate); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | } | |
1552 | Py_INCREF(Py_None); resultobj = Py_None; | |
1553 | return resultobj; | |
1554 | fail: | |
1555 | return NULL; | |
1556 | } | |
1557 | ||
1558 | ||
1559 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject *resultobj; | |
1561 | long result; | |
1562 | char *kwnames[] = { | |
1563 | NULL | |
1564 | }; | |
1565 | ||
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1567 | { | |
1568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1569 | result = (long)wxGetCurrentId(); | |
1570 | ||
1571 | wxPyEndAllowThreads(__tstate); | |
1572 | if (PyErr_Occurred()) SWIG_fail; | |
1573 | } | |
1574 | resultobj = PyInt_FromLong((long)result); | |
1575 | return resultobj; | |
1576 | fail: | |
1577 | return NULL; | |
1578 | } | |
1579 | ||
1580 | ||
1581 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1582 | PyObject *resultobj; | |
1583 | char *kwnames[] = { | |
1584 | NULL | |
1585 | }; | |
1586 | ||
1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1588 | { | |
1589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1590 | wxBell(); | |
1591 | ||
1592 | wxPyEndAllowThreads(__tstate); | |
1593 | if (PyErr_Occurred()) SWIG_fail; | |
1594 | } | |
1595 | Py_INCREF(Py_None); resultobj = Py_None; | |
1596 | return resultobj; | |
1597 | fail: | |
1598 | return NULL; | |
1599 | } | |
1600 | ||
1601 | ||
1602 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1603 | PyObject *resultobj; | |
1604 | char *kwnames[] = { | |
1605 | NULL | |
1606 | }; | |
1607 | ||
1608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1609 | { | |
1610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1611 | wxEndBusyCursor(); | |
1612 | ||
1613 | wxPyEndAllowThreads(__tstate); | |
1614 | if (PyErr_Occurred()) SWIG_fail; | |
1615 | } | |
1616 | Py_INCREF(Py_None); resultobj = Py_None; | |
1617 | return resultobj; | |
1618 | fail: | |
1619 | return NULL; | |
1620 | } | |
1621 | ||
1622 | ||
1623 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1624 | PyObject *resultobj; | |
423f194a | 1625 | bool arg1 = (bool) True ; |
d14a1e28 RD |
1626 | long result; |
1627 | PyObject * obj0 = 0 ; | |
1628 | char *kwnames[] = { | |
1629 | (char *) "resetTimer", NULL | |
1630 | }; | |
1631 | ||
1632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1633 | if (obj0) { | |
1634 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
1635 | if (PyErr_Occurred()) SWIG_fail; | |
1636 | } | |
1637 | { | |
1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1639 | result = (long)wxGetElapsedTime(arg1); | |
1640 | ||
1641 | wxPyEndAllowThreads(__tstate); | |
1642 | if (PyErr_Occurred()) SWIG_fail; | |
1643 | } | |
1644 | resultobj = PyInt_FromLong((long)result); | |
1645 | return resultobj; | |
1646 | fail: | |
1647 | return NULL; | |
1648 | } | |
1649 | ||
1650 | ||
1651 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject *resultobj; | |
1653 | int *arg1 = (int *) 0 ; | |
1654 | int *arg2 = (int *) 0 ; | |
1655 | int temp1 ; | |
1656 | int temp2 ; | |
1657 | char *kwnames[] = { | |
1658 | NULL | |
1659 | }; | |
1660 | ||
1661 | arg1 = &temp1; | |
1662 | arg2 = &temp2; | |
1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1664 | { | |
1665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1666 | wxGetMousePosition(arg1,arg2); | |
1667 | ||
1668 | wxPyEndAllowThreads(__tstate); | |
1669 | if (PyErr_Occurred()) SWIG_fail; | |
1670 | } | |
1671 | Py_INCREF(Py_None); resultobj = Py_None; | |
1672 | { | |
1673 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1674 | resultobj = t_output_helper(resultobj,o); | |
1675 | } | |
1676 | { | |
1677 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1678 | resultobj = t_output_helper(resultobj,o); | |
1679 | } | |
1680 | return resultobj; | |
1681 | fail: | |
1682 | return NULL; | |
1683 | } | |
1684 | ||
1685 | ||
1686 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1687 | PyObject *resultobj; | |
1688 | bool result; | |
1689 | char *kwnames[] = { | |
1690 | NULL | |
1691 | }; | |
1692 | ||
1693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1694 | { | |
1695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1696 | result = (bool)wxIsBusy(); | |
1697 | ||
1698 | wxPyEndAllowThreads(__tstate); | |
1699 | if (PyErr_Occurred()) SWIG_fail; | |
1700 | } | |
1701 | resultobj = PyInt_FromLong((long)result); | |
1702 | return resultobj; | |
1703 | fail: | |
1704 | return NULL; | |
1705 | } | |
1706 | ||
1707 | ||
1708 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1709 | PyObject *resultobj; | |
1710 | wxString result; | |
1711 | char *kwnames[] = { | |
1712 | NULL | |
1713 | }; | |
1714 | ||
1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1716 | { | |
1717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1718 | result = wxNow(); | |
1719 | ||
1720 | wxPyEndAllowThreads(__tstate); | |
1721 | if (PyErr_Occurred()) SWIG_fail; | |
1722 | } | |
1723 | { | |
1724 | #if wxUSE_UNICODE | |
1725 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1726 | #else | |
1727 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1728 | #endif | |
1729 | } | |
1730 | return resultobj; | |
1731 | fail: | |
1732 | return NULL; | |
1733 | } | |
1734 | ||
1735 | ||
1736 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject *resultobj; | |
1738 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1739 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1740 | bool result; | |
423f194a | 1741 | bool temp1 = False ; |
d14a1e28 RD |
1742 | PyObject * obj0 = 0 ; |
1743 | char *kwnames[] = { | |
1744 | (char *) "command", NULL | |
1745 | }; | |
1746 | ||
1747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1748 | if (obj0) { | |
1749 | { | |
1750 | arg1 = wxString_in_helper(obj0); | |
1751 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1752 | temp1 = True; |
d14a1e28 RD |
1753 | } |
1754 | } | |
1755 | { | |
1756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1757 | result = (bool)wxShell((wxString const &)*arg1); | |
1758 | ||
1759 | wxPyEndAllowThreads(__tstate); | |
1760 | if (PyErr_Occurred()) SWIG_fail; | |
1761 | } | |
1762 | resultobj = PyInt_FromLong((long)result); | |
1763 | { | |
1764 | if (temp1) | |
1765 | delete arg1; | |
1766 | } | |
1767 | return resultobj; | |
1768 | fail: | |
1769 | { | |
1770 | if (temp1) | |
1771 | delete arg1; | |
1772 | } | |
1773 | return NULL; | |
1774 | } | |
1775 | ||
1776 | ||
1777 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1778 | PyObject *resultobj; | |
1779 | char *kwnames[] = { | |
1780 | NULL | |
1781 | }; | |
1782 | ||
1783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
1784 | { | |
1785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1786 | wxStartTimer(); | |
1787 | ||
1788 | wxPyEndAllowThreads(__tstate); | |
1789 | if (PyErr_Occurred()) SWIG_fail; | |
1790 | } | |
1791 | Py_INCREF(Py_None); resultobj = Py_None; | |
1792 | return resultobj; | |
1793 | fail: | |
1794 | return NULL; | |
1795 | } | |
1796 | ||
1797 | ||
1798 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1799 | PyObject *resultobj; | |
1800 | int *arg1 = (int *) 0 ; | |
1801 | int *arg2 = (int *) 0 ; | |
1802 | int result; | |
1803 | int temp1 ; | |
1804 | int temp2 ; | |
1805 | char *kwnames[] = { | |
1806 | NULL | |
1807 | }; | |
1808 | ||
1809 | arg1 = &temp1; | |
1810 | arg2 = &temp2; | |
1811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
1812 | { | |
1813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1814 | result = (int)wxGetOsVersion(arg1,arg2); | |
1815 | ||
1816 | wxPyEndAllowThreads(__tstate); | |
1817 | if (PyErr_Occurred()) SWIG_fail; | |
1818 | } | |
1819 | resultobj = PyInt_FromLong((long)result); | |
1820 | { | |
1821 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1822 | resultobj = t_output_helper(resultobj,o); | |
1823 | } | |
1824 | { | |
1825 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1826 | resultobj = t_output_helper(resultobj,o); | |
1827 | } | |
1828 | return resultobj; | |
1829 | fail: | |
1830 | return NULL; | |
1831 | } | |
1832 | ||
1833 | ||
1834 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1835 | PyObject *resultobj; | |
1836 | wxString result; | |
1837 | char *kwnames[] = { | |
1838 | NULL | |
1839 | }; | |
1840 | ||
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
1842 | { | |
1843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1844 | result = wxGetOsDescription(); | |
1845 | ||
1846 | wxPyEndAllowThreads(__tstate); | |
1847 | if (PyErr_Occurred()) SWIG_fail; | |
1848 | } | |
1849 | { | |
1850 | #if wxUSE_UNICODE | |
1851 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1852 | #else | |
1853 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1854 | #endif | |
1855 | } | |
1856 | return resultobj; | |
1857 | fail: | |
1858 | return NULL; | |
1859 | } | |
1860 | ||
1861 | ||
1862 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject *resultobj; | |
1864 | long result; | |
1865 | char *kwnames[] = { | |
1866 | NULL | |
1867 | }; | |
1868 | ||
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
1870 | { | |
1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1872 | result = (long)wxGetFreeMemory(); | |
1873 | ||
1874 | wxPyEndAllowThreads(__tstate); | |
1875 | if (PyErr_Occurred()) SWIG_fail; | |
1876 | } | |
1877 | resultobj = PyInt_FromLong((long)result); | |
1878 | return resultobj; | |
1879 | fail: | |
1880 | return NULL; | |
1881 | } | |
1882 | ||
1883 | ||
1884 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1885 | PyObject *resultobj; | |
1886 | int arg1 ; | |
1887 | bool result; | |
1888 | char *kwnames[] = { | |
1889 | (char *) "wFlags", NULL | |
1890 | }; | |
1891 | ||
1892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Shutdown",kwnames,&arg1)) goto fail; | |
1893 | { | |
1894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1895 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
1896 | ||
1897 | wxPyEndAllowThreads(__tstate); | |
1898 | if (PyErr_Occurred()) SWIG_fail; | |
1899 | } | |
1900 | resultobj = PyInt_FromLong((long)result); | |
1901 | return resultobj; | |
1902 | fail: | |
1903 | return NULL; | |
1904 | } | |
1905 | ||
1906 | ||
1907 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1908 | PyObject *resultobj; | |
1909 | int arg1 ; | |
1910 | char *kwnames[] = { | |
1911 | (char *) "secs", NULL | |
1912 | }; | |
1913 | ||
1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Sleep",kwnames,&arg1)) goto fail; | |
1915 | { | |
1916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1917 | wxSleep(arg1); | |
1918 | ||
1919 | wxPyEndAllowThreads(__tstate); | |
1920 | if (PyErr_Occurred()) SWIG_fail; | |
1921 | } | |
1922 | Py_INCREF(Py_None); resultobj = Py_None; | |
1923 | return resultobj; | |
1924 | fail: | |
1925 | return NULL; | |
1926 | } | |
1927 | ||
1928 | ||
1929 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject *resultobj; | |
1931 | unsigned long arg1 ; | |
1932 | PyObject * obj0 = 0 ; | |
1933 | char *kwnames[] = { | |
1934 | (char *) "milliseconds", NULL | |
1935 | }; | |
1936 | ||
1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
1938 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
1939 | if (PyErr_Occurred()) SWIG_fail; | |
1940 | { | |
1941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1942 | wxUsleep(arg1); | |
1943 | ||
1944 | wxPyEndAllowThreads(__tstate); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | } | |
1947 | Py_INCREF(Py_None); resultobj = Py_None; | |
1948 | return resultobj; | |
1949 | fail: | |
1950 | return NULL; | |
1951 | } | |
1952 | ||
1953 | ||
1954 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1955 | PyObject *resultobj; | |
1956 | bool arg1 ; | |
1957 | PyObject * obj0 = 0 ; | |
1958 | char *kwnames[] = { | |
1959 | (char *) "enable", NULL | |
1960 | }; | |
1961 | ||
1962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
1963 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
1964 | if (PyErr_Occurred()) SWIG_fail; | |
1965 | { | |
1966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1967 | wxEnableTopLevelWindows(arg1); | |
1968 | ||
1969 | wxPyEndAllowThreads(__tstate); | |
1970 | if (PyErr_Occurred()) SWIG_fail; | |
1971 | } | |
1972 | Py_INCREF(Py_None); resultobj = Py_None; | |
1973 | return resultobj; | |
1974 | fail: | |
1975 | return NULL; | |
1976 | } | |
1977 | ||
1978 | ||
1979 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1980 | PyObject *resultobj; | |
1981 | wxString *arg1 = 0 ; | |
1982 | wxString result; | |
423f194a | 1983 | bool temp1 = False ; |
d14a1e28 RD |
1984 | PyObject * obj0 = 0 ; |
1985 | char *kwnames[] = { | |
1986 | (char *) "in", NULL | |
1987 | }; | |
1988 | ||
1989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
1990 | { | |
1991 | arg1 = wxString_in_helper(obj0); | |
1992 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1993 | temp1 = True; |
d14a1e28 RD |
1994 | } |
1995 | { | |
1996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1997 | result = wxStripMenuCodes((wxString const &)*arg1); | |
1998 | ||
1999 | wxPyEndAllowThreads(__tstate); | |
2000 | if (PyErr_Occurred()) SWIG_fail; | |
2001 | } | |
2002 | { | |
2003 | #if wxUSE_UNICODE | |
2004 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2005 | #else | |
2006 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2007 | #endif | |
2008 | } | |
2009 | { | |
2010 | if (temp1) | |
2011 | delete arg1; | |
2012 | } | |
2013 | return resultobj; | |
2014 | fail: | |
2015 | { | |
2016 | if (temp1) | |
2017 | delete arg1; | |
2018 | } | |
2019 | return NULL; | |
2020 | } | |
2021 | ||
2022 | ||
2023 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2024 | PyObject *resultobj; | |
2025 | wxString result; | |
2026 | char *kwnames[] = { | |
2027 | NULL | |
2028 | }; | |
2029 | ||
2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2031 | { | |
2032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2033 | result = wxGetEmailAddress(); | |
2034 | ||
2035 | wxPyEndAllowThreads(__tstate); | |
2036 | if (PyErr_Occurred()) SWIG_fail; | |
2037 | } | |
2038 | { | |
2039 | #if wxUSE_UNICODE | |
2040 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2041 | #else | |
2042 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2043 | #endif | |
2044 | } | |
2045 | return resultobj; | |
2046 | fail: | |
2047 | return NULL; | |
2048 | } | |
2049 | ||
2050 | ||
2051 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject *resultobj; | |
2053 | wxString result; | |
2054 | char *kwnames[] = { | |
2055 | NULL | |
2056 | }; | |
2057 | ||
2058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2059 | { | |
2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2061 | result = wxGetHostName(); | |
2062 | ||
2063 | wxPyEndAllowThreads(__tstate); | |
2064 | if (PyErr_Occurred()) SWIG_fail; | |
2065 | } | |
2066 | { | |
2067 | #if wxUSE_UNICODE | |
2068 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2069 | #else | |
2070 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2071 | #endif | |
2072 | } | |
2073 | return resultobj; | |
2074 | fail: | |
2075 | return NULL; | |
2076 | } | |
2077 | ||
2078 | ||
2079 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2080 | PyObject *resultobj; | |
2081 | wxString result; | |
2082 | char *kwnames[] = { | |
2083 | NULL | |
2084 | }; | |
2085 | ||
2086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2087 | { | |
2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2089 | result = wxGetFullHostName(); | |
2090 | ||
2091 | wxPyEndAllowThreads(__tstate); | |
2092 | if (PyErr_Occurred()) SWIG_fail; | |
2093 | } | |
2094 | { | |
2095 | #if wxUSE_UNICODE | |
2096 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2097 | #else | |
2098 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2099 | #endif | |
2100 | } | |
2101 | return resultobj; | |
2102 | fail: | |
2103 | return NULL; | |
2104 | } | |
2105 | ||
2106 | ||
2107 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2108 | PyObject *resultobj; | |
2109 | wxString result; | |
2110 | char *kwnames[] = { | |
2111 | NULL | |
2112 | }; | |
2113 | ||
2114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2115 | { | |
2116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2117 | result = wxGetUserId(); | |
2118 | ||
2119 | wxPyEndAllowThreads(__tstate); | |
2120 | if (PyErr_Occurred()) SWIG_fail; | |
2121 | } | |
2122 | { | |
2123 | #if wxUSE_UNICODE | |
2124 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2125 | #else | |
2126 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2127 | #endif | |
2128 | } | |
2129 | return resultobj; | |
2130 | fail: | |
2131 | return NULL; | |
2132 | } | |
2133 | ||
2134 | ||
2135 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2136 | PyObject *resultobj; | |
2137 | wxString result; | |
2138 | char *kwnames[] = { | |
2139 | NULL | |
2140 | }; | |
2141 | ||
2142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2143 | { | |
2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2145 | result = wxGetUserName(); | |
2146 | ||
2147 | wxPyEndAllowThreads(__tstate); | |
2148 | if (PyErr_Occurred()) SWIG_fail; | |
2149 | } | |
2150 | { | |
2151 | #if wxUSE_UNICODE | |
2152 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2153 | #else | |
2154 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2155 | #endif | |
2156 | } | |
2157 | return resultobj; | |
2158 | fail: | |
2159 | return NULL; | |
2160 | } | |
2161 | ||
2162 | ||
2163 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2164 | PyObject *resultobj; | |
2165 | wxString result; | |
2166 | char *kwnames[] = { | |
2167 | NULL | |
2168 | }; | |
2169 | ||
2170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2171 | { | |
2172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2173 | result = wxGetHomeDir(); | |
2174 | ||
2175 | wxPyEndAllowThreads(__tstate); | |
2176 | if (PyErr_Occurred()) SWIG_fail; | |
2177 | } | |
2178 | { | |
2179 | #if wxUSE_UNICODE | |
2180 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2181 | #else | |
2182 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2183 | #endif | |
2184 | } | |
2185 | return resultobj; | |
2186 | fail: | |
2187 | return NULL; | |
2188 | } | |
2189 | ||
2190 | ||
2191 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2192 | PyObject *resultobj; | |
2193 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2194 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2195 | wxString result; | |
423f194a | 2196 | bool temp1 = False ; |
d14a1e28 RD |
2197 | PyObject * obj0 = 0 ; |
2198 | char *kwnames[] = { | |
2199 | (char *) "user", NULL | |
2200 | }; | |
2201 | ||
2202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2203 | if (obj0) { | |
2204 | { | |
2205 | arg1 = wxString_in_helper(obj0); | |
2206 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2207 | temp1 = True; |
d14a1e28 RD |
2208 | } |
2209 | } | |
2210 | { | |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2212 | result = wxGetUserHome((wxString const &)*arg1); | |
2213 | ||
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
2217 | { | |
2218 | #if wxUSE_UNICODE | |
2219 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2220 | #else | |
2221 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2222 | #endif | |
2223 | } | |
2224 | { | |
2225 | if (temp1) | |
2226 | delete arg1; | |
2227 | } | |
2228 | return resultobj; | |
2229 | fail: | |
2230 | { | |
2231 | if (temp1) | |
2232 | delete arg1; | |
2233 | } | |
2234 | return NULL; | |
2235 | } | |
2236 | ||
2237 | ||
2238 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2239 | PyObject *resultobj; | |
2240 | unsigned long result; | |
2241 | char *kwnames[] = { | |
2242 | NULL | |
2243 | }; | |
2244 | ||
2245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2246 | { | |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | result = (unsigned long)wxGetProcessId(); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) SWIG_fail; | |
2252 | } | |
2253 | resultobj = PyInt_FromLong((long)result); | |
2254 | return resultobj; | |
2255 | fail: | |
2256 | return NULL; | |
2257 | } | |
2258 | ||
2259 | ||
2260 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2261 | PyObject *resultobj; | |
2262 | char *kwnames[] = { | |
2263 | NULL | |
2264 | }; | |
2265 | ||
2266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2267 | { | |
2268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2269 | wxTrap(); | |
2270 | ||
2271 | wxPyEndAllowThreads(__tstate); | |
2272 | if (PyErr_Occurred()) SWIG_fail; | |
2273 | } | |
2274 | Py_INCREF(Py_None); resultobj = Py_None; | |
2275 | return resultobj; | |
2276 | fail: | |
2277 | return NULL; | |
2278 | } | |
2279 | ||
2280 | ||
2281 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2282 | PyObject *resultobj; | |
2283 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2284 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2285 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2286 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2287 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2288 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2289 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2290 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2291 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2292 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2293 | int arg6 = (int) 0 ; | |
2294 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2295 | int arg8 = (int) -1 ; | |
2296 | int arg9 = (int) -1 ; | |
2297 | wxString result; | |
423f194a RD |
2298 | bool temp1 = False ; |
2299 | bool temp2 = False ; | |
2300 | bool temp3 = False ; | |
2301 | bool temp4 = False ; | |
2302 | bool temp5 = False ; | |
d14a1e28 RD |
2303 | PyObject * obj0 = 0 ; |
2304 | PyObject * obj1 = 0 ; | |
2305 | PyObject * obj2 = 0 ; | |
2306 | PyObject * obj3 = 0 ; | |
2307 | PyObject * obj4 = 0 ; | |
2308 | PyObject * obj6 = 0 ; | |
2309 | char *kwnames[] = { | |
2310 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2311 | }; | |
2312 | ||
2313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOiOii:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&arg9)) goto fail; | |
2314 | if (obj0) { | |
2315 | { | |
2316 | arg1 = wxString_in_helper(obj0); | |
2317 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2318 | temp1 = True; |
d14a1e28 RD |
2319 | } |
2320 | } | |
2321 | if (obj1) { | |
2322 | { | |
2323 | arg2 = wxString_in_helper(obj1); | |
2324 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2325 | temp2 = True; |
d14a1e28 RD |
2326 | } |
2327 | } | |
2328 | if (obj2) { | |
2329 | { | |
2330 | arg3 = wxString_in_helper(obj2); | |
2331 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2332 | temp3 = True; |
d14a1e28 RD |
2333 | } |
2334 | } | |
2335 | if (obj3) { | |
2336 | { | |
2337 | arg4 = wxString_in_helper(obj3); | |
2338 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2339 | temp4 = True; |
d14a1e28 RD |
2340 | } |
2341 | } | |
2342 | if (obj4) { | |
2343 | { | |
2344 | arg5 = wxString_in_helper(obj4); | |
2345 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 2346 | temp5 = True; |
d14a1e28 RD |
2347 | } |
2348 | } | |
2349 | if (obj6) { | |
2350 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2351 | } | |
2352 | { | |
2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2354 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2355 | ||
2356 | wxPyEndAllowThreads(__tstate); | |
2357 | if (PyErr_Occurred()) SWIG_fail; | |
2358 | } | |
2359 | { | |
2360 | #if wxUSE_UNICODE | |
2361 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2362 | #else | |
2363 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2364 | #endif | |
2365 | } | |
2366 | { | |
2367 | if (temp1) | |
2368 | delete arg1; | |
2369 | } | |
2370 | { | |
2371 | if (temp2) | |
2372 | delete arg2; | |
2373 | } | |
2374 | { | |
2375 | if (temp3) | |
2376 | delete arg3; | |
2377 | } | |
2378 | { | |
2379 | if (temp4) | |
2380 | delete arg4; | |
2381 | } | |
2382 | { | |
2383 | if (temp5) | |
2384 | delete arg5; | |
2385 | } | |
2386 | return resultobj; | |
2387 | fail: | |
2388 | { | |
2389 | if (temp1) | |
2390 | delete arg1; | |
2391 | } | |
2392 | { | |
2393 | if (temp2) | |
2394 | delete arg2; | |
2395 | } | |
2396 | { | |
2397 | if (temp3) | |
2398 | delete arg3; | |
2399 | } | |
2400 | { | |
2401 | if (temp4) | |
2402 | delete arg4; | |
2403 | } | |
2404 | { | |
2405 | if (temp5) | |
2406 | delete arg5; | |
2407 | } | |
2408 | return NULL; | |
2409 | } | |
2410 | ||
2411 | ||
2412 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2413 | PyObject *resultobj; | |
2414 | wxString *arg1 = 0 ; | |
2415 | wxString *arg2 = 0 ; | |
2416 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2417 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2418 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2419 | wxString result; | |
423f194a RD |
2420 | bool temp1 = False ; |
2421 | bool temp2 = False ; | |
2422 | bool temp3 = False ; | |
d14a1e28 RD |
2423 | PyObject * obj0 = 0 ; |
2424 | PyObject * obj1 = 0 ; | |
2425 | PyObject * obj2 = 0 ; | |
2426 | PyObject * obj3 = 0 ; | |
2427 | char *kwnames[] = { | |
2428 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2429 | }; | |
2430 | ||
2431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2432 | { | |
2433 | arg1 = wxString_in_helper(obj0); | |
2434 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2435 | temp1 = True; |
d14a1e28 RD |
2436 | } |
2437 | { | |
2438 | arg2 = wxString_in_helper(obj1); | |
2439 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2440 | temp2 = True; |
d14a1e28 RD |
2441 | } |
2442 | if (obj2) { | |
2443 | { | |
2444 | arg3 = wxString_in_helper(obj2); | |
2445 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2446 | temp3 = True; |
d14a1e28 RD |
2447 | } |
2448 | } | |
2449 | if (obj3) { | |
2450 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2451 | } | |
2452 | { | |
2453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2454 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2455 | ||
2456 | wxPyEndAllowThreads(__tstate); | |
2457 | if (PyErr_Occurred()) SWIG_fail; | |
2458 | } | |
2459 | { | |
2460 | #if wxUSE_UNICODE | |
2461 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2462 | #else | |
2463 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2464 | #endif | |
2465 | } | |
2466 | { | |
2467 | if (temp1) | |
2468 | delete arg1; | |
2469 | } | |
2470 | { | |
2471 | if (temp2) | |
2472 | delete arg2; | |
2473 | } | |
2474 | { | |
2475 | if (temp3) | |
2476 | delete arg3; | |
2477 | } | |
2478 | return resultobj; | |
2479 | fail: | |
2480 | { | |
2481 | if (temp1) | |
2482 | delete arg1; | |
2483 | } | |
2484 | { | |
2485 | if (temp2) | |
2486 | delete arg2; | |
2487 | } | |
2488 | { | |
2489 | if (temp3) | |
2490 | delete arg3; | |
2491 | } | |
2492 | return NULL; | |
2493 | } | |
2494 | ||
2495 | ||
2496 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2497 | PyObject *resultobj; | |
2498 | wxString *arg1 = 0 ; | |
2499 | wxString *arg2 = 0 ; | |
2500 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2501 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2502 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2503 | wxString result; | |
423f194a RD |
2504 | bool temp1 = False ; |
2505 | bool temp2 = False ; | |
2506 | bool temp3 = False ; | |
d14a1e28 RD |
2507 | PyObject * obj0 = 0 ; |
2508 | PyObject * obj1 = 0 ; | |
2509 | PyObject * obj2 = 0 ; | |
2510 | PyObject * obj3 = 0 ; | |
2511 | char *kwnames[] = { | |
2512 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2513 | }; | |
2514 | ||
2515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2516 | { | |
2517 | arg1 = wxString_in_helper(obj0); | |
2518 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2519 | temp1 = True; |
d14a1e28 RD |
2520 | } |
2521 | { | |
2522 | arg2 = wxString_in_helper(obj1); | |
2523 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2524 | temp2 = True; |
d14a1e28 RD |
2525 | } |
2526 | if (obj2) { | |
2527 | { | |
2528 | arg3 = wxString_in_helper(obj2); | |
2529 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2530 | temp3 = True; |
d14a1e28 RD |
2531 | } |
2532 | } | |
2533 | if (obj3) { | |
2534 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2535 | } | |
2536 | { | |
2537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2538 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2539 | ||
2540 | wxPyEndAllowThreads(__tstate); | |
2541 | if (PyErr_Occurred()) SWIG_fail; | |
2542 | } | |
2543 | { | |
2544 | #if wxUSE_UNICODE | |
2545 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2546 | #else | |
2547 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2548 | #endif | |
2549 | } | |
2550 | { | |
2551 | if (temp1) | |
2552 | delete arg1; | |
2553 | } | |
2554 | { | |
2555 | if (temp2) | |
2556 | delete arg2; | |
2557 | } | |
2558 | { | |
2559 | if (temp3) | |
2560 | delete arg3; | |
2561 | } | |
2562 | return resultobj; | |
2563 | fail: | |
2564 | { | |
2565 | if (temp1) | |
2566 | delete arg1; | |
2567 | } | |
2568 | { | |
2569 | if (temp2) | |
2570 | delete arg2; | |
2571 | } | |
2572 | { | |
2573 | if (temp3) | |
2574 | delete arg3; | |
2575 | } | |
2576 | return NULL; | |
2577 | } | |
2578 | ||
2579 | ||
2580 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2581 | PyObject *resultobj; | |
2582 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2583 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2584 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2585 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2586 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2587 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2588 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2589 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2590 | wxString result; | |
423f194a RD |
2591 | bool temp1 = False ; |
2592 | bool temp2 = False ; | |
d14a1e28 RD |
2593 | wxPoint temp4 ; |
2594 | PyObject * obj0 = 0 ; | |
2595 | PyObject * obj1 = 0 ; | |
2596 | PyObject * obj3 = 0 ; | |
2597 | PyObject * obj4 = 0 ; | |
2598 | char *kwnames[] = { | |
2599 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2600 | }; | |
2601 | ||
2602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOlOO:DirSelector",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
2603 | if (obj0) { | |
2604 | { | |
2605 | arg1 = wxString_in_helper(obj0); | |
2606 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2607 | temp1 = True; |
d14a1e28 RD |
2608 | } |
2609 | } | |
2610 | if (obj1) { | |
2611 | { | |
2612 | arg2 = wxString_in_helper(obj1); | |
2613 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2614 | temp2 = True; |
d14a1e28 RD |
2615 | } |
2616 | } | |
2617 | if (obj3) { | |
2618 | { | |
2619 | arg4 = &temp4; | |
2620 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2621 | } | |
2622 | } | |
2623 | if (obj4) { | |
2624 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2625 | } | |
2626 | { | |
2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2628 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2629 | ||
2630 | wxPyEndAllowThreads(__tstate); | |
2631 | if (PyErr_Occurred()) SWIG_fail; | |
2632 | } | |
2633 | { | |
2634 | #if wxUSE_UNICODE | |
2635 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2636 | #else | |
2637 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2638 | #endif | |
2639 | } | |
2640 | { | |
2641 | if (temp1) | |
2642 | delete arg1; | |
2643 | } | |
2644 | { | |
2645 | if (temp2) | |
2646 | delete arg2; | |
2647 | } | |
2648 | return resultobj; | |
2649 | fail: | |
2650 | { | |
2651 | if (temp1) | |
2652 | delete arg1; | |
2653 | } | |
2654 | { | |
2655 | if (temp2) | |
2656 | delete arg2; | |
2657 | } | |
2658 | return NULL; | |
2659 | } | |
2660 | ||
2661 | ||
2662 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2663 | PyObject *resultobj; | |
2664 | wxString *arg1 = 0 ; | |
2665 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2666 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2667 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2668 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2669 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2670 | int arg5 = (int) -1 ; | |
2671 | int arg6 = (int) -1 ; | |
423f194a | 2672 | bool arg7 = (bool) True ; |
d14a1e28 | 2673 | wxString result; |
423f194a RD |
2674 | bool temp1 = False ; |
2675 | bool temp2 = False ; | |
2676 | bool temp3 = False ; | |
d14a1e28 RD |
2677 | PyObject * obj0 = 0 ; |
2678 | PyObject * obj1 = 0 ; | |
2679 | PyObject * obj2 = 0 ; | |
2680 | PyObject * obj3 = 0 ; | |
2681 | PyObject * obj6 = 0 ; | |
2682 | char *kwnames[] = { | |
2683 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2684 | }; | |
2685 | ||
2686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOiiO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
2687 | { | |
2688 | arg1 = wxString_in_helper(obj0); | |
2689 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2690 | temp1 = True; |
d14a1e28 RD |
2691 | } |
2692 | if (obj1) { | |
2693 | { | |
2694 | arg2 = wxString_in_helper(obj1); | |
2695 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2696 | temp2 = True; |
d14a1e28 RD |
2697 | } |
2698 | } | |
2699 | if (obj2) { | |
2700 | { | |
2701 | arg3 = wxString_in_helper(obj2); | |
2702 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2703 | temp3 = True; |
d14a1e28 RD |
2704 | } |
2705 | } | |
2706 | if (obj3) { | |
2707 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2708 | } | |
2709 | if (obj6) { | |
2710 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
2711 | if (PyErr_Occurred()) SWIG_fail; | |
2712 | } | |
2713 | { | |
2714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2715 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
2716 | ||
2717 | wxPyEndAllowThreads(__tstate); | |
2718 | if (PyErr_Occurred()) SWIG_fail; | |
2719 | } | |
2720 | { | |
2721 | #if wxUSE_UNICODE | |
2722 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2723 | #else | |
2724 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2725 | #endif | |
2726 | } | |
2727 | { | |
2728 | if (temp1) | |
2729 | delete arg1; | |
2730 | } | |
2731 | { | |
2732 | if (temp2) | |
2733 | delete arg2; | |
2734 | } | |
2735 | { | |
2736 | if (temp3) | |
2737 | delete arg3; | |
2738 | } | |
2739 | return resultobj; | |
2740 | fail: | |
2741 | { | |
2742 | if (temp1) | |
2743 | delete arg1; | |
2744 | } | |
2745 | { | |
2746 | if (temp2) | |
2747 | delete arg2; | |
2748 | } | |
2749 | { | |
2750 | if (temp3) | |
2751 | delete arg3; | |
2752 | } | |
2753 | return NULL; | |
2754 | } | |
2755 | ||
2756 | ||
2757 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2758 | PyObject *resultobj; | |
2759 | wxString *arg1 = 0 ; | |
2760 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2761 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2762 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2763 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2764 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2765 | wxString result; | |
423f194a RD |
2766 | bool temp1 = False ; |
2767 | bool temp2 = False ; | |
2768 | bool temp3 = False ; | |
d14a1e28 RD |
2769 | PyObject * obj0 = 0 ; |
2770 | PyObject * obj1 = 0 ; | |
2771 | PyObject * obj2 = 0 ; | |
2772 | PyObject * obj3 = 0 ; | |
2773 | char *kwnames[] = { | |
2774 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
2775 | }; | |
2776 | ||
2777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2778 | { | |
2779 | arg1 = wxString_in_helper(obj0); | |
2780 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2781 | temp1 = True; |
d14a1e28 RD |
2782 | } |
2783 | if (obj1) { | |
2784 | { | |
2785 | arg2 = wxString_in_helper(obj1); | |
2786 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2787 | temp2 = True; |
d14a1e28 RD |
2788 | } |
2789 | } | |
2790 | if (obj2) { | |
2791 | { | |
2792 | arg3 = wxString_in_helper(obj2); | |
2793 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2794 | temp3 = True; |
d14a1e28 RD |
2795 | } |
2796 | } | |
2797 | if (obj3) { | |
2798 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2799 | } | |
2800 | { | |
2801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2802 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2803 | ||
2804 | wxPyEndAllowThreads(__tstate); | |
2805 | if (PyErr_Occurred()) SWIG_fail; | |
2806 | } | |
2807 | { | |
2808 | #if wxUSE_UNICODE | |
2809 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2810 | #else | |
2811 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2812 | #endif | |
2813 | } | |
2814 | { | |
2815 | if (temp1) | |
2816 | delete arg1; | |
2817 | } | |
2818 | { | |
2819 | if (temp2) | |
2820 | delete arg2; | |
2821 | } | |
2822 | { | |
2823 | if (temp3) | |
2824 | delete arg3; | |
2825 | } | |
2826 | return resultobj; | |
2827 | fail: | |
2828 | { | |
2829 | if (temp1) | |
2830 | delete arg1; | |
2831 | } | |
2832 | { | |
2833 | if (temp2) | |
2834 | delete arg2; | |
2835 | } | |
2836 | { | |
2837 | if (temp3) | |
2838 | delete arg3; | |
2839 | } | |
2840 | return NULL; | |
2841 | } | |
2842 | ||
2843 | ||
2844 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2845 | PyObject *resultobj; | |
2846 | wxString *arg1 = 0 ; | |
2847 | wxString *arg2 = 0 ; | |
2848 | int arg3 ; | |
2849 | wxString *arg4 = (wxString *) 0 ; | |
2850 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2851 | int arg6 = (int) -1 ; | |
2852 | int arg7 = (int) -1 ; | |
423f194a | 2853 | bool arg8 = (bool) True ; |
d14a1e28 RD |
2854 | int arg9 = (int) 150 ; |
2855 | int arg10 = (int) 200 ; | |
2856 | wxString result; | |
423f194a RD |
2857 | bool temp1 = False ; |
2858 | bool temp2 = False ; | |
d14a1e28 RD |
2859 | PyObject * obj0 = 0 ; |
2860 | PyObject * obj1 = 0 ; | |
2861 | PyObject * obj2 = 0 ; | |
2862 | PyObject * obj3 = 0 ; | |
2863 | PyObject * obj6 = 0 ; | |
2864 | char *kwnames[] = { | |
2865 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
2866 | }; | |
2867 | ||
2868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
2869 | { | |
2870 | arg1 = wxString_in_helper(obj0); | |
2871 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2872 | temp1 = True; |
d14a1e28 RD |
2873 | } |
2874 | { | |
2875 | arg2 = wxString_in_helper(obj1); | |
2876 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2877 | temp2 = True; |
d14a1e28 RD |
2878 | } |
2879 | { | |
2880 | arg3 = PyList_Size(obj2); | |
2881 | arg4 = wxString_LIST_helper(obj2); | |
2882 | if (arg4 == NULL) SWIG_fail; | |
2883 | } | |
2884 | if (obj3) { | |
2885 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2886 | } | |
2887 | if (obj6) { | |
2888 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
2889 | if (PyErr_Occurred()) SWIG_fail; | |
2890 | } | |
2891 | { | |
2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2893 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
2894 | ||
2895 | wxPyEndAllowThreads(__tstate); | |
2896 | if (PyErr_Occurred()) SWIG_fail; | |
2897 | } | |
2898 | { | |
2899 | #if wxUSE_UNICODE | |
2900 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2901 | #else | |
2902 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2903 | #endif | |
2904 | } | |
2905 | { | |
2906 | if (temp1) | |
2907 | delete arg1; | |
2908 | } | |
2909 | { | |
2910 | if (temp2) | |
2911 | delete arg2; | |
2912 | } | |
2913 | { | |
2914 | if (arg4) delete [] arg4; | |
2915 | } | |
2916 | return resultobj; | |
2917 | fail: | |
2918 | { | |
2919 | if (temp1) | |
2920 | delete arg1; | |
2921 | } | |
2922 | { | |
2923 | if (temp2) | |
2924 | delete arg2; | |
2925 | } | |
2926 | { | |
2927 | if (arg4) delete [] arg4; | |
2928 | } | |
2929 | return NULL; | |
2930 | } | |
2931 | ||
2932 | ||
2933 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2934 | PyObject *resultobj; | |
2935 | wxString *arg1 = 0 ; | |
2936 | wxString *arg2 = 0 ; | |
2937 | int arg3 ; | |
2938 | wxString *arg4 = (wxString *) 0 ; | |
2939 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2940 | int arg6 = (int) -1 ; | |
2941 | int arg7 = (int) -1 ; | |
423f194a | 2942 | bool arg8 = (bool) True ; |
d14a1e28 RD |
2943 | int arg9 = (int) 150 ; |
2944 | int arg10 = (int) 200 ; | |
2945 | int result; | |
423f194a RD |
2946 | bool temp1 = False ; |
2947 | bool temp2 = False ; | |
d14a1e28 RD |
2948 | PyObject * obj0 = 0 ; |
2949 | PyObject * obj1 = 0 ; | |
2950 | PyObject * obj2 = 0 ; | |
2951 | PyObject * obj3 = 0 ; | |
2952 | PyObject * obj6 = 0 ; | |
2953 | char *kwnames[] = { | |
2954 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
2955 | }; | |
2956 | ||
2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
2958 | { | |
2959 | arg1 = wxString_in_helper(obj0); | |
2960 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2961 | temp1 = True; |
d14a1e28 RD |
2962 | } |
2963 | { | |
2964 | arg2 = wxString_in_helper(obj1); | |
2965 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2966 | temp2 = True; |
d14a1e28 RD |
2967 | } |
2968 | { | |
2969 | arg3 = PyList_Size(obj2); | |
2970 | arg4 = wxString_LIST_helper(obj2); | |
2971 | if (arg4 == NULL) SWIG_fail; | |
2972 | } | |
2973 | if (obj3) { | |
2974 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2975 | } | |
2976 | if (obj6) { | |
2977 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
2978 | if (PyErr_Occurred()) SWIG_fail; | |
2979 | } | |
2980 | { | |
2981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2982 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
2983 | ||
2984 | wxPyEndAllowThreads(__tstate); | |
2985 | if (PyErr_Occurred()) SWIG_fail; | |
2986 | } | |
2987 | resultobj = PyInt_FromLong((long)result); | |
2988 | { | |
2989 | if (temp1) | |
2990 | delete arg1; | |
2991 | } | |
2992 | { | |
2993 | if (temp2) | |
2994 | delete arg2; | |
2995 | } | |
2996 | { | |
2997 | if (arg4) delete [] arg4; | |
2998 | } | |
2999 | return resultobj; | |
3000 | fail: | |
3001 | { | |
3002 | if (temp1) | |
3003 | delete arg1; | |
3004 | } | |
3005 | { | |
3006 | if (temp2) | |
3007 | delete arg2; | |
3008 | } | |
3009 | { | |
3010 | if (arg4) delete [] arg4; | |
3011 | } | |
3012 | return NULL; | |
3013 | } | |
3014 | ||
3015 | ||
3016 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3017 | PyObject *resultobj; | |
3018 | wxString *arg1 = 0 ; | |
3019 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3020 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3021 | int arg3 = (int) wxOK|wxCENTRE ; | |
3022 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3023 | int arg5 = (int) -1 ; | |
3024 | int arg6 = (int) -1 ; | |
3025 | int result; | |
423f194a RD |
3026 | bool temp1 = False ; |
3027 | bool temp2 = False ; | |
d14a1e28 RD |
3028 | PyObject * obj0 = 0 ; |
3029 | PyObject * obj1 = 0 ; | |
3030 | PyObject * obj3 = 0 ; | |
3031 | char *kwnames[] = { | |
3032 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3033 | }; | |
3034 | ||
3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOii:MessageBox",kwnames,&obj0,&obj1,&arg3,&obj3,&arg5,&arg6)) goto fail; | |
3036 | { | |
3037 | arg1 = wxString_in_helper(obj0); | |
3038 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3039 | temp1 = True; |
d14a1e28 RD |
3040 | } |
3041 | if (obj1) { | |
3042 | { | |
3043 | arg2 = wxString_in_helper(obj1); | |
3044 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3045 | temp2 = True; |
d14a1e28 RD |
3046 | } |
3047 | } | |
3048 | if (obj3) { | |
3049 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3050 | } | |
3051 | { | |
3052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3053 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3054 | ||
3055 | wxPyEndAllowThreads(__tstate); | |
3056 | if (PyErr_Occurred()) SWIG_fail; | |
3057 | } | |
3058 | resultobj = PyInt_FromLong((long)result); | |
3059 | { | |
3060 | if (temp1) | |
3061 | delete arg1; | |
3062 | } | |
3063 | { | |
3064 | if (temp2) | |
3065 | delete arg2; | |
3066 | } | |
3067 | return resultobj; | |
3068 | fail: | |
3069 | { | |
3070 | if (temp1) | |
3071 | delete arg1; | |
3072 | } | |
3073 | { | |
3074 | if (temp2) | |
3075 | delete arg2; | |
3076 | } | |
3077 | return NULL; | |
3078 | } | |
3079 | ||
3080 | ||
3081 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject *resultobj; | |
3083 | wxString *arg1 = 0 ; | |
3084 | wxString *arg2 = 0 ; | |
3085 | wxString *arg3 = 0 ; | |
3086 | long arg4 ; | |
3087 | long arg5 = (long) 0 ; | |
3088 | long arg6 = (long) 100 ; | |
3089 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3090 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3091 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3092 | long result; | |
423f194a RD |
3093 | bool temp1 = False ; |
3094 | bool temp2 = False ; | |
3095 | bool temp3 = False ; | |
d14a1e28 RD |
3096 | wxPoint temp8 ; |
3097 | PyObject * obj0 = 0 ; | |
3098 | PyObject * obj1 = 0 ; | |
3099 | PyObject * obj2 = 0 ; | |
3100 | PyObject * obj6 = 0 ; | |
3101 | PyObject * obj7 = 0 ; | |
3102 | char *kwnames[] = { | |
3103 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3104 | }; | |
3105 | ||
3106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOl|llOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7)) goto fail; | |
3107 | { | |
3108 | arg1 = wxString_in_helper(obj0); | |
3109 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3110 | temp1 = True; |
d14a1e28 RD |
3111 | } |
3112 | { | |
3113 | arg2 = wxString_in_helper(obj1); | |
3114 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3115 | temp2 = True; |
d14a1e28 RD |
3116 | } |
3117 | { | |
3118 | arg3 = wxString_in_helper(obj2); | |
3119 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3120 | temp3 = True; |
d14a1e28 RD |
3121 | } |
3122 | if (obj6) { | |
3123 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3124 | } | |
3125 | if (obj7) { | |
3126 | { | |
3127 | arg8 = &temp8; | |
3128 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3129 | } | |
3130 | } | |
3131 | { | |
3132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3133 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3134 | ||
3135 | wxPyEndAllowThreads(__tstate); | |
3136 | if (PyErr_Occurred()) SWIG_fail; | |
3137 | } | |
3138 | resultobj = PyInt_FromLong((long)result); | |
3139 | { | |
3140 | if (temp1) | |
3141 | delete arg1; | |
3142 | } | |
3143 | { | |
3144 | if (temp2) | |
3145 | delete arg2; | |
3146 | } | |
3147 | { | |
3148 | if (temp3) | |
3149 | delete arg3; | |
3150 | } | |
3151 | return resultobj; | |
3152 | fail: | |
3153 | { | |
3154 | if (temp1) | |
3155 | delete arg1; | |
3156 | } | |
3157 | { | |
3158 | if (temp2) | |
3159 | delete arg2; | |
3160 | } | |
3161 | { | |
3162 | if (temp3) | |
3163 | delete arg3; | |
3164 | } | |
3165 | return NULL; | |
3166 | } | |
3167 | ||
3168 | ||
3169 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject *resultobj; | |
3171 | bool result; | |
3172 | char *kwnames[] = { | |
3173 | NULL | |
3174 | }; | |
3175 | ||
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3177 | { | |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | result = (bool)wxColourDisplay(); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | resultobj = PyInt_FromLong((long)result); | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject *resultobj; | |
3193 | int result; | |
3194 | char *kwnames[] = { | |
3195 | NULL | |
3196 | }; | |
3197 | ||
3198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3199 | { | |
3200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3201 | result = (int)wxDisplayDepth(); | |
3202 | ||
3203 | wxPyEndAllowThreads(__tstate); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
3206 | resultobj = PyInt_FromLong((long)result); | |
3207 | return resultobj; | |
3208 | fail: | |
3209 | return NULL; | |
3210 | } | |
3211 | ||
3212 | ||
3213 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3214 | PyObject *resultobj; | |
3215 | int result; | |
3216 | char *kwnames[] = { | |
3217 | NULL | |
3218 | }; | |
3219 | ||
3220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3221 | { | |
3222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3223 | result = (int)wxGetDisplayDepth(); | |
3224 | ||
3225 | wxPyEndAllowThreads(__tstate); | |
3226 | if (PyErr_Occurred()) SWIG_fail; | |
3227 | } | |
3228 | resultobj = PyInt_FromLong((long)result); | |
3229 | return resultobj; | |
3230 | fail: | |
3231 | return NULL; | |
3232 | } | |
3233 | ||
3234 | ||
3235 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3236 | PyObject *resultobj; | |
3237 | int *arg1 = (int *) 0 ; | |
3238 | int *arg2 = (int *) 0 ; | |
3239 | int temp1 ; | |
3240 | int temp2 ; | |
3241 | char *kwnames[] = { | |
3242 | NULL | |
3243 | }; | |
3244 | ||
3245 | arg1 = &temp1; | |
3246 | arg2 = &temp2; | |
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3248 | { | |
3249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3250 | wxDisplaySize(arg1,arg2); | |
3251 | ||
3252 | wxPyEndAllowThreads(__tstate); | |
3253 | if (PyErr_Occurred()) SWIG_fail; | |
3254 | } | |
3255 | Py_INCREF(Py_None); resultobj = Py_None; | |
3256 | { | |
3257 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3258 | resultobj = t_output_helper(resultobj,o); | |
3259 | } | |
3260 | { | |
3261 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3262 | resultobj = t_output_helper(resultobj,o); | |
3263 | } | |
3264 | return resultobj; | |
3265 | fail: | |
3266 | return NULL; | |
3267 | } | |
3268 | ||
3269 | ||
3270 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3271 | PyObject *resultobj; | |
3272 | wxSize result; | |
3273 | char *kwnames[] = { | |
3274 | NULL | |
3275 | }; | |
3276 | ||
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3278 | { | |
3279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3280 | result = wxGetDisplaySize(); | |
3281 | ||
3282 | wxPyEndAllowThreads(__tstate); | |
3283 | if (PyErr_Occurred()) SWIG_fail; | |
3284 | } | |
3285 | { | |
3286 | wxSize * resultptr; | |
3287 | resultptr = new wxSize((wxSize &) result); | |
3288 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3289 | } | |
3290 | return resultobj; | |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_DisplaySizeMM(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 *)":DisplaySizeMM",kwnames)) goto fail; | |
3309 | { | |
3310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3311 | wxDisplaySizeMM(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_GetDisplaySizeMM(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 *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3339 | { | |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3341 | result = wxGetDisplaySizeMM(); | |
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_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3358 | PyObject *resultobj; | |
3359 | int *arg1 = (int *) 0 ; | |
3360 | int *arg2 = (int *) 0 ; | |
3361 | int *arg3 = (int *) 0 ; | |
3362 | int *arg4 = (int *) 0 ; | |
3363 | int temp1 ; | |
3364 | int temp2 ; | |
3365 | int temp3 ; | |
3366 | int temp4 ; | |
3367 | char *kwnames[] = { | |
3368 | NULL | |
3369 | }; | |
3370 | ||
3371 | arg1 = &temp1; | |
3372 | arg2 = &temp2; | |
3373 | arg3 = &temp3; | |
3374 | arg4 = &temp4; | |
3375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3376 | { | |
3377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3378 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3379 | ||
3380 | wxPyEndAllowThreads(__tstate); | |
3381 | if (PyErr_Occurred()) SWIG_fail; | |
3382 | } | |
3383 | Py_INCREF(Py_None); resultobj = Py_None; | |
3384 | { | |
3385 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3386 | resultobj = t_output_helper(resultobj,o); | |
3387 | } | |
3388 | { | |
3389 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3390 | resultobj = t_output_helper(resultobj,o); | |
3391 | } | |
3392 | { | |
3393 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3394 | resultobj = t_output_helper(resultobj,o); | |
3395 | } | |
3396 | { | |
3397 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3398 | resultobj = t_output_helper(resultobj,o); | |
3399 | } | |
3400 | return resultobj; | |
3401 | fail: | |
3402 | return NULL; | |
3403 | } | |
3404 | ||
3405 | ||
3406 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3407 | PyObject *resultobj; | |
3408 | wxRect result; | |
3409 | char *kwnames[] = { | |
3410 | NULL | |
3411 | }; | |
3412 | ||
3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3414 | { | |
3415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3416 | result = wxGetClientDisplayRect(); | |
3417 | ||
3418 | wxPyEndAllowThreads(__tstate); | |
3419 | if (PyErr_Occurred()) SWIG_fail; | |
3420 | } | |
3421 | { | |
3422 | wxRect * resultptr; | |
3423 | resultptr = new wxRect((wxRect &) result); | |
3424 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3425 | } | |
3426 | return resultobj; | |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
3432 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3433 | PyObject *resultobj; | |
3434 | wxCursor *arg1 = 0 ; | |
3435 | PyObject * obj0 = 0 ; | |
3436 | char *kwnames[] = { | |
3437 | (char *) "cursor", NULL | |
3438 | }; | |
3439 | ||
3440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3442 | if (arg1 == NULL) { | |
3443 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3444 | } | |
3445 | { | |
3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3447 | wxSetCursor(*arg1); | |
3448 | ||
3449 | wxPyEndAllowThreads(__tstate); | |
3450 | if (PyErr_Occurred()) SWIG_fail; | |
3451 | } | |
3452 | Py_INCREF(Py_None); resultobj = Py_None; | |
3453 | return resultobj; | |
3454 | fail: | |
3455 | return NULL; | |
3456 | } | |
3457 | ||
3458 | ||
3459 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3460 | PyObject *resultobj; | |
3461 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3462 | PyObject * obj0 = 0 ; | |
3463 | char *kwnames[] = { | |
3464 | (char *) "cursor", NULL | |
3465 | }; | |
3466 | ||
3467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3468 | if (obj0) { | |
3469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3470 | } | |
3471 | { | |
3472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3473 | wxBeginBusyCursor(arg1); | |
3474 | ||
3475 | wxPyEndAllowThreads(__tstate); | |
3476 | if (PyErr_Occurred()) SWIG_fail; | |
3477 | } | |
3478 | Py_INCREF(Py_None); resultobj = Py_None; | |
3479 | return resultobj; | |
3480 | fail: | |
3481 | return NULL; | |
3482 | } | |
3483 | ||
3484 | ||
3485 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3486 | PyObject *resultobj; | |
3487 | wxWindow *result; | |
3488 | char *kwnames[] = { | |
3489 | NULL | |
3490 | }; | |
3491 | ||
3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3493 | { | |
3494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3495 | result = (wxWindow *)wxGetActiveWindow(); | |
3496 | ||
3497 | wxPyEndAllowThreads(__tstate); | |
3498 | if (PyErr_Occurred()) SWIG_fail; | |
3499 | } | |
3500 | { | |
3501 | resultobj = wxPyMake_wxObject(result); | |
3502 | } | |
3503 | return resultobj; | |
3504 | fail: | |
3505 | return NULL; | |
3506 | } | |
3507 | ||
3508 | ||
3509 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3510 | PyObject *resultobj; | |
3511 | wxPoint *arg1 = 0 ; | |
3512 | wxWindow *result; | |
3513 | wxPoint temp1 ; | |
3514 | PyObject * obj0 = 0 ; | |
3515 | char *kwnames[] = { | |
3516 | (char *) "pt", NULL | |
3517 | }; | |
3518 | ||
3519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3520 | { | |
3521 | arg1 = &temp1; | |
3522 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3523 | } | |
3524 | { | |
3525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3526 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3527 | ||
3528 | wxPyEndAllowThreads(__tstate); | |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
3530 | } | |
3531 | { | |
3532 | resultobj = wxPyMake_wxObject(result); | |
3533 | } | |
3534 | return resultobj; | |
3535 | fail: | |
3536 | return NULL; | |
3537 | } | |
3538 | ||
3539 | ||
3540 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3541 | PyObject *resultobj; | |
3542 | wxPoint *arg1 = 0 ; | |
3543 | wxWindow *result; | |
3544 | wxPoint temp1 ; | |
3545 | PyObject * obj0 = 0 ; | |
3546 | char *kwnames[] = { | |
3547 | (char *) "pt", NULL | |
3548 | }; | |
3549 | ||
3550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3551 | { | |
3552 | arg1 = &temp1; | |
3553 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3554 | } | |
3555 | { | |
3556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3557 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3558 | ||
3559 | wxPyEndAllowThreads(__tstate); | |
3560 | if (PyErr_Occurred()) SWIG_fail; | |
3561 | } | |
3562 | { | |
3563 | resultobj = wxPyMake_wxObject(result); | |
3564 | } | |
3565 | return resultobj; | |
3566 | fail: | |
3567 | return NULL; | |
3568 | } | |
3569 | ||
3570 | ||
3571 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3572 | PyObject *resultobj; | |
3573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3574 | wxWindow *result; | |
3575 | PyObject * obj0 = 0 ; | |
3576 | char *kwnames[] = { | |
3577 | (char *) "win", NULL | |
3578 | }; | |
3579 | ||
3580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3582 | { | |
3583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3584 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3585 | ||
3586 | wxPyEndAllowThreads(__tstate); | |
3587 | if (PyErr_Occurred()) SWIG_fail; | |
3588 | } | |
3589 | { | |
3590 | resultobj = wxPyMake_wxObject(result); | |
3591 | } | |
3592 | return resultobj; | |
3593 | fail: | |
3594 | return NULL; | |
3595 | } | |
3596 | ||
3597 | ||
3598 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3599 | PyObject *resultobj; | |
3600 | char *kwnames[] = { | |
3601 | NULL | |
3602 | }; | |
3603 | ||
3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
3605 | { | |
3606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3607 | wxWakeUpMainThread(); | |
3608 | ||
3609 | wxPyEndAllowThreads(__tstate); | |
3610 | if (PyErr_Occurred()) SWIG_fail; | |
3611 | } | |
3612 | Py_INCREF(Py_None); resultobj = Py_None; | |
3613 | return resultobj; | |
3614 | fail: | |
3615 | return NULL; | |
3616 | } | |
3617 | ||
3618 | ||
3619 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3620 | PyObject *resultobj; | |
3621 | char *kwnames[] = { | |
3622 | NULL | |
3623 | }; | |
3624 | ||
3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
3626 | { | |
3627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3628 | wxMutexGuiEnter(); | |
3629 | ||
3630 | wxPyEndAllowThreads(__tstate); | |
3631 | if (PyErr_Occurred()) SWIG_fail; | |
3632 | } | |
3633 | Py_INCREF(Py_None); resultobj = Py_None; | |
3634 | return resultobj; | |
3635 | fail: | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
3640 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3641 | PyObject *resultobj; | |
3642 | char *kwnames[] = { | |
3643 | NULL | |
3644 | }; | |
3645 | ||
3646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
3647 | { | |
3648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3649 | wxMutexGuiLeave(); | |
3650 | ||
3651 | wxPyEndAllowThreads(__tstate); | |
3652 | if (PyErr_Occurred()) SWIG_fail; | |
3653 | } | |
3654 | Py_INCREF(Py_None); resultobj = Py_None; | |
3655 | return resultobj; | |
3656 | fail: | |
3657 | return NULL; | |
3658 | } | |
3659 | ||
3660 | ||
3661 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3662 | PyObject *resultobj; | |
3663 | wxMutexGuiLocker *result; | |
3664 | char *kwnames[] = { | |
3665 | NULL | |
3666 | }; | |
3667 | ||
3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
3669 | { | |
3670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3671 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
3672 | ||
3673 | wxPyEndAllowThreads(__tstate); | |
3674 | if (PyErr_Occurred()) SWIG_fail; | |
3675 | } | |
3676 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
3677 | return resultobj; | |
3678 | fail: | |
3679 | return NULL; | |
3680 | } | |
3681 | ||
3682 | ||
3683 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3684 | PyObject *resultobj; | |
3685 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
3686 | PyObject * obj0 = 0 ; | |
3687 | char *kwnames[] = { | |
3688 | (char *) "self", NULL | |
3689 | }; | |
3690 | ||
3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
3692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3693 | { | |
3694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3695 | delete arg1; | |
3696 | ||
3697 | wxPyEndAllowThreads(__tstate); | |
3698 | if (PyErr_Occurred()) SWIG_fail; | |
3699 | } | |
3700 | Py_INCREF(Py_None); resultobj = Py_None; | |
3701 | return resultobj; | |
3702 | fail: | |
3703 | return NULL; | |
3704 | } | |
3705 | ||
3706 | ||
3707 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
3708 | PyObject *obj; | |
3709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3710 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
3711 | Py_INCREF(obj); | |
3712 | return Py_BuildValue((char *)""); | |
3713 | } | |
3714 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3715 | PyObject *resultobj; | |
3716 | bool result; | |
3717 | char *kwnames[] = { | |
3718 | NULL | |
3719 | }; | |
3720 | ||
3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
3722 | { | |
3723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3724 | result = (bool)wxThread_IsMain(); | |
3725 | ||
3726 | wxPyEndAllowThreads(__tstate); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | resultobj = PyInt_FromLong((long)result); | |
3730 | return resultobj; | |
3731 | fail: | |
3732 | return NULL; | |
3733 | } | |
3734 | ||
3735 | ||
3736 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3737 | PyObject *resultobj; | |
3738 | wxString *arg1 = 0 ; | |
3739 | wxToolTip *result; | |
423f194a | 3740 | bool temp1 = False ; |
d14a1e28 RD |
3741 | PyObject * obj0 = 0 ; |
3742 | char *kwnames[] = { | |
3743 | (char *) "tip", NULL | |
3744 | }; | |
3745 | ||
3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
3747 | { | |
3748 | arg1 = wxString_in_helper(obj0); | |
3749 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3750 | temp1 = True; |
d14a1e28 RD |
3751 | } |
3752 | { | |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3754 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
3755 | ||
3756 | wxPyEndAllowThreads(__tstate); | |
3757 | if (PyErr_Occurred()) SWIG_fail; | |
3758 | } | |
3759 | { | |
3760 | resultobj = wxPyMake_wxObject(result); | |
3761 | } | |
3762 | { | |
3763 | if (temp1) | |
3764 | delete arg1; | |
3765 | } | |
3766 | return resultobj; | |
3767 | fail: | |
3768 | { | |
3769 | if (temp1) | |
3770 | delete arg1; | |
3771 | } | |
3772 | return NULL; | |
3773 | } | |
3774 | ||
3775 | ||
3776 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3777 | PyObject *resultobj; | |
3778 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3779 | wxString *arg2 = 0 ; | |
423f194a | 3780 | bool temp2 = False ; |
d14a1e28 RD |
3781 | PyObject * obj0 = 0 ; |
3782 | PyObject * obj1 = 0 ; | |
3783 | char *kwnames[] = { | |
3784 | (char *) "self",(char *) "tip", NULL | |
3785 | }; | |
3786 | ||
3787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
3788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3789 | { | |
3790 | arg2 = wxString_in_helper(obj1); | |
3791 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3792 | temp2 = True; |
d14a1e28 RD |
3793 | } |
3794 | { | |
3795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3796 | (arg1)->SetTip((wxString const &)*arg2); | |
3797 | ||
3798 | wxPyEndAllowThreads(__tstate); | |
3799 | if (PyErr_Occurred()) SWIG_fail; | |
3800 | } | |
3801 | Py_INCREF(Py_None); resultobj = Py_None; | |
3802 | { | |
3803 | if (temp2) | |
3804 | delete arg2; | |
3805 | } | |
3806 | return resultobj; | |
3807 | fail: | |
3808 | { | |
3809 | if (temp2) | |
3810 | delete arg2; | |
3811 | } | |
3812 | return NULL; | |
3813 | } | |
3814 | ||
3815 | ||
3816 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3817 | PyObject *resultobj; | |
3818 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3819 | wxString result; | |
3820 | PyObject * obj0 = 0 ; | |
3821 | char *kwnames[] = { | |
3822 | (char *) "self", NULL | |
3823 | }; | |
3824 | ||
3825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
3826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3827 | { | |
3828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3829 | result = (arg1)->GetTip(); | |
3830 | ||
3831 | wxPyEndAllowThreads(__tstate); | |
3832 | if (PyErr_Occurred()) SWIG_fail; | |
3833 | } | |
3834 | { | |
3835 | #if wxUSE_UNICODE | |
3836 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3837 | #else | |
3838 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3839 | #endif | |
3840 | } | |
3841 | return resultobj; | |
3842 | fail: | |
3843 | return NULL; | |
3844 | } | |
3845 | ||
3846 | ||
3847 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3848 | PyObject *resultobj; | |
3849 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3850 | wxWindow *result; | |
3851 | PyObject * obj0 = 0 ; | |
3852 | char *kwnames[] = { | |
3853 | (char *) "self", NULL | |
3854 | }; | |
3855 | ||
3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
3857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3858 | { | |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = (wxWindow *)(arg1)->GetWindow(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
3865 | { | |
3866 | resultobj = wxPyMake_wxObject(result); | |
3867 | } | |
3868 | return resultobj; | |
3869 | fail: | |
3870 | return NULL; | |
3871 | } | |
3872 | ||
3873 | ||
3874 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3875 | PyObject *resultobj; | |
3876 | bool arg1 ; | |
3877 | PyObject * obj0 = 0 ; | |
3878 | char *kwnames[] = { | |
3879 | (char *) "flag", NULL | |
3880 | }; | |
3881 | ||
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
3883 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
3884 | if (PyErr_Occurred()) SWIG_fail; | |
3885 | { | |
3886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3887 | wxToolTip::Enable(arg1); | |
3888 | ||
3889 | wxPyEndAllowThreads(__tstate); | |
3890 | if (PyErr_Occurred()) SWIG_fail; | |
3891 | } | |
3892 | Py_INCREF(Py_None); resultobj = Py_None; | |
3893 | return resultobj; | |
3894 | fail: | |
3895 | return NULL; | |
3896 | } | |
3897 | ||
3898 | ||
3899 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject *resultobj; | |
3901 | long arg1 ; | |
3902 | char *kwnames[] = { | |
3903 | (char *) "milliseconds", NULL | |
3904 | }; | |
3905 | ||
3906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:ToolTip_SetDelay",kwnames,&arg1)) goto fail; | |
3907 | { | |
3908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3909 | wxToolTip::SetDelay(arg1); | |
3910 | ||
3911 | wxPyEndAllowThreads(__tstate); | |
3912 | if (PyErr_Occurred()) SWIG_fail; | |
3913 | } | |
3914 | Py_INCREF(Py_None); resultobj = Py_None; | |
3915 | return resultobj; | |
3916 | fail: | |
3917 | return NULL; | |
3918 | } | |
3919 | ||
3920 | ||
3921 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
3922 | PyObject *obj; | |
3923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3924 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
3925 | Py_INCREF(obj); | |
3926 | return Py_BuildValue((char *)""); | |
3927 | } | |
3928 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3929 | PyObject *resultobj; | |
3930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3931 | wxSize *arg2 = 0 ; | |
3932 | wxCaret *result; | |
3933 | wxSize temp2 ; | |
3934 | PyObject * obj0 = 0 ; | |
3935 | PyObject * obj1 = 0 ; | |
3936 | char *kwnames[] = { | |
3937 | (char *) "window",(char *) "size", NULL | |
3938 | }; | |
3939 | ||
3940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
3941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3942 | { | |
3943 | arg2 = &temp2; | |
3944 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3945 | } | |
3946 | { | |
3947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3948 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
3949 | ||
3950 | wxPyEndAllowThreads(__tstate); | |
3951 | if (PyErr_Occurred()) SWIG_fail; | |
3952 | } | |
3953 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
3954 | return resultobj; | |
3955 | fail: | |
3956 | return NULL; | |
3957 | } | |
3958 | ||
3959 | ||
3960 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3961 | PyObject *resultobj; | |
3962 | wxCaret *arg1 = (wxCaret *) 0 ; | |
3963 | PyObject * obj0 = 0 ; | |
3964 | char *kwnames[] = { | |
3965 | (char *) "self", NULL | |
3966 | }; | |
3967 | ||
3968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
3969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3970 | { | |
3971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3972 | delete arg1; | |
3973 | ||
3974 | wxPyEndAllowThreads(__tstate); | |
3975 | if (PyErr_Occurred()) SWIG_fail; | |
3976 | } | |
3977 | Py_INCREF(Py_None); resultobj = Py_None; | |
3978 | return resultobj; | |
3979 | fail: | |
3980 | return NULL; | |
3981 | } | |
3982 | ||
3983 | ||
3984 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3985 | PyObject *resultobj; | |
3986 | wxCaret *arg1 = (wxCaret *) 0 ; | |
3987 | bool result; | |
3988 | PyObject * obj0 = 0 ; | |
3989 | char *kwnames[] = { | |
3990 | (char *) "self", NULL | |
3991 | }; | |
3992 | ||
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
3994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3995 | { | |
3996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3997 | result = (bool)(arg1)->IsOk(); | |
3998 | ||
3999 | wxPyEndAllowThreads(__tstate); | |
4000 | if (PyErr_Occurred()) SWIG_fail; | |
4001 | } | |
4002 | resultobj = PyInt_FromLong((long)result); | |
4003 | return resultobj; | |
4004 | fail: | |
4005 | return NULL; | |
4006 | } | |
4007 | ||
4008 | ||
4009 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4010 | PyObject *resultobj; | |
4011 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4012 | bool result; | |
4013 | PyObject * obj0 = 0 ; | |
4014 | char *kwnames[] = { | |
4015 | (char *) "self", NULL | |
4016 | }; | |
4017 | ||
4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4020 | { | |
4021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4022 | result = (bool)(arg1)->IsVisible(); | |
4023 | ||
4024 | wxPyEndAllowThreads(__tstate); | |
4025 | if (PyErr_Occurred()) SWIG_fail; | |
4026 | } | |
4027 | resultobj = PyInt_FromLong((long)result); | |
4028 | return resultobj; | |
4029 | fail: | |
4030 | return NULL; | |
4031 | } | |
4032 | ||
4033 | ||
44127b65 RD |
4034 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4035 | PyObject *resultobj; | |
4036 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4037 | wxPoint result; | |
4038 | PyObject * obj0 = 0 ; | |
4039 | char *kwnames[] = { | |
4040 | (char *) "self", NULL | |
4041 | }; | |
4042 | ||
4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4045 | { | |
4046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4047 | result = (arg1)->GetPosition(); | |
4048 | ||
4049 | wxPyEndAllowThreads(__tstate); | |
4050 | if (PyErr_Occurred()) SWIG_fail; | |
4051 | } | |
4052 | { | |
4053 | wxPoint * resultptr; | |
4054 | resultptr = new wxPoint((wxPoint &) result); | |
4055 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4056 | } | |
4057 | return resultobj; | |
4058 | fail: | |
4059 | return NULL; | |
4060 | } | |
4061 | ||
4062 | ||
d14a1e28 RD |
4063 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4064 | PyObject *resultobj; | |
4065 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4066 | int *arg2 = (int *) 0 ; | |
4067 | int *arg3 = (int *) 0 ; | |
4068 | int temp2 ; | |
4069 | int temp3 ; | |
4070 | PyObject * obj0 = 0 ; | |
4071 | char *kwnames[] = { | |
4072 | (char *) "self", NULL | |
4073 | }; | |
4074 | ||
4075 | arg2 = &temp2; | |
4076 | arg3 = &temp3; | |
4077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4079 | { | |
4080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4081 | (arg1)->GetPosition(arg2,arg3); | |
4082 | ||
4083 | wxPyEndAllowThreads(__tstate); | |
4084 | if (PyErr_Occurred()) SWIG_fail; | |
4085 | } | |
4086 | Py_INCREF(Py_None); resultobj = Py_None; | |
4087 | { | |
4088 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4089 | resultobj = t_output_helper(resultobj,o); | |
4090 | } | |
4091 | { | |
4092 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4093 | resultobj = t_output_helper(resultobj,o); | |
4094 | } | |
4095 | return resultobj; | |
4096 | fail: | |
4097 | return NULL; | |
4098 | } | |
4099 | ||
4100 | ||
44127b65 | 4101 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4102 | PyObject *resultobj; |
4103 | wxCaret *arg1 = (wxCaret *) 0 ; | |
44127b65 | 4104 | wxSize result; |
d14a1e28 RD |
4105 | PyObject * obj0 = 0 ; |
4106 | char *kwnames[] = { | |
4107 | (char *) "self", NULL | |
4108 | }; | |
4109 | ||
44127b65 | 4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4112 | { | |
4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 4114 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4115 | |
4116 | wxPyEndAllowThreads(__tstate); | |
4117 | if (PyErr_Occurred()) SWIG_fail; | |
4118 | } | |
4119 | { | |
44127b65 RD |
4120 | wxSize * resultptr; |
4121 | resultptr = new wxSize((wxSize &) result); | |
4122 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
d14a1e28 RD |
4123 | } |
4124 | return resultobj; | |
4125 | fail: | |
4126 | return NULL; | |
4127 | } | |
4128 | ||
4129 | ||
4130 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4131 | PyObject *resultobj; | |
4132 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4133 | int *arg2 = (int *) 0 ; | |
4134 | int *arg3 = (int *) 0 ; | |
4135 | int temp2 ; | |
4136 | int temp3 ; | |
4137 | PyObject * obj0 = 0 ; | |
4138 | char *kwnames[] = { | |
4139 | (char *) "self", NULL | |
4140 | }; | |
4141 | ||
4142 | arg2 = &temp2; | |
4143 | arg3 = &temp3; | |
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4146 | { | |
4147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4148 | (arg1)->GetSize(arg2,arg3); | |
4149 | ||
4150 | wxPyEndAllowThreads(__tstate); | |
4151 | if (PyErr_Occurred()) SWIG_fail; | |
4152 | } | |
4153 | Py_INCREF(Py_None); resultobj = Py_None; | |
4154 | { | |
4155 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4156 | resultobj = t_output_helper(resultobj,o); | |
4157 | } | |
4158 | { | |
4159 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4160 | resultobj = t_output_helper(resultobj,o); | |
4161 | } | |
4162 | return resultobj; | |
4163 | fail: | |
4164 | return NULL; | |
4165 | } | |
4166 | ||
4167 | ||
d14a1e28 RD |
4168 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4169 | PyObject *resultobj; | |
4170 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4171 | wxWindow *result; | |
4172 | PyObject * obj0 = 0 ; | |
4173 | char *kwnames[] = { | |
4174 | (char *) "self", NULL | |
4175 | }; | |
4176 | ||
4177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4179 | { | |
4180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4181 | result = (wxWindow *)(arg1)->GetWindow(); | |
4182 | ||
4183 | wxPyEndAllowThreads(__tstate); | |
4184 | if (PyErr_Occurred()) SWIG_fail; | |
4185 | } | |
4186 | { | |
4187 | resultobj = wxPyMake_wxObject(result); | |
4188 | } | |
4189 | return resultobj; | |
4190 | fail: | |
4191 | return NULL; | |
4192 | } | |
4193 | ||
4194 | ||
4195 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4196 | PyObject *resultobj; | |
4197 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4198 | int arg2 ; | |
4199 | int arg3 ; | |
4200 | PyObject * obj0 = 0 ; | |
4201 | char *kwnames[] = { | |
4202 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4203 | }; | |
4204 | ||
4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_MoveXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4207 | { | |
4208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4209 | (arg1)->Move(arg2,arg3); | |
4210 | ||
4211 | wxPyEndAllowThreads(__tstate); | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | } | |
4214 | Py_INCREF(Py_None); resultobj = Py_None; | |
4215 | return resultobj; | |
4216 | fail: | |
4217 | return NULL; | |
4218 | } | |
4219 | ||
4220 | ||
4221 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4222 | PyObject *resultobj; | |
4223 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4224 | wxPoint *arg2 = 0 ; | |
4225 | wxPoint temp2 ; | |
4226 | PyObject * obj0 = 0 ; | |
4227 | PyObject * obj1 = 0 ; | |
4228 | char *kwnames[] = { | |
4229 | (char *) "self",(char *) "pt", NULL | |
4230 | }; | |
4231 | ||
4232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4234 | { | |
4235 | arg2 = &temp2; | |
4236 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4237 | } | |
4238 | { | |
4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4240 | (arg1)->Move((wxPoint const &)*arg2); | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | Py_INCREF(Py_None); resultobj = Py_None; | |
4246 | return resultobj; | |
4247 | fail: | |
4248 | return NULL; | |
4249 | } | |
4250 | ||
4251 | ||
4252 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4253 | PyObject *resultobj; | |
4254 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4255 | int arg2 ; | |
4256 | int arg3 ; | |
4257 | PyObject * obj0 = 0 ; | |
4258 | char *kwnames[] = { | |
4259 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4260 | }; | |
4261 | ||
4262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4264 | { | |
4265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4266 | (arg1)->SetSize(arg2,arg3); | |
4267 | ||
4268 | wxPyEndAllowThreads(__tstate); | |
4269 | if (PyErr_Occurred()) SWIG_fail; | |
4270 | } | |
4271 | Py_INCREF(Py_None); resultobj = Py_None; | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | return NULL; | |
4275 | } | |
4276 | ||
4277 | ||
4278 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4279 | PyObject *resultobj; | |
4280 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4281 | wxSize *arg2 = 0 ; | |
4282 | wxSize temp2 ; | |
4283 | PyObject * obj0 = 0 ; | |
4284 | PyObject * obj1 = 0 ; | |
4285 | char *kwnames[] = { | |
4286 | (char *) "self",(char *) "size", NULL | |
4287 | }; | |
4288 | ||
4289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4291 | { | |
4292 | arg2 = &temp2; | |
4293 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4294 | } | |
4295 | { | |
4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4297 | (arg1)->SetSize((wxSize const &)*arg2); | |
4298 | ||
4299 | wxPyEndAllowThreads(__tstate); | |
4300 | if (PyErr_Occurred()) SWIG_fail; | |
4301 | } | |
4302 | Py_INCREF(Py_None); resultobj = Py_None; | |
4303 | return resultobj; | |
4304 | fail: | |
4305 | return NULL; | |
4306 | } | |
4307 | ||
4308 | ||
4309 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4310 | PyObject *resultobj; | |
4311 | wxCaret *arg1 = (wxCaret *) 0 ; | |
423f194a | 4312 | int arg2 = (int) True ; |
d14a1e28 RD |
4313 | PyObject * obj0 = 0 ; |
4314 | char *kwnames[] = { | |
4315 | (char *) "self",(char *) "show", NULL | |
4316 | }; | |
4317 | ||
4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Caret_Show",kwnames,&obj0,&arg2)) goto fail; | |
4319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4320 | { | |
4321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4322 | (arg1)->Show(arg2); | |
4323 | ||
4324 | wxPyEndAllowThreads(__tstate); | |
4325 | if (PyErr_Occurred()) SWIG_fail; | |
4326 | } | |
4327 | Py_INCREF(Py_None); resultobj = Py_None; | |
4328 | return resultobj; | |
4329 | fail: | |
4330 | return NULL; | |
4331 | } | |
4332 | ||
4333 | ||
4334 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4335 | PyObject *resultobj; | |
4336 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4337 | PyObject * obj0 = 0 ; | |
4338 | char *kwnames[] = { | |
4339 | (char *) "self", NULL | |
4340 | }; | |
4341 | ||
4342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4344 | { | |
4345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4346 | (arg1)->Hide(); | |
4347 | ||
4348 | wxPyEndAllowThreads(__tstate); | |
4349 | if (PyErr_Occurred()) SWIG_fail; | |
4350 | } | |
4351 | Py_INCREF(Py_None); resultobj = Py_None; | |
4352 | return resultobj; | |
4353 | fail: | |
4354 | return NULL; | |
4355 | } | |
4356 | ||
4357 | ||
4358 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4359 | PyObject *obj; | |
4360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4361 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4362 | Py_INCREF(obj); | |
4363 | return Py_BuildValue((char *)""); | |
4364 | } | |
4365 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4366 | PyObject *resultobj; | |
4367 | int result; | |
4368 | char *kwnames[] = { | |
4369 | NULL | |
4370 | }; | |
4371 | ||
4372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4373 | { | |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4375 | result = (int)wxCaret_GetBlinkTime(); | |
4376 | ||
4377 | wxPyEndAllowThreads(__tstate); | |
4378 | if (PyErr_Occurred()) SWIG_fail; | |
4379 | } | |
4380 | resultobj = PyInt_FromLong((long)result); | |
4381 | return resultobj; | |
4382 | fail: | |
4383 | return NULL; | |
4384 | } | |
4385 | ||
4386 | ||
4387 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4388 | PyObject *resultobj; | |
4389 | int arg1 ; | |
4390 | char *kwnames[] = { | |
4391 | (char *) "milliseconds", NULL | |
4392 | }; | |
4393 | ||
4394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Caret_SetBlinkTime",kwnames,&arg1)) goto fail; | |
4395 | { | |
4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4397 | wxCaret_SetBlinkTime(arg1); | |
4398 | ||
4399 | wxPyEndAllowThreads(__tstate); | |
4400 | if (PyErr_Occurred()) SWIG_fail; | |
4401 | } | |
4402 | Py_INCREF(Py_None); resultobj = Py_None; | |
4403 | return resultobj; | |
4404 | fail: | |
4405 | return NULL; | |
4406 | } | |
4407 | ||
4408 | ||
4409 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4410 | PyObject *resultobj; | |
4411 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4412 | wxBusyCursor *result; | |
4413 | PyObject * obj0 = 0 ; | |
4414 | char *kwnames[] = { | |
4415 | (char *) "cursor", NULL | |
4416 | }; | |
4417 | ||
4418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4419 | if (obj0) { | |
4420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4421 | } | |
4422 | { | |
4423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4424 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4425 | ||
4426 | wxPyEndAllowThreads(__tstate); | |
4427 | if (PyErr_Occurred()) SWIG_fail; | |
4428 | } | |
4429 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4430 | return resultobj; | |
4431 | fail: | |
4432 | return NULL; | |
4433 | } | |
4434 | ||
4435 | ||
4436 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4437 | PyObject *resultobj; | |
4438 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4439 | PyObject * obj0 = 0 ; | |
4440 | char *kwnames[] = { | |
4441 | (char *) "self", NULL | |
4442 | }; | |
4443 | ||
4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4446 | { | |
4447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4448 | delete arg1; | |
4449 | ||
4450 | wxPyEndAllowThreads(__tstate); | |
4451 | if (PyErr_Occurred()) SWIG_fail; | |
4452 | } | |
4453 | Py_INCREF(Py_None); resultobj = Py_None; | |
4454 | return resultobj; | |
4455 | fail: | |
4456 | return NULL; | |
4457 | } | |
4458 | ||
4459 | ||
4460 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4461 | PyObject *obj; | |
4462 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4463 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4464 | Py_INCREF(obj); | |
4465 | return Py_BuildValue((char *)""); | |
4466 | } | |
4467 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4468 | PyObject *resultobj; | |
4469 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4470 | wxWindowDisabler *result; | |
4471 | PyObject * obj0 = 0 ; | |
4472 | char *kwnames[] = { | |
4473 | (char *) "winToSkip", NULL | |
4474 | }; | |
4475 | ||
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4477 | if (obj0) { | |
4478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4479 | } | |
4480 | { | |
4481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4482 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4483 | ||
4484 | wxPyEndAllowThreads(__tstate); | |
4485 | if (PyErr_Occurred()) SWIG_fail; | |
4486 | } | |
4487 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4488 | return resultobj; | |
4489 | fail: | |
4490 | return NULL; | |
4491 | } | |
4492 | ||
4493 | ||
4494 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4495 | PyObject *resultobj; | |
4496 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4497 | PyObject * obj0 = 0 ; | |
4498 | char *kwnames[] = { | |
4499 | (char *) "self", NULL | |
4500 | }; | |
4501 | ||
4502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | delete arg1; | |
4507 | ||
4508 | wxPyEndAllowThreads(__tstate); | |
4509 | if (PyErr_Occurred()) SWIG_fail; | |
4510 | } | |
4511 | Py_INCREF(Py_None); resultobj = Py_None; | |
4512 | return resultobj; | |
4513 | fail: | |
4514 | return NULL; | |
4515 | } | |
4516 | ||
4517 | ||
4518 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4519 | PyObject *obj; | |
4520 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4521 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4522 | Py_INCREF(obj); | |
4523 | return Py_BuildValue((char *)""); | |
4524 | } | |
4525 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject *resultobj; | |
4527 | wxString *arg1 = 0 ; | |
4528 | wxBusyInfo *result; | |
423f194a | 4529 | bool temp1 = False ; |
d14a1e28 RD |
4530 | PyObject * obj0 = 0 ; |
4531 | char *kwnames[] = { | |
4532 | (char *) "message", NULL | |
4533 | }; | |
4534 | ||
4535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4536 | { | |
4537 | arg1 = wxString_in_helper(obj0); | |
4538 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4539 | temp1 = True; |
d14a1e28 RD |
4540 | } |
4541 | { | |
4542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4543 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
4544 | ||
4545 | wxPyEndAllowThreads(__tstate); | |
4546 | if (PyErr_Occurred()) SWIG_fail; | |
4547 | } | |
4548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
4549 | { | |
4550 | if (temp1) | |
4551 | delete arg1; | |
4552 | } | |
4553 | return resultobj; | |
4554 | fail: | |
4555 | { | |
4556 | if (temp1) | |
4557 | delete arg1; | |
4558 | } | |
4559 | return NULL; | |
4560 | } | |
4561 | ||
4562 | ||
4563 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4564 | PyObject *resultobj; | |
4565 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
4566 | PyObject * obj0 = 0 ; | |
4567 | char *kwnames[] = { | |
4568 | (char *) "self", NULL | |
4569 | }; | |
4570 | ||
4571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
4572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4573 | { | |
4574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4575 | delete arg1; | |
4576 | ||
4577 | wxPyEndAllowThreads(__tstate); | |
4578 | if (PyErr_Occurred()) SWIG_fail; | |
4579 | } | |
4580 | Py_INCREF(Py_None); resultobj = Py_None; | |
4581 | return resultobj; | |
4582 | fail: | |
4583 | return NULL; | |
4584 | } | |
4585 | ||
4586 | ||
4587 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
4588 | PyObject *obj; | |
4589 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4590 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
4591 | Py_INCREF(obj); | |
4592 | return Py_BuildValue((char *)""); | |
4593 | } | |
4594 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4595 | PyObject *resultobj; | |
4596 | wxStopWatch *result; | |
4597 | char *kwnames[] = { | |
4598 | NULL | |
4599 | }; | |
4600 | ||
4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
4602 | { | |
4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4604 | result = (wxStopWatch *)new wxStopWatch(); | |
4605 | ||
4606 | wxPyEndAllowThreads(__tstate); | |
4607 | if (PyErr_Occurred()) SWIG_fail; | |
4608 | } | |
4609 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
4610 | return resultobj; | |
4611 | fail: | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
4616 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4617 | PyObject *resultobj; | |
4618 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4619 | long arg2 = (long) 0 ; | |
4620 | PyObject * obj0 = 0 ; | |
4621 | char *kwnames[] = { | |
4622 | (char *) "self",(char *) "t0", NULL | |
4623 | }; | |
4624 | ||
4625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:StopWatch_Start",kwnames,&obj0,&arg2)) goto fail; | |
4626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4627 | { | |
4628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4629 | (arg1)->Start(arg2); | |
4630 | ||
4631 | wxPyEndAllowThreads(__tstate); | |
4632 | if (PyErr_Occurred()) SWIG_fail; | |
4633 | } | |
4634 | Py_INCREF(Py_None); resultobj = Py_None; | |
4635 | return resultobj; | |
4636 | fail: | |
4637 | return NULL; | |
4638 | } | |
4639 | ||
4640 | ||
4641 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4642 | PyObject *resultobj; | |
4643 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4644 | PyObject * obj0 = 0 ; | |
4645 | char *kwnames[] = { | |
4646 | (char *) "self", NULL | |
4647 | }; | |
4648 | ||
4649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
4650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4651 | { | |
4652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4653 | (arg1)->Pause(); | |
4654 | ||
4655 | wxPyEndAllowThreads(__tstate); | |
4656 | if (PyErr_Occurred()) SWIG_fail; | |
4657 | } | |
4658 | Py_INCREF(Py_None); resultobj = Py_None; | |
4659 | return resultobj; | |
4660 | fail: | |
4661 | return NULL; | |
4662 | } | |
4663 | ||
4664 | ||
4665 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4666 | PyObject *resultobj; | |
4667 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4668 | PyObject * obj0 = 0 ; | |
4669 | char *kwnames[] = { | |
4670 | (char *) "self", NULL | |
4671 | }; | |
4672 | ||
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
4674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4675 | { | |
4676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4677 | (arg1)->Resume(); | |
4678 | ||
4679 | wxPyEndAllowThreads(__tstate); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | } | |
4682 | Py_INCREF(Py_None); resultobj = Py_None; | |
4683 | return resultobj; | |
4684 | fail: | |
4685 | return NULL; | |
4686 | } | |
4687 | ||
4688 | ||
4689 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4690 | PyObject *resultobj; | |
4691 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4692 | long result; | |
4693 | PyObject * obj0 = 0 ; | |
4694 | char *kwnames[] = { | |
4695 | (char *) "self", NULL | |
4696 | }; | |
4697 | ||
4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
4699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4700 | { | |
4701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4702 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
4703 | ||
4704 | wxPyEndAllowThreads(__tstate); | |
4705 | if (PyErr_Occurred()) SWIG_fail; | |
4706 | } | |
4707 | resultobj = PyInt_FromLong((long)result); | |
4708 | return resultobj; | |
4709 | fail: | |
4710 | return NULL; | |
4711 | } | |
4712 | ||
4713 | ||
4714 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
4715 | PyObject *obj; | |
4716 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4717 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
4718 | Py_INCREF(obj); | |
4719 | return Py_BuildValue((char *)""); | |
4720 | } | |
4721 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4722 | PyObject *resultobj; | |
4723 | int arg1 = (int) 9 ; | |
4724 | wxFileHistory *result; | |
4725 | char *kwnames[] = { | |
4726 | (char *) "maxFiles", NULL | |
4727 | }; | |
4728 | ||
4729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_FileHistory",kwnames,&arg1)) goto fail; | |
4730 | { | |
4731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4732 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
4733 | ||
4734 | wxPyEndAllowThreads(__tstate); | |
4735 | if (PyErr_Occurred()) SWIG_fail; | |
4736 | } | |
4737 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
4738 | return resultobj; | |
4739 | fail: | |
4740 | return NULL; | |
4741 | } | |
4742 | ||
4743 | ||
4744 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4745 | PyObject *resultobj; | |
4746 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4747 | PyObject * obj0 = 0 ; | |
4748 | char *kwnames[] = { | |
4749 | (char *) "self", NULL | |
4750 | }; | |
4751 | ||
4752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
4753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4754 | { | |
4755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4756 | delete arg1; | |
4757 | ||
4758 | wxPyEndAllowThreads(__tstate); | |
4759 | if (PyErr_Occurred()) SWIG_fail; | |
4760 | } | |
4761 | Py_INCREF(Py_None); resultobj = Py_None; | |
4762 | return resultobj; | |
4763 | fail: | |
4764 | return NULL; | |
4765 | } | |
4766 | ||
4767 | ||
4768 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4769 | PyObject *resultobj; | |
4770 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4771 | wxString *arg2 = 0 ; | |
423f194a | 4772 | bool temp2 = False ; |
d14a1e28 RD |
4773 | PyObject * obj0 = 0 ; |
4774 | PyObject * obj1 = 0 ; | |
4775 | char *kwnames[] = { | |
4776 | (char *) "self",(char *) "file", NULL | |
4777 | }; | |
4778 | ||
4779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
4780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4781 | { | |
4782 | arg2 = wxString_in_helper(obj1); | |
4783 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4784 | temp2 = True; |
d14a1e28 RD |
4785 | } |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
4793 | Py_INCREF(Py_None); resultobj = Py_None; | |
4794 | { | |
4795 | if (temp2) | |
4796 | delete arg2; | |
4797 | } | |
4798 | return resultobj; | |
4799 | fail: | |
4800 | { | |
4801 | if (temp2) | |
4802 | delete arg2; | |
4803 | } | |
4804 | return NULL; | |
4805 | } | |
4806 | ||
4807 | ||
4808 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4809 | PyObject *resultobj; | |
4810 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4811 | int arg2 ; | |
4812 | PyObject * obj0 = 0 ; | |
4813 | char *kwnames[] = { | |
4814 | (char *) "self",(char *) "i", NULL | |
4815 | }; | |
4816 | ||
4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&arg2)) goto fail; | |
4818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4819 | { | |
4820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4821 | (arg1)->RemoveFileFromHistory(arg2); | |
4822 | ||
4823 | wxPyEndAllowThreads(__tstate); | |
4824 | if (PyErr_Occurred()) SWIG_fail; | |
4825 | } | |
4826 | Py_INCREF(Py_None); resultobj = Py_None; | |
4827 | return resultobj; | |
4828 | fail: | |
4829 | return NULL; | |
4830 | } | |
4831 | ||
4832 | ||
4833 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4834 | PyObject *resultobj; | |
4835 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4836 | int result; | |
4837 | PyObject * obj0 = 0 ; | |
4838 | char *kwnames[] = { | |
4839 | (char *) "self", NULL | |
4840 | }; | |
4841 | ||
4842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
4843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4844 | { | |
4845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4846 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
4847 | ||
4848 | wxPyEndAllowThreads(__tstate); | |
4849 | if (PyErr_Occurred()) SWIG_fail; | |
4850 | } | |
4851 | resultobj = PyInt_FromLong((long)result); | |
4852 | return resultobj; | |
4853 | fail: | |
4854 | return NULL; | |
4855 | } | |
4856 | ||
4857 | ||
4858 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4859 | PyObject *resultobj; | |
4860 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4861 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4862 | PyObject * obj0 = 0 ; | |
4863 | PyObject * obj1 = 0 ; | |
4864 | char *kwnames[] = { | |
4865 | (char *) "self",(char *) "menu", NULL | |
4866 | }; | |
4867 | ||
4868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
4869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4870 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4871 | { | |
4872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4873 | (arg1)->UseMenu(arg2); | |
4874 | ||
4875 | wxPyEndAllowThreads(__tstate); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | } | |
4878 | Py_INCREF(Py_None); resultobj = Py_None; | |
4879 | return resultobj; | |
4880 | fail: | |
4881 | return NULL; | |
4882 | } | |
4883 | ||
4884 | ||
4885 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject *resultobj; | |
4887 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4888 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4889 | PyObject * obj0 = 0 ; | |
4890 | PyObject * obj1 = 0 ; | |
4891 | char *kwnames[] = { | |
4892 | (char *) "self",(char *) "menu", NULL | |
4893 | }; | |
4894 | ||
4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
4896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4897 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4898 | { | |
4899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4900 | (arg1)->RemoveMenu(arg2); | |
4901 | ||
4902 | wxPyEndAllowThreads(__tstate); | |
4903 | if (PyErr_Occurred()) SWIG_fail; | |
4904 | } | |
4905 | Py_INCREF(Py_None); resultobj = Py_None; | |
4906 | return resultobj; | |
4907 | fail: | |
4908 | return NULL; | |
4909 | } | |
4910 | ||
4911 | ||
4912 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4913 | PyObject *resultobj; | |
4914 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4915 | wxConfigBase *arg2 = 0 ; | |
4916 | PyObject * obj0 = 0 ; | |
4917 | PyObject * obj1 = 0 ; | |
4918 | char *kwnames[] = { | |
4919 | (char *) "self",(char *) "config", NULL | |
4920 | }; | |
4921 | ||
4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
4923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4924 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4925 | if (arg2 == NULL) { | |
4926 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4927 | } | |
4928 | { | |
4929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4930 | (arg1)->Load(*arg2); | |
4931 | ||
4932 | wxPyEndAllowThreads(__tstate); | |
4933 | if (PyErr_Occurred()) SWIG_fail; | |
4934 | } | |
4935 | Py_INCREF(Py_None); resultobj = Py_None; | |
4936 | return resultobj; | |
4937 | fail: | |
4938 | return NULL; | |
4939 | } | |
4940 | ||
4941 | ||
4942 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4943 | PyObject *resultobj; | |
4944 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4945 | wxConfigBase *arg2 = 0 ; | |
4946 | PyObject * obj0 = 0 ; | |
4947 | PyObject * obj1 = 0 ; | |
4948 | char *kwnames[] = { | |
4949 | (char *) "self",(char *) "config", NULL | |
4950 | }; | |
4951 | ||
4952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
4953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4954 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4955 | if (arg2 == NULL) { | |
4956 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4957 | } | |
4958 | { | |
4959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4960 | (arg1)->Save(*arg2); | |
4961 | ||
4962 | wxPyEndAllowThreads(__tstate); | |
4963 | if (PyErr_Occurred()) SWIG_fail; | |
4964 | } | |
4965 | Py_INCREF(Py_None); resultobj = Py_None; | |
4966 | return resultobj; | |
4967 | fail: | |
4968 | return NULL; | |
4969 | } | |
4970 | ||
4971 | ||
4972 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4973 | PyObject *resultobj; | |
4974 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4975 | PyObject * obj0 = 0 ; | |
4976 | char *kwnames[] = { | |
4977 | (char *) "self", NULL | |
4978 | }; | |
4979 | ||
4980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
4981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | (arg1)->AddFilesToMenu(); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | Py_INCREF(Py_None); resultobj = Py_None; | |
4990 | return resultobj; | |
4991 | fail: | |
4992 | return NULL; | |
4993 | } | |
4994 | ||
4995 | ||
4996 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4997 | PyObject *resultobj; | |
4998 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4999 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5000 | PyObject * obj0 = 0 ; | |
5001 | PyObject * obj1 = 0 ; | |
5002 | char *kwnames[] = { | |
5003 | (char *) "self",(char *) "menu", NULL | |
5004 | }; | |
5005 | ||
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5008 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5009 | { | |
5010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5011 | (arg1)->AddFilesToMenu(arg2); | |
5012 | ||
5013 | wxPyEndAllowThreads(__tstate); | |
5014 | if (PyErr_Occurred()) SWIG_fail; | |
5015 | } | |
5016 | Py_INCREF(Py_None); resultobj = Py_None; | |
5017 | return resultobj; | |
5018 | fail: | |
5019 | return NULL; | |
5020 | } | |
5021 | ||
5022 | ||
5023 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5024 | PyObject *resultobj; | |
5025 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5026 | int arg2 ; | |
5027 | wxString result; | |
5028 | PyObject * obj0 = 0 ; | |
5029 | char *kwnames[] = { | |
5030 | (char *) "self",(char *) "i", NULL | |
5031 | }; | |
5032 | ||
5033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_GetHistoryFile",kwnames,&obj0,&arg2)) goto fail; | |
5034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5035 | { | |
5036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5037 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5038 | ||
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
5042 | { | |
5043 | #if wxUSE_UNICODE | |
5044 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5045 | #else | |
5046 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5047 | #endif | |
5048 | } | |
5049 | return resultobj; | |
5050 | fail: | |
5051 | return NULL; | |
5052 | } | |
5053 | ||
5054 | ||
5055 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5056 | PyObject *resultobj; | |
5057 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5058 | int result; | |
5059 | PyObject * obj0 = 0 ; | |
5060 | char *kwnames[] = { | |
5061 | (char *) "self", NULL | |
5062 | }; | |
5063 | ||
5064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5066 | { | |
5067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5068 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5069 | ||
5070 | wxPyEndAllowThreads(__tstate); | |
5071 | if (PyErr_Occurred()) SWIG_fail; | |
5072 | } | |
5073 | resultobj = PyInt_FromLong((long)result); | |
5074 | return resultobj; | |
5075 | fail: | |
5076 | return NULL; | |
5077 | } | |
5078 | ||
5079 | ||
5080 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5081 | PyObject *obj; | |
5082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5083 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5084 | Py_INCREF(obj); | |
5085 | return Py_BuildValue((char *)""); | |
5086 | } | |
5087 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5088 | PyObject *resultobj; | |
5089 | wxString *arg1 = 0 ; | |
5090 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5091 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5092 | wxSingleInstanceChecker *result; | |
423f194a RD |
5093 | bool temp1 = False ; |
5094 | bool temp2 = False ; | |
d14a1e28 RD |
5095 | PyObject * obj0 = 0 ; |
5096 | PyObject * obj1 = 0 ; | |
5097 | char *kwnames[] = { | |
5098 | (char *) "name",(char *) "path", NULL | |
5099 | }; | |
5100 | ||
5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5102 | { | |
5103 | arg1 = wxString_in_helper(obj0); | |
5104 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5105 | temp1 = True; |
d14a1e28 RD |
5106 | } |
5107 | if (obj1) { | |
5108 | { | |
5109 | arg2 = wxString_in_helper(obj1); | |
5110 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5111 | temp2 = True; |
d14a1e28 RD |
5112 | } |
5113 | } | |
5114 | { | |
5115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5116 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5117 | ||
5118 | wxPyEndAllowThreads(__tstate); | |
5119 | if (PyErr_Occurred()) SWIG_fail; | |
5120 | } | |
5121 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5122 | { | |
5123 | if (temp1) | |
5124 | delete arg1; | |
5125 | } | |
5126 | { | |
5127 | if (temp2) | |
5128 | delete arg2; | |
5129 | } | |
5130 | return resultobj; | |
5131 | fail: | |
5132 | { | |
5133 | if (temp1) | |
5134 | delete arg1; | |
5135 | } | |
5136 | { | |
5137 | if (temp2) | |
5138 | delete arg2; | |
5139 | } | |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
5144 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5145 | PyObject *resultobj; | |
5146 | wxSingleInstanceChecker *result; | |
5147 | char *kwnames[] = { | |
5148 | NULL | |
5149 | }; | |
5150 | ||
5151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5152 | { | |
5153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5154 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5155 | ||
5156 | wxPyEndAllowThreads(__tstate); | |
5157 | if (PyErr_Occurred()) SWIG_fail; | |
5158 | } | |
5159 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5160 | return resultobj; | |
5161 | fail: | |
5162 | return NULL; | |
5163 | } | |
5164 | ||
5165 | ||
5166 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5167 | PyObject *resultobj; | |
5168 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5169 | PyObject * obj0 = 0 ; | |
5170 | char *kwnames[] = { | |
5171 | (char *) "self", NULL | |
5172 | }; | |
5173 | ||
5174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5176 | { | |
5177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5178 | delete arg1; | |
5179 | ||
5180 | wxPyEndAllowThreads(__tstate); | |
5181 | if (PyErr_Occurred()) SWIG_fail; | |
5182 | } | |
5183 | Py_INCREF(Py_None); resultobj = Py_None; | |
5184 | return resultobj; | |
5185 | fail: | |
5186 | return NULL; | |
5187 | } | |
5188 | ||
5189 | ||
5190 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5191 | PyObject *resultobj; | |
5192 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5193 | wxString *arg2 = 0 ; | |
5194 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5195 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5196 | bool result; | |
423f194a RD |
5197 | bool temp2 = False ; |
5198 | bool temp3 = False ; | |
d14a1e28 RD |
5199 | PyObject * obj0 = 0 ; |
5200 | PyObject * obj1 = 0 ; | |
5201 | PyObject * obj2 = 0 ; | |
5202 | char *kwnames[] = { | |
5203 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5204 | }; | |
5205 | ||
5206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5208 | { | |
5209 | arg2 = wxString_in_helper(obj1); | |
5210 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5211 | temp2 = True; |
d14a1e28 RD |
5212 | } |
5213 | if (obj2) { | |
5214 | { | |
5215 | arg3 = wxString_in_helper(obj2); | |
5216 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5217 | temp3 = True; |
d14a1e28 RD |
5218 | } |
5219 | } | |
5220 | { | |
5221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5222 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5223 | ||
5224 | wxPyEndAllowThreads(__tstate); | |
5225 | if (PyErr_Occurred()) SWIG_fail; | |
5226 | } | |
5227 | resultobj = PyInt_FromLong((long)result); | |
5228 | { | |
5229 | if (temp2) | |
5230 | delete arg2; | |
5231 | } | |
5232 | { | |
5233 | if (temp3) | |
5234 | delete arg3; | |
5235 | } | |
5236 | return resultobj; | |
5237 | fail: | |
5238 | { | |
5239 | if (temp2) | |
5240 | delete arg2; | |
5241 | } | |
5242 | { | |
5243 | if (temp3) | |
5244 | delete arg3; | |
5245 | } | |
5246 | return NULL; | |
5247 | } | |
5248 | ||
5249 | ||
5250 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5251 | PyObject *resultobj; | |
5252 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5253 | bool result; | |
5254 | PyObject * obj0 = 0 ; | |
5255 | char *kwnames[] = { | |
5256 | (char *) "self", NULL | |
5257 | }; | |
5258 | ||
5259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5261 | { | |
5262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5263 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5264 | ||
5265 | wxPyEndAllowThreads(__tstate); | |
5266 | if (PyErr_Occurred()) SWIG_fail; | |
5267 | } | |
5268 | resultobj = PyInt_FromLong((long)result); | |
5269 | return resultobj; | |
5270 | fail: | |
5271 | return NULL; | |
5272 | } | |
5273 | ||
5274 | ||
5275 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5276 | PyObject *obj; | |
5277 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5278 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5279 | Py_INCREF(obj); | |
5280 | return Py_BuildValue((char *)""); | |
5281 | } | |
5282 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5283 | PyObject *resultobj; | |
5284 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5285 | wxDC *arg2 = 0 ; | |
5286 | int arg3 ; | |
5287 | PyObject * obj0 = 0 ; | |
5288 | PyObject * obj1 = 0 ; | |
5289 | char *kwnames[] = { | |
5290 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5291 | }; | |
5292 | ||
5293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DrawWindowOnDC",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5295 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5296 | if (arg2 == NULL) { | |
5297 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5298 | } | |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
5306 | Py_INCREF(Py_None); resultobj = Py_None; | |
5307 | return resultobj; | |
5308 | fail: | |
5309 | return NULL; | |
5310 | } | |
5311 | ||
5312 | ||
5313 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5314 | PyObject *resultobj; | |
5315 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5316 | PyObject * obj0 = 0 ; | |
5317 | char *kwnames[] = { | |
5318 | (char *) "self", NULL | |
5319 | }; | |
5320 | ||
5321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5323 | { | |
5324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5325 | delete arg1; | |
5326 | ||
5327 | wxPyEndAllowThreads(__tstate); | |
5328 | if (PyErr_Occurred()) SWIG_fail; | |
5329 | } | |
5330 | Py_INCREF(Py_None); resultobj = Py_None; | |
5331 | return resultobj; | |
5332 | fail: | |
5333 | return NULL; | |
5334 | } | |
5335 | ||
5336 | ||
5337 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5338 | PyObject *resultobj; | |
5339 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5340 | wxString result; | |
5341 | PyObject * obj0 = 0 ; | |
5342 | char *kwnames[] = { | |
5343 | (char *) "self", NULL | |
5344 | }; | |
5345 | ||
5346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5348 | { | |
5349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5350 | result = (arg1)->GetTip(); | |
5351 | ||
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | } | |
5355 | { | |
5356 | #if wxUSE_UNICODE | |
5357 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5358 | #else | |
5359 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5360 | #endif | |
5361 | } | |
5362 | return resultobj; | |
5363 | fail: | |
5364 | return NULL; | |
5365 | } | |
5366 | ||
5367 | ||
5368 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5369 | PyObject *resultobj; | |
5370 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5371 | size_t result; | |
5372 | PyObject * obj0 = 0 ; | |
5373 | char *kwnames[] = { | |
5374 | (char *) "self", NULL | |
5375 | }; | |
5376 | ||
5377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5379 | { | |
5380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5381 | result = (size_t)(arg1)->GetCurrentTip(); | |
5382 | ||
5383 | wxPyEndAllowThreads(__tstate); | |
5384 | if (PyErr_Occurred()) SWIG_fail; | |
5385 | } | |
5386 | resultobj = PyInt_FromLong((long)result); | |
5387 | return resultobj; | |
5388 | fail: | |
5389 | return NULL; | |
5390 | } | |
5391 | ||
5392 | ||
5393 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5394 | PyObject *resultobj; | |
5395 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5396 | wxString *arg2 = 0 ; | |
5397 | wxString result; | |
423f194a | 5398 | bool temp2 = False ; |
d14a1e28 RD |
5399 | PyObject * obj0 = 0 ; |
5400 | PyObject * obj1 = 0 ; | |
5401 | char *kwnames[] = { | |
5402 | (char *) "self",(char *) "tip", NULL | |
5403 | }; | |
5404 | ||
5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5407 | { | |
5408 | arg2 = wxString_in_helper(obj1); | |
5409 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5410 | temp2 = True; |
d14a1e28 RD |
5411 | } |
5412 | { | |
5413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5414 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5415 | ||
5416 | wxPyEndAllowThreads(__tstate); | |
5417 | if (PyErr_Occurred()) SWIG_fail; | |
5418 | } | |
5419 | { | |
5420 | #if wxUSE_UNICODE | |
5421 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5422 | #else | |
5423 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5424 | #endif | |
5425 | } | |
5426 | { | |
5427 | if (temp2) | |
5428 | delete arg2; | |
5429 | } | |
5430 | return resultobj; | |
5431 | fail: | |
5432 | { | |
5433 | if (temp2) | |
5434 | delete arg2; | |
5435 | } | |
5436 | return NULL; | |
5437 | } | |
5438 | ||
5439 | ||
5440 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5441 | PyObject *obj; | |
5442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5443 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5444 | Py_INCREF(obj); | |
5445 | return Py_BuildValue((char *)""); | |
5446 | } | |
5447 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5448 | PyObject *resultobj; | |
5449 | size_t arg1 ; | |
5450 | wxPyTipProvider *result; | |
5451 | PyObject * obj0 = 0 ; | |
5452 | char *kwnames[] = { | |
5453 | (char *) "currentTip", NULL | |
5454 | }; | |
5455 | ||
5456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
5457 | arg1 = (size_t) PyInt_AsLong(obj0); | |
5458 | if (PyErr_Occurred()) SWIG_fail; | |
5459 | { | |
5460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5461 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5462 | ||
5463 | wxPyEndAllowThreads(__tstate); | |
5464 | if (PyErr_Occurred()) SWIG_fail; | |
5465 | } | |
5466 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5467 | return resultobj; | |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
5473 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5474 | PyObject *resultobj; | |
5475 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5476 | PyObject *arg2 = (PyObject *) 0 ; | |
5477 | PyObject *arg3 = (PyObject *) 0 ; | |
5478 | PyObject * obj0 = 0 ; | |
5479 | PyObject * obj1 = 0 ; | |
5480 | PyObject * obj2 = 0 ; | |
5481 | char *kwnames[] = { | |
5482 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5483 | }; | |
5484 | ||
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5487 | arg2 = obj1; | |
5488 | arg3 = obj2; | |
5489 | { | |
5490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5491 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5492 | ||
5493 | wxPyEndAllowThreads(__tstate); | |
5494 | if (PyErr_Occurred()) SWIG_fail; | |
5495 | } | |
5496 | Py_INCREF(Py_None); resultobj = Py_None; | |
5497 | return resultobj; | |
5498 | fail: | |
5499 | return NULL; | |
5500 | } | |
5501 | ||
5502 | ||
5503 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5504 | PyObject *obj; | |
5505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5506 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5507 | Py_INCREF(obj); | |
5508 | return Py_BuildValue((char *)""); | |
5509 | } | |
5510 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5511 | PyObject *resultobj; | |
5512 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5513 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
423f194a | 5514 | bool arg3 = (bool) True ; |
d14a1e28 RD |
5515 | bool result; |
5516 | PyObject * obj0 = 0 ; | |
5517 | PyObject * obj1 = 0 ; | |
5518 | PyObject * obj2 = 0 ; | |
5519 | char *kwnames[] = { | |
5520 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
5521 | }; | |
5522 | ||
5523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5525 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5526 | if (obj2) { | |
5527 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5528 | if (PyErr_Occurred()) SWIG_fail; | |
5529 | } | |
5530 | { | |
5531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5532 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
5533 | ||
5534 | wxPyEndAllowThreads(__tstate); | |
5535 | if (PyErr_Occurred()) SWIG_fail; | |
5536 | } | |
5537 | resultobj = PyInt_FromLong((long)result); | |
5538 | return resultobj; | |
5539 | fail: | |
5540 | return NULL; | |
5541 | } | |
5542 | ||
5543 | ||
5544 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5545 | PyObject *resultobj; | |
5546 | wxString *arg1 = 0 ; | |
5547 | size_t arg2 ; | |
5548 | wxTipProvider *result; | |
423f194a | 5549 | bool temp1 = False ; |
d14a1e28 RD |
5550 | PyObject * obj0 = 0 ; |
5551 | PyObject * obj1 = 0 ; | |
5552 | char *kwnames[] = { | |
5553 | (char *) "filename",(char *) "currentTip", NULL | |
5554 | }; | |
5555 | ||
5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
5557 | { | |
5558 | arg1 = wxString_in_helper(obj0); | |
5559 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5560 | temp1 = True; |
d14a1e28 RD |
5561 | } |
5562 | arg2 = (size_t) PyInt_AsLong(obj1); | |
5563 | if (PyErr_Occurred()) SWIG_fail; | |
5564 | { | |
5565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5566 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
5567 | ||
5568 | wxPyEndAllowThreads(__tstate); | |
5569 | if (PyErr_Occurred()) SWIG_fail; | |
5570 | } | |
5571 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
5572 | { | |
5573 | if (temp1) | |
5574 | delete arg1; | |
5575 | } | |
5576 | return resultobj; | |
5577 | fail: | |
5578 | { | |
5579 | if (temp1) | |
5580 | delete arg1; | |
5581 | } | |
5582 | return NULL; | |
5583 | } | |
5584 | ||
5585 | ||
5586 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5587 | PyObject *resultobj; | |
5588 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
5589 | int arg2 = (int) -1 ; | |
5590 | wxPyTimer *result; | |
5591 | PyObject * obj0 = 0 ; | |
5592 | char *kwnames[] = { | |
5593 | (char *) "owner",(char *) "id", NULL | |
5594 | }; | |
5595 | ||
5596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Timer",kwnames,&obj0,&arg2)) goto fail; | |
5597 | if (obj0) { | |
5598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5599 | } | |
5600 | { | |
5601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5602 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
5603 | ||
5604 | wxPyEndAllowThreads(__tstate); | |
5605 | if (PyErr_Occurred()) SWIG_fail; | |
5606 | } | |
5607 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
5608 | return resultobj; | |
5609 | fail: | |
5610 | return NULL; | |
5611 | } | |
5612 | ||
5613 | ||
5614 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5615 | PyObject *resultobj; | |
5616 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5617 | PyObject * obj0 = 0 ; | |
5618 | char *kwnames[] = { | |
5619 | (char *) "self", NULL | |
5620 | }; | |
5621 | ||
5622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
5623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5624 | { | |
5625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5626 | delete arg1; | |
5627 | ||
5628 | wxPyEndAllowThreads(__tstate); | |
5629 | if (PyErr_Occurred()) SWIG_fail; | |
5630 | } | |
5631 | Py_INCREF(Py_None); resultobj = Py_None; | |
5632 | return resultobj; | |
5633 | fail: | |
5634 | return NULL; | |
5635 | } | |
5636 | ||
5637 | ||
44127b65 RD |
5638 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
5639 | PyObject *resultobj; | |
5640 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5641 | PyObject *arg2 = (PyObject *) 0 ; | |
5642 | PyObject *arg3 = (PyObject *) 0 ; | |
5643 | PyObject * obj0 = 0 ; | |
5644 | PyObject * obj1 = 0 ; | |
5645 | PyObject * obj2 = 0 ; | |
5646 | char *kwnames[] = { | |
5647 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5648 | }; | |
5649 | ||
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5652 | arg2 = obj1; | |
5653 | arg3 = obj2; | |
5654 | { | |
5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5656 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5657 | ||
5658 | wxPyEndAllowThreads(__tstate); | |
5659 | if (PyErr_Occurred()) SWIG_fail; | |
5660 | } | |
5661 | Py_INCREF(Py_None); resultobj = Py_None; | |
5662 | return resultobj; | |
5663 | fail: | |
5664 | return NULL; | |
5665 | } | |
5666 | ||
5667 | ||
d14a1e28 RD |
5668 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
5669 | PyObject *resultobj; | |
5670 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5671 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
5672 | int arg3 = (int) -1 ; | |
5673 | PyObject * obj0 = 0 ; | |
5674 | PyObject * obj1 = 0 ; | |
5675 | char *kwnames[] = { | |
5676 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
5677 | }; | |
5678 | ||
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Timer_SetOwner",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5681 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5682 | { | |
5683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5684 | (arg1)->SetOwner(arg2,arg3); | |
5685 | ||
5686 | wxPyEndAllowThreads(__tstate); | |
5687 | if (PyErr_Occurred()) SWIG_fail; | |
5688 | } | |
5689 | Py_INCREF(Py_None); resultobj = Py_None; | |
5690 | return resultobj; | |
5691 | fail: | |
5692 | return NULL; | |
5693 | } | |
5694 | ||
5695 | ||
5696 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5697 | PyObject *resultobj; | |
5698 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5699 | int arg2 = (int) -1 ; | |
423f194a | 5700 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5701 | bool result; |
5702 | PyObject * obj0 = 0 ; | |
5703 | PyObject * obj2 = 0 ; | |
5704 | char *kwnames[] = { | |
5705 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
5706 | }; | |
5707 | ||
5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Timer_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
5709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5710 | if (obj2) { | |
5711 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | { | |
5715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5716 | result = (bool)(arg1)->Start(arg2,arg3); | |
5717 | ||
5718 | wxPyEndAllowThreads(__tstate); | |
5719 | if (PyErr_Occurred()) SWIG_fail; | |
5720 | } | |
5721 | resultobj = PyInt_FromLong((long)result); | |
5722 | return resultobj; | |
5723 | fail: | |
5724 | return NULL; | |
5725 | } | |
5726 | ||
5727 | ||
5728 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5729 | PyObject *resultobj; | |
5730 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5731 | PyObject * obj0 = 0 ; | |
5732 | char *kwnames[] = { | |
5733 | (char *) "self", NULL | |
5734 | }; | |
5735 | ||
5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
5737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5738 | { | |
5739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5740 | (arg1)->Stop(); | |
5741 | ||
5742 | wxPyEndAllowThreads(__tstate); | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | } | |
5745 | Py_INCREF(Py_None); resultobj = Py_None; | |
5746 | return resultobj; | |
5747 | fail: | |
5748 | return NULL; | |
5749 | } | |
5750 | ||
5751 | ||
d14a1e28 RD |
5752 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
5753 | PyObject *resultobj; | |
5754 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5755 | bool result; | |
5756 | PyObject * obj0 = 0 ; | |
5757 | char *kwnames[] = { | |
5758 | (char *) "self", NULL | |
5759 | }; | |
5760 | ||
5761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
5762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5763 | { | |
5764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5765 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
5766 | ||
5767 | wxPyEndAllowThreads(__tstate); | |
5768 | if (PyErr_Occurred()) SWIG_fail; | |
5769 | } | |
5770 | resultobj = PyInt_FromLong((long)result); | |
5771 | return resultobj; | |
5772 | fail: | |
5773 | return NULL; | |
5774 | } | |
5775 | ||
5776 | ||
5777 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5778 | PyObject *resultobj; | |
5779 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5780 | int result; | |
5781 | PyObject * obj0 = 0 ; | |
5782 | char *kwnames[] = { | |
5783 | (char *) "self", NULL | |
5784 | }; | |
5785 | ||
5786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
5787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5788 | { | |
5789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5790 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
5791 | ||
5792 | wxPyEndAllowThreads(__tstate); | |
5793 | if (PyErr_Occurred()) SWIG_fail; | |
5794 | } | |
5795 | resultobj = PyInt_FromLong((long)result); | |
5796 | return resultobj; | |
5797 | fail: | |
5798 | return NULL; | |
5799 | } | |
5800 | ||
5801 | ||
5802 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5803 | PyObject *resultobj; | |
5804 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5805 | bool result; | |
5806 | PyObject * obj0 = 0 ; | |
5807 | char *kwnames[] = { | |
5808 | (char *) "self", NULL | |
5809 | }; | |
5810 | ||
5811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
5812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5813 | { | |
5814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5815 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
5816 | ||
5817 | wxPyEndAllowThreads(__tstate); | |
5818 | if (PyErr_Occurred()) SWIG_fail; | |
5819 | } | |
5820 | resultobj = PyInt_FromLong((long)result); | |
5821 | return resultobj; | |
5822 | fail: | |
5823 | return NULL; | |
5824 | } | |
5825 | ||
5826 | ||
f0983263 RD |
5827 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
5828 | PyObject *resultobj; | |
5829 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5830 | int result; | |
5831 | PyObject * obj0 = 0 ; | |
5832 | char *kwnames[] = { | |
5833 | (char *) "self", NULL | |
5834 | }; | |
5835 | ||
5836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
5837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5838 | { | |
5839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5840 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
5841 | ||
5842 | wxPyEndAllowThreads(__tstate); | |
5843 | if (PyErr_Occurred()) SWIG_fail; | |
5844 | } | |
5845 | resultobj = PyInt_FromLong((long)result); | |
5846 | return resultobj; | |
5847 | fail: | |
5848 | return NULL; | |
5849 | } | |
5850 | ||
5851 | ||
d14a1e28 RD |
5852 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
5853 | PyObject *obj; | |
5854 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5855 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
5856 | Py_INCREF(obj); | |
5857 | return Py_BuildValue((char *)""); | |
5858 | } | |
5859 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5860 | PyObject *resultobj; | |
5861 | int arg1 = (int) 0 ; | |
5862 | int arg2 = (int) 0 ; | |
5863 | wxTimerEvent *result; | |
5864 | char *kwnames[] = { | |
5865 | (char *) "timerid",(char *) "interval", NULL | |
5866 | }; | |
5867 | ||
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TimerEvent",kwnames,&arg1,&arg2)) goto fail; | |
5869 | { | |
5870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5871 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
5872 | ||
5873 | wxPyEndAllowThreads(__tstate); | |
5874 | if (PyErr_Occurred()) SWIG_fail; | |
5875 | } | |
5876 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
5877 | return resultobj; | |
5878 | fail: | |
5879 | return NULL; | |
5880 | } | |
5881 | ||
5882 | ||
5883 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5884 | PyObject *resultobj; | |
5885 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
5886 | int result; | |
5887 | PyObject * obj0 = 0 ; | |
5888 | char *kwnames[] = { | |
5889 | (char *) "self", NULL | |
5890 | }; | |
5891 | ||
5892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
5893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5894 | { | |
5895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5896 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
5897 | ||
5898 | wxPyEndAllowThreads(__tstate); | |
5899 | if (PyErr_Occurred()) SWIG_fail; | |
5900 | } | |
5901 | resultobj = PyInt_FromLong((long)result); | |
5902 | return resultobj; | |
5903 | fail: | |
5904 | return NULL; | |
5905 | } | |
5906 | ||
5907 | ||
5908 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
5909 | PyObject *obj; | |
5910 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5911 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
5912 | Py_INCREF(obj); | |
5913 | return Py_BuildValue((char *)""); | |
5914 | } | |
5915 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
5916 | PyObject *resultobj; | |
5917 | wxTimer *arg1 = 0 ; | |
5918 | wxTimerRunner *result; | |
5919 | PyObject * obj0 = 0 ; | |
5920 | ||
5921 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
5922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5923 | if (arg1 == NULL) { | |
5924 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5925 | } | |
5926 | { | |
5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5928 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
5929 | ||
5930 | wxPyEndAllowThreads(__tstate); | |
5931 | if (PyErr_Occurred()) SWIG_fail; | |
5932 | } | |
5933 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
5934 | return resultobj; | |
5935 | fail: | |
5936 | return NULL; | |
5937 | } | |
5938 | ||
5939 | ||
5940 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
5941 | PyObject *resultobj; | |
5942 | wxTimer *arg1 = 0 ; | |
5943 | int arg2 ; | |
423f194a | 5944 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5945 | wxTimerRunner *result; |
5946 | PyObject * obj0 = 0 ; | |
5947 | PyObject * obj2 = 0 ; | |
5948 | ||
5949 | if(!PyArg_ParseTuple(args,(char *)"Oi|O:new_TimerRunner",&obj0,&arg2,&obj2)) goto fail; | |
5950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5951 | if (arg1 == NULL) { | |
5952 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5953 | } | |
5954 | if (obj2) { | |
5955 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
5965 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
5966 | return resultobj; | |
5967 | fail: | |
5968 | return NULL; | |
5969 | } | |
5970 | ||
5971 | ||
5972 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
5973 | int argc; | |
5974 | PyObject *argv[4]; | |
5975 | int ii; | |
5976 | ||
5977 | argc = PyObject_Length(args); | |
5978 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
5979 | argv[ii] = PyTuple_GetItem(args,ii); | |
5980 | } | |
5981 | if (argc == 1) { | |
5982 | int _v; | |
5983 | { | |
5984 | void *ptr; | |
5985 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
5986 | _v = 0; | |
5987 | PyErr_Clear(); | |
5988 | } else { | |
5989 | _v = 1; | |
5990 | } | |
5991 | } | |
5992 | if (_v) { | |
5993 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
5994 | } | |
5995 | } | |
5996 | if ((argc >= 2) && (argc <= 3)) { | |
5997 | int _v; | |
5998 | { | |
5999 | void *ptr; | |
6000 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6001 | _v = 0; | |
6002 | PyErr_Clear(); | |
6003 | } else { | |
6004 | _v = 1; | |
6005 | } | |
6006 | } | |
6007 | if (_v) { | |
6008 | { | |
6009 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
6010 | } | |
6011 | if (_v) { | |
6012 | if (argc <= 2) { | |
6013 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6014 | } | |
6015 | { | |
6016 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
6017 | } | |
6018 | if (_v) { | |
6019 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6020 | } | |
6021 | } | |
6022 | } | |
6023 | } | |
6024 | ||
6025 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6026 | return NULL; | |
6027 | } | |
6028 | ||
6029 | ||
6030 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6031 | PyObject *resultobj; | |
6032 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6033 | PyObject * obj0 = 0 ; | |
6034 | char *kwnames[] = { | |
6035 | (char *) "self", NULL | |
6036 | }; | |
6037 | ||
6038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6040 | { | |
6041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6042 | delete arg1; | |
6043 | ||
6044 | wxPyEndAllowThreads(__tstate); | |
6045 | if (PyErr_Occurred()) SWIG_fail; | |
6046 | } | |
6047 | Py_INCREF(Py_None); resultobj = Py_None; | |
6048 | return resultobj; | |
6049 | fail: | |
6050 | return NULL; | |
6051 | } | |
6052 | ||
6053 | ||
6054 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6055 | PyObject *resultobj; | |
6056 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6057 | int arg2 ; | |
423f194a | 6058 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6059 | PyObject * obj0 = 0 ; |
6060 | PyObject * obj2 = 0 ; | |
6061 | char *kwnames[] = { | |
6062 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6063 | }; | |
6064 | ||
6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:TimerRunner_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6067 | if (obj2) { | |
6068 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6069 | if (PyErr_Occurred()) SWIG_fail; | |
6070 | } | |
6071 | { | |
6072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6073 | (arg1)->Start(arg2,arg3); | |
6074 | ||
6075 | wxPyEndAllowThreads(__tstate); | |
6076 | if (PyErr_Occurred()) SWIG_fail; | |
6077 | } | |
6078 | Py_INCREF(Py_None); resultobj = Py_None; | |
6079 | return resultobj; | |
6080 | fail: | |
6081 | return NULL; | |
6082 | } | |
6083 | ||
6084 | ||
6085 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6086 | PyObject *obj; | |
6087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6088 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6089 | Py_INCREF(obj); | |
6090 | return Py_BuildValue((char *)""); | |
6091 | } | |
6092 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6093 | PyObject *resultobj; | |
6094 | wxLog *result; | |
6095 | char *kwnames[] = { | |
6096 | NULL | |
6097 | }; | |
6098 | ||
6099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6100 | { | |
6101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6102 | result = (wxLog *)new wxLog(); | |
6103 | ||
6104 | wxPyEndAllowThreads(__tstate); | |
6105 | if (PyErr_Occurred()) SWIG_fail; | |
6106 | } | |
6107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6108 | return resultobj; | |
6109 | fail: | |
6110 | return NULL; | |
6111 | } | |
6112 | ||
6113 | ||
6114 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6115 | PyObject *resultobj; | |
6116 | bool result; | |
6117 | char *kwnames[] = { | |
6118 | NULL | |
6119 | }; | |
6120 | ||
6121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6122 | { | |
6123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6124 | result = (bool)wxLog::IsEnabled(); | |
6125 | ||
6126 | wxPyEndAllowThreads(__tstate); | |
6127 | if (PyErr_Occurred()) SWIG_fail; | |
6128 | } | |
6129 | resultobj = PyInt_FromLong((long)result); | |
6130 | return resultobj; | |
6131 | fail: | |
6132 | return NULL; | |
6133 | } | |
6134 | ||
6135 | ||
6136 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6137 | PyObject *resultobj; | |
423f194a | 6138 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6139 | bool result; |
6140 | PyObject * obj0 = 0 ; | |
6141 | char *kwnames[] = { | |
6142 | (char *) "doIt", NULL | |
6143 | }; | |
6144 | ||
6145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6146 | if (obj0) { | |
6147 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6148 | if (PyErr_Occurred()) SWIG_fail; | |
6149 | } | |
6150 | { | |
6151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6152 | result = (bool)wxLog::EnableLogging(arg1); | |
6153 | ||
6154 | wxPyEndAllowThreads(__tstate); | |
6155 | if (PyErr_Occurred()) SWIG_fail; | |
6156 | } | |
6157 | resultobj = PyInt_FromLong((long)result); | |
6158 | return resultobj; | |
6159 | fail: | |
6160 | return NULL; | |
6161 | } | |
6162 | ||
6163 | ||
6164 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6165 | PyObject *resultobj; | |
6166 | wxLogLevel arg1 ; | |
6167 | wxChar *arg2 = (wxChar *) 0 ; | |
6168 | time_t arg3 ; | |
6169 | PyObject * obj0 = 0 ; | |
6170 | PyObject * obj1 = 0 ; | |
6171 | PyObject * obj2 = 0 ; | |
6172 | char *kwnames[] = { | |
6173 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6174 | }; | |
6175 | ||
6176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6177 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6178 | if (PyErr_Occurred()) SWIG_fail; | |
6179 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6180 | arg3 = (time_t) PyInt_AsLong(obj2); | |
6181 | if (PyErr_Occurred()) SWIG_fail; | |
6182 | { | |
6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6184 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6185 | ||
6186 | wxPyEndAllowThreads(__tstate); | |
6187 | if (PyErr_Occurred()) SWIG_fail; | |
6188 | } | |
6189 | Py_INCREF(Py_None); resultobj = Py_None; | |
6190 | return resultobj; | |
6191 | fail: | |
6192 | return NULL; | |
6193 | } | |
6194 | ||
6195 | ||
6196 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6197 | PyObject *resultobj; | |
6198 | wxLog *arg1 = (wxLog *) 0 ; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | char *kwnames[] = { | |
6201 | (char *) "self", NULL | |
6202 | }; | |
6203 | ||
6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6206 | { | |
6207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6208 | (arg1)->Flush(); | |
6209 | ||
6210 | wxPyEndAllowThreads(__tstate); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | } | |
6213 | Py_INCREF(Py_None); resultobj = Py_None; | |
6214 | return resultobj; | |
6215 | fail: | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
6220 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6221 | PyObject *resultobj; | |
6222 | char *kwnames[] = { | |
6223 | NULL | |
6224 | }; | |
6225 | ||
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6227 | { | |
6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6229 | wxLog::FlushActive(); | |
6230 | ||
6231 | wxPyEndAllowThreads(__tstate); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | } | |
6234 | Py_INCREF(Py_None); resultobj = Py_None; | |
6235 | return resultobj; | |
6236 | fail: | |
6237 | return NULL; | |
6238 | } | |
6239 | ||
6240 | ||
6241 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6242 | PyObject *resultobj; | |
6243 | wxLog *result; | |
6244 | char *kwnames[] = { | |
6245 | NULL | |
6246 | }; | |
6247 | ||
6248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6249 | { | |
6250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6251 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6252 | ||
6253 | wxPyEndAllowThreads(__tstate); | |
6254 | if (PyErr_Occurred()) SWIG_fail; | |
6255 | } | |
6256 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6257 | return resultobj; | |
6258 | fail: | |
6259 | return NULL; | |
6260 | } | |
6261 | ||
6262 | ||
6263 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6264 | PyObject *resultobj; | |
6265 | wxLog *arg1 = (wxLog *) 0 ; | |
6266 | wxLog *result; | |
6267 | PyObject * obj0 = 0 ; | |
6268 | char *kwnames[] = { | |
6269 | (char *) "pLogger", NULL | |
6270 | }; | |
6271 | ||
6272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6274 | { | |
6275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6276 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6277 | ||
6278 | wxPyEndAllowThreads(__tstate); | |
6279 | if (PyErr_Occurred()) SWIG_fail; | |
6280 | } | |
6281 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6282 | return resultobj; | |
6283 | fail: | |
6284 | return NULL; | |
6285 | } | |
6286 | ||
6287 | ||
6288 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6289 | PyObject *resultobj; | |
6290 | char *kwnames[] = { | |
6291 | NULL | |
6292 | }; | |
6293 | ||
6294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6295 | { | |
6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6297 | wxLog::Suspend(); | |
6298 | ||
6299 | wxPyEndAllowThreads(__tstate); | |
6300 | if (PyErr_Occurred()) SWIG_fail; | |
6301 | } | |
6302 | Py_INCREF(Py_None); resultobj = Py_None; | |
6303 | return resultobj; | |
6304 | fail: | |
6305 | return NULL; | |
6306 | } | |
6307 | ||
6308 | ||
6309 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6310 | PyObject *resultobj; | |
6311 | char *kwnames[] = { | |
6312 | NULL | |
6313 | }; | |
6314 | ||
6315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6316 | { | |
6317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6318 | wxLog::Resume(); | |
6319 | ||
6320 | wxPyEndAllowThreads(__tstate); | |
6321 | if (PyErr_Occurred()) SWIG_fail; | |
6322 | } | |
6323 | Py_INCREF(Py_None); resultobj = Py_None; | |
6324 | return resultobj; | |
6325 | fail: | |
6326 | return NULL; | |
6327 | } | |
6328 | ||
6329 | ||
6330 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6331 | PyObject *resultobj; | |
423f194a | 6332 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6333 | PyObject * obj0 = 0 ; |
6334 | char *kwnames[] = { | |
6335 | (char *) "bVerbose", NULL | |
6336 | }; | |
6337 | ||
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6339 | if (obj0) { | |
6340 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6341 | if (PyErr_Occurred()) SWIG_fail; | |
6342 | } | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | wxLog::SetVerbose(arg1); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | Py_INCREF(Py_None); resultobj = Py_None; | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
6357 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxLogLevel arg1 ; | |
6360 | PyObject * obj0 = 0 ; | |
6361 | char *kwnames[] = { | |
6362 | (char *) "logLevel", NULL | |
6363 | }; | |
6364 | ||
6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
6366 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6367 | if (PyErr_Occurred()) SWIG_fail; | |
6368 | { | |
6369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6370 | wxLog::SetLogLevel(arg1); | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
6375 | Py_INCREF(Py_None); resultobj = Py_None; | |
6376 | return resultobj; | |
6377 | fail: | |
6378 | return NULL; | |
6379 | } | |
6380 | ||
6381 | ||
6382 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6383 | PyObject *resultobj; | |
6384 | char *kwnames[] = { | |
6385 | NULL | |
6386 | }; | |
6387 | ||
6388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6389 | { | |
6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6391 | wxLog::DontCreateOnDemand(); | |
6392 | ||
6393 | wxPyEndAllowThreads(__tstate); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | } | |
6396 | Py_INCREF(Py_None); resultobj = Py_None; | |
6397 | return resultobj; | |
6398 | fail: | |
6399 | return NULL; | |
6400 | } | |
6401 | ||
6402 | ||
6403 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6404 | PyObject *resultobj; | |
6405 | wxTraceMask arg1 ; | |
6406 | PyObject * obj0 = 0 ; | |
6407 | char *kwnames[] = { | |
6408 | (char *) "ulMask", NULL | |
6409 | }; | |
6410 | ||
6411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
6412 | arg1 = (wxTraceMask) PyInt_AsLong(obj0); | |
6413 | if (PyErr_Occurred()) SWIG_fail; | |
6414 | { | |
6415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6416 | wxLog::SetTraceMask(arg1); | |
6417 | ||
6418 | wxPyEndAllowThreads(__tstate); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
6421 | Py_INCREF(Py_None); resultobj = Py_None; | |
6422 | return resultobj; | |
6423 | fail: | |
6424 | return NULL; | |
6425 | } | |
6426 | ||
6427 | ||
6428 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6429 | PyObject *resultobj; | |
6430 | wxString *arg1 = 0 ; | |
423f194a | 6431 | bool temp1 = False ; |
d14a1e28 RD |
6432 | PyObject * obj0 = 0 ; |
6433 | char *kwnames[] = { | |
6434 | (char *) "str", NULL | |
6435 | }; | |
6436 | ||
6437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
6438 | { | |
6439 | arg1 = wxString_in_helper(obj0); | |
6440 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6441 | temp1 = True; |
d14a1e28 RD |
6442 | } |
6443 | { | |
6444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6445 | wxLog::AddTraceMask((wxString const &)*arg1); | |
6446 | ||
6447 | wxPyEndAllowThreads(__tstate); | |
6448 | if (PyErr_Occurred()) SWIG_fail; | |
6449 | } | |
6450 | Py_INCREF(Py_None); resultobj = Py_None; | |
6451 | { | |
6452 | if (temp1) | |
6453 | delete arg1; | |
6454 | } | |
6455 | return resultobj; | |
6456 | fail: | |
6457 | { | |
6458 | if (temp1) | |
6459 | delete arg1; | |
6460 | } | |
6461 | return NULL; | |
6462 | } | |
6463 | ||
6464 | ||
6465 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6466 | PyObject *resultobj; | |
6467 | wxString *arg1 = 0 ; | |
423f194a | 6468 | bool temp1 = False ; |
d14a1e28 RD |
6469 | PyObject * obj0 = 0 ; |
6470 | char *kwnames[] = { | |
6471 | (char *) "str", NULL | |
6472 | }; | |
6473 | ||
6474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
6475 | { | |
6476 | arg1 = wxString_in_helper(obj0); | |
6477 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6478 | temp1 = True; |
d14a1e28 RD |
6479 | } |
6480 | { | |
6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6482 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
6483 | ||
6484 | wxPyEndAllowThreads(__tstate); | |
6485 | if (PyErr_Occurred()) SWIG_fail; | |
6486 | } | |
6487 | Py_INCREF(Py_None); resultobj = Py_None; | |
6488 | { | |
6489 | if (temp1) | |
6490 | delete arg1; | |
6491 | } | |
6492 | return resultobj; | |
6493 | fail: | |
6494 | { | |
6495 | if (temp1) | |
6496 | delete arg1; | |
6497 | } | |
6498 | return NULL; | |
6499 | } | |
6500 | ||
6501 | ||
6502 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject *resultobj; | |
6504 | char *kwnames[] = { | |
6505 | NULL | |
6506 | }; | |
6507 | ||
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
6509 | { | |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | wxLog::ClearTraceMasks(); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | Py_INCREF(Py_None); resultobj = Py_None; | |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
6523 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6524 | PyObject *resultobj; | |
6525 | wxArrayString *result; | |
6526 | char *kwnames[] = { | |
6527 | NULL | |
6528 | }; | |
6529 | ||
6530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
6531 | { | |
6532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6533 | { | |
6534 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
6535 | result = (wxArrayString *) &_result_ref; | |
6536 | } | |
6537 | ||
6538 | wxPyEndAllowThreads(__tstate); | |
6539 | if (PyErr_Occurred()) SWIG_fail; | |
6540 | } | |
6541 | { | |
6542 | resultobj = wxArrayString2PyList_helper(*result); | |
6543 | } | |
6544 | return resultobj; | |
6545 | fail: | |
6546 | return NULL; | |
6547 | } | |
6548 | ||
6549 | ||
6550 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6551 | PyObject *resultobj; | |
6552 | wxChar *arg1 = (wxChar *) 0 ; | |
6553 | PyObject * obj0 = 0 ; | |
6554 | char *kwnames[] = { | |
6555 | (char *) "ts", NULL | |
6556 | }; | |
6557 | ||
6558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
6559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6560 | { | |
6561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6562 | wxLog::SetTimestamp((wxChar const *)arg1); | |
6563 | ||
6564 | wxPyEndAllowThreads(__tstate); | |
6565 | if (PyErr_Occurred()) SWIG_fail; | |
6566 | } | |
6567 | Py_INCREF(Py_None); resultobj = Py_None; | |
6568 | return resultobj; | |
6569 | fail: | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
6574 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject *resultobj; | |
6576 | bool result; | |
6577 | char *kwnames[] = { | |
6578 | NULL | |
6579 | }; | |
6580 | ||
6581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
6582 | { | |
6583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6584 | result = (bool)wxLog::GetVerbose(); | |
6585 | ||
6586 | wxPyEndAllowThreads(__tstate); | |
6587 | if (PyErr_Occurred()) SWIG_fail; | |
6588 | } | |
6589 | resultobj = PyInt_FromLong((long)result); | |
6590 | return resultobj; | |
6591 | fail: | |
6592 | return NULL; | |
6593 | } | |
6594 | ||
6595 | ||
6596 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6597 | PyObject *resultobj; | |
6598 | wxTraceMask result; | |
6599 | char *kwnames[] = { | |
6600 | NULL | |
6601 | }; | |
6602 | ||
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
6604 | { | |
6605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6606 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
6607 | ||
6608 | wxPyEndAllowThreads(__tstate); | |
6609 | if (PyErr_Occurred()) SWIG_fail; | |
6610 | } | |
6611 | resultobj = PyInt_FromLong((long)result); | |
6612 | return resultobj; | |
6613 | fail: | |
6614 | return NULL; | |
6615 | } | |
6616 | ||
6617 | ||
6618 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6619 | PyObject *resultobj; | |
6620 | wxChar *arg1 = (wxChar *) 0 ; | |
6621 | bool result; | |
6622 | PyObject * obj0 = 0 ; | |
6623 | char *kwnames[] = { | |
6624 | (char *) "mask", NULL | |
6625 | }; | |
6626 | ||
6627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
6628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6629 | { | |
6630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6631 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
6632 | ||
6633 | wxPyEndAllowThreads(__tstate); | |
6634 | if (PyErr_Occurred()) SWIG_fail; | |
6635 | } | |
6636 | resultobj = PyInt_FromLong((long)result); | |
6637 | return resultobj; | |
6638 | fail: | |
6639 | return NULL; | |
6640 | } | |
6641 | ||
6642 | ||
6643 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6644 | PyObject *resultobj; | |
6645 | wxLogLevel result; | |
6646 | char *kwnames[] = { | |
6647 | NULL | |
6648 | }; | |
6649 | ||
6650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
6651 | { | |
6652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6653 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
6654 | ||
6655 | wxPyEndAllowThreads(__tstate); | |
6656 | if (PyErr_Occurred()) SWIG_fail; | |
6657 | } | |
6658 | resultobj = PyInt_FromLong((long)result); | |
6659 | return resultobj; | |
6660 | fail: | |
6661 | return NULL; | |
6662 | } | |
6663 | ||
6664 | ||
6665 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6666 | PyObject *resultobj; | |
6667 | wxChar *result; | |
6668 | char *kwnames[] = { | |
6669 | NULL | |
6670 | }; | |
6671 | ||
6672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | result = (wxChar *)wxLog::GetTimestamp(); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
6680 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
6681 | return resultobj; | |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxString result; | |
6690 | char *kwnames[] = { | |
6691 | NULL | |
6692 | }; | |
6693 | ||
6694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
6695 | { | |
6696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6697 | result = Log_TimeStamp(); | |
6698 | ||
6699 | wxPyEndAllowThreads(__tstate); | |
6700 | if (PyErr_Occurred()) SWIG_fail; | |
6701 | } | |
6702 | { | |
6703 | #if wxUSE_UNICODE | |
6704 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6705 | #else | |
6706 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6707 | #endif | |
6708 | } | |
6709 | return resultobj; | |
6710 | fail: | |
6711 | return NULL; | |
6712 | } | |
6713 | ||
6714 | ||
6715 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6716 | PyObject *resultobj; | |
6717 | wxLog *arg1 = (wxLog *) 0 ; | |
6718 | PyObject * obj0 = 0 ; | |
6719 | char *kwnames[] = { | |
6720 | (char *) "self", NULL | |
6721 | }; | |
6722 | ||
6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
6724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6725 | { | |
6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6727 | wxLog_Destroy(arg1); | |
6728 | ||
6729 | wxPyEndAllowThreads(__tstate); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
6731 | } | |
6732 | Py_INCREF(Py_None); resultobj = Py_None; | |
6733 | return resultobj; | |
6734 | fail: | |
6735 | return NULL; | |
6736 | } | |
6737 | ||
6738 | ||
6739 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
6740 | PyObject *obj; | |
6741 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6742 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
6743 | Py_INCREF(obj); | |
6744 | return Py_BuildValue((char *)""); | |
6745 | } | |
6746 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6747 | PyObject *resultobj; | |
6748 | wxLogStderr *result; | |
6749 | char *kwnames[] = { | |
6750 | NULL | |
6751 | }; | |
6752 | ||
6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
6754 | { | |
6755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6756 | result = (wxLogStderr *)new wxLogStderr(); | |
6757 | ||
6758 | wxPyEndAllowThreads(__tstate); | |
6759 | if (PyErr_Occurred()) SWIG_fail; | |
6760 | } | |
6761 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
6762 | return resultobj; | |
6763 | fail: | |
6764 | return NULL; | |
6765 | } | |
6766 | ||
6767 | ||
6768 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
6769 | PyObject *obj; | |
6770 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6771 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
6772 | Py_INCREF(obj); | |
6773 | return Py_BuildValue((char *)""); | |
6774 | } | |
6775 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject *resultobj; | |
6777 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6778 | wxLogTextCtrl *result; | |
6779 | PyObject * obj0 = 0 ; | |
6780 | char *kwnames[] = { | |
6781 | (char *) "pTextCtrl", NULL | |
6782 | }; | |
6783 | ||
6784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
6785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6786 | { | |
6787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6788 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
6789 | ||
6790 | wxPyEndAllowThreads(__tstate); | |
6791 | if (PyErr_Occurred()) SWIG_fail; | |
6792 | } | |
6793 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
6794 | return resultobj; | |
6795 | fail: | |
6796 | return NULL; | |
6797 | } | |
6798 | ||
6799 | ||
6800 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
6801 | PyObject *obj; | |
6802 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6803 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
6804 | Py_INCREF(obj); | |
6805 | return Py_BuildValue((char *)""); | |
6806 | } | |
6807 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6808 | PyObject *resultobj; | |
6809 | wxLogGui *result; | |
6810 | char *kwnames[] = { | |
6811 | NULL | |
6812 | }; | |
6813 | ||
6814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
6815 | { | |
6816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6817 | result = (wxLogGui *)new wxLogGui(); | |
6818 | ||
6819 | wxPyEndAllowThreads(__tstate); | |
6820 | if (PyErr_Occurred()) SWIG_fail; | |
6821 | } | |
6822 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
6823 | return resultobj; | |
6824 | fail: | |
6825 | return NULL; | |
6826 | } | |
6827 | ||
6828 | ||
6829 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
6830 | PyObject *obj; | |
6831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6832 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
6833 | Py_INCREF(obj); | |
6834 | return Py_BuildValue((char *)""); | |
6835 | } | |
6836 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6837 | PyObject *resultobj; | |
6838 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6839 | wxString *arg2 = 0 ; | |
423f194a RD |
6840 | bool arg3 = (bool) True ; |
6841 | bool arg4 = (bool) True ; | |
d14a1e28 | 6842 | wxLogWindow *result; |
423f194a | 6843 | bool temp2 = False ; |
d14a1e28 RD |
6844 | PyObject * obj0 = 0 ; |
6845 | PyObject * obj1 = 0 ; | |
6846 | PyObject * obj2 = 0 ; | |
6847 | PyObject * obj3 = 0 ; | |
6848 | char *kwnames[] = { | |
6849 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
6850 | }; | |
6851 | ||
6852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6854 | { | |
6855 | arg2 = wxString_in_helper(obj1); | |
6856 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6857 | temp2 = True; |
d14a1e28 RD |
6858 | } |
6859 | if (obj2) { | |
6860 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6861 | if (PyErr_Occurred()) SWIG_fail; | |
6862 | } | |
6863 | if (obj3) { | |
6864 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6865 | if (PyErr_Occurred()) SWIG_fail; | |
6866 | } | |
6867 | { | |
6868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6869 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
6870 | ||
6871 | wxPyEndAllowThreads(__tstate); | |
6872 | if (PyErr_Occurred()) SWIG_fail; | |
6873 | } | |
6874 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
6875 | { | |
6876 | if (temp2) | |
6877 | delete arg2; | |
6878 | } | |
6879 | return resultobj; | |
6880 | fail: | |
6881 | { | |
6882 | if (temp2) | |
6883 | delete arg2; | |
6884 | } | |
6885 | return NULL; | |
6886 | } | |
6887 | ||
6888 | ||
6889 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6890 | PyObject *resultobj; | |
6891 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
423f194a | 6892 | bool arg2 = (bool) True ; |
d14a1e28 RD |
6893 | PyObject * obj0 = 0 ; |
6894 | PyObject * obj1 = 0 ; | |
6895 | char *kwnames[] = { | |
6896 | (char *) "self",(char *) "bShow", NULL | |
6897 | }; | |
6898 | ||
6899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
6900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6901 | if (obj1) { | |
6902 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | { | |
6906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6907 | (arg1)->Show(arg2); | |
6908 | ||
6909 | wxPyEndAllowThreads(__tstate); | |
6910 | if (PyErr_Occurred()) SWIG_fail; | |
6911 | } | |
6912 | Py_INCREF(Py_None); resultobj = Py_None; | |
6913 | return resultobj; | |
6914 | fail: | |
6915 | return NULL; | |
6916 | } | |
6917 | ||
6918 | ||
6919 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6920 | PyObject *resultobj; | |
6921 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6922 | wxFrame *result; | |
6923 | PyObject * obj0 = 0 ; | |
6924 | char *kwnames[] = { | |
6925 | (char *) "self", NULL | |
6926 | }; | |
6927 | ||
6928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
6929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6930 | { | |
6931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6932 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
6933 | ||
6934 | wxPyEndAllowThreads(__tstate); | |
6935 | if (PyErr_Occurred()) SWIG_fail; | |
6936 | } | |
6937 | { | |
6938 | resultobj = wxPyMake_wxObject(result); | |
6939 | } | |
6940 | return resultobj; | |
6941 | fail: | |
6942 | return NULL; | |
6943 | } | |
6944 | ||
6945 | ||
6946 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6947 | PyObject *resultobj; | |
6948 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6949 | wxLog *result; | |
6950 | PyObject * obj0 = 0 ; | |
6951 | char *kwnames[] = { | |
6952 | (char *) "self", NULL | |
6953 | }; | |
6954 | ||
6955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
6956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6957 | { | |
6958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6959 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
6960 | ||
6961 | wxPyEndAllowThreads(__tstate); | |
6962 | if (PyErr_Occurred()) SWIG_fail; | |
6963 | } | |
6964 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6965 | return resultobj; | |
6966 | fail: | |
6967 | return NULL; | |
6968 | } | |
6969 | ||
6970 | ||
6971 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6972 | PyObject *resultobj; | |
6973 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6974 | bool result; | |
6975 | PyObject * obj0 = 0 ; | |
6976 | char *kwnames[] = { | |
6977 | (char *) "self", NULL | |
6978 | }; | |
6979 | ||
6980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
6981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6982 | { | |
6983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6984 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
6985 | ||
6986 | wxPyEndAllowThreads(__tstate); | |
6987 | if (PyErr_Occurred()) SWIG_fail; | |
6988 | } | |
6989 | resultobj = PyInt_FromLong((long)result); | |
6990 | return resultobj; | |
6991 | fail: | |
6992 | return NULL; | |
6993 | } | |
6994 | ||
6995 | ||
6996 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6997 | PyObject *resultobj; | |
6998 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
6999 | bool arg2 ; | |
7000 | PyObject * obj0 = 0 ; | |
7001 | PyObject * obj1 = 0 ; | |
7002 | char *kwnames[] = { | |
7003 | (char *) "self",(char *) "bDoPass", NULL | |
7004 | }; | |
7005 | ||
7006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7008 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7009 | if (PyErr_Occurred()) SWIG_fail; | |
7010 | { | |
7011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7012 | (arg1)->PassMessages(arg2); | |
7013 | ||
7014 | wxPyEndAllowThreads(__tstate); | |
7015 | if (PyErr_Occurred()) SWIG_fail; | |
7016 | } | |
7017 | Py_INCREF(Py_None); resultobj = Py_None; | |
7018 | return resultobj; | |
7019 | fail: | |
7020 | return NULL; | |
7021 | } | |
7022 | ||
7023 | ||
7024 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7025 | PyObject *obj; | |
7026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7027 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7028 | Py_INCREF(obj); | |
7029 | return Py_BuildValue((char *)""); | |
7030 | } | |
7031 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7032 | PyObject *resultobj; | |
7033 | wxLog *arg1 = (wxLog *) 0 ; | |
7034 | wxLogChain *result; | |
7035 | PyObject * obj0 = 0 ; | |
7036 | char *kwnames[] = { | |
7037 | (char *) "logger", NULL | |
7038 | }; | |
7039 | ||
7040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7042 | { | |
7043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7044 | result = (wxLogChain *)new wxLogChain(arg1); | |
7045 | ||
7046 | wxPyEndAllowThreads(__tstate); | |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
7048 | } | |
7049 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7050 | return resultobj; | |
7051 | fail: | |
7052 | return NULL; | |
7053 | } | |
7054 | ||
7055 | ||
7056 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7057 | PyObject *resultobj; | |
7058 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7059 | wxLog *arg2 = (wxLog *) 0 ; | |
7060 | PyObject * obj0 = 0 ; | |
7061 | PyObject * obj1 = 0 ; | |
7062 | char *kwnames[] = { | |
7063 | (char *) "self",(char *) "logger", NULL | |
7064 | }; | |
7065 | ||
7066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7068 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7069 | { | |
7070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7071 | (arg1)->SetLog(arg2); | |
7072 | ||
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
7076 | Py_INCREF(Py_None); resultobj = Py_None; | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
7083 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7084 | PyObject *resultobj; | |
7085 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7086 | bool arg2 ; | |
7087 | PyObject * obj0 = 0 ; | |
7088 | PyObject * obj1 = 0 ; | |
7089 | char *kwnames[] = { | |
7090 | (char *) "self",(char *) "bDoPass", NULL | |
7091 | }; | |
7092 | ||
7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7095 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7096 | if (PyErr_Occurred()) SWIG_fail; | |
7097 | { | |
7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7099 | (arg1)->PassMessages(arg2); | |
7100 | ||
7101 | wxPyEndAllowThreads(__tstate); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
7104 | Py_INCREF(Py_None); resultobj = Py_None; | |
7105 | return resultobj; | |
7106 | fail: | |
7107 | return NULL; | |
7108 | } | |
7109 | ||
7110 | ||
7111 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject *resultobj; | |
7113 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7114 | bool result; | |
7115 | PyObject * obj0 = 0 ; | |
7116 | char *kwnames[] = { | |
7117 | (char *) "self", NULL | |
7118 | }; | |
7119 | ||
7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7122 | { | |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7124 | result = (bool)(arg1)->IsPassingMessages(); | |
7125 | ||
7126 | wxPyEndAllowThreads(__tstate); | |
7127 | if (PyErr_Occurred()) SWIG_fail; | |
7128 | } | |
7129 | resultobj = PyInt_FromLong((long)result); | |
7130 | return resultobj; | |
7131 | fail: | |
7132 | return NULL; | |
7133 | } | |
7134 | ||
7135 | ||
7136 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7137 | PyObject *resultobj; | |
7138 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7139 | wxLog *result; | |
7140 | PyObject * obj0 = 0 ; | |
7141 | char *kwnames[] = { | |
7142 | (char *) "self", NULL | |
7143 | }; | |
7144 | ||
7145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7147 | { | |
7148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7149 | result = (wxLog *)(arg1)->GetOldLog(); | |
7150 | ||
7151 | wxPyEndAllowThreads(__tstate); | |
7152 | if (PyErr_Occurred()) SWIG_fail; | |
7153 | } | |
7154 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7155 | return resultobj; | |
7156 | fail: | |
7157 | return NULL; | |
7158 | } | |
7159 | ||
7160 | ||
7161 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7162 | PyObject *obj; | |
7163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7164 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7165 | Py_INCREF(obj); | |
7166 | return Py_BuildValue((char *)""); | |
7167 | } | |
7168 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7169 | PyObject *resultobj; | |
7170 | unsigned long result; | |
7171 | char *kwnames[] = { | |
7172 | NULL | |
7173 | }; | |
7174 | ||
7175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7176 | { | |
7177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7178 | result = (unsigned long)wxSysErrorCode(); | |
7179 | ||
7180 | wxPyEndAllowThreads(__tstate); | |
7181 | if (PyErr_Occurred()) SWIG_fail; | |
7182 | } | |
7183 | resultobj = PyInt_FromLong((long)result); | |
7184 | return resultobj; | |
7185 | fail: | |
7186 | return NULL; | |
7187 | } | |
7188 | ||
7189 | ||
7190 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7191 | PyObject *resultobj; | |
7192 | unsigned long arg1 = (unsigned long) 0 ; | |
7193 | wxString result; | |
7194 | PyObject * obj0 = 0 ; | |
7195 | char *kwnames[] = { | |
7196 | (char *) "nErrCode", NULL | |
7197 | }; | |
7198 | ||
7199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7200 | if (obj0) { | |
7201 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7202 | if (PyErr_Occurred()) SWIG_fail; | |
7203 | } | |
7204 | { | |
7205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7206 | result = wxSysErrorMsg(arg1); | |
7207 | ||
7208 | wxPyEndAllowThreads(__tstate); | |
7209 | if (PyErr_Occurred()) SWIG_fail; | |
7210 | } | |
7211 | { | |
7212 | #if wxUSE_UNICODE | |
7213 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7214 | #else | |
7215 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7216 | #endif | |
7217 | } | |
7218 | return resultobj; | |
7219 | fail: | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
7224 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject *resultobj; | |
7226 | wxString *arg1 = 0 ; | |
423f194a | 7227 | bool temp1 = False ; |
d14a1e28 RD |
7228 | PyObject * obj0 = 0 ; |
7229 | char *kwnames[] = { | |
7230 | (char *) "msg", NULL | |
7231 | }; | |
7232 | ||
7233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7234 | { | |
7235 | arg1 = wxString_in_helper(obj0); | |
7236 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7237 | temp1 = True; |
d14a1e28 RD |
7238 | } |
7239 | { | |
7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7241 | wxLogFatalError((wxString const &)*arg1); | |
7242 | ||
7243 | wxPyEndAllowThreads(__tstate); | |
7244 | if (PyErr_Occurred()) SWIG_fail; | |
7245 | } | |
7246 | Py_INCREF(Py_None); resultobj = Py_None; | |
7247 | { | |
7248 | if (temp1) | |
7249 | delete arg1; | |
7250 | } | |
7251 | return resultobj; | |
7252 | fail: | |
7253 | { | |
7254 | if (temp1) | |
7255 | delete arg1; | |
7256 | } | |
7257 | return NULL; | |
7258 | } | |
7259 | ||
7260 | ||
7261 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7262 | PyObject *resultobj; | |
7263 | wxString *arg1 = 0 ; | |
423f194a | 7264 | bool temp1 = False ; |
d14a1e28 RD |
7265 | PyObject * obj0 = 0 ; |
7266 | char *kwnames[] = { | |
7267 | (char *) "msg", NULL | |
7268 | }; | |
7269 | ||
7270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7271 | { | |
7272 | arg1 = wxString_in_helper(obj0); | |
7273 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7274 | temp1 = True; |
d14a1e28 RD |
7275 | } |
7276 | { | |
7277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7278 | wxLogError((wxString const &)*arg1); | |
7279 | ||
7280 | wxPyEndAllowThreads(__tstate); | |
7281 | if (PyErr_Occurred()) SWIG_fail; | |
7282 | } | |
7283 | Py_INCREF(Py_None); resultobj = Py_None; | |
7284 | { | |
7285 | if (temp1) | |
7286 | delete arg1; | |
7287 | } | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | { | |
7291 | if (temp1) | |
7292 | delete arg1; | |
7293 | } | |
7294 | return NULL; | |
7295 | } | |
7296 | ||
7297 | ||
7298 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7299 | PyObject *resultobj; | |
7300 | wxString *arg1 = 0 ; | |
423f194a | 7301 | bool temp1 = False ; |
d14a1e28 RD |
7302 | PyObject * obj0 = 0 ; |
7303 | char *kwnames[] = { | |
7304 | (char *) "msg", NULL | |
7305 | }; | |
7306 | ||
7307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7308 | { | |
7309 | arg1 = wxString_in_helper(obj0); | |
7310 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7311 | temp1 = True; |
d14a1e28 RD |
7312 | } |
7313 | { | |
7314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7315 | wxLogWarning((wxString const &)*arg1); | |
7316 | ||
7317 | wxPyEndAllowThreads(__tstate); | |
7318 | if (PyErr_Occurred()) SWIG_fail; | |
7319 | } | |
7320 | Py_INCREF(Py_None); resultobj = Py_None; | |
7321 | { | |
7322 | if (temp1) | |
7323 | delete arg1; | |
7324 | } | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | { | |
7328 | if (temp1) | |
7329 | delete arg1; | |
7330 | } | |
7331 | return NULL; | |
7332 | } | |
7333 | ||
7334 | ||
7335 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7336 | PyObject *resultobj; | |
7337 | wxString *arg1 = 0 ; | |
423f194a | 7338 | bool temp1 = False ; |
d14a1e28 RD |
7339 | PyObject * obj0 = 0 ; |
7340 | char *kwnames[] = { | |
7341 | (char *) "msg", NULL | |
7342 | }; | |
7343 | ||
7344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7345 | { | |
7346 | arg1 = wxString_in_helper(obj0); | |
7347 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7348 | temp1 = True; |
d14a1e28 RD |
7349 | } |
7350 | { | |
7351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7352 | wxLogMessage((wxString const &)*arg1); | |
7353 | ||
7354 | wxPyEndAllowThreads(__tstate); | |
7355 | if (PyErr_Occurred()) SWIG_fail; | |
7356 | } | |
7357 | Py_INCREF(Py_None); resultobj = Py_None; | |
7358 | { | |
7359 | if (temp1) | |
7360 | delete arg1; | |
7361 | } | |
7362 | return resultobj; | |
7363 | fail: | |
7364 | { | |
7365 | if (temp1) | |
7366 | delete arg1; | |
7367 | } | |
7368 | return NULL; | |
7369 | } | |
7370 | ||
7371 | ||
7372 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7373 | PyObject *resultobj; | |
7374 | wxString *arg1 = 0 ; | |
423f194a | 7375 | bool temp1 = False ; |
d14a1e28 RD |
7376 | PyObject * obj0 = 0 ; |
7377 | char *kwnames[] = { | |
7378 | (char *) "msg", NULL | |
7379 | }; | |
7380 | ||
7381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7382 | { | |
7383 | arg1 = wxString_in_helper(obj0); | |
7384 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7385 | temp1 = True; |
d14a1e28 RD |
7386 | } |
7387 | { | |
7388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7389 | wxLogInfo((wxString const &)*arg1); | |
7390 | ||
7391 | wxPyEndAllowThreads(__tstate); | |
7392 | if (PyErr_Occurred()) SWIG_fail; | |
7393 | } | |
7394 | Py_INCREF(Py_None); resultobj = Py_None; | |
7395 | { | |
7396 | if (temp1) | |
7397 | delete arg1; | |
7398 | } | |
7399 | return resultobj; | |
7400 | fail: | |
7401 | { | |
7402 | if (temp1) | |
7403 | delete arg1; | |
7404 | } | |
7405 | return NULL; | |
7406 | } | |
7407 | ||
7408 | ||
7409 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7410 | PyObject *resultobj; | |
7411 | wxString *arg1 = 0 ; | |
423f194a | 7412 | bool temp1 = False ; |
d14a1e28 RD |
7413 | PyObject * obj0 = 0 ; |
7414 | char *kwnames[] = { | |
7415 | (char *) "msg", NULL | |
7416 | }; | |
7417 | ||
7418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
7419 | { | |
7420 | arg1 = wxString_in_helper(obj0); | |
7421 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7422 | temp1 = True; |
d14a1e28 RD |
7423 | } |
7424 | { | |
7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7426 | wxLogDebug((wxString const &)*arg1); | |
7427 | ||
7428 | wxPyEndAllowThreads(__tstate); | |
7429 | if (PyErr_Occurred()) SWIG_fail; | |
7430 | } | |
7431 | Py_INCREF(Py_None); resultobj = Py_None; | |
7432 | { | |
7433 | if (temp1) | |
7434 | delete arg1; | |
7435 | } | |
7436 | return resultobj; | |
7437 | fail: | |
7438 | { | |
7439 | if (temp1) | |
7440 | delete arg1; | |
7441 | } | |
7442 | return NULL; | |
7443 | } | |
7444 | ||
7445 | ||
7446 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7447 | PyObject *resultobj; | |
7448 | wxString *arg1 = 0 ; | |
423f194a | 7449 | bool temp1 = False ; |
d14a1e28 RD |
7450 | PyObject * obj0 = 0 ; |
7451 | char *kwnames[] = { | |
7452 | (char *) "msg", NULL | |
7453 | }; | |
7454 | ||
7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
7456 | { | |
7457 | arg1 = wxString_in_helper(obj0); | |
7458 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7459 | temp1 = True; |
d14a1e28 RD |
7460 | } |
7461 | { | |
7462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7463 | wxLogVerbose((wxString const &)*arg1); | |
7464 | ||
7465 | wxPyEndAllowThreads(__tstate); | |
7466 | if (PyErr_Occurred()) SWIG_fail; | |
7467 | } | |
7468 | Py_INCREF(Py_None); resultobj = Py_None; | |
7469 | { | |
7470 | if (temp1) | |
7471 | delete arg1; | |
7472 | } | |
7473 | return resultobj; | |
7474 | fail: | |
7475 | { | |
7476 | if (temp1) | |
7477 | delete arg1; | |
7478 | } | |
7479 | return NULL; | |
7480 | } | |
7481 | ||
7482 | ||
7483 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7484 | PyObject *resultobj; | |
7485 | wxString *arg1 = 0 ; | |
423f194a | 7486 | bool temp1 = False ; |
d14a1e28 RD |
7487 | PyObject * obj0 = 0 ; |
7488 | char *kwnames[] = { | |
7489 | (char *) "msg", NULL | |
7490 | }; | |
7491 | ||
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
7493 | { | |
7494 | arg1 = wxString_in_helper(obj0); | |
7495 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7496 | temp1 = True; |
d14a1e28 RD |
7497 | } |
7498 | { | |
7499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7500 | wxLogStatus((wxString const &)*arg1); | |
7501 | ||
7502 | wxPyEndAllowThreads(__tstate); | |
7503 | if (PyErr_Occurred()) SWIG_fail; | |
7504 | } | |
7505 | Py_INCREF(Py_None); resultobj = Py_None; | |
7506 | { | |
7507 | if (temp1) | |
7508 | delete arg1; | |
7509 | } | |
7510 | return resultobj; | |
7511 | fail: | |
7512 | { | |
7513 | if (temp1) | |
7514 | delete arg1; | |
7515 | } | |
7516 | return NULL; | |
7517 | } | |
7518 | ||
7519 | ||
7520 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7521 | PyObject *resultobj; | |
7522 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7523 | wxString *arg2 = 0 ; | |
423f194a | 7524 | bool temp2 = False ; |
d14a1e28 RD |
7525 | PyObject * obj0 = 0 ; |
7526 | PyObject * obj1 = 0 ; | |
7527 | char *kwnames[] = { | |
7528 | (char *) "pFrame",(char *) "msg", NULL | |
7529 | }; | |
7530 | ||
7531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
7532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7533 | { | |
7534 | arg2 = wxString_in_helper(obj1); | |
7535 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7536 | temp2 = True; |
d14a1e28 RD |
7537 | } |
7538 | { | |
7539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7540 | wxLogStatus(arg1,(wxString const &)*arg2); | |
7541 | ||
7542 | wxPyEndAllowThreads(__tstate); | |
7543 | if (PyErr_Occurred()) SWIG_fail; | |
7544 | } | |
7545 | Py_INCREF(Py_None); resultobj = Py_None; | |
7546 | { | |
7547 | if (temp2) | |
7548 | delete arg2; | |
7549 | } | |
7550 | return resultobj; | |
7551 | fail: | |
7552 | { | |
7553 | if (temp2) | |
7554 | delete arg2; | |
7555 | } | |
7556 | return NULL; | |
7557 | } | |
7558 | ||
7559 | ||
7560 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7561 | PyObject *resultobj; | |
7562 | wxString *arg1 = 0 ; | |
423f194a | 7563 | bool temp1 = False ; |
d14a1e28 RD |
7564 | PyObject * obj0 = 0 ; |
7565 | char *kwnames[] = { | |
7566 | (char *) "msg", NULL | |
7567 | }; | |
7568 | ||
7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
7570 | { | |
7571 | arg1 = wxString_in_helper(obj0); | |
7572 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7573 | temp1 = True; |
d14a1e28 RD |
7574 | } |
7575 | { | |
7576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7577 | wxLogSysError((wxString const &)*arg1); | |
7578 | ||
7579 | wxPyEndAllowThreads(__tstate); | |
7580 | if (PyErr_Occurred()) SWIG_fail; | |
7581 | } | |
7582 | Py_INCREF(Py_None); resultobj = Py_None; | |
7583 | { | |
7584 | if (temp1) | |
7585 | delete arg1; | |
7586 | } | |
7587 | return resultobj; | |
7588 | fail: | |
7589 | { | |
7590 | if (temp1) | |
7591 | delete arg1; | |
7592 | } | |
7593 | return NULL; | |
7594 | } | |
7595 | ||
7596 | ||
f0983263 | 7597 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 7598 | PyObject *resultobj; |
f0983263 RD |
7599 | unsigned long arg1 ; |
7600 | wxString *arg2 = 0 ; | |
7601 | bool temp2 = False ; | |
d14a1e28 | 7602 | PyObject * obj0 = 0 ; |
f0983263 | 7603 | PyObject * obj1 = 0 ; |
d14a1e28 | 7604 | |
f0983263 RD |
7605 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
7606 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7607 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7608 | { |
f0983263 RD |
7609 | arg2 = wxString_in_helper(obj1); |
7610 | if (arg2 == NULL) SWIG_fail; | |
7611 | temp2 = True; | |
d14a1e28 RD |
7612 | } |
7613 | { | |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f0983263 | 7615 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
7616 | |
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | Py_INCREF(Py_None); resultobj = Py_None; | |
7621 | { | |
f0983263 RD |
7622 | if (temp2) |
7623 | delete arg2; | |
d14a1e28 RD |
7624 | } |
7625 | return resultobj; | |
7626 | fail: | |
7627 | { | |
f0983263 RD |
7628 | if (temp2) |
7629 | delete arg2; | |
d14a1e28 RD |
7630 | } |
7631 | return NULL; | |
7632 | } | |
7633 | ||
7634 | ||
f0983263 | 7635 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
7636 | PyObject *resultobj; |
7637 | wxString *arg1 = 0 ; | |
7638 | wxString *arg2 = 0 ; | |
423f194a RD |
7639 | bool temp1 = False ; |
7640 | bool temp2 = False ; | |
d14a1e28 RD |
7641 | PyObject * obj0 = 0 ; |
7642 | PyObject * obj1 = 0 ; | |
d14a1e28 | 7643 | |
f0983263 | 7644 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
7645 | { |
7646 | arg1 = wxString_in_helper(obj0); | |
7647 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7648 | temp1 = True; |
d14a1e28 RD |
7649 | } |
7650 | { | |
7651 | arg2 = wxString_in_helper(obj1); | |
7652 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7653 | temp2 = True; |
d14a1e28 RD |
7654 | } |
7655 | { | |
7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7657 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
7658 | ||
7659 | wxPyEndAllowThreads(__tstate); | |
7660 | if (PyErr_Occurred()) SWIG_fail; | |
7661 | } | |
7662 | Py_INCREF(Py_None); resultobj = Py_None; | |
7663 | { | |
7664 | if (temp1) | |
7665 | delete arg1; | |
7666 | } | |
7667 | { | |
7668 | if (temp2) | |
7669 | delete arg2; | |
7670 | } | |
7671 | return resultobj; | |
7672 | fail: | |
7673 | { | |
7674 | if (temp1) | |
7675 | delete arg1; | |
7676 | } | |
7677 | { | |
7678 | if (temp2) | |
7679 | delete arg2; | |
7680 | } | |
7681 | return NULL; | |
7682 | } | |
7683 | ||
7684 | ||
f0983263 RD |
7685 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
7686 | int argc; | |
7687 | PyObject *argv[3]; | |
7688 | int ii; | |
7689 | ||
7690 | argc = PyObject_Length(args); | |
7691 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
7692 | argv[ii] = PyTuple_GetItem(args,ii); | |
7693 | } | |
7694 | if (argc == 2) { | |
7695 | int _v; | |
7696 | { | |
7697 | void *ptr; | |
7698 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7699 | _v = 0; | |
7700 | PyErr_Clear(); | |
7701 | } else { | |
7702 | _v = 1; | |
7703 | } | |
7704 | } | |
7705 | if (_v) { | |
7706 | { | |
7707 | void *ptr; | |
7708 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7709 | _v = 0; | |
7710 | PyErr_Clear(); | |
7711 | } else { | |
7712 | _v = 1; | |
7713 | } | |
7714 | } | |
7715 | if (_v) { | |
7716 | return _wrap_LogTrace__SWIG_1(self,args); | |
7717 | } | |
7718 | } | |
7719 | } | |
7720 | if (argc == 2) { | |
7721 | int _v; | |
7722 | { | |
7723 | _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0; | |
7724 | } | |
7725 | if (_v) { | |
7726 | { | |
7727 | void *ptr; | |
7728 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7729 | _v = 0; | |
7730 | PyErr_Clear(); | |
7731 | } else { | |
7732 | _v = 1; | |
7733 | } | |
7734 | } | |
7735 | if (_v) { | |
7736 | return _wrap_LogTrace__SWIG_0(self,args); | |
7737 | } | |
7738 | } | |
7739 | } | |
7740 | ||
7741 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
7742 | return NULL; | |
7743 | } | |
7744 | ||
7745 | ||
d14a1e28 RD |
7746 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
7747 | PyObject *resultobj; | |
7748 | unsigned long arg1 ; | |
7749 | wxString *arg2 = 0 ; | |
423f194a | 7750 | bool temp2 = False ; |
d14a1e28 RD |
7751 | PyObject * obj0 = 0 ; |
7752 | PyObject * obj1 = 0 ; | |
7753 | char *kwnames[] = { | |
7754 | (char *) "level",(char *) "msg", NULL | |
7755 | }; | |
7756 | ||
7757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
7758 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7759 | if (PyErr_Occurred()) SWIG_fail; | |
7760 | { | |
7761 | arg2 = wxString_in_helper(obj1); | |
7762 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7763 | temp2 = True; |
d14a1e28 RD |
7764 | } |
7765 | { | |
7766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7767 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
7768 | ||
7769 | wxPyEndAllowThreads(__tstate); | |
7770 | if (PyErr_Occurred()) SWIG_fail; | |
7771 | } | |
7772 | Py_INCREF(Py_None); resultobj = Py_None; | |
7773 | { | |
7774 | if (temp2) | |
7775 | delete arg2; | |
7776 | } | |
7777 | return resultobj; | |
7778 | fail: | |
7779 | { | |
7780 | if (temp2) | |
7781 | delete arg2; | |
7782 | } | |
7783 | return NULL; | |
7784 | } | |
7785 | ||
7786 | ||
7787 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7788 | PyObject *resultobj; | |
7789 | wxString *arg1 = 0 ; | |
7790 | wxString *arg2 = 0 ; | |
423f194a RD |
7791 | bool temp1 = False ; |
7792 | bool temp2 = False ; | |
d14a1e28 RD |
7793 | PyObject * obj0 = 0 ; |
7794 | PyObject * obj1 = 0 ; | |
7795 | char *kwnames[] = { | |
7796 | (char *) "title",(char *) "text", NULL | |
7797 | }; | |
7798 | ||
7799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
7800 | { | |
7801 | arg1 = wxString_in_helper(obj0); | |
7802 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7803 | temp1 = True; |
d14a1e28 RD |
7804 | } |
7805 | { | |
7806 | arg2 = wxString_in_helper(obj1); | |
7807 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7808 | temp2 = True; |
d14a1e28 RD |
7809 | } |
7810 | { | |
7811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7812 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
7813 | ||
7814 | wxPyEndAllowThreads(__tstate); | |
7815 | if (PyErr_Occurred()) SWIG_fail; | |
7816 | } | |
7817 | Py_INCREF(Py_None); resultobj = Py_None; | |
7818 | { | |
7819 | if (temp1) | |
7820 | delete arg1; | |
7821 | } | |
7822 | { | |
7823 | if (temp2) | |
7824 | delete arg2; | |
7825 | } | |
7826 | return resultobj; | |
7827 | fail: | |
7828 | { | |
7829 | if (temp1) | |
7830 | delete arg1; | |
7831 | } | |
7832 | { | |
7833 | if (temp2) | |
7834 | delete arg2; | |
7835 | } | |
7836 | return NULL; | |
7837 | } | |
7838 | ||
7839 | ||
7840 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7841 | PyObject *resultobj; | |
7842 | wxLogNull *result; | |
7843 | char *kwnames[] = { | |
7844 | NULL | |
7845 | }; | |
7846 | ||
7847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
7848 | { | |
7849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7850 | result = (wxLogNull *)new wxLogNull(); | |
7851 | ||
7852 | wxPyEndAllowThreads(__tstate); | |
7853 | if (PyErr_Occurred()) SWIG_fail; | |
7854 | } | |
7855 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
7856 | return resultobj; | |
7857 | fail: | |
7858 | return NULL; | |
7859 | } | |
7860 | ||
7861 | ||
7862 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7863 | PyObject *resultobj; | |
7864 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
7865 | PyObject * obj0 = 0 ; | |
7866 | char *kwnames[] = { | |
7867 | (char *) "self", NULL | |
7868 | }; | |
7869 | ||
7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
7871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7872 | { | |
7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7874 | delete arg1; | |
7875 | ||
7876 | wxPyEndAllowThreads(__tstate); | |
7877 | if (PyErr_Occurred()) SWIG_fail; | |
7878 | } | |
7879 | Py_INCREF(Py_None); resultobj = Py_None; | |
7880 | return resultobj; | |
7881 | fail: | |
7882 | return NULL; | |
7883 | } | |
7884 | ||
7885 | ||
7886 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
7887 | PyObject *obj; | |
7888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7889 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
7890 | Py_INCREF(obj); | |
7891 | return Py_BuildValue((char *)""); | |
7892 | } | |
7893 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7894 | PyObject *resultobj; | |
7895 | wxPyLog *result; | |
7896 | char *kwnames[] = { | |
7897 | NULL | |
7898 | }; | |
7899 | ||
7900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
7901 | { | |
7902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7903 | result = (wxPyLog *)new wxPyLog(); | |
7904 | ||
7905 | wxPyEndAllowThreads(__tstate); | |
7906 | if (PyErr_Occurred()) SWIG_fail; | |
7907 | } | |
7908 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
7909 | return resultobj; | |
7910 | fail: | |
7911 | return NULL; | |
7912 | } | |
7913 | ||
7914 | ||
7915 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7916 | PyObject *resultobj; | |
7917 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
7918 | PyObject *arg2 = (PyObject *) 0 ; | |
7919 | PyObject *arg3 = (PyObject *) 0 ; | |
7920 | PyObject * obj0 = 0 ; | |
7921 | PyObject * obj1 = 0 ; | |
7922 | PyObject * obj2 = 0 ; | |
7923 | char *kwnames[] = { | |
7924 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
7925 | }; | |
7926 | ||
7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7929 | arg2 = obj1; | |
7930 | arg3 = obj2; | |
7931 | { | |
7932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7933 | (arg1)->_setCallbackInfo(arg2,arg3); | |
7934 | ||
7935 | wxPyEndAllowThreads(__tstate); | |
7936 | if (PyErr_Occurred()) SWIG_fail; | |
7937 | } | |
7938 | Py_INCREF(Py_None); resultobj = Py_None; | |
7939 | return resultobj; | |
7940 | fail: | |
7941 | return NULL; | |
7942 | } | |
7943 | ||
7944 | ||
7945 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
7946 | PyObject *obj; | |
7947 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7948 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
7949 | Py_INCREF(obj); | |
7950 | return Py_BuildValue((char *)""); | |
7951 | } | |
7952 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7953 | PyObject *resultobj; | |
7954 | int arg1 ; | |
7955 | int arg2 = (int) wxSIGTERM ; | |
7956 | int result; | |
7957 | char *kwnames[] = { | |
7958 | (char *) "pid",(char *) "sig", NULL | |
7959 | }; | |
7960 | ||
7961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:Process_Kill",kwnames,&arg1,&arg2)) goto fail; | |
7962 | { | |
7963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7964 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
7965 | ||
7966 | wxPyEndAllowThreads(__tstate); | |
7967 | if (PyErr_Occurred()) SWIG_fail; | |
7968 | } | |
7969 | resultobj = PyInt_FromLong((long)result); | |
7970 | return resultobj; | |
7971 | fail: | |
7972 | return NULL; | |
7973 | } | |
7974 | ||
7975 | ||
7976 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7977 | PyObject *resultobj; | |
7978 | int arg1 ; | |
7979 | bool result; | |
7980 | char *kwnames[] = { | |
7981 | (char *) "pid", NULL | |
7982 | }; | |
7983 | ||
7984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Process_Exists",kwnames,&arg1)) goto fail; | |
7985 | { | |
7986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7987 | result = (bool)wxPyProcess::Exists(arg1); | |
7988 | ||
7989 | wxPyEndAllowThreads(__tstate); | |
7990 | if (PyErr_Occurred()) SWIG_fail; | |
7991 | } | |
7992 | resultobj = PyInt_FromLong((long)result); | |
7993 | return resultobj; | |
7994 | fail: | |
7995 | return NULL; | |
7996 | } | |
7997 | ||
7998 | ||
7999 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8000 | PyObject *resultobj; | |
8001 | wxString *arg1 = 0 ; | |
8002 | int arg2 = (int) wxEXEC_ASYNC ; | |
8003 | wxPyProcess *result; | |
423f194a | 8004 | bool temp1 = False ; |
d14a1e28 RD |
8005 | PyObject * obj0 = 0 ; |
8006 | char *kwnames[] = { | |
8007 | (char *) "cmd",(char *) "flags", NULL | |
8008 | }; | |
8009 | ||
8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Process_Open",kwnames,&obj0,&arg2)) goto fail; | |
8011 | { | |
8012 | arg1 = wxString_in_helper(obj0); | |
8013 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8014 | temp1 = True; |
d14a1e28 RD |
8015 | } |
8016 | { | |
8017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8018 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8019 | ||
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
8023 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
8024 | { | |
8025 | if (temp1) | |
8026 | delete arg1; | |
8027 | } | |
8028 | return resultobj; | |
8029 | fail: | |
8030 | { | |
8031 | if (temp1) | |
8032 | delete arg1; | |
8033 | } | |
8034 | return NULL; | |
8035 | } | |
8036 | ||
8037 | ||
8038 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8039 | PyObject *resultobj; | |
8040 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8041 | int arg2 = (int) -1 ; | |
8042 | wxPyProcess *result; | |
8043 | PyObject * obj0 = 0 ; | |
8044 | char *kwnames[] = { | |
8045 | (char *) "parent",(char *) "id", NULL | |
8046 | }; | |
8047 | ||
8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Process",kwnames,&obj0,&arg2)) goto fail; | |
8049 | if (obj0) { | |
8050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8051 | } | |
8052 | { | |
8053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8054 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8055 | ||
8056 | wxPyEndAllowThreads(__tstate); | |
8057 | if (PyErr_Occurred()) SWIG_fail; | |
8058 | } | |
8059 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
8060 | return resultobj; | |
8061 | fail: | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
8066 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8067 | PyObject *resultobj; | |
8068 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8069 | PyObject *arg2 = (PyObject *) 0 ; | |
8070 | PyObject *arg3 = (PyObject *) 0 ; | |
8071 | PyObject * obj0 = 0 ; | |
8072 | PyObject * obj1 = 0 ; | |
8073 | PyObject * obj2 = 0 ; | |
8074 | char *kwnames[] = { | |
8075 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8076 | }; | |
8077 | ||
8078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8080 | arg2 = obj1; | |
8081 | arg3 = obj2; | |
8082 | { | |
8083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8084 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8085 | ||
8086 | wxPyEndAllowThreads(__tstate); | |
8087 | if (PyErr_Occurred()) SWIG_fail; | |
8088 | } | |
8089 | Py_INCREF(Py_None); resultobj = Py_None; | |
8090 | return resultobj; | |
8091 | fail: | |
8092 | return NULL; | |
8093 | } | |
8094 | ||
8095 | ||
8096 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8097 | PyObject *resultobj; | |
8098 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8099 | int arg2 ; | |
8100 | int arg3 ; | |
8101 | PyObject * obj0 = 0 ; | |
8102 | char *kwnames[] = { | |
8103 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8104 | }; | |
8105 | ||
8106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Process_base_OnTerminate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8108 | { | |
8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8110 | (arg1)->base_OnTerminate(arg2,arg3); | |
8111 | ||
8112 | wxPyEndAllowThreads(__tstate); | |
8113 | if (PyErr_Occurred()) SWIG_fail; | |
8114 | } | |
8115 | Py_INCREF(Py_None); resultobj = Py_None; | |
8116 | return resultobj; | |
8117 | fail: | |
8118 | return NULL; | |
8119 | } | |
8120 | ||
8121 | ||
8122 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8123 | PyObject *resultobj; | |
8124 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8125 | PyObject * obj0 = 0 ; | |
8126 | char *kwnames[] = { | |
8127 | (char *) "self", NULL | |
8128 | }; | |
8129 | ||
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8132 | { | |
8133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8134 | (arg1)->Redirect(); | |
8135 | ||
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) SWIG_fail; | |
8138 | } | |
8139 | Py_INCREF(Py_None); resultobj = Py_None; | |
8140 | return resultobj; | |
8141 | fail: | |
8142 | return NULL; | |
8143 | } | |
8144 | ||
8145 | ||
8146 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8147 | PyObject *resultobj; | |
8148 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8149 | bool result; | |
8150 | PyObject * obj0 = 0 ; | |
8151 | char *kwnames[] = { | |
8152 | (char *) "self", NULL | |
8153 | }; | |
8154 | ||
8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8157 | { | |
8158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8159 | result = (bool)(arg1)->IsRedirected(); | |
8160 | ||
8161 | wxPyEndAllowThreads(__tstate); | |
8162 | if (PyErr_Occurred()) SWIG_fail; | |
8163 | } | |
8164 | resultobj = PyInt_FromLong((long)result); | |
8165 | return resultobj; | |
8166 | fail: | |
8167 | return NULL; | |
8168 | } | |
8169 | ||
8170 | ||
8171 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8172 | PyObject *resultobj; | |
8173 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8174 | PyObject * obj0 = 0 ; | |
8175 | char *kwnames[] = { | |
8176 | (char *) "self", NULL | |
8177 | }; | |
8178 | ||
8179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8181 | { | |
8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8183 | (arg1)->Detach(); | |
8184 | ||
8185 | wxPyEndAllowThreads(__tstate); | |
8186 | if (PyErr_Occurred()) SWIG_fail; | |
8187 | } | |
8188 | Py_INCREF(Py_None); resultobj = Py_None; | |
8189 | return resultobj; | |
8190 | fail: | |
8191 | return NULL; | |
8192 | } | |
8193 | ||
8194 | ||
8195 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8196 | PyObject *resultobj; | |
8197 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8198 | wxInputStream *result; | |
8199 | PyObject * obj0 = 0 ; | |
8200 | char *kwnames[] = { | |
8201 | (char *) "self", NULL | |
8202 | }; | |
8203 | ||
8204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8206 | { | |
8207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8208 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8209 | ||
8210 | wxPyEndAllowThreads(__tstate); | |
8211 | if (PyErr_Occurred()) SWIG_fail; | |
8212 | } | |
8213 | { | |
8214 | wxPyInputStream * _ptr = NULL; | |
8215 | ||
8216 | if (result) { | |
8217 | _ptr = new wxPyInputStream(result); | |
8218 | } | |
423f194a | 8219 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8220 | } |
8221 | return resultobj; | |
8222 | fail: | |
8223 | return NULL; | |
8224 | } | |
8225 | ||
8226 | ||
8227 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8228 | PyObject *resultobj; | |
8229 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8230 | wxInputStream *result; | |
8231 | PyObject * obj0 = 0 ; | |
8232 | char *kwnames[] = { | |
8233 | (char *) "self", NULL | |
8234 | }; | |
8235 | ||
8236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8238 | { | |
8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8240 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8241 | ||
8242 | wxPyEndAllowThreads(__tstate); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
8244 | } | |
8245 | { | |
8246 | wxPyInputStream * _ptr = NULL; | |
8247 | ||
8248 | if (result) { | |
8249 | _ptr = new wxPyInputStream(result); | |
8250 | } | |
423f194a | 8251 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8252 | } |
8253 | return resultobj; | |
8254 | fail: | |
8255 | return NULL; | |
8256 | } | |
8257 | ||
8258 | ||
8259 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8260 | PyObject *resultobj; | |
8261 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8262 | wxOutputStream *result; | |
8263 | PyObject * obj0 = 0 ; | |
8264 | char *kwnames[] = { | |
8265 | (char *) "self", NULL | |
8266 | }; | |
8267 | ||
8268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
8269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | } | |
8277 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8278 | return resultobj; | |
8279 | fail: | |
8280 | return NULL; | |
8281 | } | |
8282 | ||
8283 | ||
8284 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8285 | PyObject *resultobj; | |
8286 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8287 | PyObject * obj0 = 0 ; | |
8288 | char *kwnames[] = { | |
8289 | (char *) "self", NULL | |
8290 | }; | |
8291 | ||
8292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
8293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8294 | { | |
8295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8296 | (arg1)->CloseOutput(); | |
8297 | ||
8298 | wxPyEndAllowThreads(__tstate); | |
8299 | if (PyErr_Occurred()) SWIG_fail; | |
8300 | } | |
8301 | Py_INCREF(Py_None); resultobj = Py_None; | |
8302 | return resultobj; | |
8303 | fail: | |
8304 | return NULL; | |
8305 | } | |
8306 | ||
8307 | ||
8308 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8309 | PyObject *resultobj; | |
8310 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8311 | bool result; | |
8312 | PyObject * obj0 = 0 ; | |
8313 | char *kwnames[] = { | |
8314 | (char *) "self", NULL | |
8315 | }; | |
8316 | ||
8317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8319 | { | |
8320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8321 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8322 | ||
8323 | wxPyEndAllowThreads(__tstate); | |
8324 | if (PyErr_Occurred()) SWIG_fail; | |
8325 | } | |
8326 | resultobj = PyInt_FromLong((long)result); | |
8327 | return resultobj; | |
8328 | fail: | |
8329 | return NULL; | |
8330 | } | |
8331 | ||
8332 | ||
8333 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8334 | PyObject *resultobj; | |
8335 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8336 | bool result; | |
8337 | PyObject * obj0 = 0 ; | |
8338 | char *kwnames[] = { | |
8339 | (char *) "self", NULL | |
8340 | }; | |
8341 | ||
8342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8344 | { | |
8345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8346 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8347 | ||
8348 | wxPyEndAllowThreads(__tstate); | |
8349 | if (PyErr_Occurred()) SWIG_fail; | |
8350 | } | |
8351 | resultobj = PyInt_FromLong((long)result); | |
8352 | return resultobj; | |
8353 | fail: | |
8354 | return NULL; | |
8355 | } | |
8356 | ||
8357 | ||
8358 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8359 | PyObject *resultobj; | |
8360 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8361 | bool result; | |
8362 | PyObject * obj0 = 0 ; | |
8363 | char *kwnames[] = { | |
8364 | (char *) "self", NULL | |
8365 | }; | |
8366 | ||
8367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8369 | { | |
8370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8371 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8372 | ||
8373 | wxPyEndAllowThreads(__tstate); | |
8374 | if (PyErr_Occurred()) SWIG_fail; | |
8375 | } | |
8376 | resultobj = PyInt_FromLong((long)result); | |
8377 | return resultobj; | |
8378 | fail: | |
8379 | return NULL; | |
8380 | } | |
8381 | ||
8382 | ||
8383 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
8384 | PyObject *obj; | |
8385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8386 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
8387 | Py_INCREF(obj); | |
8388 | return Py_BuildValue((char *)""); | |
8389 | } | |
8390 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8391 | PyObject *resultobj; | |
8392 | int arg1 = (int) 0 ; | |
8393 | int arg2 = (int) 0 ; | |
8394 | int arg3 = (int) 0 ; | |
8395 | wxProcessEvent *result; | |
8396 | char *kwnames[] = { | |
8397 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
8398 | }; | |
8399 | ||
8400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ProcessEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
8401 | { | |
8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8403 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
8404 | ||
8405 | wxPyEndAllowThreads(__tstate); | |
8406 | if (PyErr_Occurred()) SWIG_fail; | |
8407 | } | |
8408 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
8409 | return resultobj; | |
8410 | fail: | |
8411 | return NULL; | |
8412 | } | |
8413 | ||
8414 | ||
8415 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8416 | PyObject *resultobj; | |
8417 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8418 | int result; | |
8419 | PyObject * obj0 = 0 ; | |
8420 | char *kwnames[] = { | |
8421 | (char *) "self", NULL | |
8422 | }; | |
8423 | ||
8424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
8425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8426 | { | |
8427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8428 | result = (int)(arg1)->GetPid(); | |
8429 | ||
8430 | wxPyEndAllowThreads(__tstate); | |
8431 | if (PyErr_Occurred()) SWIG_fail; | |
8432 | } | |
8433 | resultobj = PyInt_FromLong((long)result); | |
8434 | return resultobj; | |
8435 | fail: | |
8436 | return NULL; | |
8437 | } | |
8438 | ||
8439 | ||
8440 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8441 | PyObject *resultobj; | |
8442 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8443 | int result; | |
8444 | PyObject * obj0 = 0 ; | |
8445 | char *kwnames[] = { | |
8446 | (char *) "self", NULL | |
8447 | }; | |
8448 | ||
8449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
8450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8451 | { | |
8452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8453 | result = (int)(arg1)->GetExitCode(); | |
8454 | ||
8455 | wxPyEndAllowThreads(__tstate); | |
8456 | if (PyErr_Occurred()) SWIG_fail; | |
8457 | } | |
8458 | resultobj = PyInt_FromLong((long)result); | |
8459 | return resultobj; | |
8460 | fail: | |
8461 | return NULL; | |
8462 | } | |
8463 | ||
8464 | ||
8465 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8466 | PyObject *resultobj; | |
8467 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8468 | int arg2 ; | |
8469 | PyObject * obj0 = 0 ; | |
8470 | char *kwnames[] = { | |
8471 | (char *) "self",(char *) "m_pid", NULL | |
8472 | }; | |
8473 | ||
8474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_pid_set",kwnames,&obj0,&arg2)) goto fail; | |
8475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8476 | if (arg1) (arg1)->m_pid = arg2; | |
8477 | ||
8478 | Py_INCREF(Py_None); resultobj = Py_None; | |
8479 | return resultobj; | |
8480 | fail: | |
8481 | return NULL; | |
8482 | } | |
8483 | ||
8484 | ||
8485 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8486 | PyObject *resultobj; | |
8487 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8488 | int result; | |
8489 | PyObject * obj0 = 0 ; | |
8490 | char *kwnames[] = { | |
8491 | (char *) "self", NULL | |
8492 | }; | |
8493 | ||
8494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
8495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8496 | result = (int) ((arg1)->m_pid); | |
8497 | ||
8498 | resultobj = PyInt_FromLong((long)result); | |
8499 | return resultobj; | |
8500 | fail: | |
8501 | return NULL; | |
8502 | } | |
8503 | ||
8504 | ||
8505 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8506 | PyObject *resultobj; | |
8507 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8508 | int arg2 ; | |
8509 | PyObject * obj0 = 0 ; | |
8510 | char *kwnames[] = { | |
8511 | (char *) "self",(char *) "m_exitcode", NULL | |
8512 | }; | |
8513 | ||
8514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_exitcode_set",kwnames,&obj0,&arg2)) goto fail; | |
8515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8516 | if (arg1) (arg1)->m_exitcode = arg2; | |
8517 | ||
8518 | Py_INCREF(Py_None); resultobj = Py_None; | |
8519 | return resultobj; | |
8520 | fail: | |
8521 | return NULL; | |
8522 | } | |
8523 | ||
8524 | ||
8525 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8526 | PyObject *resultobj; | |
8527 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8528 | int result; | |
8529 | PyObject * obj0 = 0 ; | |
8530 | char *kwnames[] = { | |
8531 | (char *) "self", NULL | |
8532 | }; | |
8533 | ||
8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
8535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8536 | result = (int) ((arg1)->m_exitcode); | |
8537 | ||
8538 | resultobj = PyInt_FromLong((long)result); | |
8539 | return resultobj; | |
8540 | fail: | |
8541 | return NULL; | |
8542 | } | |
8543 | ||
8544 | ||
8545 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
8546 | PyObject *obj; | |
8547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8548 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
8549 | Py_INCREF(obj); | |
8550 | return Py_BuildValue((char *)""); | |
8551 | } | |
8552 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8553 | PyObject *resultobj; | |
8554 | wxString *arg1 = 0 ; | |
8555 | int arg2 = (int) wxEXEC_ASYNC ; | |
8556 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
8557 | long result; | |
423f194a | 8558 | bool temp1 = False ; |
d14a1e28 RD |
8559 | PyObject * obj0 = 0 ; |
8560 | PyObject * obj2 = 0 ; | |
8561 | char *kwnames[] = { | |
8562 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
8563 | }; | |
8564 | ||
8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Execute",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8566 | { | |
8567 | arg1 = wxString_in_helper(obj0); | |
8568 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8569 | temp1 = True; |
d14a1e28 RD |
8570 | } |
8571 | if (obj2) { | |
8572 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8573 | } | |
8574 | { | |
8575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8576 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
8577 | ||
8578 | wxPyEndAllowThreads(__tstate); | |
8579 | if (PyErr_Occurred()) SWIG_fail; | |
8580 | } | |
8581 | resultobj = PyInt_FromLong((long)result); | |
8582 | { | |
8583 | if (temp1) | |
8584 | delete arg1; | |
8585 | } | |
8586 | return resultobj; | |
8587 | fail: | |
8588 | { | |
8589 | if (temp1) | |
8590 | delete arg1; | |
8591 | } | |
8592 | return NULL; | |
8593 | } | |
8594 | ||
8595 | ||
8596 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8597 | PyObject *resultobj; | |
8598 | int arg1 = (int) wxJOYSTICK1 ; | |
8599 | wxJoystick *result; | |
8600 | char *kwnames[] = { | |
8601 | (char *) "joystick", NULL | |
8602 | }; | |
8603 | ||
8604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_Joystick",kwnames,&arg1)) goto fail; | |
8605 | { | |
8606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8607 | result = (wxJoystick *)new wxJoystick(arg1); | |
8608 | ||
8609 | wxPyEndAllowThreads(__tstate); | |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
8611 | } | |
8612 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
8613 | return resultobj; | |
8614 | fail: | |
8615 | return NULL; | |
8616 | } | |
8617 | ||
8618 | ||
8619 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8620 | PyObject *resultobj; | |
8621 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8622 | PyObject * obj0 = 0 ; | |
8623 | char *kwnames[] = { | |
8624 | (char *) "self", NULL | |
8625 | }; | |
8626 | ||
8627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
8628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8629 | { | |
8630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8631 | delete arg1; | |
8632 | ||
8633 | wxPyEndAllowThreads(__tstate); | |
8634 | if (PyErr_Occurred()) SWIG_fail; | |
8635 | } | |
8636 | Py_INCREF(Py_None); resultobj = Py_None; | |
8637 | return resultobj; | |
8638 | fail: | |
8639 | return NULL; | |
8640 | } | |
8641 | ||
8642 | ||
8643 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8644 | PyObject *resultobj; | |
8645 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8646 | wxPoint result; | |
8647 | PyObject * obj0 = 0 ; | |
8648 | char *kwnames[] = { | |
8649 | (char *) "self", NULL | |
8650 | }; | |
8651 | ||
8652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",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 = (arg1)->GetPosition(); | |
8657 | ||
8658 | wxPyEndAllowThreads(__tstate); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
8661 | { | |
8662 | wxPoint * resultptr; | |
8663 | resultptr = new wxPoint((wxPoint &) result); | |
8664 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
8665 | } | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | return NULL; | |
8669 | } | |
8670 | ||
8671 | ||
8672 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8673 | PyObject *resultobj; | |
8674 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8675 | int result; | |
8676 | PyObject * obj0 = 0 ; | |
8677 | char *kwnames[] = { | |
8678 | (char *) "self", NULL | |
8679 | }; | |
8680 | ||
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
8682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8683 | { | |
8684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8685 | result = (int)(arg1)->GetZPosition(); | |
8686 | ||
8687 | wxPyEndAllowThreads(__tstate); | |
8688 | if (PyErr_Occurred()) SWIG_fail; | |
8689 | } | |
8690 | resultobj = PyInt_FromLong((long)result); | |
8691 | return resultobj; | |
8692 | fail: | |
8693 | return NULL; | |
8694 | } | |
8695 | ||
8696 | ||
8697 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8698 | PyObject *resultobj; | |
8699 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8700 | int result; | |
8701 | PyObject * obj0 = 0 ; | |
8702 | char *kwnames[] = { | |
8703 | (char *) "self", NULL | |
8704 | }; | |
8705 | ||
8706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
8707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8708 | { | |
8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8710 | result = (int)(arg1)->GetButtonState(); | |
8711 | ||
8712 | wxPyEndAllowThreads(__tstate); | |
8713 | if (PyErr_Occurred()) SWIG_fail; | |
8714 | } | |
8715 | resultobj = PyInt_FromLong((long)result); | |
8716 | return resultobj; | |
8717 | fail: | |
8718 | return NULL; | |
8719 | } | |
8720 | ||
8721 | ||
8722 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8723 | PyObject *resultobj; | |
8724 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8725 | int result; | |
8726 | PyObject * obj0 = 0 ; | |
8727 | char *kwnames[] = { | |
8728 | (char *) "self", NULL | |
8729 | }; | |
8730 | ||
8731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
8732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8733 | { | |
8734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8735 | result = (int)(arg1)->GetPOVPosition(); | |
8736 | ||
8737 | wxPyEndAllowThreads(__tstate); | |
8738 | if (PyErr_Occurred()) SWIG_fail; | |
8739 | } | |
8740 | resultobj = PyInt_FromLong((long)result); | |
8741 | return resultobj; | |
8742 | fail: | |
8743 | return NULL; | |
8744 | } | |
8745 | ||
8746 | ||
8747 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8748 | PyObject *resultobj; | |
8749 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8750 | int result; | |
8751 | PyObject * obj0 = 0 ; | |
8752 | char *kwnames[] = { | |
8753 | (char *) "self", NULL | |
8754 | }; | |
8755 | ||
8756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
8757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8758 | { | |
8759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8760 | result = (int)(arg1)->GetPOVCTSPosition(); | |
8761 | ||
8762 | wxPyEndAllowThreads(__tstate); | |
8763 | if (PyErr_Occurred()) SWIG_fail; | |
8764 | } | |
8765 | resultobj = PyInt_FromLong((long)result); | |
8766 | return resultobj; | |
8767 | fail: | |
8768 | return NULL; | |
8769 | } | |
8770 | ||
8771 | ||
8772 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8773 | PyObject *resultobj; | |
8774 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8775 | int result; | |
8776 | PyObject * obj0 = 0 ; | |
8777 | char *kwnames[] = { | |
8778 | (char *) "self", NULL | |
8779 | }; | |
8780 | ||
8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
8782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8783 | { | |
8784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8785 | result = (int)(arg1)->GetRudderPosition(); | |
8786 | ||
8787 | wxPyEndAllowThreads(__tstate); | |
8788 | if (PyErr_Occurred()) SWIG_fail; | |
8789 | } | |
8790 | resultobj = PyInt_FromLong((long)result); | |
8791 | return resultobj; | |
8792 | fail: | |
8793 | return NULL; | |
8794 | } | |
8795 | ||
8796 | ||
8797 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8798 | PyObject *resultobj; | |
8799 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8800 | int result; | |
8801 | PyObject * obj0 = 0 ; | |
8802 | char *kwnames[] = { | |
8803 | (char *) "self", NULL | |
8804 | }; | |
8805 | ||
8806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
8807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8808 | { | |
8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8810 | result = (int)(arg1)->GetUPosition(); | |
8811 | ||
8812 | wxPyEndAllowThreads(__tstate); | |
8813 | if (PyErr_Occurred()) SWIG_fail; | |
8814 | } | |
8815 | resultobj = PyInt_FromLong((long)result); | |
8816 | return resultobj; | |
8817 | fail: | |
8818 | return NULL; | |
8819 | } | |
8820 | ||
8821 | ||
8822 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8823 | PyObject *resultobj; | |
8824 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8825 | int result; | |
8826 | PyObject * obj0 = 0 ; | |
8827 | char *kwnames[] = { | |
8828 | (char *) "self", NULL | |
8829 | }; | |
8830 | ||
8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
8832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8833 | { | |
8834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8835 | result = (int)(arg1)->GetVPosition(); | |
8836 | ||
8837 | wxPyEndAllowThreads(__tstate); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
8839 | } | |
8840 | resultobj = PyInt_FromLong((long)result); | |
8841 | return resultobj; | |
8842 | fail: | |
8843 | return NULL; | |
8844 | } | |
8845 | ||
8846 | ||
8847 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8848 | PyObject *resultobj; | |
8849 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8850 | int result; | |
8851 | PyObject * obj0 = 0 ; | |
8852 | char *kwnames[] = { | |
8853 | (char *) "self", NULL | |
8854 | }; | |
8855 | ||
8856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
8857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8858 | { | |
8859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8860 | result = (int)(arg1)->GetMovementThreshold(); | |
8861 | ||
8862 | wxPyEndAllowThreads(__tstate); | |
8863 | if (PyErr_Occurred()) SWIG_fail; | |
8864 | } | |
8865 | resultobj = PyInt_FromLong((long)result); | |
8866 | return resultobj; | |
8867 | fail: | |
8868 | return NULL; | |
8869 | } | |
8870 | ||
8871 | ||
8872 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8873 | PyObject *resultobj; | |
8874 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8875 | int arg2 ; | |
8876 | PyObject * obj0 = 0 ; | |
8877 | char *kwnames[] = { | |
8878 | (char *) "self",(char *) "threshold", NULL | |
8879 | }; | |
8880 | ||
8881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Joystick_SetMovementThreshold",kwnames,&obj0,&arg2)) goto fail; | |
8882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8883 | { | |
8884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8885 | (arg1)->SetMovementThreshold(arg2); | |
8886 | ||
8887 | wxPyEndAllowThreads(__tstate); | |
8888 | if (PyErr_Occurred()) SWIG_fail; | |
8889 | } | |
8890 | Py_INCREF(Py_None); resultobj = Py_None; | |
8891 | return resultobj; | |
8892 | fail: | |
8893 | return NULL; | |
8894 | } | |
8895 | ||
8896 | ||
8897 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8898 | PyObject *resultobj; | |
8899 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8900 | bool result; | |
8901 | PyObject * obj0 = 0 ; | |
8902 | char *kwnames[] = { | |
8903 | (char *) "self", NULL | |
8904 | }; | |
8905 | ||
8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
8907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8908 | { | |
8909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8910 | result = (bool)(arg1)->IsOk(); | |
8911 | ||
8912 | wxPyEndAllowThreads(__tstate); | |
8913 | if (PyErr_Occurred()) SWIG_fail; | |
8914 | } | |
8915 | resultobj = PyInt_FromLong((long)result); | |
8916 | return resultobj; | |
8917 | fail: | |
8918 | return NULL; | |
8919 | } | |
8920 | ||
8921 | ||
8922 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8923 | PyObject *resultobj; | |
8924 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8925 | int result; | |
8926 | PyObject * obj0 = 0 ; | |
8927 | char *kwnames[] = { | |
8928 | (char *) "self", NULL | |
8929 | }; | |
8930 | ||
8931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
8932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8933 | { | |
8934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8935 | result = (int)(arg1)->GetNumberJoysticks(); | |
8936 | ||
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
8940 | resultobj = PyInt_FromLong((long)result); | |
8941 | return resultobj; | |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
8947 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8948 | PyObject *resultobj; | |
8949 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8950 | int result; | |
8951 | PyObject * obj0 = 0 ; | |
8952 | char *kwnames[] = { | |
8953 | (char *) "self", NULL | |
8954 | }; | |
8955 | ||
8956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
8957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8958 | { | |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | result = (int)(arg1)->GetManufacturerId(); | |
8961 | ||
8962 | wxPyEndAllowThreads(__tstate); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
8965 | resultobj = PyInt_FromLong((long)result); | |
8966 | return resultobj; | |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
8972 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8973 | PyObject *resultobj; | |
8974 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8975 | int result; | |
8976 | PyObject * obj0 = 0 ; | |
8977 | char *kwnames[] = { | |
8978 | (char *) "self", NULL | |
8979 | }; | |
8980 | ||
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
8982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8983 | { | |
8984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8985 | result = (int)(arg1)->GetProductId(); | |
8986 | ||
8987 | wxPyEndAllowThreads(__tstate); | |
8988 | if (PyErr_Occurred()) SWIG_fail; | |
8989 | } | |
8990 | resultobj = PyInt_FromLong((long)result); | |
8991 | return resultobj; | |
8992 | fail: | |
8993 | return NULL; | |
8994 | } | |
8995 | ||
8996 | ||
8997 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8998 | PyObject *resultobj; | |
8999 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9000 | wxString result; | |
9001 | PyObject * obj0 = 0 ; | |
9002 | char *kwnames[] = { | |
9003 | (char *) "self", NULL | |
9004 | }; | |
9005 | ||
9006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9008 | { | |
9009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9010 | result = (arg1)->GetProductName(); | |
9011 | ||
9012 | wxPyEndAllowThreads(__tstate); | |
9013 | if (PyErr_Occurred()) SWIG_fail; | |
9014 | } | |
9015 | { | |
9016 | #if wxUSE_UNICODE | |
9017 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9018 | #else | |
9019 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9020 | #endif | |
9021 | } | |
9022 | return resultobj; | |
9023 | fail: | |
9024 | return NULL; | |
9025 | } | |
9026 | ||
9027 | ||
9028 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9029 | PyObject *resultobj; | |
9030 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9031 | int result; | |
9032 | PyObject * obj0 = 0 ; | |
9033 | char *kwnames[] = { | |
9034 | (char *) "self", NULL | |
9035 | }; | |
9036 | ||
9037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9039 | { | |
9040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9041 | result = (int)(arg1)->GetXMin(); | |
9042 | ||
9043 | wxPyEndAllowThreads(__tstate); | |
9044 | if (PyErr_Occurred()) SWIG_fail; | |
9045 | } | |
9046 | resultobj = PyInt_FromLong((long)result); | |
9047 | return resultobj; | |
9048 | fail: | |
9049 | return NULL; | |
9050 | } | |
9051 | ||
9052 | ||
9053 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9054 | PyObject *resultobj; | |
9055 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9056 | int result; | |
9057 | PyObject * obj0 = 0 ; | |
9058 | char *kwnames[] = { | |
9059 | (char *) "self", NULL | |
9060 | }; | |
9061 | ||
9062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9064 | { | |
9065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9066 | result = (int)(arg1)->GetYMin(); | |
9067 | ||
9068 | wxPyEndAllowThreads(__tstate); | |
9069 | if (PyErr_Occurred()) SWIG_fail; | |
9070 | } | |
9071 | resultobj = PyInt_FromLong((long)result); | |
9072 | return resultobj; | |
9073 | fail: | |
9074 | return NULL; | |
9075 | } | |
9076 | ||
9077 | ||
9078 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9079 | PyObject *resultobj; | |
9080 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9081 | int result; | |
9082 | PyObject * obj0 = 0 ; | |
9083 | char *kwnames[] = { | |
9084 | (char *) "self", NULL | |
9085 | }; | |
9086 | ||
9087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9089 | { | |
9090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9091 | result = (int)(arg1)->GetZMin(); | |
9092 | ||
9093 | wxPyEndAllowThreads(__tstate); | |
9094 | if (PyErr_Occurred()) SWIG_fail; | |
9095 | } | |
9096 | resultobj = PyInt_FromLong((long)result); | |
9097 | return resultobj; | |
9098 | fail: | |
9099 | return NULL; | |
9100 | } | |
9101 | ||
9102 | ||
9103 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9104 | PyObject *resultobj; | |
9105 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9106 | int result; | |
9107 | PyObject * obj0 = 0 ; | |
9108 | char *kwnames[] = { | |
9109 | (char *) "self", NULL | |
9110 | }; | |
9111 | ||
9112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9114 | { | |
9115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9116 | result = (int)(arg1)->GetXMax(); | |
9117 | ||
9118 | wxPyEndAllowThreads(__tstate); | |
9119 | if (PyErr_Occurred()) SWIG_fail; | |
9120 | } | |
9121 | resultobj = PyInt_FromLong((long)result); | |
9122 | return resultobj; | |
9123 | fail: | |
9124 | return NULL; | |
9125 | } | |
9126 | ||
9127 | ||
9128 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9129 | PyObject *resultobj; | |
9130 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9131 | int result; | |
9132 | PyObject * obj0 = 0 ; | |
9133 | char *kwnames[] = { | |
9134 | (char *) "self", NULL | |
9135 | }; | |
9136 | ||
9137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9139 | { | |
9140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9141 | result = (int)(arg1)->GetYMax(); | |
9142 | ||
9143 | wxPyEndAllowThreads(__tstate); | |
9144 | if (PyErr_Occurred()) SWIG_fail; | |
9145 | } | |
9146 | resultobj = PyInt_FromLong((long)result); | |
9147 | return resultobj; | |
9148 | fail: | |
9149 | return NULL; | |
9150 | } | |
9151 | ||
9152 | ||
9153 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9154 | PyObject *resultobj; | |
9155 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9156 | int result; | |
9157 | PyObject * obj0 = 0 ; | |
9158 | char *kwnames[] = { | |
9159 | (char *) "self", NULL | |
9160 | }; | |
9161 | ||
9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9164 | { | |
9165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9166 | result = (int)(arg1)->GetZMax(); | |
9167 | ||
9168 | wxPyEndAllowThreads(__tstate); | |
9169 | if (PyErr_Occurred()) SWIG_fail; | |
9170 | } | |
9171 | resultobj = PyInt_FromLong((long)result); | |
9172 | return resultobj; | |
9173 | fail: | |
9174 | return NULL; | |
9175 | } | |
9176 | ||
9177 | ||
9178 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9179 | PyObject *resultobj; | |
9180 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9181 | int result; | |
9182 | PyObject * obj0 = 0 ; | |
9183 | char *kwnames[] = { | |
9184 | (char *) "self", NULL | |
9185 | }; | |
9186 | ||
9187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9189 | { | |
9190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9191 | result = (int)(arg1)->GetNumberButtons(); | |
9192 | ||
9193 | wxPyEndAllowThreads(__tstate); | |
9194 | if (PyErr_Occurred()) SWIG_fail; | |
9195 | } | |
9196 | resultobj = PyInt_FromLong((long)result); | |
9197 | return resultobj; | |
9198 | fail: | |
9199 | return NULL; | |
9200 | } | |
9201 | ||
9202 | ||
9203 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9204 | PyObject *resultobj; | |
9205 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9206 | int result; | |
9207 | PyObject * obj0 = 0 ; | |
9208 | char *kwnames[] = { | |
9209 | (char *) "self", NULL | |
9210 | }; | |
9211 | ||
9212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9213 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9214 | { | |
9215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9216 | result = (int)(arg1)->GetNumberAxes(); | |
9217 | ||
9218 | wxPyEndAllowThreads(__tstate); | |
9219 | if (PyErr_Occurred()) SWIG_fail; | |
9220 | } | |
9221 | resultobj = PyInt_FromLong((long)result); | |
9222 | return resultobj; | |
9223 | fail: | |
9224 | return NULL; | |
9225 | } | |
9226 | ||
9227 | ||
9228 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9229 | PyObject *resultobj; | |
9230 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9231 | int result; | |
9232 | PyObject * obj0 = 0 ; | |
9233 | char *kwnames[] = { | |
9234 | (char *) "self", NULL | |
9235 | }; | |
9236 | ||
9237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9239 | { | |
9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9241 | result = (int)(arg1)->GetMaxButtons(); | |
9242 | ||
9243 | wxPyEndAllowThreads(__tstate); | |
9244 | if (PyErr_Occurred()) SWIG_fail; | |
9245 | } | |
9246 | resultobj = PyInt_FromLong((long)result); | |
9247 | return resultobj; | |
9248 | fail: | |
9249 | return NULL; | |
9250 | } | |
9251 | ||
9252 | ||
9253 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9254 | PyObject *resultobj; | |
9255 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9256 | int result; | |
9257 | PyObject * obj0 = 0 ; | |
9258 | char *kwnames[] = { | |
9259 | (char *) "self", NULL | |
9260 | }; | |
9261 | ||
9262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9264 | { | |
9265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9266 | result = (int)(arg1)->GetMaxAxes(); | |
9267 | ||
9268 | wxPyEndAllowThreads(__tstate); | |
9269 | if (PyErr_Occurred()) SWIG_fail; | |
9270 | } | |
9271 | resultobj = PyInt_FromLong((long)result); | |
9272 | return resultobj; | |
9273 | fail: | |
9274 | return NULL; | |
9275 | } | |
9276 | ||
9277 | ||
9278 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9279 | PyObject *resultobj; | |
9280 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9281 | int result; | |
9282 | PyObject * obj0 = 0 ; | |
9283 | char *kwnames[] = { | |
9284 | (char *) "self", NULL | |
9285 | }; | |
9286 | ||
9287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9289 | { | |
9290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9291 | result = (int)(arg1)->GetPollingMin(); | |
9292 | ||
9293 | wxPyEndAllowThreads(__tstate); | |
9294 | if (PyErr_Occurred()) SWIG_fail; | |
9295 | } | |
9296 | resultobj = PyInt_FromLong((long)result); | |
9297 | return resultobj; | |
9298 | fail: | |
9299 | return NULL; | |
9300 | } | |
9301 | ||
9302 | ||
9303 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9304 | PyObject *resultobj; | |
9305 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9306 | int result; | |
9307 | PyObject * obj0 = 0 ; | |
9308 | char *kwnames[] = { | |
9309 | (char *) "self", NULL | |
9310 | }; | |
9311 | ||
9312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
9313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9314 | { | |
9315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9316 | result = (int)(arg1)->GetPollingMax(); | |
9317 | ||
9318 | wxPyEndAllowThreads(__tstate); | |
9319 | if (PyErr_Occurred()) SWIG_fail; | |
9320 | } | |
9321 | resultobj = PyInt_FromLong((long)result); | |
9322 | return resultobj; | |
9323 | fail: | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
9328 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject *resultobj; | |
9330 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9331 | int result; | |
9332 | PyObject * obj0 = 0 ; | |
9333 | char *kwnames[] = { | |
9334 | (char *) "self", NULL | |
9335 | }; | |
9336 | ||
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
9338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9339 | { | |
9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9341 | result = (int)(arg1)->GetRudderMin(); | |
9342 | ||
9343 | wxPyEndAllowThreads(__tstate); | |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
9345 | } | |
9346 | resultobj = PyInt_FromLong((long)result); | |
9347 | return resultobj; | |
9348 | fail: | |
9349 | return NULL; | |
9350 | } | |
9351 | ||
9352 | ||
9353 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9354 | PyObject *resultobj; | |
9355 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9356 | int result; | |
9357 | PyObject * obj0 = 0 ; | |
9358 | char *kwnames[] = { | |
9359 | (char *) "self", NULL | |
9360 | }; | |
9361 | ||
9362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
9363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9364 | { | |
9365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9366 | result = (int)(arg1)->GetRudderMax(); | |
9367 | ||
9368 | wxPyEndAllowThreads(__tstate); | |
9369 | if (PyErr_Occurred()) SWIG_fail; | |
9370 | } | |
9371 | resultobj = PyInt_FromLong((long)result); | |
9372 | return resultobj; | |
9373 | fail: | |
9374 | return NULL; | |
9375 | } | |
9376 | ||
9377 | ||
9378 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9379 | PyObject *resultobj; | |
9380 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9381 | int result; | |
9382 | PyObject * obj0 = 0 ; | |
9383 | char *kwnames[] = { | |
9384 | (char *) "self", NULL | |
9385 | }; | |
9386 | ||
9387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
9388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9389 | { | |
9390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9391 | result = (int)(arg1)->GetUMin(); | |
9392 | ||
9393 | wxPyEndAllowThreads(__tstate); | |
9394 | if (PyErr_Occurred()) SWIG_fail; | |
9395 | } | |
9396 | resultobj = PyInt_FromLong((long)result); | |
9397 | return resultobj; | |
9398 | fail: | |
9399 | return NULL; | |
9400 | } | |
9401 | ||
9402 | ||
9403 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9404 | PyObject *resultobj; | |
9405 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9406 | int result; | |
9407 | PyObject * obj0 = 0 ; | |
9408 | char *kwnames[] = { | |
9409 | (char *) "self", NULL | |
9410 | }; | |
9411 | ||
9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
9413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9414 | { | |
9415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9416 | result = (int)(arg1)->GetUMax(); | |
9417 | ||
9418 | wxPyEndAllowThreads(__tstate); | |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
9420 | } | |
9421 | resultobj = PyInt_FromLong((long)result); | |
9422 | return resultobj; | |
9423 | fail: | |
9424 | return NULL; | |
9425 | } | |
9426 | ||
9427 | ||
9428 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9429 | PyObject *resultobj; | |
9430 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9431 | int result; | |
9432 | PyObject * obj0 = 0 ; | |
9433 | char *kwnames[] = { | |
9434 | (char *) "self", NULL | |
9435 | }; | |
9436 | ||
9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
9438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9439 | { | |
9440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9441 | result = (int)(arg1)->GetVMin(); | |
9442 | ||
9443 | wxPyEndAllowThreads(__tstate); | |
9444 | if (PyErr_Occurred()) SWIG_fail; | |
9445 | } | |
9446 | resultobj = PyInt_FromLong((long)result); | |
9447 | return resultobj; | |
9448 | fail: | |
9449 | return NULL; | |
9450 | } | |
9451 | ||
9452 | ||
9453 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9454 | PyObject *resultobj; | |
9455 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9456 | int result; | |
9457 | PyObject * obj0 = 0 ; | |
9458 | char *kwnames[] = { | |
9459 | (char *) "self", NULL | |
9460 | }; | |
9461 | ||
9462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
9463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9464 | { | |
9465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9466 | result = (int)(arg1)->GetVMax(); | |
9467 | ||
9468 | wxPyEndAllowThreads(__tstate); | |
9469 | if (PyErr_Occurred()) SWIG_fail; | |
9470 | } | |
9471 | resultobj = PyInt_FromLong((long)result); | |
9472 | return resultobj; | |
9473 | fail: | |
9474 | return NULL; | |
9475 | } | |
9476 | ||
9477 | ||
9478 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9479 | PyObject *resultobj; | |
9480 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9481 | bool result; | |
9482 | PyObject * obj0 = 0 ; | |
9483 | char *kwnames[] = { | |
9484 | (char *) "self", NULL | |
9485 | }; | |
9486 | ||
9487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
9488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9489 | { | |
9490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9491 | result = (bool)(arg1)->HasRudder(); | |
9492 | ||
9493 | wxPyEndAllowThreads(__tstate); | |
9494 | if (PyErr_Occurred()) SWIG_fail; | |
9495 | } | |
9496 | resultobj = PyInt_FromLong((long)result); | |
9497 | return resultobj; | |
9498 | fail: | |
9499 | return NULL; | |
9500 | } | |
9501 | ||
9502 | ||
9503 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9504 | PyObject *resultobj; | |
9505 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9506 | bool result; | |
9507 | PyObject * obj0 = 0 ; | |
9508 | char *kwnames[] = { | |
9509 | (char *) "self", NULL | |
9510 | }; | |
9511 | ||
9512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
9513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9514 | { | |
9515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9516 | result = (bool)(arg1)->HasZ(); | |
9517 | ||
9518 | wxPyEndAllowThreads(__tstate); | |
9519 | if (PyErr_Occurred()) SWIG_fail; | |
9520 | } | |
9521 | resultobj = PyInt_FromLong((long)result); | |
9522 | return resultobj; | |
9523 | fail: | |
9524 | return NULL; | |
9525 | } | |
9526 | ||
9527 | ||
9528 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9529 | PyObject *resultobj; | |
9530 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9531 | bool result; | |
9532 | PyObject * obj0 = 0 ; | |
9533 | char *kwnames[] = { | |
9534 | (char *) "self", NULL | |
9535 | }; | |
9536 | ||
9537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
9538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9539 | { | |
9540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9541 | result = (bool)(arg1)->HasU(); | |
9542 | ||
9543 | wxPyEndAllowThreads(__tstate); | |
9544 | if (PyErr_Occurred()) SWIG_fail; | |
9545 | } | |
9546 | resultobj = PyInt_FromLong((long)result); | |
9547 | return resultobj; | |
9548 | fail: | |
9549 | return NULL; | |
9550 | } | |
9551 | ||
9552 | ||
9553 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9554 | PyObject *resultobj; | |
9555 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9556 | bool result; | |
9557 | PyObject * obj0 = 0 ; | |
9558 | char *kwnames[] = { | |
9559 | (char *) "self", NULL | |
9560 | }; | |
9561 | ||
9562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
9563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9564 | { | |
9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9566 | result = (bool)(arg1)->HasV(); | |
9567 | ||
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
9571 | resultobj = PyInt_FromLong((long)result); | |
9572 | return resultobj; | |
9573 | fail: | |
9574 | return NULL; | |
9575 | } | |
9576 | ||
9577 | ||
9578 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9579 | PyObject *resultobj; | |
9580 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9581 | bool result; | |
9582 | PyObject * obj0 = 0 ; | |
9583 | char *kwnames[] = { | |
9584 | (char *) "self", NULL | |
9585 | }; | |
9586 | ||
9587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
9588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9589 | { | |
9590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9591 | result = (bool)(arg1)->HasPOV(); | |
9592 | ||
9593 | wxPyEndAllowThreads(__tstate); | |
9594 | if (PyErr_Occurred()) SWIG_fail; | |
9595 | } | |
9596 | resultobj = PyInt_FromLong((long)result); | |
9597 | return resultobj; | |
9598 | fail: | |
9599 | return NULL; | |
9600 | } | |
9601 | ||
9602 | ||
9603 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9604 | PyObject *resultobj; | |
9605 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9606 | bool result; | |
9607 | PyObject * obj0 = 0 ; | |
9608 | char *kwnames[] = { | |
9609 | (char *) "self", NULL | |
9610 | }; | |
9611 | ||
9612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
9613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9614 | { | |
9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9616 | result = (bool)(arg1)->HasPOV4Dir(); | |
9617 | ||
9618 | wxPyEndAllowThreads(__tstate); | |
9619 | if (PyErr_Occurred()) SWIG_fail; | |
9620 | } | |
9621 | resultobj = PyInt_FromLong((long)result); | |
9622 | return resultobj; | |
9623 | fail: | |
9624 | return NULL; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9629 | PyObject *resultobj; | |
9630 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9631 | bool result; | |
9632 | PyObject * obj0 = 0 ; | |
9633 | char *kwnames[] = { | |
9634 | (char *) "self", NULL | |
9635 | }; | |
9636 | ||
9637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
9638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9639 | { | |
9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9641 | result = (bool)(arg1)->HasPOVCTS(); | |
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_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9654 | PyObject *resultobj; | |
9655 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9656 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9657 | int arg3 = (int) 0 ; | |
9658 | bool result; | |
9659 | PyObject * obj0 = 0 ; | |
9660 | PyObject * obj1 = 0 ; | |
9661 | char *kwnames[] = { | |
9662 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
9663 | }; | |
9664 | ||
9665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Joystick_SetCapture",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9668 | { | |
9669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9670 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
9671 | ||
9672 | wxPyEndAllowThreads(__tstate); | |
9673 | if (PyErr_Occurred()) SWIG_fail; | |
9674 | } | |
9675 | resultobj = PyInt_FromLong((long)result); | |
9676 | return resultobj; | |
9677 | fail: | |
9678 | return NULL; | |
9679 | } | |
9680 | ||
9681 | ||
9682 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9683 | PyObject *resultobj; | |
9684 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9685 | bool result; | |
9686 | PyObject * obj0 = 0 ; | |
9687 | char *kwnames[] = { | |
9688 | (char *) "self", NULL | |
9689 | }; | |
9690 | ||
9691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
9692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9693 | { | |
9694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9695 | result = (bool)(arg1)->ReleaseCapture(); | |
9696 | ||
9697 | wxPyEndAllowThreads(__tstate); | |
9698 | if (PyErr_Occurred()) SWIG_fail; | |
9699 | } | |
9700 | resultobj = PyInt_FromLong((long)result); | |
9701 | return resultobj; | |
9702 | fail: | |
9703 | return NULL; | |
9704 | } | |
9705 | ||
9706 | ||
9707 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
9708 | PyObject *obj; | |
9709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9710 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
9711 | Py_INCREF(obj); | |
9712 | return Py_BuildValue((char *)""); | |
9713 | } | |
9714 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9715 | PyObject *resultobj; | |
9716 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9717 | wxPoint *arg2 = (wxPoint *) 0 ; | |
9718 | PyObject * obj0 = 0 ; | |
9719 | PyObject * obj1 = 0 ; | |
9720 | char *kwnames[] = { | |
9721 | (char *) "self",(char *) "m_pos", NULL | |
9722 | }; | |
9723 | ||
9724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
9725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9726 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9727 | if (arg1) (arg1)->m_pos = *arg2; | |
9728 | ||
9729 | Py_INCREF(Py_None); resultobj = Py_None; | |
9730 | return resultobj; | |
9731 | fail: | |
9732 | return NULL; | |
9733 | } | |
9734 | ||
9735 | ||
9736 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9737 | PyObject *resultobj; | |
9738 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9739 | wxPoint *result; | |
9740 | PyObject * obj0 = 0 ; | |
9741 | char *kwnames[] = { | |
9742 | (char *) "self", NULL | |
9743 | }; | |
9744 | ||
9745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
9746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9747 | result = (wxPoint *)& ((arg1)->m_pos); | |
9748 | ||
9749 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
9750 | return resultobj; | |
9751 | fail: | |
9752 | return NULL; | |
9753 | } | |
9754 | ||
9755 | ||
9756 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9757 | PyObject *resultobj; | |
9758 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9759 | int arg2 ; | |
9760 | PyObject * obj0 = 0 ; | |
9761 | char *kwnames[] = { | |
9762 | (char *) "self",(char *) "m_zPosition", NULL | |
9763 | }; | |
9764 | ||
9765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_zPosition_set",kwnames,&obj0,&arg2)) goto fail; | |
9766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9767 | if (arg1) (arg1)->m_zPosition = arg2; | |
9768 | ||
9769 | Py_INCREF(Py_None); resultobj = Py_None; | |
9770 | return resultobj; | |
9771 | fail: | |
9772 | return NULL; | |
9773 | } | |
9774 | ||
9775 | ||
9776 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9777 | PyObject *resultobj; | |
9778 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9779 | int result; | |
9780 | PyObject * obj0 = 0 ; | |
9781 | char *kwnames[] = { | |
9782 | (char *) "self", NULL | |
9783 | }; | |
9784 | ||
9785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
9786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9787 | result = (int) ((arg1)->m_zPosition); | |
9788 | ||
9789 | resultobj = PyInt_FromLong((long)result); | |
9790 | return resultobj; | |
9791 | fail: | |
9792 | return NULL; | |
9793 | } | |
9794 | ||
9795 | ||
9796 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9797 | PyObject *resultobj; | |
9798 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9799 | int arg2 ; | |
9800 | PyObject * obj0 = 0 ; | |
9801 | char *kwnames[] = { | |
9802 | (char *) "self",(char *) "m_buttonChange", NULL | |
9803 | }; | |
9804 | ||
9805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&arg2)) goto fail; | |
9806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9807 | if (arg1) (arg1)->m_buttonChange = arg2; | |
9808 | ||
9809 | Py_INCREF(Py_None); resultobj = Py_None; | |
9810 | return resultobj; | |
9811 | fail: | |
9812 | return NULL; | |
9813 | } | |
9814 | ||
9815 | ||
9816 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9817 | PyObject *resultobj; | |
9818 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9819 | int result; | |
9820 | PyObject * obj0 = 0 ; | |
9821 | char *kwnames[] = { | |
9822 | (char *) "self", NULL | |
9823 | }; | |
9824 | ||
9825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
9826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9827 | result = (int) ((arg1)->m_buttonChange); | |
9828 | ||
9829 | resultobj = PyInt_FromLong((long)result); | |
9830 | return resultobj; | |
9831 | fail: | |
9832 | return NULL; | |
9833 | } | |
9834 | ||
9835 | ||
9836 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9837 | PyObject *resultobj; | |
9838 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9839 | int arg2 ; | |
9840 | PyObject * obj0 = 0 ; | |
9841 | char *kwnames[] = { | |
9842 | (char *) "self",(char *) "m_buttonState", NULL | |
9843 | }; | |
9844 | ||
9845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonState_set",kwnames,&obj0,&arg2)) goto fail; | |
9846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9847 | if (arg1) (arg1)->m_buttonState = arg2; | |
9848 | ||
9849 | Py_INCREF(Py_None); resultobj = Py_None; | |
9850 | return resultobj; | |
9851 | fail: | |
9852 | return NULL; | |
9853 | } | |
9854 | ||
9855 | ||
9856 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9857 | PyObject *resultobj; | |
9858 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9859 | int result; | |
9860 | PyObject * obj0 = 0 ; | |
9861 | char *kwnames[] = { | |
9862 | (char *) "self", NULL | |
9863 | }; | |
9864 | ||
9865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
9866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9867 | result = (int) ((arg1)->m_buttonState); | |
9868 | ||
9869 | resultobj = PyInt_FromLong((long)result); | |
9870 | return resultobj; | |
9871 | fail: | |
9872 | return NULL; | |
9873 | } | |
9874 | ||
9875 | ||
9876 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9877 | PyObject *resultobj; | |
9878 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9879 | int arg2 ; | |
9880 | PyObject * obj0 = 0 ; | |
9881 | char *kwnames[] = { | |
9882 | (char *) "self",(char *) "m_joyStick", NULL | |
9883 | }; | |
9884 | ||
9885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_joyStick_set",kwnames,&obj0,&arg2)) goto fail; | |
9886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9887 | if (arg1) (arg1)->m_joyStick = arg2; | |
9888 | ||
9889 | Py_INCREF(Py_None); resultobj = Py_None; | |
9890 | return resultobj; | |
9891 | fail: | |
9892 | return NULL; | |
9893 | } | |
9894 | ||
9895 | ||
9896 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9897 | PyObject *resultobj; | |
9898 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9899 | int result; | |
9900 | PyObject * obj0 = 0 ; | |
9901 | char *kwnames[] = { | |
9902 | (char *) "self", NULL | |
9903 | }; | |
9904 | ||
9905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
9906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9907 | result = (int) ((arg1)->m_joyStick); | |
9908 | ||
9909 | resultobj = PyInt_FromLong((long)result); | |
9910 | return resultobj; | |
9911 | fail: | |
9912 | return NULL; | |
9913 | } | |
9914 | ||
9915 | ||
9916 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9917 | PyObject *resultobj; | |
9918 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
9919 | int arg2 = (int) 0 ; | |
9920 | int arg3 = (int) wxJOYSTICK1 ; | |
9921 | int arg4 = (int) 0 ; | |
9922 | wxJoystickEvent *result; | |
9923 | char *kwnames[] = { | |
9924 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_JoystickEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
9928 | { | |
9929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9930 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
9931 | ||
9932 | wxPyEndAllowThreads(__tstate); | |
9933 | if (PyErr_Occurred()) SWIG_fail; | |
9934 | } | |
9935 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
9936 | return resultobj; | |
9937 | fail: | |
9938 | return NULL; | |
9939 | } | |
9940 | ||
9941 | ||
9942 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9943 | PyObject *resultobj; | |
9944 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9945 | wxPoint result; | |
9946 | PyObject * obj0 = 0 ; | |
9947 | char *kwnames[] = { | |
9948 | (char *) "self", NULL | |
9949 | }; | |
9950 | ||
9951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",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 = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
9956 | ||
9957 | wxPyEndAllowThreads(__tstate); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | } | |
9960 | { | |
9961 | wxPoint * resultptr; | |
9962 | resultptr = new wxPoint((wxPoint &) result); | |
9963 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9964 | } | |
9965 | return resultobj; | |
9966 | fail: | |
9967 | return NULL; | |
9968 | } | |
9969 | ||
9970 | ||
9971 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9972 | PyObject *resultobj; | |
9973 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9974 | int result; | |
9975 | PyObject * obj0 = 0 ; | |
9976 | char *kwnames[] = { | |
9977 | (char *) "self", NULL | |
9978 | }; | |
9979 | ||
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
9981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9982 | { | |
9983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9984 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
9985 | ||
9986 | wxPyEndAllowThreads(__tstate); | |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
9988 | } | |
9989 | resultobj = PyInt_FromLong((long)result); | |
9990 | return resultobj; | |
9991 | fail: | |
9992 | return NULL; | |
9993 | } | |
9994 | ||
9995 | ||
9996 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9997 | PyObject *resultobj; | |
9998 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9999 | int result; | |
10000 | PyObject * obj0 = 0 ; | |
10001 | char *kwnames[] = { | |
10002 | (char *) "self", NULL | |
10003 | }; | |
10004 | ||
10005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10007 | { | |
10008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10009 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10010 | ||
10011 | wxPyEndAllowThreads(__tstate); | |
10012 | if (PyErr_Occurred()) SWIG_fail; | |
10013 | } | |
10014 | resultobj = PyInt_FromLong((long)result); | |
10015 | return resultobj; | |
10016 | fail: | |
10017 | return NULL; | |
10018 | } | |
10019 | ||
10020 | ||
10021 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10022 | PyObject *resultobj; | |
10023 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10024 | int result; | |
10025 | PyObject * obj0 = 0 ; | |
10026 | char *kwnames[] = { | |
10027 | (char *) "self", NULL | |
10028 | }; | |
10029 | ||
10030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10032 | { | |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10035 | ||
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
10039 | resultobj = PyInt_FromLong((long)result); | |
10040 | return resultobj; | |
10041 | fail: | |
10042 | return NULL; | |
10043 | } | |
10044 | ||
10045 | ||
10046 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10047 | PyObject *resultobj; | |
10048 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10049 | int result; | |
10050 | PyObject * obj0 = 0 ; | |
10051 | char *kwnames[] = { | |
10052 | (char *) "self", NULL | |
10053 | }; | |
10054 | ||
10055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
10056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10057 | { | |
10058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10059 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10060 | ||
10061 | wxPyEndAllowThreads(__tstate); | |
10062 | if (PyErr_Occurred()) SWIG_fail; | |
10063 | } | |
10064 | resultobj = PyInt_FromLong((long)result); | |
10065 | return resultobj; | |
10066 | fail: | |
10067 | return NULL; | |
10068 | } | |
10069 | ||
10070 | ||
10071 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10072 | PyObject *resultobj; | |
10073 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10074 | int arg2 ; | |
10075 | PyObject * obj0 = 0 ; | |
10076 | char *kwnames[] = { | |
10077 | (char *) "self",(char *) "stick", NULL | |
10078 | }; | |
10079 | ||
10080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetJoystick",kwnames,&obj0,&arg2)) goto fail; | |
10081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10082 | { | |
10083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10084 | (arg1)->SetJoystick(arg2); | |
10085 | ||
10086 | wxPyEndAllowThreads(__tstate); | |
10087 | if (PyErr_Occurred()) SWIG_fail; | |
10088 | } | |
10089 | Py_INCREF(Py_None); resultobj = Py_None; | |
10090 | return resultobj; | |
10091 | fail: | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
10096 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10097 | PyObject *resultobj; | |
10098 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10099 | int arg2 ; | |
10100 | PyObject * obj0 = 0 ; | |
10101 | char *kwnames[] = { | |
10102 | (char *) "self",(char *) "state", NULL | |
10103 | }; | |
10104 | ||
10105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonState",kwnames,&obj0,&arg2)) goto fail; | |
10106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10107 | { | |
10108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10109 | (arg1)->SetButtonState(arg2); | |
10110 | ||
10111 | wxPyEndAllowThreads(__tstate); | |
10112 | if (PyErr_Occurred()) SWIG_fail; | |
10113 | } | |
10114 | Py_INCREF(Py_None); resultobj = Py_None; | |
10115 | return resultobj; | |
10116 | fail: | |
10117 | return NULL; | |
10118 | } | |
10119 | ||
10120 | ||
10121 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10122 | PyObject *resultobj; | |
10123 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10124 | int arg2 ; | |
10125 | PyObject * obj0 = 0 ; | |
10126 | char *kwnames[] = { | |
10127 | (char *) "self",(char *) "change", NULL | |
10128 | }; | |
10129 | ||
10130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonChange",kwnames,&obj0,&arg2)) goto fail; | |
10131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10132 | { | |
10133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10134 | (arg1)->SetButtonChange(arg2); | |
10135 | ||
10136 | wxPyEndAllowThreads(__tstate); | |
10137 | if (PyErr_Occurred()) SWIG_fail; | |
10138 | } | |
10139 | Py_INCREF(Py_None); resultobj = Py_None; | |
10140 | return resultobj; | |
10141 | fail: | |
10142 | return NULL; | |
10143 | } | |
10144 | ||
10145 | ||
10146 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10147 | PyObject *resultobj; | |
10148 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10149 | wxPoint *arg2 = 0 ; | |
10150 | wxPoint temp2 ; | |
10151 | PyObject * obj0 = 0 ; | |
10152 | PyObject * obj1 = 0 ; | |
10153 | char *kwnames[] = { | |
10154 | (char *) "self",(char *) "pos", NULL | |
10155 | }; | |
10156 | ||
10157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10159 | { | |
10160 | arg2 = &temp2; | |
10161 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10162 | } | |
10163 | { | |
10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10165 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10166 | ||
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
10170 | Py_INCREF(Py_None); resultobj = Py_None; | |
10171 | return resultobj; | |
10172 | fail: | |
10173 | return NULL; | |
10174 | } | |
10175 | ||
10176 | ||
10177 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10178 | PyObject *resultobj; | |
10179 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10180 | int arg2 ; | |
10181 | PyObject * obj0 = 0 ; | |
10182 | char *kwnames[] = { | |
10183 | (char *) "self",(char *) "zPos", NULL | |
10184 | }; | |
10185 | ||
10186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetZPosition",kwnames,&obj0,&arg2)) goto fail; | |
10187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10188 | { | |
10189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10190 | (arg1)->SetZPosition(arg2); | |
10191 | ||
10192 | wxPyEndAllowThreads(__tstate); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | } | |
10195 | Py_INCREF(Py_None); resultobj = Py_None; | |
10196 | return resultobj; | |
10197 | fail: | |
10198 | return NULL; | |
10199 | } | |
10200 | ||
10201 | ||
10202 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10203 | PyObject *resultobj; | |
10204 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10205 | bool result; | |
10206 | PyObject * obj0 = 0 ; | |
10207 | char *kwnames[] = { | |
10208 | (char *) "self", NULL | |
10209 | }; | |
10210 | ||
10211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10213 | { | |
10214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10215 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10216 | ||
10217 | wxPyEndAllowThreads(__tstate); | |
10218 | if (PyErr_Occurred()) SWIG_fail; | |
10219 | } | |
10220 | resultobj = PyInt_FromLong((long)result); | |
10221 | return resultobj; | |
10222 | fail: | |
10223 | return NULL; | |
10224 | } | |
10225 | ||
10226 | ||
10227 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10228 | PyObject *resultobj; | |
10229 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10230 | bool result; | |
10231 | PyObject * obj0 = 0 ; | |
10232 | char *kwnames[] = { | |
10233 | (char *) "self", NULL | |
10234 | }; | |
10235 | ||
10236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10238 | { | |
10239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10240 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10241 | ||
10242 | wxPyEndAllowThreads(__tstate); | |
10243 | if (PyErr_Occurred()) SWIG_fail; | |
10244 | } | |
10245 | resultobj = PyInt_FromLong((long)result); | |
10246 | return resultobj; | |
10247 | fail: | |
10248 | return NULL; | |
10249 | } | |
10250 | ||
10251 | ||
10252 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10253 | PyObject *resultobj; | |
10254 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10255 | bool result; | |
10256 | PyObject * obj0 = 0 ; | |
10257 | char *kwnames[] = { | |
10258 | (char *) "self", NULL | |
10259 | }; | |
10260 | ||
10261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
10262 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10263 | { | |
10264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10265 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
10266 | ||
10267 | wxPyEndAllowThreads(__tstate); | |
10268 | if (PyErr_Occurred()) SWIG_fail; | |
10269 | } | |
10270 | resultobj = PyInt_FromLong((long)result); | |
10271 | return resultobj; | |
10272 | fail: | |
10273 | return NULL; | |
10274 | } | |
10275 | ||
10276 | ||
10277 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10278 | PyObject *resultobj; | |
10279 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10280 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10281 | bool result; | |
10282 | PyObject * obj0 = 0 ; | |
10283 | char *kwnames[] = { | |
10284 | (char *) "self",(char *) "but", NULL | |
10285 | }; | |
10286 | ||
10287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
10288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10289 | { | |
10290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10291 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
10292 | ||
10293 | wxPyEndAllowThreads(__tstate); | |
10294 | if (PyErr_Occurred()) SWIG_fail; | |
10295 | } | |
10296 | resultobj = PyInt_FromLong((long)result); | |
10297 | return resultobj; | |
10298 | fail: | |
10299 | return NULL; | |
10300 | } | |
10301 | ||
10302 | ||
10303 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10304 | PyObject *resultobj; | |
10305 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10306 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10307 | bool result; | |
10308 | PyObject * obj0 = 0 ; | |
10309 | char *kwnames[] = { | |
10310 | (char *) "self",(char *) "but", NULL | |
10311 | }; | |
10312 | ||
10313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
10314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10315 | { | |
10316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10317 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
10318 | ||
10319 | wxPyEndAllowThreads(__tstate); | |
10320 | if (PyErr_Occurred()) SWIG_fail; | |
10321 | } | |
10322 | resultobj = PyInt_FromLong((long)result); | |
10323 | return resultobj; | |
10324 | fail: | |
10325 | return NULL; | |
10326 | } | |
10327 | ||
10328 | ||
10329 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10330 | PyObject *resultobj; | |
10331 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10332 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10333 | bool result; | |
10334 | PyObject * obj0 = 0 ; | |
10335 | char *kwnames[] = { | |
10336 | (char *) "self",(char *) "but", NULL | |
10337 | }; | |
10338 | ||
10339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
10340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10341 | { | |
10342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10343 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
10344 | ||
10345 | wxPyEndAllowThreads(__tstate); | |
10346 | if (PyErr_Occurred()) SWIG_fail; | |
10347 | } | |
10348 | resultobj = PyInt_FromLong((long)result); | |
10349 | return resultobj; | |
10350 | fail: | |
10351 | return NULL; | |
10352 | } | |
10353 | ||
10354 | ||
10355 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
10356 | PyObject *obj; | |
10357 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10358 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
10359 | Py_INCREF(obj); | |
10360 | return Py_BuildValue((char *)""); | |
10361 | } | |
10362 | static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10363 | PyObject *resultobj; | |
10364 | wxString *arg1 = 0 ; | |
423f194a | 10365 | bool arg2 = (bool) False ; |
d14a1e28 | 10366 | wxWave *result; |
423f194a | 10367 | bool temp1 = False ; |
d14a1e28 RD |
10368 | PyObject * obj0 = 0 ; |
10369 | PyObject * obj1 = 0 ; | |
10370 | char *kwnames[] = { | |
10371 | (char *) "fileName",(char *) "isResource", NULL | |
10372 | }; | |
10373 | ||
10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail; | |
10375 | { | |
10376 | arg1 = wxString_in_helper(obj0); | |
10377 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10378 | temp1 = True; |
d14a1e28 RD |
10379 | } |
10380 | if (obj1) { | |
10381 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
10383 | } | |
10384 | { | |
10385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10386 | result = (wxWave *)new wxWave((wxString const &)*arg1,arg2); | |
10387 | ||
10388 | wxPyEndAllowThreads(__tstate); | |
10389 | if (PyErr_Occurred()) SWIG_fail; | |
10390 | } | |
10391 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10392 | { | |
10393 | if (temp1) | |
10394 | delete arg1; | |
10395 | } | |
10396 | return resultobj; | |
10397 | fail: | |
10398 | { | |
10399 | if (temp1) | |
10400 | delete arg1; | |
10401 | } | |
10402 | return NULL; | |
10403 | } | |
10404 | ||
10405 | ||
10406 | static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10407 | PyObject *resultobj; | |
10408 | wxString *arg1 = 0 ; | |
10409 | wxWave *result; | |
423f194a | 10410 | bool temp1 = False ; |
d14a1e28 RD |
10411 | PyObject * obj0 = 0 ; |
10412 | char *kwnames[] = { | |
10413 | (char *) "data", NULL | |
10414 | }; | |
10415 | ||
10416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail; | |
10417 | { | |
10418 | arg1 = wxString_in_helper(obj0); | |
10419 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10420 | temp1 = True; |
d14a1e28 RD |
10421 | } |
10422 | { | |
10423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10424 | result = (wxWave *)new_wxWave((wxString const &)*arg1); | |
10425 | ||
10426 | wxPyEndAllowThreads(__tstate); | |
10427 | if (PyErr_Occurred()) SWIG_fail; | |
10428 | } | |
10429 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10430 | { | |
10431 | if (temp1) | |
10432 | delete arg1; | |
10433 | } | |
10434 | return resultobj; | |
10435 | fail: | |
10436 | { | |
10437 | if (temp1) | |
10438 | delete arg1; | |
10439 | } | |
10440 | return NULL; | |
10441 | } | |
10442 | ||
10443 | ||
10444 | static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10445 | PyObject *resultobj; | |
10446 | wxWave *arg1 = (wxWave *) 0 ; | |
10447 | PyObject * obj0 = 0 ; | |
10448 | char *kwnames[] = { | |
10449 | (char *) "self", NULL | |
10450 | }; | |
10451 | ||
10452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail; | |
10453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10454 | { | |
10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10456 | delete arg1; | |
10457 | ||
10458 | wxPyEndAllowThreads(__tstate); | |
10459 | if (PyErr_Occurred()) SWIG_fail; | |
10460 | } | |
10461 | Py_INCREF(Py_None); resultobj = Py_None; | |
10462 | return resultobj; | |
10463 | fail: | |
10464 | return NULL; | |
10465 | } | |
10466 | ||
10467 | ||
10468 | static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10469 | PyObject *resultobj; | |
10470 | wxWave *arg1 = (wxWave *) 0 ; | |
10471 | bool result; | |
10472 | PyObject * obj0 = 0 ; | |
10473 | char *kwnames[] = { | |
10474 | (char *) "self", NULL | |
10475 | }; | |
10476 | ||
10477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail; | |
10478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10479 | { | |
10480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10481 | result = (bool)((wxWave const *)arg1)->IsOk(); | |
10482 | ||
10483 | wxPyEndAllowThreads(__tstate); | |
10484 | if (PyErr_Occurred()) SWIG_fail; | |
10485 | } | |
10486 | resultobj = PyInt_FromLong((long)result); | |
10487 | return resultobj; | |
10488 | fail: | |
10489 | return NULL; | |
10490 | } | |
10491 | ||
10492 | ||
10493 | static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10494 | PyObject *resultobj; | |
10495 | wxWave *arg1 = (wxWave *) 0 ; | |
423f194a RD |
10496 | bool arg2 = (bool) True ; |
10497 | bool arg3 = (bool) False ; | |
d14a1e28 RD |
10498 | bool result; |
10499 | PyObject * obj0 = 0 ; | |
10500 | PyObject * obj1 = 0 ; | |
10501 | PyObject * obj2 = 0 ; | |
10502 | char *kwnames[] = { | |
10503 | (char *) "self",(char *) "async",(char *) "looped", NULL | |
10504 | }; | |
10505 | ||
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10508 | if (obj1) { | |
10509 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | } | |
10512 | if (obj2) { | |
10513 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
10515 | } | |
10516 | { | |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 10518 | result = (bool)(arg1)->Play(arg2,arg3); |
d14a1e28 RD |
10519 | |
10520 | wxPyEndAllowThreads(__tstate); | |
10521 | if (PyErr_Occurred()) SWIG_fail; | |
10522 | } | |
10523 | resultobj = PyInt_FromLong((long)result); | |
10524 | return resultobj; | |
10525 | fail: | |
10526 | return NULL; | |
10527 | } | |
10528 | ||
10529 | ||
10530 | static PyObject * Wave_swigregister(PyObject *self, PyObject *args) { | |
10531 | PyObject *obj; | |
10532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10533 | SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj); | |
10534 | Py_INCREF(obj); | |
10535 | return Py_BuildValue((char *)""); | |
10536 | } | |
10537 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10538 | PyObject *resultobj; | |
10539 | wxString *arg1 = 0 ; | |
10540 | wxString *arg2 = 0 ; | |
10541 | wxString *arg3 = 0 ; | |
10542 | wxString *arg4 = 0 ; | |
10543 | wxFileTypeInfo *result; | |
423f194a RD |
10544 | bool temp1 = False ; |
10545 | bool temp2 = False ; | |
10546 | bool temp3 = False ; | |
10547 | bool temp4 = False ; | |
d14a1e28 RD |
10548 | PyObject * obj0 = 0 ; |
10549 | PyObject * obj1 = 0 ; | |
10550 | PyObject * obj2 = 0 ; | |
10551 | PyObject * obj3 = 0 ; | |
10552 | char *kwnames[] = { | |
10553 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
10554 | }; | |
10555 | ||
10556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10557 | { | |
10558 | arg1 = wxString_in_helper(obj0); | |
10559 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10560 | temp1 = True; |
d14a1e28 RD |
10561 | } |
10562 | { | |
10563 | arg2 = wxString_in_helper(obj1); | |
10564 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10565 | temp2 = True; |
d14a1e28 RD |
10566 | } |
10567 | { | |
10568 | arg3 = wxString_in_helper(obj2); | |
10569 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10570 | temp3 = True; |
d14a1e28 RD |
10571 | } |
10572 | { | |
10573 | arg4 = wxString_in_helper(obj3); | |
10574 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10575 | temp4 = True; |
d14a1e28 RD |
10576 | } |
10577 | { | |
10578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10579 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
10580 | ||
10581 | wxPyEndAllowThreads(__tstate); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | } | |
10584 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10585 | { | |
10586 | if (temp1) | |
10587 | delete arg1; | |
10588 | } | |
10589 | { | |
10590 | if (temp2) | |
10591 | delete arg2; | |
10592 | } | |
10593 | { | |
10594 | if (temp3) | |
10595 | delete arg3; | |
10596 | } | |
10597 | { | |
10598 | if (temp4) | |
10599 | delete arg4; | |
10600 | } | |
10601 | return resultobj; | |
10602 | fail: | |
10603 | { | |
10604 | if (temp1) | |
10605 | delete arg1; | |
10606 | } | |
10607 | { | |
10608 | if (temp2) | |
10609 | delete arg2; | |
10610 | } | |
10611 | { | |
10612 | if (temp3) | |
10613 | delete arg3; | |
10614 | } | |
10615 | { | |
10616 | if (temp4) | |
10617 | delete arg4; | |
10618 | } | |
10619 | return NULL; | |
10620 | } | |
10621 | ||
10622 | ||
10623 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10624 | PyObject *resultobj; | |
10625 | wxArrayString *arg1 = 0 ; | |
10626 | wxFileTypeInfo *result; | |
10627 | PyObject * obj0 = 0 ; | |
10628 | char *kwnames[] = { | |
10629 | (char *) "sArray", NULL | |
10630 | }; | |
10631 | ||
10632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
10633 | { | |
10634 | if (! PySequence_Check(obj0)) { | |
10635 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10636 | SWIG_fail; | |
10637 | } | |
10638 | arg1 = new wxArrayString; | |
10639 | int i, len=PySequence_Length(obj0); | |
10640 | for (i=0; i<len; i++) { | |
10641 | PyObject* item = PySequence_GetItem(obj0, i); | |
10642 | #if wxUSE_UNICODE | |
10643 | PyObject* str = PyObject_Unicode(item); | |
10644 | #else | |
10645 | PyObject* str = PyObject_Str(item); | |
10646 | #endif | |
10647 | arg1->Add(Py2wxString(str)); | |
10648 | Py_DECREF(item); | |
10649 | Py_DECREF(str); | |
10650 | } | |
10651 | } | |
10652 | { | |
10653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10654 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
10655 | ||
10656 | wxPyEndAllowThreads(__tstate); | |
10657 | if (PyErr_Occurred()) SWIG_fail; | |
10658 | } | |
10659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10660 | { | |
10661 | if (arg1) delete arg1; | |
10662 | } | |
10663 | return resultobj; | |
10664 | fail: | |
10665 | { | |
10666 | if (arg1) delete arg1; | |
10667 | } | |
10668 | return NULL; | |
10669 | } | |
10670 | ||
10671 | ||
10672 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10673 | PyObject *resultobj; | |
10674 | wxFileTypeInfo *result; | |
10675 | char *kwnames[] = { | |
10676 | NULL | |
10677 | }; | |
10678 | ||
10679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
10680 | { | |
10681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10682 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
10683 | ||
10684 | wxPyEndAllowThreads(__tstate); | |
10685 | if (PyErr_Occurred()) SWIG_fail; | |
10686 | } | |
10687 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10688 | return resultobj; | |
10689 | fail: | |
10690 | return NULL; | |
10691 | } | |
10692 | ||
10693 | ||
10694 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10695 | PyObject *resultobj; | |
10696 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10697 | bool result; | |
10698 | PyObject * obj0 = 0 ; | |
10699 | char *kwnames[] = { | |
10700 | (char *) "self", NULL | |
10701 | }; | |
10702 | ||
10703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
10704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10705 | { | |
10706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10707 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
10708 | ||
10709 | wxPyEndAllowThreads(__tstate); | |
10710 | if (PyErr_Occurred()) SWIG_fail; | |
10711 | } | |
10712 | resultobj = PyInt_FromLong((long)result); | |
10713 | return resultobj; | |
10714 | fail: | |
10715 | return NULL; | |
10716 | } | |
10717 | ||
10718 | ||
10719 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10720 | PyObject *resultobj; | |
10721 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10722 | wxString *arg2 = 0 ; | |
10723 | int arg3 = (int) 0 ; | |
423f194a | 10724 | bool temp2 = False ; |
d14a1e28 RD |
10725 | PyObject * obj0 = 0 ; |
10726 | PyObject * obj1 = 0 ; | |
10727 | char *kwnames[] = { | |
10728 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
10729 | }; | |
10730 | ||
10731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10733 | { | |
10734 | arg2 = wxString_in_helper(obj1); | |
10735 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10736 | temp2 = True; |
d14a1e28 RD |
10737 | } |
10738 | { | |
10739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10740 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
10741 | ||
10742 | wxPyEndAllowThreads(__tstate); | |
10743 | if (PyErr_Occurred()) SWIG_fail; | |
10744 | } | |
10745 | Py_INCREF(Py_None); resultobj = Py_None; | |
10746 | { | |
10747 | if (temp2) | |
10748 | delete arg2; | |
10749 | } | |
10750 | return resultobj; | |
10751 | fail: | |
10752 | { | |
10753 | if (temp2) | |
10754 | delete arg2; | |
10755 | } | |
10756 | return NULL; | |
10757 | } | |
10758 | ||
10759 | ||
10760 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10761 | PyObject *resultobj; | |
10762 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10763 | wxString *arg2 = 0 ; | |
423f194a | 10764 | bool temp2 = False ; |
d14a1e28 RD |
10765 | PyObject * obj0 = 0 ; |
10766 | PyObject * obj1 = 0 ; | |
10767 | char *kwnames[] = { | |
10768 | (char *) "self",(char *) "shortDesc", NULL | |
10769 | }; | |
10770 | ||
10771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
10772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10773 | { | |
10774 | arg2 = wxString_in_helper(obj1); | |
10775 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10776 | temp2 = True; |
d14a1e28 RD |
10777 | } |
10778 | { | |
10779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10780 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
10781 | ||
10782 | wxPyEndAllowThreads(__tstate); | |
10783 | if (PyErr_Occurred()) SWIG_fail; | |
10784 | } | |
10785 | Py_INCREF(Py_None); resultobj = Py_None; | |
10786 | { | |
10787 | if (temp2) | |
10788 | delete arg2; | |
10789 | } | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | { | |
10793 | if (temp2) | |
10794 | delete arg2; | |
10795 | } | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
10800 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10801 | PyObject *resultobj; | |
10802 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10803 | wxString *result; | |
10804 | PyObject * obj0 = 0 ; | |
10805 | char *kwnames[] = { | |
10806 | (char *) "self", NULL | |
10807 | }; | |
10808 | ||
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
10810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10811 | { | |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | { | |
10814 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
10815 | result = (wxString *) &_result_ref; | |
10816 | } | |
10817 | ||
10818 | wxPyEndAllowThreads(__tstate); | |
10819 | if (PyErr_Occurred()) SWIG_fail; | |
10820 | } | |
f0983263 RD |
10821 | { |
10822 | #if wxUSE_UNICODE | |
10823 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10824 | #else | |
10825 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10826 | #endif | |
10827 | } | |
d14a1e28 RD |
10828 | return resultobj; |
10829 | fail: | |
10830 | return NULL; | |
10831 | } | |
10832 | ||
10833 | ||
10834 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10835 | PyObject *resultobj; | |
10836 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10837 | wxString *result; | |
10838 | PyObject * obj0 = 0 ; | |
10839 | char *kwnames[] = { | |
10840 | (char *) "self", NULL | |
10841 | }; | |
10842 | ||
10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
10844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10845 | { | |
10846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10847 | { | |
10848 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
10849 | result = (wxString *) &_result_ref; | |
10850 | } | |
10851 | ||
10852 | wxPyEndAllowThreads(__tstate); | |
10853 | if (PyErr_Occurred()) SWIG_fail; | |
10854 | } | |
f0983263 RD |
10855 | { |
10856 | #if wxUSE_UNICODE | |
10857 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10858 | #else | |
10859 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10860 | #endif | |
10861 | } | |
d14a1e28 RD |
10862 | return resultobj; |
10863 | fail: | |
10864 | return NULL; | |
10865 | } | |
10866 | ||
10867 | ||
10868 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10869 | PyObject *resultobj; | |
10870 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10871 | wxString *result; | |
10872 | PyObject * obj0 = 0 ; | |
10873 | char *kwnames[] = { | |
10874 | (char *) "self", NULL | |
10875 | }; | |
10876 | ||
10877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
10878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10879 | { | |
10880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10881 | { | |
10882 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
10883 | result = (wxString *) &_result_ref; | |
10884 | } | |
10885 | ||
10886 | wxPyEndAllowThreads(__tstate); | |
10887 | if (PyErr_Occurred()) SWIG_fail; | |
10888 | } | |
f0983263 RD |
10889 | { |
10890 | #if wxUSE_UNICODE | |
10891 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10892 | #else | |
10893 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10894 | #endif | |
10895 | } | |
d14a1e28 RD |
10896 | return resultobj; |
10897 | fail: | |
10898 | return NULL; | |
10899 | } | |
10900 | ||
10901 | ||
10902 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10903 | PyObject *resultobj; | |
10904 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10905 | wxString *result; | |
10906 | PyObject * obj0 = 0 ; | |
10907 | char *kwnames[] = { | |
10908 | (char *) "self", NULL | |
10909 | }; | |
10910 | ||
10911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
10912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10913 | { | |
10914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10915 | { | |
10916 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
10917 | result = (wxString *) &_result_ref; | |
10918 | } | |
10919 | ||
10920 | wxPyEndAllowThreads(__tstate); | |
10921 | if (PyErr_Occurred()) SWIG_fail; | |
10922 | } | |
f0983263 RD |
10923 | { |
10924 | #if wxUSE_UNICODE | |
10925 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10926 | #else | |
10927 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10928 | #endif | |
10929 | } | |
d14a1e28 RD |
10930 | return resultobj; |
10931 | fail: | |
10932 | return NULL; | |
10933 | } | |
10934 | ||
10935 | ||
10936 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10937 | PyObject *resultobj; | |
10938 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10939 | wxString *result; | |
10940 | PyObject * obj0 = 0 ; | |
10941 | char *kwnames[] = { | |
10942 | (char *) "self", NULL | |
10943 | }; | |
10944 | ||
10945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
10946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10947 | { | |
10948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10949 | { | |
10950 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
10951 | result = (wxString *) &_result_ref; | |
10952 | } | |
10953 | ||
10954 | wxPyEndAllowThreads(__tstate); | |
10955 | if (PyErr_Occurred()) SWIG_fail; | |
10956 | } | |
f0983263 RD |
10957 | { |
10958 | #if wxUSE_UNICODE | |
10959 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10960 | #else | |
10961 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10962 | #endif | |
10963 | } | |
d14a1e28 RD |
10964 | return resultobj; |
10965 | fail: | |
10966 | return NULL; | |
10967 | } | |
10968 | ||
10969 | ||
10970 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10971 | PyObject *resultobj; | |
10972 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10973 | wxArrayString *result; | |
10974 | PyObject * obj0 = 0 ; | |
10975 | char *kwnames[] = { | |
10976 | (char *) "self", NULL | |
10977 | }; | |
10978 | ||
10979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
10980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10981 | { | |
10982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10983 | { | |
10984 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
10985 | result = (wxArrayString *) &_result_ref; | |
10986 | } | |
10987 | ||
10988 | wxPyEndAllowThreads(__tstate); | |
10989 | if (PyErr_Occurred()) SWIG_fail; | |
10990 | } | |
10991 | { | |
10992 | resultobj = wxArrayString2PyList_helper(*result); | |
10993 | } | |
10994 | return resultobj; | |
10995 | fail: | |
10996 | return NULL; | |
10997 | } | |
10998 | ||
10999 | ||
11000 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11001 | PyObject *resultobj; | |
11002 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11003 | int result; | |
11004 | PyObject * obj0 = 0 ; | |
11005 | char *kwnames[] = { | |
11006 | (char *) "self", NULL | |
11007 | }; | |
11008 | ||
11009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
11010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11011 | { | |
11012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11013 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
11014 | ||
11015 | wxPyEndAllowThreads(__tstate); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
11017 | } | |
11018 | resultobj = PyInt_FromLong((long)result); | |
11019 | return resultobj; | |
11020 | fail: | |
11021 | return NULL; | |
11022 | } | |
11023 | ||
11024 | ||
11025 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11026 | PyObject *resultobj; | |
11027 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11028 | wxString *result; | |
11029 | PyObject * obj0 = 0 ; | |
11030 | char *kwnames[] = { | |
11031 | (char *) "self", NULL | |
11032 | }; | |
11033 | ||
11034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
11035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11036 | { | |
11037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11038 | { | |
11039 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
11040 | result = (wxString *) &_result_ref; | |
11041 | } | |
11042 | ||
11043 | wxPyEndAllowThreads(__tstate); | |
11044 | if (PyErr_Occurred()) SWIG_fail; | |
11045 | } | |
f0983263 RD |
11046 | { |
11047 | #if wxUSE_UNICODE | |
11048 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11049 | #else | |
11050 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11051 | #endif | |
11052 | } | |
d14a1e28 RD |
11053 | return resultobj; |
11054 | fail: | |
11055 | return NULL; | |
11056 | } | |
11057 | ||
11058 | ||
11059 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11060 | PyObject *resultobj; | |
11061 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11062 | int result; | |
11063 | PyObject * obj0 = 0 ; | |
11064 | char *kwnames[] = { | |
11065 | (char *) "self", NULL | |
11066 | }; | |
11067 | ||
11068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
11069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11070 | { | |
11071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11072 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
11073 | ||
11074 | wxPyEndAllowThreads(__tstate); | |
11075 | if (PyErr_Occurred()) SWIG_fail; | |
11076 | } | |
11077 | resultobj = PyInt_FromLong((long)result); | |
11078 | return resultobj; | |
11079 | fail: | |
11080 | return NULL; | |
11081 | } | |
11082 | ||
11083 | ||
11084 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
11085 | PyObject *obj; | |
11086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11087 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
11088 | Py_INCREF(obj); | |
11089 | return Py_BuildValue((char *)""); | |
11090 | } | |
11091 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11092 | PyObject *resultobj; | |
11093 | wxFileTypeInfo *arg1 = 0 ; | |
11094 | wxFileType *result; | |
11095 | PyObject * obj0 = 0 ; | |
11096 | char *kwnames[] = { | |
11097 | (char *) "ftInfo", NULL | |
11098 | }; | |
11099 | ||
11100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
11101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11102 | if (arg1 == NULL) { | |
11103 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11104 | } | |
11105 | { | |
11106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11107 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
11108 | ||
11109 | wxPyEndAllowThreads(__tstate); | |
11110 | if (PyErr_Occurred()) SWIG_fail; | |
11111 | } | |
11112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11113 | return resultobj; | |
11114 | fail: | |
11115 | return NULL; | |
11116 | } | |
11117 | ||
11118 | ||
11119 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11120 | PyObject *resultobj; | |
11121 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11122 | PyObject * obj0 = 0 ; | |
11123 | char *kwnames[] = { | |
11124 | (char *) "self", NULL | |
11125 | }; | |
11126 | ||
11127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
11128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11129 | { | |
11130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11131 | delete arg1; | |
11132 | ||
11133 | wxPyEndAllowThreads(__tstate); | |
11134 | if (PyErr_Occurred()) SWIG_fail; | |
11135 | } | |
11136 | Py_INCREF(Py_None); resultobj = Py_None; | |
11137 | return resultobj; | |
11138 | fail: | |
11139 | return NULL; | |
11140 | } | |
11141 | ||
11142 | ||
11143 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11144 | PyObject *resultobj; | |
11145 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11146 | PyObject *result; | |
11147 | PyObject * obj0 = 0 ; | |
11148 | char *kwnames[] = { | |
11149 | (char *) "self", NULL | |
11150 | }; | |
11151 | ||
11152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
11153 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11154 | { | |
11155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11156 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
11157 | ||
11158 | wxPyEndAllowThreads(__tstate); | |
11159 | if (PyErr_Occurred()) SWIG_fail; | |
11160 | } | |
11161 | resultobj = result; | |
11162 | return resultobj; | |
11163 | fail: | |
11164 | return NULL; | |
11165 | } | |
11166 | ||
11167 | ||
11168 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11169 | PyObject *resultobj; | |
11170 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11171 | PyObject *result; | |
11172 | PyObject * obj0 = 0 ; | |
11173 | char *kwnames[] = { | |
11174 | (char *) "self", NULL | |
11175 | }; | |
11176 | ||
11177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
11178 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11179 | { | |
11180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11181 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
11182 | ||
11183 | wxPyEndAllowThreads(__tstate); | |
11184 | if (PyErr_Occurred()) SWIG_fail; | |
11185 | } | |
11186 | resultobj = result; | |
11187 | return resultobj; | |
11188 | fail: | |
11189 | return NULL; | |
11190 | } | |
11191 | ||
11192 | ||
11193 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11194 | PyObject *resultobj; | |
11195 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11196 | PyObject *result; | |
11197 | PyObject * obj0 = 0 ; | |
11198 | char *kwnames[] = { | |
11199 | (char *) "self", NULL | |
11200 | }; | |
11201 | ||
11202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
11203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11204 | { | |
11205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11206 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
11207 | ||
11208 | wxPyEndAllowThreads(__tstate); | |
11209 | if (PyErr_Occurred()) SWIG_fail; | |
11210 | } | |
11211 | resultobj = result; | |
11212 | return resultobj; | |
11213 | fail: | |
11214 | return NULL; | |
11215 | } | |
11216 | ||
11217 | ||
11218 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11219 | PyObject *resultobj; | |
11220 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11221 | wxIcon *result; | |
11222 | PyObject * obj0 = 0 ; | |
11223 | char *kwnames[] = { | |
11224 | (char *) "self", NULL | |
11225 | }; | |
11226 | ||
11227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
11228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11229 | { | |
11230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11231 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
11232 | ||
11233 | wxPyEndAllowThreads(__tstate); | |
11234 | if (PyErr_Occurred()) SWIG_fail; | |
11235 | } | |
11236 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
11237 | return resultobj; | |
11238 | fail: | |
11239 | return NULL; | |
11240 | } | |
11241 | ||
11242 | ||
11243 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11244 | PyObject *resultobj; | |
11245 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11246 | PyObject *result; | |
11247 | PyObject * obj0 = 0 ; | |
11248 | char *kwnames[] = { | |
11249 | (char *) "self", NULL | |
11250 | }; | |
11251 | ||
11252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
11253 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11254 | { | |
11255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11256 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
11257 | ||
11258 | wxPyEndAllowThreads(__tstate); | |
11259 | if (PyErr_Occurred()) SWIG_fail; | |
11260 | } | |
11261 | resultobj = result; | |
11262 | return resultobj; | |
11263 | fail: | |
11264 | return NULL; | |
11265 | } | |
11266 | ||
11267 | ||
11268 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11269 | PyObject *resultobj; | |
11270 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11271 | PyObject *result; | |
11272 | PyObject * obj0 = 0 ; | |
11273 | char *kwnames[] = { | |
11274 | (char *) "self", NULL | |
11275 | }; | |
11276 | ||
11277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
11278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11279 | { | |
11280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11281 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
11282 | ||
11283 | wxPyEndAllowThreads(__tstate); | |
11284 | if (PyErr_Occurred()) SWIG_fail; | |
11285 | } | |
11286 | resultobj = result; | |
11287 | return resultobj; | |
11288 | fail: | |
11289 | return NULL; | |
11290 | } | |
11291 | ||
11292 | ||
11293 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11294 | PyObject *resultobj; | |
11295 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11296 | wxString *arg2 = 0 ; | |
11297 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11298 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11299 | PyObject *result; | |
423f194a RD |
11300 | bool temp2 = False ; |
11301 | bool temp3 = False ; | |
d14a1e28 RD |
11302 | PyObject * obj0 = 0 ; |
11303 | PyObject * obj1 = 0 ; | |
11304 | PyObject * obj2 = 0 ; | |
11305 | char *kwnames[] = { | |
11306 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11307 | }; | |
11308 | ||
11309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11311 | { | |
11312 | arg2 = wxString_in_helper(obj1); | |
11313 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11314 | temp2 = True; |
d14a1e28 RD |
11315 | } |
11316 | if (obj2) { | |
11317 | { | |
11318 | arg3 = wxString_in_helper(obj2); | |
11319 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11320 | temp3 = True; |
d14a1e28 RD |
11321 | } |
11322 | } | |
11323 | { | |
11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11325 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11326 | ||
11327 | wxPyEndAllowThreads(__tstate); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | } | |
11330 | resultobj = result; | |
11331 | { | |
11332 | if (temp2) | |
11333 | delete arg2; | |
11334 | } | |
11335 | { | |
11336 | if (temp3) | |
11337 | delete arg3; | |
11338 | } | |
11339 | return resultobj; | |
11340 | fail: | |
11341 | { | |
11342 | if (temp2) | |
11343 | delete arg2; | |
11344 | } | |
11345 | { | |
11346 | if (temp3) | |
11347 | delete arg3; | |
11348 | } | |
11349 | return NULL; | |
11350 | } | |
11351 | ||
11352 | ||
11353 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11354 | PyObject *resultobj; | |
11355 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11356 | wxString *arg2 = 0 ; | |
11357 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11358 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11359 | PyObject *result; | |
423f194a RD |
11360 | bool temp2 = False ; |
11361 | bool temp3 = False ; | |
d14a1e28 RD |
11362 | PyObject * obj0 = 0 ; |
11363 | PyObject * obj1 = 0 ; | |
11364 | PyObject * obj2 = 0 ; | |
11365 | char *kwnames[] = { | |
11366 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11367 | }; | |
11368 | ||
11369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11371 | { | |
11372 | arg2 = wxString_in_helper(obj1); | |
11373 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11374 | temp2 = True; |
d14a1e28 RD |
11375 | } |
11376 | if (obj2) { | |
11377 | { | |
11378 | arg3 = wxString_in_helper(obj2); | |
11379 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11380 | temp3 = True; |
d14a1e28 RD |
11381 | } |
11382 | } | |
11383 | { | |
11384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11385 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11386 | ||
11387 | wxPyEndAllowThreads(__tstate); | |
11388 | if (PyErr_Occurred()) SWIG_fail; | |
11389 | } | |
11390 | resultobj = result; | |
11391 | { | |
11392 | if (temp2) | |
11393 | delete arg2; | |
11394 | } | |
11395 | { | |
11396 | if (temp3) | |
11397 | delete arg3; | |
11398 | } | |
11399 | return resultobj; | |
11400 | fail: | |
11401 | { | |
11402 | if (temp2) | |
11403 | delete arg2; | |
11404 | } | |
11405 | { | |
11406 | if (temp3) | |
11407 | delete arg3; | |
11408 | } | |
11409 | return NULL; | |
11410 | } | |
11411 | ||
11412 | ||
11413 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11414 | PyObject *resultobj; | |
11415 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11416 | wxString *arg2 = 0 ; | |
11417 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11418 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11419 | PyObject *result; | |
423f194a RD |
11420 | bool temp2 = False ; |
11421 | bool temp3 = False ; | |
d14a1e28 RD |
11422 | PyObject * obj0 = 0 ; |
11423 | PyObject * obj1 = 0 ; | |
11424 | PyObject * obj2 = 0 ; | |
11425 | char *kwnames[] = { | |
11426 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11427 | }; | |
11428 | ||
11429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11431 | { | |
11432 | arg2 = wxString_in_helper(obj1); | |
11433 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11434 | temp2 = True; |
d14a1e28 RD |
11435 | } |
11436 | if (obj2) { | |
11437 | { | |
11438 | arg3 = wxString_in_helper(obj2); | |
11439 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11440 | temp3 = True; |
d14a1e28 RD |
11441 | } |
11442 | } | |
11443 | { | |
11444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11445 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11446 | ||
11447 | wxPyEndAllowThreads(__tstate); | |
11448 | if (PyErr_Occurred()) SWIG_fail; | |
11449 | } | |
11450 | resultobj = result; | |
11451 | { | |
11452 | if (temp2) | |
11453 | delete arg2; | |
11454 | } | |
11455 | { | |
11456 | if (temp3) | |
11457 | delete arg3; | |
11458 | } | |
11459 | return resultobj; | |
11460 | fail: | |
11461 | { | |
11462 | if (temp2) | |
11463 | delete arg2; | |
11464 | } | |
11465 | { | |
11466 | if (temp3) | |
11467 | delete arg3; | |
11468 | } | |
11469 | return NULL; | |
11470 | } | |
11471 | ||
11472 | ||
11473 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11474 | PyObject *resultobj; | |
11475 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11476 | wxString *arg2 = 0 ; | |
11477 | wxString *arg3 = 0 ; | |
423f194a | 11478 | bool arg4 = (bool) True ; |
d14a1e28 | 11479 | bool result; |
423f194a RD |
11480 | bool temp2 = False ; |
11481 | bool temp3 = False ; | |
d14a1e28 RD |
11482 | PyObject * obj0 = 0 ; |
11483 | PyObject * obj1 = 0 ; | |
11484 | PyObject * obj2 = 0 ; | |
11485 | PyObject * obj3 = 0 ; | |
11486 | char *kwnames[] = { | |
11487 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
11488 | }; | |
11489 | ||
11490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11492 | { | |
11493 | arg2 = wxString_in_helper(obj1); | |
11494 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11495 | temp2 = True; |
d14a1e28 RD |
11496 | } |
11497 | { | |
11498 | arg3 = wxString_in_helper(obj2); | |
11499 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11500 | temp3 = True; |
d14a1e28 RD |
11501 | } |
11502 | if (obj3) { | |
11503 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11504 | if (PyErr_Occurred()) SWIG_fail; | |
11505 | } | |
11506 | { | |
11507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11508 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11509 | ||
11510 | wxPyEndAllowThreads(__tstate); | |
11511 | if (PyErr_Occurred()) SWIG_fail; | |
11512 | } | |
11513 | resultobj = PyInt_FromLong((long)result); | |
11514 | { | |
11515 | if (temp2) | |
11516 | delete arg2; | |
11517 | } | |
11518 | { | |
11519 | if (temp3) | |
11520 | delete arg3; | |
11521 | } | |
11522 | return resultobj; | |
11523 | fail: | |
11524 | { | |
11525 | if (temp2) | |
11526 | delete arg2; | |
11527 | } | |
11528 | { | |
11529 | if (temp3) | |
11530 | delete arg3; | |
11531 | } | |
11532 | return NULL; | |
11533 | } | |
11534 | ||
11535 | ||
11536 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11537 | PyObject *resultobj; | |
11538 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11539 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
11540 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11541 | int arg3 = (int) 0 ; | |
11542 | bool result; | |
423f194a | 11543 | bool temp2 = False ; |
d14a1e28 RD |
11544 | PyObject * obj0 = 0 ; |
11545 | PyObject * obj1 = 0 ; | |
11546 | char *kwnames[] = { | |
11547 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11552 | if (obj1) { | |
11553 | { | |
11554 | arg2 = wxString_in_helper(obj1); | |
11555 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11556 | temp2 = True; |
d14a1e28 RD |
11557 | } |
11558 | } | |
11559 | { | |
11560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11561 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
11562 | ||
11563 | wxPyEndAllowThreads(__tstate); | |
11564 | if (PyErr_Occurred()) SWIG_fail; | |
11565 | } | |
11566 | resultobj = PyInt_FromLong((long)result); | |
11567 | { | |
11568 | if (temp2) | |
11569 | delete arg2; | |
11570 | } | |
11571 | return resultobj; | |
11572 | fail: | |
11573 | { | |
11574 | if (temp2) | |
11575 | delete arg2; | |
11576 | } | |
11577 | return NULL; | |
11578 | } | |
11579 | ||
11580 | ||
11581 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11582 | PyObject *resultobj; | |
11583 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11584 | bool result; | |
11585 | PyObject * obj0 = 0 ; | |
11586 | char *kwnames[] = { | |
11587 | (char *) "self", NULL | |
11588 | }; | |
11589 | ||
11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
11591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11592 | { | |
11593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11594 | result = (bool)(arg1)->Unassociate(); | |
11595 | ||
11596 | wxPyEndAllowThreads(__tstate); | |
11597 | if (PyErr_Occurred()) SWIG_fail; | |
11598 | } | |
11599 | resultobj = PyInt_FromLong((long)result); | |
11600 | return resultobj; | |
11601 | fail: | |
11602 | return NULL; | |
11603 | } | |
11604 | ||
11605 | ||
11606 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11607 | PyObject *resultobj; | |
11608 | wxString *arg1 = 0 ; | |
11609 | wxString *arg2 = 0 ; | |
11610 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11611 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11612 | wxString result; | |
423f194a RD |
11613 | bool temp1 = False ; |
11614 | bool temp2 = False ; | |
11615 | bool temp3 = False ; | |
d14a1e28 RD |
11616 | PyObject * obj0 = 0 ; |
11617 | PyObject * obj1 = 0 ; | |
11618 | PyObject * obj2 = 0 ; | |
11619 | char *kwnames[] = { | |
11620 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
11621 | }; | |
11622 | ||
11623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11624 | { | |
11625 | arg1 = wxString_in_helper(obj0); | |
11626 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11627 | temp1 = True; |
d14a1e28 RD |
11628 | } |
11629 | { | |
11630 | arg2 = wxString_in_helper(obj1); | |
11631 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11632 | temp2 = True; |
d14a1e28 RD |
11633 | } |
11634 | if (obj2) { | |
11635 | { | |
11636 | arg3 = wxString_in_helper(obj2); | |
11637 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11638 | temp3 = True; |
d14a1e28 RD |
11639 | } |
11640 | } | |
11641 | { | |
11642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11643 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11644 | ||
11645 | wxPyEndAllowThreads(__tstate); | |
11646 | if (PyErr_Occurred()) SWIG_fail; | |
11647 | } | |
11648 | { | |
11649 | #if wxUSE_UNICODE | |
11650 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11651 | #else | |
11652 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11653 | #endif | |
11654 | } | |
11655 | { | |
11656 | if (temp1) | |
11657 | delete arg1; | |
11658 | } | |
11659 | { | |
11660 | if (temp2) | |
11661 | delete arg2; | |
11662 | } | |
11663 | { | |
11664 | if (temp3) | |
11665 | delete arg3; | |
11666 | } | |
11667 | return resultobj; | |
11668 | fail: | |
11669 | { | |
11670 | if (temp1) | |
11671 | delete arg1; | |
11672 | } | |
11673 | { | |
11674 | if (temp2) | |
11675 | delete arg2; | |
11676 | } | |
11677 | { | |
11678 | if (temp3) | |
11679 | delete arg3; | |
11680 | } | |
11681 | return NULL; | |
11682 | } | |
11683 | ||
11684 | ||
11685 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
11686 | PyObject *obj; | |
11687 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11688 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
11689 | Py_INCREF(obj); | |
11690 | return Py_BuildValue((char *)""); | |
11691 | } | |
11692 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
11693 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
11694 | return 1; | |
11695 | } | |
11696 | ||
11697 | ||
11698 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
11699 | PyObject *pyobj; | |
11700 | ||
11701 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
11702 | return pyobj; | |
11703 | } | |
11704 | ||
11705 | ||
11706 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11707 | PyObject *resultobj; | |
11708 | wxString *arg1 = 0 ; | |
11709 | wxString *arg2 = 0 ; | |
11710 | bool result; | |
423f194a RD |
11711 | bool temp1 = False ; |
11712 | bool temp2 = False ; | |
d14a1e28 RD |
11713 | PyObject * obj0 = 0 ; |
11714 | PyObject * obj1 = 0 ; | |
11715 | char *kwnames[] = { | |
11716 | (char *) "mimeType",(char *) "wildcard", NULL | |
11717 | }; | |
11718 | ||
11719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
11720 | { | |
11721 | arg1 = wxString_in_helper(obj0); | |
11722 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11723 | temp1 = True; |
d14a1e28 RD |
11724 | } |
11725 | { | |
11726 | arg2 = wxString_in_helper(obj1); | |
11727 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11728 | temp2 = True; |
d14a1e28 RD |
11729 | } |
11730 | { | |
11731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11732 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
11733 | ||
11734 | wxPyEndAllowThreads(__tstate); | |
11735 | if (PyErr_Occurred()) SWIG_fail; | |
11736 | } | |
11737 | resultobj = PyInt_FromLong((long)result); | |
11738 | { | |
11739 | if (temp1) | |
11740 | delete arg1; | |
11741 | } | |
11742 | { | |
11743 | if (temp2) | |
11744 | delete arg2; | |
11745 | } | |
11746 | return resultobj; | |
11747 | fail: | |
11748 | { | |
11749 | if (temp1) | |
11750 | delete arg1; | |
11751 | } | |
11752 | { | |
11753 | if (temp2) | |
11754 | delete arg2; | |
11755 | } | |
11756 | return NULL; | |
11757 | } | |
11758 | ||
11759 | ||
11760 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11761 | PyObject *resultobj; | |
11762 | wxMimeTypesManager *result; | |
11763 | char *kwnames[] = { | |
11764 | NULL | |
11765 | }; | |
11766 | ||
11767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
11768 | { | |
11769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11770 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
11771 | ||
11772 | wxPyEndAllowThreads(__tstate); | |
11773 | if (PyErr_Occurred()) SWIG_fail; | |
11774 | } | |
11775 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
11776 | return resultobj; | |
11777 | fail: | |
11778 | return NULL; | |
11779 | } | |
11780 | ||
11781 | ||
11782 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11783 | PyObject *resultobj; | |
11784 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11785 | int arg2 = (int) wxMAILCAP_ALL ; | |
11786 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11787 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 11788 | bool temp3 = False ; |
d14a1e28 RD |
11789 | PyObject * obj0 = 0 ; |
11790 | PyObject * obj2 = 0 ; | |
11791 | char *kwnames[] = { | |
11792 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
11793 | }; | |
11794 | ||
11795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:MimeTypesManager_Initialize",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
11796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11797 | if (obj2) { | |
11798 | { | |
11799 | arg3 = wxString_in_helper(obj2); | |
11800 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11801 | temp3 = True; |
d14a1e28 RD |
11802 | } |
11803 | } | |
11804 | { | |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
11811 | Py_INCREF(Py_None); resultobj = Py_None; | |
11812 | { | |
11813 | if (temp3) | |
11814 | delete arg3; | |
11815 | } | |
11816 | return resultobj; | |
11817 | fail: | |
11818 | { | |
11819 | if (temp3) | |
11820 | delete arg3; | |
11821 | } | |
11822 | return NULL; | |
11823 | } | |
11824 | ||
11825 | ||
11826 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11827 | PyObject *resultobj; | |
11828 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11829 | PyObject * obj0 = 0 ; | |
11830 | char *kwnames[] = { | |
11831 | (char *) "self", NULL | |
11832 | }; | |
11833 | ||
11834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
11835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11836 | { | |
11837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11838 | (arg1)->ClearData(); | |
11839 | ||
11840 | wxPyEndAllowThreads(__tstate); | |
11841 | if (PyErr_Occurred()) SWIG_fail; | |
11842 | } | |
11843 | Py_INCREF(Py_None); resultobj = Py_None; | |
11844 | return resultobj; | |
11845 | fail: | |
11846 | return NULL; | |
11847 | } | |
11848 | ||
11849 | ||
11850 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11851 | PyObject *resultobj; | |
11852 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11853 | wxString *arg2 = 0 ; | |
11854 | wxFileType *result; | |
423f194a | 11855 | bool temp2 = False ; |
d14a1e28 RD |
11856 | PyObject * obj0 = 0 ; |
11857 | PyObject * obj1 = 0 ; | |
11858 | char *kwnames[] = { | |
11859 | (char *) "self",(char *) "ext", NULL | |
11860 | }; | |
11861 | ||
11862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
11863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11864 | { | |
11865 | arg2 = wxString_in_helper(obj1); | |
11866 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11867 | temp2 = True; |
d14a1e28 RD |
11868 | } |
11869 | { | |
11870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11871 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
11872 | ||
11873 | wxPyEndAllowThreads(__tstate); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
11876 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11877 | { | |
11878 | if (temp2) | |
11879 | delete arg2; | |
11880 | } | |
11881 | return resultobj; | |
11882 | fail: | |
11883 | { | |
11884 | if (temp2) | |
11885 | delete arg2; | |
11886 | } | |
11887 | return NULL; | |
11888 | } | |
11889 | ||
11890 | ||
11891 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11892 | PyObject *resultobj; | |
11893 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11894 | wxString *arg2 = 0 ; | |
11895 | wxFileType *result; | |
423f194a | 11896 | bool temp2 = False ; |
d14a1e28 RD |
11897 | PyObject * obj0 = 0 ; |
11898 | PyObject * obj1 = 0 ; | |
11899 | char *kwnames[] = { | |
11900 | (char *) "self",(char *) "mimeType", NULL | |
11901 | }; | |
11902 | ||
11903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
11904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11905 | { | |
11906 | arg2 = wxString_in_helper(obj1); | |
11907 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11908 | temp2 = True; |
d14a1e28 RD |
11909 | } |
11910 | { | |
11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11912 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
11917 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11918 | { | |
11919 | if (temp2) | |
11920 | delete arg2; | |
11921 | } | |
11922 | return resultobj; | |
11923 | fail: | |
11924 | { | |
11925 | if (temp2) | |
11926 | delete arg2; | |
11927 | } | |
11928 | return NULL; | |
11929 | } | |
11930 | ||
11931 | ||
11932 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11933 | PyObject *resultobj; | |
11934 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11935 | wxString *arg2 = 0 ; | |
423f194a | 11936 | bool arg3 = (bool) False ; |
d14a1e28 | 11937 | bool result; |
423f194a | 11938 | bool temp2 = False ; |
d14a1e28 RD |
11939 | PyObject * obj0 = 0 ; |
11940 | PyObject * obj1 = 0 ; | |
11941 | PyObject * obj2 = 0 ; | |
11942 | char *kwnames[] = { | |
11943 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
11944 | }; | |
11945 | ||
11946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11948 | { | |
11949 | arg2 = wxString_in_helper(obj1); | |
11950 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11951 | temp2 = True; |
d14a1e28 RD |
11952 | } |
11953 | if (obj2) { | |
11954 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | { | |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
11964 | resultobj = PyInt_FromLong((long)result); | |
11965 | { | |
11966 | if (temp2) | |
11967 | delete arg2; | |
11968 | } | |
11969 | return resultobj; | |
11970 | fail: | |
11971 | { | |
11972 | if (temp2) | |
11973 | delete arg2; | |
11974 | } | |
11975 | return NULL; | |
11976 | } | |
11977 | ||
11978 | ||
11979 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11980 | PyObject *resultobj; | |
11981 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11982 | wxString *arg2 = 0 ; | |
11983 | bool result; | |
423f194a | 11984 | bool temp2 = False ; |
d14a1e28 RD |
11985 | PyObject * obj0 = 0 ; |
11986 | PyObject * obj1 = 0 ; | |
11987 | char *kwnames[] = { | |
11988 | (char *) "self",(char *) "filename", NULL | |
11989 | }; | |
11990 | ||
11991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
11992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11993 | { | |
11994 | arg2 = wxString_in_helper(obj1); | |
11995 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11996 | temp2 = True; |
d14a1e28 RD |
11997 | } |
11998 | { | |
11999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12000 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
12001 | ||
12002 | wxPyEndAllowThreads(__tstate); | |
12003 | if (PyErr_Occurred()) SWIG_fail; | |
12004 | } | |
12005 | resultobj = PyInt_FromLong((long)result); | |
12006 | { | |
12007 | if (temp2) | |
12008 | delete arg2; | |
12009 | } | |
12010 | return resultobj; | |
12011 | fail: | |
12012 | { | |
12013 | if (temp2) | |
12014 | delete arg2; | |
12015 | } | |
12016 | return NULL; | |
12017 | } | |
12018 | ||
12019 | ||
12020 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12021 | PyObject *resultobj; | |
12022 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12023 | PyObject *result; | |
12024 | PyObject * obj0 = 0 ; | |
12025 | char *kwnames[] = { | |
12026 | (char *) "self", NULL | |
12027 | }; | |
12028 | ||
12029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
12030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12031 | { | |
12032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12033 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
12034 | ||
12035 | wxPyEndAllowThreads(__tstate); | |
12036 | if (PyErr_Occurred()) SWIG_fail; | |
12037 | } | |
12038 | resultobj = result; | |
12039 | return resultobj; | |
12040 | fail: | |
12041 | return NULL; | |
12042 | } | |
12043 | ||
12044 | ||
12045 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12046 | PyObject *resultobj; | |
12047 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12048 | wxFileTypeInfo *arg2 = 0 ; | |
12049 | PyObject * obj0 = 0 ; | |
12050 | PyObject * obj1 = 0 ; | |
12051 | char *kwnames[] = { | |
12052 | (char *) "self",(char *) "ft", NULL | |
12053 | }; | |
12054 | ||
12055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
12056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12057 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12058 | if (arg2 == NULL) { | |
12059 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12060 | } | |
12061 | { | |
12062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12063 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
12064 | ||
12065 | wxPyEndAllowThreads(__tstate); | |
12066 | if (PyErr_Occurred()) SWIG_fail; | |
12067 | } | |
12068 | Py_INCREF(Py_None); resultobj = Py_None; | |
12069 | return resultobj; | |
12070 | fail: | |
12071 | return NULL; | |
12072 | } | |
12073 | ||
12074 | ||
12075 | static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12076 | PyObject *resultobj; | |
12077 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12078 | wxFileTypeInfo *arg2 = 0 ; | |
12079 | wxFileType *result; | |
12080 | PyObject * obj0 = 0 ; | |
12081 | PyObject * obj1 = 0 ; | |
12082 | char *kwnames[] = { | |
12083 | (char *) "self",(char *) "ftInfo", NULL | |
12084 | }; | |
12085 | ||
12086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
12087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12088 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12089 | if (arg2 == NULL) { | |
12090 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12091 | } | |
12092 | { | |
12093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12094 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
12095 | ||
12096 | wxPyEndAllowThreads(__tstate); | |
12097 | if (PyErr_Occurred()) SWIG_fail; | |
12098 | } | |
12099 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12100 | return resultobj; | |
12101 | fail: | |
12102 | return NULL; | |
12103 | } | |
12104 | ||
12105 | ||
12106 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12107 | PyObject *resultobj; | |
12108 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12109 | wxFileType *arg2 = (wxFileType *) 0 ; | |
12110 | bool result; | |
12111 | PyObject * obj0 = 0 ; | |
12112 | PyObject * obj1 = 0 ; | |
12113 | char *kwnames[] = { | |
12114 | (char *) "self",(char *) "ft", NULL | |
12115 | }; | |
12116 | ||
12117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
12118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12119 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12120 | { | |
12121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12122 | result = (bool)(arg1)->Unassociate(arg2); | |
12123 | ||
12124 | wxPyEndAllowThreads(__tstate); | |
12125 | if (PyErr_Occurred()) SWIG_fail; | |
12126 | } | |
12127 | resultobj = PyInt_FromLong((long)result); | |
12128 | return resultobj; | |
12129 | fail: | |
12130 | return NULL; | |
12131 | } | |
12132 | ||
12133 | ||
12134 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12135 | PyObject *resultobj; | |
12136 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12137 | PyObject * obj0 = 0 ; | |
12138 | char *kwnames[] = { | |
12139 | (char *) "self", NULL | |
12140 | }; | |
12141 | ||
12142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
12143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12144 | { | |
12145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12146 | delete arg1; | |
12147 | ||
12148 | wxPyEndAllowThreads(__tstate); | |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
12150 | } | |
12151 | Py_INCREF(Py_None); resultobj = Py_None; | |
12152 | return resultobj; | |
12153 | fail: | |
12154 | return NULL; | |
12155 | } | |
12156 | ||
12157 | ||
12158 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
12159 | PyObject *obj; | |
12160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12161 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
12162 | Py_INCREF(obj); | |
12163 | return Py_BuildValue((char *)""); | |
12164 | } | |
12165 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
12166 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
12167 | return 1; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
12172 | PyObject *pyobj; | |
12173 | ||
12174 | { | |
12175 | #if wxUSE_UNICODE | |
12176 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12177 | #else | |
12178 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12179 | #endif | |
12180 | } | |
12181 | return pyobj; | |
12182 | } | |
12183 | ||
12184 | ||
12185 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
12186 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
12187 | return 1; | |
12188 | } | |
12189 | ||
12190 | ||
12191 | static PyObject *_wrap_ART_MENU_get() { | |
12192 | PyObject *pyobj; | |
12193 | ||
12194 | { | |
12195 | #if wxUSE_UNICODE | |
12196 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12197 | #else | |
12198 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12199 | #endif | |
12200 | } | |
12201 | return pyobj; | |
12202 | } | |
12203 | ||
12204 | ||
12205 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
12206 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
12207 | return 1; | |
12208 | } | |
12209 | ||
12210 | ||
12211 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
12212 | PyObject *pyobj; | |
12213 | ||
12214 | { | |
12215 | #if wxUSE_UNICODE | |
12216 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12217 | #else | |
12218 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12219 | #endif | |
12220 | } | |
12221 | return pyobj; | |
12222 | } | |
12223 | ||
12224 | ||
12225 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
12226 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
12227 | return 1; | |
12228 | } | |
12229 | ||
12230 | ||
12231 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
12232 | PyObject *pyobj; | |
12233 | ||
12234 | { | |
12235 | #if wxUSE_UNICODE | |
12236 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12237 | #else | |
12238 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12239 | #endif | |
12240 | } | |
12241 | return pyobj; | |
12242 | } | |
12243 | ||
12244 | ||
12245 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
12246 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
12247 | return 1; | |
12248 | } | |
12249 | ||
12250 | ||
12251 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
12252 | PyObject *pyobj; | |
12253 | ||
12254 | { | |
12255 | #if wxUSE_UNICODE | |
12256 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12257 | #else | |
12258 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12259 | #endif | |
12260 | } | |
12261 | return pyobj; | |
12262 | } | |
12263 | ||
12264 | ||
12265 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
12266 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
12267 | return 1; | |
12268 | } | |
12269 | ||
12270 | ||
12271 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
12272 | PyObject *pyobj; | |
12273 | ||
12274 | { | |
12275 | #if wxUSE_UNICODE | |
12276 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12277 | #else | |
12278 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12279 | #endif | |
12280 | } | |
12281 | return pyobj; | |
12282 | } | |
12283 | ||
12284 | ||
12285 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
12286 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
12287 | return 1; | |
12288 | } | |
12289 | ||
12290 | ||
12291 | static PyObject *_wrap_ART_OTHER_get() { | |
12292 | PyObject *pyobj; | |
12293 | ||
12294 | { | |
12295 | #if wxUSE_UNICODE | |
12296 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12297 | #else | |
12298 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12299 | #endif | |
12300 | } | |
12301 | return pyobj; | |
12302 | } | |
12303 | ||
12304 | ||
12305 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
12306 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
12307 | return 1; | |
12308 | } | |
12309 | ||
12310 | ||
12311 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
12312 | PyObject *pyobj; | |
12313 | ||
12314 | { | |
12315 | #if wxUSE_UNICODE | |
12316 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12317 | #else | |
12318 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12319 | #endif | |
12320 | } | |
12321 | return pyobj; | |
12322 | } | |
12323 | ||
12324 | ||
12325 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
12326 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
12327 | return 1; | |
12328 | } | |
12329 | ||
12330 | ||
12331 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
12332 | PyObject *pyobj; | |
12333 | ||
12334 | { | |
12335 | #if wxUSE_UNICODE | |
12336 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12337 | #else | |
12338 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12339 | #endif | |
12340 | } | |
12341 | return pyobj; | |
12342 | } | |
12343 | ||
12344 | ||
12345 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
12346 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
12347 | return 1; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
12352 | PyObject *pyobj; | |
12353 | ||
12354 | { | |
12355 | #if wxUSE_UNICODE | |
12356 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12357 | #else | |
12358 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12359 | #endif | |
12360 | } | |
12361 | return pyobj; | |
12362 | } | |
12363 | ||
12364 | ||
12365 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
12366 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
12367 | return 1; | |
12368 | } | |
12369 | ||
12370 | ||
12371 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
12372 | PyObject *pyobj; | |
12373 | ||
12374 | { | |
12375 | #if wxUSE_UNICODE | |
12376 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12377 | #else | |
12378 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12379 | #endif | |
12380 | } | |
12381 | return pyobj; | |
12382 | } | |
12383 | ||
12384 | ||
12385 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
12386 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
12387 | return 1; | |
12388 | } | |
12389 | ||
12390 | ||
12391 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
12392 | PyObject *pyobj; | |
12393 | ||
12394 | { | |
12395 | #if wxUSE_UNICODE | |
12396 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12397 | #else | |
12398 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12399 | #endif | |
12400 | } | |
12401 | return pyobj; | |
12402 | } | |
12403 | ||
12404 | ||
12405 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
12406 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
12407 | return 1; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
12412 | PyObject *pyobj; | |
12413 | ||
12414 | { | |
12415 | #if wxUSE_UNICODE | |
12416 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12417 | #else | |
12418 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12419 | #endif | |
12420 | } | |
12421 | return pyobj; | |
12422 | } | |
12423 | ||
12424 | ||
12425 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
12426 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
12427 | return 1; | |
12428 | } | |
12429 | ||
12430 | ||
12431 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
12432 | PyObject *pyobj; | |
12433 | ||
12434 | { | |
12435 | #if wxUSE_UNICODE | |
12436 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12437 | #else | |
12438 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12439 | #endif | |
12440 | } | |
12441 | return pyobj; | |
12442 | } | |
12443 | ||
12444 | ||
12445 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
12446 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
12447 | return 1; | |
12448 | } | |
12449 | ||
12450 | ||
12451 | static PyObject *_wrap_ART_GO_BACK_get() { | |
12452 | PyObject *pyobj; | |
12453 | ||
12454 | { | |
12455 | #if wxUSE_UNICODE | |
12456 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12457 | #else | |
12458 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12459 | #endif | |
12460 | } | |
12461 | return pyobj; | |
12462 | } | |
12463 | ||
12464 | ||
12465 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
12466 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
12467 | return 1; | |
12468 | } | |
12469 | ||
12470 | ||
12471 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
12472 | PyObject *pyobj; | |
12473 | ||
12474 | { | |
12475 | #if wxUSE_UNICODE | |
12476 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12477 | #else | |
12478 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12479 | #endif | |
12480 | } | |
12481 | return pyobj; | |
12482 | } | |
12483 | ||
12484 | ||
12485 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
12486 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
12487 | return 1; | |
12488 | } | |
12489 | ||
12490 | ||
12491 | static PyObject *_wrap_ART_GO_UP_get() { | |
12492 | PyObject *pyobj; | |
12493 | ||
12494 | { | |
12495 | #if wxUSE_UNICODE | |
12496 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12497 | #else | |
12498 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12499 | #endif | |
12500 | } | |
12501 | return pyobj; | |
12502 | } | |
12503 | ||
12504 | ||
12505 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
12506 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
12507 | return 1; | |
12508 | } | |
12509 | ||
12510 | ||
12511 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
12512 | PyObject *pyobj; | |
12513 | ||
12514 | { | |
12515 | #if wxUSE_UNICODE | |
12516 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12517 | #else | |
12518 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12519 | #endif | |
12520 | } | |
12521 | return pyobj; | |
12522 | } | |
12523 | ||
12524 | ||
12525 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
12526 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
12527 | return 1; | |
12528 | } | |
12529 | ||
12530 | ||
12531 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
12532 | PyObject *pyobj; | |
12533 | ||
12534 | { | |
12535 | #if wxUSE_UNICODE | |
12536 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12537 | #else | |
12538 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12539 | #endif | |
12540 | } | |
12541 | return pyobj; | |
12542 | } | |
12543 | ||
12544 | ||
12545 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
12546 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
12547 | return 1; | |
12548 | } | |
12549 | ||
12550 | ||
12551 | static PyObject *_wrap_ART_GO_HOME_get() { | |
12552 | PyObject *pyobj; | |
12553 | ||
12554 | { | |
12555 | #if wxUSE_UNICODE | |
12556 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12557 | #else | |
12558 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12559 | #endif | |
12560 | } | |
12561 | return pyobj; | |
12562 | } | |
12563 | ||
12564 | ||
12565 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
12566 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
12567 | return 1; | |
12568 | } | |
12569 | ||
12570 | ||
12571 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
12572 | PyObject *pyobj; | |
12573 | ||
12574 | { | |
12575 | #if wxUSE_UNICODE | |
12576 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12577 | #else | |
12578 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12579 | #endif | |
12580 | } | |
12581 | return pyobj; | |
12582 | } | |
12583 | ||
12584 | ||
12585 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
12586 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
12587 | return 1; | |
12588 | } | |
12589 | ||
12590 | ||
12591 | static PyObject *_wrap_ART_PRINT_get() { | |
12592 | PyObject *pyobj; | |
12593 | ||
12594 | { | |
12595 | #if wxUSE_UNICODE | |
12596 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12597 | #else | |
12598 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12599 | #endif | |
12600 | } | |
12601 | return pyobj; | |
12602 | } | |
12603 | ||
12604 | ||
12605 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
12606 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
12607 | return 1; | |
12608 | } | |
12609 | ||
12610 | ||
12611 | static PyObject *_wrap_ART_HELP_get() { | |
12612 | PyObject *pyobj; | |
12613 | ||
12614 | { | |
12615 | #if wxUSE_UNICODE | |
12616 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12617 | #else | |
12618 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12619 | #endif | |
12620 | } | |
12621 | return pyobj; | |
12622 | } | |
12623 | ||
12624 | ||
12625 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
12626 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
12627 | return 1; | |
12628 | } | |
12629 | ||
12630 | ||
12631 | static PyObject *_wrap_ART_TIP_get() { | |
12632 | PyObject *pyobj; | |
12633 | ||
12634 | { | |
12635 | #if wxUSE_UNICODE | |
12636 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12637 | #else | |
12638 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12639 | #endif | |
12640 | } | |
12641 | return pyobj; | |
12642 | } | |
12643 | ||
12644 | ||
12645 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
12646 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
12647 | return 1; | |
12648 | } | |
12649 | ||
12650 | ||
12651 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
12652 | PyObject *pyobj; | |
12653 | ||
12654 | { | |
12655 | #if wxUSE_UNICODE | |
12656 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12657 | #else | |
12658 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12659 | #endif | |
12660 | } | |
12661 | return pyobj; | |
12662 | } | |
12663 | ||
12664 | ||
12665 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
12666 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
12667 | return 1; | |
12668 | } | |
12669 | ||
12670 | ||
12671 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
12672 | PyObject *pyobj; | |
12673 | ||
12674 | { | |
12675 | #if wxUSE_UNICODE | |
12676 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12677 | #else | |
12678 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12679 | #endif | |
12680 | } | |
12681 | return pyobj; | |
12682 | } | |
12683 | ||
12684 | ||
12685 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
12686 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
12687 | return 1; | |
12688 | } | |
12689 | ||
12690 | ||
12691 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
12692 | PyObject *pyobj; | |
12693 | ||
12694 | { | |
12695 | #if wxUSE_UNICODE | |
12696 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12697 | #else | |
12698 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12699 | #endif | |
12700 | } | |
12701 | return pyobj; | |
12702 | } | |
12703 | ||
12704 | ||
12705 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
12706 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
12707 | return 1; | |
12708 | } | |
12709 | ||
12710 | ||
12711 | static PyObject *_wrap_ART_FOLDER_get() { | |
12712 | PyObject *pyobj; | |
12713 | ||
12714 | { | |
12715 | #if wxUSE_UNICODE | |
12716 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12717 | #else | |
12718 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12719 | #endif | |
12720 | } | |
12721 | return pyobj; | |
12722 | } | |
12723 | ||
12724 | ||
12725 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
12726 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
12727 | return 1; | |
12728 | } | |
12729 | ||
12730 | ||
12731 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
12732 | PyObject *pyobj; | |
12733 | ||
12734 | { | |
12735 | #if wxUSE_UNICODE | |
12736 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12737 | #else | |
12738 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12739 | #endif | |
12740 | } | |
12741 | return pyobj; | |
12742 | } | |
12743 | ||
12744 | ||
12745 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
12746 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
12747 | return 1; | |
12748 | } | |
12749 | ||
12750 | ||
12751 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
12752 | PyObject *pyobj; | |
12753 | ||
12754 | { | |
12755 | #if wxUSE_UNICODE | |
12756 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12757 | #else | |
12758 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12759 | #endif | |
12760 | } | |
12761 | return pyobj; | |
12762 | } | |
12763 | ||
12764 | ||
12765 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
12766 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
12767 | return 1; | |
12768 | } | |
12769 | ||
12770 | ||
12771 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
12772 | PyObject *pyobj; | |
12773 | ||
12774 | { | |
12775 | #if wxUSE_UNICODE | |
12776 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12777 | #else | |
12778 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12779 | #endif | |
12780 | } | |
12781 | return pyobj; | |
12782 | } | |
12783 | ||
12784 | ||
12785 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
12786 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
12787 | return 1; | |
12788 | } | |
12789 | ||
12790 | ||
12791 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
12792 | PyObject *pyobj; | |
12793 | ||
12794 | { | |
12795 | #if wxUSE_UNICODE | |
12796 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12797 | #else | |
12798 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12799 | #endif | |
12800 | } | |
12801 | return pyobj; | |
12802 | } | |
12803 | ||
12804 | ||
12805 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
12806 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
12807 | return 1; | |
12808 | } | |
12809 | ||
12810 | ||
12811 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
12812 | PyObject *pyobj; | |
12813 | ||
12814 | { | |
12815 | #if wxUSE_UNICODE | |
12816 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12817 | #else | |
12818 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12819 | #endif | |
12820 | } | |
12821 | return pyobj; | |
12822 | } | |
12823 | ||
12824 | ||
12825 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
12826 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
12827 | return 1; | |
12828 | } | |
12829 | ||
12830 | ||
12831 | static PyObject *_wrap_ART_ERROR_get() { | |
12832 | PyObject *pyobj; | |
12833 | ||
12834 | { | |
12835 | #if wxUSE_UNICODE | |
12836 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12837 | #else | |
12838 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12839 | #endif | |
12840 | } | |
12841 | return pyobj; | |
12842 | } | |
12843 | ||
12844 | ||
12845 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
12846 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
12847 | return 1; | |
12848 | } | |
12849 | ||
12850 | ||
12851 | static PyObject *_wrap_ART_QUESTION_get() { | |
12852 | PyObject *pyobj; | |
12853 | ||
12854 | { | |
12855 | #if wxUSE_UNICODE | |
12856 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12857 | #else | |
12858 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12859 | #endif | |
12860 | } | |
12861 | return pyobj; | |
12862 | } | |
12863 | ||
12864 | ||
12865 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
12866 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
12867 | return 1; | |
12868 | } | |
12869 | ||
12870 | ||
12871 | static PyObject *_wrap_ART_WARNING_get() { | |
12872 | PyObject *pyobj; | |
12873 | ||
12874 | { | |
12875 | #if wxUSE_UNICODE | |
12876 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12877 | #else | |
12878 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12879 | #endif | |
12880 | } | |
12881 | return pyobj; | |
12882 | } | |
12883 | ||
12884 | ||
12885 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
12886 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
12887 | return 1; | |
12888 | } | |
12889 | ||
12890 | ||
12891 | static PyObject *_wrap_ART_INFORMATION_get() { | |
12892 | PyObject *pyobj; | |
12893 | ||
12894 | { | |
12895 | #if wxUSE_UNICODE | |
12896 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12897 | #else | |
12898 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12899 | #endif | |
12900 | } | |
12901 | return pyobj; | |
12902 | } | |
12903 | ||
12904 | ||
12905 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
12906 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
12907 | return 1; | |
12908 | } | |
12909 | ||
12910 | ||
12911 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
12912 | PyObject *pyobj; | |
12913 | ||
12914 | { | |
12915 | #if wxUSE_UNICODE | |
12916 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
12917 | #else | |
12918 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
12919 | #endif | |
12920 | } | |
12921 | return pyobj; | |
12922 | } | |
12923 | ||
12924 | ||
12925 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12926 | PyObject *resultobj; | |
12927 | wxPyArtProvider *result; | |
12928 | char *kwnames[] = { | |
12929 | NULL | |
12930 | }; | |
12931 | ||
12932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
12933 | { | |
12934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12935 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
12936 | ||
12937 | wxPyEndAllowThreads(__tstate); | |
12938 | if (PyErr_Occurred()) SWIG_fail; | |
12939 | } | |
12940 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
12941 | return resultobj; | |
12942 | fail: | |
12943 | return NULL; | |
12944 | } | |
12945 | ||
12946 | ||
d14a1e28 RD |
12947 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
12948 | PyObject *resultobj; | |
12949 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12950 | PyObject *arg2 = (PyObject *) 0 ; | |
12951 | PyObject *arg3 = (PyObject *) 0 ; | |
12952 | PyObject * obj0 = 0 ; | |
12953 | PyObject * obj1 = 0 ; | |
12954 | PyObject * obj2 = 0 ; | |
12955 | char *kwnames[] = { | |
12956 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
12957 | }; | |
12958 | ||
12959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12961 | arg2 = obj1; | |
12962 | arg3 = obj2; | |
12963 | { | |
12964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12965 | (arg1)->_setCallbackInfo(arg2,arg3); | |
12966 | ||
12967 | wxPyEndAllowThreads(__tstate); | |
12968 | if (PyErr_Occurred()) SWIG_fail; | |
12969 | } | |
12970 | Py_INCREF(Py_None); resultobj = Py_None; | |
12971 | return resultobj; | |
12972 | fail: | |
12973 | return NULL; | |
12974 | } | |
12975 | ||
12976 | ||
12977 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12978 | PyObject *resultobj; | |
12979 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
12980 | PyObject * obj0 = 0 ; | |
12981 | char *kwnames[] = { | |
12982 | (char *) "provider", NULL | |
12983 | }; | |
12984 | ||
12985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
12986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12987 | { | |
12988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12989 | wxPyArtProvider::PushProvider(arg1); | |
12990 | ||
12991 | wxPyEndAllowThreads(__tstate); | |
12992 | if (PyErr_Occurred()) SWIG_fail; | |
12993 | } | |
12994 | Py_INCREF(Py_None); resultobj = Py_None; | |
12995 | return resultobj; | |
12996 | fail: | |
12997 | return NULL; | |
12998 | } | |
12999 | ||
13000 | ||
13001 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13002 | PyObject *resultobj; | |
13003 | bool result; | |
13004 | char *kwnames[] = { | |
13005 | NULL | |
13006 | }; | |
13007 | ||
13008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
13009 | { | |
13010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13011 | result = (bool)wxPyArtProvider::PopProvider(); | |
13012 | ||
13013 | wxPyEndAllowThreads(__tstate); | |
13014 | if (PyErr_Occurred()) SWIG_fail; | |
13015 | } | |
13016 | resultobj = PyInt_FromLong((long)result); | |
13017 | return resultobj; | |
13018 | fail: | |
13019 | return NULL; | |
13020 | } | |
13021 | ||
13022 | ||
13023 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13024 | PyObject *resultobj; | |
13025 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13026 | bool result; | |
13027 | PyObject * obj0 = 0 ; | |
13028 | char *kwnames[] = { | |
13029 | (char *) "provider", NULL | |
13030 | }; | |
13031 | ||
13032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
13033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13034 | { | |
13035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13036 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
13037 | ||
13038 | wxPyEndAllowThreads(__tstate); | |
13039 | if (PyErr_Occurred()) SWIG_fail; | |
13040 | } | |
13041 | resultobj = PyInt_FromLong((long)result); | |
13042 | return resultobj; | |
13043 | fail: | |
13044 | return NULL; | |
13045 | } | |
13046 | ||
13047 | ||
13048 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13049 | PyObject *resultobj; | |
13050 | wxString *arg1 = 0 ; | |
13051 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13052 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13053 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13054 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13055 | wxBitmap result; | |
423f194a RD |
13056 | bool temp1 = False ; |
13057 | bool temp2 = False ; | |
d14a1e28 RD |
13058 | wxSize temp3 ; |
13059 | PyObject * obj0 = 0 ; | |
13060 | PyObject * obj1 = 0 ; | |
13061 | PyObject * obj2 = 0 ; | |
13062 | char *kwnames[] = { | |
13063 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13064 | }; | |
13065 | ||
13066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13067 | { | |
13068 | arg1 = wxString_in_helper(obj0); | |
13069 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13070 | temp1 = True; |
d14a1e28 RD |
13071 | } |
13072 | if (obj1) { | |
13073 | { | |
13074 | arg2 = wxString_in_helper(obj1); | |
13075 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13076 | temp2 = True; |
d14a1e28 RD |
13077 | } |
13078 | } | |
13079 | if (obj2) { | |
13080 | { | |
13081 | arg3 = &temp3; | |
13082 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13083 | } | |
13084 | } | |
13085 | { | |
13086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13087 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13088 | ||
13089 | wxPyEndAllowThreads(__tstate); | |
13090 | if (PyErr_Occurred()) SWIG_fail; | |
13091 | } | |
13092 | { | |
13093 | wxBitmap * resultptr; | |
13094 | resultptr = new wxBitmap((wxBitmap &) result); | |
13095 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13096 | } | |
13097 | { | |
13098 | if (temp1) | |
13099 | delete arg1; | |
13100 | } | |
13101 | { | |
13102 | if (temp2) | |
13103 | delete arg2; | |
13104 | } | |
13105 | return resultobj; | |
13106 | fail: | |
13107 | { | |
13108 | if (temp1) | |
13109 | delete arg1; | |
13110 | } | |
13111 | { | |
13112 | if (temp2) | |
13113 | delete arg2; | |
13114 | } | |
13115 | return NULL; | |
13116 | } | |
13117 | ||
13118 | ||
13119 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13120 | PyObject *resultobj; | |
13121 | wxString *arg1 = 0 ; | |
13122 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13123 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13124 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13125 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13126 | wxIcon result; | |
423f194a RD |
13127 | bool temp1 = False ; |
13128 | bool temp2 = False ; | |
d14a1e28 RD |
13129 | wxSize temp3 ; |
13130 | PyObject * obj0 = 0 ; | |
13131 | PyObject * obj1 = 0 ; | |
13132 | PyObject * obj2 = 0 ; | |
13133 | char *kwnames[] = { | |
13134 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13135 | }; | |
13136 | ||
13137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13138 | { | |
13139 | arg1 = wxString_in_helper(obj0); | |
13140 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13141 | temp1 = True; |
d14a1e28 RD |
13142 | } |
13143 | if (obj1) { | |
13144 | { | |
13145 | arg2 = wxString_in_helper(obj1); | |
13146 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13147 | temp2 = True; |
d14a1e28 RD |
13148 | } |
13149 | } | |
13150 | if (obj2) { | |
13151 | { | |
13152 | arg3 = &temp3; | |
13153 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13154 | } | |
13155 | } | |
13156 | { | |
13157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13158 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13159 | ||
13160 | wxPyEndAllowThreads(__tstate); | |
13161 | if (PyErr_Occurred()) SWIG_fail; | |
13162 | } | |
13163 | { | |
13164 | wxIcon * resultptr; | |
13165 | resultptr = new wxIcon((wxIcon &) result); | |
13166 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
13167 | } | |
13168 | { | |
13169 | if (temp1) | |
13170 | delete arg1; | |
13171 | } | |
13172 | { | |
13173 | if (temp2) | |
13174 | delete arg2; | |
13175 | } | |
13176 | return resultobj; | |
13177 | fail: | |
13178 | { | |
13179 | if (temp1) | |
13180 | delete arg1; | |
13181 | } | |
13182 | { | |
13183 | if (temp2) | |
13184 | delete arg2; | |
13185 | } | |
13186 | return NULL; | |
13187 | } | |
13188 | ||
13189 | ||
41f1cec7 RD |
13190 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
13191 | PyObject *resultobj; | |
13192 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13193 | PyObject * obj0 = 0 ; | |
13194 | char *kwnames[] = { | |
13195 | (char *) "self", NULL | |
13196 | }; | |
13197 | ||
13198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
13199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13200 | { | |
13201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13202 | wxPyArtProvider_Destroy(arg1); | |
13203 | ||
13204 | wxPyEndAllowThreads(__tstate); | |
13205 | if (PyErr_Occurred()) SWIG_fail; | |
13206 | } | |
13207 | Py_INCREF(Py_None); resultobj = Py_None; | |
13208 | return resultobj; | |
13209 | fail: | |
13210 | return NULL; | |
13211 | } | |
13212 | ||
13213 | ||
d14a1e28 RD |
13214 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
13215 | PyObject *obj; | |
13216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13217 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
13218 | Py_INCREF(obj); | |
13219 | return Py_BuildValue((char *)""); | |
13220 | } | |
13221 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13222 | PyObject *resultobj; | |
13223 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13224 | PyObject * obj0 = 0 ; | |
13225 | char *kwnames[] = { | |
13226 | (char *) "self", NULL | |
13227 | }; | |
13228 | ||
13229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
13230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13231 | { | |
13232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13233 | delete arg1; | |
13234 | ||
13235 | wxPyEndAllowThreads(__tstate); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
13237 | } | |
13238 | Py_INCREF(Py_None); resultobj = Py_None; | |
13239 | return resultobj; | |
13240 | fail: | |
13241 | return NULL; | |
13242 | } | |
13243 | ||
13244 | ||
13245 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13246 | PyObject *resultobj; | |
13247 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13248 | wxConfigBase *result; | |
13249 | PyObject * obj0 = 0 ; | |
13250 | char *kwnames[] = { | |
13251 | (char *) "pConfig", NULL | |
13252 | }; | |
13253 | ||
13254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
13255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13256 | { | |
13257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13258 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
13259 | ||
13260 | wxPyEndAllowThreads(__tstate); | |
13261 | if (PyErr_Occurred()) SWIG_fail; | |
13262 | } | |
13263 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13264 | return resultobj; | |
13265 | fail: | |
13266 | return NULL; | |
13267 | } | |
13268 | ||
13269 | ||
13270 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13271 | PyObject *resultobj; | |
423f194a | 13272 | bool arg1 = (bool) True ; |
d14a1e28 RD |
13273 | wxConfigBase *result; |
13274 | PyObject * obj0 = 0 ; | |
13275 | char *kwnames[] = { | |
13276 | (char *) "createOnDemand", NULL | |
13277 | }; | |
13278 | ||
13279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
13280 | if (obj0) { | |
13281 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
13282 | if (PyErr_Occurred()) SWIG_fail; | |
13283 | } | |
13284 | { | |
13285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13286 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
13287 | ||
13288 | wxPyEndAllowThreads(__tstate); | |
13289 | if (PyErr_Occurred()) SWIG_fail; | |
13290 | } | |
13291 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13292 | return resultobj; | |
13293 | fail: | |
13294 | return NULL; | |
13295 | } | |
13296 | ||
13297 | ||
13298 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13299 | PyObject *resultobj; | |
13300 | wxConfigBase *result; | |
13301 | char *kwnames[] = { | |
13302 | NULL | |
13303 | }; | |
13304 | ||
13305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
13306 | { | |
13307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13308 | result = (wxConfigBase *)wxConfigBase::Create(); | |
13309 | ||
13310 | wxPyEndAllowThreads(__tstate); | |
13311 | if (PyErr_Occurred()) SWIG_fail; | |
13312 | } | |
13313 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13314 | return resultobj; | |
13315 | fail: | |
13316 | return NULL; | |
13317 | } | |
13318 | ||
13319 | ||
13320 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13321 | PyObject *resultobj; | |
13322 | char *kwnames[] = { | |
13323 | NULL | |
13324 | }; | |
13325 | ||
13326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
13327 | { | |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | wxConfigBase::DontCreateOnDemand(); | |
13330 | ||
13331 | wxPyEndAllowThreads(__tstate); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | } | |
13334 | Py_INCREF(Py_None); resultobj = Py_None; | |
13335 | return resultobj; | |
13336 | fail: | |
13337 | return NULL; | |
13338 | } | |
13339 | ||
13340 | ||
13341 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13342 | PyObject *resultobj; | |
13343 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13344 | wxString *arg2 = 0 ; | |
423f194a | 13345 | bool temp2 = False ; |
d14a1e28 RD |
13346 | PyObject * obj0 = 0 ; |
13347 | PyObject * obj1 = 0 ; | |
13348 | char *kwnames[] = { | |
13349 | (char *) "self",(char *) "strPath", NULL | |
13350 | }; | |
13351 | ||
13352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
13353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13354 | { | |
13355 | arg2 = wxString_in_helper(obj1); | |
13356 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13357 | temp2 = True; |
d14a1e28 RD |
13358 | } |
13359 | { | |
13360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13361 | (arg1)->SetPath((wxString const &)*arg2); | |
13362 | ||
13363 | wxPyEndAllowThreads(__tstate); | |
13364 | if (PyErr_Occurred()) SWIG_fail; | |
13365 | } | |
13366 | Py_INCREF(Py_None); resultobj = Py_None; | |
13367 | { | |
13368 | if (temp2) | |
13369 | delete arg2; | |
13370 | } | |
13371 | return resultobj; | |
13372 | fail: | |
13373 | { | |
13374 | if (temp2) | |
13375 | delete arg2; | |
13376 | } | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13384 | wxString *result; | |
13385 | PyObject * obj0 = 0 ; | |
13386 | char *kwnames[] = { | |
13387 | (char *) "self", NULL | |
13388 | }; | |
13389 | ||
13390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
13391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13392 | { | |
13393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13394 | { | |
13395 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
13396 | result = (wxString *) &_result_ref; | |
13397 | } | |
13398 | ||
13399 | wxPyEndAllowThreads(__tstate); | |
13400 | if (PyErr_Occurred()) SWIG_fail; | |
13401 | } | |
f0983263 RD |
13402 | { |
13403 | #if wxUSE_UNICODE | |
13404 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13405 | #else | |
13406 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13407 | #endif | |
13408 | } | |
d14a1e28 RD |
13409 | return resultobj; |
13410 | fail: | |
13411 | return NULL; | |
13412 | } | |
13413 | ||
13414 | ||
13415 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13416 | PyObject *resultobj; | |
13417 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13418 | PyObject *result; | |
13419 | PyObject * obj0 = 0 ; | |
13420 | char *kwnames[] = { | |
13421 | (char *) "self", NULL | |
13422 | }; | |
13423 | ||
13424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
13425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13426 | { | |
13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13428 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
13429 | ||
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
13433 | resultobj = result; | |
13434 | return resultobj; | |
13435 | fail: | |
13436 | return NULL; | |
13437 | } | |
13438 | ||
13439 | ||
13440 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13441 | PyObject *resultobj; | |
13442 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13443 | long arg2 ; | |
13444 | PyObject *result; | |
13445 | PyObject * obj0 = 0 ; | |
13446 | char *kwnames[] = { | |
13447 | (char *) "self",(char *) "index", NULL | |
13448 | }; | |
13449 | ||
13450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextGroup",kwnames,&obj0,&arg2)) goto fail; | |
13451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13452 | { | |
13453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13454 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
13455 | ||
13456 | wxPyEndAllowThreads(__tstate); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
13458 | } | |
13459 | resultobj = result; | |
13460 | return resultobj; | |
13461 | fail: | |
13462 | return NULL; | |
13463 | } | |
13464 | ||
13465 | ||
13466 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13467 | PyObject *resultobj; | |
13468 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13469 | PyObject *result; | |
13470 | PyObject * obj0 = 0 ; | |
13471 | char *kwnames[] = { | |
13472 | (char *) "self", NULL | |
13473 | }; | |
13474 | ||
13475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
13476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13477 | { | |
13478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13479 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
13480 | ||
13481 | wxPyEndAllowThreads(__tstate); | |
13482 | if (PyErr_Occurred()) SWIG_fail; | |
13483 | } | |
13484 | resultobj = result; | |
13485 | return resultobj; | |
13486 | fail: | |
13487 | return NULL; | |
13488 | } | |
13489 | ||
13490 | ||
13491 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13492 | PyObject *resultobj; | |
13493 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13494 | long arg2 ; | |
13495 | PyObject *result; | |
13496 | PyObject * obj0 = 0 ; | |
13497 | char *kwnames[] = { | |
13498 | (char *) "self",(char *) "index", NULL | |
13499 | }; | |
13500 | ||
13501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextEntry",kwnames,&obj0,&arg2)) goto fail; | |
13502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13503 | { | |
13504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13505 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
13506 | ||
13507 | wxPyEndAllowThreads(__tstate); | |
13508 | if (PyErr_Occurred()) SWIG_fail; | |
13509 | } | |
13510 | resultobj = result; | |
13511 | return resultobj; | |
13512 | fail: | |
13513 | return NULL; | |
13514 | } | |
13515 | ||
13516 | ||
13517 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13518 | PyObject *resultobj; | |
13519 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13520 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13521 | size_t result; |
13522 | PyObject * obj0 = 0 ; | |
13523 | PyObject * obj1 = 0 ; | |
13524 | char *kwnames[] = { | |
13525 | (char *) "self",(char *) "bRecursive", NULL | |
13526 | }; | |
13527 | ||
13528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
13529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13530 | if (obj1) { | |
13531 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13532 | if (PyErr_Occurred()) SWIG_fail; | |
13533 | } | |
13534 | { | |
13535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13536 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
13537 | ||
13538 | wxPyEndAllowThreads(__tstate); | |
13539 | if (PyErr_Occurred()) SWIG_fail; | |
13540 | } | |
13541 | resultobj = PyInt_FromLong((long)result); | |
13542 | return resultobj; | |
13543 | fail: | |
13544 | return NULL; | |
13545 | } | |
13546 | ||
13547 | ||
13548 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13549 | PyObject *resultobj; | |
13550 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13551 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13552 | size_t result; |
13553 | PyObject * obj0 = 0 ; | |
13554 | PyObject * obj1 = 0 ; | |
13555 | char *kwnames[] = { | |
13556 | (char *) "self",(char *) "bRecursive", NULL | |
13557 | }; | |
13558 | ||
13559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
13560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13561 | if (obj1) { | |
13562 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13563 | if (PyErr_Occurred()) SWIG_fail; | |
13564 | } | |
13565 | { | |
13566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13567 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
13568 | ||
13569 | wxPyEndAllowThreads(__tstate); | |
13570 | if (PyErr_Occurred()) SWIG_fail; | |
13571 | } | |
13572 | resultobj = PyInt_FromLong((long)result); | |
13573 | return resultobj; | |
13574 | fail: | |
13575 | return NULL; | |
13576 | } | |
13577 | ||
13578 | ||
13579 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13580 | PyObject *resultobj; | |
13581 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13582 | wxString *arg2 = 0 ; | |
13583 | bool result; | |
423f194a | 13584 | bool temp2 = False ; |
d14a1e28 RD |
13585 | PyObject * obj0 = 0 ; |
13586 | PyObject * obj1 = 0 ; | |
13587 | char *kwnames[] = { | |
13588 | (char *) "self",(char *) "strName", NULL | |
13589 | }; | |
13590 | ||
13591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
13592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13593 | { | |
13594 | arg2 = wxString_in_helper(obj1); | |
13595 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13596 | temp2 = True; |
d14a1e28 RD |
13597 | } |
13598 | { | |
13599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13600 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
13601 | ||
13602 | wxPyEndAllowThreads(__tstate); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
13604 | } | |
13605 | resultobj = PyInt_FromLong((long)result); | |
13606 | { | |
13607 | if (temp2) | |
13608 | delete arg2; | |
13609 | } | |
13610 | return resultobj; | |
13611 | fail: | |
13612 | { | |
13613 | if (temp2) | |
13614 | delete arg2; | |
13615 | } | |
13616 | return NULL; | |
13617 | } | |
13618 | ||
13619 | ||
13620 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13621 | PyObject *resultobj; | |
13622 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13623 | wxString *arg2 = 0 ; | |
13624 | bool result; | |
423f194a | 13625 | bool temp2 = False ; |
d14a1e28 RD |
13626 | PyObject * obj0 = 0 ; |
13627 | PyObject * obj1 = 0 ; | |
13628 | char *kwnames[] = { | |
13629 | (char *) "self",(char *) "strName", NULL | |
13630 | }; | |
13631 | ||
13632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
13633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13634 | { | |
13635 | arg2 = wxString_in_helper(obj1); | |
13636 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13637 | temp2 = True; |
d14a1e28 RD |
13638 | } |
13639 | { | |
13640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13641 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
13642 | ||
13643 | wxPyEndAllowThreads(__tstate); | |
13644 | if (PyErr_Occurred()) SWIG_fail; | |
13645 | } | |
13646 | resultobj = PyInt_FromLong((long)result); | |
13647 | { | |
13648 | if (temp2) | |
13649 | delete arg2; | |
13650 | } | |
13651 | return resultobj; | |
13652 | fail: | |
13653 | { | |
13654 | if (temp2) | |
13655 | delete arg2; | |
13656 | } | |
13657 | return NULL; | |
13658 | } | |
13659 | ||
13660 | ||
13661 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13662 | PyObject *resultobj; | |
13663 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13664 | wxString *arg2 = 0 ; | |
13665 | bool result; | |
423f194a | 13666 | bool temp2 = False ; |
d14a1e28 RD |
13667 | PyObject * obj0 = 0 ; |
13668 | PyObject * obj1 = 0 ; | |
13669 | char *kwnames[] = { | |
13670 | (char *) "self",(char *) "strName", NULL | |
13671 | }; | |
13672 | ||
13673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
13674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13675 | { | |
13676 | arg2 = wxString_in_helper(obj1); | |
13677 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13678 | temp2 = True; |
d14a1e28 RD |
13679 | } |
13680 | { | |
13681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13682 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
13683 | ||
13684 | wxPyEndAllowThreads(__tstate); | |
13685 | if (PyErr_Occurred()) SWIG_fail; | |
13686 | } | |
13687 | resultobj = PyInt_FromLong((long)result); | |
13688 | { | |
13689 | if (temp2) | |
13690 | delete arg2; | |
13691 | } | |
13692 | return resultobj; | |
13693 | fail: | |
13694 | { | |
13695 | if (temp2) | |
13696 | delete arg2; | |
13697 | } | |
13698 | return NULL; | |
13699 | } | |
13700 | ||
13701 | ||
13702 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13703 | PyObject *resultobj; | |
13704 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13705 | wxString *arg2 = 0 ; | |
13706 | int result; | |
423f194a | 13707 | bool temp2 = False ; |
d14a1e28 RD |
13708 | PyObject * obj0 = 0 ; |
13709 | PyObject * obj1 = 0 ; | |
13710 | char *kwnames[] = { | |
13711 | (char *) "self",(char *) "name", NULL | |
13712 | }; | |
13713 | ||
13714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
13715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13716 | { | |
13717 | arg2 = wxString_in_helper(obj1); | |
13718 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13719 | temp2 = True; |
d14a1e28 RD |
13720 | } |
13721 | { | |
13722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13723 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
13724 | ||
13725 | wxPyEndAllowThreads(__tstate); | |
13726 | if (PyErr_Occurred()) SWIG_fail; | |
13727 | } | |
13728 | resultobj = PyInt_FromLong((long)result); | |
13729 | { | |
13730 | if (temp2) | |
13731 | delete arg2; | |
13732 | } | |
13733 | return resultobj; | |
13734 | fail: | |
13735 | { | |
13736 | if (temp2) | |
13737 | delete arg2; | |
13738 | } | |
13739 | return NULL; | |
13740 | } | |
13741 | ||
13742 | ||
13743 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13744 | PyObject *resultobj; | |
13745 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13746 | wxString *arg2 = 0 ; | |
13747 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13748 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13749 | wxString result; | |
423f194a RD |
13750 | bool temp2 = False ; |
13751 | bool temp3 = False ; | |
d14a1e28 RD |
13752 | PyObject * obj0 = 0 ; |
13753 | PyObject * obj1 = 0 ; | |
13754 | PyObject * obj2 = 0 ; | |
13755 | char *kwnames[] = { | |
13756 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13757 | }; | |
13758 | ||
13759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13761 | { | |
13762 | arg2 = wxString_in_helper(obj1); | |
13763 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13764 | temp2 = True; |
d14a1e28 RD |
13765 | } |
13766 | if (obj2) { | |
13767 | { | |
13768 | arg3 = wxString_in_helper(obj2); | |
13769 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13770 | temp3 = True; |
d14a1e28 RD |
13771 | } |
13772 | } | |
13773 | { | |
13774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13775 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
13776 | ||
13777 | wxPyEndAllowThreads(__tstate); | |
13778 | if (PyErr_Occurred()) SWIG_fail; | |
13779 | } | |
13780 | { | |
13781 | #if wxUSE_UNICODE | |
13782 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13783 | #else | |
13784 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13785 | #endif | |
13786 | } | |
13787 | { | |
13788 | if (temp2) | |
13789 | delete arg2; | |
13790 | } | |
13791 | { | |
13792 | if (temp3) | |
13793 | delete arg3; | |
13794 | } | |
13795 | return resultobj; | |
13796 | fail: | |
13797 | { | |
13798 | if (temp2) | |
13799 | delete arg2; | |
13800 | } | |
13801 | { | |
13802 | if (temp3) | |
13803 | delete arg3; | |
13804 | } | |
13805 | return NULL; | |
13806 | } | |
13807 | ||
13808 | ||
13809 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13810 | PyObject *resultobj; | |
13811 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13812 | wxString *arg2 = 0 ; | |
13813 | long arg3 = (long) 0 ; | |
13814 | long result; | |
423f194a | 13815 | bool temp2 = False ; |
d14a1e28 RD |
13816 | PyObject * obj0 = 0 ; |
13817 | PyObject * obj1 = 0 ; | |
13818 | char *kwnames[] = { | |
13819 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13820 | }; | |
13821 | ||
13822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13824 | { | |
13825 | arg2 = wxString_in_helper(obj1); | |
13826 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13827 | temp2 = True; |
d14a1e28 RD |
13828 | } |
13829 | { | |
13830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13831 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
13832 | ||
13833 | wxPyEndAllowThreads(__tstate); | |
13834 | if (PyErr_Occurred()) SWIG_fail; | |
13835 | } | |
13836 | resultobj = PyInt_FromLong((long)result); | |
13837 | { | |
13838 | if (temp2) | |
13839 | delete arg2; | |
13840 | } | |
13841 | return resultobj; | |
13842 | fail: | |
13843 | { | |
13844 | if (temp2) | |
13845 | delete arg2; | |
13846 | } | |
13847 | return NULL; | |
13848 | } | |
13849 | ||
13850 | ||
13851 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13852 | PyObject *resultobj; | |
13853 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13854 | wxString *arg2 = 0 ; | |
13855 | double arg3 = (double) 0.0 ; | |
13856 | double result; | |
423f194a | 13857 | bool temp2 = False ; |
d14a1e28 RD |
13858 | PyObject * obj0 = 0 ; |
13859 | PyObject * obj1 = 0 ; | |
13860 | char *kwnames[] = { | |
13861 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13862 | }; | |
13863 | ||
13864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|d:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13866 | { | |
13867 | arg2 = wxString_in_helper(obj1); | |
13868 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13869 | temp2 = True; |
d14a1e28 RD |
13870 | } |
13871 | { | |
13872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13873 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
13874 | ||
13875 | wxPyEndAllowThreads(__tstate); | |
13876 | if (PyErr_Occurred()) SWIG_fail; | |
13877 | } | |
13878 | resultobj = PyFloat_FromDouble(result); | |
13879 | { | |
13880 | if (temp2) | |
13881 | delete arg2; | |
13882 | } | |
13883 | return resultobj; | |
13884 | fail: | |
13885 | { | |
13886 | if (temp2) | |
13887 | delete arg2; | |
13888 | } | |
13889 | return NULL; | |
13890 | } | |
13891 | ||
13892 | ||
13893 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13894 | PyObject *resultobj; | |
13895 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13896 | wxString *arg2 = 0 ; | |
423f194a | 13897 | bool arg3 = (bool) False ; |
d14a1e28 | 13898 | bool result; |
423f194a | 13899 | bool temp2 = False ; |
d14a1e28 RD |
13900 | PyObject * obj0 = 0 ; |
13901 | PyObject * obj1 = 0 ; | |
13902 | PyObject * obj2 = 0 ; | |
13903 | char *kwnames[] = { | |
13904 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13905 | }; | |
13906 | ||
13907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13909 | { | |
13910 | arg2 = wxString_in_helper(obj1); | |
13911 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13912 | temp2 = True; |
d14a1e28 RD |
13913 | } |
13914 | if (obj2) { | |
13915 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
13918 | { | |
13919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13920 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
13921 | ||
13922 | wxPyEndAllowThreads(__tstate); | |
13923 | if (PyErr_Occurred()) SWIG_fail; | |
13924 | } | |
13925 | resultobj = PyInt_FromLong((long)result); | |
13926 | { | |
13927 | if (temp2) | |
13928 | delete arg2; | |
13929 | } | |
13930 | return resultobj; | |
13931 | fail: | |
13932 | { | |
13933 | if (temp2) | |
13934 | delete arg2; | |
13935 | } | |
13936 | return NULL; | |
13937 | } | |
13938 | ||
13939 | ||
13940 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13941 | PyObject *resultobj; | |
13942 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13943 | wxString *arg2 = 0 ; | |
13944 | wxString *arg3 = 0 ; | |
13945 | bool result; | |
423f194a RD |
13946 | bool temp2 = False ; |
13947 | bool temp3 = False ; | |
d14a1e28 RD |
13948 | PyObject * obj0 = 0 ; |
13949 | PyObject * obj1 = 0 ; | |
13950 | PyObject * obj2 = 0 ; | |
13951 | char *kwnames[] = { | |
13952 | (char *) "self",(char *) "key",(char *) "value", NULL | |
13953 | }; | |
13954 | ||
13955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13957 | { | |
13958 | arg2 = wxString_in_helper(obj1); | |
13959 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13960 | temp2 = True; |
d14a1e28 RD |
13961 | } |
13962 | { | |
13963 | arg3 = wxString_in_helper(obj2); | |
13964 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13965 | temp3 = True; |
d14a1e28 RD |
13966 | } |
13967 | { | |
13968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13969 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
13970 | ||
13971 | wxPyEndAllowThreads(__tstate); | |
13972 | if (PyErr_Occurred()) SWIG_fail; | |
13973 | } | |
13974 | resultobj = PyInt_FromLong((long)result); | |
13975 | { | |
13976 | if (temp2) | |
13977 | delete arg2; | |
13978 | } | |
13979 | { | |
13980 | if (temp3) | |
13981 | delete arg3; | |
13982 | } | |
13983 | return resultobj; | |
13984 | fail: | |
13985 | { | |
13986 | if (temp2) | |
13987 | delete arg2; | |
13988 | } | |
13989 | { | |
13990 | if (temp3) | |
13991 | delete arg3; | |
13992 | } | |
13993 | return NULL; | |
13994 | } | |
13995 | ||
13996 | ||
13997 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13998 | PyObject *resultobj; | |
13999 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14000 | wxString *arg2 = 0 ; | |
14001 | long arg3 ; | |
14002 | bool result; | |
423f194a | 14003 | bool temp2 = False ; |
d14a1e28 RD |
14004 | PyObject * obj0 = 0 ; |
14005 | PyObject * obj1 = 0 ; | |
14006 | char *kwnames[] = { | |
14007 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14008 | }; | |
14009 | ||
14010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14012 | { | |
14013 | arg2 = wxString_in_helper(obj1); | |
14014 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14015 | temp2 = True; |
d14a1e28 RD |
14016 | } |
14017 | { | |
14018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14019 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14020 | ||
14021 | wxPyEndAllowThreads(__tstate); | |
14022 | if (PyErr_Occurred()) SWIG_fail; | |
14023 | } | |
14024 | resultobj = PyInt_FromLong((long)result); | |
14025 | { | |
14026 | if (temp2) | |
14027 | delete arg2; | |
14028 | } | |
14029 | return resultobj; | |
14030 | fail: | |
14031 | { | |
14032 | if (temp2) | |
14033 | delete arg2; | |
14034 | } | |
14035 | return NULL; | |
14036 | } | |
14037 | ||
14038 | ||
14039 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14040 | PyObject *resultobj; | |
14041 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14042 | wxString *arg2 = 0 ; | |
14043 | double arg3 ; | |
14044 | bool result; | |
423f194a | 14045 | bool temp2 = False ; |
d14a1e28 RD |
14046 | PyObject * obj0 = 0 ; |
14047 | PyObject * obj1 = 0 ; | |
14048 | char *kwnames[] = { | |
14049 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14050 | }; | |
14051 | ||
14052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14054 | { | |
14055 | arg2 = wxString_in_helper(obj1); | |
14056 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14057 | temp2 = True; |
d14a1e28 RD |
14058 | } |
14059 | { | |
14060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14061 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14062 | ||
14063 | wxPyEndAllowThreads(__tstate); | |
14064 | if (PyErr_Occurred()) SWIG_fail; | |
14065 | } | |
14066 | resultobj = PyInt_FromLong((long)result); | |
14067 | { | |
14068 | if (temp2) | |
14069 | delete arg2; | |
14070 | } | |
14071 | return resultobj; | |
14072 | fail: | |
14073 | { | |
14074 | if (temp2) | |
14075 | delete arg2; | |
14076 | } | |
14077 | return NULL; | |
14078 | } | |
14079 | ||
14080 | ||
14081 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14082 | PyObject *resultobj; | |
14083 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14084 | wxString *arg2 = 0 ; | |
14085 | bool arg3 ; | |
14086 | bool result; | |
423f194a | 14087 | bool temp2 = False ; |
d14a1e28 RD |
14088 | PyObject * obj0 = 0 ; |
14089 | PyObject * obj1 = 0 ; | |
14090 | PyObject * obj2 = 0 ; | |
14091 | char *kwnames[] = { | |
14092 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14093 | }; | |
14094 | ||
14095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14097 | { | |
14098 | arg2 = wxString_in_helper(obj1); | |
14099 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14100 | temp2 = True; |
d14a1e28 RD |
14101 | } |
14102 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14103 | if (PyErr_Occurred()) SWIG_fail; | |
14104 | { | |
14105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14106 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14107 | ||
14108 | wxPyEndAllowThreads(__tstate); | |
14109 | if (PyErr_Occurred()) SWIG_fail; | |
14110 | } | |
14111 | resultobj = PyInt_FromLong((long)result); | |
14112 | { | |
14113 | if (temp2) | |
14114 | delete arg2; | |
14115 | } | |
14116 | return resultobj; | |
14117 | fail: | |
14118 | { | |
14119 | if (temp2) | |
14120 | delete arg2; | |
14121 | } | |
14122 | return NULL; | |
14123 | } | |
14124 | ||
14125 | ||
14126 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14127 | PyObject *resultobj; | |
14128 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14129 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14130 | bool result; |
14131 | PyObject * obj0 = 0 ; | |
14132 | PyObject * obj1 = 0 ; | |
14133 | char *kwnames[] = { | |
14134 | (char *) "self",(char *) "bCurrentOnly", NULL | |
14135 | }; | |
14136 | ||
14137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
14138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14139 | if (obj1) { | |
14140 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14141 | if (PyErr_Occurred()) SWIG_fail; | |
14142 | } | |
14143 | { | |
14144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14145 | result = (bool)(arg1)->Flush(arg2); | |
14146 | ||
14147 | wxPyEndAllowThreads(__tstate); | |
14148 | if (PyErr_Occurred()) SWIG_fail; | |
14149 | } | |
14150 | resultobj = PyInt_FromLong((long)result); | |
14151 | return resultobj; | |
14152 | fail: | |
14153 | return NULL; | |
14154 | } | |
14155 | ||
14156 | ||
14157 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14158 | PyObject *resultobj; | |
14159 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14160 | wxString *arg2 = 0 ; | |
14161 | wxString *arg3 = 0 ; | |
14162 | bool result; | |
423f194a RD |
14163 | bool temp2 = False ; |
14164 | bool temp3 = False ; | |
d14a1e28 RD |
14165 | PyObject * obj0 = 0 ; |
14166 | PyObject * obj1 = 0 ; | |
14167 | PyObject * obj2 = 0 ; | |
14168 | char *kwnames[] = { | |
14169 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14170 | }; | |
14171 | ||
14172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14174 | { | |
14175 | arg2 = wxString_in_helper(obj1); | |
14176 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14177 | temp2 = True; |
d14a1e28 RD |
14178 | } |
14179 | { | |
14180 | arg3 = wxString_in_helper(obj2); | |
14181 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14182 | temp3 = True; |
d14a1e28 RD |
14183 | } |
14184 | { | |
14185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14186 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
14187 | ||
14188 | wxPyEndAllowThreads(__tstate); | |
14189 | if (PyErr_Occurred()) SWIG_fail; | |
14190 | } | |
14191 | resultobj = PyInt_FromLong((long)result); | |
14192 | { | |
14193 | if (temp2) | |
14194 | delete arg2; | |
14195 | } | |
14196 | { | |
14197 | if (temp3) | |
14198 | delete arg3; | |
14199 | } | |
14200 | return resultobj; | |
14201 | fail: | |
14202 | { | |
14203 | if (temp2) | |
14204 | delete arg2; | |
14205 | } | |
14206 | { | |
14207 | if (temp3) | |
14208 | delete arg3; | |
14209 | } | |
14210 | return NULL; | |
14211 | } | |
14212 | ||
14213 | ||
14214 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14215 | PyObject *resultobj; | |
14216 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14217 | wxString *arg2 = 0 ; | |
14218 | wxString *arg3 = 0 ; | |
14219 | bool result; | |
423f194a RD |
14220 | bool temp2 = False ; |
14221 | bool temp3 = False ; | |
d14a1e28 RD |
14222 | PyObject * obj0 = 0 ; |
14223 | PyObject * obj1 = 0 ; | |
14224 | PyObject * obj2 = 0 ; | |
14225 | char *kwnames[] = { | |
14226 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14227 | }; | |
14228 | ||
14229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14231 | { | |
14232 | arg2 = wxString_in_helper(obj1); | |
14233 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14234 | temp2 = True; |
d14a1e28 RD |
14235 | } |
14236 | { | |
14237 | arg3 = wxString_in_helper(obj2); | |
14238 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14239 | temp3 = True; |
d14a1e28 RD |
14240 | } |
14241 | { | |
14242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14243 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
14244 | ||
14245 | wxPyEndAllowThreads(__tstate); | |
14246 | if (PyErr_Occurred()) SWIG_fail; | |
14247 | } | |
14248 | resultobj = PyInt_FromLong((long)result); | |
14249 | { | |
14250 | if (temp2) | |
14251 | delete arg2; | |
14252 | } | |
14253 | { | |
14254 | if (temp3) | |
14255 | delete arg3; | |
14256 | } | |
14257 | return resultobj; | |
14258 | fail: | |
14259 | { | |
14260 | if (temp2) | |
14261 | delete arg2; | |
14262 | } | |
14263 | { | |
14264 | if (temp3) | |
14265 | delete arg3; | |
14266 | } | |
14267 | return NULL; | |
14268 | } | |
14269 | ||
14270 | ||
14271 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14272 | PyObject *resultobj; | |
14273 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14274 | wxString *arg2 = 0 ; | |
423f194a | 14275 | bool arg3 = (bool) True ; |
d14a1e28 | 14276 | bool result; |
423f194a | 14277 | bool temp2 = False ; |
d14a1e28 RD |
14278 | PyObject * obj0 = 0 ; |
14279 | PyObject * obj1 = 0 ; | |
14280 | PyObject * obj2 = 0 ; | |
14281 | char *kwnames[] = { | |
14282 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
14283 | }; | |
14284 | ||
14285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14287 | { | |
14288 | arg2 = wxString_in_helper(obj1); | |
14289 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14290 | temp2 = True; |
d14a1e28 RD |
14291 | } |
14292 | if (obj2) { | |
14293 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | } | |
14296 | { | |
14297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14298 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
14299 | ||
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
14303 | resultobj = PyInt_FromLong((long)result); | |
14304 | { | |
14305 | if (temp2) | |
14306 | delete arg2; | |
14307 | } | |
14308 | return resultobj; | |
14309 | fail: | |
14310 | { | |
14311 | if (temp2) | |
14312 | delete arg2; | |
14313 | } | |
14314 | return NULL; | |
14315 | } | |
14316 | ||
14317 | ||
14318 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14319 | PyObject *resultobj; | |
14320 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14321 | wxString *arg2 = 0 ; | |
14322 | bool result; | |
423f194a | 14323 | bool temp2 = False ; |
d14a1e28 RD |
14324 | PyObject * obj0 = 0 ; |
14325 | PyObject * obj1 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "self",(char *) "key", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
14331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14332 | { | |
14333 | arg2 = wxString_in_helper(obj1); | |
14334 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14335 | temp2 = True; |
d14a1e28 RD |
14336 | } |
14337 | { | |
14338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14339 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
14340 | ||
14341 | wxPyEndAllowThreads(__tstate); | |
14342 | if (PyErr_Occurred()) SWIG_fail; | |
14343 | } | |
14344 | resultobj = PyInt_FromLong((long)result); | |
14345 | { | |
14346 | if (temp2) | |
14347 | delete arg2; | |
14348 | } | |
14349 | return resultobj; | |
14350 | fail: | |
14351 | { | |
14352 | if (temp2) | |
14353 | delete arg2; | |
14354 | } | |
14355 | return NULL; | |
14356 | } | |
14357 | ||
14358 | ||
14359 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14360 | PyObject *resultobj; | |
14361 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14362 | bool result; | |
14363 | PyObject * obj0 = 0 ; | |
14364 | char *kwnames[] = { | |
14365 | (char *) "self", NULL | |
14366 | }; | |
14367 | ||
14368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
14369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14370 | { | |
14371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14372 | result = (bool)(arg1)->DeleteAll(); | |
14373 | ||
14374 | wxPyEndAllowThreads(__tstate); | |
14375 | if (PyErr_Occurred()) SWIG_fail; | |
14376 | } | |
14377 | resultobj = PyInt_FromLong((long)result); | |
14378 | return resultobj; | |
14379 | fail: | |
14380 | return NULL; | |
14381 | } | |
14382 | ||
14383 | ||
14384 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14385 | PyObject *resultobj; | |
14386 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14387 | bool result; | |
14388 | PyObject * obj0 = 0 ; | |
14389 | char *kwnames[] = { | |
14390 | (char *) "self", NULL | |
14391 | }; | |
14392 | ||
14393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
14394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14395 | { | |
14396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14397 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
14398 | ||
14399 | wxPyEndAllowThreads(__tstate); | |
14400 | if (PyErr_Occurred()) SWIG_fail; | |
14401 | } | |
14402 | resultobj = PyInt_FromLong((long)result); | |
14403 | return resultobj; | |
14404 | fail: | |
14405 | return NULL; | |
14406 | } | |
14407 | ||
14408 | ||
14409 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14410 | PyObject *resultobj; | |
14411 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14412 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14413 | PyObject * obj0 = 0 ; |
14414 | PyObject * obj1 = 0 ; | |
14415 | char *kwnames[] = { | |
14416 | (char *) "self",(char *) "bDoIt", NULL | |
14417 | }; | |
14418 | ||
14419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14421 | if (obj1) { | |
14422 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14423 | if (PyErr_Occurred()) SWIG_fail; | |
14424 | } | |
14425 | { | |
14426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14427 | (arg1)->SetExpandEnvVars(arg2); | |
14428 | ||
14429 | wxPyEndAllowThreads(__tstate); | |
14430 | if (PyErr_Occurred()) SWIG_fail; | |
14431 | } | |
14432 | Py_INCREF(Py_None); resultobj = Py_None; | |
14433 | return resultobj; | |
14434 | fail: | |
14435 | return NULL; | |
14436 | } | |
14437 | ||
14438 | ||
14439 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14440 | PyObject *resultobj; | |
14441 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14442 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14443 | PyObject * obj0 = 0 ; |
14444 | PyObject * obj1 = 0 ; | |
14445 | char *kwnames[] = { | |
14446 | (char *) "self",(char *) "bDoIt", NULL | |
14447 | }; | |
14448 | ||
14449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
14450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14451 | if (obj1) { | |
14452 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14453 | if (PyErr_Occurred()) SWIG_fail; | |
14454 | } | |
14455 | { | |
14456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14457 | (arg1)->SetRecordDefaults(arg2); | |
14458 | ||
14459 | wxPyEndAllowThreads(__tstate); | |
14460 | if (PyErr_Occurred()) SWIG_fail; | |
14461 | } | |
14462 | Py_INCREF(Py_None); resultobj = Py_None; | |
14463 | return resultobj; | |
14464 | fail: | |
14465 | return NULL; | |
14466 | } | |
14467 | ||
14468 | ||
14469 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14470 | PyObject *resultobj; | |
14471 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14472 | bool result; | |
14473 | PyObject * obj0 = 0 ; | |
14474 | char *kwnames[] = { | |
14475 | (char *) "self", NULL | |
14476 | }; | |
14477 | ||
14478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
14479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14480 | { | |
14481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14482 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
14483 | ||
14484 | wxPyEndAllowThreads(__tstate); | |
14485 | if (PyErr_Occurred()) SWIG_fail; | |
14486 | } | |
14487 | resultobj = PyInt_FromLong((long)result); | |
14488 | return resultobj; | |
14489 | fail: | |
14490 | return NULL; | |
14491 | } | |
14492 | ||
14493 | ||
14494 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14495 | PyObject *resultobj; | |
14496 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14497 | wxString *arg2 = 0 ; | |
14498 | wxString result; | |
423f194a | 14499 | bool temp2 = False ; |
d14a1e28 RD |
14500 | PyObject * obj0 = 0 ; |
14501 | PyObject * obj1 = 0 ; | |
14502 | char *kwnames[] = { | |
14503 | (char *) "self",(char *) "str", NULL | |
14504 | }; | |
14505 | ||
14506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14508 | { | |
14509 | arg2 = wxString_in_helper(obj1); | |
14510 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14511 | temp2 = True; |
d14a1e28 RD |
14512 | } |
14513 | { | |
14514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14515 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
14516 | ||
14517 | wxPyEndAllowThreads(__tstate); | |
14518 | if (PyErr_Occurred()) SWIG_fail; | |
14519 | } | |
14520 | { | |
14521 | #if wxUSE_UNICODE | |
14522 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14523 | #else | |
14524 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14525 | #endif | |
14526 | } | |
14527 | { | |
14528 | if (temp2) | |
14529 | delete arg2; | |
14530 | } | |
14531 | return resultobj; | |
14532 | fail: | |
14533 | { | |
14534 | if (temp2) | |
14535 | delete arg2; | |
14536 | } | |
14537 | return NULL; | |
14538 | } | |
14539 | ||
14540 | ||
14541 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14542 | PyObject *resultobj; | |
14543 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14544 | wxString result; | |
14545 | PyObject * obj0 = 0 ; | |
14546 | char *kwnames[] = { | |
14547 | (char *) "self", NULL | |
14548 | }; | |
14549 | ||
14550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
14551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14552 | { | |
14553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14554 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
14555 | ||
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
14559 | { | |
14560 | #if wxUSE_UNICODE | |
14561 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14562 | #else | |
14563 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14564 | #endif | |
14565 | } | |
14566 | return resultobj; | |
14567 | fail: | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
14572 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14573 | PyObject *resultobj; | |
14574 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14575 | wxString result; | |
14576 | PyObject * obj0 = 0 ; | |
14577 | char *kwnames[] = { | |
14578 | (char *) "self", NULL | |
14579 | }; | |
14580 | ||
14581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
14582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14583 | { | |
14584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14585 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
14586 | ||
14587 | wxPyEndAllowThreads(__tstate); | |
14588 | if (PyErr_Occurred()) SWIG_fail; | |
14589 | } | |
14590 | { | |
14591 | #if wxUSE_UNICODE | |
14592 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14593 | #else | |
14594 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14595 | #endif | |
14596 | } | |
14597 | return resultobj; | |
14598 | fail: | |
14599 | return NULL; | |
14600 | } | |
14601 | ||
14602 | ||
14603 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14604 | PyObject *resultobj; | |
14605 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14606 | wxString *arg2 = 0 ; | |
423f194a | 14607 | bool temp2 = False ; |
d14a1e28 RD |
14608 | PyObject * obj0 = 0 ; |
14609 | PyObject * obj1 = 0 ; | |
14610 | char *kwnames[] = { | |
14611 | (char *) "self",(char *) "appName", NULL | |
14612 | }; | |
14613 | ||
14614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
14615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14616 | { | |
14617 | arg2 = wxString_in_helper(obj1); | |
14618 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14619 | temp2 = True; |
d14a1e28 RD |
14620 | } |
14621 | { | |
14622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14623 | (arg1)->SetAppName((wxString const &)*arg2); | |
14624 | ||
14625 | wxPyEndAllowThreads(__tstate); | |
14626 | if (PyErr_Occurred()) SWIG_fail; | |
14627 | } | |
14628 | Py_INCREF(Py_None); resultobj = Py_None; | |
14629 | { | |
14630 | if (temp2) | |
14631 | delete arg2; | |
14632 | } | |
14633 | return resultobj; | |
14634 | fail: | |
14635 | { | |
14636 | if (temp2) | |
14637 | delete arg2; | |
14638 | } | |
14639 | return NULL; | |
14640 | } | |
14641 | ||
14642 | ||
14643 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14644 | PyObject *resultobj; | |
14645 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14646 | wxString *arg2 = 0 ; | |
423f194a | 14647 | bool temp2 = False ; |
d14a1e28 RD |
14648 | PyObject * obj0 = 0 ; |
14649 | PyObject * obj1 = 0 ; | |
14650 | char *kwnames[] = { | |
14651 | (char *) "self",(char *) "vendorName", NULL | |
14652 | }; | |
14653 | ||
14654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
14655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14656 | { | |
14657 | arg2 = wxString_in_helper(obj1); | |
14658 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14659 | temp2 = True; |
d14a1e28 RD |
14660 | } |
14661 | { | |
14662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14663 | (arg1)->SetVendorName((wxString const &)*arg2); | |
14664 | ||
14665 | wxPyEndAllowThreads(__tstate); | |
14666 | if (PyErr_Occurred()) SWIG_fail; | |
14667 | } | |
14668 | Py_INCREF(Py_None); resultobj = Py_None; | |
14669 | { | |
14670 | if (temp2) | |
14671 | delete arg2; | |
14672 | } | |
14673 | return resultobj; | |
14674 | fail: | |
14675 | { | |
14676 | if (temp2) | |
14677 | delete arg2; | |
14678 | } | |
14679 | return NULL; | |
14680 | } | |
14681 | ||
14682 | ||
14683 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14684 | PyObject *resultobj; | |
14685 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14686 | long arg2 ; | |
14687 | PyObject * obj0 = 0 ; | |
14688 | char *kwnames[] = { | |
14689 | (char *) "self",(char *) "style", NULL | |
14690 | }; | |
14691 | ||
14692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
14693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14694 | { | |
14695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14696 | (arg1)->SetStyle(arg2); | |
14697 | ||
14698 | wxPyEndAllowThreads(__tstate); | |
14699 | if (PyErr_Occurred()) SWIG_fail; | |
14700 | } | |
14701 | Py_INCREF(Py_None); resultobj = Py_None; | |
14702 | return resultobj; | |
14703 | fail: | |
14704 | return NULL; | |
14705 | } | |
14706 | ||
14707 | ||
14708 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14709 | PyObject *resultobj; | |
14710 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14711 | long result; | |
14712 | PyObject * obj0 = 0 ; | |
14713 | char *kwnames[] = { | |
14714 | (char *) "self", NULL | |
14715 | }; | |
14716 | ||
14717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
14718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14719 | { | |
14720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14721 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
14722 | ||
14723 | wxPyEndAllowThreads(__tstate); | |
14724 | if (PyErr_Occurred()) SWIG_fail; | |
14725 | } | |
14726 | resultobj = PyInt_FromLong((long)result); | |
14727 | return resultobj; | |
14728 | fail: | |
14729 | return NULL; | |
14730 | } | |
14731 | ||
14732 | ||
14733 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
14734 | PyObject *obj; | |
14735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14736 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
14737 | Py_INCREF(obj); | |
14738 | return Py_BuildValue((char *)""); | |
14739 | } | |
14740 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14741 | PyObject *resultobj; | |
14742 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14743 | wxString *arg2 = 0 ; | |
14744 | wxConfigPathChanger *result; | |
423f194a | 14745 | bool temp2 = False ; |
d14a1e28 RD |
14746 | PyObject * obj0 = 0 ; |
14747 | PyObject * obj1 = 0 ; | |
14748 | char *kwnames[] = { | |
14749 | (char *) "pContainer",(char *) "strEntry", NULL | |
14750 | }; | |
14751 | ||
14752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
14753 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14754 | { | |
14755 | arg2 = wxString_in_helper(obj1); | |
14756 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14757 | temp2 = True; |
d14a1e28 RD |
14758 | } |
14759 | { | |
14760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14761 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
14762 | ||
14763 | wxPyEndAllowThreads(__tstate); | |
14764 | if (PyErr_Occurred()) SWIG_fail; | |
14765 | } | |
14766 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
14767 | { | |
14768 | if (temp2) | |
14769 | delete arg2; | |
14770 | } | |
14771 | return resultobj; | |
14772 | fail: | |
14773 | { | |
14774 | if (temp2) | |
14775 | delete arg2; | |
14776 | } | |
14777 | return NULL; | |
14778 | } | |
14779 | ||
14780 | ||
14781 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14782 | PyObject *resultobj; | |
14783 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14784 | PyObject * obj0 = 0 ; | |
14785 | char *kwnames[] = { | |
14786 | (char *) "self", NULL | |
14787 | }; | |
14788 | ||
14789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
14790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14791 | { | |
14792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14793 | delete arg1; | |
14794 | ||
14795 | wxPyEndAllowThreads(__tstate); | |
14796 | if (PyErr_Occurred()) SWIG_fail; | |
14797 | } | |
14798 | Py_INCREF(Py_None); resultobj = Py_None; | |
14799 | return resultobj; | |
14800 | fail: | |
14801 | return NULL; | |
14802 | } | |
14803 | ||
14804 | ||
14805 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14806 | PyObject *resultobj; | |
14807 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14808 | wxString *result; | |
14809 | PyObject * obj0 = 0 ; | |
14810 | char *kwnames[] = { | |
14811 | (char *) "self", NULL | |
14812 | }; | |
14813 | ||
14814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
14815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14816 | { | |
14817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14818 | { | |
14819 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
14820 | result = (wxString *) &_result_ref; | |
14821 | } | |
14822 | ||
14823 | wxPyEndAllowThreads(__tstate); | |
14824 | if (PyErr_Occurred()) SWIG_fail; | |
14825 | } | |
f0983263 RD |
14826 | { |
14827 | #if wxUSE_UNICODE | |
14828 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14829 | #else | |
14830 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14831 | #endif | |
14832 | } | |
d14a1e28 RD |
14833 | return resultobj; |
14834 | fail: | |
14835 | return NULL; | |
14836 | } | |
14837 | ||
14838 | ||
14839 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
14840 | PyObject *obj; | |
14841 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14842 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
14843 | Py_INCREF(obj); | |
14844 | return Py_BuildValue((char *)""); | |
14845 | } | |
14846 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14847 | PyObject *resultobj; | |
14848 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14849 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14850 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14851 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14852 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14853 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14854 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14855 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14856 | long arg5 = (long) 0 ; | |
14857 | wxConfig *result; | |
423f194a RD |
14858 | bool temp1 = False ; |
14859 | bool temp2 = False ; | |
14860 | bool temp3 = False ; | |
14861 | bool temp4 = False ; | |
d14a1e28 RD |
14862 | PyObject * obj0 = 0 ; |
14863 | PyObject * obj1 = 0 ; | |
14864 | PyObject * obj2 = 0 ; | |
14865 | PyObject * obj3 = 0 ; | |
14866 | char *kwnames[] = { | |
14867 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
14868 | }; | |
14869 | ||
14870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
14871 | if (obj0) { | |
14872 | { | |
14873 | arg1 = wxString_in_helper(obj0); | |
14874 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14875 | temp1 = True; |
d14a1e28 RD |
14876 | } |
14877 | } | |
14878 | if (obj1) { | |
14879 | { | |
14880 | arg2 = wxString_in_helper(obj1); | |
14881 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14882 | temp2 = True; |
d14a1e28 RD |
14883 | } |
14884 | } | |
14885 | if (obj2) { | |
14886 | { | |
14887 | arg3 = wxString_in_helper(obj2); | |
14888 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14889 | temp3 = True; |
d14a1e28 RD |
14890 | } |
14891 | } | |
14892 | if (obj3) { | |
14893 | { | |
14894 | arg4 = wxString_in_helper(obj3); | |
14895 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14896 | temp4 = True; |
d14a1e28 RD |
14897 | } |
14898 | } | |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
14904 | if (PyErr_Occurred()) SWIG_fail; | |
14905 | } | |
14906 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
14907 | { | |
14908 | if (temp1) | |
14909 | delete arg1; | |
14910 | } | |
14911 | { | |
14912 | if (temp2) | |
14913 | delete arg2; | |
14914 | } | |
14915 | { | |
14916 | if (temp3) | |
14917 | delete arg3; | |
14918 | } | |
14919 | { | |
14920 | if (temp4) | |
14921 | delete arg4; | |
14922 | } | |
14923 | return resultobj; | |
14924 | fail: | |
14925 | { | |
14926 | if (temp1) | |
14927 | delete arg1; | |
14928 | } | |
14929 | { | |
14930 | if (temp2) | |
14931 | delete arg2; | |
14932 | } | |
14933 | { | |
14934 | if (temp3) | |
14935 | delete arg3; | |
14936 | } | |
14937 | { | |
14938 | if (temp4) | |
14939 | delete arg4; | |
14940 | } | |
14941 | return NULL; | |
14942 | } | |
14943 | ||
14944 | ||
14945 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14946 | PyObject *resultobj; | |
14947 | wxConfig *arg1 = (wxConfig *) 0 ; | |
14948 | PyObject * obj0 = 0 ; | |
14949 | char *kwnames[] = { | |
14950 | (char *) "self", NULL | |
14951 | }; | |
14952 | ||
14953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
14954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14955 | { | |
14956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14957 | delete arg1; | |
14958 | ||
14959 | wxPyEndAllowThreads(__tstate); | |
14960 | if (PyErr_Occurred()) SWIG_fail; | |
14961 | } | |
14962 | Py_INCREF(Py_None); resultobj = Py_None; | |
14963 | return resultobj; | |
14964 | fail: | |
14965 | return NULL; | |
14966 | } | |
14967 | ||
14968 | ||
14969 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
14970 | PyObject *obj; | |
14971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14972 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
14973 | Py_INCREF(obj); | |
14974 | return Py_BuildValue((char *)""); | |
14975 | } | |
14976 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14977 | PyObject *resultobj; | |
14978 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14979 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14980 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14981 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14982 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14983 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14984 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14985 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14986 | long arg5 = (long) 0 ; | |
14987 | wxFileConfig *result; | |
423f194a RD |
14988 | bool temp1 = False ; |
14989 | bool temp2 = False ; | |
14990 | bool temp3 = False ; | |
14991 | bool temp4 = False ; | |
d14a1e28 RD |
14992 | PyObject * obj0 = 0 ; |
14993 | PyObject * obj1 = 0 ; | |
14994 | PyObject * obj2 = 0 ; | |
14995 | PyObject * obj3 = 0 ; | |
14996 | char *kwnames[] = { | |
14997 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
14998 | }; | |
14999 | ||
15000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
15001 | if (obj0) { | |
15002 | { | |
15003 | arg1 = wxString_in_helper(obj0); | |
15004 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15005 | temp1 = True; |
d14a1e28 RD |
15006 | } |
15007 | } | |
15008 | if (obj1) { | |
15009 | { | |
15010 | arg2 = wxString_in_helper(obj1); | |
15011 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15012 | temp2 = True; |
d14a1e28 RD |
15013 | } |
15014 | } | |
15015 | if (obj2) { | |
15016 | { | |
15017 | arg3 = wxString_in_helper(obj2); | |
15018 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15019 | temp3 = True; |
d14a1e28 RD |
15020 | } |
15021 | } | |
15022 | if (obj3) { | |
15023 | { | |
15024 | arg4 = wxString_in_helper(obj3); | |
15025 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15026 | temp4 = True; |
d14a1e28 RD |
15027 | } |
15028 | } | |
15029 | { | |
15030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15031 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
15032 | ||
15033 | wxPyEndAllowThreads(__tstate); | |
15034 | if (PyErr_Occurred()) SWIG_fail; | |
15035 | } | |
15036 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
15037 | { | |
15038 | if (temp1) | |
15039 | delete arg1; | |
15040 | } | |
15041 | { | |
15042 | if (temp2) | |
15043 | delete arg2; | |
15044 | } | |
15045 | { | |
15046 | if (temp3) | |
15047 | delete arg3; | |
15048 | } | |
15049 | { | |
15050 | if (temp4) | |
15051 | delete arg4; | |
15052 | } | |
15053 | return resultobj; | |
15054 | fail: | |
15055 | { | |
15056 | if (temp1) | |
15057 | delete arg1; | |
15058 | } | |
15059 | { | |
15060 | if (temp2) | |
15061 | delete arg2; | |
15062 | } | |
15063 | { | |
15064 | if (temp3) | |
15065 | delete arg3; | |
15066 | } | |
15067 | { | |
15068 | if (temp4) | |
15069 | delete arg4; | |
15070 | } | |
15071 | return NULL; | |
15072 | } | |
15073 | ||
15074 | ||
15075 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15076 | PyObject *resultobj; | |
15077 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
15078 | PyObject * obj0 = 0 ; | |
15079 | char *kwnames[] = { | |
15080 | (char *) "self", NULL | |
15081 | }; | |
15082 | ||
15083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15085 | { | |
15086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15087 | delete arg1; | |
15088 | ||
15089 | wxPyEndAllowThreads(__tstate); | |
15090 | if (PyErr_Occurred()) SWIG_fail; | |
15091 | } | |
15092 | Py_INCREF(Py_None); resultobj = Py_None; | |
15093 | return resultobj; | |
15094 | fail: | |
15095 | return NULL; | |
15096 | } | |
15097 | ||
15098 | ||
15099 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
15100 | PyObject *obj; | |
15101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15102 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
15103 | Py_INCREF(obj); | |
15104 | return Py_BuildValue((char *)""); | |
15105 | } | |
15106 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15107 | PyObject *resultobj; | |
15108 | wxString *arg1 = 0 ; | |
15109 | wxString result; | |
423f194a | 15110 | bool temp1 = False ; |
d14a1e28 RD |
15111 | PyObject * obj0 = 0 ; |
15112 | char *kwnames[] = { | |
15113 | (char *) "sz", NULL | |
15114 | }; | |
15115 | ||
15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
15117 | { | |
15118 | arg1 = wxString_in_helper(obj0); | |
15119 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15120 | temp1 = True; |
d14a1e28 RD |
15121 | } |
15122 | { | |
15123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15124 | result = wxExpandEnvVars((wxString const &)*arg1); | |
15125 | ||
15126 | wxPyEndAllowThreads(__tstate); | |
15127 | if (PyErr_Occurred()) SWIG_fail; | |
15128 | } | |
15129 | { | |
15130 | #if wxUSE_UNICODE | |
15131 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15132 | #else | |
15133 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15134 | #endif | |
15135 | } | |
15136 | { | |
15137 | if (temp1) | |
15138 | delete arg1; | |
15139 | } | |
15140 | return resultobj; | |
15141 | fail: | |
15142 | { | |
15143 | if (temp1) | |
15144 | delete arg1; | |
15145 | } | |
15146 | return NULL; | |
15147 | } | |
15148 | ||
15149 | ||
15150 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15151 | PyObject *resultobj; | |
15152 | int arg1 ; | |
15153 | char *kwnames[] = { | |
15154 | (char *) "country", NULL | |
15155 | }; | |
15156 | ||
15157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_SetCountry",kwnames,&arg1)) goto fail; | |
15158 | { | |
15159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15160 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
15161 | ||
15162 | wxPyEndAllowThreads(__tstate); | |
15163 | if (PyErr_Occurred()) SWIG_fail; | |
15164 | } | |
15165 | Py_INCREF(Py_None); resultobj = Py_None; | |
15166 | return resultobj; | |
15167 | fail: | |
15168 | return NULL; | |
15169 | } | |
15170 | ||
15171 | ||
15172 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15173 | PyObject *resultobj; | |
15174 | int result; | |
15175 | char *kwnames[] = { | |
15176 | NULL | |
15177 | }; | |
15178 | ||
15179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
15180 | { | |
15181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15182 | result = (int)wxDateTime::GetCountry(); | |
15183 | ||
15184 | wxPyEndAllowThreads(__tstate); | |
15185 | if (PyErr_Occurred()) SWIG_fail; | |
15186 | } | |
15187 | resultobj = PyInt_FromLong((long)result); | |
15188 | return resultobj; | |
15189 | fail: | |
15190 | return NULL; | |
15191 | } | |
15192 | ||
15193 | ||
15194 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15195 | PyObject *resultobj; | |
15196 | int arg1 = (int) wxDateTime::Country_Default ; | |
15197 | bool result; | |
15198 | char *kwnames[] = { | |
15199 | (char *) "country", NULL | |
15200 | }; | |
15201 | ||
15202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_IsWestEuropeanCountry",kwnames,&arg1)) goto fail; | |
15203 | { | |
15204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15205 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
15206 | ||
15207 | wxPyEndAllowThreads(__tstate); | |
15208 | if (PyErr_Occurred()) SWIG_fail; | |
15209 | } | |
15210 | resultobj = PyInt_FromLong((long)result); | |
15211 | return resultobj; | |
15212 | fail: | |
15213 | return NULL; | |
15214 | } | |
15215 | ||
15216 | ||
15217 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15218 | PyObject *resultobj; | |
15219 | int arg1 = (int) wxDateTime::Gregorian ; | |
15220 | int result; | |
15221 | char *kwnames[] = { | |
15222 | (char *) "cal", NULL | |
15223 | }; | |
15224 | ||
15225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentYear",kwnames,&arg1)) goto fail; | |
15226 | { | |
15227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15228 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
15229 | ||
15230 | wxPyEndAllowThreads(__tstate); | |
15231 | if (PyErr_Occurred()) SWIG_fail; | |
15232 | } | |
15233 | resultobj = PyInt_FromLong((long)result); | |
15234 | return resultobj; | |
15235 | fail: | |
15236 | return NULL; | |
15237 | } | |
15238 | ||
15239 | ||
15240 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15241 | PyObject *resultobj; | |
15242 | int arg1 ; | |
15243 | int result; | |
15244 | char *kwnames[] = { | |
15245 | (char *) "year", NULL | |
15246 | }; | |
15247 | ||
15248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_ConvertYearToBC",kwnames,&arg1)) goto fail; | |
15249 | { | |
15250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15251 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
15252 | ||
15253 | wxPyEndAllowThreads(__tstate); | |
15254 | if (PyErr_Occurred()) SWIG_fail; | |
15255 | } | |
15256 | resultobj = PyInt_FromLong((long)result); | |
15257 | return resultobj; | |
15258 | fail: | |
15259 | return NULL; | |
15260 | } | |
15261 | ||
15262 | ||
15263 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15264 | PyObject *resultobj; | |
15265 | int arg1 = (int) wxDateTime::Gregorian ; | |
15266 | int result; | |
15267 | char *kwnames[] = { | |
15268 | (char *) "cal", NULL | |
15269 | }; | |
15270 | ||
15271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentMonth",kwnames,&arg1)) goto fail; | |
15272 | { | |
15273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15274 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
15275 | ||
15276 | wxPyEndAllowThreads(__tstate); | |
15277 | if (PyErr_Occurred()) SWIG_fail; | |
15278 | } | |
15279 | resultobj = PyInt_FromLong((long)result); | |
15280 | return resultobj; | |
15281 | fail: | |
15282 | return NULL; | |
15283 | } | |
15284 | ||
15285 | ||
15286 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15287 | PyObject *resultobj; | |
15288 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15289 | int arg2 = (int) wxDateTime::Gregorian ; | |
15290 | bool result; | |
15291 | char *kwnames[] = { | |
15292 | (char *) "year",(char *) "cal", NULL | |
15293 | }; | |
15294 | ||
15295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsLeapYear",kwnames,&arg1,&arg2)) goto fail; | |
15296 | { | |
15297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15298 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
15299 | ||
15300 | wxPyEndAllowThreads(__tstate); | |
15301 | if (PyErr_Occurred()) SWIG_fail; | |
15302 | } | |
15303 | resultobj = PyInt_FromLong((long)result); | |
15304 | return resultobj; | |
15305 | fail: | |
15306 | return NULL; | |
15307 | } | |
15308 | ||
15309 | ||
15310 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15311 | PyObject *resultobj; | |
15312 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15313 | int result; | |
15314 | char *kwnames[] = { | |
15315 | (char *) "year", NULL | |
15316 | }; | |
15317 | ||
15318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCentury",kwnames,&arg1)) goto fail; | |
15319 | { | |
15320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15321 | result = (int)wxDateTime::GetCentury(arg1); | |
15322 | ||
15323 | wxPyEndAllowThreads(__tstate); | |
15324 | if (PyErr_Occurred()) SWIG_fail; | |
15325 | } | |
15326 | resultobj = PyInt_FromLong((long)result); | |
15327 | return resultobj; | |
15328 | fail: | |
15329 | return NULL; | |
15330 | } | |
15331 | ||
15332 | ||
15333 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15334 | PyObject *resultobj; | |
15335 | int arg1 ; | |
15336 | int arg2 = (int) wxDateTime::Gregorian ; | |
44127b65 | 15337 | int result; |
d14a1e28 RD |
15338 | char *kwnames[] = { |
15339 | (char *) "year",(char *) "cal", NULL | |
15340 | }; | |
15341 | ||
15342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetNumberOfDaysinYear",kwnames,&arg1,&arg2)) goto fail; | |
15343 | { | |
15344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 15345 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
15346 | |
15347 | wxPyEndAllowThreads(__tstate); | |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
15349 | } | |
15350 | resultobj = PyInt_FromLong((long)result); | |
15351 | return resultobj; | |
15352 | fail: | |
15353 | return NULL; | |
15354 | } | |
15355 | ||
15356 | ||
15357 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15358 | PyObject *resultobj; | |
15359 | int arg1 ; | |
15360 | int arg2 = (int) wxDateTime::Inv_Year ; | |
15361 | int arg3 = (int) wxDateTime::Gregorian ; | |
44127b65 | 15362 | int result; |
d14a1e28 RD |
15363 | char *kwnames[] = { |
15364 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
15365 | }; | |
15366 | ||
15367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|ii:DateTime_GetNumberOfDaysInMonth",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
15368 | { | |
15369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 15370 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
15371 | |
15372 | wxPyEndAllowThreads(__tstate); | |
15373 | if (PyErr_Occurred()) SWIG_fail; | |
15374 | } | |
15375 | resultobj = PyInt_FromLong((long)result); | |
15376 | return resultobj; | |
15377 | fail: | |
15378 | return NULL; | |
15379 | } | |
15380 | ||
15381 | ||
15382 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15383 | PyObject *resultobj; | |
15384 | int arg1 ; | |
15385 | int arg2 = (int) wxDateTime::Name_Full ; | |
15386 | wxString result; | |
15387 | char *kwnames[] = { | |
15388 | (char *) "month",(char *) "flags", NULL | |
15389 | }; | |
15390 | ||
15391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetMonthName",kwnames,&arg1,&arg2)) goto fail; | |
15392 | { | |
15393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15394 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
15395 | ||
15396 | wxPyEndAllowThreads(__tstate); | |
15397 | if (PyErr_Occurred()) SWIG_fail; | |
15398 | } | |
15399 | { | |
15400 | #if wxUSE_UNICODE | |
15401 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15402 | #else | |
15403 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15404 | #endif | |
15405 | } | |
15406 | return resultobj; | |
15407 | fail: | |
15408 | return NULL; | |
15409 | } | |
15410 | ||
15411 | ||
15412 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15413 | PyObject *resultobj; | |
15414 | int arg1 ; | |
15415 | int arg2 = (int) wxDateTime::Name_Full ; | |
15416 | wxString result; | |
15417 | char *kwnames[] = { | |
15418 | (char *) "weekday",(char *) "flags", NULL | |
15419 | }; | |
15420 | ||
15421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetWeekDayName",kwnames,&arg1,&arg2)) goto fail; | |
15422 | { | |
15423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15424 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
15425 | ||
15426 | wxPyEndAllowThreads(__tstate); | |
15427 | if (PyErr_Occurred()) SWIG_fail; | |
15428 | } | |
15429 | { | |
15430 | #if wxUSE_UNICODE | |
15431 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15432 | #else | |
15433 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15434 | #endif | |
15435 | } | |
15436 | return resultobj; | |
15437 | fail: | |
15438 | return NULL; | |
15439 | } | |
15440 | ||
15441 | ||
15442 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15443 | PyObject *resultobj; | |
15444 | wxString *arg1 = (wxString *) 0 ; | |
15445 | wxString *arg2 = (wxString *) 0 ; | |
15446 | PyObject * obj0 = 0 ; | |
15447 | PyObject * obj1 = 0 ; | |
15448 | char *kwnames[] = { | |
15449 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
15450 | }; | |
15451 | ||
15452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
15453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15454 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15455 | { | |
15456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15457 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
15458 | ||
15459 | wxPyEndAllowThreads(__tstate); | |
15460 | if (PyErr_Occurred()) SWIG_fail; | |
15461 | } | |
15462 | Py_INCREF(Py_None); resultobj = Py_None; | |
15463 | return resultobj; | |
15464 | fail: | |
15465 | return NULL; | |
15466 | } | |
15467 | ||
15468 | ||
15469 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15470 | PyObject *resultobj; | |
15471 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15472 | int arg2 = (int) wxDateTime::Country_Default ; | |
15473 | bool result; | |
15474 | char *kwnames[] = { | |
15475 | (char *) "year",(char *) "country", NULL | |
15476 | }; | |
15477 | ||
15478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsDSTApplicable",kwnames,&arg1,&arg2)) goto fail; | |
15479 | { | |
15480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15481 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
15482 | ||
15483 | wxPyEndAllowThreads(__tstate); | |
15484 | if (PyErr_Occurred()) SWIG_fail; | |
15485 | } | |
15486 | resultobj = PyInt_FromLong((long)result); | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15494 | PyObject *resultobj; | |
15495 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15496 | int arg2 = (int) wxDateTime::Country_Default ; | |
15497 | wxDateTime result; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "year",(char *) "country", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetBeginDST",kwnames,&arg1,&arg2)) goto fail; | |
15503 | { | |
15504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15505 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
15506 | ||
15507 | wxPyEndAllowThreads(__tstate); | |
15508 | if (PyErr_Occurred()) SWIG_fail; | |
15509 | } | |
15510 | { | |
15511 | wxDateTime * resultptr; | |
15512 | resultptr = new wxDateTime((wxDateTime &) result); | |
15513 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15514 | } | |
15515 | return resultobj; | |
15516 | fail: | |
15517 | return NULL; | |
15518 | } | |
15519 | ||
15520 | ||
15521 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15522 | PyObject *resultobj; | |
15523 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15524 | int arg2 = (int) wxDateTime::Country_Default ; | |
15525 | wxDateTime result; | |
15526 | char *kwnames[] = { | |
15527 | (char *) "year",(char *) "country", NULL | |
15528 | }; | |
15529 | ||
15530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetEndDST",kwnames,&arg1,&arg2)) goto fail; | |
15531 | { | |
15532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15533 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
15534 | ||
15535 | wxPyEndAllowThreads(__tstate); | |
15536 | if (PyErr_Occurred()) SWIG_fail; | |
15537 | } | |
15538 | { | |
15539 | wxDateTime * resultptr; | |
15540 | resultptr = new wxDateTime((wxDateTime &) result); | |
15541 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15542 | } | |
15543 | return resultobj; | |
15544 | fail: | |
15545 | return NULL; | |
15546 | } | |
15547 | ||
15548 | ||
15549 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15550 | PyObject *resultobj; | |
15551 | wxDateTime result; | |
15552 | char *kwnames[] = { | |
15553 | NULL | |
15554 | }; | |
15555 | ||
15556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
15557 | { | |
15558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15559 | result = wxDateTime::Now(); | |
15560 | ||
15561 | wxPyEndAllowThreads(__tstate); | |
15562 | if (PyErr_Occurred()) SWIG_fail; | |
15563 | } | |
15564 | { | |
15565 | wxDateTime * resultptr; | |
15566 | resultptr = new wxDateTime((wxDateTime &) result); | |
15567 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15568 | } | |
15569 | return resultobj; | |
15570 | fail: | |
15571 | return NULL; | |
15572 | } | |
15573 | ||
15574 | ||
15575 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15576 | PyObject *resultobj; | |
15577 | wxDateTime result; | |
15578 | char *kwnames[] = { | |
15579 | NULL | |
15580 | }; | |
15581 | ||
15582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
15583 | { | |
15584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15585 | result = wxDateTime::UNow(); | |
15586 | ||
15587 | wxPyEndAllowThreads(__tstate); | |
15588 | if (PyErr_Occurred()) SWIG_fail; | |
15589 | } | |
15590 | { | |
15591 | wxDateTime * resultptr; | |
15592 | resultptr = new wxDateTime((wxDateTime &) result); | |
15593 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15594 | } | |
15595 | return resultobj; | |
15596 | fail: | |
15597 | return NULL; | |
15598 | } | |
15599 | ||
15600 | ||
15601 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15602 | PyObject *resultobj; | |
15603 | wxDateTime result; | |
15604 | char *kwnames[] = { | |
15605 | NULL | |
15606 | }; | |
15607 | ||
15608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
15609 | { | |
15610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15611 | result = wxDateTime::Today(); | |
15612 | ||
15613 | wxPyEndAllowThreads(__tstate); | |
15614 | if (PyErr_Occurred()) SWIG_fail; | |
15615 | } | |
15616 | { | |
15617 | wxDateTime * resultptr; | |
15618 | resultptr = new wxDateTime((wxDateTime &) result); | |
15619 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15620 | } | |
15621 | return resultobj; | |
15622 | fail: | |
15623 | return NULL; | |
15624 | } | |
15625 | ||
15626 | ||
15627 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15628 | PyObject *resultobj; | |
15629 | wxDateTime *result; | |
15630 | char *kwnames[] = { | |
15631 | NULL | |
15632 | }; | |
15633 | ||
15634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
15635 | { | |
15636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15637 | result = (wxDateTime *)new wxDateTime(); | |
15638 | ||
15639 | wxPyEndAllowThreads(__tstate); | |
15640 | if (PyErr_Occurred()) SWIG_fail; | |
15641 | } | |
15642 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15643 | return resultobj; | |
15644 | fail: | |
15645 | return NULL; | |
15646 | } | |
15647 | ||
15648 | ||
15649 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15650 | PyObject *resultobj; | |
15651 | time_t arg1 ; | |
15652 | wxDateTime *result; | |
15653 | PyObject * obj0 = 0 ; | |
15654 | char *kwnames[] = { | |
15655 | (char *) "timet", NULL | |
15656 | }; | |
15657 | ||
15658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15659 | arg1 = (time_t) PyInt_AsLong(obj0); | |
15660 | if (PyErr_Occurred()) SWIG_fail; | |
15661 | { | |
15662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15663 | result = (wxDateTime *)new wxDateTime(arg1); | |
15664 | ||
15665 | wxPyEndAllowThreads(__tstate); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | } | |
15668 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15669 | return resultobj; | |
15670 | fail: | |
15671 | return NULL; | |
15672 | } | |
15673 | ||
15674 | ||
15675 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15676 | PyObject *resultobj; | |
15677 | double arg1 ; | |
15678 | wxDateTime *result; | |
15679 | char *kwnames[] = { | |
15680 | (char *) "jdn", NULL | |
15681 | }; | |
15682 | ||
15683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"d:new_DateTimeFromJDN",kwnames,&arg1)) goto fail; | |
15684 | { | |
15685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15686 | result = (wxDateTime *)new wxDateTime(arg1); | |
15687 | ||
15688 | wxPyEndAllowThreads(__tstate); | |
15689 | if (PyErr_Occurred()) SWIG_fail; | |
15690 | } | |
15691 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15692 | return resultobj; | |
15693 | fail: | |
15694 | return NULL; | |
15695 | } | |
15696 | ||
15697 | ||
15698 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15699 | PyObject *resultobj; | |
44127b65 RD |
15700 | int arg1 ; |
15701 | int arg2 = (int) 0 ; | |
15702 | int arg3 = (int) 0 ; | |
15703 | int arg4 = (int) 0 ; | |
d14a1e28 | 15704 | wxDateTime *result; |
d14a1e28 RD |
15705 | char *kwnames[] = { |
15706 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15707 | }; | |
15708 | ||
44127b65 | 15709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iii:new_DateTimeFromHMS",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 RD |
15710 | { |
15711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15712 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
15713 | ||
15714 | wxPyEndAllowThreads(__tstate); | |
15715 | if (PyErr_Occurred()) SWIG_fail; | |
15716 | } | |
15717 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15718 | return resultobj; | |
15719 | fail: | |
15720 | return NULL; | |
15721 | } | |
15722 | ||
15723 | ||
15724 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15725 | PyObject *resultobj; | |
44127b65 | 15726 | int arg1 ; |
d14a1e28 RD |
15727 | int arg2 = (int) wxDateTime::Inv_Month ; |
15728 | int arg3 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
15729 | int arg4 = (int) 0 ; |
15730 | int arg5 = (int) 0 ; | |
15731 | int arg6 = (int) 0 ; | |
15732 | int arg7 = (int) 0 ; | |
d14a1e28 | 15733 | wxDateTime *result; |
d14a1e28 RD |
15734 | char *kwnames[] = { |
15735 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15736 | }; | |
15737 | ||
44127b65 | 15738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iiiiii:new_DateTimeFromDMY",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; |
d14a1e28 RD |
15739 | { |
15740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15741 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
15742 | ||
15743 | wxPyEndAllowThreads(__tstate); | |
15744 | if (PyErr_Occurred()) SWIG_fail; | |
15745 | } | |
15746 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15747 | return resultobj; | |
15748 | fail: | |
15749 | return NULL; | |
15750 | } | |
15751 | ||
15752 | ||
15753 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15754 | PyObject *resultobj; | |
15755 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15756 | PyObject * obj0 = 0 ; | |
15757 | char *kwnames[] = { | |
15758 | (char *) "self", NULL | |
15759 | }; | |
15760 | ||
15761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15763 | { | |
15764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15765 | delete arg1; | |
15766 | ||
15767 | wxPyEndAllowThreads(__tstate); | |
15768 | if (PyErr_Occurred()) SWIG_fail; | |
15769 | } | |
15770 | Py_INCREF(Py_None); resultobj = Py_None; | |
15771 | return resultobj; | |
15772 | fail: | |
15773 | return NULL; | |
15774 | } | |
15775 | ||
15776 | ||
15777 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15778 | PyObject *resultobj; | |
15779 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15780 | wxDateTime *result; | |
15781 | PyObject * obj0 = 0 ; | |
15782 | char *kwnames[] = { | |
15783 | (char *) "self", NULL | |
15784 | }; | |
15785 | ||
15786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15788 | { | |
15789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15790 | { | |
15791 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
15792 | result = (wxDateTime *) &_result_ref; | |
15793 | } | |
15794 | ||
15795 | wxPyEndAllowThreads(__tstate); | |
15796 | if (PyErr_Occurred()) SWIG_fail; | |
15797 | } | |
15798 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15799 | return resultobj; | |
15800 | fail: | |
15801 | return NULL; | |
15802 | } | |
15803 | ||
15804 | ||
15805 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15806 | PyObject *resultobj; | |
15807 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15808 | time_t arg2 ; | |
15809 | wxDateTime *result; | |
15810 | PyObject * obj0 = 0 ; | |
15811 | PyObject * obj1 = 0 ; | |
15812 | char *kwnames[] = { | |
15813 | (char *) "self",(char *) "timet", NULL | |
15814 | }; | |
15815 | ||
15816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15818 | arg2 = (time_t) PyInt_AsLong(obj1); | |
15819 | if (PyErr_Occurred()) SWIG_fail; | |
15820 | { | |
15821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15822 | { | |
15823 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
15824 | result = (wxDateTime *) &_result_ref; | |
15825 | } | |
15826 | ||
15827 | wxPyEndAllowThreads(__tstate); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
15829 | } | |
15830 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15831 | return resultobj; | |
15832 | fail: | |
15833 | return NULL; | |
15834 | } | |
15835 | ||
15836 | ||
15837 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15838 | PyObject *resultobj; | |
15839 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15840 | double arg2 ; | |
15841 | wxDateTime *result; | |
15842 | PyObject * obj0 = 0 ; | |
15843 | char *kwnames[] = { | |
15844 | (char *) "self",(char *) "jdn", NULL | |
15845 | }; | |
15846 | ||
15847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:DateTime_SetJDN",kwnames,&obj0,&arg2)) goto fail; | |
15848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15849 | { | |
15850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15851 | { | |
15852 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
15853 | result = (wxDateTime *) &_result_ref; | |
15854 | } | |
15855 | ||
15856 | wxPyEndAllowThreads(__tstate); | |
15857 | if (PyErr_Occurred()) SWIG_fail; | |
15858 | } | |
15859 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15860 | return resultobj; | |
15861 | fail: | |
15862 | return NULL; | |
15863 | } | |
15864 | ||
15865 | ||
15866 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15867 | PyObject *resultobj; | |
15868 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 RD |
15869 | int arg2 ; |
15870 | int arg3 = (int) 0 ; | |
15871 | int arg4 = (int) 0 ; | |
15872 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
15873 | wxDateTime *result; |
15874 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15875 | char *kwnames[] = { |
15876 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15877 | }; | |
15878 | ||
44127b65 | 15879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetHMS",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 | 15880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15881 | { |
15882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15883 | { | |
15884 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
15885 | result = (wxDateTime *) &_result_ref; | |
15886 | } | |
15887 | ||
15888 | wxPyEndAllowThreads(__tstate); | |
15889 | if (PyErr_Occurred()) SWIG_fail; | |
15890 | } | |
15891 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15892 | return resultobj; | |
15893 | fail: | |
15894 | return NULL; | |
15895 | } | |
15896 | ||
15897 | ||
15898 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15899 | PyObject *resultobj; | |
15900 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 15901 | int arg2 ; |
d14a1e28 RD |
15902 | int arg3 = (int) wxDateTime::Inv_Month ; |
15903 | int arg4 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
15904 | int arg5 = (int) 0 ; |
15905 | int arg6 = (int) 0 ; | |
15906 | int arg7 = (int) 0 ; | |
15907 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
15908 | wxDateTime *result; |
15909 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
15910 | char *kwnames[] = { |
15911 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15912 | }; | |
15913 | ||
44127b65 | 15914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiiiii:DateTime_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail; |
d14a1e28 | 15915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
15916 | { |
15917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15918 | { | |
15919 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
15920 | result = (wxDateTime *) &_result_ref; | |
15921 | } | |
15922 | ||
15923 | wxPyEndAllowThreads(__tstate); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | } | |
15926 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15927 | return resultobj; | |
15928 | fail: | |
15929 | return NULL; | |
15930 | } | |
15931 | ||
15932 | ||
15933 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15934 | PyObject *resultobj; | |
15935 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15936 | wxDateTime *result; | |
15937 | PyObject * obj0 = 0 ; | |
15938 | char *kwnames[] = { | |
15939 | (char *) "self", NULL | |
15940 | }; | |
15941 | ||
15942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
15943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15944 | { | |
15945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15946 | { | |
15947 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
15948 | result = (wxDateTime *) &_result_ref; | |
15949 | } | |
15950 | ||
15951 | wxPyEndAllowThreads(__tstate); | |
15952 | if (PyErr_Occurred()) SWIG_fail; | |
15953 | } | |
15954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15955 | return resultobj; | |
15956 | fail: | |
15957 | return NULL; | |
15958 | } | |
15959 | ||
15960 | ||
15961 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15962 | PyObject *resultobj; | |
15963 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15964 | int arg2 ; | |
15965 | wxDateTime *result; | |
15966 | PyObject * obj0 = 0 ; | |
15967 | char *kwnames[] = { | |
15968 | (char *) "self",(char *) "year", NULL | |
15969 | }; | |
15970 | ||
15971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetYear",kwnames,&obj0,&arg2)) goto fail; | |
15972 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15973 | { | |
15974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15975 | { | |
15976 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
15977 | result = (wxDateTime *) &_result_ref; | |
15978 | } | |
15979 | ||
15980 | wxPyEndAllowThreads(__tstate); | |
15981 | if (PyErr_Occurred()) SWIG_fail; | |
15982 | } | |
15983 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15984 | return resultobj; | |
15985 | fail: | |
15986 | return NULL; | |
15987 | } | |
15988 | ||
15989 | ||
15990 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15991 | PyObject *resultobj; | |
15992 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15993 | int arg2 ; | |
15994 | wxDateTime *result; | |
15995 | PyObject * obj0 = 0 ; | |
15996 | char *kwnames[] = { | |
15997 | (char *) "self",(char *) "month", NULL | |
15998 | }; | |
15999 | ||
16000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMonth",kwnames,&obj0,&arg2)) goto fail; | |
16001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16002 | { | |
16003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16004 | { | |
16005 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
16006 | result = (wxDateTime *) &_result_ref; | |
16007 | } | |
16008 | ||
16009 | wxPyEndAllowThreads(__tstate); | |
16010 | if (PyErr_Occurred()) SWIG_fail; | |
16011 | } | |
16012 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16013 | return resultobj; | |
16014 | fail: | |
16015 | return NULL; | |
16016 | } | |
16017 | ||
16018 | ||
16019 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16020 | PyObject *resultobj; | |
16021 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16022 | int arg2 ; |
d14a1e28 RD |
16023 | wxDateTime *result; |
16024 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16025 | char *kwnames[] = { |
16026 | (char *) "self",(char *) "day", NULL | |
16027 | }; | |
16028 | ||
44127b65 | 16029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16031 | { |
16032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16033 | { | |
16034 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
16035 | result = (wxDateTime *) &_result_ref; | |
16036 | } | |
16037 | ||
16038 | wxPyEndAllowThreads(__tstate); | |
16039 | if (PyErr_Occurred()) SWIG_fail; | |
16040 | } | |
16041 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16042 | return resultobj; | |
16043 | fail: | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
16048 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16049 | PyObject *resultobj; | |
16050 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16051 | int arg2 ; |
d14a1e28 RD |
16052 | wxDateTime *result; |
16053 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16054 | char *kwnames[] = { |
16055 | (char *) "self",(char *) "hour", NULL | |
16056 | }; | |
16057 | ||
44127b65 | 16058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetHour",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16060 | { |
16061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16062 | { | |
16063 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
16064 | result = (wxDateTime *) &_result_ref; | |
16065 | } | |
16066 | ||
16067 | wxPyEndAllowThreads(__tstate); | |
16068 | if (PyErr_Occurred()) SWIG_fail; | |
16069 | } | |
16070 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16071 | return resultobj; | |
16072 | fail: | |
16073 | return NULL; | |
16074 | } | |
16075 | ||
16076 | ||
16077 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16078 | PyObject *resultobj; | |
16079 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16080 | int arg2 ; |
d14a1e28 RD |
16081 | wxDateTime *result; |
16082 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16083 | char *kwnames[] = { |
16084 | (char *) "self",(char *) "minute", NULL | |
16085 | }; | |
16086 | ||
44127b65 | 16087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMinute",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16089 | { |
16090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16091 | { | |
16092 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
16093 | result = (wxDateTime *) &_result_ref; | |
16094 | } | |
16095 | ||
16096 | wxPyEndAllowThreads(__tstate); | |
16097 | if (PyErr_Occurred()) SWIG_fail; | |
16098 | } | |
16099 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16100 | return resultobj; | |
16101 | fail: | |
16102 | return NULL; | |
16103 | } | |
16104 | ||
16105 | ||
16106 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16107 | PyObject *resultobj; | |
16108 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16109 | int arg2 ; |
d14a1e28 RD |
16110 | wxDateTime *result; |
16111 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16112 | char *kwnames[] = { |
16113 | (char *) "self",(char *) "second", NULL | |
16114 | }; | |
16115 | ||
44127b65 | 16116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetSecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16118 | { |
16119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16120 | { | |
16121 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
16122 | result = (wxDateTime *) &_result_ref; | |
16123 | } | |
16124 | ||
16125 | wxPyEndAllowThreads(__tstate); | |
16126 | if (PyErr_Occurred()) SWIG_fail; | |
16127 | } | |
16128 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16129 | return resultobj; | |
16130 | fail: | |
16131 | return NULL; | |
16132 | } | |
16133 | ||
16134 | ||
16135 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16136 | PyObject *resultobj; | |
16137 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16138 | int arg2 ; |
d14a1e28 RD |
16139 | wxDateTime *result; |
16140 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16141 | char *kwnames[] = { |
16142 | (char *) "self",(char *) "millisecond", NULL | |
16143 | }; | |
16144 | ||
44127b65 | 16145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMillisecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16147 | { |
16148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16149 | { | |
16150 | wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2); | |
16151 | result = (wxDateTime *) &_result_ref; | |
16152 | } | |
16153 | ||
16154 | wxPyEndAllowThreads(__tstate); | |
16155 | if (PyErr_Occurred()) SWIG_fail; | |
16156 | } | |
16157 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16158 | return resultobj; | |
16159 | fail: | |
16160 | return NULL; | |
16161 | } | |
16162 | ||
16163 | ||
16164 | static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16165 | PyObject *resultobj; | |
16166 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16167 | int arg2 ; | |
16168 | int arg3 = (int) wxDateTime::Monday_First ; | |
16169 | wxDateTime *result; | |
16170 | PyObject * obj0 = 0 ; | |
16171 | char *kwnames[] = { | |
16172 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16173 | }; | |
16174 | ||
16175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16177 | { | |
16178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16179 | { | |
16180 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16181 | result = (wxDateTime *) &_result_ref; | |
16182 | } | |
16183 | ||
16184 | wxPyEndAllowThreads(__tstate); | |
16185 | if (PyErr_Occurred()) SWIG_fail; | |
16186 | } | |
16187 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16188 | return resultobj; | |
16189 | fail: | |
16190 | return NULL; | |
16191 | } | |
16192 | ||
16193 | ||
16194 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16195 | PyObject *resultobj; | |
16196 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16197 | int arg2 ; | |
16198 | int arg3 = (int) wxDateTime::Monday_First ; | |
16199 | wxDateTime result; | |
16200 | PyObject * obj0 = 0 ; | |
16201 | char *kwnames[] = { | |
16202 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16203 | }; | |
16204 | ||
16205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16207 | { | |
16208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16209 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16210 | ||
16211 | wxPyEndAllowThreads(__tstate); | |
16212 | if (PyErr_Occurred()) SWIG_fail; | |
16213 | } | |
16214 | { | |
16215 | wxDateTime * resultptr; | |
16216 | resultptr = new wxDateTime((wxDateTime &) result); | |
16217 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16218 | } | |
16219 | return resultobj; | |
16220 | fail: | |
16221 | return NULL; | |
16222 | } | |
16223 | ||
16224 | ||
16225 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16226 | PyObject *resultobj; | |
16227 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16228 | int arg2 ; | |
16229 | wxDateTime *result; | |
16230 | PyObject * obj0 = 0 ; | |
16231 | char *kwnames[] = { | |
16232 | (char *) "self",(char *) "weekday", NULL | |
16233 | }; | |
16234 | ||
16235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16237 | { | |
16238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16239 | { | |
16240 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
16241 | result = (wxDateTime *) &_result_ref; | |
16242 | } | |
16243 | ||
16244 | wxPyEndAllowThreads(__tstate); | |
16245 | if (PyErr_Occurred()) SWIG_fail; | |
16246 | } | |
16247 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16248 | return resultobj; | |
16249 | fail: | |
16250 | return NULL; | |
16251 | } | |
16252 | ||
16253 | ||
16254 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16255 | PyObject *resultobj; | |
16256 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16257 | int arg2 ; | |
16258 | wxDateTime result; | |
16259 | PyObject * obj0 = 0 ; | |
16260 | char *kwnames[] = { | |
16261 | (char *) "self",(char *) "weekday", NULL | |
16262 | }; | |
16263 | ||
16264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16266 | { | |
16267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16268 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
16269 | ||
16270 | wxPyEndAllowThreads(__tstate); | |
16271 | if (PyErr_Occurred()) SWIG_fail; | |
16272 | } | |
16273 | { | |
16274 | wxDateTime * resultptr; | |
16275 | resultptr = new wxDateTime((wxDateTime &) result); | |
16276 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16277 | } | |
16278 | return resultobj; | |
16279 | fail: | |
16280 | return NULL; | |
16281 | } | |
16282 | ||
16283 | ||
16284 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16285 | PyObject *resultobj; | |
16286 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16287 | int arg2 ; | |
16288 | wxDateTime *result; | |
16289 | PyObject * obj0 = 0 ; | |
16290 | char *kwnames[] = { | |
16291 | (char *) "self",(char *) "weekday", NULL | |
16292 | }; | |
16293 | ||
16294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16296 | { | |
16297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16298 | { | |
16299 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16300 | result = (wxDateTime *) &_result_ref; | |
16301 | } | |
16302 | ||
16303 | wxPyEndAllowThreads(__tstate); | |
16304 | if (PyErr_Occurred()) SWIG_fail; | |
16305 | } | |
16306 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16307 | return resultobj; | |
16308 | fail: | |
16309 | return NULL; | |
16310 | } | |
16311 | ||
16312 | ||
16313 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16314 | PyObject *resultobj; | |
16315 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16316 | int arg2 ; | |
16317 | wxDateTime result; | |
16318 | PyObject * obj0 = 0 ; | |
16319 | char *kwnames[] = { | |
16320 | (char *) "self",(char *) "weekday", NULL | |
16321 | }; | |
16322 | ||
16323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16325 | { | |
16326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16327 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16328 | ||
16329 | wxPyEndAllowThreads(__tstate); | |
16330 | if (PyErr_Occurred()) SWIG_fail; | |
16331 | } | |
16332 | { | |
16333 | wxDateTime * resultptr; | |
16334 | resultptr = new wxDateTime((wxDateTime &) result); | |
16335 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16336 | } | |
16337 | return resultobj; | |
16338 | fail: | |
16339 | return NULL; | |
16340 | } | |
16341 | ||
16342 | ||
16343 | static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16344 | PyObject *resultobj; | |
16345 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16346 | int arg2 ; | |
16347 | int arg3 = (int) 1 ; | |
16348 | int arg4 = (int) wxDateTime::Inv_Month ; | |
16349 | int arg5 = (int) wxDateTime::Inv_Year ; | |
16350 | bool result; | |
16351 | PyObject * obj0 = 0 ; | |
16352 | char *kwnames[] = { | |
16353 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
16354 | }; | |
16355 | ||
16356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetToWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16358 | { | |
16359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16360 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
16361 | ||
16362 | wxPyEndAllowThreads(__tstate); | |
16363 | if (PyErr_Occurred()) SWIG_fail; | |
16364 | } | |
16365 | resultobj = PyInt_FromLong((long)result); | |
16366 | return resultobj; | |
16367 | fail: | |
16368 | return NULL; | |
16369 | } | |
16370 | ||
16371 | ||
16372 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16373 | PyObject *resultobj; | |
16374 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16375 | int arg2 ; | |
16376 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16377 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16378 | bool result; | |
16379 | PyObject * obj0 = 0 ; | |
16380 | char *kwnames[] = { | |
16381 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16382 | }; | |
16383 | ||
16384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16386 | { | |
16387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16388 | result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16389 | ||
16390 | wxPyEndAllowThreads(__tstate); | |
16391 | if (PyErr_Occurred()) SWIG_fail; | |
16392 | } | |
16393 | resultobj = PyInt_FromLong((long)result); | |
16394 | return resultobj; | |
16395 | fail: | |
16396 | return NULL; | |
16397 | } | |
16398 | ||
16399 | ||
16400 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16401 | PyObject *resultobj; | |
16402 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16403 | int arg2 ; | |
16404 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16405 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16406 | wxDateTime result; | |
16407 | PyObject * obj0 = 0 ; | |
16408 | char *kwnames[] = { | |
16409 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16410 | }; | |
16411 | ||
16412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16414 | { | |
16415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16416 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16417 | ||
16418 | wxPyEndAllowThreads(__tstate); | |
16419 | if (PyErr_Occurred()) SWIG_fail; | |
16420 | } | |
16421 | { | |
16422 | wxDateTime * resultptr; | |
16423 | resultptr = new wxDateTime((wxDateTime &) result); | |
16424 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16425 | } | |
16426 | return resultobj; | |
16427 | fail: | |
16428 | return NULL; | |
16429 | } | |
16430 | ||
16431 | ||
16432 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16433 | PyObject *resultobj; | |
16434 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16435 | int arg2 ; |
d14a1e28 RD |
16436 | int arg3 = (int) wxDateTime::Mon ; |
16437 | int arg4 = (int) wxDateTime::Monday_First ; | |
16438 | bool result; | |
16439 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16440 | char *kwnames[] = { |
16441 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16442 | }; | |
16443 | ||
44127b65 | 16444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToTheWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16446 | { |
16447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16448 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16449 | ||
16450 | wxPyEndAllowThreads(__tstate); | |
16451 | if (PyErr_Occurred()) SWIG_fail; | |
16452 | } | |
16453 | resultobj = PyInt_FromLong((long)result); | |
16454 | return resultobj; | |
16455 | fail: | |
16456 | return NULL; | |
16457 | } | |
16458 | ||
16459 | ||
16460 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16461 | PyObject *resultobj; | |
16462 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16463 | int arg2 ; |
d14a1e28 RD |
16464 | int arg3 = (int) wxDateTime::Mon ; |
16465 | int arg4 = (int) wxDateTime::Monday_First ; | |
16466 | wxDateTime result; | |
16467 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16468 | char *kwnames[] = { |
16469 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16470 | }; | |
16471 | ||
44127b65 | 16472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16474 | { |
16475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16476 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16477 | ||
16478 | wxPyEndAllowThreads(__tstate); | |
16479 | if (PyErr_Occurred()) SWIG_fail; | |
16480 | } | |
16481 | { | |
16482 | wxDateTime * resultptr; | |
16483 | resultptr = new wxDateTime((wxDateTime &) result); | |
16484 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16485 | } | |
16486 | return resultobj; | |
16487 | fail: | |
16488 | return NULL; | |
16489 | } | |
16490 | ||
16491 | ||
16492 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16493 | PyObject *resultobj; | |
16494 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16495 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16496 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16497 | wxDateTime *result; | |
16498 | PyObject * obj0 = 0 ; | |
16499 | char *kwnames[] = { | |
16500 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16501 | }; | |
16502 | ||
16503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_SetToLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16505 | { | |
16506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16507 | { | |
16508 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16509 | result = (wxDateTime *) &_result_ref; | |
16510 | } | |
16511 | ||
16512 | wxPyEndAllowThreads(__tstate); | |
16513 | if (PyErr_Occurred()) SWIG_fail; | |
16514 | } | |
16515 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16516 | return resultobj; | |
16517 | fail: | |
16518 | return NULL; | |
16519 | } | |
16520 | ||
16521 | ||
16522 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16523 | PyObject *resultobj; | |
16524 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16525 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16526 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16527 | wxDateTime result; | |
16528 | PyObject * obj0 = 0 ; | |
16529 | char *kwnames[] = { | |
16530 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16531 | }; | |
16532 | ||
16533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_GetLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16535 | { | |
16536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16537 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16538 | ||
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
16542 | { | |
16543 | wxDateTime * resultptr; | |
16544 | resultptr = new wxDateTime((wxDateTime &) result); | |
16545 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16546 | } | |
16547 | return resultobj; | |
16548 | fail: | |
16549 | return NULL; | |
16550 | } | |
16551 | ||
16552 | ||
16553 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16554 | PyObject *resultobj; | |
16555 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16556 | int arg2 ; |
d14a1e28 RD |
16557 | wxDateTime *result; |
16558 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16559 | char *kwnames[] = { |
16560 | (char *) "self",(char *) "yday", NULL | |
16561 | }; | |
16562 | ||
44127b65 | 16563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16565 | { |
16566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16567 | { | |
16568 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
16569 | result = (wxDateTime *) &_result_ref; | |
16570 | } | |
16571 | ||
16572 | wxPyEndAllowThreads(__tstate); | |
16573 | if (PyErr_Occurred()) SWIG_fail; | |
16574 | } | |
16575 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16576 | return resultobj; | |
16577 | fail: | |
16578 | return NULL; | |
16579 | } | |
16580 | ||
16581 | ||
16582 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16583 | PyObject *resultobj; | |
16584 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16585 | int arg2 ; |
d14a1e28 RD |
16586 | wxDateTime result; |
16587 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16588 | char *kwnames[] = { |
16589 | (char *) "self",(char *) "yday", NULL | |
16590 | }; | |
16591 | ||
44127b65 | 16592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16593 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16594 | { |
16595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16596 | result = (arg1)->GetYearDay(arg2); | |
16597 | ||
16598 | wxPyEndAllowThreads(__tstate); | |
16599 | if (PyErr_Occurred()) SWIG_fail; | |
16600 | } | |
16601 | { | |
16602 | wxDateTime * resultptr; | |
16603 | resultptr = new wxDateTime((wxDateTime &) result); | |
16604 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16605 | } | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj; | |
16614 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16615 | double result; | |
16616 | PyObject * obj0 = 0 ; | |
16617 | char *kwnames[] = { | |
16618 | (char *) "self", NULL | |
16619 | }; | |
16620 | ||
16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
16622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16623 | { | |
16624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16625 | result = (double)(arg1)->GetJulianDayNumber(); | |
16626 | ||
16627 | wxPyEndAllowThreads(__tstate); | |
16628 | if (PyErr_Occurred()) SWIG_fail; | |
16629 | } | |
16630 | resultobj = PyFloat_FromDouble(result); | |
16631 | return resultobj; | |
16632 | fail: | |
16633 | return NULL; | |
16634 | } | |
16635 | ||
16636 | ||
16637 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16638 | PyObject *resultobj; | |
16639 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16640 | double result; | |
16641 | PyObject * obj0 = 0 ; | |
16642 | char *kwnames[] = { | |
16643 | (char *) "self", NULL | |
16644 | }; | |
16645 | ||
16646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
16647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16648 | { | |
16649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16650 | result = (double)(arg1)->GetJDN(); | |
16651 | ||
16652 | wxPyEndAllowThreads(__tstate); | |
16653 | if (PyErr_Occurred()) SWIG_fail; | |
16654 | } | |
16655 | resultobj = PyFloat_FromDouble(result); | |
16656 | return resultobj; | |
16657 | fail: | |
16658 | return NULL; | |
16659 | } | |
16660 | ||
16661 | ||
16662 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16663 | PyObject *resultobj; | |
16664 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16665 | double result; | |
16666 | PyObject * obj0 = 0 ; | |
16667 | char *kwnames[] = { | |
16668 | (char *) "self", NULL | |
16669 | }; | |
16670 | ||
16671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
16672 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16673 | { | |
16674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16675 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
16676 | ||
16677 | wxPyEndAllowThreads(__tstate); | |
16678 | if (PyErr_Occurred()) SWIG_fail; | |
16679 | } | |
16680 | resultobj = PyFloat_FromDouble(result); | |
16681 | return resultobj; | |
16682 | fail: | |
16683 | return NULL; | |
16684 | } | |
16685 | ||
16686 | ||
16687 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16688 | PyObject *resultobj; | |
16689 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16690 | double result; | |
16691 | PyObject * obj0 = 0 ; | |
16692 | char *kwnames[] = { | |
16693 | (char *) "self", NULL | |
16694 | }; | |
16695 | ||
16696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
16697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16698 | { | |
16699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16700 | result = (double)(arg1)->GetMJD(); | |
16701 | ||
16702 | wxPyEndAllowThreads(__tstate); | |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
16704 | } | |
16705 | resultobj = PyFloat_FromDouble(result); | |
16706 | return resultobj; | |
16707 | fail: | |
16708 | return NULL; | |
16709 | } | |
16710 | ||
16711 | ||
16712 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16713 | PyObject *resultobj; | |
16714 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16715 | double result; | |
16716 | PyObject * obj0 = 0 ; | |
16717 | char *kwnames[] = { | |
16718 | (char *) "self", NULL | |
16719 | }; | |
16720 | ||
16721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
16722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16723 | { | |
16724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16725 | result = (double)(arg1)->GetRataDie(); | |
16726 | ||
16727 | wxPyEndAllowThreads(__tstate); | |
16728 | if (PyErr_Occurred()) SWIG_fail; | |
16729 | } | |
16730 | resultobj = PyFloat_FromDouble(result); | |
16731 | return resultobj; | |
16732 | fail: | |
16733 | return NULL; | |
16734 | } | |
16735 | ||
16736 | ||
16737 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16738 | PyObject *resultobj; | |
16739 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16740 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 16741 | bool arg3 = (bool) False ; |
d14a1e28 | 16742 | wxDateTime result; |
44127b65 | 16743 | bool temp2 = False ; |
d14a1e28 RD |
16744 | PyObject * obj0 = 0 ; |
16745 | PyObject * obj1 = 0 ; | |
16746 | PyObject * obj2 = 0 ; | |
16747 | char *kwnames[] = { | |
16748 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16749 | }; | |
16750 | ||
16751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16753 | { | |
16754 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16755 | temp2 = True; |
d14a1e28 RD |
16756 | } |
16757 | if (obj2) { | |
16758 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
16760 | } | |
16761 | { | |
16762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16763 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16764 | ||
16765 | wxPyEndAllowThreads(__tstate); | |
16766 | if (PyErr_Occurred()) SWIG_fail; | |
16767 | } | |
16768 | { | |
16769 | wxDateTime * resultptr; | |
16770 | resultptr = new wxDateTime((wxDateTime &) result); | |
16771 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16772 | } | |
16773 | { | |
44127b65 | 16774 | if (temp2) delete arg2; |
d14a1e28 RD |
16775 | } |
16776 | return resultobj; | |
16777 | fail: | |
16778 | { | |
44127b65 | 16779 | if (temp2) delete arg2; |
d14a1e28 RD |
16780 | } |
16781 | return NULL; | |
16782 | } | |
16783 | ||
16784 | ||
16785 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16786 | PyObject *resultobj; | |
16787 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16788 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 16789 | bool arg3 = (bool) False ; |
d14a1e28 | 16790 | wxDateTime *result; |
44127b65 | 16791 | bool temp2 = False ; |
d14a1e28 RD |
16792 | PyObject * obj0 = 0 ; |
16793 | PyObject * obj1 = 0 ; | |
16794 | PyObject * obj2 = 0 ; | |
16795 | char *kwnames[] = { | |
16796 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16797 | }; | |
16798 | ||
16799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16801 | { | |
16802 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16803 | temp2 = True; |
d14a1e28 RD |
16804 | } |
16805 | if (obj2) { | |
16806 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16807 | if (PyErr_Occurred()) SWIG_fail; | |
16808 | } | |
16809 | { | |
16810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16811 | { | |
16812 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16813 | result = (wxDateTime *) &_result_ref; | |
16814 | } | |
16815 | ||
16816 | wxPyEndAllowThreads(__tstate); | |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
16818 | } | |
16819 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16820 | { | |
44127b65 | 16821 | if (temp2) delete arg2; |
d14a1e28 RD |
16822 | } |
16823 | return resultobj; | |
16824 | fail: | |
16825 | { | |
44127b65 | 16826 | if (temp2) delete arg2; |
d14a1e28 RD |
16827 | } |
16828 | return NULL; | |
16829 | } | |
16830 | ||
16831 | ||
16832 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16833 | PyObject *resultobj; | |
16834 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 16835 | bool arg2 = (bool) False ; |
d14a1e28 RD |
16836 | wxDateTime result; |
16837 | PyObject * obj0 = 0 ; | |
16838 | PyObject * obj1 = 0 ; | |
16839 | char *kwnames[] = { | |
16840 | (char *) "self",(char *) "noDST", NULL | |
16841 | }; | |
16842 | ||
16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
16844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16845 | if (obj1) { | |
16846 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16847 | if (PyErr_Occurred()) SWIG_fail; | |
16848 | } | |
16849 | { | |
16850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16851 | result = (arg1)->ToGMT(arg2); | |
16852 | ||
16853 | wxPyEndAllowThreads(__tstate); | |
16854 | if (PyErr_Occurred()) SWIG_fail; | |
16855 | } | |
16856 | { | |
16857 | wxDateTime * resultptr; | |
16858 | resultptr = new wxDateTime((wxDateTime &) result); | |
16859 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16860 | } | |
16861 | return resultobj; | |
16862 | fail: | |
16863 | return NULL; | |
16864 | } | |
16865 | ||
16866 | ||
16867 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16868 | PyObject *resultobj; | |
16869 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 16870 | bool arg2 = (bool) False ; |
d14a1e28 RD |
16871 | wxDateTime *result; |
16872 | PyObject * obj0 = 0 ; | |
16873 | PyObject * obj1 = 0 ; | |
16874 | char *kwnames[] = { | |
16875 | (char *) "self",(char *) "noDST", NULL | |
16876 | }; | |
16877 | ||
16878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
16879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16880 | if (obj1) { | |
16881 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16882 | if (PyErr_Occurred()) SWIG_fail; | |
16883 | } | |
16884 | { | |
16885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16886 | { | |
16887 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
16888 | result = (wxDateTime *) &_result_ref; | |
16889 | } | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16895 | return resultobj; | |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
16901 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16902 | PyObject *resultobj; | |
16903 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16904 | int arg2 = (int) wxDateTime::Country_Default ; | |
16905 | int result; | |
16906 | PyObject * obj0 = 0 ; | |
16907 | char *kwnames[] = { | |
16908 | (char *) "self",(char *) "country", NULL | |
16909 | }; | |
16910 | ||
16911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsDST",kwnames,&obj0,&arg2)) goto fail; | |
16912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16913 | { | |
16914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16915 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
16916 | ||
16917 | wxPyEndAllowThreads(__tstate); | |
16918 | if (PyErr_Occurred()) SWIG_fail; | |
16919 | } | |
16920 | resultobj = PyInt_FromLong((long)result); | |
16921 | return resultobj; | |
16922 | fail: | |
16923 | return NULL; | |
16924 | } | |
16925 | ||
16926 | ||
16927 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16928 | PyObject *resultobj; | |
16929 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16930 | bool result; | |
16931 | PyObject * obj0 = 0 ; | |
16932 | char *kwnames[] = { | |
16933 | (char *) "self", NULL | |
16934 | }; | |
16935 | ||
16936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
16937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16938 | { | |
16939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16940 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
16941 | ||
16942 | wxPyEndAllowThreads(__tstate); | |
16943 | if (PyErr_Occurred()) SWIG_fail; | |
16944 | } | |
16945 | resultobj = PyInt_FromLong((long)result); | |
16946 | return resultobj; | |
16947 | fail: | |
16948 | return NULL; | |
16949 | } | |
16950 | ||
16951 | ||
16952 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16953 | PyObject *resultobj; | |
16954 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16955 | time_t result; | |
16956 | PyObject * obj0 = 0 ; | |
16957 | char *kwnames[] = { | |
16958 | (char *) "self", NULL | |
16959 | }; | |
16960 | ||
16961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
16962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16963 | { | |
16964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16965 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
16966 | ||
16967 | wxPyEndAllowThreads(__tstate); | |
16968 | if (PyErr_Occurred()) SWIG_fail; | |
16969 | } | |
16970 | resultobj = PyInt_FromLong((long)result); | |
16971 | return resultobj; | |
16972 | fail: | |
16973 | return NULL; | |
16974 | } | |
16975 | ||
16976 | ||
16977 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16978 | PyObject *resultobj; | |
16979 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16980 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
16981 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
16982 | int result; | |
44127b65 | 16983 | bool temp2 = False ; |
d14a1e28 RD |
16984 | PyObject * obj0 = 0 ; |
16985 | PyObject * obj1 = 0 ; | |
16986 | char *kwnames[] = { | |
16987 | (char *) "self",(char *) "tz", NULL | |
16988 | }; | |
16989 | ||
16990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
16991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16992 | if (obj1) { | |
16993 | { | |
16994 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16995 | temp2 = True; |
d14a1e28 RD |
16996 | } |
16997 | } | |
16998 | { | |
16999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17000 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
17001 | ||
17002 | wxPyEndAllowThreads(__tstate); | |
17003 | if (PyErr_Occurred()) SWIG_fail; | |
17004 | } | |
17005 | resultobj = PyInt_FromLong((long)result); | |
17006 | { | |
44127b65 | 17007 | if (temp2) delete arg2; |
d14a1e28 RD |
17008 | } |
17009 | return resultobj; | |
17010 | fail: | |
17011 | { | |
44127b65 | 17012 | if (temp2) delete arg2; |
d14a1e28 RD |
17013 | } |
17014 | return NULL; | |
17015 | } | |
17016 | ||
17017 | ||
17018 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17019 | PyObject *resultobj; | |
17020 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17021 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17022 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17023 | int result; | |
44127b65 | 17024 | bool temp2 = False ; |
d14a1e28 RD |
17025 | PyObject * obj0 = 0 ; |
17026 | PyObject * obj1 = 0 ; | |
17027 | char *kwnames[] = { | |
17028 | (char *) "self",(char *) "tz", NULL | |
17029 | }; | |
17030 | ||
17031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17033 | if (obj1) { | |
17034 | { | |
17035 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17036 | temp2 = True; |
d14a1e28 RD |
17037 | } |
17038 | } | |
17039 | { | |
17040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17041 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
17042 | ||
17043 | wxPyEndAllowThreads(__tstate); | |
17044 | if (PyErr_Occurred()) SWIG_fail; | |
17045 | } | |
17046 | resultobj = PyInt_FromLong((long)result); | |
17047 | { | |
44127b65 | 17048 | if (temp2) delete arg2; |
d14a1e28 RD |
17049 | } |
17050 | return resultobj; | |
17051 | fail: | |
17052 | { | |
44127b65 | 17053 | if (temp2) delete arg2; |
d14a1e28 RD |
17054 | } |
17055 | return NULL; | |
17056 | } | |
17057 | ||
17058 | ||
17059 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17060 | PyObject *resultobj; | |
17061 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17062 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17063 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17064 | int result; |
17065 | bool temp2 = False ; | |
d14a1e28 RD |
17066 | PyObject * obj0 = 0 ; |
17067 | PyObject * obj1 = 0 ; | |
17068 | char *kwnames[] = { | |
17069 | (char *) "self",(char *) "tz", NULL | |
17070 | }; | |
17071 | ||
17072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
17073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17074 | if (obj1) { | |
17075 | { | |
17076 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17077 | temp2 = True; |
d14a1e28 RD |
17078 | } |
17079 | } | |
17080 | { | |
17081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17082 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17083 | |
17084 | wxPyEndAllowThreads(__tstate); | |
17085 | if (PyErr_Occurred()) SWIG_fail; | |
17086 | } | |
17087 | resultobj = PyInt_FromLong((long)result); | |
17088 | { | |
44127b65 | 17089 | if (temp2) delete arg2; |
d14a1e28 RD |
17090 | } |
17091 | return resultobj; | |
17092 | fail: | |
17093 | { | |
44127b65 | 17094 | if (temp2) delete arg2; |
d14a1e28 RD |
17095 | } |
17096 | return NULL; | |
17097 | } | |
17098 | ||
17099 | ||
17100 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17101 | PyObject *resultobj; | |
17102 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17103 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17104 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17105 | int result; | |
44127b65 | 17106 | bool temp2 = False ; |
d14a1e28 RD |
17107 | PyObject * obj0 = 0 ; |
17108 | PyObject * obj1 = 0 ; | |
17109 | char *kwnames[] = { | |
17110 | (char *) "self",(char *) "tz", NULL | |
17111 | }; | |
17112 | ||
17113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17115 | if (obj1) { | |
17116 | { | |
17117 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17118 | temp2 = True; |
d14a1e28 RD |
17119 | } |
17120 | } | |
17121 | { | |
17122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17123 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
17124 | ||
17125 | wxPyEndAllowThreads(__tstate); | |
17126 | if (PyErr_Occurred()) SWIG_fail; | |
17127 | } | |
17128 | resultobj = PyInt_FromLong((long)result); | |
17129 | { | |
44127b65 | 17130 | if (temp2) delete arg2; |
d14a1e28 RD |
17131 | } |
17132 | return resultobj; | |
17133 | fail: | |
17134 | { | |
44127b65 | 17135 | if (temp2) delete arg2; |
d14a1e28 RD |
17136 | } |
17137 | return NULL; | |
17138 | } | |
17139 | ||
17140 | ||
17141 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17142 | PyObject *resultobj; | |
17143 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17144 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17145 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17146 | int result; |
17147 | bool temp2 = False ; | |
d14a1e28 RD |
17148 | PyObject * obj0 = 0 ; |
17149 | PyObject * obj1 = 0 ; | |
17150 | char *kwnames[] = { | |
17151 | (char *) "self",(char *) "tz", NULL | |
17152 | }; | |
17153 | ||
17154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
17155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17156 | if (obj1) { | |
17157 | { | |
17158 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17159 | temp2 = True; |
d14a1e28 RD |
17160 | } |
17161 | } | |
17162 | { | |
17163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17164 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17165 | |
17166 | wxPyEndAllowThreads(__tstate); | |
17167 | if (PyErr_Occurred()) SWIG_fail; | |
17168 | } | |
17169 | resultobj = PyInt_FromLong((long)result); | |
17170 | { | |
44127b65 | 17171 | if (temp2) delete arg2; |
d14a1e28 RD |
17172 | } |
17173 | return resultobj; | |
17174 | fail: | |
17175 | { | |
44127b65 | 17176 | if (temp2) delete arg2; |
d14a1e28 RD |
17177 | } |
17178 | return NULL; | |
17179 | } | |
17180 | ||
17181 | ||
17182 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17183 | PyObject *resultobj; | |
17184 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17185 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17186 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17187 | int result; |
17188 | bool temp2 = False ; | |
d14a1e28 RD |
17189 | PyObject * obj0 = 0 ; |
17190 | PyObject * obj1 = 0 ; | |
17191 | char *kwnames[] = { | |
17192 | (char *) "self",(char *) "tz", NULL | |
17193 | }; | |
17194 | ||
17195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17197 | if (obj1) { | |
17198 | { | |
17199 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17200 | temp2 = True; |
d14a1e28 RD |
17201 | } |
17202 | } | |
17203 | { | |
17204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17205 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17206 | |
17207 | wxPyEndAllowThreads(__tstate); | |
17208 | if (PyErr_Occurred()) SWIG_fail; | |
17209 | } | |
17210 | resultobj = PyInt_FromLong((long)result); | |
17211 | { | |
44127b65 | 17212 | if (temp2) delete arg2; |
d14a1e28 RD |
17213 | } |
17214 | return resultobj; | |
17215 | fail: | |
17216 | { | |
44127b65 | 17217 | if (temp2) delete arg2; |
d14a1e28 RD |
17218 | } |
17219 | return NULL; | |
17220 | } | |
17221 | ||
17222 | ||
17223 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17224 | PyObject *resultobj; | |
17225 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17226 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17227 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17228 | int result; |
17229 | bool temp2 = False ; | |
d14a1e28 RD |
17230 | PyObject * obj0 = 0 ; |
17231 | PyObject * obj1 = 0 ; | |
17232 | char *kwnames[] = { | |
17233 | (char *) "self",(char *) "tz", NULL | |
17234 | }; | |
17235 | ||
17236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17238 | if (obj1) { | |
17239 | { | |
17240 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17241 | temp2 = True; |
d14a1e28 RD |
17242 | } |
17243 | } | |
17244 | { | |
17245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17246 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17247 | |
17248 | wxPyEndAllowThreads(__tstate); | |
17249 | if (PyErr_Occurred()) SWIG_fail; | |
17250 | } | |
17251 | resultobj = PyInt_FromLong((long)result); | |
17252 | { | |
44127b65 | 17253 | if (temp2) delete arg2; |
d14a1e28 RD |
17254 | } |
17255 | return resultobj; | |
17256 | fail: | |
17257 | { | |
44127b65 | 17258 | if (temp2) delete arg2; |
d14a1e28 RD |
17259 | } |
17260 | return NULL; | |
17261 | } | |
17262 | ||
17263 | ||
17264 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17265 | PyObject *resultobj; | |
17266 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17267 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17268 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17269 | int result; |
17270 | bool temp2 = False ; | |
d14a1e28 RD |
17271 | PyObject * obj0 = 0 ; |
17272 | PyObject * obj1 = 0 ; | |
17273 | char *kwnames[] = { | |
17274 | (char *) "self",(char *) "tz", NULL | |
17275 | }; | |
17276 | ||
17277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17279 | if (obj1) { | |
17280 | { | |
17281 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17282 | temp2 = True; |
d14a1e28 RD |
17283 | } |
17284 | } | |
17285 | { | |
17286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17287 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17288 | |
17289 | wxPyEndAllowThreads(__tstate); | |
17290 | if (PyErr_Occurred()) SWIG_fail; | |
17291 | } | |
17292 | resultobj = PyInt_FromLong((long)result); | |
17293 | { | |
44127b65 | 17294 | if (temp2) delete arg2; |
d14a1e28 RD |
17295 | } |
17296 | return resultobj; | |
17297 | fail: | |
17298 | { | |
44127b65 | 17299 | if (temp2) delete arg2; |
d14a1e28 RD |
17300 | } |
17301 | return NULL; | |
17302 | } | |
17303 | ||
17304 | ||
17305 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17306 | PyObject *resultobj; | |
17307 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17308 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17309 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17310 | int result; |
17311 | bool temp2 = False ; | |
d14a1e28 RD |
17312 | PyObject * obj0 = 0 ; |
17313 | PyObject * obj1 = 0 ; | |
17314 | char *kwnames[] = { | |
17315 | (char *) "self",(char *) "tz", NULL | |
17316 | }; | |
17317 | ||
17318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
17319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17320 | if (obj1) { | |
17321 | { | |
17322 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17323 | temp2 = True; |
d14a1e28 RD |
17324 | } |
17325 | } | |
17326 | { | |
17327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17328 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17329 | |
17330 | wxPyEndAllowThreads(__tstate); | |
17331 | if (PyErr_Occurred()) SWIG_fail; | |
17332 | } | |
17333 | resultobj = PyInt_FromLong((long)result); | |
17334 | { | |
44127b65 | 17335 | if (temp2) delete arg2; |
d14a1e28 RD |
17336 | } |
17337 | return resultobj; | |
17338 | fail: | |
17339 | { | |
44127b65 | 17340 | if (temp2) delete arg2; |
d14a1e28 RD |
17341 | } |
17342 | return NULL; | |
17343 | } | |
17344 | ||
17345 | ||
17346 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17347 | PyObject *resultobj; | |
17348 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17349 | int arg2 = (int) wxDateTime::Monday_First ; | |
17350 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17351 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
17352 | int result; |
17353 | bool temp3 = False ; | |
d14a1e28 RD |
17354 | PyObject * obj0 = 0 ; |
17355 | PyObject * obj2 = 0 ; | |
17356 | char *kwnames[] = { | |
17357 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17358 | }; | |
17359 | ||
17360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfYear",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17362 | if (obj2) { | |
17363 | { | |
17364 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 17365 | temp3 = True; |
d14a1e28 RD |
17366 | } |
17367 | } | |
17368 | { | |
17369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17370 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17371 | |
17372 | wxPyEndAllowThreads(__tstate); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
17374 | } | |
17375 | resultobj = PyInt_FromLong((long)result); | |
17376 | { | |
44127b65 | 17377 | if (temp3) delete arg3; |
d14a1e28 RD |
17378 | } |
17379 | return resultobj; | |
17380 | fail: | |
17381 | { | |
44127b65 | 17382 | if (temp3) delete arg3; |
d14a1e28 RD |
17383 | } |
17384 | return NULL; | |
17385 | } | |
17386 | ||
17387 | ||
17388 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17389 | PyObject *resultobj; | |
17390 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17391 | int arg2 = (int) wxDateTime::Monday_First ; | |
17392 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17393 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
17394 | int result; |
17395 | bool temp3 = False ; | |
d14a1e28 RD |
17396 | PyObject * obj0 = 0 ; |
17397 | PyObject * obj2 = 0 ; | |
17398 | char *kwnames[] = { | |
17399 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17400 | }; | |
17401 | ||
17402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfMonth",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17404 | if (obj2) { | |
17405 | { | |
17406 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 17407 | temp3 = True; |
d14a1e28 RD |
17408 | } |
17409 | } | |
17410 | { | |
17411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17412 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17413 | |
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
17417 | resultobj = PyInt_FromLong((long)result); | |
17418 | { | |
44127b65 | 17419 | if (temp3) delete arg3; |
d14a1e28 RD |
17420 | } |
17421 | return resultobj; | |
17422 | fail: | |
17423 | { | |
44127b65 | 17424 | if (temp3) delete arg3; |
d14a1e28 RD |
17425 | } |
17426 | return NULL; | |
17427 | } | |
17428 | ||
17429 | ||
17430 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17431 | PyObject *resultobj; | |
17432 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17433 | int arg2 = (int) wxDateTime::Country_Default ; | |
17434 | bool result; | |
17435 | PyObject * obj0 = 0 ; | |
17436 | char *kwnames[] = { | |
17437 | (char *) "self",(char *) "country", NULL | |
17438 | }; | |
17439 | ||
17440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsWorkDay",kwnames,&obj0,&arg2)) goto fail; | |
17441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17442 | { | |
17443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17444 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
17445 | ||
17446 | wxPyEndAllowThreads(__tstate); | |
17447 | if (PyErr_Occurred()) SWIG_fail; | |
17448 | } | |
17449 | resultobj = PyInt_FromLong((long)result); | |
17450 | return resultobj; | |
17451 | fail: | |
17452 | return NULL; | |
17453 | } | |
17454 | ||
17455 | ||
17456 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17457 | PyObject *resultobj; | |
17458 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17459 | wxDateTime *arg2 = 0 ; | |
17460 | bool result; | |
17461 | PyObject * obj0 = 0 ; | |
17462 | PyObject * obj1 = 0 ; | |
17463 | char *kwnames[] = { | |
17464 | (char *) "self",(char *) "datetime", NULL | |
17465 | }; | |
17466 | ||
17467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
17468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17469 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17470 | if (arg2 == NULL) { | |
17471 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17472 | } | |
17473 | { | |
17474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17475 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
17476 | ||
17477 | wxPyEndAllowThreads(__tstate); | |
17478 | if (PyErr_Occurred()) SWIG_fail; | |
17479 | } | |
17480 | resultobj = PyInt_FromLong((long)result); | |
17481 | return resultobj; | |
17482 | fail: | |
17483 | return NULL; | |
17484 | } | |
17485 | ||
17486 | ||
17487 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17488 | PyObject *resultobj; | |
17489 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17490 | wxDateTime *arg2 = 0 ; | |
17491 | bool result; | |
17492 | PyObject * obj0 = 0 ; | |
17493 | PyObject * obj1 = 0 ; | |
17494 | char *kwnames[] = { | |
17495 | (char *) "self",(char *) "datetime", NULL | |
17496 | }; | |
17497 | ||
17498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
17499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17500 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17501 | if (arg2 == NULL) { | |
17502 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17503 | } | |
17504 | { | |
17505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17506 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
17507 | ||
17508 | wxPyEndAllowThreads(__tstate); | |
17509 | if (PyErr_Occurred()) SWIG_fail; | |
17510 | } | |
17511 | resultobj = PyInt_FromLong((long)result); | |
17512 | return resultobj; | |
17513 | fail: | |
17514 | return NULL; | |
17515 | } | |
17516 | ||
17517 | ||
17518 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17519 | PyObject *resultobj; | |
17520 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17521 | wxDateTime *arg2 = 0 ; | |
17522 | bool result; | |
17523 | PyObject * obj0 = 0 ; | |
17524 | PyObject * obj1 = 0 ; | |
17525 | char *kwnames[] = { | |
17526 | (char *) "self",(char *) "datetime", NULL | |
17527 | }; | |
17528 | ||
17529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
17530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17531 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17532 | if (arg2 == NULL) { | |
17533 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17534 | } | |
17535 | { | |
17536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17537 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
17538 | ||
17539 | wxPyEndAllowThreads(__tstate); | |
17540 | if (PyErr_Occurred()) SWIG_fail; | |
17541 | } | |
17542 | resultobj = PyInt_FromLong((long)result); | |
17543 | return resultobj; | |
17544 | fail: | |
17545 | return NULL; | |
17546 | } | |
17547 | ||
17548 | ||
17549 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17550 | PyObject *resultobj; | |
17551 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17552 | wxDateTime *arg2 = 0 ; | |
17553 | wxDateTime *arg3 = 0 ; | |
17554 | bool result; | |
17555 | PyObject * obj0 = 0 ; | |
17556 | PyObject * obj1 = 0 ; | |
17557 | PyObject * obj2 = 0 ; | |
17558 | char *kwnames[] = { | |
17559 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17560 | }; | |
17561 | ||
17562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17564 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17565 | if (arg2 == NULL) { | |
17566 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17567 | } | |
17568 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17569 | if (arg3 == NULL) { | |
17570 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17571 | } | |
17572 | { | |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17575 | ||
17576 | wxPyEndAllowThreads(__tstate); | |
17577 | if (PyErr_Occurred()) SWIG_fail; | |
17578 | } | |
17579 | resultobj = PyInt_FromLong((long)result); | |
17580 | return resultobj; | |
17581 | fail: | |
17582 | return NULL; | |
17583 | } | |
17584 | ||
17585 | ||
17586 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17587 | PyObject *resultobj; | |
17588 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17589 | wxDateTime *arg2 = 0 ; | |
17590 | wxDateTime *arg3 = 0 ; | |
17591 | bool result; | |
17592 | PyObject * obj0 = 0 ; | |
17593 | PyObject * obj1 = 0 ; | |
17594 | PyObject * obj2 = 0 ; | |
17595 | char *kwnames[] = { | |
17596 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17597 | }; | |
17598 | ||
17599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17601 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17602 | if (arg2 == NULL) { | |
17603 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17604 | } | |
17605 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17606 | if (arg3 == NULL) { | |
17607 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17608 | } | |
17609 | { | |
17610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17611 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17612 | ||
17613 | wxPyEndAllowThreads(__tstate); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | resultobj = PyInt_FromLong((long)result); | |
17617 | return resultobj; | |
17618 | fail: | |
17619 | return NULL; | |
17620 | } | |
17621 | ||
17622 | ||
17623 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17624 | PyObject *resultobj; | |
17625 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17626 | wxDateTime *arg2 = 0 ; | |
17627 | bool result; | |
17628 | PyObject * obj0 = 0 ; | |
17629 | PyObject * obj1 = 0 ; | |
17630 | char *kwnames[] = { | |
17631 | (char *) "self",(char *) "dt", NULL | |
17632 | }; | |
17633 | ||
17634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
17635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17636 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17637 | if (arg2 == NULL) { | |
17638 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17639 | } | |
17640 | { | |
17641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17642 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
17643 | ||
17644 | wxPyEndAllowThreads(__tstate); | |
17645 | if (PyErr_Occurred()) SWIG_fail; | |
17646 | } | |
17647 | resultobj = PyInt_FromLong((long)result); | |
17648 | return resultobj; | |
17649 | fail: | |
17650 | return NULL; | |
17651 | } | |
17652 | ||
17653 | ||
17654 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17655 | PyObject *resultobj; | |
17656 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17657 | wxDateTime *arg2 = 0 ; | |
17658 | bool result; | |
17659 | PyObject * obj0 = 0 ; | |
17660 | PyObject * obj1 = 0 ; | |
17661 | char *kwnames[] = { | |
17662 | (char *) "self",(char *) "dt", NULL | |
17663 | }; | |
17664 | ||
17665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
17666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17668 | if (arg2 == NULL) { | |
17669 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17670 | } | |
17671 | { | |
17672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17673 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
17674 | ||
17675 | wxPyEndAllowThreads(__tstate); | |
17676 | if (PyErr_Occurred()) SWIG_fail; | |
17677 | } | |
17678 | resultobj = PyInt_FromLong((long)result); | |
17679 | return resultobj; | |
17680 | fail: | |
17681 | return NULL; | |
17682 | } | |
17683 | ||
17684 | ||
17685 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17686 | PyObject *resultobj; | |
17687 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17688 | wxDateTime *arg2 = 0 ; | |
17689 | wxTimeSpan *arg3 = 0 ; | |
17690 | bool result; | |
17691 | PyObject * obj0 = 0 ; | |
17692 | PyObject * obj1 = 0 ; | |
17693 | PyObject * obj2 = 0 ; | |
17694 | char *kwnames[] = { | |
17695 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
17696 | }; | |
17697 | ||
17698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17700 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17701 | if (arg2 == NULL) { | |
17702 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17703 | } | |
17704 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17705 | if (arg3 == NULL) { | |
17706 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17707 | } | |
17708 | { | |
17709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17710 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
17711 | ||
17712 | wxPyEndAllowThreads(__tstate); | |
17713 | if (PyErr_Occurred()) SWIG_fail; | |
17714 | } | |
17715 | resultobj = PyInt_FromLong((long)result); | |
17716 | return resultobj; | |
17717 | fail: | |
17718 | return NULL; | |
17719 | } | |
17720 | ||
17721 | ||
17722 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17723 | PyObject *resultobj; | |
17724 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17725 | wxTimeSpan *arg2 = 0 ; | |
17726 | wxDateTime *result; | |
17727 | PyObject * obj0 = 0 ; | |
17728 | PyObject * obj1 = 0 ; | |
17729 | char *kwnames[] = { | |
17730 | (char *) "self",(char *) "diff", NULL | |
17731 | }; | |
17732 | ||
17733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
17734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17735 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17736 | if (arg2 == NULL) { | |
17737 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17738 | } | |
17739 | { | |
17740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17741 | { | |
17742 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
17743 | result = (wxDateTime *) &_result_ref; | |
17744 | } | |
17745 | ||
17746 | wxPyEndAllowThreads(__tstate); | |
17747 | if (PyErr_Occurred()) SWIG_fail; | |
17748 | } | |
17749 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17750 | return resultobj; | |
17751 | fail: | |
17752 | return NULL; | |
17753 | } | |
17754 | ||
17755 | ||
17756 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17757 | PyObject *resultobj; | |
17758 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17759 | wxDateSpan *arg2 = 0 ; | |
17760 | wxDateTime *result; | |
17761 | PyObject * obj0 = 0 ; | |
17762 | PyObject * obj1 = 0 ; | |
17763 | char *kwnames[] = { | |
17764 | (char *) "self",(char *) "diff", NULL | |
17765 | }; | |
17766 | ||
17767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
17768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17769 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17770 | if (arg2 == NULL) { | |
17771 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17772 | } | |
17773 | { | |
17774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17775 | { | |
17776 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
17777 | result = (wxDateTime *) &_result_ref; | |
17778 | } | |
17779 | ||
17780 | wxPyEndAllowThreads(__tstate); | |
17781 | if (PyErr_Occurred()) SWIG_fail; | |
17782 | } | |
17783 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17784 | return resultobj; | |
17785 | fail: | |
17786 | return NULL; | |
17787 | } | |
17788 | ||
17789 | ||
17790 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17791 | PyObject *resultobj; | |
17792 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17793 | wxTimeSpan *arg2 = 0 ; | |
17794 | wxDateTime *result; | |
17795 | PyObject * obj0 = 0 ; | |
17796 | PyObject * obj1 = 0 ; | |
17797 | char *kwnames[] = { | |
17798 | (char *) "self",(char *) "diff", NULL | |
17799 | }; | |
17800 | ||
17801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
17802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17803 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17804 | if (arg2 == NULL) { | |
17805 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17806 | } | |
17807 | { | |
17808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17809 | { | |
17810 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
17811 | result = (wxDateTime *) &_result_ref; | |
17812 | } | |
17813 | ||
17814 | wxPyEndAllowThreads(__tstate); | |
17815 | if (PyErr_Occurred()) SWIG_fail; | |
17816 | } | |
17817 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17818 | return resultobj; | |
17819 | fail: | |
17820 | return NULL; | |
17821 | } | |
17822 | ||
17823 | ||
17824 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17825 | PyObject *resultobj; | |
17826 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17827 | wxDateSpan *arg2 = 0 ; | |
17828 | wxDateTime *result; | |
17829 | PyObject * obj0 = 0 ; | |
17830 | PyObject * obj1 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self",(char *) "diff", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
17836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17837 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17838 | if (arg2 == NULL) { | |
17839 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17840 | } | |
17841 | { | |
17842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17843 | { | |
17844 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
17845 | result = (wxDateTime *) &_result_ref; | |
17846 | } | |
17847 | ||
17848 | wxPyEndAllowThreads(__tstate); | |
17849 | if (PyErr_Occurred()) SWIG_fail; | |
17850 | } | |
17851 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17852 | return resultobj; | |
17853 | fail: | |
17854 | return NULL; | |
17855 | } | |
17856 | ||
17857 | ||
17858 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17859 | PyObject *resultobj; | |
17860 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17861 | wxDateTime *arg2 = 0 ; | |
17862 | wxTimeSpan result; | |
17863 | PyObject * obj0 = 0 ; | |
17864 | PyObject * obj1 = 0 ; | |
17865 | char *kwnames[] = { | |
17866 | (char *) "self",(char *) "dt", NULL | |
17867 | }; | |
17868 | ||
17869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
17870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17871 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17872 | if (arg2 == NULL) { | |
17873 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17874 | } | |
17875 | { | |
17876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17877 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
17878 | ||
17879 | wxPyEndAllowThreads(__tstate); | |
17880 | if (PyErr_Occurred()) SWIG_fail; | |
17881 | } | |
17882 | { | |
17883 | wxTimeSpan * resultptr; | |
17884 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
17885 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
17886 | } | |
17887 | return resultobj; | |
17888 | fail: | |
17889 | return NULL; | |
17890 | } | |
17891 | ||
17892 | ||
17893 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
17894 | PyObject *resultobj; | |
17895 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17896 | wxTimeSpan *arg2 = 0 ; | |
17897 | wxDateTime *result; | |
17898 | PyObject * obj0 = 0 ; | |
17899 | PyObject * obj1 = 0 ; | |
17900 | ||
17901 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
17902 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17903 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17904 | if (arg2 == NULL) { | |
17905 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17906 | } | |
17907 | { | |
17908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17909 | { | |
17910 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
17911 | result = (wxDateTime *) &_result_ref; | |
17912 | } | |
17913 | ||
17914 | wxPyEndAllowThreads(__tstate); | |
17915 | if (PyErr_Occurred()) SWIG_fail; | |
17916 | } | |
17917 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17918 | return resultobj; | |
17919 | fail: | |
17920 | return NULL; | |
17921 | } | |
17922 | ||
17923 | ||
17924 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
17925 | PyObject *resultobj; | |
17926 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17927 | wxDateSpan *arg2 = 0 ; | |
17928 | wxDateTime *result; | |
17929 | PyObject * obj0 = 0 ; | |
17930 | PyObject * obj1 = 0 ; | |
17931 | ||
17932 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
17933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17934 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17935 | if (arg2 == NULL) { | |
17936 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17937 | } | |
17938 | { | |
17939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17940 | { | |
17941 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
17942 | result = (wxDateTime *) &_result_ref; | |
17943 | } | |
17944 | ||
17945 | wxPyEndAllowThreads(__tstate); | |
17946 | if (PyErr_Occurred()) SWIG_fail; | |
17947 | } | |
17948 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17949 | return resultobj; | |
17950 | fail: | |
17951 | return NULL; | |
17952 | } | |
17953 | ||
17954 | ||
17955 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
17956 | int argc; | |
17957 | PyObject *argv[3]; | |
17958 | int ii; | |
17959 | ||
17960 | argc = PyObject_Length(args); | |
17961 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
17962 | argv[ii] = PyTuple_GetItem(args,ii); | |
17963 | } | |
17964 | if (argc == 2) { | |
17965 | int _v; | |
17966 | { | |
17967 | void *ptr; | |
17968 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
17969 | _v = 0; | |
17970 | PyErr_Clear(); | |
17971 | } else { | |
17972 | _v = 1; | |
17973 | } | |
17974 | } | |
17975 | if (_v) { | |
17976 | { | |
17977 | void *ptr; | |
17978 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
17979 | _v = 0; | |
17980 | PyErr_Clear(); | |
17981 | } else { | |
17982 | _v = 1; | |
17983 | } | |
17984 | } | |
17985 | if (_v) { | |
17986 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
17987 | } | |
17988 | } | |
17989 | } | |
17990 | if (argc == 2) { | |
17991 | int _v; | |
17992 | { | |
17993 | void *ptr; | |
17994 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
17995 | _v = 0; | |
17996 | PyErr_Clear(); | |
17997 | } else { | |
17998 | _v = 1; | |
17999 | } | |
18000 | } | |
18001 | if (_v) { | |
18002 | { | |
18003 | void *ptr; | |
18004 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18005 | _v = 0; | |
18006 | PyErr_Clear(); | |
18007 | } else { | |
18008 | _v = 1; | |
18009 | } | |
18010 | } | |
18011 | if (_v) { | |
18012 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
18013 | } | |
18014 | } | |
18015 | } | |
18016 | ||
18017 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
18022 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
18023 | PyObject *resultobj; | |
18024 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18025 | wxTimeSpan *arg2 = 0 ; | |
18026 | wxDateTime *result; | |
18027 | PyObject * obj0 = 0 ; | |
18028 | PyObject * obj1 = 0 ; | |
18029 | ||
18030 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18032 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18033 | if (arg2 == NULL) { | |
18034 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18035 | } | |
18036 | { | |
18037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18038 | { | |
18039 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
18040 | result = (wxDateTime *) &_result_ref; | |
18041 | } | |
18042 | ||
18043 | wxPyEndAllowThreads(__tstate); | |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
18045 | } | |
18046 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18047 | return resultobj; | |
18048 | fail: | |
18049 | return NULL; | |
18050 | } | |
18051 | ||
18052 | ||
18053 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
18054 | PyObject *resultobj; | |
18055 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18056 | wxDateSpan *arg2 = 0 ; | |
18057 | wxDateTime *result; | |
18058 | PyObject * obj0 = 0 ; | |
18059 | PyObject * obj1 = 0 ; | |
18060 | ||
18061 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18063 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18064 | if (arg2 == NULL) { | |
18065 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18066 | } | |
18067 | { | |
18068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18069 | { | |
18070 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
18071 | result = (wxDateTime *) &_result_ref; | |
18072 | } | |
18073 | ||
18074 | wxPyEndAllowThreads(__tstate); | |
18075 | if (PyErr_Occurred()) SWIG_fail; | |
18076 | } | |
18077 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18078 | return resultobj; | |
18079 | fail: | |
18080 | return NULL; | |
18081 | } | |
18082 | ||
18083 | ||
18084 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
18085 | int argc; | |
18086 | PyObject *argv[3]; | |
18087 | int ii; | |
18088 | ||
18089 | argc = PyObject_Length(args); | |
18090 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18091 | argv[ii] = PyTuple_GetItem(args,ii); | |
18092 | } | |
18093 | if (argc == 2) { | |
18094 | int _v; | |
18095 | { | |
18096 | void *ptr; | |
18097 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18098 | _v = 0; | |
18099 | PyErr_Clear(); | |
18100 | } else { | |
18101 | _v = 1; | |
18102 | } | |
18103 | } | |
18104 | if (_v) { | |
18105 | { | |
18106 | void *ptr; | |
18107 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18108 | _v = 0; | |
18109 | PyErr_Clear(); | |
18110 | } else { | |
18111 | _v = 1; | |
18112 | } | |
18113 | } | |
18114 | if (_v) { | |
18115 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
18116 | } | |
18117 | } | |
18118 | } | |
18119 | if (argc == 2) { | |
18120 | int _v; | |
18121 | { | |
18122 | void *ptr; | |
18123 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18124 | _v = 0; | |
18125 | PyErr_Clear(); | |
18126 | } else { | |
18127 | _v = 1; | |
18128 | } | |
18129 | } | |
18130 | if (_v) { | |
18131 | { | |
18132 | void *ptr; | |
18133 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18134 | _v = 0; | |
18135 | PyErr_Clear(); | |
18136 | } else { | |
18137 | _v = 1; | |
18138 | } | |
18139 | } | |
18140 | if (_v) { | |
18141 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
18142 | } | |
18143 | } | |
18144 | } | |
18145 | ||
18146 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
18147 | return NULL; | |
18148 | } | |
18149 | ||
18150 | ||
18151 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
18152 | PyObject *resultobj; | |
18153 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18154 | wxTimeSpan *arg2 = 0 ; | |
18155 | wxDateTime result; | |
18156 | PyObject * obj0 = 0 ; | |
18157 | PyObject * obj1 = 0 ; | |
18158 | ||
18159 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18161 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18162 | if (arg2 == NULL) { | |
18163 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18164 | } | |
18165 | { | |
18166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18167 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
18168 | ||
18169 | wxPyEndAllowThreads(__tstate); | |
18170 | if (PyErr_Occurred()) SWIG_fail; | |
18171 | } | |
18172 | { | |
18173 | wxDateTime * resultptr; | |
18174 | resultptr = new wxDateTime((wxDateTime &) result); | |
18175 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18176 | } | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
18184 | PyObject *resultobj; | |
18185 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18186 | wxDateSpan *arg2 = 0 ; | |
18187 | wxDateTime result; | |
18188 | PyObject * obj0 = 0 ; | |
18189 | PyObject * obj1 = 0 ; | |
18190 | ||
18191 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18192 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18193 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18194 | if (arg2 == NULL) { | |
18195 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18196 | } | |
18197 | { | |
18198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18199 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
18200 | ||
18201 | wxPyEndAllowThreads(__tstate); | |
18202 | if (PyErr_Occurred()) SWIG_fail; | |
18203 | } | |
18204 | { | |
18205 | wxDateTime * resultptr; | |
18206 | resultptr = new wxDateTime((wxDateTime &) result); | |
18207 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18208 | } | |
18209 | return resultobj; | |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
18215 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
18216 | int argc; | |
18217 | PyObject *argv[3]; | |
18218 | int ii; | |
18219 | ||
18220 | argc = PyObject_Length(args); | |
18221 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18222 | argv[ii] = PyTuple_GetItem(args,ii); | |
18223 | } | |
18224 | if (argc == 2) { | |
18225 | int _v; | |
18226 | { | |
18227 | void *ptr; | |
18228 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18229 | _v = 0; | |
18230 | PyErr_Clear(); | |
18231 | } else { | |
18232 | _v = 1; | |
18233 | } | |
18234 | } | |
18235 | if (_v) { | |
18236 | { | |
18237 | void *ptr; | |
18238 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18239 | _v = 0; | |
18240 | PyErr_Clear(); | |
18241 | } else { | |
18242 | _v = 1; | |
18243 | } | |
18244 | } | |
18245 | if (_v) { | |
18246 | return _wrap_DateTime___add____SWIG_0(self,args); | |
18247 | } | |
18248 | } | |
18249 | } | |
18250 | if (argc == 2) { | |
18251 | int _v; | |
18252 | { | |
18253 | void *ptr; | |
18254 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18255 | _v = 0; | |
18256 | PyErr_Clear(); | |
18257 | } else { | |
18258 | _v = 1; | |
18259 | } | |
18260 | } | |
18261 | if (_v) { | |
18262 | { | |
18263 | void *ptr; | |
18264 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18265 | _v = 0; | |
18266 | PyErr_Clear(); | |
18267 | } else { | |
18268 | _v = 1; | |
18269 | } | |
18270 | } | |
18271 | if (_v) { | |
18272 | return _wrap_DateTime___add____SWIG_1(self,args); | |
18273 | } | |
18274 | } | |
18275 | } | |
18276 | ||
18277 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
18278 | return NULL; | |
18279 | } | |
18280 | ||
18281 | ||
18282 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
18283 | PyObject *resultobj; | |
18284 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18285 | wxDateTime *arg2 = 0 ; | |
18286 | wxTimeSpan result; | |
18287 | PyObject * obj0 = 0 ; | |
18288 | PyObject * obj1 = 0 ; | |
18289 | ||
18290 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18292 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18293 | if (arg2 == NULL) { | |
18294 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18295 | } | |
18296 | { | |
18297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18298 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
18299 | ||
18300 | wxPyEndAllowThreads(__tstate); | |
18301 | if (PyErr_Occurred()) SWIG_fail; | |
18302 | } | |
18303 | { | |
18304 | wxTimeSpan * resultptr; | |
18305 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18306 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18307 | } | |
18308 | return resultobj; | |
18309 | fail: | |
18310 | return NULL; | |
18311 | } | |
18312 | ||
18313 | ||
18314 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
18315 | PyObject *resultobj; | |
18316 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18317 | wxTimeSpan *arg2 = 0 ; | |
18318 | wxDateTime result; | |
18319 | PyObject * obj0 = 0 ; | |
18320 | PyObject * obj1 = 0 ; | |
18321 | ||
18322 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18324 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18325 | if (arg2 == NULL) { | |
18326 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18327 | } | |
18328 | { | |
18329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18330 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
18331 | ||
18332 | wxPyEndAllowThreads(__tstate); | |
18333 | if (PyErr_Occurred()) SWIG_fail; | |
18334 | } | |
18335 | { | |
18336 | wxDateTime * resultptr; | |
18337 | resultptr = new wxDateTime((wxDateTime &) result); | |
18338 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18339 | } | |
18340 | return resultobj; | |
18341 | fail: | |
18342 | return NULL; | |
18343 | } | |
18344 | ||
18345 | ||
18346 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
18347 | PyObject *resultobj; | |
18348 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18349 | wxDateSpan *arg2 = 0 ; | |
18350 | wxDateTime result; | |
18351 | PyObject * obj0 = 0 ; | |
18352 | PyObject * obj1 = 0 ; | |
18353 | ||
18354 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18356 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18357 | if (arg2 == NULL) { | |
18358 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18359 | } | |
18360 | { | |
18361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18362 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
18363 | ||
18364 | wxPyEndAllowThreads(__tstate); | |
18365 | if (PyErr_Occurred()) SWIG_fail; | |
18366 | } | |
18367 | { | |
18368 | wxDateTime * resultptr; | |
18369 | resultptr = new wxDateTime((wxDateTime &) result); | |
18370 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18371 | } | |
18372 | return resultobj; | |
18373 | fail: | |
18374 | return NULL; | |
18375 | } | |
18376 | ||
18377 | ||
18378 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
18379 | int argc; | |
18380 | PyObject *argv[3]; | |
18381 | int ii; | |
18382 | ||
18383 | argc = PyObject_Length(args); | |
18384 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18385 | argv[ii] = PyTuple_GetItem(args,ii); | |
18386 | } | |
18387 | if (argc == 2) { | |
18388 | int _v; | |
18389 | { | |
18390 | void *ptr; | |
18391 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18392 | _v = 0; | |
18393 | PyErr_Clear(); | |
18394 | } else { | |
18395 | _v = 1; | |
18396 | } | |
18397 | } | |
18398 | if (_v) { | |
18399 | { | |
18400 | void *ptr; | |
18401 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18402 | _v = 0; | |
18403 | PyErr_Clear(); | |
18404 | } else { | |
18405 | _v = 1; | |
18406 | } | |
18407 | } | |
18408 | if (_v) { | |
18409 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
18410 | } | |
18411 | } | |
18412 | } | |
18413 | if (argc == 2) { | |
18414 | int _v; | |
18415 | { | |
18416 | void *ptr; | |
18417 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18418 | _v = 0; | |
18419 | PyErr_Clear(); | |
18420 | } else { | |
18421 | _v = 1; | |
18422 | } | |
18423 | } | |
18424 | if (_v) { | |
18425 | { | |
18426 | void *ptr; | |
18427 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18428 | _v = 0; | |
18429 | PyErr_Clear(); | |
18430 | } else { | |
18431 | _v = 1; | |
18432 | } | |
18433 | } | |
18434 | if (_v) { | |
18435 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
18436 | } | |
18437 | } | |
18438 | } | |
18439 | if (argc == 2) { | |
18440 | int _v; | |
18441 | { | |
18442 | void *ptr; | |
18443 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18444 | _v = 0; | |
18445 | PyErr_Clear(); | |
18446 | } else { | |
18447 | _v = 1; | |
18448 | } | |
18449 | } | |
18450 | if (_v) { | |
18451 | { | |
18452 | void *ptr; | |
18453 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18454 | _v = 0; | |
18455 | PyErr_Clear(); | |
18456 | } else { | |
18457 | _v = 1; | |
18458 | } | |
18459 | } | |
18460 | if (_v) { | |
18461 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
18462 | } | |
18463 | } | |
18464 | } | |
18465 | ||
18466 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
18467 | return NULL; | |
18468 | } | |
18469 | ||
18470 | ||
18471 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
18472 | PyObject *resultobj; | |
18473 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18474 | wxDateTime *arg2 = 0 ; | |
18475 | bool result; | |
18476 | PyObject * obj0 = 0 ; | |
18477 | PyObject * obj1 = 0 ; | |
18478 | ||
18479 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
18480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18481 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18482 | if (arg2 == NULL) { | |
18483 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18484 | } | |
18485 | { | |
18486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18487 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
18488 | ||
18489 | wxPyEndAllowThreads(__tstate); | |
18490 | if (PyErr_Occurred()) SWIG_fail; | |
18491 | } | |
18492 | resultobj = PyInt_FromLong((long)result); | |
18493 | return resultobj; | |
18494 | fail: | |
18495 | return NULL; | |
18496 | } | |
18497 | ||
18498 | ||
18499 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
18500 | PyObject *resultobj; | |
18501 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18502 | wxDateTime *arg2 = 0 ; | |
18503 | bool result; | |
18504 | PyObject * obj0 = 0 ; | |
18505 | PyObject * obj1 = 0 ; | |
18506 | ||
18507 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
18508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18509 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18510 | if (arg2 == NULL) { | |
18511 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18512 | } | |
18513 | { | |
18514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18515 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
18516 | ||
18517 | wxPyEndAllowThreads(__tstate); | |
18518 | if (PyErr_Occurred()) SWIG_fail; | |
18519 | } | |
18520 | resultobj = PyInt_FromLong((long)result); | |
18521 | return resultobj; | |
18522 | fail: | |
18523 | return NULL; | |
18524 | } | |
18525 | ||
18526 | ||
18527 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
18528 | PyObject *resultobj; | |
18529 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18530 | wxDateTime *arg2 = 0 ; | |
18531 | bool result; | |
18532 | PyObject * obj0 = 0 ; | |
18533 | PyObject * obj1 = 0 ; | |
18534 | ||
18535 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
18536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18537 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18538 | if (arg2 == NULL) { | |
18539 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18540 | } | |
18541 | { | |
18542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18543 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
18544 | ||
18545 | wxPyEndAllowThreads(__tstate); | |
18546 | if (PyErr_Occurred()) SWIG_fail; | |
18547 | } | |
18548 | resultobj = PyInt_FromLong((long)result); | |
18549 | return resultobj; | |
18550 | fail: | |
18551 | return NULL; | |
18552 | } | |
18553 | ||
18554 | ||
18555 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
18556 | PyObject *resultobj; | |
18557 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18558 | wxDateTime *arg2 = 0 ; | |
18559 | bool result; | |
18560 | PyObject * obj0 = 0 ; | |
18561 | PyObject * obj1 = 0 ; | |
18562 | ||
18563 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
18564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18565 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18566 | if (arg2 == NULL) { | |
18567 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18568 | } | |
18569 | { | |
18570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18571 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
18572 | ||
18573 | wxPyEndAllowThreads(__tstate); | |
18574 | if (PyErr_Occurred()) SWIG_fail; | |
18575 | } | |
18576 | resultobj = PyInt_FromLong((long)result); | |
18577 | return resultobj; | |
18578 | fail: | |
18579 | return NULL; | |
18580 | } | |
18581 | ||
18582 | ||
18583 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
18584 | PyObject *resultobj; | |
18585 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18586 | wxDateTime *arg2 = 0 ; | |
18587 | bool result; | |
18588 | PyObject * obj0 = 0 ; | |
18589 | PyObject * obj1 = 0 ; | |
18590 | ||
18591 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
18592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18593 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18594 | if (arg2 == NULL) { | |
18595 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18596 | } | |
18597 | { | |
18598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18599 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
18600 | ||
18601 | wxPyEndAllowThreads(__tstate); | |
18602 | if (PyErr_Occurred()) SWIG_fail; | |
18603 | } | |
18604 | resultobj = PyInt_FromLong((long)result); | |
18605 | return resultobj; | |
18606 | fail: | |
18607 | return NULL; | |
18608 | } | |
18609 | ||
18610 | ||
18611 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
18612 | PyObject *resultobj; | |
18613 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18614 | wxDateTime *arg2 = 0 ; | |
18615 | bool result; | |
18616 | PyObject * obj0 = 0 ; | |
18617 | PyObject * obj1 = 0 ; | |
18618 | ||
18619 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
18620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18621 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18622 | if (arg2 == NULL) { | |
18623 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18624 | } | |
18625 | { | |
18626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18627 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
18628 | ||
18629 | wxPyEndAllowThreads(__tstate); | |
18630 | if (PyErr_Occurred()) SWIG_fail; | |
18631 | } | |
18632 | resultobj = PyInt_FromLong((long)result); | |
18633 | return resultobj; | |
18634 | fail: | |
18635 | return NULL; | |
18636 | } | |
18637 | ||
18638 | ||
18639 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18640 | PyObject *resultobj; | |
18641 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18642 | wxString *arg2 = 0 ; | |
18643 | int result; | |
423f194a | 18644 | bool temp2 = False ; |
d14a1e28 RD |
18645 | PyObject * obj0 = 0 ; |
18646 | PyObject * obj1 = 0 ; | |
18647 | char *kwnames[] = { | |
18648 | (char *) "self",(char *) "date", NULL | |
18649 | }; | |
18650 | ||
18651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
18652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18653 | { | |
18654 | arg2 = wxString_in_helper(obj1); | |
18655 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18656 | temp2 = True; |
d14a1e28 RD |
18657 | } |
18658 | { | |
18659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18660 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
18661 | ||
18662 | wxPyEndAllowThreads(__tstate); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
18664 | } | |
18665 | resultobj = PyInt_FromLong((long)result); | |
18666 | { | |
18667 | if (temp2) | |
18668 | delete arg2; | |
18669 | } | |
18670 | return resultobj; | |
18671 | fail: | |
18672 | { | |
18673 | if (temp2) | |
18674 | delete arg2; | |
18675 | } | |
18676 | return NULL; | |
18677 | } | |
18678 | ||
18679 | ||
18680 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18681 | PyObject *resultobj; | |
18682 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18683 | wxString *arg2 = 0 ; | |
18684 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
18685 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18686 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
18687 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
18688 | int result; | |
423f194a RD |
18689 | bool temp2 = False ; |
18690 | bool temp3 = False ; | |
d14a1e28 RD |
18691 | PyObject * obj0 = 0 ; |
18692 | PyObject * obj1 = 0 ; | |
18693 | PyObject * obj2 = 0 ; | |
18694 | PyObject * obj3 = 0 ; | |
18695 | char *kwnames[] = { | |
18696 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
18697 | }; | |
18698 | ||
18699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18701 | { | |
18702 | arg2 = wxString_in_helper(obj1); | |
18703 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18704 | temp2 = True; |
d14a1e28 RD |
18705 | } |
18706 | if (obj2) { | |
18707 | { | |
18708 | arg3 = wxString_in_helper(obj2); | |
18709 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 18710 | temp3 = True; |
d14a1e28 RD |
18711 | } |
18712 | } | |
18713 | if (obj3) { | |
18714 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18715 | if (arg4 == NULL) { | |
18716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18717 | } | |
18718 | } | |
18719 | { | |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
18726 | resultobj = PyInt_FromLong((long)result); | |
18727 | { | |
18728 | if (temp2) | |
18729 | delete arg2; | |
18730 | } | |
18731 | { | |
18732 | if (temp3) | |
18733 | delete arg3; | |
18734 | } | |
18735 | return resultobj; | |
18736 | fail: | |
18737 | { | |
18738 | if (temp2) | |
18739 | delete arg2; | |
18740 | } | |
18741 | { | |
18742 | if (temp3) | |
18743 | delete arg3; | |
18744 | } | |
18745 | return NULL; | |
18746 | } | |
18747 | ||
18748 | ||
18749 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18750 | PyObject *resultobj; | |
18751 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18752 | wxString *arg2 = 0 ; | |
18753 | int result; | |
423f194a | 18754 | bool temp2 = False ; |
d14a1e28 RD |
18755 | PyObject * obj0 = 0 ; |
18756 | PyObject * obj1 = 0 ; | |
18757 | char *kwnames[] = { | |
18758 | (char *) "self",(char *) "datetime", NULL | |
18759 | }; | |
18760 | ||
18761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
18762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18763 | { | |
18764 | arg2 = wxString_in_helper(obj1); | |
18765 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18766 | temp2 = True; |
d14a1e28 RD |
18767 | } |
18768 | { | |
18769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18770 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
18771 | ||
18772 | wxPyEndAllowThreads(__tstate); | |
18773 | if (PyErr_Occurred()) SWIG_fail; | |
18774 | } | |
18775 | resultobj = PyInt_FromLong((long)result); | |
18776 | { | |
18777 | if (temp2) | |
18778 | delete arg2; | |
18779 | } | |
18780 | return resultobj; | |
18781 | fail: | |
18782 | { | |
18783 | if (temp2) | |
18784 | delete arg2; | |
18785 | } | |
18786 | return NULL; | |
18787 | } | |
18788 | ||
18789 | ||
18790 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18791 | PyObject *resultobj; | |
18792 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18793 | wxString *arg2 = 0 ; | |
18794 | int result; | |
423f194a | 18795 | bool temp2 = False ; |
d14a1e28 RD |
18796 | PyObject * obj0 = 0 ; |
18797 | PyObject * obj1 = 0 ; | |
18798 | char *kwnames[] = { | |
18799 | (char *) "self",(char *) "date", NULL | |
18800 | }; | |
18801 | ||
18802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
18803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18804 | { | |
18805 | arg2 = wxString_in_helper(obj1); | |
18806 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18807 | temp2 = True; |
d14a1e28 RD |
18808 | } |
18809 | { | |
18810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18811 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
18812 | ||
18813 | wxPyEndAllowThreads(__tstate); | |
18814 | if (PyErr_Occurred()) SWIG_fail; | |
18815 | } | |
18816 | resultobj = PyInt_FromLong((long)result); | |
18817 | { | |
18818 | if (temp2) | |
18819 | delete arg2; | |
18820 | } | |
18821 | return resultobj; | |
18822 | fail: | |
18823 | { | |
18824 | if (temp2) | |
18825 | delete arg2; | |
18826 | } | |
18827 | return NULL; | |
18828 | } | |
18829 | ||
18830 | ||
18831 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18832 | PyObject *resultobj; | |
18833 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18834 | wxString *arg2 = 0 ; | |
18835 | int result; | |
423f194a | 18836 | bool temp2 = False ; |
d14a1e28 RD |
18837 | PyObject * obj0 = 0 ; |
18838 | PyObject * obj1 = 0 ; | |
18839 | char *kwnames[] = { | |
18840 | (char *) "self",(char *) "time", NULL | |
18841 | }; | |
18842 | ||
18843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
18844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18845 | { | |
18846 | arg2 = wxString_in_helper(obj1); | |
18847 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18848 | temp2 = True; |
d14a1e28 RD |
18849 | } |
18850 | { | |
18851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18852 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
18853 | ||
18854 | wxPyEndAllowThreads(__tstate); | |
18855 | if (PyErr_Occurred()) SWIG_fail; | |
18856 | } | |
18857 | resultobj = PyInt_FromLong((long)result); | |
18858 | { | |
18859 | if (temp2) | |
18860 | delete arg2; | |
18861 | } | |
18862 | return resultobj; | |
18863 | fail: | |
18864 | { | |
18865 | if (temp2) | |
18866 | delete arg2; | |
18867 | } | |
18868 | return NULL; | |
18869 | } | |
18870 | ||
18871 | ||
18872 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18873 | PyObject *resultobj; | |
18874 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18875 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
18876 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
18877 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
18878 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
18879 | wxString result; | |
423f194a | 18880 | bool temp2 = False ; |
44127b65 | 18881 | bool temp3 = False ; |
d14a1e28 RD |
18882 | PyObject * obj0 = 0 ; |
18883 | PyObject * obj1 = 0 ; | |
18884 | PyObject * obj2 = 0 ; | |
18885 | char *kwnames[] = { | |
18886 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
18887 | }; | |
18888 | ||
18889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18891 | if (obj1) { | |
18892 | { | |
18893 | arg2 = wxString_in_helper(obj1); | |
18894 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18895 | temp2 = True; |
d14a1e28 RD |
18896 | } |
18897 | } | |
18898 | if (obj2) { | |
18899 | { | |
18900 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 18901 | temp3 = True; |
d14a1e28 RD |
18902 | } |
18903 | } | |
18904 | { | |
18905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18906 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
18907 | ||
18908 | wxPyEndAllowThreads(__tstate); | |
18909 | if (PyErr_Occurred()) SWIG_fail; | |
18910 | } | |
18911 | { | |
18912 | #if wxUSE_UNICODE | |
18913 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18914 | #else | |
18915 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18916 | #endif | |
18917 | } | |
18918 | { | |
18919 | if (temp2) | |
18920 | delete arg2; | |
18921 | } | |
18922 | { | |
44127b65 | 18923 | if (temp3) delete arg3; |
d14a1e28 RD |
18924 | } |
18925 | return resultobj; | |
18926 | fail: | |
18927 | { | |
18928 | if (temp2) | |
18929 | delete arg2; | |
18930 | } | |
18931 | { | |
44127b65 | 18932 | if (temp3) delete arg3; |
d14a1e28 RD |
18933 | } |
18934 | return NULL; | |
18935 | } | |
18936 | ||
18937 | ||
18938 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18939 | PyObject *resultobj; | |
18940 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18941 | wxString result; | |
18942 | PyObject * obj0 = 0 ; | |
18943 | char *kwnames[] = { | |
18944 | (char *) "self", NULL | |
18945 | }; | |
18946 | ||
18947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
18948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18949 | { | |
18950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18951 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
18952 | ||
18953 | wxPyEndAllowThreads(__tstate); | |
18954 | if (PyErr_Occurred()) SWIG_fail; | |
18955 | } | |
18956 | { | |
18957 | #if wxUSE_UNICODE | |
18958 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18959 | #else | |
18960 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18961 | #endif | |
18962 | } | |
18963 | return resultobj; | |
18964 | fail: | |
18965 | return NULL; | |
18966 | } | |
18967 | ||
18968 | ||
18969 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18970 | PyObject *resultobj; | |
18971 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18972 | wxString result; | |
18973 | PyObject * obj0 = 0 ; | |
18974 | char *kwnames[] = { | |
18975 | (char *) "self", NULL | |
18976 | }; | |
18977 | ||
18978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
18979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18980 | { | |
18981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18982 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
18983 | ||
18984 | wxPyEndAllowThreads(__tstate); | |
18985 | if (PyErr_Occurred()) SWIG_fail; | |
18986 | } | |
18987 | { | |
18988 | #if wxUSE_UNICODE | |
18989 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18990 | #else | |
18991 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18992 | #endif | |
18993 | } | |
18994 | return resultobj; | |
18995 | fail: | |
18996 | return NULL; | |
18997 | } | |
18998 | ||
18999 | ||
19000 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19001 | PyObject *resultobj; | |
19002 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19003 | wxString result; | |
19004 | PyObject * obj0 = 0 ; | |
19005 | char *kwnames[] = { | |
19006 | (char *) "self", NULL | |
19007 | }; | |
19008 | ||
19009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
19010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19011 | { | |
19012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19013 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
19014 | ||
19015 | wxPyEndAllowThreads(__tstate); | |
19016 | if (PyErr_Occurred()) SWIG_fail; | |
19017 | } | |
19018 | { | |
19019 | #if wxUSE_UNICODE | |
19020 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19021 | #else | |
19022 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19023 | #endif | |
19024 | } | |
19025 | return resultobj; | |
19026 | fail: | |
19027 | return NULL; | |
19028 | } | |
19029 | ||
19030 | ||
19031 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19032 | PyObject *resultobj; | |
19033 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19034 | wxString result; | |
19035 | PyObject * obj0 = 0 ; | |
19036 | char *kwnames[] = { | |
19037 | (char *) "self", NULL | |
19038 | }; | |
19039 | ||
19040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
19041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19042 | { | |
19043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19044 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
19045 | ||
19046 | wxPyEndAllowThreads(__tstate); | |
19047 | if (PyErr_Occurred()) SWIG_fail; | |
19048 | } | |
19049 | { | |
19050 | #if wxUSE_UNICODE | |
19051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19052 | #else | |
19053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19054 | #endif | |
19055 | } | |
19056 | return resultobj; | |
19057 | fail: | |
19058 | return NULL; | |
19059 | } | |
19060 | ||
19061 | ||
19062 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
19063 | PyObject *obj; | |
19064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19065 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
19066 | Py_INCREF(obj); | |
19067 | return Py_BuildValue((char *)""); | |
19068 | } | |
19069 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19070 | PyObject *resultobj; | |
19071 | long arg1 ; | |
19072 | wxTimeSpan result; | |
19073 | char *kwnames[] = { | |
19074 | (char *) "sec", NULL | |
19075 | }; | |
19076 | ||
19077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Seconds",kwnames,&arg1)) goto fail; | |
19078 | { | |
19079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19080 | result = wxTimeSpan::Seconds(arg1); | |
19081 | ||
19082 | wxPyEndAllowThreads(__tstate); | |
19083 | if (PyErr_Occurred()) SWIG_fail; | |
19084 | } | |
19085 | { | |
19086 | wxTimeSpan * resultptr; | |
19087 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19088 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19089 | } | |
19090 | return resultobj; | |
19091 | fail: | |
19092 | return NULL; | |
19093 | } | |
19094 | ||
19095 | ||
19096 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19097 | PyObject *resultobj; | |
19098 | wxTimeSpan result; | |
19099 | char *kwnames[] = { | |
19100 | NULL | |
19101 | }; | |
19102 | ||
19103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
19104 | { | |
19105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19106 | result = wxTimeSpan::Second(); | |
19107 | ||
19108 | wxPyEndAllowThreads(__tstate); | |
19109 | if (PyErr_Occurred()) SWIG_fail; | |
19110 | } | |
19111 | { | |
19112 | wxTimeSpan * resultptr; | |
19113 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19114 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19115 | } | |
19116 | return resultobj; | |
19117 | fail: | |
19118 | return NULL; | |
19119 | } | |
19120 | ||
19121 | ||
19122 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19123 | PyObject *resultobj; | |
19124 | long arg1 ; | |
19125 | wxTimeSpan result; | |
19126 | char *kwnames[] = { | |
19127 | (char *) "min", NULL | |
19128 | }; | |
19129 | ||
19130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Minutes",kwnames,&arg1)) goto fail; | |
19131 | { | |
19132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19133 | result = wxTimeSpan::Minutes(arg1); | |
19134 | ||
19135 | wxPyEndAllowThreads(__tstate); | |
19136 | if (PyErr_Occurred()) SWIG_fail; | |
19137 | } | |
19138 | { | |
19139 | wxTimeSpan * resultptr; | |
19140 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19141 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19142 | } | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj; | |
19151 | wxTimeSpan result; | |
19152 | char *kwnames[] = { | |
19153 | NULL | |
19154 | }; | |
19155 | ||
19156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
19157 | { | |
19158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19159 | result = wxTimeSpan::Minute(); | |
19160 | ||
19161 | wxPyEndAllowThreads(__tstate); | |
19162 | if (PyErr_Occurred()) SWIG_fail; | |
19163 | } | |
19164 | { | |
19165 | wxTimeSpan * resultptr; | |
19166 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19167 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19168 | } | |
19169 | return resultobj; | |
19170 | fail: | |
19171 | return NULL; | |
19172 | } | |
19173 | ||
19174 | ||
19175 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19176 | PyObject *resultobj; | |
19177 | long arg1 ; | |
19178 | wxTimeSpan result; | |
19179 | char *kwnames[] = { | |
19180 | (char *) "hours", NULL | |
19181 | }; | |
19182 | ||
19183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Hours",kwnames,&arg1)) goto fail; | |
19184 | { | |
19185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19186 | result = wxTimeSpan::Hours(arg1); | |
19187 | ||
19188 | wxPyEndAllowThreads(__tstate); | |
19189 | if (PyErr_Occurred()) SWIG_fail; | |
19190 | } | |
19191 | { | |
19192 | wxTimeSpan * resultptr; | |
19193 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19194 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19195 | } | |
19196 | return resultobj; | |
19197 | fail: | |
19198 | return NULL; | |
19199 | } | |
19200 | ||
19201 | ||
19202 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19203 | PyObject *resultobj; | |
19204 | wxTimeSpan result; | |
19205 | char *kwnames[] = { | |
19206 | NULL | |
19207 | }; | |
19208 | ||
19209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
19210 | { | |
19211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19212 | result = wxTimeSpan::Hour(); | |
19213 | ||
19214 | wxPyEndAllowThreads(__tstate); | |
19215 | if (PyErr_Occurred()) SWIG_fail; | |
19216 | } | |
19217 | { | |
19218 | wxTimeSpan * resultptr; | |
19219 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19220 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19221 | } | |
19222 | return resultobj; | |
19223 | fail: | |
19224 | return NULL; | |
19225 | } | |
19226 | ||
19227 | ||
19228 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19229 | PyObject *resultobj; | |
19230 | long arg1 ; | |
19231 | wxTimeSpan result; | |
19232 | char *kwnames[] = { | |
19233 | (char *) "days", NULL | |
19234 | }; | |
19235 | ||
19236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Days",kwnames,&arg1)) goto fail; | |
19237 | { | |
19238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19239 | result = wxTimeSpan::Days(arg1); | |
19240 | ||
19241 | wxPyEndAllowThreads(__tstate); | |
19242 | if (PyErr_Occurred()) SWIG_fail; | |
19243 | } | |
19244 | { | |
19245 | wxTimeSpan * resultptr; | |
19246 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19247 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19248 | } | |
19249 | return resultobj; | |
19250 | fail: | |
19251 | return NULL; | |
19252 | } | |
19253 | ||
19254 | ||
19255 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19256 | PyObject *resultobj; | |
19257 | wxTimeSpan result; | |
19258 | char *kwnames[] = { | |
19259 | NULL | |
19260 | }; | |
19261 | ||
19262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
19263 | { | |
19264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19265 | result = wxTimeSpan::Day(); | |
19266 | ||
19267 | wxPyEndAllowThreads(__tstate); | |
19268 | if (PyErr_Occurred()) SWIG_fail; | |
19269 | } | |
19270 | { | |
19271 | wxTimeSpan * resultptr; | |
19272 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19273 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19274 | } | |
19275 | return resultobj; | |
19276 | fail: | |
19277 | return NULL; | |
19278 | } | |
19279 | ||
19280 | ||
19281 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19282 | PyObject *resultobj; | |
19283 | long arg1 ; | |
19284 | wxTimeSpan result; | |
19285 | char *kwnames[] = { | |
19286 | (char *) "days", NULL | |
19287 | }; | |
19288 | ||
19289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Weeks",kwnames,&arg1)) goto fail; | |
19290 | { | |
19291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19292 | result = wxTimeSpan::Weeks(arg1); | |
19293 | ||
19294 | wxPyEndAllowThreads(__tstate); | |
19295 | if (PyErr_Occurred()) SWIG_fail; | |
19296 | } | |
19297 | { | |
19298 | wxTimeSpan * resultptr; | |
19299 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19300 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19301 | } | |
19302 | return resultobj; | |
19303 | fail: | |
19304 | return NULL; | |
19305 | } | |
19306 | ||
19307 | ||
19308 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19309 | PyObject *resultobj; | |
19310 | wxTimeSpan result; | |
19311 | char *kwnames[] = { | |
19312 | NULL | |
19313 | }; | |
19314 | ||
19315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
19316 | { | |
19317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19318 | result = wxTimeSpan::Week(); | |
19319 | ||
19320 | wxPyEndAllowThreads(__tstate); | |
19321 | if (PyErr_Occurred()) SWIG_fail; | |
19322 | } | |
19323 | { | |
19324 | wxTimeSpan * resultptr; | |
19325 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19326 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19327 | } | |
19328 | return resultobj; | |
19329 | fail: | |
19330 | return NULL; | |
19331 | } | |
19332 | ||
19333 | ||
19334 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19335 | PyObject *resultobj; | |
19336 | long arg1 = (long) 0 ; | |
19337 | long arg2 = (long) 0 ; | |
19338 | long arg3 = (long) 0 ; | |
19339 | long arg4 = (long) 0 ; | |
19340 | wxTimeSpan *result; | |
19341 | char *kwnames[] = { | |
19342 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
19343 | }; | |
19344 | ||
19345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|llll:new_TimeSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
19346 | { | |
19347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19348 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
19349 | ||
19350 | wxPyEndAllowThreads(__tstate); | |
19351 | if (PyErr_Occurred()) SWIG_fail; | |
19352 | } | |
19353 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
19354 | return resultobj; | |
19355 | fail: | |
19356 | return NULL; | |
19357 | } | |
19358 | ||
19359 | ||
19360 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19361 | PyObject *resultobj; | |
19362 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19363 | PyObject * obj0 = 0 ; | |
19364 | char *kwnames[] = { | |
19365 | (char *) "self", NULL | |
19366 | }; | |
19367 | ||
19368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
19369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | delete arg1; | |
19373 | ||
19374 | wxPyEndAllowThreads(__tstate); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | } | |
19377 | Py_INCREF(Py_None); resultobj = Py_None; | |
19378 | return resultobj; | |
19379 | fail: | |
19380 | return NULL; | |
19381 | } | |
19382 | ||
19383 | ||
19384 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19385 | PyObject *resultobj; | |
19386 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19387 | wxTimeSpan *arg2 = 0 ; | |
19388 | wxTimeSpan *result; | |
19389 | PyObject * obj0 = 0 ; | |
19390 | PyObject * obj1 = 0 ; | |
19391 | char *kwnames[] = { | |
19392 | (char *) "self",(char *) "diff", NULL | |
19393 | }; | |
19394 | ||
19395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
19396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19397 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19398 | if (arg2 == NULL) { | |
19399 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19400 | } | |
19401 | { | |
19402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19403 | { | |
19404 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19405 | result = (wxTimeSpan *) &_result_ref; | |
19406 | } | |
19407 | ||
19408 | wxPyEndAllowThreads(__tstate); | |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
19410 | } | |
19411 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19412 | return resultobj; | |
19413 | fail: | |
19414 | return NULL; | |
19415 | } | |
19416 | ||
19417 | ||
19418 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19419 | PyObject *resultobj; | |
19420 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19421 | wxTimeSpan *arg2 = 0 ; | |
19422 | wxTimeSpan *result; | |
19423 | PyObject * obj0 = 0 ; | |
19424 | PyObject * obj1 = 0 ; | |
19425 | char *kwnames[] = { | |
19426 | (char *) "self",(char *) "diff", NULL | |
19427 | }; | |
19428 | ||
19429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19431 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19432 | if (arg2 == NULL) { | |
19433 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19434 | } | |
19435 | { | |
19436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19437 | { | |
19438 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19439 | result = (wxTimeSpan *) &_result_ref; | |
19440 | } | |
19441 | ||
19442 | wxPyEndAllowThreads(__tstate); | |
19443 | if (PyErr_Occurred()) SWIG_fail; | |
19444 | } | |
19445 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19446 | return resultobj; | |
19447 | fail: | |
19448 | return NULL; | |
19449 | } | |
19450 | ||
19451 | ||
19452 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19453 | PyObject *resultobj; | |
19454 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19455 | int arg2 ; | |
19456 | wxTimeSpan *result; | |
19457 | PyObject * obj0 = 0 ; | |
19458 | char *kwnames[] = { | |
19459 | (char *) "self",(char *) "n", NULL | |
19460 | }; | |
19461 | ||
19462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
19463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19464 | { | |
19465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19466 | { | |
19467 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
19468 | result = (wxTimeSpan *) &_result_ref; | |
19469 | } | |
19470 | ||
19471 | wxPyEndAllowThreads(__tstate); | |
19472 | if (PyErr_Occurred()) SWIG_fail; | |
19473 | } | |
19474 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19475 | return resultobj; | |
19476 | fail: | |
19477 | return NULL; | |
19478 | } | |
19479 | ||
19480 | ||
19481 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19482 | PyObject *resultobj; | |
19483 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19484 | wxTimeSpan *result; | |
19485 | PyObject * obj0 = 0 ; | |
19486 | char *kwnames[] = { | |
19487 | (char *) "self", NULL | |
19488 | }; | |
19489 | ||
19490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
19491 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19492 | { | |
19493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19494 | { | |
19495 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
19496 | result = (wxTimeSpan *) &_result_ref; | |
19497 | } | |
19498 | ||
19499 | wxPyEndAllowThreads(__tstate); | |
19500 | if (PyErr_Occurred()) SWIG_fail; | |
19501 | } | |
19502 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19503 | return resultobj; | |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
19509 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19510 | PyObject *resultobj; | |
19511 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19512 | wxTimeSpan result; | |
19513 | PyObject * obj0 = 0 ; | |
19514 | char *kwnames[] = { | |
19515 | (char *) "self", NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
19519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19520 | { | |
19521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19522 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
19523 | ||
19524 | wxPyEndAllowThreads(__tstate); | |
19525 | if (PyErr_Occurred()) SWIG_fail; | |
19526 | } | |
19527 | { | |
19528 | wxTimeSpan * resultptr; | |
19529 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19530 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19531 | } | |
19532 | return resultobj; | |
19533 | fail: | |
19534 | return NULL; | |
19535 | } | |
19536 | ||
19537 | ||
19538 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19539 | PyObject *resultobj; | |
19540 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19541 | wxTimeSpan *arg2 = 0 ; | |
19542 | wxTimeSpan *result; | |
19543 | PyObject * obj0 = 0 ; | |
19544 | PyObject * obj1 = 0 ; | |
19545 | char *kwnames[] = { | |
19546 | (char *) "self",(char *) "diff", NULL | |
19547 | }; | |
19548 | ||
19549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
19550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19551 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19552 | if (arg2 == NULL) { | |
19553 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19554 | } | |
19555 | { | |
19556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19557 | { | |
19558 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19559 | result = (wxTimeSpan *) &_result_ref; | |
19560 | } | |
19561 | ||
19562 | wxPyEndAllowThreads(__tstate); | |
19563 | if (PyErr_Occurred()) SWIG_fail; | |
19564 | } | |
19565 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19566 | return resultobj; | |
19567 | fail: | |
19568 | return NULL; | |
19569 | } | |
19570 | ||
19571 | ||
19572 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19573 | PyObject *resultobj; | |
19574 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19575 | wxTimeSpan *arg2 = 0 ; | |
19576 | wxTimeSpan *result; | |
19577 | PyObject * obj0 = 0 ; | |
19578 | PyObject * obj1 = 0 ; | |
19579 | char *kwnames[] = { | |
19580 | (char *) "self",(char *) "diff", NULL | |
19581 | }; | |
19582 | ||
19583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
19584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19585 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19586 | if (arg2 == NULL) { | |
19587 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19588 | } | |
19589 | { | |
19590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19591 | { | |
19592 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19593 | result = (wxTimeSpan *) &_result_ref; | |
19594 | } | |
19595 | ||
19596 | wxPyEndAllowThreads(__tstate); | |
19597 | if (PyErr_Occurred()) SWIG_fail; | |
19598 | } | |
19599 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19600 | return resultobj; | |
19601 | fail: | |
19602 | return NULL; | |
19603 | } | |
19604 | ||
19605 | ||
19606 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19607 | PyObject *resultobj; | |
19608 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19609 | int arg2 ; | |
19610 | wxTimeSpan *result; | |
19611 | PyObject * obj0 = 0 ; | |
19612 | char *kwnames[] = { | |
19613 | (char *) "self",(char *) "n", NULL | |
19614 | }; | |
19615 | ||
19616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
19617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19618 | { | |
19619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19620 | { | |
19621 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
19622 | result = (wxTimeSpan *) &_result_ref; | |
19623 | } | |
19624 | ||
19625 | wxPyEndAllowThreads(__tstate); | |
19626 | if (PyErr_Occurred()) SWIG_fail; | |
19627 | } | |
19628 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19629 | return resultobj; | |
19630 | fail: | |
19631 | return NULL; | |
19632 | } | |
19633 | ||
19634 | ||
19635 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19636 | PyObject *resultobj; | |
19637 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19638 | wxTimeSpan *result; | |
19639 | PyObject * obj0 = 0 ; | |
19640 | char *kwnames[] = { | |
19641 | (char *) "self", NULL | |
19642 | }; | |
19643 | ||
19644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
19645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19646 | { | |
19647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19648 | { | |
19649 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
19650 | result = (wxTimeSpan *) &_result_ref; | |
19651 | } | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
19656 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19657 | return resultobj; | |
19658 | fail: | |
19659 | return NULL; | |
19660 | } | |
19661 | ||
19662 | ||
19663 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19664 | PyObject *resultobj; | |
19665 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19666 | wxTimeSpan *arg2 = 0 ; | |
19667 | wxTimeSpan result; | |
19668 | PyObject * obj0 = 0 ; | |
19669 | PyObject * obj1 = 0 ; | |
19670 | char *kwnames[] = { | |
19671 | (char *) "self",(char *) "other", NULL | |
19672 | }; | |
19673 | ||
19674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
19675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19676 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19677 | if (arg2 == NULL) { | |
19678 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19679 | } | |
19680 | { | |
19681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19682 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
19683 | ||
19684 | wxPyEndAllowThreads(__tstate); | |
19685 | if (PyErr_Occurred()) SWIG_fail; | |
19686 | } | |
19687 | { | |
19688 | wxTimeSpan * resultptr; | |
19689 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19690 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19691 | } | |
19692 | return resultobj; | |
19693 | fail: | |
19694 | return NULL; | |
19695 | } | |
19696 | ||
19697 | ||
19698 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19699 | PyObject *resultobj; | |
19700 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19701 | wxTimeSpan *arg2 = 0 ; | |
19702 | wxTimeSpan result; | |
19703 | PyObject * obj0 = 0 ; | |
19704 | PyObject * obj1 = 0 ; | |
19705 | char *kwnames[] = { | |
19706 | (char *) "self",(char *) "other", NULL | |
19707 | }; | |
19708 | ||
19709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
19710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19711 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19712 | if (arg2 == NULL) { | |
19713 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19714 | } | |
19715 | { | |
19716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19717 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
19718 | ||
19719 | wxPyEndAllowThreads(__tstate); | |
19720 | if (PyErr_Occurred()) SWIG_fail; | |
19721 | } | |
19722 | { | |
19723 | wxTimeSpan * resultptr; | |
19724 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19725 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19726 | } | |
19727 | return resultobj; | |
19728 | fail: | |
19729 | return NULL; | |
19730 | } | |
19731 | ||
19732 | ||
19733 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19734 | PyObject *resultobj; | |
19735 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19736 | int arg2 ; | |
19737 | wxTimeSpan result; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | char *kwnames[] = { | |
19740 | (char *) "self",(char *) "n", NULL | |
19741 | }; | |
19742 | ||
19743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
19744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19745 | { | |
19746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19747 | result = wxTimeSpan___mul__(arg1,arg2); | |
19748 | ||
19749 | wxPyEndAllowThreads(__tstate); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | } | |
19752 | { | |
19753 | wxTimeSpan * resultptr; | |
19754 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19755 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19756 | } | |
19757 | return resultobj; | |
19758 | fail: | |
19759 | return NULL; | |
19760 | } | |
19761 | ||
19762 | ||
19763 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19764 | PyObject *resultobj; | |
19765 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19766 | int arg2 ; | |
19767 | wxTimeSpan result; | |
19768 | PyObject * obj0 = 0 ; | |
19769 | char *kwnames[] = { | |
19770 | (char *) "self",(char *) "n", NULL | |
19771 | }; | |
19772 | ||
19773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
19774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19775 | { | |
19776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19777 | result = wxTimeSpan___rmul__(arg1,arg2); | |
19778 | ||
19779 | wxPyEndAllowThreads(__tstate); | |
19780 | if (PyErr_Occurred()) SWIG_fail; | |
19781 | } | |
19782 | { | |
19783 | wxTimeSpan * resultptr; | |
19784 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19785 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19786 | } | |
19787 | return resultobj; | |
19788 | fail: | |
19789 | return NULL; | |
19790 | } | |
19791 | ||
19792 | ||
19793 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19794 | PyObject *resultobj; | |
19795 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19796 | wxTimeSpan *arg2 = 0 ; | |
19797 | bool result; | |
19798 | PyObject * obj0 = 0 ; | |
19799 | PyObject * obj1 = 0 ; | |
19800 | char *kwnames[] = { | |
19801 | (char *) "self",(char *) "other", NULL | |
19802 | }; | |
19803 | ||
19804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
19805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19806 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19807 | if (arg2 == NULL) { | |
19808 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19809 | } | |
19810 | { | |
19811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19812 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
19813 | ||
19814 | wxPyEndAllowThreads(__tstate); | |
19815 | if (PyErr_Occurred()) SWIG_fail; | |
19816 | } | |
19817 | resultobj = PyInt_FromLong((long)result); | |
19818 | return resultobj; | |
19819 | fail: | |
19820 | return NULL; | |
19821 | } | |
19822 | ||
19823 | ||
19824 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19825 | PyObject *resultobj; | |
19826 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19827 | wxTimeSpan *arg2 = 0 ; | |
19828 | bool result; | |
19829 | PyObject * obj0 = 0 ; | |
19830 | PyObject * obj1 = 0 ; | |
19831 | char *kwnames[] = { | |
19832 | (char *) "self",(char *) "other", NULL | |
19833 | }; | |
19834 | ||
19835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
19836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19837 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19838 | if (arg2 == NULL) { | |
19839 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19840 | } | |
19841 | { | |
19842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19843 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
19844 | ||
19845 | wxPyEndAllowThreads(__tstate); | |
19846 | if (PyErr_Occurred()) SWIG_fail; | |
19847 | } | |
19848 | resultobj = PyInt_FromLong((long)result); | |
19849 | return resultobj; | |
19850 | fail: | |
19851 | return NULL; | |
19852 | } | |
19853 | ||
19854 | ||
19855 | static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19856 | PyObject *resultobj; | |
19857 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19858 | wxTimeSpan *arg2 = 0 ; | |
19859 | bool result; | |
19860 | PyObject * obj0 = 0 ; | |
19861 | PyObject * obj1 = 0 ; | |
19862 | char *kwnames[] = { | |
19863 | (char *) "self",(char *) "other", NULL | |
19864 | }; | |
19865 | ||
19866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
19867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19868 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19869 | if (arg2 == NULL) { | |
19870 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19871 | } | |
19872 | { | |
19873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19874 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
19875 | ||
19876 | wxPyEndAllowThreads(__tstate); | |
19877 | if (PyErr_Occurred()) SWIG_fail; | |
19878 | } | |
19879 | resultobj = PyInt_FromLong((long)result); | |
19880 | return resultobj; | |
19881 | fail: | |
19882 | return NULL; | |
19883 | } | |
19884 | ||
19885 | ||
19886 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19887 | PyObject *resultobj; | |
19888 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19889 | wxTimeSpan *arg2 = 0 ; | |
19890 | bool result; | |
19891 | PyObject * obj0 = 0 ; | |
19892 | PyObject * obj1 = 0 ; | |
19893 | char *kwnames[] = { | |
19894 | (char *) "self",(char *) "other", NULL | |
19895 | }; | |
19896 | ||
19897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
19898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19899 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19900 | if (arg2 == NULL) { | |
19901 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19902 | } | |
19903 | { | |
19904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19905 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
19906 | ||
19907 | wxPyEndAllowThreads(__tstate); | |
19908 | if (PyErr_Occurred()) SWIG_fail; | |
19909 | } | |
19910 | resultobj = PyInt_FromLong((long)result); | |
19911 | return resultobj; | |
19912 | fail: | |
19913 | return NULL; | |
19914 | } | |
19915 | ||
19916 | ||
19917 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19918 | PyObject *resultobj; | |
19919 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19920 | wxTimeSpan *arg2 = 0 ; | |
19921 | bool result; | |
19922 | PyObject * obj0 = 0 ; | |
19923 | PyObject * obj1 = 0 ; | |
19924 | char *kwnames[] = { | |
19925 | (char *) "self",(char *) "other", NULL | |
19926 | }; | |
19927 | ||
19928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
19929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19931 | if (arg2 == NULL) { | |
19932 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19933 | } | |
19934 | { | |
19935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19936 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
19937 | ||
19938 | wxPyEndAllowThreads(__tstate); | |
19939 | if (PyErr_Occurred()) SWIG_fail; | |
19940 | } | |
19941 | resultobj = PyInt_FromLong((long)result); | |
19942 | return resultobj; | |
19943 | fail: | |
19944 | return NULL; | |
19945 | } | |
19946 | ||
19947 | ||
19948 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19949 | PyObject *resultobj; | |
19950 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19951 | wxTimeSpan *arg2 = 0 ; | |
19952 | bool result; | |
19953 | PyObject * obj0 = 0 ; | |
19954 | PyObject * obj1 = 0 ; | |
19955 | char *kwnames[] = { | |
19956 | (char *) "self",(char *) "other", NULL | |
19957 | }; | |
19958 | ||
19959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
19960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19962 | if (arg2 == NULL) { | |
19963 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19964 | } | |
19965 | { | |
19966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19967 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
19968 | ||
19969 | wxPyEndAllowThreads(__tstate); | |
19970 | if (PyErr_Occurred()) SWIG_fail; | |
19971 | } | |
19972 | resultobj = PyInt_FromLong((long)result); | |
19973 | return resultobj; | |
19974 | fail: | |
19975 | return NULL; | |
19976 | } | |
19977 | ||
19978 | ||
19979 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19980 | PyObject *resultobj; | |
19981 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19982 | bool result; | |
19983 | PyObject * obj0 = 0 ; | |
19984 | char *kwnames[] = { | |
19985 | (char *) "self", NULL | |
19986 | }; | |
19987 | ||
19988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
19989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19990 | { | |
19991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19992 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
19993 | ||
19994 | wxPyEndAllowThreads(__tstate); | |
19995 | if (PyErr_Occurred()) SWIG_fail; | |
19996 | } | |
19997 | resultobj = PyInt_FromLong((long)result); | |
19998 | return resultobj; | |
19999 | fail: | |
20000 | return NULL; | |
20001 | } | |
20002 | ||
20003 | ||
20004 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20005 | PyObject *resultobj; | |
20006 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20007 | bool result; | |
20008 | PyObject * obj0 = 0 ; | |
20009 | char *kwnames[] = { | |
20010 | (char *) "self", NULL | |
20011 | }; | |
20012 | ||
20013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
20014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20015 | { | |
20016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20017 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
20018 | ||
20019 | wxPyEndAllowThreads(__tstate); | |
20020 | if (PyErr_Occurred()) SWIG_fail; | |
20021 | } | |
20022 | resultobj = PyInt_FromLong((long)result); | |
20023 | return resultobj; | |
20024 | fail: | |
20025 | return NULL; | |
20026 | } | |
20027 | ||
20028 | ||
20029 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20030 | PyObject *resultobj; | |
20031 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20032 | bool result; | |
20033 | PyObject * obj0 = 0 ; | |
20034 | char *kwnames[] = { | |
20035 | (char *) "self", NULL | |
20036 | }; | |
20037 | ||
20038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
20039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20040 | { | |
20041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20042 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
20043 | ||
20044 | wxPyEndAllowThreads(__tstate); | |
20045 | if (PyErr_Occurred()) SWIG_fail; | |
20046 | } | |
20047 | resultobj = PyInt_FromLong((long)result); | |
20048 | return resultobj; | |
20049 | fail: | |
20050 | return NULL; | |
20051 | } | |
20052 | ||
20053 | ||
20054 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20055 | PyObject *resultobj; | |
20056 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20057 | wxTimeSpan *arg2 = 0 ; | |
20058 | bool result; | |
20059 | PyObject * obj0 = 0 ; | |
20060 | PyObject * obj1 = 0 ; | |
20061 | char *kwnames[] = { | |
20062 | (char *) "self",(char *) "ts", NULL | |
20063 | }; | |
20064 | ||
20065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
20066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20067 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20068 | if (arg2 == NULL) { | |
20069 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20070 | } | |
20071 | { | |
20072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20073 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
20074 | ||
20075 | wxPyEndAllowThreads(__tstate); | |
20076 | if (PyErr_Occurred()) SWIG_fail; | |
20077 | } | |
20078 | resultobj = PyInt_FromLong((long)result); | |
20079 | return resultobj; | |
20080 | fail: | |
20081 | return NULL; | |
20082 | } | |
20083 | ||
20084 | ||
20085 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20086 | PyObject *resultobj; | |
20087 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20088 | wxTimeSpan *arg2 = 0 ; | |
20089 | bool result; | |
20090 | PyObject * obj0 = 0 ; | |
20091 | PyObject * obj1 = 0 ; | |
20092 | char *kwnames[] = { | |
20093 | (char *) "self",(char *) "ts", NULL | |
20094 | }; | |
20095 | ||
20096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
20097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20098 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20099 | if (arg2 == NULL) { | |
20100 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20101 | } | |
20102 | { | |
20103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20104 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
20105 | ||
20106 | wxPyEndAllowThreads(__tstate); | |
20107 | if (PyErr_Occurred()) SWIG_fail; | |
20108 | } | |
20109 | resultobj = PyInt_FromLong((long)result); | |
20110 | return resultobj; | |
20111 | fail: | |
20112 | return NULL; | |
20113 | } | |
20114 | ||
20115 | ||
20116 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20117 | PyObject *resultobj; | |
20118 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20119 | wxTimeSpan *arg2 = 0 ; | |
20120 | bool result; | |
20121 | PyObject * obj0 = 0 ; | |
20122 | PyObject * obj1 = 0 ; | |
20123 | char *kwnames[] = { | |
20124 | (char *) "self",(char *) "t", NULL | |
20125 | }; | |
20126 | ||
20127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
20128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20129 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20130 | if (arg2 == NULL) { | |
20131 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20132 | } | |
20133 | { | |
20134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20135 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
20136 | ||
20137 | wxPyEndAllowThreads(__tstate); | |
20138 | if (PyErr_Occurred()) SWIG_fail; | |
20139 | } | |
20140 | resultobj = PyInt_FromLong((long)result); | |
20141 | return resultobj; | |
20142 | fail: | |
20143 | return NULL; | |
20144 | } | |
20145 | ||
20146 | ||
20147 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20148 | PyObject *resultobj; | |
20149 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20150 | int result; | |
20151 | PyObject * obj0 = 0 ; | |
20152 | char *kwnames[] = { | |
20153 | (char *) "self", NULL | |
20154 | }; | |
20155 | ||
20156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20158 | { | |
20159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20160 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
20161 | ||
20162 | wxPyEndAllowThreads(__tstate); | |
20163 | if (PyErr_Occurred()) SWIG_fail; | |
20164 | } | |
20165 | resultobj = PyInt_FromLong((long)result); | |
20166 | return resultobj; | |
20167 | fail: | |
20168 | return NULL; | |
20169 | } | |
20170 | ||
20171 | ||
20172 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20173 | PyObject *resultobj; | |
20174 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20175 | int result; | |
20176 | PyObject * obj0 = 0 ; | |
20177 | char *kwnames[] = { | |
20178 | (char *) "self", NULL | |
20179 | }; | |
20180 | ||
20181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
20182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20183 | { | |
20184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20185 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
20186 | ||
20187 | wxPyEndAllowThreads(__tstate); | |
20188 | if (PyErr_Occurred()) SWIG_fail; | |
20189 | } | |
20190 | resultobj = PyInt_FromLong((long)result); | |
20191 | return resultobj; | |
20192 | fail: | |
20193 | return NULL; | |
20194 | } | |
20195 | ||
20196 | ||
20197 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20198 | PyObject *resultobj; | |
20199 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20200 | int result; | |
20201 | PyObject * obj0 = 0 ; | |
20202 | char *kwnames[] = { | |
20203 | (char *) "self", NULL | |
20204 | }; | |
20205 | ||
20206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
20207 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20208 | { | |
20209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20210 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
20211 | ||
20212 | wxPyEndAllowThreads(__tstate); | |
20213 | if (PyErr_Occurred()) SWIG_fail; | |
20214 | } | |
20215 | resultobj = PyInt_FromLong((long)result); | |
20216 | return resultobj; | |
20217 | fail: | |
20218 | return NULL; | |
20219 | } | |
20220 | ||
20221 | ||
20222 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20223 | PyObject *resultobj; | |
20224 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20225 | int result; | |
20226 | PyObject * obj0 = 0 ; | |
20227 | char *kwnames[] = { | |
20228 | (char *) "self", NULL | |
20229 | }; | |
20230 | ||
20231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
20232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20233 | { | |
20234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20235 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
20236 | ||
20237 | wxPyEndAllowThreads(__tstate); | |
20238 | if (PyErr_Occurred()) SWIG_fail; | |
20239 | } | |
20240 | resultobj = PyInt_FromLong((long)result); | |
20241 | return resultobj; | |
20242 | fail: | |
20243 | return NULL; | |
20244 | } | |
20245 | ||
20246 | ||
20247 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20248 | PyObject *resultobj; | |
20249 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20250 | wxLongLong result; | |
20251 | PyObject * obj0 = 0 ; | |
20252 | char *kwnames[] = { | |
20253 | (char *) "self", NULL | |
20254 | }; | |
20255 | ||
20256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
20257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20258 | { | |
20259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20260 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
20261 | ||
20262 | wxPyEndAllowThreads(__tstate); | |
20263 | if (PyErr_Occurred()) SWIG_fail; | |
20264 | } | |
20265 | { | |
20266 | PyObject *hi, *lo, *shifter, *shifted; | |
20267 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20268 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20269 | shifter = PyLong_FromLong(32); | |
20270 | shifted = PyNumber_Lshift(hi, shifter); | |
20271 | resultobj = PyNumber_Or(shifted, lo); | |
20272 | Py_DECREF(hi); | |
20273 | Py_DECREF(lo); | |
20274 | Py_DECREF(shifter); | |
20275 | Py_DECREF(shifted); | |
20276 | } | |
20277 | return resultobj; | |
20278 | fail: | |
20279 | return NULL; | |
20280 | } | |
20281 | ||
20282 | ||
20283 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20284 | PyObject *resultobj; | |
20285 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20286 | wxLongLong result; | |
20287 | PyObject * obj0 = 0 ; | |
20288 | char *kwnames[] = { | |
20289 | (char *) "self", NULL | |
20290 | }; | |
20291 | ||
20292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
20293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20294 | { | |
20295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20296 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
20297 | ||
20298 | wxPyEndAllowThreads(__tstate); | |
20299 | if (PyErr_Occurred()) SWIG_fail; | |
20300 | } | |
20301 | { | |
20302 | PyObject *hi, *lo, *shifter, *shifted; | |
20303 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20304 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20305 | shifter = PyLong_FromLong(32); | |
20306 | shifted = PyNumber_Lshift(hi, shifter); | |
20307 | resultobj = PyNumber_Or(shifted, lo); | |
20308 | Py_DECREF(hi); | |
20309 | Py_DECREF(lo); | |
20310 | Py_DECREF(shifter); | |
20311 | Py_DECREF(shifted); | |
20312 | } | |
20313 | return resultobj; | |
20314 | fail: | |
20315 | return NULL; | |
20316 | } | |
20317 | ||
20318 | ||
20319 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20320 | PyObject *resultobj; | |
20321 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20322 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
20323 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20324 | wxString result; | |
423f194a | 20325 | bool temp2 = False ; |
d14a1e28 RD |
20326 | PyObject * obj0 = 0 ; |
20327 | PyObject * obj1 = 0 ; | |
20328 | char *kwnames[] = { | |
20329 | (char *) "self",(char *) "format", NULL | |
20330 | }; | |
20331 | ||
20332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
20333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20334 | if (obj1) { | |
20335 | { | |
20336 | arg2 = wxString_in_helper(obj1); | |
20337 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20338 | temp2 = True; |
d14a1e28 RD |
20339 | } |
20340 | } | |
20341 | { | |
20342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20343 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
20344 | ||
20345 | wxPyEndAllowThreads(__tstate); | |
20346 | if (PyErr_Occurred()) SWIG_fail; | |
20347 | } | |
20348 | { | |
20349 | #if wxUSE_UNICODE | |
20350 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20351 | #else | |
20352 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20353 | #endif | |
20354 | } | |
20355 | { | |
20356 | if (temp2) | |
20357 | delete arg2; | |
20358 | } | |
20359 | return resultobj; | |
20360 | fail: | |
20361 | { | |
20362 | if (temp2) | |
20363 | delete arg2; | |
20364 | } | |
20365 | return NULL; | |
20366 | } | |
20367 | ||
20368 | ||
20369 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
20370 | PyObject *obj; | |
20371 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20372 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
20373 | Py_INCREF(obj); | |
20374 | return Py_BuildValue((char *)""); | |
20375 | } | |
20376 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20377 | PyObject *resultobj; | |
20378 | int arg1 = (int) 0 ; | |
20379 | int arg2 = (int) 0 ; | |
20380 | int arg3 = (int) 0 ; | |
20381 | int arg4 = (int) 0 ; | |
20382 | wxDateSpan *result; | |
20383 | char *kwnames[] = { | |
20384 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
20385 | }; | |
20386 | ||
20387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_DateSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
20388 | { | |
20389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20390 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
20391 | ||
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
20402 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20403 | PyObject *resultobj; | |
20404 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20405 | PyObject * obj0 = 0 ; | |
20406 | char *kwnames[] = { | |
20407 | (char *) "self", NULL | |
20408 | }; | |
20409 | ||
20410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
20411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20412 | { | |
20413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20414 | delete arg1; | |
20415 | ||
20416 | wxPyEndAllowThreads(__tstate); | |
20417 | if (PyErr_Occurred()) SWIG_fail; | |
20418 | } | |
20419 | Py_INCREF(Py_None); resultobj = Py_None; | |
20420 | return resultobj; | |
20421 | fail: | |
20422 | return NULL; | |
20423 | } | |
20424 | ||
20425 | ||
20426 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20427 | PyObject *resultobj; | |
20428 | int arg1 ; | |
20429 | wxDateSpan result; | |
20430 | char *kwnames[] = { | |
20431 | (char *) "days", NULL | |
20432 | }; | |
20433 | ||
20434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Days",kwnames,&arg1)) goto fail; | |
20435 | { | |
20436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20437 | result = wxDateSpan::Days(arg1); | |
20438 | ||
20439 | wxPyEndAllowThreads(__tstate); | |
20440 | if (PyErr_Occurred()) SWIG_fail; | |
20441 | } | |
20442 | { | |
20443 | wxDateSpan * resultptr; | |
20444 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20445 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20446 | } | |
20447 | return resultobj; | |
20448 | fail: | |
20449 | return NULL; | |
20450 | } | |
20451 | ||
20452 | ||
20453 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20454 | PyObject *resultobj; | |
20455 | wxDateSpan result; | |
20456 | char *kwnames[] = { | |
20457 | NULL | |
20458 | }; | |
20459 | ||
20460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
20461 | { | |
20462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20463 | result = wxDateSpan::Day(); | |
20464 | ||
20465 | wxPyEndAllowThreads(__tstate); | |
20466 | if (PyErr_Occurred()) SWIG_fail; | |
20467 | } | |
20468 | { | |
20469 | wxDateSpan * resultptr; | |
20470 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20471 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20472 | } | |
20473 | return resultobj; | |
20474 | fail: | |
20475 | return NULL; | |
20476 | } | |
20477 | ||
20478 | ||
20479 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20480 | PyObject *resultobj; | |
20481 | int arg1 ; | |
20482 | wxDateSpan result; | |
20483 | char *kwnames[] = { | |
20484 | (char *) "weeks", NULL | |
20485 | }; | |
20486 | ||
20487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Weeks",kwnames,&arg1)) goto fail; | |
20488 | { | |
20489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20490 | result = wxDateSpan::Weeks(arg1); | |
20491 | ||
20492 | wxPyEndAllowThreads(__tstate); | |
20493 | if (PyErr_Occurred()) SWIG_fail; | |
20494 | } | |
20495 | { | |
20496 | wxDateSpan * resultptr; | |
20497 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20498 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20499 | } | |
20500 | return resultobj; | |
20501 | fail: | |
20502 | return NULL; | |
20503 | } | |
20504 | ||
20505 | ||
20506 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20507 | PyObject *resultobj; | |
20508 | wxDateSpan result; | |
20509 | char *kwnames[] = { | |
20510 | NULL | |
20511 | }; | |
20512 | ||
20513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
20514 | { | |
20515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20516 | result = wxDateSpan::Week(); | |
20517 | ||
20518 | wxPyEndAllowThreads(__tstate); | |
20519 | if (PyErr_Occurred()) SWIG_fail; | |
20520 | } | |
20521 | { | |
20522 | wxDateSpan * resultptr; | |
20523 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20524 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20525 | } | |
20526 | return resultobj; | |
20527 | fail: | |
20528 | return NULL; | |
20529 | } | |
20530 | ||
20531 | ||
20532 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20533 | PyObject *resultobj; | |
20534 | int arg1 ; | |
20535 | wxDateSpan result; | |
20536 | char *kwnames[] = { | |
20537 | (char *) "mon", NULL | |
20538 | }; | |
20539 | ||
20540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Months",kwnames,&arg1)) goto fail; | |
20541 | { | |
20542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20543 | result = wxDateSpan::Months(arg1); | |
20544 | ||
20545 | wxPyEndAllowThreads(__tstate); | |
20546 | if (PyErr_Occurred()) SWIG_fail; | |
20547 | } | |
20548 | { | |
20549 | wxDateSpan * resultptr; | |
20550 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20551 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20552 | } | |
20553 | return resultobj; | |
20554 | fail: | |
20555 | return NULL; | |
20556 | } | |
20557 | ||
20558 | ||
20559 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20560 | PyObject *resultobj; | |
20561 | wxDateSpan result; | |
20562 | char *kwnames[] = { | |
20563 | NULL | |
20564 | }; | |
20565 | ||
20566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
20567 | { | |
20568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20569 | result = wxDateSpan::Month(); | |
20570 | ||
20571 | wxPyEndAllowThreads(__tstate); | |
20572 | if (PyErr_Occurred()) SWIG_fail; | |
20573 | } | |
20574 | { | |
20575 | wxDateSpan * resultptr; | |
20576 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20577 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20578 | } | |
20579 | return resultobj; | |
20580 | fail: | |
20581 | return NULL; | |
20582 | } | |
20583 | ||
20584 | ||
20585 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20586 | PyObject *resultobj; | |
20587 | int arg1 ; | |
20588 | wxDateSpan result; | |
20589 | char *kwnames[] = { | |
20590 | (char *) "years", NULL | |
20591 | }; | |
20592 | ||
20593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Years",kwnames,&arg1)) goto fail; | |
20594 | { | |
20595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20596 | result = wxDateSpan::Years(arg1); | |
20597 | ||
20598 | wxPyEndAllowThreads(__tstate); | |
20599 | if (PyErr_Occurred()) SWIG_fail; | |
20600 | } | |
20601 | { | |
20602 | wxDateSpan * resultptr; | |
20603 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20604 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20605 | } | |
20606 | return resultobj; | |
20607 | fail: | |
20608 | return NULL; | |
20609 | } | |
20610 | ||
20611 | ||
20612 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20613 | PyObject *resultobj; | |
20614 | wxDateSpan result; | |
20615 | char *kwnames[] = { | |
20616 | NULL | |
20617 | }; | |
20618 | ||
20619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
20620 | { | |
20621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20622 | result = wxDateSpan::Year(); | |
20623 | ||
20624 | wxPyEndAllowThreads(__tstate); | |
20625 | if (PyErr_Occurred()) SWIG_fail; | |
20626 | } | |
20627 | { | |
20628 | wxDateSpan * resultptr; | |
20629 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20630 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20631 | } | |
20632 | return resultobj; | |
20633 | fail: | |
20634 | return NULL; | |
20635 | } | |
20636 | ||
20637 | ||
20638 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20639 | PyObject *resultobj; | |
20640 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20641 | int arg2 ; | |
20642 | wxDateSpan *result; | |
20643 | PyObject * obj0 = 0 ; | |
20644 | char *kwnames[] = { | |
20645 | (char *) "self",(char *) "n", NULL | |
20646 | }; | |
20647 | ||
20648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetYears",kwnames,&obj0,&arg2)) goto fail; | |
20649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20650 | { | |
20651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20652 | { | |
20653 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
20654 | result = (wxDateSpan *) &_result_ref; | |
20655 | } | |
20656 | ||
20657 | wxPyEndAllowThreads(__tstate); | |
20658 | if (PyErr_Occurred()) SWIG_fail; | |
20659 | } | |
20660 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20661 | return resultobj; | |
20662 | fail: | |
20663 | return NULL; | |
20664 | } | |
20665 | ||
20666 | ||
20667 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20668 | PyObject *resultobj; | |
20669 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20670 | int arg2 ; | |
20671 | wxDateSpan *result; | |
20672 | PyObject * obj0 = 0 ; | |
20673 | char *kwnames[] = { | |
20674 | (char *) "self",(char *) "n", NULL | |
20675 | }; | |
20676 | ||
20677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetMonths",kwnames,&obj0,&arg2)) goto fail; | |
20678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20679 | { | |
20680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20681 | { | |
20682 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
20683 | result = (wxDateSpan *) &_result_ref; | |
20684 | } | |
20685 | ||
20686 | wxPyEndAllowThreads(__tstate); | |
20687 | if (PyErr_Occurred()) SWIG_fail; | |
20688 | } | |
20689 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20690 | return resultobj; | |
20691 | fail: | |
20692 | return NULL; | |
20693 | } | |
20694 | ||
20695 | ||
20696 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20697 | PyObject *resultobj; | |
20698 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20699 | int arg2 ; | |
20700 | wxDateSpan *result; | |
20701 | PyObject * obj0 = 0 ; | |
20702 | char *kwnames[] = { | |
20703 | (char *) "self",(char *) "n", NULL | |
20704 | }; | |
20705 | ||
20706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetWeeks",kwnames,&obj0,&arg2)) goto fail; | |
20707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20708 | { | |
20709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20710 | { | |
20711 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
20712 | result = (wxDateSpan *) &_result_ref; | |
20713 | } | |
20714 | ||
20715 | wxPyEndAllowThreads(__tstate); | |
20716 | if (PyErr_Occurred()) SWIG_fail; | |
20717 | } | |
20718 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20719 | return resultobj; | |
20720 | fail: | |
20721 | return NULL; | |
20722 | } | |
20723 | ||
20724 | ||
20725 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20726 | PyObject *resultobj; | |
20727 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20728 | int arg2 ; | |
20729 | wxDateSpan *result; | |
20730 | PyObject * obj0 = 0 ; | |
20731 | char *kwnames[] = { | |
20732 | (char *) "self",(char *) "n", NULL | |
20733 | }; | |
20734 | ||
20735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetDays",kwnames,&obj0,&arg2)) goto fail; | |
20736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20737 | { | |
20738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20739 | { | |
20740 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
20741 | result = (wxDateSpan *) &_result_ref; | |
20742 | } | |
20743 | ||
20744 | wxPyEndAllowThreads(__tstate); | |
20745 | if (PyErr_Occurred()) SWIG_fail; | |
20746 | } | |
20747 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20748 | return resultobj; | |
20749 | fail: | |
20750 | return NULL; | |
20751 | } | |
20752 | ||
20753 | ||
20754 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20755 | PyObject *resultobj; | |
20756 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20757 | int result; | |
20758 | PyObject * obj0 = 0 ; | |
20759 | char *kwnames[] = { | |
20760 | (char *) "self", NULL | |
20761 | }; | |
20762 | ||
20763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
20764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20765 | { | |
20766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20767 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
20768 | ||
20769 | wxPyEndAllowThreads(__tstate); | |
20770 | if (PyErr_Occurred()) SWIG_fail; | |
20771 | } | |
20772 | resultobj = PyInt_FromLong((long)result); | |
20773 | return resultobj; | |
20774 | fail: | |
20775 | return NULL; | |
20776 | } | |
20777 | ||
20778 | ||
20779 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20780 | PyObject *resultobj; | |
20781 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20782 | int result; | |
20783 | PyObject * obj0 = 0 ; | |
20784 | char *kwnames[] = { | |
20785 | (char *) "self", NULL | |
20786 | }; | |
20787 | ||
20788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
20789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20790 | { | |
20791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20792 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
20793 | ||
20794 | wxPyEndAllowThreads(__tstate); | |
20795 | if (PyErr_Occurred()) SWIG_fail; | |
20796 | } | |
20797 | resultobj = PyInt_FromLong((long)result); | |
20798 | return resultobj; | |
20799 | fail: | |
20800 | return NULL; | |
20801 | } | |
20802 | ||
20803 | ||
20804 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20805 | PyObject *resultobj; | |
20806 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20807 | int result; | |
20808 | PyObject * obj0 = 0 ; | |
20809 | char *kwnames[] = { | |
20810 | (char *) "self", NULL | |
20811 | }; | |
20812 | ||
20813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20815 | { | |
20816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20817 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
20818 | ||
20819 | wxPyEndAllowThreads(__tstate); | |
20820 | if (PyErr_Occurred()) SWIG_fail; | |
20821 | } | |
20822 | resultobj = PyInt_FromLong((long)result); | |
20823 | return resultobj; | |
20824 | fail: | |
20825 | return NULL; | |
20826 | } | |
20827 | ||
20828 | ||
20829 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20830 | PyObject *resultobj; | |
20831 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20832 | int result; | |
20833 | PyObject * obj0 = 0 ; | |
20834 | char *kwnames[] = { | |
20835 | (char *) "self", NULL | |
20836 | }; | |
20837 | ||
20838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
20839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20840 | { | |
20841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20842 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
20843 | ||
20844 | wxPyEndAllowThreads(__tstate); | |
20845 | if (PyErr_Occurred()) SWIG_fail; | |
20846 | } | |
20847 | resultobj = PyInt_FromLong((long)result); | |
20848 | return resultobj; | |
20849 | fail: | |
20850 | return NULL; | |
20851 | } | |
20852 | ||
20853 | ||
20854 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20855 | PyObject *resultobj; | |
20856 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20857 | int result; | |
20858 | PyObject * obj0 = 0 ; | |
20859 | char *kwnames[] = { | |
20860 | (char *) "self", NULL | |
20861 | }; | |
20862 | ||
20863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
20864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20865 | { | |
20866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20867 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
20868 | ||
20869 | wxPyEndAllowThreads(__tstate); | |
20870 | if (PyErr_Occurred()) SWIG_fail; | |
20871 | } | |
20872 | resultobj = PyInt_FromLong((long)result); | |
20873 | return resultobj; | |
20874 | fail: | |
20875 | return NULL; | |
20876 | } | |
20877 | ||
20878 | ||
20879 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20880 | PyObject *resultobj; | |
20881 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20882 | wxDateSpan *arg2 = 0 ; | |
20883 | wxDateSpan *result; | |
20884 | PyObject * obj0 = 0 ; | |
20885 | PyObject * obj1 = 0 ; | |
20886 | char *kwnames[] = { | |
20887 | (char *) "self",(char *) "other", NULL | |
20888 | }; | |
20889 | ||
20890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
20891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20892 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20893 | if (arg2 == NULL) { | |
20894 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20895 | } | |
20896 | { | |
20897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20898 | { | |
20899 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
20900 | result = (wxDateSpan *) &_result_ref; | |
20901 | } | |
20902 | ||
20903 | wxPyEndAllowThreads(__tstate); | |
20904 | if (PyErr_Occurred()) SWIG_fail; | |
20905 | } | |
20906 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20907 | return resultobj; | |
20908 | fail: | |
20909 | return NULL; | |
20910 | } | |
20911 | ||
20912 | ||
20913 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20914 | PyObject *resultobj; | |
20915 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20916 | wxDateSpan *arg2 = 0 ; | |
20917 | wxDateSpan *result; | |
20918 | PyObject * obj0 = 0 ; | |
20919 | PyObject * obj1 = 0 ; | |
20920 | char *kwnames[] = { | |
20921 | (char *) "self",(char *) "other", NULL | |
20922 | }; | |
20923 | ||
20924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
20925 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20926 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20927 | if (arg2 == NULL) { | |
20928 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20929 | } | |
20930 | { | |
20931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20932 | { | |
20933 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
20934 | result = (wxDateSpan *) &_result_ref; | |
20935 | } | |
20936 | ||
20937 | wxPyEndAllowThreads(__tstate); | |
20938 | if (PyErr_Occurred()) SWIG_fail; | |
20939 | } | |
20940 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20941 | return resultobj; | |
20942 | fail: | |
20943 | return NULL; | |
20944 | } | |
20945 | ||
20946 | ||
20947 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20948 | PyObject *resultobj; | |
20949 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20950 | wxDateSpan *result; | |
20951 | PyObject * obj0 = 0 ; | |
20952 | char *kwnames[] = { | |
20953 | (char *) "self", NULL | |
20954 | }; | |
20955 | ||
20956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
20957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20958 | { | |
20959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20960 | { | |
20961 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
20962 | result = (wxDateSpan *) &_result_ref; | |
20963 | } | |
20964 | ||
20965 | wxPyEndAllowThreads(__tstate); | |
20966 | if (PyErr_Occurred()) SWIG_fail; | |
20967 | } | |
20968 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20969 | return resultobj; | |
20970 | fail: | |
20971 | return NULL; | |
20972 | } | |
20973 | ||
20974 | ||
20975 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20976 | PyObject *resultobj; | |
20977 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20978 | int arg2 ; | |
20979 | wxDateSpan *result; | |
20980 | PyObject * obj0 = 0 ; | |
20981 | char *kwnames[] = { | |
20982 | (char *) "self",(char *) "factor", NULL | |
20983 | }; | |
20984 | ||
20985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
20986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20987 | { | |
20988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20989 | { | |
20990 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
20991 | result = (wxDateSpan *) &_result_ref; | |
20992 | } | |
20993 | ||
20994 | wxPyEndAllowThreads(__tstate); | |
20995 | if (PyErr_Occurred()) SWIG_fail; | |
20996 | } | |
20997 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20998 | return resultobj; | |
20999 | fail: | |
21000 | return NULL; | |
21001 | } | |
21002 | ||
21003 | ||
21004 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21005 | PyObject *resultobj; | |
21006 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21007 | wxDateSpan *arg2 = 0 ; | |
21008 | wxDateSpan *result; | |
21009 | PyObject * obj0 = 0 ; | |
21010 | PyObject * obj1 = 0 ; | |
21011 | char *kwnames[] = { | |
21012 | (char *) "self",(char *) "other", NULL | |
21013 | }; | |
21014 | ||
21015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21018 | if (arg2 == NULL) { | |
21019 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21020 | } | |
21021 | { | |
21022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21023 | { | |
21024 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
21025 | result = (wxDateSpan *) &_result_ref; | |
21026 | } | |
21027 | ||
21028 | wxPyEndAllowThreads(__tstate); | |
21029 | if (PyErr_Occurred()) SWIG_fail; | |
21030 | } | |
21031 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21032 | return resultobj; | |
21033 | fail: | |
21034 | return NULL; | |
21035 | } | |
21036 | ||
21037 | ||
21038 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21039 | PyObject *resultobj; | |
21040 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21041 | wxDateSpan *arg2 = 0 ; | |
21042 | wxDateSpan *result; | |
21043 | PyObject * obj0 = 0 ; | |
21044 | PyObject * obj1 = 0 ; | |
21045 | char *kwnames[] = { | |
21046 | (char *) "self",(char *) "other", NULL | |
21047 | }; | |
21048 | ||
21049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21051 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21052 | if (arg2 == NULL) { | |
21053 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21054 | } | |
21055 | { | |
21056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21057 | { | |
21058 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
21059 | result = (wxDateSpan *) &_result_ref; | |
21060 | } | |
21061 | ||
21062 | wxPyEndAllowThreads(__tstate); | |
21063 | if (PyErr_Occurred()) SWIG_fail; | |
21064 | } | |
21065 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21066 | return resultobj; | |
21067 | fail: | |
21068 | return NULL; | |
21069 | } | |
21070 | ||
21071 | ||
21072 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21073 | PyObject *resultobj; | |
21074 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21075 | wxDateSpan *result; | |
21076 | PyObject * obj0 = 0 ; | |
21077 | char *kwnames[] = { | |
21078 | (char *) "self", NULL | |
21079 | }; | |
21080 | ||
21081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
21082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21083 | { | |
21084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21085 | { | |
21086 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
21087 | result = (wxDateSpan *) &_result_ref; | |
21088 | } | |
21089 | ||
21090 | wxPyEndAllowThreads(__tstate); | |
21091 | if (PyErr_Occurred()) SWIG_fail; | |
21092 | } | |
21093 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21094 | return resultobj; | |
21095 | fail: | |
21096 | return NULL; | |
21097 | } | |
21098 | ||
21099 | ||
21100 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21101 | PyObject *resultobj; | |
21102 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21103 | int arg2 ; | |
21104 | wxDateSpan *result; | |
21105 | PyObject * obj0 = 0 ; | |
21106 | char *kwnames[] = { | |
21107 | (char *) "self",(char *) "factor", NULL | |
21108 | }; | |
21109 | ||
21110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
21111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21112 | { | |
21113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21114 | { | |
21115 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
21116 | result = (wxDateSpan *) &_result_ref; | |
21117 | } | |
21118 | ||
21119 | wxPyEndAllowThreads(__tstate); | |
21120 | if (PyErr_Occurred()) SWIG_fail; | |
21121 | } | |
21122 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21123 | return resultobj; | |
21124 | fail: | |
21125 | return NULL; | |
21126 | } | |
21127 | ||
21128 | ||
21129 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21130 | PyObject *resultobj; | |
21131 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21132 | wxDateSpan *arg2 = 0 ; | |
21133 | wxDateSpan result; | |
21134 | PyObject * obj0 = 0 ; | |
21135 | PyObject * obj1 = 0 ; | |
21136 | char *kwnames[] = { | |
21137 | (char *) "self",(char *) "other", NULL | |
21138 | }; | |
21139 | ||
21140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21142 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21143 | if (arg2 == NULL) { | |
21144 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21145 | } | |
21146 | { | |
21147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21148 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
21149 | ||
21150 | wxPyEndAllowThreads(__tstate); | |
21151 | if (PyErr_Occurred()) SWIG_fail; | |
21152 | } | |
21153 | { | |
21154 | wxDateSpan * resultptr; | |
21155 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21156 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21157 | } | |
21158 | return resultobj; | |
21159 | fail: | |
21160 | return NULL; | |
21161 | } | |
21162 | ||
21163 | ||
21164 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21165 | PyObject *resultobj; | |
21166 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21167 | wxDateSpan *arg2 = 0 ; | |
21168 | wxDateSpan result; | |
21169 | PyObject * obj0 = 0 ; | |
21170 | PyObject * obj1 = 0 ; | |
21171 | char *kwnames[] = { | |
21172 | (char *) "self",(char *) "other", NULL | |
21173 | }; | |
21174 | ||
21175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21178 | if (arg2 == NULL) { | |
21179 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21180 | } | |
21181 | { | |
21182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21183 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
21184 | ||
21185 | wxPyEndAllowThreads(__tstate); | |
21186 | if (PyErr_Occurred()) SWIG_fail; | |
21187 | } | |
21188 | { | |
21189 | wxDateSpan * resultptr; | |
21190 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21191 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21192 | } | |
21193 | return resultobj; | |
21194 | fail: | |
21195 | return NULL; | |
21196 | } | |
21197 | ||
21198 | ||
21199 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21200 | PyObject *resultobj; | |
21201 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21202 | int arg2 ; | |
21203 | wxDateSpan result; | |
21204 | PyObject * obj0 = 0 ; | |
21205 | char *kwnames[] = { | |
21206 | (char *) "self",(char *) "n", NULL | |
21207 | }; | |
21208 | ||
21209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
21210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21211 | { | |
21212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21213 | result = wxDateSpan___mul__(arg1,arg2); | |
21214 | ||
21215 | wxPyEndAllowThreads(__tstate); | |
21216 | if (PyErr_Occurred()) SWIG_fail; | |
21217 | } | |
21218 | { | |
21219 | wxDateSpan * resultptr; | |
21220 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21221 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21222 | } | |
21223 | return resultobj; | |
21224 | fail: | |
21225 | return NULL; | |
21226 | } | |
21227 | ||
21228 | ||
21229 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21230 | PyObject *resultobj; | |
21231 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21232 | int arg2 ; | |
21233 | wxDateSpan result; | |
21234 | PyObject * obj0 = 0 ; | |
21235 | char *kwnames[] = { | |
21236 | (char *) "self",(char *) "n", NULL | |
21237 | }; | |
21238 | ||
21239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
21240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21241 | { | |
21242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21243 | result = wxDateSpan___rmul__(arg1,arg2); | |
21244 | ||
21245 | wxPyEndAllowThreads(__tstate); | |
21246 | if (PyErr_Occurred()) SWIG_fail; | |
21247 | } | |
21248 | { | |
21249 | wxDateSpan * resultptr; | |
21250 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21251 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21252 | } | |
21253 | return resultobj; | |
21254 | fail: | |
21255 | return NULL; | |
21256 | } | |
21257 | ||
21258 | ||
21259 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21260 | PyObject *resultobj; | |
21261 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21262 | wxDateSpan *arg2 = 0 ; | |
21263 | bool result; | |
21264 | PyObject * obj0 = 0 ; | |
21265 | PyObject * obj1 = 0 ; | |
21266 | char *kwnames[] = { | |
21267 | (char *) "self",(char *) "other", NULL | |
21268 | }; | |
21269 | ||
21270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21272 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21273 | if (arg2 == NULL) { | |
21274 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21275 | } | |
21276 | { | |
21277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21278 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
21279 | ||
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
21283 | resultobj = PyInt_FromLong((long)result); | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
21290 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21291 | PyObject *resultobj; | |
21292 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21293 | wxDateSpan *arg2 = 0 ; | |
21294 | bool result; | |
21295 | PyObject * obj0 = 0 ; | |
21296 | PyObject * obj1 = 0 ; | |
21297 | char *kwnames[] = { | |
21298 | (char *) "self",(char *) "other", NULL | |
21299 | }; | |
21300 | ||
21301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21303 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21304 | if (arg2 == NULL) { | |
21305 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21306 | } | |
21307 | { | |
21308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21309 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
21310 | ||
21311 | wxPyEndAllowThreads(__tstate); | |
21312 | if (PyErr_Occurred()) SWIG_fail; | |
21313 | } | |
21314 | resultobj = PyInt_FromLong((long)result); | |
21315 | return resultobj; | |
21316 | fail: | |
21317 | return NULL; | |
21318 | } | |
21319 | ||
21320 | ||
21321 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
21322 | PyObject *obj; | |
21323 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21324 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
21325 | Py_INCREF(obj); | |
21326 | return Py_BuildValue((char *)""); | |
21327 | } | |
21328 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21329 | PyObject *resultobj; | |
21330 | long result; | |
21331 | char *kwnames[] = { | |
21332 | NULL | |
21333 | }; | |
21334 | ||
21335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
21336 | { | |
21337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21338 | result = (long)wxGetLocalTime(); | |
21339 | ||
21340 | wxPyEndAllowThreads(__tstate); | |
21341 | if (PyErr_Occurred()) SWIG_fail; | |
21342 | } | |
21343 | resultobj = PyInt_FromLong((long)result); | |
21344 | return resultobj; | |
21345 | fail: | |
21346 | return NULL; | |
21347 | } | |
21348 | ||
21349 | ||
21350 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21351 | PyObject *resultobj; | |
21352 | long result; | |
21353 | char *kwnames[] = { | |
21354 | NULL | |
21355 | }; | |
21356 | ||
21357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
21358 | { | |
21359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21360 | result = (long)wxGetUTCTime(); | |
21361 | ||
21362 | wxPyEndAllowThreads(__tstate); | |
21363 | if (PyErr_Occurred()) SWIG_fail; | |
21364 | } | |
21365 | resultobj = PyInt_FromLong((long)result); | |
21366 | return resultobj; | |
21367 | fail: | |
21368 | return NULL; | |
21369 | } | |
21370 | ||
21371 | ||
21372 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21373 | PyObject *resultobj; | |
21374 | long result; | |
21375 | char *kwnames[] = { | |
21376 | NULL | |
21377 | }; | |
21378 | ||
21379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
21380 | { | |
21381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21382 | result = (long)wxGetCurrentTime(); | |
21383 | ||
21384 | wxPyEndAllowThreads(__tstate); | |
21385 | if (PyErr_Occurred()) SWIG_fail; | |
21386 | } | |
21387 | resultobj = PyInt_FromLong((long)result); | |
21388 | return resultobj; | |
21389 | fail: | |
21390 | return NULL; | |
21391 | } | |
21392 | ||
21393 | ||
21394 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21395 | PyObject *resultobj; | |
21396 | wxLongLong result; | |
21397 | char *kwnames[] = { | |
21398 | NULL | |
21399 | }; | |
21400 | ||
21401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
21402 | { | |
21403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21404 | result = wxGetLocalTimeMillis(); | |
21405 | ||
21406 | wxPyEndAllowThreads(__tstate); | |
21407 | if (PyErr_Occurred()) SWIG_fail; | |
21408 | } | |
21409 | { | |
21410 | PyObject *hi, *lo, *shifter, *shifted; | |
21411 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
21412 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
21413 | shifter = PyLong_FromLong(32); | |
21414 | shifted = PyNumber_Lshift(hi, shifter); | |
21415 | resultobj = PyNumber_Or(shifted, lo); | |
21416 | Py_DECREF(hi); | |
21417 | Py_DECREF(lo); | |
21418 | Py_DECREF(shifter); | |
21419 | Py_DECREF(shifted); | |
21420 | } | |
21421 | return resultobj; | |
21422 | fail: | |
21423 | return NULL; | |
21424 | } | |
21425 | ||
21426 | ||
21427 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21428 | PyObject *resultobj; | |
21429 | int arg1 ; | |
21430 | wxDataFormat *result; | |
21431 | char *kwnames[] = { | |
21432 | (char *) "type", NULL | |
21433 | }; | |
21434 | ||
21435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_DataFormat",kwnames,&arg1)) goto fail; | |
21436 | { | |
21437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21438 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
21439 | ||
21440 | wxPyEndAllowThreads(__tstate); | |
21441 | if (PyErr_Occurred()) SWIG_fail; | |
21442 | } | |
21443 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21444 | return resultobj; | |
21445 | fail: | |
21446 | return NULL; | |
21447 | } | |
21448 | ||
21449 | ||
21450 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21451 | PyObject *resultobj; | |
21452 | wxString *arg1 = 0 ; | |
21453 | wxDataFormat *result; | |
423f194a | 21454 | bool temp1 = False ; |
d14a1e28 RD |
21455 | PyObject * obj0 = 0 ; |
21456 | char *kwnames[] = { | |
21457 | (char *) "format", NULL | |
21458 | }; | |
21459 | ||
21460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
21461 | { | |
21462 | arg1 = wxString_in_helper(obj0); | |
21463 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 21464 | temp1 = True; |
d14a1e28 RD |
21465 | } |
21466 | { | |
21467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21468 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
21469 | ||
21470 | wxPyEndAllowThreads(__tstate); | |
21471 | if (PyErr_Occurred()) SWIG_fail; | |
21472 | } | |
21473 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21474 | { | |
21475 | if (temp1) | |
21476 | delete arg1; | |
21477 | } | |
21478 | return resultobj; | |
21479 | fail: | |
21480 | { | |
21481 | if (temp1) | |
21482 | delete arg1; | |
21483 | } | |
21484 | return NULL; | |
21485 | } | |
21486 | ||
21487 | ||
21488 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21489 | PyObject *resultobj; | |
21490 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21491 | PyObject * obj0 = 0 ; | |
21492 | char *kwnames[] = { | |
21493 | (char *) "self", NULL | |
21494 | }; | |
21495 | ||
21496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
21497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21498 | { | |
21499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21500 | delete arg1; | |
21501 | ||
21502 | wxPyEndAllowThreads(__tstate); | |
21503 | if (PyErr_Occurred()) SWIG_fail; | |
21504 | } | |
21505 | Py_INCREF(Py_None); resultobj = Py_None; | |
21506 | return resultobj; | |
21507 | fail: | |
21508 | return NULL; | |
21509 | } | |
21510 | ||
21511 | ||
21512 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
21513 | PyObject *resultobj; | |
21514 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21515 | int arg2 ; | |
21516 | bool result; | |
21517 | PyObject * obj0 = 0 ; | |
21518 | ||
21519 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___eq__",&obj0,&arg2)) goto fail; | |
21520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21521 | { | |
21522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21523 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
21524 | ||
21525 | wxPyEndAllowThreads(__tstate); | |
21526 | if (PyErr_Occurred()) SWIG_fail; | |
21527 | } | |
21528 | resultobj = PyInt_FromLong((long)result); | |
21529 | return resultobj; | |
21530 | fail: | |
21531 | return NULL; | |
21532 | } | |
21533 | ||
21534 | ||
21535 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
21536 | PyObject *resultobj; | |
21537 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21538 | int arg2 ; | |
21539 | bool result; | |
21540 | PyObject * obj0 = 0 ; | |
21541 | ||
21542 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___ne__",&obj0,&arg2)) goto fail; | |
21543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21544 | { | |
21545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21546 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
21547 | ||
21548 | wxPyEndAllowThreads(__tstate); | |
21549 | if (PyErr_Occurred()) SWIG_fail; | |
21550 | } | |
21551 | resultobj = PyInt_FromLong((long)result); | |
21552 | return resultobj; | |
21553 | fail: | |
21554 | return NULL; | |
21555 | } | |
21556 | ||
21557 | ||
21558 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
21559 | PyObject *resultobj; | |
21560 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21561 | wxDataFormat *arg2 = 0 ; | |
21562 | bool result; | |
21563 | PyObject * obj0 = 0 ; | |
21564 | PyObject * obj1 = 0 ; | |
21565 | ||
21566 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
21567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21568 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21569 | if (arg2 == NULL) { | |
21570 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21571 | } | |
21572 | { | |
21573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21574 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
21575 | ||
21576 | wxPyEndAllowThreads(__tstate); | |
21577 | if (PyErr_Occurred()) SWIG_fail; | |
21578 | } | |
21579 | resultobj = PyInt_FromLong((long)result); | |
21580 | return resultobj; | |
21581 | fail: | |
21582 | return NULL; | |
21583 | } | |
21584 | ||
21585 | ||
21586 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
21587 | int argc; | |
21588 | PyObject *argv[3]; | |
21589 | int ii; | |
21590 | ||
21591 | argc = PyObject_Length(args); | |
21592 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21593 | argv[ii] = PyTuple_GetItem(args,ii); | |
21594 | } | |
21595 | if (argc == 2) { | |
21596 | int _v; | |
21597 | { | |
21598 | void *ptr; | |
21599 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21600 | _v = 0; | |
21601 | PyErr_Clear(); | |
21602 | } else { | |
21603 | _v = 1; | |
21604 | } | |
21605 | } | |
21606 | if (_v) { | |
21607 | { | |
21608 | void *ptr; | |
21609 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21610 | _v = 0; | |
21611 | PyErr_Clear(); | |
21612 | } else { | |
21613 | _v = 1; | |
21614 | } | |
21615 | } | |
21616 | if (_v) { | |
21617 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
21618 | } | |
21619 | } | |
21620 | } | |
21621 | if (argc == 2) { | |
21622 | int _v; | |
21623 | { | |
21624 | void *ptr; | |
21625 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21626 | _v = 0; | |
21627 | PyErr_Clear(); | |
21628 | } else { | |
21629 | _v = 1; | |
21630 | } | |
21631 | } | |
21632 | if (_v) { | |
21633 | { | |
21634 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21635 | } | |
21636 | if (_v) { | |
21637 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
21638 | } | |
21639 | } | |
21640 | } | |
21641 | ||
21642 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
21643 | return NULL; | |
21644 | } | |
21645 | ||
21646 | ||
21647 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
21648 | PyObject *resultobj; | |
21649 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21650 | wxDataFormat *arg2 = 0 ; | |
21651 | bool result; | |
21652 | PyObject * obj0 = 0 ; | |
21653 | PyObject * obj1 = 0 ; | |
21654 | ||
21655 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
21656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21657 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21658 | if (arg2 == NULL) { | |
21659 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21660 | } | |
21661 | { | |
21662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21663 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
21664 | ||
21665 | wxPyEndAllowThreads(__tstate); | |
21666 | if (PyErr_Occurred()) SWIG_fail; | |
21667 | } | |
21668 | resultobj = PyInt_FromLong((long)result); | |
21669 | return resultobj; | |
21670 | fail: | |
21671 | return NULL; | |
21672 | } | |
21673 | ||
21674 | ||
21675 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
21676 | int argc; | |
21677 | PyObject *argv[3]; | |
21678 | int ii; | |
21679 | ||
21680 | argc = PyObject_Length(args); | |
21681 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21682 | argv[ii] = PyTuple_GetItem(args,ii); | |
21683 | } | |
21684 | if (argc == 2) { | |
21685 | int _v; | |
21686 | { | |
21687 | void *ptr; | |
21688 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21689 | _v = 0; | |
21690 | PyErr_Clear(); | |
21691 | } else { | |
21692 | _v = 1; | |
21693 | } | |
21694 | } | |
21695 | if (_v) { | |
21696 | { | |
21697 | void *ptr; | |
21698 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21699 | _v = 0; | |
21700 | PyErr_Clear(); | |
21701 | } else { | |
21702 | _v = 1; | |
21703 | } | |
21704 | } | |
21705 | if (_v) { | |
21706 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
21707 | } | |
21708 | } | |
21709 | } | |
21710 | if (argc == 2) { | |
21711 | int _v; | |
21712 | { | |
21713 | void *ptr; | |
21714 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21715 | _v = 0; | |
21716 | PyErr_Clear(); | |
21717 | } else { | |
21718 | _v = 1; | |
21719 | } | |
21720 | } | |
21721 | if (_v) { | |
21722 | { | |
21723 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21724 | } | |
21725 | if (_v) { | |
21726 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
21727 | } | |
21728 | } | |
21729 | } | |
21730 | ||
21731 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
21732 | return NULL; | |
21733 | } | |
21734 | ||
21735 | ||
21736 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21737 | PyObject *resultobj; | |
21738 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21739 | int arg2 ; | |
21740 | PyObject * obj0 = 0 ; | |
21741 | char *kwnames[] = { | |
21742 | (char *) "self",(char *) "format", NULL | |
21743 | }; | |
21744 | ||
21745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DataFormat_SetType",kwnames,&obj0,&arg2)) goto fail; | |
21746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21747 | { | |
21748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21749 | (arg1)->SetType((wxDataFormatId )arg2); | |
21750 | ||
21751 | wxPyEndAllowThreads(__tstate); | |
21752 | if (PyErr_Occurred()) SWIG_fail; | |
21753 | } | |
21754 | Py_INCREF(Py_None); resultobj = Py_None; | |
21755 | return resultobj; | |
21756 | fail: | |
21757 | return NULL; | |
21758 | } | |
21759 | ||
21760 | ||
21761 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21762 | PyObject *resultobj; | |
21763 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21764 | int result; | |
21765 | PyObject * obj0 = 0 ; | |
21766 | char *kwnames[] = { | |
21767 | (char *) "self", NULL | |
21768 | }; | |
21769 | ||
21770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
21771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21772 | { | |
21773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21774 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
21775 | ||
21776 | wxPyEndAllowThreads(__tstate); | |
21777 | if (PyErr_Occurred()) SWIG_fail; | |
21778 | } | |
21779 | resultobj = PyInt_FromLong((long)result); | |
21780 | return resultobj; | |
21781 | fail: | |
21782 | return NULL; | |
21783 | } | |
21784 | ||
21785 | ||
21786 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21787 | PyObject *resultobj; | |
21788 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21789 | wxString result; | |
21790 | PyObject * obj0 = 0 ; | |
21791 | char *kwnames[] = { | |
21792 | (char *) "self", NULL | |
21793 | }; | |
21794 | ||
21795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
21796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21797 | { | |
21798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21799 | result = ((wxDataFormat const *)arg1)->GetId(); | |
21800 | ||
21801 | wxPyEndAllowThreads(__tstate); | |
21802 | if (PyErr_Occurred()) SWIG_fail; | |
21803 | } | |
21804 | { | |
21805 | #if wxUSE_UNICODE | |
21806 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21807 | #else | |
21808 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21809 | #endif | |
21810 | } | |
21811 | return resultobj; | |
21812 | fail: | |
21813 | return NULL; | |
21814 | } | |
21815 | ||
21816 | ||
21817 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21818 | PyObject *resultobj; | |
21819 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21820 | wxString *arg2 = 0 ; | |
423f194a | 21821 | bool temp2 = False ; |
d14a1e28 RD |
21822 | PyObject * obj0 = 0 ; |
21823 | PyObject * obj1 = 0 ; | |
21824 | char *kwnames[] = { | |
21825 | (char *) "self",(char *) "format", NULL | |
21826 | }; | |
21827 | ||
21828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
21829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21830 | { | |
21831 | arg2 = wxString_in_helper(obj1); | |
21832 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21833 | temp2 = True; |
d14a1e28 RD |
21834 | } |
21835 | { | |
21836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21837 | (arg1)->SetId((wxString const &)*arg2); | |
21838 | ||
21839 | wxPyEndAllowThreads(__tstate); | |
21840 | if (PyErr_Occurred()) SWIG_fail; | |
21841 | } | |
21842 | Py_INCREF(Py_None); resultobj = Py_None; | |
21843 | { | |
21844 | if (temp2) | |
21845 | delete arg2; | |
21846 | } | |
21847 | return resultobj; | |
21848 | fail: | |
21849 | { | |
21850 | if (temp2) | |
21851 | delete arg2; | |
21852 | } | |
21853 | return NULL; | |
21854 | } | |
21855 | ||
21856 | ||
21857 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
21858 | PyObject *obj; | |
21859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21860 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
21861 | Py_INCREF(obj); | |
21862 | return Py_BuildValue((char *)""); | |
21863 | } | |
21864 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
21865 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
21866 | return 1; | |
21867 | } | |
21868 | ||
21869 | ||
21870 | static PyObject *_wrap_FormatInvalid_get() { | |
21871 | PyObject *pyobj; | |
21872 | ||
21873 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
21874 | return pyobj; | |
21875 | } | |
21876 | ||
21877 | ||
21878 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21879 | PyObject *resultobj; | |
21880 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21881 | PyObject * obj0 = 0 ; | |
21882 | char *kwnames[] = { | |
21883 | (char *) "self", NULL | |
21884 | }; | |
21885 | ||
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
21887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21888 | { | |
21889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21890 | delete arg1; | |
21891 | ||
21892 | wxPyEndAllowThreads(__tstate); | |
21893 | if (PyErr_Occurred()) SWIG_fail; | |
21894 | } | |
21895 | Py_INCREF(Py_None); resultobj = Py_None; | |
21896 | return resultobj; | |
21897 | fail: | |
21898 | return NULL; | |
21899 | } | |
21900 | ||
21901 | ||
21902 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21903 | PyObject *resultobj; | |
21904 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21905 | int arg2 = (int) wxDataObject::Get ; | |
21906 | SwigValueWrapper< wxDataFormat > result; | |
21907 | PyObject * obj0 = 0 ; | |
21908 | char *kwnames[] = { | |
21909 | (char *) "self",(char *) "dir", NULL | |
21910 | }; | |
21911 | ||
21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetPreferredFormat",kwnames,&obj0,&arg2)) goto fail; | |
21913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21914 | { | |
21915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21916 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
21917 | ||
21918 | wxPyEndAllowThreads(__tstate); | |
21919 | if (PyErr_Occurred()) SWIG_fail; | |
21920 | } | |
21921 | { | |
21922 | wxDataFormat * resultptr; | |
21923 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
21924 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
21925 | } | |
21926 | return resultobj; | |
21927 | fail: | |
21928 | return NULL; | |
21929 | } | |
21930 | ||
21931 | ||
21932 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21933 | PyObject *resultobj; | |
21934 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21935 | int arg2 = (int) wxDataObject::Get ; | |
21936 | size_t result; | |
21937 | PyObject * obj0 = 0 ; | |
21938 | char *kwnames[] = { | |
21939 | (char *) "self",(char *) "dir", NULL | |
21940 | }; | |
21941 | ||
21942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetFormatCount",kwnames,&obj0,&arg2)) goto fail; | |
21943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21944 | { | |
21945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21946 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
21947 | ||
21948 | wxPyEndAllowThreads(__tstate); | |
21949 | if (PyErr_Occurred()) SWIG_fail; | |
21950 | } | |
21951 | resultobj = PyInt_FromLong((long)result); | |
21952 | return resultobj; | |
21953 | fail: | |
21954 | return NULL; | |
21955 | } | |
21956 | ||
21957 | ||
21958 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21959 | PyObject *resultobj; | |
21960 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21961 | wxDataFormat *arg2 = 0 ; | |
21962 | int arg3 = (int) wxDataObject::Get ; | |
21963 | bool result; | |
21964 | PyObject * obj0 = 0 ; | |
21965 | PyObject * obj1 = 0 ; | |
21966 | char *kwnames[] = { | |
21967 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
21968 | }; | |
21969 | ||
21970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_IsSupported",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
21971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21972 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21973 | if (arg2 == NULL) { | |
21974 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21975 | } | |
21976 | { | |
21977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21978 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
21979 | ||
21980 | wxPyEndAllowThreads(__tstate); | |
21981 | if (PyErr_Occurred()) SWIG_fail; | |
21982 | } | |
21983 | resultobj = PyInt_FromLong((long)result); | |
21984 | return resultobj; | |
21985 | fail: | |
21986 | return NULL; | |
21987 | } | |
21988 | ||
21989 | ||
21990 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21991 | PyObject *resultobj; | |
21992 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
21993 | wxDataFormat *arg2 = 0 ; | |
21994 | size_t result; | |
21995 | PyObject * obj0 = 0 ; | |
21996 | PyObject * obj1 = 0 ; | |
21997 | char *kwnames[] = { | |
21998 | (char *) "self",(char *) "format", NULL | |
21999 | }; | |
22000 | ||
22001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
22002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22003 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22004 | if (arg2 == NULL) { | |
22005 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22006 | } | |
22007 | { | |
22008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22009 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
22010 | ||
22011 | wxPyEndAllowThreads(__tstate); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
22013 | } | |
22014 | resultobj = PyInt_FromLong((long)result); | |
22015 | return resultobj; | |
22016 | fail: | |
22017 | return NULL; | |
22018 | } | |
22019 | ||
22020 | ||
22021 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22022 | PyObject *resultobj; | |
22023 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22024 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
22025 | int arg3 = (int) wxDataObject::Get ; | |
22026 | PyObject * obj0 = 0 ; | |
22027 | PyObject * obj1 = 0 ; | |
22028 | char *kwnames[] = { | |
22029 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
22030 | }; | |
22031 | ||
22032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22034 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22035 | { | |
22036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22037 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
22038 | ||
22039 | wxPyEndAllowThreads(__tstate); | |
22040 | if (PyErr_Occurred()) SWIG_fail; | |
22041 | } | |
22042 | Py_INCREF(Py_None); resultobj = Py_None; | |
22043 | return resultobj; | |
22044 | fail: | |
22045 | return NULL; | |
22046 | } | |
22047 | ||
22048 | ||
22049 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22050 | PyObject *resultobj; | |
22051 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22052 | wxDataFormat *arg2 = 0 ; | |
22053 | void *arg3 = (void *) 0 ; | |
22054 | bool result; | |
22055 | PyObject * obj0 = 0 ; | |
22056 | PyObject * obj1 = 0 ; | |
22057 | PyObject * obj2 = 0 ; | |
22058 | char *kwnames[] = { | |
22059 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
22060 | }; | |
22061 | ||
22062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22064 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22065 | if (arg2 == NULL) { | |
22066 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22067 | } | |
22068 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22069 | { | |
22070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22071 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
22072 | ||
22073 | wxPyEndAllowThreads(__tstate); | |
22074 | if (PyErr_Occurred()) SWIG_fail; | |
22075 | } | |
22076 | resultobj = PyInt_FromLong((long)result); | |
22077 | return resultobj; | |
22078 | fail: | |
22079 | return NULL; | |
22080 | } | |
22081 | ||
22082 | ||
22083 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22084 | PyObject *resultobj; | |
22085 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22086 | wxDataFormat *arg2 = 0 ; | |
22087 | size_t arg3 ; | |
22088 | void *arg4 = (void *) 0 ; | |
22089 | bool result; | |
22090 | PyObject * obj0 = 0 ; | |
22091 | PyObject * obj1 = 0 ; | |
22092 | PyObject * obj2 = 0 ; | |
22093 | PyObject * obj3 = 0 ; | |
22094 | char *kwnames[] = { | |
22095 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
22096 | }; | |
22097 | ||
22098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22100 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22101 | if (arg2 == NULL) { | |
22102 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22103 | } | |
22104 | arg3 = (size_t) PyInt_AsLong(obj2); | |
22105 | if (PyErr_Occurred()) SWIG_fail; | |
22106 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22107 | { | |
22108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22109 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
22110 | ||
22111 | wxPyEndAllowThreads(__tstate); | |
22112 | if (PyErr_Occurred()) SWIG_fail; | |
22113 | } | |
22114 | resultobj = PyInt_FromLong((long)result); | |
22115 | return resultobj; | |
22116 | fail: | |
22117 | return NULL; | |
22118 | } | |
22119 | ||
22120 | ||
22121 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
22122 | PyObject *obj; | |
22123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22124 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
22125 | Py_INCREF(obj); | |
22126 | return Py_BuildValue((char *)""); | |
22127 | } | |
22128 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22129 | PyObject *resultobj; | |
22130 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22131 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22132 | wxDataObjectSimple *result; | |
22133 | PyObject * obj0 = 0 ; | |
22134 | char *kwnames[] = { | |
22135 | (char *) "format", NULL | |
22136 | }; | |
22137 | ||
22138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
22139 | if (obj0) { | |
22140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22141 | if (arg1 == NULL) { | |
22142 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22143 | } | |
22144 | } | |
22145 | { | |
22146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22147 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
22148 | ||
22149 | wxPyEndAllowThreads(__tstate); | |
22150 | if (PyErr_Occurred()) SWIG_fail; | |
22151 | } | |
22152 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
22153 | return resultobj; | |
22154 | fail: | |
22155 | return NULL; | |
22156 | } | |
22157 | ||
22158 | ||
22159 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22160 | PyObject *resultobj; | |
22161 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22162 | wxDataFormat *result; | |
22163 | PyObject * obj0 = 0 ; | |
22164 | char *kwnames[] = { | |
22165 | (char *) "self", NULL | |
22166 | }; | |
22167 | ||
22168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
22169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22170 | { | |
22171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22172 | { | |
22173 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
22174 | result = (wxDataFormat *) &_result_ref; | |
22175 | } | |
22176 | ||
22177 | wxPyEndAllowThreads(__tstate); | |
22178 | if (PyErr_Occurred()) SWIG_fail; | |
22179 | } | |
22180 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
22181 | return resultobj; | |
22182 | fail: | |
22183 | return NULL; | |
22184 | } | |
22185 | ||
22186 | ||
22187 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22188 | PyObject *resultobj; | |
22189 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22190 | wxDataFormat *arg2 = 0 ; | |
22191 | PyObject * obj0 = 0 ; | |
22192 | PyObject * obj1 = 0 ; | |
22193 | char *kwnames[] = { | |
22194 | (char *) "self",(char *) "format", NULL | |
22195 | }; | |
22196 | ||
22197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
22198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22199 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22200 | if (arg2 == NULL) { | |
22201 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22202 | } | |
22203 | { | |
22204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22205 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
22206 | ||
22207 | wxPyEndAllowThreads(__tstate); | |
22208 | if (PyErr_Occurred()) SWIG_fail; | |
22209 | } | |
22210 | Py_INCREF(Py_None); resultobj = Py_None; | |
22211 | return resultobj; | |
22212 | fail: | |
22213 | return NULL; | |
22214 | } | |
22215 | ||
22216 | ||
22217 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22218 | PyObject *obj; | |
22219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22220 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
22221 | Py_INCREF(obj); | |
22222 | return Py_BuildValue((char *)""); | |
22223 | } | |
22224 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22225 | PyObject *resultobj; | |
22226 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22227 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22228 | wxPyDataObjectSimple *result; | |
22229 | PyObject * obj0 = 0 ; | |
22230 | char *kwnames[] = { | |
22231 | (char *) "format", NULL | |
22232 | }; | |
22233 | ||
22234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
22235 | if (obj0) { | |
22236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22237 | if (arg1 == NULL) { | |
22238 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22239 | } | |
22240 | } | |
22241 | { | |
22242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22243 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
22244 | ||
22245 | wxPyEndAllowThreads(__tstate); | |
22246 | if (PyErr_Occurred()) SWIG_fail; | |
22247 | } | |
22248 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
22249 | return resultobj; | |
22250 | fail: | |
22251 | return NULL; | |
22252 | } | |
22253 | ||
22254 | ||
22255 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22256 | PyObject *resultobj; | |
22257 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
22258 | PyObject *arg2 = (PyObject *) 0 ; | |
22259 | PyObject *arg3 = (PyObject *) 0 ; | |
22260 | PyObject * obj0 = 0 ; | |
22261 | PyObject * obj1 = 0 ; | |
22262 | PyObject * obj2 = 0 ; | |
22263 | char *kwnames[] = { | |
22264 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22265 | }; | |
22266 | ||
22267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22269 | arg2 = obj1; | |
22270 | arg3 = obj2; | |
22271 | { | |
22272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22273 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22274 | ||
22275 | wxPyEndAllowThreads(__tstate); | |
22276 | if (PyErr_Occurred()) SWIG_fail; | |
22277 | } | |
22278 | Py_INCREF(Py_None); resultobj = Py_None; | |
22279 | return resultobj; | |
22280 | fail: | |
22281 | return NULL; | |
22282 | } | |
22283 | ||
22284 | ||
22285 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22286 | PyObject *obj; | |
22287 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22288 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
22289 | Py_INCREF(obj); | |
22290 | return Py_BuildValue((char *)""); | |
22291 | } | |
22292 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22293 | PyObject *resultobj; | |
22294 | wxDataObjectComposite *result; | |
22295 | char *kwnames[] = { | |
22296 | NULL | |
22297 | }; | |
22298 | ||
22299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
22300 | { | |
22301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22302 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
22303 | ||
22304 | wxPyEndAllowThreads(__tstate); | |
22305 | if (PyErr_Occurred()) SWIG_fail; | |
22306 | } | |
22307 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
22308 | return resultobj; | |
22309 | fail: | |
22310 | return NULL; | |
22311 | } | |
22312 | ||
22313 | ||
22314 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22315 | PyObject *resultobj; | |
22316 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
22317 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
423f194a | 22318 | int arg3 = (int) False ; |
d14a1e28 RD |
22319 | PyObject * obj0 = 0 ; |
22320 | PyObject * obj1 = 0 ; | |
22321 | char *kwnames[] = { | |
22322 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
22323 | }; | |
22324 | ||
22325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObjectComposite_Add",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22328 | { | |
22329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22330 | (arg1)->Add(arg2,arg3); | |
22331 | ||
22332 | wxPyEndAllowThreads(__tstate); | |
22333 | if (PyErr_Occurred()) SWIG_fail; | |
22334 | } | |
22335 | Py_INCREF(Py_None); resultobj = Py_None; | |
22336 | return resultobj; | |
22337 | fail: | |
22338 | return NULL; | |
22339 | } | |
22340 | ||
22341 | ||
22342 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
22343 | PyObject *obj; | |
22344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22345 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
22346 | Py_INCREF(obj); | |
22347 | return Py_BuildValue((char *)""); | |
22348 | } | |
22349 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22350 | PyObject *resultobj; | |
22351 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22352 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22353 | wxTextDataObject *result; | |
423f194a | 22354 | bool temp1 = False ; |
d14a1e28 RD |
22355 | PyObject * obj0 = 0 ; |
22356 | char *kwnames[] = { | |
22357 | (char *) "text", NULL | |
22358 | }; | |
22359 | ||
22360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
22361 | if (obj0) { | |
22362 | { | |
22363 | arg1 = wxString_in_helper(obj0); | |
22364 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 22365 | temp1 = True; |
d14a1e28 RD |
22366 | } |
22367 | } | |
22368 | { | |
22369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22370 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
22371 | ||
22372 | wxPyEndAllowThreads(__tstate); | |
22373 | if (PyErr_Occurred()) SWIG_fail; | |
22374 | } | |
22375 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
22376 | { | |
22377 | if (temp1) | |
22378 | delete arg1; | |
22379 | } | |
22380 | return resultobj; | |
22381 | fail: | |
22382 | { | |
22383 | if (temp1) | |
22384 | delete arg1; | |
22385 | } | |
22386 | return NULL; | |
22387 | } | |
22388 | ||
22389 | ||
22390 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22391 | PyObject *resultobj; | |
22392 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22393 | size_t result; | |
22394 | PyObject * obj0 = 0 ; | |
22395 | char *kwnames[] = { | |
22396 | (char *) "self", NULL | |
22397 | }; | |
22398 | ||
22399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
22400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22401 | { | |
22402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22403 | result = (size_t)(arg1)->GetTextLength(); | |
22404 | ||
22405 | wxPyEndAllowThreads(__tstate); | |
22406 | if (PyErr_Occurred()) SWIG_fail; | |
22407 | } | |
22408 | resultobj = PyInt_FromLong((long)result); | |
22409 | return resultobj; | |
22410 | fail: | |
22411 | return NULL; | |
22412 | } | |
22413 | ||
22414 | ||
22415 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22416 | PyObject *resultobj; | |
22417 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22418 | wxString result; | |
22419 | PyObject * obj0 = 0 ; | |
22420 | char *kwnames[] = { | |
22421 | (char *) "self", NULL | |
22422 | }; | |
22423 | ||
22424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
22425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22426 | { | |
22427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22428 | result = (arg1)->GetText(); | |
22429 | ||
22430 | wxPyEndAllowThreads(__tstate); | |
22431 | if (PyErr_Occurred()) SWIG_fail; | |
22432 | } | |
22433 | { | |
22434 | #if wxUSE_UNICODE | |
22435 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22436 | #else | |
22437 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22438 | #endif | |
22439 | } | |
22440 | return resultobj; | |
22441 | fail: | |
22442 | return NULL; | |
22443 | } | |
22444 | ||
22445 | ||
22446 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22447 | PyObject *resultobj; | |
22448 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22449 | wxString *arg2 = 0 ; | |
423f194a | 22450 | bool temp2 = False ; |
d14a1e28 RD |
22451 | PyObject * obj0 = 0 ; |
22452 | PyObject * obj1 = 0 ; | |
22453 | char *kwnames[] = { | |
22454 | (char *) "self",(char *) "text", NULL | |
22455 | }; | |
22456 | ||
22457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
22458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22459 | { | |
22460 | arg2 = wxString_in_helper(obj1); | |
22461 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22462 | temp2 = True; |
d14a1e28 RD |
22463 | } |
22464 | { | |
22465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22466 | (arg1)->SetText((wxString const &)*arg2); | |
22467 | ||
22468 | wxPyEndAllowThreads(__tstate); | |
22469 | if (PyErr_Occurred()) SWIG_fail; | |
22470 | } | |
22471 | Py_INCREF(Py_None); resultobj = Py_None; | |
22472 | { | |
22473 | if (temp2) | |
22474 | delete arg2; | |
22475 | } | |
22476 | return resultobj; | |
22477 | fail: | |
22478 | { | |
22479 | if (temp2) | |
22480 | delete arg2; | |
22481 | } | |
22482 | return NULL; | |
22483 | } | |
22484 | ||
22485 | ||
22486 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22487 | PyObject *obj; | |
22488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22489 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
22490 | Py_INCREF(obj); | |
22491 | return Py_BuildValue((char *)""); | |
22492 | } | |
22493 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22494 | PyObject *resultobj; | |
22495 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22496 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22497 | wxPyTextDataObject *result; | |
423f194a | 22498 | bool temp1 = False ; |
d14a1e28 RD |
22499 | PyObject * obj0 = 0 ; |
22500 | char *kwnames[] = { | |
22501 | (char *) "text", NULL | |
22502 | }; | |
22503 | ||
22504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
22505 | if (obj0) { | |
22506 | { | |
22507 | arg1 = wxString_in_helper(obj0); | |
22508 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 22509 | temp1 = True; |
d14a1e28 RD |
22510 | } |
22511 | } | |
22512 | { | |
22513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22514 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
22515 | ||
22516 | wxPyEndAllowThreads(__tstate); | |
22517 | if (PyErr_Occurred()) SWIG_fail; | |
22518 | } | |
22519 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
22520 | { | |
22521 | if (temp1) | |
22522 | delete arg1; | |
22523 | } | |
22524 | return resultobj; | |
22525 | fail: | |
22526 | { | |
22527 | if (temp1) | |
22528 | delete arg1; | |
22529 | } | |
22530 | return NULL; | |
22531 | } | |
22532 | ||
22533 | ||
22534 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22535 | PyObject *resultobj; | |
22536 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
22537 | PyObject *arg2 = (PyObject *) 0 ; | |
22538 | PyObject *arg3 = (PyObject *) 0 ; | |
22539 | PyObject * obj0 = 0 ; | |
22540 | PyObject * obj1 = 0 ; | |
22541 | PyObject * obj2 = 0 ; | |
22542 | char *kwnames[] = { | |
22543 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22544 | }; | |
22545 | ||
22546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22548 | arg2 = obj1; | |
22549 | arg3 = obj2; | |
22550 | { | |
22551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22552 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22553 | ||
22554 | wxPyEndAllowThreads(__tstate); | |
22555 | if (PyErr_Occurred()) SWIG_fail; | |
22556 | } | |
22557 | Py_INCREF(Py_None); resultobj = Py_None; | |
22558 | return resultobj; | |
22559 | fail: | |
22560 | return NULL; | |
22561 | } | |
22562 | ||
22563 | ||
22564 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22565 | PyObject *obj; | |
22566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22567 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
22568 | Py_INCREF(obj); | |
22569 | return Py_BuildValue((char *)""); | |
22570 | } | |
22571 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22572 | PyObject *resultobj; | |
22573 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22574 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22575 | wxBitmapDataObject *result; | |
22576 | PyObject * obj0 = 0 ; | |
22577 | char *kwnames[] = { | |
22578 | (char *) "bitmap", NULL | |
22579 | }; | |
22580 | ||
22581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
22582 | if (obj0) { | |
22583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22584 | if (arg1 == NULL) { | |
22585 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22586 | } | |
22587 | } | |
22588 | { | |
22589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22590 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
22591 | ||
22592 | wxPyEndAllowThreads(__tstate); | |
22593 | if (PyErr_Occurred()) SWIG_fail; | |
22594 | } | |
22595 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
22596 | return resultobj; | |
22597 | fail: | |
22598 | return NULL; | |
22599 | } | |
22600 | ||
22601 | ||
22602 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22603 | PyObject *resultobj; | |
22604 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22605 | wxBitmap result; | |
22606 | PyObject * obj0 = 0 ; | |
22607 | char *kwnames[] = { | |
22608 | (char *) "self", NULL | |
22609 | }; | |
22610 | ||
22611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
22612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22613 | { | |
22614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22615 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
22616 | ||
22617 | wxPyEndAllowThreads(__tstate); | |
22618 | if (PyErr_Occurred()) SWIG_fail; | |
22619 | } | |
22620 | { | |
22621 | wxBitmap * resultptr; | |
22622 | resultptr = new wxBitmap((wxBitmap &) result); | |
22623 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
22624 | } | |
22625 | return resultobj; | |
22626 | fail: | |
22627 | return NULL; | |
22628 | } | |
22629 | ||
22630 | ||
22631 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22632 | PyObject *resultobj; | |
22633 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22634 | wxBitmap *arg2 = 0 ; | |
22635 | PyObject * obj0 = 0 ; | |
22636 | PyObject * obj1 = 0 ; | |
22637 | char *kwnames[] = { | |
22638 | (char *) "self",(char *) "bitmap", NULL | |
22639 | }; | |
22640 | ||
22641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
22642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22643 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22644 | if (arg2 == NULL) { | |
22645 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22646 | } | |
22647 | { | |
22648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22649 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
22650 | ||
22651 | wxPyEndAllowThreads(__tstate); | |
22652 | if (PyErr_Occurred()) SWIG_fail; | |
22653 | } | |
22654 | Py_INCREF(Py_None); resultobj = Py_None; | |
22655 | return resultobj; | |
22656 | fail: | |
22657 | return NULL; | |
22658 | } | |
22659 | ||
22660 | ||
22661 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22662 | PyObject *obj; | |
22663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22664 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
22665 | Py_INCREF(obj); | |
22666 | return Py_BuildValue((char *)""); | |
22667 | } | |
22668 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22669 | PyObject *resultobj; | |
22670 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22671 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22672 | wxPyBitmapDataObject *result; | |
22673 | PyObject * obj0 = 0 ; | |
22674 | char *kwnames[] = { | |
22675 | (char *) "bitmap", NULL | |
22676 | }; | |
22677 | ||
22678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
22679 | if (obj0) { | |
22680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22681 | if (arg1 == NULL) { | |
22682 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22683 | } | |
22684 | } | |
22685 | { | |
22686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22687 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
22688 | ||
22689 | wxPyEndAllowThreads(__tstate); | |
22690 | if (PyErr_Occurred()) SWIG_fail; | |
22691 | } | |
22692 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
22693 | return resultobj; | |
22694 | fail: | |
22695 | return NULL; | |
22696 | } | |
22697 | ||
22698 | ||
22699 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22700 | PyObject *resultobj; | |
22701 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
22702 | PyObject *arg2 = (PyObject *) 0 ; | |
22703 | PyObject *arg3 = (PyObject *) 0 ; | |
22704 | PyObject * obj0 = 0 ; | |
22705 | PyObject * obj1 = 0 ; | |
22706 | PyObject * obj2 = 0 ; | |
22707 | char *kwnames[] = { | |
22708 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22709 | }; | |
22710 | ||
22711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22713 | arg2 = obj1; | |
22714 | arg3 = obj2; | |
22715 | { | |
22716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22717 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22718 | ||
22719 | wxPyEndAllowThreads(__tstate); | |
22720 | if (PyErr_Occurred()) SWIG_fail; | |
22721 | } | |
22722 | Py_INCREF(Py_None); resultobj = Py_None; | |
22723 | return resultobj; | |
22724 | fail: | |
22725 | return NULL; | |
22726 | } | |
22727 | ||
22728 | ||
22729 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22730 | PyObject *obj; | |
22731 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22732 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
22733 | Py_INCREF(obj); | |
22734 | return Py_BuildValue((char *)""); | |
22735 | } | |
22736 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22737 | PyObject *resultobj; | |
22738 | wxFileDataObject *result; | |
22739 | char *kwnames[] = { | |
22740 | NULL | |
22741 | }; | |
22742 | ||
22743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
22744 | { | |
22745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22746 | result = (wxFileDataObject *)new wxFileDataObject(); | |
22747 | ||
22748 | wxPyEndAllowThreads(__tstate); | |
22749 | if (PyErr_Occurred()) SWIG_fail; | |
22750 | } | |
22751 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
22752 | return resultobj; | |
22753 | fail: | |
22754 | return NULL; | |
22755 | } | |
22756 | ||
22757 | ||
22758 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22759 | PyObject *resultobj; | |
22760 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
22761 | wxArrayString *result; | |
22762 | PyObject * obj0 = 0 ; | |
22763 | char *kwnames[] = { | |
22764 | (char *) "self", NULL | |
22765 | }; | |
22766 | ||
22767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
22768 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22769 | { | |
22770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22771 | { | |
22772 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
22773 | result = (wxArrayString *) &_result_ref; | |
22774 | } | |
22775 | ||
22776 | wxPyEndAllowThreads(__tstate); | |
22777 | if (PyErr_Occurred()) SWIG_fail; | |
22778 | } | |
22779 | { | |
22780 | resultobj = wxArrayString2PyList_helper(*result); | |
22781 | } | |
22782 | return resultobj; | |
22783 | fail: | |
22784 | return NULL; | |
22785 | } | |
22786 | ||
22787 | ||
22788 | static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22789 | PyObject *resultobj; | |
22790 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
22791 | wxString *arg2 = 0 ; | |
423f194a | 22792 | bool temp2 = False ; |
d14a1e28 RD |
22793 | PyObject * obj0 = 0 ; |
22794 | PyObject * obj1 = 0 ; | |
22795 | char *kwnames[] = { | |
22796 | (char *) "self",(char *) "filename", NULL | |
22797 | }; | |
22798 | ||
22799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail; | |
22800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22801 | { | |
22802 | arg2 = wxString_in_helper(obj1); | |
22803 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22804 | temp2 = True; |
d14a1e28 RD |
22805 | } |
22806 | { | |
22807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22808 | (arg1)->AddFile((wxString const &)*arg2); | |
22809 | ||
22810 | wxPyEndAllowThreads(__tstate); | |
22811 | if (PyErr_Occurred()) SWIG_fail; | |
22812 | } | |
22813 | Py_INCREF(Py_None); resultobj = Py_None; | |
22814 | { | |
22815 | if (temp2) | |
22816 | delete arg2; | |
22817 | } | |
22818 | return resultobj; | |
22819 | fail: | |
22820 | { | |
22821 | if (temp2) | |
22822 | delete arg2; | |
22823 | } | |
22824 | return NULL; | |
22825 | } | |
22826 | ||
22827 | ||
22828 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
22829 | PyObject *obj; | |
22830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22831 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
22832 | Py_INCREF(obj); | |
22833 | return Py_BuildValue((char *)""); | |
22834 | } | |
22835 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22836 | PyObject *resultobj; | |
22837 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22838 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22839 | wxCustomDataObject *result; | |
22840 | PyObject * obj0 = 0 ; | |
22841 | char *kwnames[] = { | |
22842 | (char *) "format", NULL | |
22843 | }; | |
22844 | ||
22845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
22846 | if (obj0) { | |
22847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22848 | if (arg1 == NULL) { | |
22849 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22850 | } | |
22851 | } | |
22852 | { | |
22853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22854 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
22855 | ||
22856 | wxPyEndAllowThreads(__tstate); | |
22857 | if (PyErr_Occurred()) SWIG_fail; | |
22858 | } | |
22859 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
22860 | return resultobj; | |
22861 | fail: | |
22862 | return NULL; | |
22863 | } | |
22864 | ||
22865 | ||
22866 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22867 | PyObject *resultobj; | |
22868 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22869 | PyObject *arg2 = (PyObject *) 0 ; | |
22870 | PyObject * obj0 = 0 ; | |
22871 | PyObject * obj1 = 0 ; | |
22872 | char *kwnames[] = { | |
22873 | (char *) "self",(char *) "data", NULL | |
22874 | }; | |
22875 | ||
22876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
22877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22878 | arg2 = obj1; | |
22879 | { | |
22880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22881 | wxCustomDataObject_TakeData(arg1,arg2); | |
22882 | ||
22883 | wxPyEndAllowThreads(__tstate); | |
22884 | if (PyErr_Occurred()) SWIG_fail; | |
22885 | } | |
22886 | Py_INCREF(Py_None); resultobj = Py_None; | |
22887 | return resultobj; | |
22888 | fail: | |
22889 | return NULL; | |
22890 | } | |
22891 | ||
22892 | ||
22893 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22894 | PyObject *resultobj; | |
22895 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22896 | PyObject *arg2 = (PyObject *) 0 ; | |
22897 | bool result; | |
22898 | PyObject * obj0 = 0 ; | |
22899 | PyObject * obj1 = 0 ; | |
22900 | char *kwnames[] = { | |
22901 | (char *) "self",(char *) "data", NULL | |
22902 | }; | |
22903 | ||
22904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
22905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22906 | arg2 = obj1; | |
22907 | { | |
22908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22909 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
22910 | ||
22911 | wxPyEndAllowThreads(__tstate); | |
22912 | if (PyErr_Occurred()) SWIG_fail; | |
22913 | } | |
22914 | resultobj = PyInt_FromLong((long)result); | |
22915 | return resultobj; | |
22916 | fail: | |
22917 | return NULL; | |
22918 | } | |
22919 | ||
22920 | ||
22921 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22922 | PyObject *resultobj; | |
22923 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22924 | size_t result; | |
22925 | PyObject * obj0 = 0 ; | |
22926 | char *kwnames[] = { | |
22927 | (char *) "self", NULL | |
22928 | }; | |
22929 | ||
22930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
22931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22932 | { | |
22933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22934 | result = (size_t)(arg1)->GetSize(); | |
22935 | ||
22936 | wxPyEndAllowThreads(__tstate); | |
22937 | if (PyErr_Occurred()) SWIG_fail; | |
22938 | } | |
22939 | resultobj = PyInt_FromLong((long)result); | |
22940 | return resultobj; | |
22941 | fail: | |
22942 | return NULL; | |
22943 | } | |
22944 | ||
22945 | ||
22946 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22947 | PyObject *resultobj; | |
22948 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22949 | PyObject *result; | |
22950 | PyObject * obj0 = 0 ; | |
22951 | char *kwnames[] = { | |
22952 | (char *) "self", NULL | |
22953 | }; | |
22954 | ||
22955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
22956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22957 | { | |
22958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22959 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
22960 | ||
22961 | wxPyEndAllowThreads(__tstate); | |
22962 | if (PyErr_Occurred()) SWIG_fail; | |
22963 | } | |
22964 | resultobj = result; | |
22965 | return resultobj; | |
22966 | fail: | |
22967 | return NULL; | |
22968 | } | |
22969 | ||
22970 | ||
22971 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
22972 | PyObject *obj; | |
22973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22974 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
22975 | Py_INCREF(obj); | |
22976 | return Py_BuildValue((char *)""); | |
22977 | } | |
22978 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22979 | PyObject *resultobj; | |
22980 | wxURLDataObject *result; | |
22981 | char *kwnames[] = { | |
22982 | NULL | |
22983 | }; | |
22984 | ||
22985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
22986 | { | |
22987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22988 | result = (wxURLDataObject *)new wxURLDataObject(); | |
22989 | ||
22990 | wxPyEndAllowThreads(__tstate); | |
22991 | if (PyErr_Occurred()) SWIG_fail; | |
22992 | } | |
22993 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
22994 | return resultobj; | |
22995 | fail: | |
22996 | return NULL; | |
22997 | } | |
22998 | ||
22999 | ||
23000 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23001 | PyObject *resultobj; | |
23002 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
23003 | wxString result; | |
23004 | PyObject * obj0 = 0 ; | |
23005 | char *kwnames[] = { | |
23006 | (char *) "self", NULL | |
23007 | }; | |
23008 | ||
23009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
23010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23011 | { | |
23012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23013 | result = (arg1)->GetURL(); | |
23014 | ||
23015 | wxPyEndAllowThreads(__tstate); | |
23016 | if (PyErr_Occurred()) SWIG_fail; | |
23017 | } | |
23018 | { | |
23019 | #if wxUSE_UNICODE | |
23020 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23021 | #else | |
23022 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23023 | #endif | |
23024 | } | |
23025 | return resultobj; | |
23026 | fail: | |
23027 | return NULL; | |
23028 | } | |
23029 | ||
23030 | ||
23031 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23032 | PyObject *resultobj; | |
23033 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
23034 | wxString *arg2 = 0 ; | |
423f194a | 23035 | bool temp2 = False ; |
d14a1e28 RD |
23036 | PyObject * obj0 = 0 ; |
23037 | PyObject * obj1 = 0 ; | |
23038 | char *kwnames[] = { | |
23039 | (char *) "self",(char *) "url", NULL | |
23040 | }; | |
23041 | ||
23042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
23043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23044 | { | |
23045 | arg2 = wxString_in_helper(obj1); | |
23046 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23047 | temp2 = True; |
d14a1e28 RD |
23048 | } |
23049 | { | |
23050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23051 | (arg1)->SetURL((wxString const &)*arg2); | |
23052 | ||
23053 | wxPyEndAllowThreads(__tstate); | |
23054 | if (PyErr_Occurred()) SWIG_fail; | |
23055 | } | |
23056 | Py_INCREF(Py_None); resultobj = Py_None; | |
23057 | { | |
23058 | if (temp2) | |
23059 | delete arg2; | |
23060 | } | |
23061 | return resultobj; | |
23062 | fail: | |
23063 | { | |
23064 | if (temp2) | |
23065 | delete arg2; | |
23066 | } | |
23067 | return NULL; | |
23068 | } | |
23069 | ||
23070 | ||
23071 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
23072 | PyObject *obj; | |
23073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23074 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
23075 | Py_INCREF(obj); | |
23076 | return Py_BuildValue((char *)""); | |
23077 | } | |
23078 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23079 | PyObject *resultobj; | |
23080 | wxMetafileDataObject *result; | |
23081 | char *kwnames[] = { | |
23082 | NULL | |
23083 | }; | |
23084 | ||
23085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
23086 | { | |
23087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23088 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
23089 | ||
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
23094 | return resultobj; | |
23095 | fail: | |
23096 | return NULL; | |
23097 | } | |
23098 | ||
23099 | ||
23100 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23101 | PyObject *resultobj; | |
23102 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
23103 | wxMetafile *arg2 = 0 ; | |
23104 | PyObject * obj0 = 0 ; | |
23105 | PyObject * obj1 = 0 ; | |
23106 | char *kwnames[] = { | |
23107 | (char *) "self",(char *) "metafile", NULL | |
23108 | }; | |
23109 | ||
23110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
23111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23112 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMetafile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23113 | if (arg2 == NULL) { | |
23114 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23115 | } | |
23116 | { | |
23117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23118 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
23119 | ||
23120 | wxPyEndAllowThreads(__tstate); | |
23121 | if (PyErr_Occurred()) SWIG_fail; | |
23122 | } | |
23123 | Py_INCREF(Py_None); resultobj = Py_None; | |
23124 | return resultobj; | |
23125 | fail: | |
23126 | return NULL; | |
23127 | } | |
23128 | ||
23129 | ||
23130 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23131 | PyObject *resultobj; | |
23132 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
23133 | wxMetafile result; | |
23134 | PyObject * obj0 = 0 ; | |
23135 | char *kwnames[] = { | |
23136 | (char *) "self", NULL | |
23137 | }; | |
23138 | ||
23139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
23140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23141 | { | |
23142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23143 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
23144 | ||
23145 | wxPyEndAllowThreads(__tstate); | |
23146 | if (PyErr_Occurred()) SWIG_fail; | |
23147 | } | |
23148 | { | |
23149 | wxMetafile * resultptr; | |
23150 | resultptr = new wxMetafile((wxMetafile &) result); | |
23151 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxMetafile, 1); | |
23152 | } | |
23153 | return resultobj; | |
23154 | fail: | |
23155 | return NULL; | |
23156 | } | |
23157 | ||
23158 | ||
23159 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
23160 | PyObject *obj; | |
23161 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23162 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
23163 | Py_INCREF(obj); | |
23164 | return Py_BuildValue((char *)""); | |
23165 | } | |
23166 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23167 | PyObject *resultobj; | |
23168 | int arg1 ; | |
23169 | bool result; | |
23170 | char *kwnames[] = { | |
23171 | (char *) "res", NULL | |
23172 | }; | |
23173 | ||
23174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IsDragResultOk",kwnames,&arg1)) goto fail; | |
23175 | { | |
23176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23177 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
23178 | ||
23179 | wxPyEndAllowThreads(__tstate); | |
23180 | if (PyErr_Occurred()) SWIG_fail; | |
23181 | } | |
23182 | resultobj = PyInt_FromLong((long)result); | |
23183 | return resultobj; | |
23184 | fail: | |
23185 | return NULL; | |
23186 | } | |
23187 | ||
23188 | ||
23189 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23190 | PyObject *resultobj; | |
23191 | wxWindow *arg1 = (wxWindow *) NULL ; | |
23192 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
23193 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
23194 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
23195 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
23196 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
23197 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
23198 | wxPyDropSource *result; | |
23199 | PyObject * obj0 = 0 ; | |
23200 | PyObject * obj1 = 0 ; | |
23201 | PyObject * obj2 = 0 ; | |
23202 | PyObject * obj3 = 0 ; | |
23203 | char *kwnames[] = { | |
23204 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
23205 | }; | |
23206 | ||
23207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23208 | if (obj0) { | |
23209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23210 | } | |
23211 | if (obj1) { | |
23212 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23213 | if (arg2 == NULL) { | |
23214 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23215 | } | |
23216 | } | |
23217 | if (obj2) { | |
23218 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23219 | if (arg3 == NULL) { | |
23220 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23221 | } | |
23222 | } | |
23223 | if (obj3) { | |
23224 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23225 | if (arg4 == NULL) { | |
23226 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23227 | } | |
23228 | } | |
23229 | { | |
23230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23231 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
23232 | ||
23233 | wxPyEndAllowThreads(__tstate); | |
23234 | if (PyErr_Occurred()) SWIG_fail; | |
23235 | } | |
23236 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
23237 | return resultobj; | |
23238 | fail: | |
23239 | return NULL; | |
23240 | } | |
23241 | ||
23242 | ||
23243 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23244 | PyObject *resultobj; | |
23245 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23246 | PyObject *arg2 = (PyObject *) 0 ; | |
23247 | PyObject *arg3 = (PyObject *) 0 ; | |
23248 | int arg4 ; | |
23249 | PyObject * obj0 = 0 ; | |
23250 | PyObject * obj1 = 0 ; | |
23251 | PyObject * obj2 = 0 ; | |
23252 | char *kwnames[] = { | |
23253 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
23254 | }; | |
23255 | ||
23256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
23257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23258 | arg2 = obj1; | |
23259 | arg3 = obj2; | |
23260 | { | |
23261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23262 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
23263 | ||
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
23267 | Py_INCREF(Py_None); resultobj = Py_None; | |
23268 | return resultobj; | |
23269 | fail: | |
23270 | return NULL; | |
23271 | } | |
23272 | ||
23273 | ||
23274 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23275 | PyObject *resultobj; | |
23276 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23277 | PyObject * obj0 = 0 ; | |
23278 | char *kwnames[] = { | |
23279 | (char *) "self", NULL | |
23280 | }; | |
23281 | ||
23282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
23283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23284 | { | |
23285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23286 | delete arg1; | |
23287 | ||
23288 | wxPyEndAllowThreads(__tstate); | |
23289 | if (PyErr_Occurred()) SWIG_fail; | |
23290 | } | |
23291 | Py_INCREF(Py_None); resultobj = Py_None; | |
23292 | return resultobj; | |
23293 | fail: | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
23298 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23299 | PyObject *resultobj; | |
23300 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23301 | wxDataObject *arg2 = 0 ; | |
23302 | PyObject * obj0 = 0 ; | |
23303 | PyObject * obj1 = 0 ; | |
23304 | char *kwnames[] = { | |
23305 | (char *) "self",(char *) "data", NULL | |
23306 | }; | |
23307 | ||
23308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23310 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23311 | if (arg2 == NULL) { | |
23312 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23313 | } | |
23314 | { | |
23315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23316 | (arg1)->SetData(*arg2); | |
23317 | ||
23318 | wxPyEndAllowThreads(__tstate); | |
23319 | if (PyErr_Occurred()) SWIG_fail; | |
23320 | } | |
23321 | Py_INCREF(Py_None); resultobj = Py_None; | |
23322 | return resultobj; | |
23323 | fail: | |
23324 | return NULL; | |
23325 | } | |
23326 | ||
23327 | ||
23328 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23329 | PyObject *resultobj; | |
23330 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23331 | wxDataObject *result; | |
23332 | PyObject * obj0 = 0 ; | |
23333 | char *kwnames[] = { | |
23334 | (char *) "self", NULL | |
23335 | }; | |
23336 | ||
23337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
23338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23339 | { | |
23340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23341 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23342 | ||
23343 | wxPyEndAllowThreads(__tstate); | |
23344 | if (PyErr_Occurred()) SWIG_fail; | |
23345 | } | |
23346 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23347 | return resultobj; | |
23348 | fail: | |
23349 | return NULL; | |
23350 | } | |
23351 | ||
23352 | ||
23353 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23354 | PyObject *resultobj; | |
23355 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23356 | int arg2 ; | |
23357 | wxCursor *arg3 = 0 ; | |
23358 | PyObject * obj0 = 0 ; | |
23359 | PyObject * obj2 = 0 ; | |
23360 | char *kwnames[] = { | |
23361 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
23362 | }; | |
23363 | ||
23364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:DropSource_SetCursor",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
23365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23366 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23367 | if (arg3 == NULL) { | |
23368 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23369 | } | |
23370 | { | |
23371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23372 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
23373 | ||
23374 | wxPyEndAllowThreads(__tstate); | |
23375 | if (PyErr_Occurred()) SWIG_fail; | |
23376 | } | |
23377 | Py_INCREF(Py_None); resultobj = Py_None; | |
23378 | return resultobj; | |
23379 | fail: | |
23380 | return NULL; | |
23381 | } | |
23382 | ||
23383 | ||
23384 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23385 | PyObject *resultobj; | |
23386 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23387 | int arg2 = (int) wxDrag_CopyOnly ; | |
23388 | int result; | |
23389 | PyObject * obj0 = 0 ; | |
23390 | char *kwnames[] = { | |
23391 | (char *) "self",(char *) "flags", NULL | |
23392 | }; | |
23393 | ||
23394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DropSource_DoDragDrop",kwnames,&obj0,&arg2)) goto fail; | |
23395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23396 | { | |
23397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23398 | result = (int)(arg1)->DoDragDrop(arg2); | |
23399 | ||
23400 | wxPyEndAllowThreads(__tstate); | |
23401 | if (PyErr_Occurred()) SWIG_fail; | |
23402 | } | |
23403 | resultobj = PyInt_FromLong((long)result); | |
23404 | return resultobj; | |
23405 | fail: | |
23406 | return NULL; | |
23407 | } | |
23408 | ||
23409 | ||
23410 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23411 | PyObject *resultobj; | |
23412 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23413 | int arg2 ; | |
23414 | bool result; | |
23415 | PyObject * obj0 = 0 ; | |
23416 | char *kwnames[] = { | |
23417 | (char *) "self",(char *) "effect", NULL | |
23418 | }; | |
23419 | ||
23420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DropSource_base_GiveFeedback",kwnames,&obj0,&arg2)) goto fail; | |
23421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23422 | { | |
23423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23424 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
23425 | ||
23426 | wxPyEndAllowThreads(__tstate); | |
23427 | if (PyErr_Occurred()) SWIG_fail; | |
23428 | } | |
23429 | resultobj = PyInt_FromLong((long)result); | |
23430 | return resultobj; | |
23431 | fail: | |
23432 | return NULL; | |
23433 | } | |
23434 | ||
23435 | ||
23436 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
23437 | PyObject *obj; | |
23438 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23439 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
23440 | Py_INCREF(obj); | |
23441 | return Py_BuildValue((char *)""); | |
23442 | } | |
23443 | static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23444 | PyObject *resultobj; | |
23445 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
23446 | wxPyDropTarget *result; | |
23447 | PyObject * obj0 = 0 ; | |
23448 | char *kwnames[] = { | |
23449 | (char *) "dataObject", NULL | |
23450 | }; | |
23451 | ||
23452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail; | |
23453 | if (obj0) { | |
23454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23455 | } | |
23456 | { | |
23457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23458 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
23459 | ||
23460 | wxPyEndAllowThreads(__tstate); | |
23461 | if (PyErr_Occurred()) SWIG_fail; | |
23462 | } | |
23463 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
23464 | return resultobj; | |
23465 | fail: | |
23466 | return NULL; | |
23467 | } | |
23468 | ||
23469 | ||
23470 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23471 | PyObject *resultobj; | |
23472 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23473 | PyObject *arg2 = (PyObject *) 0 ; | |
23474 | PyObject *arg3 = (PyObject *) 0 ; | |
23475 | PyObject * obj0 = 0 ; | |
23476 | PyObject * obj1 = 0 ; | |
23477 | PyObject * obj2 = 0 ; | |
23478 | char *kwnames[] = { | |
23479 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23480 | }; | |
23481 | ||
23482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23484 | arg2 = obj1; | |
23485 | arg3 = obj2; | |
23486 | { | |
23487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23488 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23489 | ||
23490 | wxPyEndAllowThreads(__tstate); | |
23491 | if (PyErr_Occurred()) SWIG_fail; | |
23492 | } | |
23493 | Py_INCREF(Py_None); resultobj = Py_None; | |
23494 | return resultobj; | |
23495 | fail: | |
23496 | return NULL; | |
23497 | } | |
23498 | ||
23499 | ||
23500 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23501 | PyObject *resultobj; | |
23502 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23503 | PyObject * obj0 = 0 ; | |
23504 | char *kwnames[] = { | |
23505 | (char *) "self", NULL | |
23506 | }; | |
23507 | ||
23508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
23509 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23510 | { | |
23511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23512 | delete arg1; | |
23513 | ||
23514 | wxPyEndAllowThreads(__tstate); | |
23515 | if (PyErr_Occurred()) SWIG_fail; | |
23516 | } | |
23517 | Py_INCREF(Py_None); resultobj = Py_None; | |
23518 | return resultobj; | |
23519 | fail: | |
23520 | return NULL; | |
23521 | } | |
23522 | ||
23523 | ||
23524 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23525 | PyObject *resultobj; | |
23526 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23527 | wxDataObject *result; | |
23528 | PyObject * obj0 = 0 ; | |
23529 | char *kwnames[] = { | |
23530 | (char *) "self", NULL | |
23531 | }; | |
23532 | ||
23533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
23534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23543 | return resultobj; | |
23544 | fail: | |
23545 | return NULL; | |
23546 | } | |
23547 | ||
23548 | ||
23549 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23550 | PyObject *resultobj; | |
23551 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23552 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
23553 | PyObject * obj0 = 0 ; | |
23554 | PyObject * obj1 = 0 ; | |
23555 | char *kwnames[] = { | |
23556 | (char *) "self",(char *) "dataObject", NULL | |
23557 | }; | |
23558 | ||
23559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
23560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23561 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23562 | { | |
23563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23564 | (arg1)->SetDataObject(arg2); | |
23565 | ||
23566 | wxPyEndAllowThreads(__tstate); | |
23567 | if (PyErr_Occurred()) SWIG_fail; | |
23568 | } | |
23569 | Py_INCREF(Py_None); resultobj = Py_None; | |
23570 | return resultobj; | |
23571 | fail: | |
23572 | return NULL; | |
23573 | } | |
23574 | ||
23575 | ||
23576 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23577 | PyObject *resultobj; | |
23578 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23579 | int arg2 ; |
23580 | int arg3 ; | |
d14a1e28 RD |
23581 | int arg4 ; |
23582 | int result; | |
23583 | PyObject * obj0 = 0 ; | |
23584 | char *kwnames[] = { | |
23585 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23586 | }; | |
23587 | ||
23588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23590 | { | |
23591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23592 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23593 | ||
23594 | wxPyEndAllowThreads(__tstate); | |
23595 | if (PyErr_Occurred()) SWIG_fail; | |
23596 | } | |
23597 | resultobj = PyInt_FromLong((long)result); | |
23598 | return resultobj; | |
23599 | fail: | |
23600 | return NULL; | |
23601 | } | |
23602 | ||
23603 | ||
23604 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23605 | PyObject *resultobj; | |
23606 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23607 | int arg2 ; |
23608 | int arg3 ; | |
d14a1e28 RD |
23609 | int arg4 ; |
23610 | int result; | |
23611 | PyObject * obj0 = 0 ; | |
23612 | char *kwnames[] = { | |
23613 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23614 | }; | |
23615 | ||
23616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23618 | { | |
23619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23620 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23621 | ||
23622 | wxPyEndAllowThreads(__tstate); | |
23623 | if (PyErr_Occurred()) SWIG_fail; | |
23624 | } | |
23625 | resultobj = PyInt_FromLong((long)result); | |
23626 | return resultobj; | |
23627 | fail: | |
23628 | return NULL; | |
23629 | } | |
23630 | ||
23631 | ||
23632 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23633 | PyObject *resultobj; | |
23634 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23635 | PyObject * obj0 = 0 ; | |
23636 | char *kwnames[] = { | |
23637 | (char *) "self", NULL | |
23638 | }; | |
23639 | ||
23640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23642 | { | |
23643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23644 | (arg1)->base_OnLeave(); | |
23645 | ||
23646 | wxPyEndAllowThreads(__tstate); | |
23647 | if (PyErr_Occurred()) SWIG_fail; | |
23648 | } | |
23649 | Py_INCREF(Py_None); resultobj = Py_None; | |
23650 | return resultobj; | |
23651 | fail: | |
23652 | return NULL; | |
23653 | } | |
23654 | ||
23655 | ||
23656 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23657 | PyObject *resultobj; | |
23658 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23659 | int arg2 ; |
23660 | int arg3 ; | |
d14a1e28 RD |
23661 | bool result; |
23662 | PyObject * obj0 = 0 ; | |
23663 | char *kwnames[] = { | |
23664 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23665 | }; | |
23666 | ||
23667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23669 | { | |
23670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23671 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23672 | ||
23673 | wxPyEndAllowThreads(__tstate); | |
23674 | if (PyErr_Occurred()) SWIG_fail; | |
23675 | } | |
23676 | resultobj = PyInt_FromLong((long)result); | |
23677 | return resultobj; | |
23678 | fail: | |
23679 | return NULL; | |
23680 | } | |
23681 | ||
23682 | ||
23683 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23684 | PyObject *resultobj; | |
23685 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23686 | bool result; | |
23687 | PyObject * obj0 = 0 ; | |
23688 | char *kwnames[] = { | |
23689 | (char *) "self", NULL | |
23690 | }; | |
23691 | ||
23692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
23693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23694 | { | |
23695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23696 | result = (bool)(arg1)->GetData(); | |
23697 | ||
23698 | wxPyEndAllowThreads(__tstate); | |
23699 | if (PyErr_Occurred()) SWIG_fail; | |
23700 | } | |
23701 | resultobj = PyInt_FromLong((long)result); | |
23702 | return resultobj; | |
23703 | fail: | |
23704 | return NULL; | |
23705 | } | |
23706 | ||
23707 | ||
23708 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
23709 | PyObject *obj; | |
23710 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23711 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
23712 | Py_INCREF(obj); | |
23713 | return Py_BuildValue((char *)""); | |
23714 | } | |
23715 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23716 | PyObject *resultobj; | |
23717 | wxPyTextDropTarget *result; | |
23718 | char *kwnames[] = { | |
23719 | NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
23723 | { | |
23724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23725 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
23726 | ||
23727 | wxPyEndAllowThreads(__tstate); | |
23728 | if (PyErr_Occurred()) SWIG_fail; | |
23729 | } | |
23730 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
23731 | return resultobj; | |
23732 | fail: | |
23733 | return NULL; | |
23734 | } | |
23735 | ||
23736 | ||
23737 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23738 | PyObject *resultobj; | |
23739 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23740 | PyObject *arg2 = (PyObject *) 0 ; | |
23741 | PyObject *arg3 = (PyObject *) 0 ; | |
23742 | PyObject * obj0 = 0 ; | |
23743 | PyObject * obj1 = 0 ; | |
23744 | PyObject * obj2 = 0 ; | |
23745 | char *kwnames[] = { | |
23746 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23747 | }; | |
23748 | ||
23749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23751 | arg2 = obj1; | |
23752 | arg3 = obj2; | |
23753 | { | |
23754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23755 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23756 | ||
23757 | wxPyEndAllowThreads(__tstate); | |
23758 | if (PyErr_Occurred()) SWIG_fail; | |
23759 | } | |
23760 | Py_INCREF(Py_None); resultobj = Py_None; | |
23761 | return resultobj; | |
23762 | fail: | |
23763 | return NULL; | |
23764 | } | |
23765 | ||
23766 | ||
23767 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23768 | PyObject *resultobj; | |
23769 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23770 | int arg2 ; |
23771 | int arg3 ; | |
d14a1e28 RD |
23772 | int arg4 ; |
23773 | int result; | |
23774 | PyObject * obj0 = 0 ; | |
23775 | char *kwnames[] = { | |
23776 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23777 | }; | |
23778 | ||
23779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23781 | { | |
23782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23783 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23784 | ||
23785 | wxPyEndAllowThreads(__tstate); | |
23786 | if (PyErr_Occurred()) SWIG_fail; | |
23787 | } | |
23788 | resultobj = PyInt_FromLong((long)result); | |
23789 | return resultobj; | |
23790 | fail: | |
23791 | return NULL; | |
23792 | } | |
23793 | ||
23794 | ||
23795 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23796 | PyObject *resultobj; | |
23797 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23798 | int arg2 ; |
23799 | int arg3 ; | |
d14a1e28 RD |
23800 | int arg4 ; |
23801 | int result; | |
23802 | PyObject * obj0 = 0 ; | |
23803 | char *kwnames[] = { | |
23804 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23805 | }; | |
23806 | ||
23807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23809 | { | |
23810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23811 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23812 | ||
23813 | wxPyEndAllowThreads(__tstate); | |
23814 | if (PyErr_Occurred()) SWIG_fail; | |
23815 | } | |
23816 | resultobj = PyInt_FromLong((long)result); | |
23817 | return resultobj; | |
23818 | fail: | |
23819 | return NULL; | |
23820 | } | |
23821 | ||
23822 | ||
23823 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23824 | PyObject *resultobj; | |
23825 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23826 | PyObject * obj0 = 0 ; | |
23827 | char *kwnames[] = { | |
23828 | (char *) "self", NULL | |
23829 | }; | |
23830 | ||
23831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23833 | { | |
23834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23835 | (arg1)->base_OnLeave(); | |
23836 | ||
23837 | wxPyEndAllowThreads(__tstate); | |
23838 | if (PyErr_Occurred()) SWIG_fail; | |
23839 | } | |
23840 | Py_INCREF(Py_None); resultobj = Py_None; | |
23841 | return resultobj; | |
23842 | fail: | |
23843 | return NULL; | |
23844 | } | |
23845 | ||
23846 | ||
23847 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23848 | PyObject *resultobj; | |
23849 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23850 | int arg2 ; |
23851 | int arg3 ; | |
d14a1e28 RD |
23852 | bool result; |
23853 | PyObject * obj0 = 0 ; | |
23854 | char *kwnames[] = { | |
23855 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23856 | }; | |
23857 | ||
23858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:TextDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23860 | { | |
23861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23862 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23863 | ||
23864 | wxPyEndAllowThreads(__tstate); | |
23865 | if (PyErr_Occurred()) SWIG_fail; | |
23866 | } | |
23867 | resultobj = PyInt_FromLong((long)result); | |
23868 | return resultobj; | |
23869 | fail: | |
23870 | return NULL; | |
23871 | } | |
23872 | ||
23873 | ||
23874 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23875 | PyObject *resultobj; | |
23876 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23877 | int arg2 ; |
23878 | int arg3 ; | |
d14a1e28 RD |
23879 | int arg4 ; |
23880 | int result; | |
23881 | PyObject * obj0 = 0 ; | |
23882 | char *kwnames[] = { | |
23883 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23884 | }; | |
23885 | ||
23886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23888 | { | |
23889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23890 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
23891 | ||
23892 | wxPyEndAllowThreads(__tstate); | |
23893 | if (PyErr_Occurred()) SWIG_fail; | |
23894 | } | |
23895 | resultobj = PyInt_FromLong((long)result); | |
23896 | return resultobj; | |
23897 | fail: | |
23898 | return NULL; | |
23899 | } | |
23900 | ||
23901 | ||
23902 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
23903 | PyObject *obj; | |
23904 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23905 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
23906 | Py_INCREF(obj); | |
23907 | return Py_BuildValue((char *)""); | |
23908 | } | |
23909 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23910 | PyObject *resultobj; | |
23911 | wxPyFileDropTarget *result; | |
23912 | char *kwnames[] = { | |
23913 | NULL | |
23914 | }; | |
23915 | ||
23916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
23917 | { | |
23918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23919 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
23920 | ||
23921 | wxPyEndAllowThreads(__tstate); | |
23922 | if (PyErr_Occurred()) SWIG_fail; | |
23923 | } | |
23924 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
23925 | return resultobj; | |
23926 | fail: | |
23927 | return NULL; | |
23928 | } | |
23929 | ||
23930 | ||
23931 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23932 | PyObject *resultobj; | |
23933 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
23934 | PyObject *arg2 = (PyObject *) 0 ; | |
23935 | PyObject *arg3 = (PyObject *) 0 ; | |
23936 | PyObject * obj0 = 0 ; | |
23937 | PyObject * obj1 = 0 ; | |
23938 | PyObject * obj2 = 0 ; | |
23939 | char *kwnames[] = { | |
23940 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23941 | }; | |
23942 | ||
23943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23945 | arg2 = obj1; | |
23946 | arg3 = obj2; | |
23947 | { | |
23948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23949 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23950 | ||
23951 | wxPyEndAllowThreads(__tstate); | |
23952 | if (PyErr_Occurred()) SWIG_fail; | |
23953 | } | |
23954 | Py_INCREF(Py_None); resultobj = Py_None; | |
23955 | return resultobj; | |
23956 | fail: | |
23957 | return NULL; | |
23958 | } | |
23959 | ||
23960 | ||
23961 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23962 | PyObject *resultobj; | |
23963 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
23964 | int arg2 ; |
23965 | int arg3 ; | |
d14a1e28 RD |
23966 | int arg4 ; |
23967 | int result; | |
23968 | PyObject * obj0 = 0 ; | |
23969 | char *kwnames[] = { | |
23970 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23971 | }; | |
23972 | ||
23973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23975 | { | |
23976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23977 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23978 | ||
23979 | wxPyEndAllowThreads(__tstate); | |
23980 | if (PyErr_Occurred()) SWIG_fail; | |
23981 | } | |
23982 | resultobj = PyInt_FromLong((long)result); | |
23983 | return resultobj; | |
23984 | fail: | |
23985 | return NULL; | |
23986 | } | |
23987 | ||
23988 | ||
23989 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23990 | PyObject *resultobj; | |
23991 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
23992 | int arg2 ; |
23993 | int arg3 ; | |
d14a1e28 RD |
23994 | int arg4 ; |
23995 | int result; | |
23996 | PyObject * obj0 = 0 ; | |
23997 | char *kwnames[] = { | |
23998 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23999 | }; | |
24000 | ||
24001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24003 | { | |
24004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24005 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
24006 | ||
24007 | wxPyEndAllowThreads(__tstate); | |
24008 | if (PyErr_Occurred()) SWIG_fail; | |
24009 | } | |
24010 | resultobj = PyInt_FromLong((long)result); | |
24011 | return resultobj; | |
24012 | fail: | |
24013 | return NULL; | |
24014 | } | |
24015 | ||
24016 | ||
24017 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24018 | PyObject *resultobj; | |
24019 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
24020 | PyObject * obj0 = 0 ; | |
24021 | char *kwnames[] = { | |
24022 | (char *) "self", NULL | |
24023 | }; | |
24024 | ||
24025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
24026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24027 | { | |
24028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24029 | (arg1)->base_OnLeave(); | |
24030 | ||
24031 | wxPyEndAllowThreads(__tstate); | |
24032 | if (PyErr_Occurred()) SWIG_fail; | |
24033 | } | |
24034 | Py_INCREF(Py_None); resultobj = Py_None; | |
24035 | return resultobj; | |
24036 | fail: | |
24037 | return NULL; | |
24038 | } | |
24039 | ||
24040 | ||
24041 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24042 | PyObject *resultobj; | |
24043 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
24044 | int arg2 ; |
24045 | int arg3 ; | |
d14a1e28 RD |
24046 | bool result; |
24047 | PyObject * obj0 = 0 ; | |
24048 | char *kwnames[] = { | |
24049 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24050 | }; | |
24051 | ||
24052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:FileDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24054 | { | |
24055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24056 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
24057 | ||
24058 | wxPyEndAllowThreads(__tstate); | |
24059 | if (PyErr_Occurred()) SWIG_fail; | |
24060 | } | |
24061 | resultobj = PyInt_FromLong((long)result); | |
24062 | return resultobj; | |
24063 | fail: | |
24064 | return NULL; | |
24065 | } | |
24066 | ||
24067 | ||
24068 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24069 | PyObject *resultobj; | |
24070 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
24071 | int arg2 ; |
24072 | int arg3 ; | |
d14a1e28 RD |
24073 | int arg4 ; |
24074 | int result; | |
24075 | PyObject * obj0 = 0 ; | |
24076 | char *kwnames[] = { | |
24077 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24078 | }; | |
24079 | ||
24080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24081 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24082 | { | |
24083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24084 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
24085 | ||
24086 | wxPyEndAllowThreads(__tstate); | |
24087 | if (PyErr_Occurred()) SWIG_fail; | |
24088 | } | |
24089 | resultobj = PyInt_FromLong((long)result); | |
24090 | return resultobj; | |
24091 | fail: | |
24092 | return NULL; | |
24093 | } | |
24094 | ||
24095 | ||
24096 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
24097 | PyObject *obj; | |
24098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24099 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
24100 | Py_INCREF(obj); | |
24101 | return Py_BuildValue((char *)""); | |
24102 | } | |
24103 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24104 | PyObject *resultobj; | |
24105 | wxClipboard *result; | |
24106 | char *kwnames[] = { | |
24107 | NULL | |
24108 | }; | |
24109 | ||
24110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
24111 | { | |
24112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24113 | result = (wxClipboard *)new wxClipboard(); | |
24114 | ||
24115 | wxPyEndAllowThreads(__tstate); | |
24116 | if (PyErr_Occurred()) SWIG_fail; | |
24117 | } | |
24118 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
24119 | return resultobj; | |
24120 | fail: | |
24121 | return NULL; | |
24122 | } | |
24123 | ||
24124 | ||
24125 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24126 | PyObject *resultobj; | |
24127 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24128 | PyObject * obj0 = 0 ; | |
24129 | char *kwnames[] = { | |
24130 | (char *) "self", NULL | |
24131 | }; | |
24132 | ||
24133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
24134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24135 | { | |
24136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24137 | delete arg1; | |
24138 | ||
24139 | wxPyEndAllowThreads(__tstate); | |
24140 | if (PyErr_Occurred()) SWIG_fail; | |
24141 | } | |
24142 | Py_INCREF(Py_None); resultobj = Py_None; | |
24143 | return resultobj; | |
24144 | fail: | |
24145 | return NULL; | |
24146 | } | |
24147 | ||
24148 | ||
24149 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24150 | PyObject *resultobj; | |
24151 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24152 | bool result; | |
24153 | PyObject * obj0 = 0 ; | |
24154 | char *kwnames[] = { | |
24155 | (char *) "self", NULL | |
24156 | }; | |
24157 | ||
24158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
24159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24160 | { | |
24161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24162 | result = (bool)(arg1)->Open(); | |
24163 | ||
24164 | wxPyEndAllowThreads(__tstate); | |
24165 | if (PyErr_Occurred()) SWIG_fail; | |
24166 | } | |
24167 | resultobj = PyInt_FromLong((long)result); | |
24168 | return resultobj; | |
24169 | fail: | |
24170 | return NULL; | |
24171 | } | |
24172 | ||
24173 | ||
24174 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24175 | PyObject *resultobj; | |
24176 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24177 | PyObject * obj0 = 0 ; | |
24178 | char *kwnames[] = { | |
24179 | (char *) "self", NULL | |
24180 | }; | |
24181 | ||
24182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
24183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24184 | { | |
24185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24186 | (arg1)->Close(); | |
24187 | ||
24188 | wxPyEndAllowThreads(__tstate); | |
24189 | if (PyErr_Occurred()) SWIG_fail; | |
24190 | } | |
24191 | Py_INCREF(Py_None); resultobj = Py_None; | |
24192 | return resultobj; | |
24193 | fail: | |
24194 | return NULL; | |
24195 | } | |
24196 | ||
24197 | ||
24198 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24199 | PyObject *resultobj; | |
24200 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24201 | bool result; | |
24202 | PyObject * obj0 = 0 ; | |
24203 | char *kwnames[] = { | |
24204 | (char *) "self", NULL | |
24205 | }; | |
24206 | ||
24207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
24208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24209 | { | |
24210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24211 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
24212 | ||
24213 | wxPyEndAllowThreads(__tstate); | |
24214 | if (PyErr_Occurred()) SWIG_fail; | |
24215 | } | |
24216 | resultobj = PyInt_FromLong((long)result); | |
24217 | return resultobj; | |
24218 | fail: | |
24219 | return NULL; | |
24220 | } | |
24221 | ||
24222 | ||
24223 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24224 | PyObject *resultobj; | |
24225 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24226 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24227 | bool result; | |
24228 | PyObject * obj0 = 0 ; | |
24229 | PyObject * obj1 = 0 ; | |
24230 | char *kwnames[] = { | |
24231 | (char *) "self",(char *) "data", NULL | |
24232 | }; | |
24233 | ||
24234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
24235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24236 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24237 | { | |
24238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24239 | result = (bool)(arg1)->AddData(arg2); | |
24240 | ||
24241 | wxPyEndAllowThreads(__tstate); | |
24242 | if (PyErr_Occurred()) SWIG_fail; | |
24243 | } | |
24244 | resultobj = PyInt_FromLong((long)result); | |
24245 | return resultobj; | |
24246 | fail: | |
24247 | return NULL; | |
24248 | } | |
24249 | ||
24250 | ||
24251 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24252 | PyObject *resultobj; | |
24253 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24254 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24255 | bool result; | |
24256 | PyObject * obj0 = 0 ; | |
24257 | PyObject * obj1 = 0 ; | |
24258 | char *kwnames[] = { | |
24259 | (char *) "self",(char *) "data", NULL | |
24260 | }; | |
24261 | ||
24262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24264 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24265 | { | |
24266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24267 | result = (bool)(arg1)->SetData(arg2); | |
24268 | ||
24269 | wxPyEndAllowThreads(__tstate); | |
24270 | if (PyErr_Occurred()) SWIG_fail; | |
24271 | } | |
24272 | resultobj = PyInt_FromLong((long)result); | |
24273 | return resultobj; | |
24274 | fail: | |
24275 | return NULL; | |
24276 | } | |
24277 | ||
24278 | ||
24279 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24280 | PyObject *resultobj; | |
24281 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24282 | wxDataFormat *arg2 = 0 ; | |
24283 | bool result; | |
24284 | PyObject * obj0 = 0 ; | |
24285 | PyObject * obj1 = 0 ; | |
24286 | char *kwnames[] = { | |
24287 | (char *) "self",(char *) "format", NULL | |
24288 | }; | |
24289 | ||
24290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
24291 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24292 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24293 | if (arg2 == NULL) { | |
24294 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24295 | } | |
24296 | { | |
24297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24298 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
24299 | ||
24300 | wxPyEndAllowThreads(__tstate); | |
24301 | if (PyErr_Occurred()) SWIG_fail; | |
24302 | } | |
24303 | resultobj = PyInt_FromLong((long)result); | |
24304 | return resultobj; | |
24305 | fail: | |
24306 | return NULL; | |
24307 | } | |
24308 | ||
24309 | ||
24310 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24311 | PyObject *resultobj; | |
24312 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24313 | wxDataObject *arg2 = 0 ; | |
24314 | bool result; | |
24315 | PyObject * obj0 = 0 ; | |
24316 | PyObject * obj1 = 0 ; | |
24317 | char *kwnames[] = { | |
24318 | (char *) "self",(char *) "data", NULL | |
24319 | }; | |
24320 | ||
24321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
24322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24323 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24324 | if (arg2 == NULL) { | |
24325 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24326 | } | |
24327 | { | |
24328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24329 | result = (bool)(arg1)->GetData(*arg2); | |
24330 | ||
24331 | wxPyEndAllowThreads(__tstate); | |
24332 | if (PyErr_Occurred()) SWIG_fail; | |
24333 | } | |
24334 | resultobj = PyInt_FromLong((long)result); | |
24335 | return resultobj; | |
24336 | fail: | |
24337 | return NULL; | |
24338 | } | |
24339 | ||
24340 | ||
24341 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24342 | PyObject *resultobj; | |
24343 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24344 | PyObject * obj0 = 0 ; | |
24345 | char *kwnames[] = { | |
24346 | (char *) "self", NULL | |
24347 | }; | |
24348 | ||
24349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
24350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24351 | { | |
24352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24353 | (arg1)->Clear(); | |
24354 | ||
24355 | wxPyEndAllowThreads(__tstate); | |
24356 | if (PyErr_Occurred()) SWIG_fail; | |
24357 | } | |
24358 | Py_INCREF(Py_None); resultobj = Py_None; | |
24359 | return resultobj; | |
24360 | fail: | |
24361 | return NULL; | |
24362 | } | |
24363 | ||
24364 | ||
24365 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24366 | PyObject *resultobj; | |
24367 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24368 | bool result; | |
24369 | PyObject * obj0 = 0 ; | |
24370 | char *kwnames[] = { | |
24371 | (char *) "self", NULL | |
24372 | }; | |
24373 | ||
24374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
24375 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24376 | { | |
24377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24378 | result = (bool)(arg1)->Flush(); | |
24379 | ||
24380 | wxPyEndAllowThreads(__tstate); | |
24381 | if (PyErr_Occurred()) SWIG_fail; | |
24382 | } | |
24383 | resultobj = PyInt_FromLong((long)result); | |
24384 | return resultobj; | |
24385 | fail: | |
24386 | return NULL; | |
24387 | } | |
24388 | ||
24389 | ||
24390 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24391 | PyObject *resultobj; | |
24392 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
423f194a | 24393 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24394 | PyObject * obj0 = 0 ; |
24395 | PyObject * obj1 = 0 ; | |
24396 | char *kwnames[] = { | |
24397 | (char *) "self",(char *) "primary", NULL | |
24398 | }; | |
24399 | ||
24400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
24401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24402 | if (obj1) { | |
24403 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24404 | if (PyErr_Occurred()) SWIG_fail; | |
24405 | } | |
24406 | { | |
24407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24408 | (arg1)->UsePrimarySelection(arg2); | |
24409 | ||
24410 | wxPyEndAllowThreads(__tstate); | |
24411 | if (PyErr_Occurred()) SWIG_fail; | |
24412 | } | |
24413 | Py_INCREF(Py_None); resultobj = Py_None; | |
24414 | return resultobj; | |
24415 | fail: | |
24416 | return NULL; | |
24417 | } | |
24418 | ||
24419 | ||
24420 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
24421 | PyObject *obj; | |
24422 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24423 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
24424 | Py_INCREF(obj); | |
24425 | return Py_BuildValue((char *)""); | |
24426 | } | |
24427 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
24428 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
24429 | return 1; | |
24430 | } | |
24431 | ||
24432 | ||
24433 | static PyObject *_wrap_TheClipboard_get() { | |
24434 | PyObject *pyobj; | |
24435 | ||
24436 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
24437 | return pyobj; | |
24438 | } | |
24439 | ||
24440 | ||
24441 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24442 | PyObject *resultobj; | |
24443 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
24444 | wxClipboardLocker *result; | |
24445 | PyObject * obj0 = 0 ; | |
24446 | char *kwnames[] = { | |
24447 | (char *) "clipboard", NULL | |
24448 | }; | |
24449 | ||
24450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24451 | if (obj0) { | |
24452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24453 | } | |
24454 | { | |
24455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24456 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
24457 | ||
24458 | wxPyEndAllowThreads(__tstate); | |
24459 | if (PyErr_Occurred()) SWIG_fail; | |
24460 | } | |
24461 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
24462 | return resultobj; | |
24463 | fail: | |
24464 | return NULL; | |
24465 | } | |
24466 | ||
24467 | ||
24468 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24469 | PyObject *resultobj; | |
24470 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24471 | PyObject * obj0 = 0 ; | |
24472 | char *kwnames[] = { | |
24473 | (char *) "self", NULL | |
24474 | }; | |
24475 | ||
24476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24478 | { | |
24479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24480 | delete arg1; | |
24481 | ||
24482 | wxPyEndAllowThreads(__tstate); | |
24483 | if (PyErr_Occurred()) SWIG_fail; | |
24484 | } | |
24485 | Py_INCREF(Py_None); resultobj = Py_None; | |
24486 | return resultobj; | |
24487 | fail: | |
24488 | return NULL; | |
24489 | } | |
24490 | ||
24491 | ||
24492 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24493 | PyObject *resultobj; | |
24494 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24495 | bool result; | |
24496 | PyObject * obj0 = 0 ; | |
24497 | char *kwnames[] = { | |
24498 | (char *) "self", NULL | |
24499 | }; | |
24500 | ||
24501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
24502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24503 | { | |
24504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24505 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
24506 | ||
24507 | wxPyEndAllowThreads(__tstate); | |
24508 | if (PyErr_Occurred()) SWIG_fail; | |
24509 | } | |
24510 | resultobj = PyInt_FromLong((long)result); | |
24511 | return resultobj; | |
24512 | fail: | |
24513 | return NULL; | |
24514 | } | |
24515 | ||
24516 | ||
24517 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
24518 | PyObject *obj; | |
24519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24520 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
24521 | Py_INCREF(obj); | |
24522 | return Py_BuildValue((char *)""); | |
24523 | } | |
24524 | static PyMethodDef SwigMethods[] = { | |
24525 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24526 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
24527 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
24528 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
24529 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24530 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24531 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
24532 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
24533 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
24534 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24535 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
24536 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24537 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
24538 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
24539 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
24540 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
24541 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
24542 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
24543 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24544 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
24545 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
24546 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
24547 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
24548 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
24549 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
24550 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
24551 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
24552 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
24553 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
24554 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
24555 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
24556 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
24557 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
24558 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
24559 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
24560 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
24561 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
24562 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
24563 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
24564 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
24565 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
24566 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
24567 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24568 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24569 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24570 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
24571 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24572 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24573 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
24574 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
24575 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
24576 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24577 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
24578 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24579 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24580 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24581 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24582 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24583 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24584 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24585 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24586 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
24587 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24588 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24589 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24590 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24591 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
24592 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
24593 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
24594 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
24595 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24596 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24597 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
24598 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
24599 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
24600 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
24601 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24602 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24603 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
24604 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
24605 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
24606 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24607 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24608 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24609 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 24610 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 24611 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 24612 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 24613 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24614 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
24615 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
24616 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
24617 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
24618 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24619 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
24620 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
24621 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
24622 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24623 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24624 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24625 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24626 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
24627 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24628 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24629 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
24630 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24631 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24632 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
24633 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
24634 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
24635 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
24636 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
24639 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24640 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24641 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
24642 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
24643 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
24644 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
24645 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
24647 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
24648 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
24651 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
24653 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24654 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24655 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24656 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
24657 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
24658 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
24659 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
24660 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24661 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
24663 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
24665 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24666 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
24668 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
24669 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24670 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
44127b65 | 24672 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24673 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
24674 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
24675 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
24676 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
24677 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24678 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 24679 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24680 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
24681 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
24682 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
24684 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
24685 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
24688 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
24689 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
24690 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
24691 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
24692 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
24693 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
24694 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24696 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
24697 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24698 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24701 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24702 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24703 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24704 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24707 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24708 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24709 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24710 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24714 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
24715 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
24716 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
24717 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
24719 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
24720 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
24721 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
24722 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
24723 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
24724 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24725 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24726 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
24728 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
24730 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24731 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24732 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24733 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
24734 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
24735 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
24736 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
24737 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
24739 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
24740 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
24742 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24743 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
24744 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 24746 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
24747 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
24748 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
24749 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24750 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24751 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
24752 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
24755 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
24756 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24757 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
24758 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
24762 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
24763 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
24764 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
24765 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
24769 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
24772 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
24774 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
24775 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
24778 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
24780 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
24781 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24782 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24783 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24784 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24786 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24787 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
24789 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
24790 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24791 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24792 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24794 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
24795 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
24796 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
24797 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
24798 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
24799 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
24801 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
24803 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
24807 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
24809 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
24810 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
24811 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
24812 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
24814 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
24815 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
24816 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
24817 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
24818 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
24821 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
24822 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
24824 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
24825 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
24826 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
24827 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
24829 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
24831 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
24832 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
24833 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
24835 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
24837 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24838 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24839 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24840 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24843 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24844 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24846 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
24848 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
24850 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
24853 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
24854 | { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24855 | { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS }, | |
24856 | { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24857 | { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24858 | { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS }, | |
24860 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
24862 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
24864 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24865 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24867 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24869 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24870 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24871 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
24873 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
24874 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
24875 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
24876 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24879 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24880 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24881 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24882 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
24889 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
24890 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
24892 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24900 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
24906 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
24907 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
24908 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
24909 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
24912 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 | 24913 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24914 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
24915 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
24916 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
24917 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
24923 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
24926 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
24929 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
24936 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
24937 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
24939 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
24941 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
24944 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
24945 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
24946 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
24949 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
24950 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24951 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
24952 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
24953 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
24954 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
24955 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
24958 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
24959 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
24962 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
24964 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
24965 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
24966 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
24967 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
24968 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
24969 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
24970 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
24971 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
24972 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
24973 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
24974 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
24975 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
24976 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
24977 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
24978 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
24983 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
24984 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
24986 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
24988 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
24991 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
24993 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
24994 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
24996 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
24997 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
24998 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
24999 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
25000 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25002 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25006 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
25008 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25010 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25011 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25014 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25016 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
25017 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
25018 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
25020 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
25021 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
25022 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
25023 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
25024 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
25025 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
25026 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
25027 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
25028 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
25029 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
25030 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
25031 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
25032 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
25033 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
25034 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
25035 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
25037 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25038 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25040 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25041 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25042 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25044 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
25045 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
25046 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
25049 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
25053 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
25056 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
25060 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
25061 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
25062 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
25063 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
25064 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
25065 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
25066 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
25067 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
25068 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
25069 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
25070 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
25072 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
25073 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
25074 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
25075 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
25076 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
25078 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
25080 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
25081 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
25082 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
25083 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
25084 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
25085 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25089 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25091 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25095 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
25116 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
25123 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
25124 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
25125 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25126 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25128 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25130 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25131 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
25132 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
25133 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25143 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25149 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25150 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25153 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25155 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25156 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25157 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25158 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
25159 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
25160 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
25161 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
25162 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25164 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
25167 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
25168 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
25171 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
25172 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
25173 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
25174 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
25175 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
25178 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
25179 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
25180 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
25182 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
25186 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25187 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25188 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
25189 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
25192 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
25195 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
25196 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
25197 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25198 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
25200 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
25204 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
25207 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25209 | { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
25211 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
25213 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
25217 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
25221 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25222 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
25225 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25229 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25230 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25231 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
25234 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
25235 | { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25236 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25237 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25238 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25242 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25243 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25244 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25245 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
25246 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25247 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25248 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25249 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25250 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25251 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25252 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25253 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
25254 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25255 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25256 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25257 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25258 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25259 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25260 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25261 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
25262 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25263 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25264 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
25265 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
25266 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
25267 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
25268 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25269 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25270 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25271 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25272 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25273 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
25274 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
25275 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25276 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25277 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
25278 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
25279 | { NULL, NULL } | |
25280 | }; | |
25281 | ||
25282 | ||
25283 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25284 | ||
25285 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25286 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25287 | } | |
25288 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25289 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25290 | } | |
25291 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25292 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25293 | } | |
25294 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25295 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25296 | } | |
25297 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25298 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25299 | } | |
25300 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25301 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25302 | } | |
25303 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
25304 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
25305 | } | |
25306 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25307 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25308 | } | |
25309 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25310 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25311 | } | |
25312 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25313 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25314 | } | |
25315 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25316 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25317 | } | |
25318 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
25319 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
25320 | } | |
25321 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25322 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25323 | } | |
25324 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25325 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25326 | } | |
25327 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25328 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25329 | } | |
25330 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25331 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25332 | } | |
25333 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25334 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25335 | } | |
25336 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25337 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25338 | } | |
25339 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25340 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25341 | } | |
25342 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25343 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25344 | } | |
25345 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25346 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25347 | } | |
25348 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25349 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25350 | } | |
25351 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25352 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25353 | } | |
25354 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25355 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25356 | } | |
25357 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25358 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25359 | } | |
25360 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25361 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25362 | } | |
25363 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25364 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25365 | } | |
25366 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25367 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25368 | } | |
25369 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25370 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25371 | } | |
25372 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25373 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25374 | } | |
25375 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
25376 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
25377 | } | |
25378 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25379 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25380 | } | |
25381 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25382 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25383 | } | |
25384 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25385 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25386 | } | |
25387 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25388 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25389 | } | |
25390 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25391 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25392 | } | |
25393 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25394 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25395 | } | |
25396 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25397 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25398 | } | |
25399 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
25400 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
25401 | } | |
25402 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
25403 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
25404 | } | |
25405 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
25406 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25407 | } | |
25408 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
25409 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25410 | } | |
25411 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25412 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
25413 | } | |
25414 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25415 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25416 | } | |
25417 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
25418 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
25419 | } | |
25420 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
25421 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25422 | } | |
25423 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
25424 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25425 | } | |
25426 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25427 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25428 | } | |
25429 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25430 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25431 | } | |
25432 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
25433 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25434 | } | |
25435 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
25436 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25437 | } | |
25438 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
25439 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25440 | } | |
25441 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
25442 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25443 | } | |
25444 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
25445 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25446 | } | |
25447 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
25448 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25449 | } | |
25450 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25451 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25452 | } | |
25453 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25454 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25455 | } | |
25456 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25457 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25458 | } | |
25459 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25460 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25461 | } | |
25462 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25463 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25464 | } | |
25465 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25466 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25467 | } | |
25468 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25469 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25470 | } | |
25471 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25472 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25473 | } | |
25474 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25475 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25476 | } | |
25477 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25478 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25479 | } | |
25480 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25481 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25482 | } | |
25483 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
25484 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
25485 | } | |
25486 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25487 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25488 | } | |
25489 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25490 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25491 | } | |
25492 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25493 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25494 | } | |
25495 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25496 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25497 | } | |
25498 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
25499 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
25500 | } | |
25501 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
25502 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
25503 | } | |
25504 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25505 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25506 | } | |
25507 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25508 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25509 | } | |
25510 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25511 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25512 | } | |
25513 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25515 | } | |
25516 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25517 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25518 | } | |
25519 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25520 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25521 | } | |
25522 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25523 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25524 | } | |
25525 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25526 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25527 | } | |
25528 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25529 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25530 | } | |
25531 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
25532 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
25533 | } | |
25534 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25535 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25536 | } | |
25537 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25538 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25539 | } | |
25540 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25541 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25542 | } | |
25543 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25544 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25545 | } | |
25546 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25547 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25548 | } | |
25549 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25550 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25551 | } | |
25552 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25553 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25554 | } | |
25555 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25556 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25557 | } | |
25558 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25559 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25560 | } | |
25561 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25562 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25563 | } | |
25564 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25565 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25566 | } | |
25567 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25568 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25569 | } | |
25570 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25571 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25572 | } | |
25573 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
25574 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
25575 | } | |
25576 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25577 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25578 | } | |
25579 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
25580 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
25581 | } | |
25582 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25583 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25584 | } | |
25585 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25586 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25587 | } | |
25588 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25589 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25590 | } | |
25591 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25592 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25593 | } | |
25594 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
25595 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
25596 | } | |
25597 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25598 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25599 | } | |
25600 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25601 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25602 | } | |
25603 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25604 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25605 | } | |
25606 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25607 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25608 | } | |
25609 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25610 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25611 | } | |
25612 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25613 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25614 | } | |
25615 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25616 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25617 | } | |
25618 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25619 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25620 | } | |
25621 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25622 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25623 | } | |
25624 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25625 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25626 | } | |
25627 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25628 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25629 | } | |
25630 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25631 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25632 | } | |
25633 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25634 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25635 | } | |
25636 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25637 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25638 | } | |
25639 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25640 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25641 | } | |
25642 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25643 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25644 | } | |
25645 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25646 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25647 | } | |
25648 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25649 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25650 | } | |
25651 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25652 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25653 | } | |
25654 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25655 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25656 | } | |
25657 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25658 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25659 | } | |
25660 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25661 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25662 | } | |
41f1cec7 RD |
25663 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
25664 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
25665 | } | |
d14a1e28 RD |
25666 | static void *_p_wxImageTo_p_wxObject(void *x) { |
25667 | return (void *)((wxObject *) ((wxImage *) x)); | |
25668 | } | |
25669 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25670 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25671 | } | |
25672 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
25673 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
25674 | } | |
25675 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
25676 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
25677 | } | |
25678 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25679 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25680 | } | |
25681 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25682 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25683 | } | |
25684 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25685 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25686 | } | |
25687 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25688 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25689 | } | |
25690 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25691 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25692 | } | |
25693 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25694 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25695 | } | |
25696 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
25697 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
25698 | } | |
25699 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25700 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25701 | } | |
25702 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25703 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25704 | } | |
25705 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25706 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25707 | } | |
25708 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25709 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25710 | } | |
25711 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25712 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25713 | } | |
25714 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25715 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25716 | } | |
25717 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25718 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25719 | } | |
25720 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
25721 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
25722 | } | |
25723 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25724 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25725 | } | |
25726 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25727 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25728 | } | |
25729 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
25730 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
25731 | } | |
25732 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
25733 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
25734 | } | |
25735 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
25736 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25737 | } | |
25738 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
25739 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
25740 | } | |
25741 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
25742 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25743 | } | |
25744 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
25745 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
25746 | } | |
25747 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
25748 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
25749 | } | |
25750 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
25751 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
25752 | } | |
25753 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
25754 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
25755 | } | |
25756 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
25757 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
25758 | } | |
25759 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
25760 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
25761 | } | |
25762 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
25763 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
25764 | } | |
25765 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
25766 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
25767 | } | |
25768 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
25769 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
25770 | } | |
25771 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
25772 | return (void *)((wxWindow *) ((wxControl *) x)); | |
25773 | } | |
25774 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
25775 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
25776 | } | |
25777 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
25778 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
25779 | } | |
25780 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
25781 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
25782 | } | |
25783 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
25784 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
25785 | } | |
25786 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
25787 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
25788 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0},{"_p_wxMetafile"},{0}}; | |
25789 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
25790 | 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}}; | |
25791 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
25792 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
25793 | 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}}; | |
25794 | 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}}; | |
25795 | static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}}; | |
25796 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; | |
25797 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
25798 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
25799 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
25800 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
25801 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
25802 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
25803 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
25804 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
25805 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
25806 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
25807 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
25808 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
25809 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
25810 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
25811 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
25812 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
25813 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; | |
25814 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; | |
25815 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; | |
25816 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
25817 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
25818 | 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}}; | |
25819 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; | |
25820 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
25821 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
25822 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; | |
25823 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
25824 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
25825 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
25826 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
25827 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
25828 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
25829 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
25830 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
25831 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
25832 | 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}}; | |
25833 | 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}}; | |
25834 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
25835 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; | |
25836 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
25837 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
25838 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
25839 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
25840 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
25841 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
25842 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
25843 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
25844 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
25845 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
25846 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
25847 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
41f1cec7 | 25848 | 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_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject},{0}}; |
d14a1e28 RD |
25849 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; |
25850 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
25851 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
25852 | 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}}; | |
25853 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
25854 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
25855 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
25856 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
25857 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
25858 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
25859 | 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}}; | |
25860 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
25861 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
25862 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
25863 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
25864 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
25865 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
25866 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; | |
25867 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
25868 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
25869 | ||
25870 | static swig_type_info *swig_types_initial[] = { | |
25871 | _swigt__p_wxLogChain, | |
25872 | _swigt__p_wxMutexGuiLocker, | |
25873 | _swigt__p_wxMetafile, | |
25874 | _swigt__p_wxFileHistory, | |
25875 | _swigt__p_wxLog, | |
25876 | _swigt__p_wxDateTime__TimeZone, | |
25877 | _swigt__p_wxMenu, | |
25878 | _swigt__p_wxEvent, | |
25879 | _swigt__p_wxConfigBase, | |
25880 | _swigt__p_wxWave, | |
25881 | _swigt__p_wxFileType, | |
25882 | _swigt__p_wxLogGui, | |
25883 | _swigt__p_wxFont, | |
25884 | _swigt__p_wxDataFormat, | |
25885 | _swigt__p_wxTimerEvent, | |
25886 | _swigt__p_wxCaret, | |
25887 | _swigt__p_int, | |
25888 | _swigt__p_wxSize, | |
25889 | _swigt__p_wxClipboard, | |
25890 | _swigt__p_wxStopWatch, | |
25891 | _swigt__p_wxDC, | |
25892 | _swigt__p_wxClipboardLocker, | |
25893 | _swigt__p_wxIcon, | |
25894 | _swigt__p_wxLogStderr, | |
25895 | _swigt__p_wxLogTextCtrl, | |
25896 | _swigt__p_wxTextCtrl, | |
25897 | _swigt__p_wxBusyCursor, | |
25898 | _swigt__p_wxFileDataObject, | |
25899 | _swigt__p_wxPyBitmapDataObject, | |
25900 | _swigt__p_wxPyTextDataObject, | |
25901 | _swigt__p_wxBitmapDataObject, | |
25902 | _swigt__p_wxTextDataObject, | |
25903 | _swigt__p_wxDataObject, | |
25904 | _swigt__p_wxCustomDataObject, | |
25905 | _swigt__p_wxURLDataObject, | |
25906 | _swigt__p_wxMetafileDataObject, | |
25907 | _swigt__p_wxTimerRunner, | |
25908 | _swigt__p_wxLogWindow, | |
25909 | _swigt__p_wxTimeSpan, | |
25910 | _swigt__p_wxArrayString, | |
25911 | _swigt__p_wxWindowDisabler, | |
25912 | _swigt__p_wxToolTip, | |
25913 | _swigt__p_wxDataObjectComposite, | |
25914 | _swigt__p_wxFileConfig, | |
25915 | _swigt__p_wxSystemSettings, | |
25916 | _swigt__p_wxPyDataObjectSimple, | |
25917 | _swigt__p_wxDataObjectSimple, | |
25918 | _swigt__p_wxEvtHandler, | |
25919 | _swigt__p_wxRect, | |
25920 | _swigt__p_wxSingleInstanceChecker, | |
25921 | _swigt__p_wxFileTypeInfo, | |
25922 | _swigt__p_wxFrame, | |
25923 | _swigt__p_wxTimer, | |
25924 | _swigt__p_wxMimeTypesManager, | |
25925 | _swigt__p_wxPyArtProvider, | |
25926 | _swigt__p_wxPyTipProvider, | |
25927 | _swigt__p_wxTipProvider, | |
25928 | _swigt__p_wxJoystick, | |
25929 | _swigt__p_wxSystemOptions, | |
25930 | _swigt__p_wxPoint, | |
25931 | _swigt__p_wxJoystickEvent, | |
25932 | _swigt__p_wxCursor, | |
25933 | _swigt__p_wxObject, | |
25934 | _swigt__p_wxOutputStream, | |
25935 | _swigt__p_wxDateTime, | |
25936 | _swigt__p_wxPyDropSource, | |
25937 | _swigt__p_wxWindow, | |
25938 | _swigt__p_wxString, | |
25939 | _swigt__p_wxPyProcess, | |
25940 | _swigt__p_wxBitmap, | |
25941 | _swigt__p_wxConfig, | |
25942 | _swigt__p_wxChar, | |
25943 | _swigt__p_wxBusyInfo, | |
25944 | _swigt__p_wxPyDropTarget, | |
25945 | _swigt__p_wxPyTextDropTarget, | |
25946 | _swigt__p_wxPyFileDropTarget, | |
25947 | _swigt__p_wxProcessEvent, | |
25948 | _swigt__p_wxPyLog, | |
25949 | _swigt__p_wxLogNull, | |
25950 | _swigt__p_wxColour, | |
25951 | _swigt__p_wxConfigPathChanger, | |
25952 | _swigt__p_wxPyTimer, | |
25953 | _swigt__p_wxDateSpan, | |
25954 | 0 | |
25955 | }; | |
25956 | ||
25957 | ||
25958 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
25959 | ||
25960 | static swig_const_info swig_const_table[] = { | |
25961 | { SWIG_PY_INT, (char *)"SYS_OEM_FIXED_FONT", (long) wxSYS_OEM_FIXED_FONT, 0, 0, 0}, | |
25962 | { SWIG_PY_INT, (char *)"SYS_ANSI_FIXED_FONT", (long) wxSYS_ANSI_FIXED_FONT, 0, 0, 0}, | |
25963 | { SWIG_PY_INT, (char *)"SYS_ANSI_VAR_FONT", (long) wxSYS_ANSI_VAR_FONT, 0, 0, 0}, | |
25964 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FONT", (long) wxSYS_SYSTEM_FONT, 0, 0, 0}, | |
25965 | { SWIG_PY_INT, (char *)"SYS_DEVICE_DEFAULT_FONT", (long) wxSYS_DEVICE_DEFAULT_FONT, 0, 0, 0}, | |
25966 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_PALETTE", (long) wxSYS_DEFAULT_PALETTE, 0, 0, 0}, | |
25967 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FIXED_FONT", (long) wxSYS_SYSTEM_FIXED_FONT, 0, 0, 0}, | |
25968 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_GUI_FONT", (long) wxSYS_DEFAULT_GUI_FONT, 0, 0, 0}, | |
25969 | { SWIG_PY_INT, (char *)"SYS_ICONTITLE_FONT", (long) wxSYS_ICONTITLE_FONT, 0, 0, 0}, | |
25970 | { SWIG_PY_INT, (char *)"SYS_COLOUR_SCROLLBAR", (long) wxSYS_COLOUR_SCROLLBAR, 0, 0, 0}, | |
25971 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BACKGROUND", (long) wxSYS_COLOUR_BACKGROUND, 0, 0, 0}, | |
25972 | { SWIG_PY_INT, (char *)"SYS_COLOUR_DESKTOP", (long) wxSYS_COLOUR_DESKTOP, 0, 0, 0}, | |
25973 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVECAPTION", (long) wxSYS_COLOUR_ACTIVECAPTION, 0, 0, 0}, | |
25974 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTION", (long) wxSYS_COLOUR_INACTIVECAPTION, 0, 0, 0}, | |
25975 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENU", (long) wxSYS_COLOUR_MENU, 0, 0, 0}, | |
25976 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOW", (long) wxSYS_COLOUR_WINDOW, 0, 0, 0}, | |
25977 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWFRAME", (long) wxSYS_COLOUR_WINDOWFRAME, 0, 0, 0}, | |
25978 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUTEXT", (long) wxSYS_COLOUR_MENUTEXT, 0, 0, 0}, | |
25979 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWTEXT", (long) wxSYS_COLOUR_WINDOWTEXT, 0, 0, 0}, | |
25980 | { SWIG_PY_INT, (char *)"SYS_COLOUR_CAPTIONTEXT", (long) wxSYS_COLOUR_CAPTIONTEXT, 0, 0, 0}, | |
25981 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVEBORDER", (long) wxSYS_COLOUR_ACTIVEBORDER, 0, 0, 0}, | |
25982 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVEBORDER", (long) wxSYS_COLOUR_INACTIVEBORDER, 0, 0, 0}, | |
25983 | { SWIG_PY_INT, (char *)"SYS_COLOUR_APPWORKSPACE", (long) wxSYS_COLOUR_APPWORKSPACE, 0, 0, 0}, | |
25984 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHT", (long) wxSYS_COLOUR_HIGHLIGHT, 0, 0, 0}, | |
25985 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHTTEXT", (long) wxSYS_COLOUR_HIGHLIGHTTEXT, 0, 0, 0}, | |
25986 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNFACE", (long) wxSYS_COLOUR_BTNFACE, 0, 0, 0}, | |
25987 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DFACE", (long) wxSYS_COLOUR_3DFACE, 0, 0, 0}, | |
25988 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNSHADOW", (long) wxSYS_COLOUR_BTNSHADOW, 0, 0, 0}, | |
25989 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DSHADOW", (long) wxSYS_COLOUR_3DSHADOW, 0, 0, 0}, | |
25990 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRAYTEXT", (long) wxSYS_COLOUR_GRAYTEXT, 0, 0, 0}, | |
25991 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNTEXT", (long) wxSYS_COLOUR_BTNTEXT, 0, 0, 0}, | |
25992 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTIONTEXT", (long) wxSYS_COLOUR_INACTIVECAPTIONTEXT, 0, 0, 0}, | |
25993 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHIGHLIGHT", (long) wxSYS_COLOUR_BTNHIGHLIGHT, 0, 0, 0}, | |
25994 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHILIGHT", (long) wxSYS_COLOUR_BTNHILIGHT, 0, 0, 0}, | |
25995 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHIGHLIGHT", (long) wxSYS_COLOUR_3DHIGHLIGHT, 0, 0, 0}, | |
25996 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHILIGHT", (long) wxSYS_COLOUR_3DHILIGHT, 0, 0, 0}, | |
25997 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DDKSHADOW", (long) wxSYS_COLOUR_3DDKSHADOW, 0, 0, 0}, | |
25998 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DLIGHT", (long) wxSYS_COLOUR_3DLIGHT, 0, 0, 0}, | |
25999 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOTEXT", (long) wxSYS_COLOUR_INFOTEXT, 0, 0, 0}, | |
26000 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOBK", (long) wxSYS_COLOUR_INFOBK, 0, 0, 0}, | |
26001 | { SWIG_PY_INT, (char *)"SYS_COLOUR_LISTBOX", (long) wxSYS_COLOUR_LISTBOX, 0, 0, 0}, | |
26002 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HOTLIGHT", (long) wxSYS_COLOUR_HOTLIGHT, 0, 0, 0}, | |
26003 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTACTIVECAPTION, 0, 0, 0}, | |
26004 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTINACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION, 0, 0, 0}, | |
26005 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUHILIGHT", (long) wxSYS_COLOUR_MENUHILIGHT, 0, 0, 0}, | |
26006 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUBAR", (long) wxSYS_COLOUR_MENUBAR, 0, 0, 0}, | |
26007 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MAX", (long) wxSYS_COLOUR_MAX, 0, 0, 0}, | |
26008 | { SWIG_PY_INT, (char *)"SYS_MOUSE_BUTTONS", (long) wxSYS_MOUSE_BUTTONS, 0, 0, 0}, | |
26009 | { SWIG_PY_INT, (char *)"SYS_BORDER_X", (long) wxSYS_BORDER_X, 0, 0, 0}, | |
26010 | { SWIG_PY_INT, (char *)"SYS_BORDER_Y", (long) wxSYS_BORDER_Y, 0, 0, 0}, | |
26011 | { SWIG_PY_INT, (char *)"SYS_CURSOR_X", (long) wxSYS_CURSOR_X, 0, 0, 0}, | |
26012 | { SWIG_PY_INT, (char *)"SYS_CURSOR_Y", (long) wxSYS_CURSOR_Y, 0, 0, 0}, | |
26013 | { SWIG_PY_INT, (char *)"SYS_DCLICK_X", (long) wxSYS_DCLICK_X, 0, 0, 0}, | |
26014 | { SWIG_PY_INT, (char *)"SYS_DCLICK_Y", (long) wxSYS_DCLICK_Y, 0, 0, 0}, | |
26015 | { SWIG_PY_INT, (char *)"SYS_DRAG_X", (long) wxSYS_DRAG_X, 0, 0, 0}, | |
26016 | { SWIG_PY_INT, (char *)"SYS_DRAG_Y", (long) wxSYS_DRAG_Y, 0, 0, 0}, | |
26017 | { SWIG_PY_INT, (char *)"SYS_EDGE_X", (long) wxSYS_EDGE_X, 0, 0, 0}, | |
26018 | { SWIG_PY_INT, (char *)"SYS_EDGE_Y", (long) wxSYS_EDGE_Y, 0, 0, 0}, | |
26019 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_X", (long) wxSYS_HSCROLL_ARROW_X, 0, 0, 0}, | |
26020 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_Y", (long) wxSYS_HSCROLL_ARROW_Y, 0, 0, 0}, | |
26021 | { SWIG_PY_INT, (char *)"SYS_HTHUMB_X", (long) wxSYS_HTHUMB_X, 0, 0, 0}, | |
26022 | { SWIG_PY_INT, (char *)"SYS_ICON_X", (long) wxSYS_ICON_X, 0, 0, 0}, | |
26023 | { SWIG_PY_INT, (char *)"SYS_ICON_Y", (long) wxSYS_ICON_Y, 0, 0, 0}, | |
26024 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_X", (long) wxSYS_ICONSPACING_X, 0, 0, 0}, | |
26025 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_Y", (long) wxSYS_ICONSPACING_Y, 0, 0, 0}, | |
26026 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_X", (long) wxSYS_WINDOWMIN_X, 0, 0, 0}, | |
26027 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_Y", (long) wxSYS_WINDOWMIN_Y, 0, 0, 0}, | |
26028 | { SWIG_PY_INT, (char *)"SYS_SCREEN_X", (long) wxSYS_SCREEN_X, 0, 0, 0}, | |
26029 | { SWIG_PY_INT, (char *)"SYS_SCREEN_Y", (long) wxSYS_SCREEN_Y, 0, 0, 0}, | |
26030 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_X", (long) wxSYS_FRAMESIZE_X, 0, 0, 0}, | |
26031 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_Y", (long) wxSYS_FRAMESIZE_Y, 0, 0, 0}, | |
26032 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_X", (long) wxSYS_SMALLICON_X, 0, 0, 0}, | |
26033 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_Y", (long) wxSYS_SMALLICON_Y, 0, 0, 0}, | |
26034 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_Y", (long) wxSYS_HSCROLL_Y, 0, 0, 0}, | |
26035 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_X", (long) wxSYS_VSCROLL_X, 0, 0, 0}, | |
26036 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_X", (long) wxSYS_VSCROLL_ARROW_X, 0, 0, 0}, | |
26037 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_Y", (long) wxSYS_VSCROLL_ARROW_Y, 0, 0, 0}, | |
26038 | { SWIG_PY_INT, (char *)"SYS_VTHUMB_Y", (long) wxSYS_VTHUMB_Y, 0, 0, 0}, | |
26039 | { SWIG_PY_INT, (char *)"SYS_CAPTION_Y", (long) wxSYS_CAPTION_Y, 0, 0, 0}, | |
26040 | { SWIG_PY_INT, (char *)"SYS_MENU_Y", (long) wxSYS_MENU_Y, 0, 0, 0}, | |
26041 | { SWIG_PY_INT, (char *)"SYS_NETWORK_PRESENT", (long) wxSYS_NETWORK_PRESENT, 0, 0, 0}, | |
26042 | { SWIG_PY_INT, (char *)"SYS_PENWINDOWS_PRESENT", (long) wxSYS_PENWINDOWS_PRESENT, 0, 0, 0}, | |
26043 | { SWIG_PY_INT, (char *)"SYS_SHOW_SOUNDS", (long) wxSYS_SHOW_SOUNDS, 0, 0, 0}, | |
26044 | { SWIG_PY_INT, (char *)"SYS_SWAP_BUTTONS", (long) wxSYS_SWAP_BUTTONS, 0, 0, 0}, | |
26045 | { SWIG_PY_INT, (char *)"SYS_CAN_DRAW_FRAME_DECORATIONS", (long) wxSYS_CAN_DRAW_FRAME_DECORATIONS, 0, 0, 0}, | |
26046 | { SWIG_PY_INT, (char *)"SYS_CAN_ICONIZE_FRAME", (long) wxSYS_CAN_ICONIZE_FRAME, 0, 0, 0}, | |
26047 | { SWIG_PY_INT, (char *)"SYS_SCREEN_NONE", (long) wxSYS_SCREEN_NONE, 0, 0, 0}, | |
26048 | { SWIG_PY_INT, (char *)"SYS_SCREEN_TINY", (long) wxSYS_SCREEN_TINY, 0, 0, 0}, | |
26049 | { SWIG_PY_INT, (char *)"SYS_SCREEN_PDA", (long) wxSYS_SCREEN_PDA, 0, 0, 0}, | |
26050 | { SWIG_PY_INT, (char *)"SYS_SCREEN_SMALL", (long) wxSYS_SCREEN_SMALL, 0, 0, 0}, | |
26051 | { SWIG_PY_INT, (char *)"SYS_SCREEN_DESKTOP", (long) wxSYS_SCREEN_DESKTOP, 0, 0, 0}, | |
26052 | { SWIG_PY_INT, (char *)"SHUTDOWN_POWEROFF", (long) wxSHUTDOWN_POWEROFF, 0, 0, 0}, | |
26053 | { SWIG_PY_INT, (char *)"SHUTDOWN_REBOOT", (long) wxSHUTDOWN_REBOOT, 0, 0, 0}, | |
26054 | { SWIG_PY_INT, (char *)"TIMER_CONTINUOUS", (long) wxTIMER_CONTINUOUS, 0, 0, 0}, | |
26055 | { SWIG_PY_INT, (char *)"TIMER_ONE_SHOT", (long) wxTIMER_ONE_SHOT, 0, 0, 0}, | |
26056 | { SWIG_PY_INT, (char *)"wxEVT_TIMER", (long) wxEVT_TIMER, 0, 0, 0}, | |
26057 | { SWIG_PY_INT, (char *)"LOG_FatalError", (long) wxLOG_FatalError, 0, 0, 0}, | |
26058 | { SWIG_PY_INT, (char *)"LOG_Error", (long) wxLOG_Error, 0, 0, 0}, | |
26059 | { SWIG_PY_INT, (char *)"LOG_Warning", (long) wxLOG_Warning, 0, 0, 0}, | |
26060 | { SWIG_PY_INT, (char *)"LOG_Message", (long) wxLOG_Message, 0, 0, 0}, | |
26061 | { SWIG_PY_INT, (char *)"LOG_Status", (long) wxLOG_Status, 0, 0, 0}, | |
26062 | { SWIG_PY_INT, (char *)"LOG_Info", (long) wxLOG_Info, 0, 0, 0}, | |
26063 | { SWIG_PY_INT, (char *)"LOG_Debug", (long) wxLOG_Debug, 0, 0, 0}, | |
26064 | { SWIG_PY_INT, (char *)"LOG_Trace", (long) wxLOG_Trace, 0, 0, 0}, | |
26065 | { SWIG_PY_INT, (char *)"LOG_Progress", (long) wxLOG_Progress, 0, 0, 0}, | |
26066 | { SWIG_PY_INT, (char *)"LOG_User", (long) wxLOG_User, 0, 0, 0}, | |
26067 | { SWIG_PY_INT, (char *)"LOG_Max", (long) wxLOG_Max, 0, 0, 0}, | |
26068 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, | |
26069 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
26070 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
26071 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
26072 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
26073 | { SWIG_PY_INT, (char *)"TraceMemAlloc", (long) 0x0001, 0, 0, 0}, | |
26074 | { SWIG_PY_INT, (char *)"TraceMessages", (long) 0x0002, 0, 0, 0}, | |
26075 | { SWIG_PY_INT, (char *)"TraceResAlloc", (long) 0x0004, 0, 0, 0}, | |
26076 | { SWIG_PY_INT, (char *)"TraceRefCount", (long) 0x0008, 0, 0, 0}, | |
26077 | { SWIG_PY_INT, (char *)"TraceOleCalls", (long) 0x0100, 0, 0, 0}, | |
26078 | { SWIG_PY_INT, (char *)"PROCESS_DEFAULT", (long) wxPROCESS_DEFAULT, 0, 0, 0}, | |
26079 | { SWIG_PY_INT, (char *)"PROCESS_REDIRECT", (long) wxPROCESS_REDIRECT, 0, 0, 0}, | |
26080 | { SWIG_PY_INT, (char *)"KILL_OK", (long) wxKILL_OK, 0, 0, 0}, | |
26081 | { SWIG_PY_INT, (char *)"KILL_BAD_SIGNAL", (long) wxKILL_BAD_SIGNAL, 0, 0, 0}, | |
26082 | { SWIG_PY_INT, (char *)"KILL_ACCESS_DENIED", (long) wxKILL_ACCESS_DENIED, 0, 0, 0}, | |
26083 | { SWIG_PY_INT, (char *)"KILL_NO_PROCESS", (long) wxKILL_NO_PROCESS, 0, 0, 0}, | |
26084 | { SWIG_PY_INT, (char *)"KILL_ERROR", (long) wxKILL_ERROR, 0, 0, 0}, | |
26085 | { SWIG_PY_INT, (char *)"SIGNONE", (long) wxSIGNONE, 0, 0, 0}, | |
26086 | { SWIG_PY_INT, (char *)"SIGHUP", (long) wxSIGHUP, 0, 0, 0}, | |
26087 | { SWIG_PY_INT, (char *)"SIGINT", (long) wxSIGINT, 0, 0, 0}, | |
26088 | { SWIG_PY_INT, (char *)"SIGQUIT", (long) wxSIGQUIT, 0, 0, 0}, | |
26089 | { SWIG_PY_INT, (char *)"SIGILL", (long) wxSIGILL, 0, 0, 0}, | |
26090 | { SWIG_PY_INT, (char *)"SIGTRAP", (long) wxSIGTRAP, 0, 0, 0}, | |
26091 | { SWIG_PY_INT, (char *)"SIGABRT", (long) wxSIGABRT, 0, 0, 0}, | |
26092 | { SWIG_PY_INT, (char *)"SIGIOT", (long) wxSIGIOT, 0, 0, 0}, | |
26093 | { SWIG_PY_INT, (char *)"SIGEMT", (long) wxSIGEMT, 0, 0, 0}, | |
26094 | { SWIG_PY_INT, (char *)"SIGFPE", (long) wxSIGFPE, 0, 0, 0}, | |
26095 | { SWIG_PY_INT, (char *)"SIGKILL", (long) wxSIGKILL, 0, 0, 0}, | |
26096 | { SWIG_PY_INT, (char *)"SIGBUS", (long) wxSIGBUS, 0, 0, 0}, | |
26097 | { SWIG_PY_INT, (char *)"SIGSEGV", (long) wxSIGSEGV, 0, 0, 0}, | |
26098 | { SWIG_PY_INT, (char *)"SIGSYS", (long) wxSIGSYS, 0, 0, 0}, | |
26099 | { SWIG_PY_INT, (char *)"SIGPIPE", (long) wxSIGPIPE, 0, 0, 0}, | |
26100 | { SWIG_PY_INT, (char *)"SIGALRM", (long) wxSIGALRM, 0, 0, 0}, | |
26101 | { SWIG_PY_INT, (char *)"SIGTERM", (long) wxSIGTERM, 0, 0, 0}, | |
26102 | { SWIG_PY_INT, (char *)"wxEVT_END_PROCESS", (long) wxEVT_END_PROCESS, 0, 0, 0}, | |
26103 | { SWIG_PY_INT, (char *)"EXEC_ASYNC", (long) wxEXEC_ASYNC, 0, 0, 0}, | |
26104 | { SWIG_PY_INT, (char *)"EXEC_SYNC", (long) wxEXEC_SYNC, 0, 0, 0}, | |
26105 | { SWIG_PY_INT, (char *)"EXEC_NOHIDE", (long) wxEXEC_NOHIDE, 0, 0, 0}, | |
26106 | { SWIG_PY_INT, (char *)"EXEC_MAKE_GROUP_LEADER", (long) wxEXEC_MAKE_GROUP_LEADER, 0, 0, 0}, | |
26107 | { SWIG_PY_INT, (char *)"JOYSTICK1", (long) wxJOYSTICK1, 0, 0, 0}, | |
26108 | { SWIG_PY_INT, (char *)"JOYSTICK2", (long) wxJOYSTICK2, 0, 0, 0}, | |
26109 | { SWIG_PY_INT, (char *)"JOY_BUTTON_ANY", (long) wxJOY_BUTTON_ANY, 0, 0, 0}, | |
26110 | { SWIG_PY_INT, (char *)"JOY_BUTTON1", (long) wxJOY_BUTTON1, 0, 0, 0}, | |
26111 | { SWIG_PY_INT, (char *)"JOY_BUTTON2", (long) wxJOY_BUTTON2, 0, 0, 0}, | |
26112 | { SWIG_PY_INT, (char *)"JOY_BUTTON3", (long) wxJOY_BUTTON3, 0, 0, 0}, | |
26113 | { SWIG_PY_INT, (char *)"JOY_BUTTON4", (long) wxJOY_BUTTON4, 0, 0, 0}, | |
26114 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_DOWN", (long) wxEVT_JOY_BUTTON_DOWN, 0, 0, 0}, | |
26115 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_UP", (long) wxEVT_JOY_BUTTON_UP, 0, 0, 0}, | |
26116 | { SWIG_PY_INT, (char *)"wxEVT_JOY_MOVE", (long) wxEVT_JOY_MOVE, 0, 0, 0}, | |
26117 | { SWIG_PY_INT, (char *)"wxEVT_JOY_ZMOVE", (long) wxEVT_JOY_ZMOVE, 0, 0, 0}, | |
26118 | { SWIG_PY_INT, (char *)"MAILCAP_STANDARD", (long) wxMAILCAP_STANDARD, 0, 0, 0}, | |
26119 | { SWIG_PY_INT, (char *)"MAILCAP_NETSCAPE", (long) wxMAILCAP_NETSCAPE, 0, 0, 0}, | |
26120 | { SWIG_PY_INT, (char *)"MAILCAP_KDE", (long) wxMAILCAP_KDE, 0, 0, 0}, | |
26121 | { SWIG_PY_INT, (char *)"MAILCAP_GNOME", (long) wxMAILCAP_GNOME, 0, 0, 0}, | |
26122 | { SWIG_PY_INT, (char *)"MAILCAP_ALL", (long) wxMAILCAP_ALL, 0, 0, 0}, | |
26123 | { SWIG_PY_INT, (char *)"CONFIG_USE_LOCAL_FILE", (long) wxCONFIG_USE_LOCAL_FILE, 0, 0, 0}, | |
26124 | { SWIG_PY_INT, (char *)"CONFIG_USE_GLOBAL_FILE", (long) wxCONFIG_USE_GLOBAL_FILE, 0, 0, 0}, | |
26125 | { SWIG_PY_INT, (char *)"CONFIG_USE_RELATIVE_PATH", (long) wxCONFIG_USE_RELATIVE_PATH, 0, 0, 0}, | |
26126 | { SWIG_PY_INT, (char *)"CONFIG_USE_NO_ESCAPE_CHARACTERS", (long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS, 0, 0, 0}, | |
26127 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Unknown", (long) wxConfigBase::Type_Unknown, 0, 0, 0}, | |
26128 | { SWIG_PY_INT, (char *)"ConfigBase_Type_String", (long) wxConfigBase::Type_String, 0, 0, 0}, | |
26129 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Boolean", (long) wxConfigBase::Type_Boolean, 0, 0, 0}, | |
26130 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Integer", (long) wxConfigBase::Type_Integer, 0, 0, 0}, | |
26131 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Float", (long) wxConfigBase::Type_Float, 0, 0, 0}, | |
26132 | { SWIG_PY_INT, (char *)"DateTime_Local", (long) wxDateTime::Local, 0, 0, 0}, | |
26133 | { SWIG_PY_INT, (char *)"DateTime_GMT_12", (long) wxDateTime::GMT_12, 0, 0, 0}, | |
26134 | { SWIG_PY_INT, (char *)"DateTime_GMT_11", (long) wxDateTime::GMT_11, 0, 0, 0}, | |
26135 | { SWIG_PY_INT, (char *)"DateTime_GMT_10", (long) wxDateTime::GMT_10, 0, 0, 0}, | |
26136 | { SWIG_PY_INT, (char *)"DateTime_GMT_9", (long) wxDateTime::GMT_9, 0, 0, 0}, | |
26137 | { SWIG_PY_INT, (char *)"DateTime_GMT_8", (long) wxDateTime::GMT_8, 0, 0, 0}, | |
26138 | { SWIG_PY_INT, (char *)"DateTime_GMT_7", (long) wxDateTime::GMT_7, 0, 0, 0}, | |
26139 | { SWIG_PY_INT, (char *)"DateTime_GMT_6", (long) wxDateTime::GMT_6, 0, 0, 0}, | |
26140 | { SWIG_PY_INT, (char *)"DateTime_GMT_5", (long) wxDateTime::GMT_5, 0, 0, 0}, | |
26141 | { SWIG_PY_INT, (char *)"DateTime_GMT_4", (long) wxDateTime::GMT_4, 0, 0, 0}, | |
26142 | { SWIG_PY_INT, (char *)"DateTime_GMT_3", (long) wxDateTime::GMT_3, 0, 0, 0}, | |
26143 | { SWIG_PY_INT, (char *)"DateTime_GMT_2", (long) wxDateTime::GMT_2, 0, 0, 0}, | |
26144 | { SWIG_PY_INT, (char *)"DateTime_GMT_1", (long) wxDateTime::GMT_1, 0, 0, 0}, | |
26145 | { SWIG_PY_INT, (char *)"DateTime_GMT0", (long) wxDateTime::GMT0, 0, 0, 0}, | |
26146 | { SWIG_PY_INT, (char *)"DateTime_GMT1", (long) wxDateTime::GMT1, 0, 0, 0}, | |
26147 | { SWIG_PY_INT, (char *)"DateTime_GMT2", (long) wxDateTime::GMT2, 0, 0, 0}, | |
26148 | { SWIG_PY_INT, (char *)"DateTime_GMT3", (long) wxDateTime::GMT3, 0, 0, 0}, | |
26149 | { SWIG_PY_INT, (char *)"DateTime_GMT4", (long) wxDateTime::GMT4, 0, 0, 0}, | |
26150 | { SWIG_PY_INT, (char *)"DateTime_GMT5", (long) wxDateTime::GMT5, 0, 0, 0}, | |
26151 | { SWIG_PY_INT, (char *)"DateTime_GMT6", (long) wxDateTime::GMT6, 0, 0, 0}, | |
26152 | { SWIG_PY_INT, (char *)"DateTime_GMT7", (long) wxDateTime::GMT7, 0, 0, 0}, | |
26153 | { SWIG_PY_INT, (char *)"DateTime_GMT8", (long) wxDateTime::GMT8, 0, 0, 0}, | |
26154 | { SWIG_PY_INT, (char *)"DateTime_GMT9", (long) wxDateTime::GMT9, 0, 0, 0}, | |
26155 | { SWIG_PY_INT, (char *)"DateTime_GMT10", (long) wxDateTime::GMT10, 0, 0, 0}, | |
26156 | { SWIG_PY_INT, (char *)"DateTime_GMT11", (long) wxDateTime::GMT11, 0, 0, 0}, | |
26157 | { SWIG_PY_INT, (char *)"DateTime_GMT12", (long) wxDateTime::GMT12, 0, 0, 0}, | |
26158 | { SWIG_PY_INT, (char *)"DateTime_WET", (long) wxDateTime::WET, 0, 0, 0}, | |
26159 | { SWIG_PY_INT, (char *)"DateTime_WEST", (long) wxDateTime::WEST, 0, 0, 0}, | |
26160 | { SWIG_PY_INT, (char *)"DateTime_CET", (long) wxDateTime::CET, 0, 0, 0}, | |
26161 | { SWIG_PY_INT, (char *)"DateTime_CEST", (long) wxDateTime::CEST, 0, 0, 0}, | |
26162 | { SWIG_PY_INT, (char *)"DateTime_EET", (long) wxDateTime::EET, 0, 0, 0}, | |
26163 | { SWIG_PY_INT, (char *)"DateTime_EEST", (long) wxDateTime::EEST, 0, 0, 0}, | |
26164 | { SWIG_PY_INT, (char *)"DateTime_MSK", (long) wxDateTime::MSK, 0, 0, 0}, | |
26165 | { SWIG_PY_INT, (char *)"DateTime_MSD", (long) wxDateTime::MSD, 0, 0, 0}, | |
26166 | { SWIG_PY_INT, (char *)"DateTime_AST", (long) wxDateTime::AST, 0, 0, 0}, | |
26167 | { SWIG_PY_INT, (char *)"DateTime_ADT", (long) wxDateTime::ADT, 0, 0, 0}, | |
26168 | { SWIG_PY_INT, (char *)"DateTime_EST", (long) wxDateTime::EST, 0, 0, 0}, | |
26169 | { SWIG_PY_INT, (char *)"DateTime_EDT", (long) wxDateTime::EDT, 0, 0, 0}, | |
26170 | { SWIG_PY_INT, (char *)"DateTime_CST", (long) wxDateTime::CST, 0, 0, 0}, | |
26171 | { SWIG_PY_INT, (char *)"DateTime_CDT", (long) wxDateTime::CDT, 0, 0, 0}, | |
26172 | { SWIG_PY_INT, (char *)"DateTime_MST", (long) wxDateTime::MST, 0, 0, 0}, | |
26173 | { SWIG_PY_INT, (char *)"DateTime_MDT", (long) wxDateTime::MDT, 0, 0, 0}, | |
26174 | { SWIG_PY_INT, (char *)"DateTime_PST", (long) wxDateTime::PST, 0, 0, 0}, | |
26175 | { SWIG_PY_INT, (char *)"DateTime_PDT", (long) wxDateTime::PDT, 0, 0, 0}, | |
26176 | { SWIG_PY_INT, (char *)"DateTime_HST", (long) wxDateTime::HST, 0, 0, 0}, | |
26177 | { SWIG_PY_INT, (char *)"DateTime_AKST", (long) wxDateTime::AKST, 0, 0, 0}, | |
26178 | { SWIG_PY_INT, (char *)"DateTime_AKDT", (long) wxDateTime::AKDT, 0, 0, 0}, | |
26179 | { SWIG_PY_INT, (char *)"DateTime_A_WST", (long) wxDateTime::A_WST, 0, 0, 0}, | |
26180 | { SWIG_PY_INT, (char *)"DateTime_A_CST", (long) wxDateTime::A_CST, 0, 0, 0}, | |
26181 | { SWIG_PY_INT, (char *)"DateTime_A_EST", (long) wxDateTime::A_EST, 0, 0, 0}, | |
26182 | { SWIG_PY_INT, (char *)"DateTime_A_ESST", (long) wxDateTime::A_ESST, 0, 0, 0}, | |
26183 | { SWIG_PY_INT, (char *)"DateTime_UTC", (long) wxDateTime::UTC, 0, 0, 0}, | |
26184 | { SWIG_PY_INT, (char *)"DateTime_Gregorian", (long) wxDateTime::Gregorian, 0, 0, 0}, | |
26185 | { SWIG_PY_INT, (char *)"DateTime_Julian", (long) wxDateTime::Julian, 0, 0, 0}, | |
26186 | { SWIG_PY_INT, (char *)"DateTime_Gr_Unknown", (long) wxDateTime::Gr_Unknown, 0, 0, 0}, | |
26187 | { SWIG_PY_INT, (char *)"DateTime_Gr_Standard", (long) wxDateTime::Gr_Standard, 0, 0, 0}, | |
26188 | { SWIG_PY_INT, (char *)"DateTime_Gr_Alaska", (long) wxDateTime::Gr_Alaska, 0, 0, 0}, | |
26189 | { SWIG_PY_INT, (char *)"DateTime_Gr_Albania", (long) wxDateTime::Gr_Albania, 0, 0, 0}, | |
26190 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria", (long) wxDateTime::Gr_Austria, 0, 0, 0}, | |
26191 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Brixen", (long) wxDateTime::Gr_Austria_Brixen, 0, 0, 0}, | |
26192 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Salzburg", (long) wxDateTime::Gr_Austria_Salzburg, 0, 0, 0}, | |
26193 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Tyrol", (long) wxDateTime::Gr_Austria_Tyrol, 0, 0, 0}, | |
26194 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Carinthia", (long) wxDateTime::Gr_Austria_Carinthia, 0, 0, 0}, | |
26195 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Styria", (long) wxDateTime::Gr_Austria_Styria, 0, 0, 0}, | |
26196 | { SWIG_PY_INT, (char *)"DateTime_Gr_Belgium", (long) wxDateTime::Gr_Belgium, 0, 0, 0}, | |
26197 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria", (long) wxDateTime::Gr_Bulgaria, 0, 0, 0}, | |
26198 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_1", (long) wxDateTime::Gr_Bulgaria_1, 0, 0, 0}, | |
26199 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_2", (long) wxDateTime::Gr_Bulgaria_2, 0, 0, 0}, | |
26200 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_3", (long) wxDateTime::Gr_Bulgaria_3, 0, 0, 0}, | |
26201 | { SWIG_PY_INT, (char *)"DateTime_Gr_Canada", (long) wxDateTime::Gr_Canada, 0, 0, 0}, | |
26202 | { SWIG_PY_INT, (char *)"DateTime_Gr_China", (long) wxDateTime::Gr_China, 0, 0, 0}, | |
26203 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_1", (long) wxDateTime::Gr_China_1, 0, 0, 0}, | |
26204 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_2", (long) wxDateTime::Gr_China_2, 0, 0, 0}, | |
26205 | { SWIG_PY_INT, (char *)"DateTime_Gr_Czechoslovakia", (long) wxDateTime::Gr_Czechoslovakia, 0, 0, 0}, | |
26206 | { SWIG_PY_INT, (char *)"DateTime_Gr_Denmark", (long) wxDateTime::Gr_Denmark, 0, 0, 0}, | |
26207 | { SWIG_PY_INT, (char *)"DateTime_Gr_Egypt", (long) wxDateTime::Gr_Egypt, 0, 0, 0}, | |
26208 | { SWIG_PY_INT, (char *)"DateTime_Gr_Estonia", (long) wxDateTime::Gr_Estonia, 0, 0, 0}, | |
26209 | { SWIG_PY_INT, (char *)"DateTime_Gr_Finland", (long) wxDateTime::Gr_Finland, 0, 0, 0}, | |
26210 | { SWIG_PY_INT, (char *)"DateTime_Gr_France", (long) wxDateTime::Gr_France, 0, 0, 0}, | |
26211 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Alsace", (long) wxDateTime::Gr_France_Alsace, 0, 0, 0}, | |
26212 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Lorraine", (long) wxDateTime::Gr_France_Lorraine, 0, 0, 0}, | |
26213 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Strasbourg", (long) wxDateTime::Gr_France_Strasbourg, 0, 0, 0}, | |
26214 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany", (long) wxDateTime::Gr_Germany, 0, 0, 0}, | |
26215 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Catholic", (long) wxDateTime::Gr_Germany_Catholic, 0, 0, 0}, | |
26216 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Prussia", (long) wxDateTime::Gr_Germany_Prussia, 0, 0, 0}, | |
26217 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Protestant", (long) wxDateTime::Gr_Germany_Protestant, 0, 0, 0}, | |
26218 | { SWIG_PY_INT, (char *)"DateTime_Gr_GreatBritain", (long) wxDateTime::Gr_GreatBritain, 0, 0, 0}, | |
26219 | { SWIG_PY_INT, (char *)"DateTime_Gr_Greece", (long) wxDateTime::Gr_Greece, 0, 0, 0}, | |
26220 | { SWIG_PY_INT, (char *)"DateTime_Gr_Hungary", (long) wxDateTime::Gr_Hungary, 0, 0, 0}, | |
26221 | { SWIG_PY_INT, (char *)"DateTime_Gr_Ireland", (long) wxDateTime::Gr_Ireland, 0, 0, 0}, | |
26222 | { SWIG_PY_INT, (char *)"DateTime_Gr_Italy", (long) wxDateTime::Gr_Italy, 0, 0, 0}, | |
26223 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan", (long) wxDateTime::Gr_Japan, 0, 0, 0}, | |
26224 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_1", (long) wxDateTime::Gr_Japan_1, 0, 0, 0}, | |
26225 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_2", (long) wxDateTime::Gr_Japan_2, 0, 0, 0}, | |
26226 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_3", (long) wxDateTime::Gr_Japan_3, 0, 0, 0}, | |
26227 | { SWIG_PY_INT, (char *)"DateTime_Gr_Latvia", (long) wxDateTime::Gr_Latvia, 0, 0, 0}, | |
26228 | { SWIG_PY_INT, (char *)"DateTime_Gr_Lithuania", (long) wxDateTime::Gr_Lithuania, 0, 0, 0}, | |
26229 | { SWIG_PY_INT, (char *)"DateTime_Gr_Luxemburg", (long) wxDateTime::Gr_Luxemburg, 0, 0, 0}, | |
26230 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands", (long) wxDateTime::Gr_Netherlands, 0, 0, 0}, | |
26231 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Groningen", (long) wxDateTime::Gr_Netherlands_Groningen, 0, 0, 0}, | |
26232 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Gelderland", (long) wxDateTime::Gr_Netherlands_Gelderland, 0, 0, 0}, | |
26233 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Utrecht", (long) wxDateTime::Gr_Netherlands_Utrecht, 0, 0, 0}, | |
26234 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Friesland", (long) wxDateTime::Gr_Netherlands_Friesland, 0, 0, 0}, | |
26235 | { SWIG_PY_INT, (char *)"DateTime_Gr_Norway", (long) wxDateTime::Gr_Norway, 0, 0, 0}, | |
26236 | { SWIG_PY_INT, (char *)"DateTime_Gr_Poland", (long) wxDateTime::Gr_Poland, 0, 0, 0}, | |
26237 | { SWIG_PY_INT, (char *)"DateTime_Gr_Portugal", (long) wxDateTime::Gr_Portugal, 0, 0, 0}, | |
26238 | { SWIG_PY_INT, (char *)"DateTime_Gr_Romania", (long) wxDateTime::Gr_Romania, 0, 0, 0}, | |
26239 | { SWIG_PY_INT, (char *)"DateTime_Gr_Russia", (long) wxDateTime::Gr_Russia, 0, 0, 0}, | |
26240 | { SWIG_PY_INT, (char *)"DateTime_Gr_Scotland", (long) wxDateTime::Gr_Scotland, 0, 0, 0}, | |
26241 | { SWIG_PY_INT, (char *)"DateTime_Gr_Spain", (long) wxDateTime::Gr_Spain, 0, 0, 0}, | |
26242 | { SWIG_PY_INT, (char *)"DateTime_Gr_Sweden", (long) wxDateTime::Gr_Sweden, 0, 0, 0}, | |
26243 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland", (long) wxDateTime::Gr_Switzerland, 0, 0, 0}, | |
26244 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Catholic", (long) wxDateTime::Gr_Switzerland_Catholic, 0, 0, 0}, | |
26245 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Protestant", (long) wxDateTime::Gr_Switzerland_Protestant, 0, 0, 0}, | |
26246 | { SWIG_PY_INT, (char *)"DateTime_Gr_Turkey", (long) wxDateTime::Gr_Turkey, 0, 0, 0}, | |
26247 | { SWIG_PY_INT, (char *)"DateTime_Gr_USA", (long) wxDateTime::Gr_USA, 0, 0, 0}, | |
26248 | { SWIG_PY_INT, (char *)"DateTime_Gr_Wales", (long) wxDateTime::Gr_Wales, 0, 0, 0}, | |
26249 | { SWIG_PY_INT, (char *)"DateTime_Gr_Yugoslavia", (long) wxDateTime::Gr_Yugoslavia, 0, 0, 0}, | |
26250 | { SWIG_PY_INT, (char *)"DateTime_Country_Unknown", (long) wxDateTime::Country_Unknown, 0, 0, 0}, | |
26251 | { SWIG_PY_INT, (char *)"DateTime_Country_Default", (long) wxDateTime::Country_Default, 0, 0, 0}, | |
26252 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_Start", (long) wxDateTime::Country_WesternEurope_Start, 0, 0, 0}, | |
26253 | { SWIG_PY_INT, (char *)"DateTime_Country_EEC", (long) wxDateTime::Country_EEC, 0, 0, 0}, | |
26254 | { SWIG_PY_INT, (char *)"DateTime_France", (long) wxDateTime::France, 0, 0, 0}, | |
26255 | { SWIG_PY_INT, (char *)"DateTime_Germany", (long) wxDateTime::Germany, 0, 0, 0}, | |
26256 | { SWIG_PY_INT, (char *)"DateTime_UK", (long) wxDateTime::UK, 0, 0, 0}, | |
26257 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_End", (long) wxDateTime::Country_WesternEurope_End, 0, 0, 0}, | |
26258 | { SWIG_PY_INT, (char *)"DateTime_Russia", (long) wxDateTime::Russia, 0, 0, 0}, | |
26259 | { SWIG_PY_INT, (char *)"DateTime_USA", (long) wxDateTime::USA, 0, 0, 0}, | |
26260 | { SWIG_PY_INT, (char *)"DateTime_Jan", (long) wxDateTime::Jan, 0, 0, 0}, | |
26261 | { SWIG_PY_INT, (char *)"DateTime_Feb", (long) wxDateTime::Feb, 0, 0, 0}, | |
26262 | { SWIG_PY_INT, (char *)"DateTime_Mar", (long) wxDateTime::Mar, 0, 0, 0}, | |
26263 | { SWIG_PY_INT, (char *)"DateTime_Apr", (long) wxDateTime::Apr, 0, 0, 0}, | |
26264 | { SWIG_PY_INT, (char *)"DateTime_May", (long) wxDateTime::May, 0, 0, 0}, | |
26265 | { SWIG_PY_INT, (char *)"DateTime_Jun", (long) wxDateTime::Jun, 0, 0, 0}, | |
26266 | { SWIG_PY_INT, (char *)"DateTime_Jul", (long) wxDateTime::Jul, 0, 0, 0}, | |
26267 | { SWIG_PY_INT, (char *)"DateTime_Aug", (long) wxDateTime::Aug, 0, 0, 0}, | |
26268 | { SWIG_PY_INT, (char *)"DateTime_Sep", (long) wxDateTime::Sep, 0, 0, 0}, | |
26269 | { SWIG_PY_INT, (char *)"DateTime_Oct", (long) wxDateTime::Oct, 0, 0, 0}, | |
26270 | { SWIG_PY_INT, (char *)"DateTime_Nov", (long) wxDateTime::Nov, 0, 0, 0}, | |
26271 | { SWIG_PY_INT, (char *)"DateTime_Dec", (long) wxDateTime::Dec, 0, 0, 0}, | |
26272 | { SWIG_PY_INT, (char *)"DateTime_Inv_Month", (long) wxDateTime::Inv_Month, 0, 0, 0}, | |
26273 | { SWIG_PY_INT, (char *)"DateTime_Sun", (long) wxDateTime::Sun, 0, 0, 0}, | |
26274 | { SWIG_PY_INT, (char *)"DateTime_Mon", (long) wxDateTime::Mon, 0, 0, 0}, | |
26275 | { SWIG_PY_INT, (char *)"DateTime_Tue", (long) wxDateTime::Tue, 0, 0, 0}, | |
26276 | { SWIG_PY_INT, (char *)"DateTime_Wed", (long) wxDateTime::Wed, 0, 0, 0}, | |
26277 | { SWIG_PY_INT, (char *)"DateTime_Thu", (long) wxDateTime::Thu, 0, 0, 0}, | |
26278 | { SWIG_PY_INT, (char *)"DateTime_Fri", (long) wxDateTime::Fri, 0, 0, 0}, | |
26279 | { SWIG_PY_INT, (char *)"DateTime_Sat", (long) wxDateTime::Sat, 0, 0, 0}, | |
26280 | { SWIG_PY_INT, (char *)"DateTime_Inv_WeekDay", (long) wxDateTime::Inv_WeekDay, 0, 0, 0}, | |
26281 | { SWIG_PY_INT, (char *)"DateTime_Inv_Year", (long) wxDateTime::Inv_Year, 0, 0, 0}, | |
26282 | { SWIG_PY_INT, (char *)"DateTime_Name_Full", (long) wxDateTime::Name_Full, 0, 0, 0}, | |
26283 | { SWIG_PY_INT, (char *)"DateTime_Name_Abbr", (long) wxDateTime::Name_Abbr, 0, 0, 0}, | |
26284 | { SWIG_PY_INT, (char *)"DateTime_Default_First", (long) wxDateTime::Default_First, 0, 0, 0}, | |
26285 | { SWIG_PY_INT, (char *)"DateTime_Monday_First", (long) wxDateTime::Monday_First, 0, 0, 0}, | |
26286 | { SWIG_PY_INT, (char *)"DateTime_Sunday_First", (long) wxDateTime::Sunday_First, 0, 0, 0}, | |
26287 | { SWIG_PY_INT, (char *)"DF_INVALID", (long) wxDF_INVALID, 0, 0, 0}, | |
26288 | { SWIG_PY_INT, (char *)"DF_TEXT", (long) wxDF_TEXT, 0, 0, 0}, | |
26289 | { SWIG_PY_INT, (char *)"DF_BITMAP", (long) wxDF_BITMAP, 0, 0, 0}, | |
26290 | { SWIG_PY_INT, (char *)"DF_METAFILE", (long) wxDF_METAFILE, 0, 0, 0}, | |
26291 | { SWIG_PY_INT, (char *)"DF_SYLK", (long) wxDF_SYLK, 0, 0, 0}, | |
26292 | { SWIG_PY_INT, (char *)"DF_DIF", (long) wxDF_DIF, 0, 0, 0}, | |
26293 | { SWIG_PY_INT, (char *)"DF_TIFF", (long) wxDF_TIFF, 0, 0, 0}, | |
26294 | { SWIG_PY_INT, (char *)"DF_OEMTEXT", (long) wxDF_OEMTEXT, 0, 0, 0}, | |
26295 | { SWIG_PY_INT, (char *)"DF_DIB", (long) wxDF_DIB, 0, 0, 0}, | |
26296 | { SWIG_PY_INT, (char *)"DF_PALETTE", (long) wxDF_PALETTE, 0, 0, 0}, | |
26297 | { SWIG_PY_INT, (char *)"DF_PENDATA", (long) wxDF_PENDATA, 0, 0, 0}, | |
26298 | { SWIG_PY_INT, (char *)"DF_RIFF", (long) wxDF_RIFF, 0, 0, 0}, | |
26299 | { SWIG_PY_INT, (char *)"DF_WAVE", (long) wxDF_WAVE, 0, 0, 0}, | |
26300 | { SWIG_PY_INT, (char *)"DF_UNICODETEXT", (long) wxDF_UNICODETEXT, 0, 0, 0}, | |
26301 | { SWIG_PY_INT, (char *)"DF_ENHMETAFILE", (long) wxDF_ENHMETAFILE, 0, 0, 0}, | |
26302 | { SWIG_PY_INT, (char *)"DF_FILENAME", (long) wxDF_FILENAME, 0, 0, 0}, | |
26303 | { SWIG_PY_INT, (char *)"DF_LOCALE", (long) wxDF_LOCALE, 0, 0, 0}, | |
26304 | { SWIG_PY_INT, (char *)"DF_PRIVATE", (long) wxDF_PRIVATE, 0, 0, 0}, | |
26305 | { SWIG_PY_INT, (char *)"DF_HTML", (long) wxDF_HTML, 0, 0, 0}, | |
26306 | { SWIG_PY_INT, (char *)"DF_MAX", (long) wxDF_MAX, 0, 0, 0}, | |
26307 | { SWIG_PY_INT, (char *)"DataObject_Get", (long) wxDataObject::Get, 0, 0, 0}, | |
26308 | { SWIG_PY_INT, (char *)"DataObject_Set", (long) wxDataObject::Set, 0, 0, 0}, | |
26309 | { SWIG_PY_INT, (char *)"DataObject_Both", (long) wxDataObject::Both, 0, 0, 0}, | |
26310 | { SWIG_PY_INT, (char *)"Drag_CopyOnly", (long) wxDrag_CopyOnly, 0, 0, 0}, | |
26311 | { SWIG_PY_INT, (char *)"Drag_AllowMove", (long) wxDrag_AllowMove, 0, 0, 0}, | |
26312 | { SWIG_PY_INT, (char *)"Drag_DefaultMove", (long) wxDrag_DefaultMove, 0, 0, 0}, | |
26313 | { SWIG_PY_INT, (char *)"DragError", (long) wxDragError, 0, 0, 0}, | |
26314 | { SWIG_PY_INT, (char *)"DragNone", (long) wxDragNone, 0, 0, 0}, | |
26315 | { SWIG_PY_INT, (char *)"DragCopy", (long) wxDragCopy, 0, 0, 0}, | |
26316 | { SWIG_PY_INT, (char *)"DragMove", (long) wxDragMove, 0, 0, 0}, | |
26317 | { SWIG_PY_INT, (char *)"DragLink", (long) wxDragLink, 0, 0, 0}, | |
26318 | { SWIG_PY_INT, (char *)"DragCancel", (long) wxDragCancel, 0, 0, 0}, | |
26319 | {0}}; | |
26320 | ||
26321 | #ifdef __cplusplus | |
26322 | } | |
26323 | #endif | |
26324 | ||
26325 | #ifdef __cplusplus | |
26326 | extern "C" | |
26327 | #endif | |
26328 | SWIGEXPORT(void) SWIG_init(void) { | |
26329 | static PyObject *SWIG_globals = 0; | |
26330 | static int typeinit = 0; | |
26331 | PyObject *m, *d; | |
26332 | int i; | |
26333 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26334 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26335 | d = PyModule_GetDict(m); | |
26336 | ||
26337 | if (!typeinit) { | |
26338 | for (i = 0; swig_types_initial[i]; i++) { | |
26339 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26340 | } | |
26341 | typeinit = 1; | |
26342 | } | |
26343 | SWIG_InstallConstants(d,swig_const_table); | |
26344 | ||
26345 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); | |
26346 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
26347 | ||
26348 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
26349 | ||
26350 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
26351 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
26352 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
26353 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
26354 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
26355 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); | |
26356 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
26357 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
26358 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
26359 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
26360 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
26361 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
26362 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
26363 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
26364 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
26365 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
26366 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
26367 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
26368 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
26369 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
26370 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
26371 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
26372 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
26373 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
26374 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
26375 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
26376 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
26377 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
26378 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
26379 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
26380 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
26381 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
26382 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
26383 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
26384 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
26385 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
26386 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
26387 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
26388 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
26389 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
26390 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
26391 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
26392 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
26393 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
26394 | ||
26395 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
26396 | ||
26397 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); | |
26398 | ||
26399 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
26400 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
26401 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
26402 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
26403 | ||
26404 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
26405 | } | |
26406 |