]>
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 | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
0f774bef RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
423f194a | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
0f774bef | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
140 | #ifdef __cplusplus | |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | #define SWIG_PY_INT 1 | |
145 | #define SWIG_PY_FLOAT 2 | |
146 | #define SWIG_PY_STRING 3 | |
147 | #define SWIG_PY_POINTER 4 | |
148 | #define SWIG_PY_BINARY 5 | |
149 | ||
150 | /* Flags for pointer conversion */ | |
151 | ||
152 | #define SWIG_POINTER_EXCEPTION 0x1 | |
153 | #define SWIG_POINTER_DISOWN 0x2 | |
154 | ||
155 | /* Exception handling in wrappers */ | |
156 | #define SWIG_fail goto fail | |
157 | ||
158 | /* Constant information structure */ | |
159 | typedef struct swig_const_info { | |
160 | int type; | |
161 | char *name; | |
162 | long lvalue; | |
163 | double dvalue; | |
164 | void *pvalue; | |
165 | swig_type_info **ptype; | |
166 | } swig_const_info; | |
167 | ||
d14a1e28 RD |
168 | /* Common SWIG API */ |
169 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
170 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
171 | #define SWIG_NewPointerObj(p, type, flags) \ | |
172 | SWIG_Python_NewPointerObj(p, type, flags) | |
173 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
174 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
175 | ||
176 | /* Python-specific SWIG API */ | |
177 | #define SWIG_newvarlink() \ | |
178 | SWIG_Python_newvarlink() | |
179 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
180 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
182 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
183 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
184 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
185 | #define SWIG_InstallConstants(d, constants) \ | |
186 | SWIG_Python_InstallConstants(d, constants) | |
187 | ||
188 | ||
0f774bef RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | ||
200 | /* Contract support */ | |
201 | ||
423f194a | 202 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 203 | |
d14a1e28 RD |
204 | #ifdef __cplusplus |
205 | } | |
206 | #endif | |
207 | ||
208 | ||
209 | ||
210 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
211 | ||
212 | #define SWIGTYPE_p_wxLogChain swig_types[0] | |
213 | #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1] | |
214 | #define SWIGTYPE_p_wxMetafile swig_types[2] | |
215 | #define SWIGTYPE_p_wxFileHistory swig_types[3] | |
216 | #define SWIGTYPE_p_wxLog swig_types[4] | |
217 | #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5] | |
218 | #define SWIGTYPE_p_wxMenu swig_types[6] | |
219 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
220 | #define SWIGTYPE_p_wxConfigBase swig_types[8] | |
221 | #define SWIGTYPE_p_wxWave swig_types[9] | |
222 | #define SWIGTYPE_p_wxFileType swig_types[10] | |
223 | #define SWIGTYPE_p_wxLogGui swig_types[11] | |
224 | #define SWIGTYPE_p_wxFont swig_types[12] | |
225 | #define SWIGTYPE_p_wxDataFormat swig_types[13] | |
226 | #define SWIGTYPE_p_wxTimerEvent swig_types[14] | |
227 | #define SWIGTYPE_p_wxCaret swig_types[15] | |
228 | #define SWIGTYPE_p_int swig_types[16] | |
229 | #define SWIGTYPE_p_wxSize swig_types[17] | |
230 | #define SWIGTYPE_p_wxClipboard swig_types[18] | |
231 | #define SWIGTYPE_p_wxStopWatch swig_types[19] | |
232 | #define SWIGTYPE_p_wxDC swig_types[20] | |
233 | #define SWIGTYPE_p_wxClipboardLocker swig_types[21] | |
234 | #define SWIGTYPE_p_wxIcon swig_types[22] | |
235 | #define SWIGTYPE_p_wxLogStderr swig_types[23] | |
236 | #define SWIGTYPE_p_wxLogTextCtrl swig_types[24] | |
237 | #define SWIGTYPE_p_wxTextCtrl swig_types[25] | |
238 | #define SWIGTYPE_p_wxBusyCursor swig_types[26] | |
239 | #define SWIGTYPE_p_wxFileDataObject swig_types[27] | |
240 | #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[28] | |
241 | #define SWIGTYPE_p_wxPyTextDataObject swig_types[29] | |
242 | #define SWIGTYPE_p_wxBitmapDataObject swig_types[30] | |
243 | #define SWIGTYPE_p_wxTextDataObject swig_types[31] | |
244 | #define SWIGTYPE_p_wxDataObject swig_types[32] | |
245 | #define SWIGTYPE_p_wxCustomDataObject swig_types[33] | |
246 | #define SWIGTYPE_p_wxURLDataObject swig_types[34] | |
247 | #define SWIGTYPE_p_wxMetafileDataObject swig_types[35] | |
248 | #define SWIGTYPE_p_wxTimerRunner swig_types[36] | |
249 | #define SWIGTYPE_p_wxLogWindow swig_types[37] | |
250 | #define SWIGTYPE_p_wxTimeSpan swig_types[38] | |
251 | #define SWIGTYPE_p_wxArrayString swig_types[39] | |
252 | #define SWIGTYPE_p_wxWindowDisabler swig_types[40] | |
253 | #define SWIGTYPE_p_wxToolTip swig_types[41] | |
254 | #define SWIGTYPE_p_wxDataObjectComposite swig_types[42] | |
255 | #define SWIGTYPE_p_wxFileConfig swig_types[43] | |
256 | #define SWIGTYPE_p_wxSystemSettings swig_types[44] | |
257 | #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[45] | |
258 | #define SWIGTYPE_p_wxDataObjectSimple swig_types[46] | |
259 | #define SWIGTYPE_p_wxEvtHandler swig_types[47] | |
260 | #define SWIGTYPE_p_wxRect swig_types[48] | |
261 | #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[49] | |
262 | #define SWIGTYPE_p_wxFileTypeInfo swig_types[50] | |
263 | #define SWIGTYPE_p_wxFrame swig_types[51] | |
264 | #define SWIGTYPE_p_wxTimer swig_types[52] | |
265 | #define SWIGTYPE_p_wxMimeTypesManager swig_types[53] | |
266 | #define SWIGTYPE_p_wxPyArtProvider swig_types[54] | |
267 | #define SWIGTYPE_p_wxPyTipProvider swig_types[55] | |
268 | #define SWIGTYPE_p_wxTipProvider swig_types[56] | |
269 | #define SWIGTYPE_p_wxJoystick swig_types[57] | |
270 | #define SWIGTYPE_p_wxSystemOptions swig_types[58] | |
271 | #define SWIGTYPE_p_wxPoint swig_types[59] | |
272 | #define SWIGTYPE_p_wxJoystickEvent swig_types[60] | |
273 | #define SWIGTYPE_p_wxCursor swig_types[61] | |
274 | #define SWIGTYPE_p_wxObject swig_types[62] | |
275 | #define SWIGTYPE_p_wxOutputStream swig_types[63] | |
276 | #define SWIGTYPE_p_wxDateTime swig_types[64] | |
277 | #define SWIGTYPE_p_wxPyDropSource swig_types[65] | |
278 | #define SWIGTYPE_p_wxWindow swig_types[66] | |
279 | #define SWIGTYPE_p_wxString swig_types[67] | |
280 | #define SWIGTYPE_p_wxPyProcess swig_types[68] | |
281 | #define SWIGTYPE_p_wxBitmap swig_types[69] | |
282 | #define SWIGTYPE_p_wxConfig swig_types[70] | |
283 | #define SWIGTYPE_p_wxChar swig_types[71] | |
284 | #define SWIGTYPE_p_wxBusyInfo swig_types[72] | |
285 | #define SWIGTYPE_p_wxPyDropTarget swig_types[73] | |
286 | #define SWIGTYPE_p_wxPyTextDropTarget swig_types[74] | |
287 | #define SWIGTYPE_p_wxPyFileDropTarget swig_types[75] | |
288 | #define SWIGTYPE_p_wxProcessEvent swig_types[76] | |
289 | #define SWIGTYPE_p_wxPyLog swig_types[77] | |
290 | #define SWIGTYPE_p_wxLogNull swig_types[78] | |
291 | #define SWIGTYPE_p_wxColour swig_types[79] | |
292 | #define SWIGTYPE_p_wxConfigPathChanger swig_types[80] | |
293 | #define SWIGTYPE_p_wxPyTimer swig_types[81] | |
294 | #define SWIGTYPE_p_wxDateSpan swig_types[82] | |
295 | static swig_type_info *swig_types[84]; | |
296 | ||
297 | /* -------- TYPES TABLE (END) -------- */ | |
298 | ||
299 | ||
300 | /*----------------------------------------------- | |
301 | @(target):= _misc.so | |
302 | ------------------------------------------------*/ | |
303 | #define SWIG_init init_misc | |
304 | ||
305 | #define SWIG_name "_misc" | |
306 | ||
307 | #include "wx/wxPython/wxPython.h" | |
308 | #include "wx/wxPython/pyclasses.h" | |
309 | #include "wx/wxPython/pyistream.h" | |
310 | ||
d14a1e28 | 311 | |
cbd72d4f | 312 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
313 | |
314 | ||
cbd72d4f RD |
315 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
316 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
317 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
d14a1e28 RD |
318 | |
319 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
320 | PyObject* o2; | |
321 | PyObject* o3; | |
322 | ||
323 | if (!target) { | |
324 | target = o; | |
325 | } else if (target == Py_None) { | |
326 | Py_DECREF(Py_None); | |
327 | target = o; | |
328 | } else { | |
329 | if (!PyTuple_Check(target)) { | |
330 | o2 = target; | |
331 | target = PyTuple_New(1); | |
332 | PyTuple_SetItem(target, 0, o2); | |
333 | } | |
334 | o3 = PyTuple_New(1); | |
335 | PyTuple_SetItem(o3, 0, o); | |
336 | ||
337 | o2 = target; | |
338 | target = PySequence_Concat(o2, o3); | |
339 | Py_DECREF(o2); | |
340 | Py_DECREF(o3); | |
341 | } | |
342 | return target; | |
343 | } | |
344 | ||
345 | ||
346 | bool wxThread_IsMain() { | |
347 | #ifdef WXP_WITH_THREAD | |
348 | return wxThread::IsMain(); | |
349 | #else | |
423f194a | 350 | return True; |
d14a1e28 RD |
351 | #endif |
352 | } | |
353 | ||
354 | ||
355 | int wxCaret_GetBlinkTime() { | |
356 | return wxCaret::GetBlinkTime(); | |
357 | } | |
358 | ||
359 | void wxCaret_SetBlinkTime(int milliseconds) { | |
360 | wxCaret::SetBlinkTime(milliseconds); | |
361 | } | |
362 | ||
363 | ||
364 | #include <wx/snglinst.h> | |
365 | ||
366 | ||
367 | #ifdef __WXMSW__ | |
368 | #include <wx/msw/private.h> | |
369 | #include <wx/dynload.h> | |
370 | #endif | |
371 | ||
372 | ||
373 | ||
374 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) | |
375 | { | |
376 | #ifdef __WXMSW__ | |
377 | ||
378 | switch (method) | |
379 | { | |
380 | case 1: | |
381 | // This one only partially works. Appears to be an undocumented | |
382 | // "standard" convention that not all widgets adhear to. For | |
383 | // example, for some widgets backgrounds or non-client areas may | |
384 | // not be painted. | |
385 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
386 | break; | |
387 | ||
388 | case 2: | |
389 | // This one works much better, except for on XP. On Win2k nearly | |
390 | // all widgets and their children are captured correctly[**]. On | |
391 | // XP with Themes activated most native widgets draw only | |
392 | // partially, if at all. Without themes it works just like on | |
393 | // Win2k. | |
394 | // | |
395 | // ** For example the radio buttons in a wxRadioBox are not its | |
396 | // children by default, but you can capture it via the panel | |
397 | // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. | |
398 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
399 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
400 | PRF_ERASEBKGND | PRF_OWNED ); | |
401 | break; | |
402 | ||
403 | case 3: | |
404 | // This one is only defined in the latest SDK and is only | |
405 | // available on XP. MSDN says it is similar to sending WM_PRINT | |
406 | // so I expect that it will work similar to the above. Since it | |
407 | // is avaialble only on XP, it can't be compiled like this and | |
408 | // will have to be loaded dynamically. | |
409 | // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; | |
410 | ||
411 | // fall through | |
412 | ||
413 | case 4: | |
414 | // Use PrintWindow if available, or fallback to WM_PRINT | |
415 | // otherwise. Unfortunately using PrintWindow is even worse than | |
416 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
417 | // at all, with or without Themes. | |
418 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
423f194a | 419 | static bool s_triedToLoad = False; |
d14a1e28 RD |
420 | static PrintWindow_t pfnPrintWindow = NULL; |
421 | if ( !s_triedToLoad ) | |
422 | { | |
423 | ||
423f194a | 424 | s_triedToLoad = True; |
d14a1e28 RD |
425 | wxDynamicLibrary dllUser32(_T("user32.dll")); |
426 | if ( dllUser32.IsLoaded() ) | |
427 | { | |
428 | wxLogNull nolog; // Don't report errors here | |
429 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
430 | } | |
431 | } | |
432 | if (pfnPrintWindow) | |
433 | { | |
434 | printf("Using PrintWindow\n"); | |
435 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
436 | } | |
437 | else | |
438 | { | |
439 | printf("Using WM_PRINT\n"); | |
440 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
441 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
442 | } | |
443 | } | |
444 | #endif | |
445 | } | |
446 | ||
447 | ||
448 | ||
449 | #include <wx/tipdlg.h> | |
450 | ||
451 | ||
452 | class wxPyTipProvider : public wxTipProvider { | |
453 | public: | |
454 | wxPyTipProvider(size_t currentTip) | |
455 | : wxTipProvider(currentTip) {} | |
456 | ||
457 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
458 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); | |
459 | PYPRIVATE; | |
460 | }; | |
461 | ||
462 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
463 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); | |
464 | ||
465 | ||
466 | IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); | |
467 | ||
468 | wxString Log_TimeStamp(){ | |
469 | wxString msg; | |
470 | wxLog::TimeStamp(&msg); | |
471 | return msg; | |
472 | } | |
473 | void wxLog_Destroy(wxLog *self){ delete self; } | |
474 | ||
475 | // A wxLog class that can be derived from in wxPython | |
476 | class wxPyLog : public wxLog { | |
477 | public: | |
478 | wxPyLog() : wxLog() {} | |
479 | ||
480 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
481 | bool found; | |
482 | wxPyBeginBlockThreads(); | |
483 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { | |
484 | PyObject* s = wx2PyString(szString); | |
485 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
486 | Py_DECREF(s); | |
487 | } | |
488 | wxPyEndBlockThreads(); | |
489 | if (! found) | |
490 | wxLog::DoLog(level, szString, t); | |
491 | } | |
492 | ||
493 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
494 | bool found; | |
495 | wxPyBeginBlockThreads(); | |
496 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { | |
497 | PyObject* s = wx2PyString(szString); | |
498 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
499 | Py_DECREF(s); | |
500 | } | |
501 | wxPyEndBlockThreads(); | |
502 | if (! found) | |
503 | wxLog::DoLogString(szString, t); | |
504 | } | |
505 | ||
506 | PYPRIVATE; | |
507 | }; | |
508 | ||
509 | ||
510 | ||
511 | ||
512 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
513 | ||
514 | ||
515 | #include <wx/joystick.h> | |
516 | ||
517 | ||
518 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
519 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
520 | class wxJoystick : public wxObject { | |
521 | public: | |
522 | wxJoystick(int joystick = wxJOYSTICK1) { | |
523 | wxPyBeginBlockThreads(); | |
cbd72d4f RD |
524 | PyErr_SetString(PyExc_NotImplementedError, |
525 | "wxJoystick is not available on this platform."); | |
d14a1e28 RD |
526 | wxPyEndBlockThreads(); |
527 | } | |
528 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
529 | int GetZPosition() { return -1; } | |
530 | int GetButtonState() { return -1; } | |
531 | int GetPOVPosition() { return -1; } | |
532 | int GetPOVCTSPosition() { return -1; } | |
533 | int GetRudderPosition() { return -1; } | |
534 | int GetUPosition() { return -1; } | |
535 | int GetVPosition() { return -1; } | |
536 | int GetMovementThreshold() { return -1; } | |
537 | void SetMovementThreshold(int threshold) {} | |
538 | ||
423f194a | 539 | bool IsOk(void) { return False; } |
d14a1e28 RD |
540 | int GetNumberJoysticks() { return -1; } |
541 | int GetManufacturerId() { return -1; } | |
542 | int GetProductId() { return -1; } | |
543 | wxString GetProductName() { return ""; } | |
544 | int GetXMin() { return -1; } | |
545 | int GetYMin() { return -1; } | |
546 | int GetZMin() { return -1; } | |
547 | int GetXMax() { return -1; } | |
548 | int GetYMax() { return -1; } | |
549 | int GetZMax() { return -1; } | |
550 | int GetNumberButtons() { return -1; } | |
551 | int GetNumberAxes() { return -1; } | |
552 | int GetMaxButtons() { return -1; } | |
553 | int GetMaxAxes() { return -1; } | |
554 | int GetPollingMin() { return -1; } | |
555 | int GetPollingMax() { return -1; } | |
556 | int GetRudderMin() { return -1; } | |
557 | int GetRudderMax() { return -1; } | |
558 | int GetUMin() { return -1; } | |
559 | int GetUMax() { return -1; } | |
560 | int GetVMin() { return -1; } | |
561 | int GetVMax() { return -1; } | |
562 | ||
423f194a RD |
563 | bool HasRudder() { return False; } |
564 | bool HasZ() { return False; } | |
565 | bool HasU() { return False; } | |
566 | bool HasV() { return False; } | |
567 | bool HasPOV() { return False; } | |
568 | bool HasPOV4Dir() { return False; } | |
569 | bool HasPOVCTS() { return False; } | |
d14a1e28 | 570 | |
423f194a RD |
571 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; } |
572 | bool ReleaseCapture() { return False; } | |
d14a1e28 RD |
573 | }; |
574 | #endif | |
575 | ||
576 | ||
577 | #include <wx/wave.h> | |
578 | ||
579 | ||
580 | #if !wxUSE_WAVE | |
581 | // A C++ stub class for wxWave for platforms that don't have it. | |
582 | class wxWave : public wxObject | |
583 | { | |
584 | public: | |
423f194a | 585 | wxWave(const wxString& fileName, bool isResource = False) { |
d14a1e28 | 586 | wxPyBeginBlockThreads(); |
cbd72d4f RD |
587 | PyErr_SetString(PyExc_NotImplementedError, |
588 | "wxWave is not available on this platform."); | |
d14a1e28 RD |
589 | wxPyEndBlockThreads(); |
590 | } | |
591 | wxWave(int size, const wxByte* data) { | |
592 | wxPyBeginBlockThreads(); | |
cbd72d4f RD |
593 | PyErr_SetString(PyExc_NotImplementedError, |
594 | "wxWave is not available on this platform."); | |
d14a1e28 RD |
595 | wxPyEndBlockThreads(); |
596 | } | |
597 | ||
598 | ~wxWave() {} | |
599 | ||
423f194a RD |
600 | bool IsOk() const { return False; } |
601 | bool Play(bool async = True, bool looped = False) const { return False; } | |
d14a1e28 RD |
602 | }; |
603 | ||
604 | #endif | |
605 | ||
606 | wxWave *new_wxWave(wxString const &data){ | |
607 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
608 | } | |
609 | ||
610 | #include <wx/mimetype.h> | |
611 | ||
612 | PyObject *wxFileType_GetMimeType(wxFileType *self){ | |
613 | wxString str; | |
614 | if (self->GetMimeType(&str)) | |
615 | return wx2PyString(str); | |
616 | else | |
617 | RETURN_NONE(); | |
618 | } | |
619 | PyObject *wxFileType_GetMimeTypes(wxFileType *self){ | |
620 | wxArrayString arr; | |
621 | if (self->GetMimeTypes(arr)) | |
622 | return wxArrayString2PyList_helper(arr); | |
623 | else | |
624 | RETURN_NONE(); | |
625 | } | |
626 | PyObject *wxFileType_GetExtensions(wxFileType *self){ | |
627 | wxArrayString arr; | |
628 | if (self->GetExtensions(arr)) | |
629 | return wxArrayString2PyList_helper(arr); | |
630 | else | |
631 | RETURN_NONE(); | |
632 | } | |
633 | wxIcon *wxFileType_GetIcon(wxFileType *self){ | |
634 | wxIconLocation loc; | |
635 | if (self->GetIcon(&loc)) | |
636 | return new wxIcon(loc); | |
637 | else | |
638 | return NULL; | |
639 | } | |
640 | PyObject *wxFileType_GetIconInfo(wxFileType *self){ | |
641 | wxIconLocation loc; | |
642 | if (self->GetIcon(&loc)) { | |
643 | wxString iconFile = loc.GetFileName(); | |
644 | int iconIndex = -1; | |
645 | ||
646 | ||
647 | ||
648 | // Make a tuple and put the values in it | |
649 | wxPyBeginBlockThreads(); | |
650 | PyObject* tuple = PyTuple_New(3); | |
651 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc), | |
423f194a | 652 | wxT("wxIcon"), True)); |
d14a1e28 RD |
653 | PyTuple_SetItem(tuple, 1, wx2PyString(iconFile)); |
654 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
655 | wxPyEndBlockThreads(); | |
656 | return tuple; | |
657 | } | |
658 | else | |
659 | RETURN_NONE(); | |
660 | } | |
661 | PyObject *wxFileType_GetDescription(wxFileType *self){ | |
662 | wxString str; | |
663 | if (self->GetDescription(&str)) | |
664 | return wx2PyString(str); | |
665 | else | |
666 | RETURN_NONE(); | |
667 | } | |
668 | PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
669 | wxString str; | |
670 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
671 | return wx2PyString(str); | |
672 | else | |
673 | RETURN_NONE(); | |
674 | } | |
675 | PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
676 | wxString str; | |
677 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
678 | return wx2PyString(str); | |
679 | else | |
680 | RETURN_NONE(); | |
681 | } | |
682 | PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){ | |
683 | wxArrayString verbs; | |
684 | wxArrayString commands; | |
685 | if (self->GetAllCommands(&verbs, &commands, | |
686 | wxFileType::MessageParameters(filename, mimetype))) { | |
687 | wxPyBeginBlockThreads(); | |
688 | PyObject* tuple = PyTuple_New(2); | |
689 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
690 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
691 | wxPyEndBlockThreads(); | |
692 | return tuple; | |
693 | } | |
694 | else | |
695 | RETURN_NONE(); | |
696 | } | |
697 | wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){ | |
698 | return wxFileType::ExpandCommand(command, | |
699 | wxFileType::MessageParameters(filename, mimetype)); | |
700 | } | |
701 | PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){ | |
702 | wxArrayString arr; | |
703 | self->EnumAllFileTypes(arr); | |
704 | return wxArrayString2PyList_helper(arr); | |
705 | } | |
706 | ||
707 | #include <wx/artprov.h> | |
708 | ||
709 | static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR); | |
710 | static const wxString wxPyART_MENU(wxART_MENU); | |
711 | static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON); | |
712 | static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG); | |
713 | static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER); | |
714 | static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX); | |
715 | static const wxString wxPyART_OTHER(wxART_OTHER); | |
716 | static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK); | |
717 | static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK); | |
718 | static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL); | |
719 | static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS); | |
720 | static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK); | |
721 | static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER); | |
722 | static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE); | |
723 | static const wxString wxPyART_GO_BACK(wxART_GO_BACK); | |
724 | static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD); | |
725 | static const wxString wxPyART_GO_UP(wxART_GO_UP); | |
726 | static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN); | |
727 | static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT); | |
728 | static const wxString wxPyART_GO_HOME(wxART_GO_HOME); | |
729 | static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN); | |
730 | static const wxString wxPyART_PRINT(wxART_PRINT); | |
731 | static const wxString wxPyART_HELP(wxART_HELP); | |
732 | static const wxString wxPyART_TIP(wxART_TIP); | |
733 | static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW); | |
734 | static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW); | |
735 | static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR); | |
736 | static const wxString wxPyART_FOLDER(wxART_FOLDER); | |
737 | static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP); | |
738 | static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE); | |
739 | static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE); | |
740 | static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK); | |
741 | static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK); | |
742 | static const wxString wxPyART_ERROR(wxART_ERROR); | |
743 | static const wxString wxPyART_QUESTION(wxART_QUESTION); | |
744 | static const wxString wxPyART_WARNING(wxART_WARNING); | |
745 | static const wxString wxPyART_INFORMATION(wxART_INFORMATION); | |
746 | static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE); | |
747 | // Python aware wxArtProvider | |
748 | class wxPyArtProvider : public wxArtProvider { | |
749 | public: | |
750 | ||
751 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
752 | const wxArtClient& client, | |
753 | const wxSize& size) { | |
754 | wxBitmap rval = wxNullBitmap; | |
755 | wxPyBeginBlockThreads(); | |
756 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
757 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); | |
758 | PyObject* ro; | |
759 | wxBitmap* ptr; | |
760 | PyObject* s1, *s2; | |
761 | s1 = wx2PyString(id); | |
762 | s2 = wx2PyString(client); | |
763 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); | |
764 | Py_DECREF(so); | |
765 | Py_DECREF(s1); | |
766 | Py_DECREF(s2); | |
767 | if (ro) { | |
768 | if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap"))) | |
769 | rval = *ptr; | |
770 | Py_DECREF(ro); | |
771 | } | |
772 | } | |
773 | wxPyEndBlockThreads(); | |
774 | return rval; | |
775 | } | |
776 | ||
777 | PYPRIVATE; | |
778 | }; | |
779 | ||
41f1cec7 | 780 | void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; } |
d14a1e28 RD |
781 | |
782 | ||
783 | ||
784 | static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) { | |
785 | PyObject* ret = PyTuple_New(3); | |
786 | if (ret) { | |
787 | PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag)); | |
788 | PyTuple_SET_ITEM(ret, 1, wx2PyString(str)); | |
789 | PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index)); | |
790 | } | |
791 | return ret; | |
792 | } | |
793 | ||
794 | PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){ | |
795 | bool cont; | |
796 | long index = 0; | |
797 | wxString value; | |
798 | ||
799 | cont = self->GetFirstGroup(value, index); | |
800 | return __EnumerationHelper(cont, value, index); | |
801 | } | |
802 | PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){ | |
803 | bool cont; | |
804 | wxString value; | |
805 | ||
806 | cont = self->GetNextGroup(value, index); | |
807 | return __EnumerationHelper(cont, value, index); | |
808 | } | |
809 | PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){ | |
810 | bool cont; | |
811 | long index = 0; | |
812 | wxString value; | |
813 | ||
814 | cont = self->GetFirstEntry(value, index); | |
815 | return __EnumerationHelper(cont, value, index); | |
816 | } | |
817 | PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){ | |
818 | bool cont; | |
819 | wxString value; | |
820 | ||
821 | cont = self->GetNextEntry(value, index); | |
822 | return __EnumerationHelper(cont, value, index); | |
823 | } | |
824 | long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){ | |
825 | long rv; | |
826 | self->Read(key, &rv, defaultVal); | |
827 | return rv; | |
828 | } | |
829 | double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){ | |
830 | double rv; | |
831 | self->Read(key, &rv, defaultVal); | |
832 | return rv; | |
833 | } | |
834 | bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){ | |
835 | bool rv; | |
836 | self->Read(key, &rv, defaultVal); | |
837 | return rv; | |
838 | } | |
839 | ||
840 | #include <wx/datetime.h> | |
841 | ||
d14a1e28 | 842 | |
cbd72d4f RD |
843 | static const wxString wxPyDateFormatStr(wxT(wxT("%c"))); |
844 | static const wxString wxPyTimeSpanFormatStr(wxT(wxT("%H:%M:%S"))); | |
d14a1e28 RD |
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 | } | |
cbd72d4f RD |
1515 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
1516 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
1517 | return 1; | |
1518 | } | |
1519 | ||
1520 | ||
1521 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
1522 | PyObject *pyobj; | |
1523 | ||
1524 | { | |
1525 | #if wxUSE_UNICODE | |
1526 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1527 | #else | |
1528 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
1529 | #endif | |
1530 | } | |
1531 | return pyobj; | |
1532 | } | |
1533 | ||
1534 | ||
1535 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
1536 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
1537 | return 1; | |
1538 | } | |
1539 | ||
1540 | ||
1541 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
1542 | PyObject *pyobj; | |
1543 | ||
1544 | { | |
1545 | #if wxUSE_UNICODE | |
1546 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1547 | #else | |
1548 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
1549 | #endif | |
1550 | } | |
1551 | return pyobj; | |
1552 | } | |
1553 | ||
1554 | ||
1555 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
1556 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
1557 | return 1; | |
1558 | } | |
1559 | ||
1560 | ||
1561 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
1562 | PyObject *pyobj; | |
1563 | ||
1564 | { | |
1565 | #if wxUSE_UNICODE | |
1566 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1567 | #else | |
1568 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
1569 | #endif | |
1570 | } | |
1571 | return pyobj; | |
1572 | } | |
1573 | ||
1574 | ||
d14a1e28 RD |
1575 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { |
1576 | PyObject *resultobj; | |
1577 | long result; | |
1578 | char *kwnames[] = { | |
1579 | NULL | |
1580 | }; | |
1581 | ||
1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail; | |
1583 | { | |
1584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1585 | result = (long)wxNewId(); | |
1586 | ||
1587 | wxPyEndAllowThreads(__tstate); | |
1588 | if (PyErr_Occurred()) SWIG_fail; | |
1589 | } | |
1590 | resultobj = PyInt_FromLong((long)result); | |
1591 | return resultobj; | |
1592 | fail: | |
1593 | return NULL; | |
1594 | } | |
1595 | ||
1596 | ||
1597 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1598 | PyObject *resultobj; | |
1599 | long arg1 ; | |
1600 | char *kwnames[] = { | |
1601 | (char *) "id", NULL | |
1602 | }; | |
1603 | ||
1604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:RegisterId",kwnames,&arg1)) goto fail; | |
1605 | { | |
1606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1607 | wxRegisterId(arg1); | |
1608 | ||
1609 | wxPyEndAllowThreads(__tstate); | |
1610 | if (PyErr_Occurred()) SWIG_fail; | |
1611 | } | |
1612 | Py_INCREF(Py_None); resultobj = Py_None; | |
1613 | return resultobj; | |
1614 | fail: | |
1615 | return NULL; | |
1616 | } | |
1617 | ||
1618 | ||
1619 | static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1620 | PyObject *resultobj; | |
1621 | long result; | |
1622 | char *kwnames[] = { | |
1623 | NULL | |
1624 | }; | |
1625 | ||
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail; | |
1627 | { | |
1628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1629 | result = (long)wxGetCurrentId(); | |
1630 | ||
1631 | wxPyEndAllowThreads(__tstate); | |
1632 | if (PyErr_Occurred()) SWIG_fail; | |
1633 | } | |
1634 | resultobj = PyInt_FromLong((long)result); | |
1635 | return resultobj; | |
1636 | fail: | |
1637 | return NULL; | |
1638 | } | |
1639 | ||
1640 | ||
1641 | static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1642 | PyObject *resultobj; | |
1643 | char *kwnames[] = { | |
1644 | NULL | |
1645 | }; | |
1646 | ||
1647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail; | |
1648 | { | |
1649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1650 | wxBell(); | |
1651 | ||
1652 | wxPyEndAllowThreads(__tstate); | |
1653 | if (PyErr_Occurred()) SWIG_fail; | |
1654 | } | |
1655 | Py_INCREF(Py_None); resultobj = Py_None; | |
1656 | return resultobj; | |
1657 | fail: | |
1658 | return NULL; | |
1659 | } | |
1660 | ||
1661 | ||
1662 | static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1663 | PyObject *resultobj; | |
1664 | char *kwnames[] = { | |
1665 | NULL | |
1666 | }; | |
1667 | ||
1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail; | |
1669 | { | |
1670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1671 | wxEndBusyCursor(); | |
1672 | ||
1673 | wxPyEndAllowThreads(__tstate); | |
1674 | if (PyErr_Occurred()) SWIG_fail; | |
1675 | } | |
1676 | Py_INCREF(Py_None); resultobj = Py_None; | |
1677 | return resultobj; | |
1678 | fail: | |
1679 | return NULL; | |
1680 | } | |
1681 | ||
1682 | ||
1683 | static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1684 | PyObject *resultobj; | |
423f194a | 1685 | bool arg1 = (bool) True ; |
d14a1e28 RD |
1686 | long result; |
1687 | PyObject * obj0 = 0 ; | |
1688 | char *kwnames[] = { | |
1689 | (char *) "resetTimer", NULL | |
1690 | }; | |
1691 | ||
1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail; | |
1693 | if (obj0) { | |
1694 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
1695 | if (PyErr_Occurred()) SWIG_fail; | |
1696 | } | |
1697 | { | |
1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1699 | result = (long)wxGetElapsedTime(arg1); | |
1700 | ||
1701 | wxPyEndAllowThreads(__tstate); | |
1702 | if (PyErr_Occurred()) SWIG_fail; | |
1703 | } | |
1704 | resultobj = PyInt_FromLong((long)result); | |
1705 | return resultobj; | |
1706 | fail: | |
1707 | return NULL; | |
1708 | } | |
1709 | ||
1710 | ||
1711 | static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1712 | PyObject *resultobj; | |
1713 | int *arg1 = (int *) 0 ; | |
1714 | int *arg2 = (int *) 0 ; | |
1715 | int temp1 ; | |
1716 | int temp2 ; | |
1717 | char *kwnames[] = { | |
1718 | NULL | |
1719 | }; | |
1720 | ||
1721 | arg1 = &temp1; | |
1722 | arg2 = &temp2; | |
1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail; | |
1724 | { | |
1725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1726 | wxGetMousePosition(arg1,arg2); | |
1727 | ||
1728 | wxPyEndAllowThreads(__tstate); | |
1729 | if (PyErr_Occurred()) SWIG_fail; | |
1730 | } | |
1731 | Py_INCREF(Py_None); resultobj = Py_None; | |
1732 | { | |
1733 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1734 | resultobj = t_output_helper(resultobj,o); | |
1735 | } | |
1736 | { | |
1737 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1738 | resultobj = t_output_helper(resultobj,o); | |
1739 | } | |
1740 | return resultobj; | |
1741 | fail: | |
1742 | return NULL; | |
1743 | } | |
1744 | ||
1745 | ||
1746 | static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1747 | PyObject *resultobj; | |
1748 | bool result; | |
1749 | char *kwnames[] = { | |
1750 | NULL | |
1751 | }; | |
1752 | ||
1753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail; | |
1754 | { | |
1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1756 | result = (bool)wxIsBusy(); | |
1757 | ||
1758 | wxPyEndAllowThreads(__tstate); | |
1759 | if (PyErr_Occurred()) SWIG_fail; | |
1760 | } | |
1761 | resultobj = PyInt_FromLong((long)result); | |
1762 | return resultobj; | |
1763 | fail: | |
1764 | return NULL; | |
1765 | } | |
1766 | ||
1767 | ||
1768 | static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1769 | PyObject *resultobj; | |
1770 | wxString result; | |
1771 | char *kwnames[] = { | |
1772 | NULL | |
1773 | }; | |
1774 | ||
1775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail; | |
1776 | { | |
1777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1778 | result = wxNow(); | |
1779 | ||
1780 | wxPyEndAllowThreads(__tstate); | |
1781 | if (PyErr_Occurred()) SWIG_fail; | |
1782 | } | |
1783 | { | |
1784 | #if wxUSE_UNICODE | |
1785 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1786 | #else | |
1787 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1788 | #endif | |
1789 | } | |
1790 | return resultobj; | |
1791 | fail: | |
1792 | return NULL; | |
1793 | } | |
1794 | ||
1795 | ||
1796 | static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1797 | PyObject *resultobj; | |
1798 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
1799 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
1800 | bool result; | |
423f194a | 1801 | bool temp1 = False ; |
d14a1e28 RD |
1802 | PyObject * obj0 = 0 ; |
1803 | char *kwnames[] = { | |
1804 | (char *) "command", NULL | |
1805 | }; | |
1806 | ||
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail; | |
1808 | if (obj0) { | |
1809 | { | |
1810 | arg1 = wxString_in_helper(obj0); | |
1811 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1812 | temp1 = True; |
d14a1e28 RD |
1813 | } |
1814 | } | |
1815 | { | |
1816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1817 | result = (bool)wxShell((wxString const &)*arg1); | |
1818 | ||
1819 | wxPyEndAllowThreads(__tstate); | |
1820 | if (PyErr_Occurred()) SWIG_fail; | |
1821 | } | |
1822 | resultobj = PyInt_FromLong((long)result); | |
1823 | { | |
1824 | if (temp1) | |
1825 | delete arg1; | |
1826 | } | |
1827 | return resultobj; | |
1828 | fail: | |
1829 | { | |
1830 | if (temp1) | |
1831 | delete arg1; | |
1832 | } | |
1833 | return NULL; | |
1834 | } | |
1835 | ||
1836 | ||
1837 | static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1838 | PyObject *resultobj; | |
1839 | char *kwnames[] = { | |
1840 | NULL | |
1841 | }; | |
1842 | ||
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail; | |
1844 | { | |
1845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1846 | wxStartTimer(); | |
1847 | ||
1848 | wxPyEndAllowThreads(__tstate); | |
1849 | if (PyErr_Occurred()) SWIG_fail; | |
1850 | } | |
1851 | Py_INCREF(Py_None); resultobj = Py_None; | |
1852 | return resultobj; | |
1853 | fail: | |
1854 | return NULL; | |
1855 | } | |
1856 | ||
1857 | ||
1858 | static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1859 | PyObject *resultobj; | |
1860 | int *arg1 = (int *) 0 ; | |
1861 | int *arg2 = (int *) 0 ; | |
1862 | int result; | |
1863 | int temp1 ; | |
1864 | int temp2 ; | |
1865 | char *kwnames[] = { | |
1866 | NULL | |
1867 | }; | |
1868 | ||
1869 | arg1 = &temp1; | |
1870 | arg2 = &temp2; | |
1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail; | |
1872 | { | |
1873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1874 | result = (int)wxGetOsVersion(arg1,arg2); | |
1875 | ||
1876 | wxPyEndAllowThreads(__tstate); | |
1877 | if (PyErr_Occurred()) SWIG_fail; | |
1878 | } | |
1879 | resultobj = PyInt_FromLong((long)result); | |
1880 | { | |
1881 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
1882 | resultobj = t_output_helper(resultobj,o); | |
1883 | } | |
1884 | { | |
1885 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1886 | resultobj = t_output_helper(resultobj,o); | |
1887 | } | |
1888 | return resultobj; | |
1889 | fail: | |
1890 | return NULL; | |
1891 | } | |
1892 | ||
1893 | ||
1894 | static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1895 | PyObject *resultobj; | |
1896 | wxString result; | |
1897 | char *kwnames[] = { | |
1898 | NULL | |
1899 | }; | |
1900 | ||
1901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail; | |
1902 | { | |
1903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1904 | result = wxGetOsDescription(); | |
1905 | ||
1906 | wxPyEndAllowThreads(__tstate); | |
1907 | if (PyErr_Occurred()) SWIG_fail; | |
1908 | } | |
1909 | { | |
1910 | #if wxUSE_UNICODE | |
1911 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1912 | #else | |
1913 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1914 | #endif | |
1915 | } | |
1916 | return resultobj; | |
1917 | fail: | |
1918 | return NULL; | |
1919 | } | |
1920 | ||
1921 | ||
1922 | static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1923 | PyObject *resultobj; | |
1924 | long result; | |
1925 | char *kwnames[] = { | |
1926 | NULL | |
1927 | }; | |
1928 | ||
1929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail; | |
1930 | { | |
1931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1932 | result = (long)wxGetFreeMemory(); | |
1933 | ||
1934 | wxPyEndAllowThreads(__tstate); | |
1935 | if (PyErr_Occurred()) SWIG_fail; | |
1936 | } | |
1937 | resultobj = PyInt_FromLong((long)result); | |
1938 | return resultobj; | |
1939 | fail: | |
1940 | return NULL; | |
1941 | } | |
1942 | ||
1943 | ||
1944 | static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1945 | PyObject *resultobj; | |
1946 | int arg1 ; | |
1947 | bool result; | |
1948 | char *kwnames[] = { | |
1949 | (char *) "wFlags", NULL | |
1950 | }; | |
1951 | ||
1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Shutdown",kwnames,&arg1)) goto fail; | |
1953 | { | |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | result = (bool)wxShutdown((wxShutdownFlags )arg1); | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) SWIG_fail; | |
1959 | } | |
1960 | resultobj = PyInt_FromLong((long)result); | |
1961 | return resultobj; | |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
1967 | static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1968 | PyObject *resultobj; | |
1969 | int arg1 ; | |
1970 | char *kwnames[] = { | |
1971 | (char *) "secs", NULL | |
1972 | }; | |
1973 | ||
1974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Sleep",kwnames,&arg1)) goto fail; | |
1975 | { | |
1976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1977 | wxSleep(arg1); | |
1978 | ||
1979 | wxPyEndAllowThreads(__tstate); | |
1980 | if (PyErr_Occurred()) SWIG_fail; | |
1981 | } | |
1982 | Py_INCREF(Py_None); resultobj = Py_None; | |
1983 | return resultobj; | |
1984 | fail: | |
1985 | return NULL; | |
1986 | } | |
1987 | ||
1988 | ||
1989 | static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1990 | PyObject *resultobj; | |
1991 | unsigned long arg1 ; | |
1992 | PyObject * obj0 = 0 ; | |
1993 | char *kwnames[] = { | |
1994 | (char *) "milliseconds", NULL | |
1995 | }; | |
1996 | ||
1997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail; | |
1998 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
1999 | if (PyErr_Occurred()) SWIG_fail; | |
2000 | { | |
2001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2002 | wxUsleep(arg1); | |
2003 | ||
2004 | wxPyEndAllowThreads(__tstate); | |
2005 | if (PyErr_Occurred()) SWIG_fail; | |
2006 | } | |
2007 | Py_INCREF(Py_None); resultobj = Py_None; | |
2008 | return resultobj; | |
2009 | fail: | |
2010 | return NULL; | |
2011 | } | |
2012 | ||
2013 | ||
2014 | static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2015 | PyObject *resultobj; | |
2016 | bool arg1 ; | |
2017 | PyObject * obj0 = 0 ; | |
2018 | char *kwnames[] = { | |
2019 | (char *) "enable", NULL | |
2020 | }; | |
2021 | ||
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail; | |
2023 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
2024 | if (PyErr_Occurred()) SWIG_fail; | |
2025 | { | |
2026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2027 | wxEnableTopLevelWindows(arg1); | |
2028 | ||
2029 | wxPyEndAllowThreads(__tstate); | |
2030 | if (PyErr_Occurred()) SWIG_fail; | |
2031 | } | |
2032 | Py_INCREF(Py_None); resultobj = Py_None; | |
2033 | return resultobj; | |
2034 | fail: | |
2035 | return NULL; | |
2036 | } | |
2037 | ||
2038 | ||
2039 | static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2040 | PyObject *resultobj; | |
2041 | wxString *arg1 = 0 ; | |
2042 | wxString result; | |
423f194a | 2043 | bool temp1 = False ; |
d14a1e28 RD |
2044 | PyObject * obj0 = 0 ; |
2045 | char *kwnames[] = { | |
2046 | (char *) "in", NULL | |
2047 | }; | |
2048 | ||
2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail; | |
2050 | { | |
2051 | arg1 = wxString_in_helper(obj0); | |
2052 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2053 | temp1 = True; |
d14a1e28 RD |
2054 | } |
2055 | { | |
2056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2057 | result = wxStripMenuCodes((wxString const &)*arg1); | |
2058 | ||
2059 | wxPyEndAllowThreads(__tstate); | |
2060 | if (PyErr_Occurred()) SWIG_fail; | |
2061 | } | |
2062 | { | |
2063 | #if wxUSE_UNICODE | |
2064 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2065 | #else | |
2066 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2067 | #endif | |
2068 | } | |
2069 | { | |
2070 | if (temp1) | |
2071 | delete arg1; | |
2072 | } | |
2073 | return resultobj; | |
2074 | fail: | |
2075 | { | |
2076 | if (temp1) | |
2077 | delete arg1; | |
2078 | } | |
2079 | return NULL; | |
2080 | } | |
2081 | ||
2082 | ||
2083 | static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2084 | PyObject *resultobj; | |
2085 | wxString result; | |
2086 | char *kwnames[] = { | |
2087 | NULL | |
2088 | }; | |
2089 | ||
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail; | |
2091 | { | |
2092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2093 | result = wxGetEmailAddress(); | |
2094 | ||
2095 | wxPyEndAllowThreads(__tstate); | |
2096 | if (PyErr_Occurred()) SWIG_fail; | |
2097 | } | |
2098 | { | |
2099 | #if wxUSE_UNICODE | |
2100 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2101 | #else | |
2102 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2103 | #endif | |
2104 | } | |
2105 | return resultobj; | |
2106 | fail: | |
2107 | return NULL; | |
2108 | } | |
2109 | ||
2110 | ||
2111 | static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2112 | PyObject *resultobj; | |
2113 | wxString result; | |
2114 | char *kwnames[] = { | |
2115 | NULL | |
2116 | }; | |
2117 | ||
2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail; | |
2119 | { | |
2120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2121 | result = wxGetHostName(); | |
2122 | ||
2123 | wxPyEndAllowThreads(__tstate); | |
2124 | if (PyErr_Occurred()) SWIG_fail; | |
2125 | } | |
2126 | { | |
2127 | #if wxUSE_UNICODE | |
2128 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2129 | #else | |
2130 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2131 | #endif | |
2132 | } | |
2133 | return resultobj; | |
2134 | fail: | |
2135 | return NULL; | |
2136 | } | |
2137 | ||
2138 | ||
2139 | static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2140 | PyObject *resultobj; | |
2141 | wxString result; | |
2142 | char *kwnames[] = { | |
2143 | NULL | |
2144 | }; | |
2145 | ||
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail; | |
2147 | { | |
2148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2149 | result = wxGetFullHostName(); | |
2150 | ||
2151 | wxPyEndAllowThreads(__tstate); | |
2152 | if (PyErr_Occurred()) SWIG_fail; | |
2153 | } | |
2154 | { | |
2155 | #if wxUSE_UNICODE | |
2156 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2157 | #else | |
2158 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2159 | #endif | |
2160 | } | |
2161 | return resultobj; | |
2162 | fail: | |
2163 | return NULL; | |
2164 | } | |
2165 | ||
2166 | ||
2167 | static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2168 | PyObject *resultobj; | |
2169 | wxString result; | |
2170 | char *kwnames[] = { | |
2171 | NULL | |
2172 | }; | |
2173 | ||
2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail; | |
2175 | { | |
2176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2177 | result = wxGetUserId(); | |
2178 | ||
2179 | wxPyEndAllowThreads(__tstate); | |
2180 | if (PyErr_Occurred()) SWIG_fail; | |
2181 | } | |
2182 | { | |
2183 | #if wxUSE_UNICODE | |
2184 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2185 | #else | |
2186 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2187 | #endif | |
2188 | } | |
2189 | return resultobj; | |
2190 | fail: | |
2191 | return NULL; | |
2192 | } | |
2193 | ||
2194 | ||
2195 | static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2196 | PyObject *resultobj; | |
2197 | wxString result; | |
2198 | char *kwnames[] = { | |
2199 | NULL | |
2200 | }; | |
2201 | ||
2202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail; | |
2203 | { | |
2204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2205 | result = wxGetUserName(); | |
2206 | ||
2207 | wxPyEndAllowThreads(__tstate); | |
2208 | if (PyErr_Occurred()) SWIG_fail; | |
2209 | } | |
2210 | { | |
2211 | #if wxUSE_UNICODE | |
2212 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2213 | #else | |
2214 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2215 | #endif | |
2216 | } | |
2217 | return resultobj; | |
2218 | fail: | |
2219 | return NULL; | |
2220 | } | |
2221 | ||
2222 | ||
2223 | static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2224 | PyObject *resultobj; | |
2225 | wxString result; | |
2226 | char *kwnames[] = { | |
2227 | NULL | |
2228 | }; | |
2229 | ||
2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail; | |
2231 | { | |
2232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2233 | result = wxGetHomeDir(); | |
2234 | ||
2235 | wxPyEndAllowThreads(__tstate); | |
2236 | if (PyErr_Occurred()) SWIG_fail; | |
2237 | } | |
2238 | { | |
2239 | #if wxUSE_UNICODE | |
2240 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2241 | #else | |
2242 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2243 | #endif | |
2244 | } | |
2245 | return resultobj; | |
2246 | fail: | |
2247 | return NULL; | |
2248 | } | |
2249 | ||
2250 | ||
2251 | static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2252 | PyObject *resultobj; | |
2253 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
2254 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2255 | wxString result; | |
423f194a | 2256 | bool temp1 = False ; |
d14a1e28 RD |
2257 | PyObject * obj0 = 0 ; |
2258 | char *kwnames[] = { | |
2259 | (char *) "user", NULL | |
2260 | }; | |
2261 | ||
2262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail; | |
2263 | if (obj0) { | |
2264 | { | |
2265 | arg1 = wxString_in_helper(obj0); | |
2266 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2267 | temp1 = True; |
d14a1e28 RD |
2268 | } |
2269 | } | |
2270 | { | |
2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2272 | result = wxGetUserHome((wxString const &)*arg1); | |
2273 | ||
2274 | wxPyEndAllowThreads(__tstate); | |
2275 | if (PyErr_Occurred()) SWIG_fail; | |
2276 | } | |
2277 | { | |
2278 | #if wxUSE_UNICODE | |
2279 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2280 | #else | |
2281 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2282 | #endif | |
2283 | } | |
2284 | { | |
2285 | if (temp1) | |
2286 | delete arg1; | |
2287 | } | |
2288 | return resultobj; | |
2289 | fail: | |
2290 | { | |
2291 | if (temp1) | |
2292 | delete arg1; | |
2293 | } | |
2294 | return NULL; | |
2295 | } | |
2296 | ||
2297 | ||
2298 | static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2299 | PyObject *resultobj; | |
2300 | unsigned long result; | |
2301 | char *kwnames[] = { | |
2302 | NULL | |
2303 | }; | |
2304 | ||
2305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail; | |
2306 | { | |
2307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2308 | result = (unsigned long)wxGetProcessId(); | |
2309 | ||
2310 | wxPyEndAllowThreads(__tstate); | |
2311 | if (PyErr_Occurred()) SWIG_fail; | |
2312 | } | |
2313 | resultobj = PyInt_FromLong((long)result); | |
2314 | return resultobj; | |
2315 | fail: | |
2316 | return NULL; | |
2317 | } | |
2318 | ||
2319 | ||
2320 | static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2321 | PyObject *resultobj; | |
2322 | char *kwnames[] = { | |
2323 | NULL | |
2324 | }; | |
2325 | ||
2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail; | |
2327 | { | |
2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2329 | wxTrap(); | |
2330 | ||
2331 | wxPyEndAllowThreads(__tstate); | |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
2333 | } | |
2334 | Py_INCREF(Py_None); resultobj = Py_None; | |
2335 | return resultobj; | |
2336 | fail: | |
2337 | return NULL; | |
2338 | } | |
2339 | ||
2340 | ||
2341 | static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2342 | PyObject *resultobj; | |
2343 | wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ; | |
2344 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2345 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2346 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2347 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2348 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2349 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2350 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2351 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
2352 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
2353 | int arg6 = (int) 0 ; | |
2354 | wxWindow *arg7 = (wxWindow *) NULL ; | |
2355 | int arg8 = (int) -1 ; | |
2356 | int arg9 = (int) -1 ; | |
2357 | wxString result; | |
423f194a RD |
2358 | bool temp1 = False ; |
2359 | bool temp2 = False ; | |
2360 | bool temp3 = False ; | |
2361 | bool temp4 = False ; | |
2362 | bool temp5 = False ; | |
d14a1e28 RD |
2363 | PyObject * obj0 = 0 ; |
2364 | PyObject * obj1 = 0 ; | |
2365 | PyObject * obj2 = 0 ; | |
2366 | PyObject * obj3 = 0 ; | |
2367 | PyObject * obj4 = 0 ; | |
2368 | PyObject * obj6 = 0 ; | |
2369 | char *kwnames[] = { | |
2370 | (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL | |
2371 | }; | |
2372 | ||
2373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOiOii:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&arg9)) goto fail; | |
2374 | if (obj0) { | |
2375 | { | |
2376 | arg1 = wxString_in_helper(obj0); | |
2377 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2378 | temp1 = True; |
d14a1e28 RD |
2379 | } |
2380 | } | |
2381 | if (obj1) { | |
2382 | { | |
2383 | arg2 = wxString_in_helper(obj1); | |
2384 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2385 | temp2 = True; |
d14a1e28 RD |
2386 | } |
2387 | } | |
2388 | if (obj2) { | |
2389 | { | |
2390 | arg3 = wxString_in_helper(obj2); | |
2391 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2392 | temp3 = True; |
d14a1e28 RD |
2393 | } |
2394 | } | |
2395 | if (obj3) { | |
2396 | { | |
2397 | arg4 = wxString_in_helper(obj3); | |
2398 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2399 | temp4 = True; |
d14a1e28 RD |
2400 | } |
2401 | } | |
2402 | if (obj4) { | |
2403 | { | |
2404 | arg5 = wxString_in_helper(obj4); | |
2405 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 2406 | temp5 = True; |
d14a1e28 RD |
2407 | } |
2408 | } | |
2409 | if (obj6) { | |
2410 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2411 | } | |
2412 | { | |
2413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2414 | result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9); | |
2415 | ||
2416 | wxPyEndAllowThreads(__tstate); | |
2417 | if (PyErr_Occurred()) SWIG_fail; | |
2418 | } | |
2419 | { | |
2420 | #if wxUSE_UNICODE | |
2421 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2422 | #else | |
2423 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2424 | #endif | |
2425 | } | |
2426 | { | |
2427 | if (temp1) | |
2428 | delete arg1; | |
2429 | } | |
2430 | { | |
2431 | if (temp2) | |
2432 | delete arg2; | |
2433 | } | |
2434 | { | |
2435 | if (temp3) | |
2436 | delete arg3; | |
2437 | } | |
2438 | { | |
2439 | if (temp4) | |
2440 | delete arg4; | |
2441 | } | |
2442 | { | |
2443 | if (temp5) | |
2444 | delete arg5; | |
2445 | } | |
2446 | return resultobj; | |
2447 | fail: | |
2448 | { | |
2449 | if (temp1) | |
2450 | delete arg1; | |
2451 | } | |
2452 | { | |
2453 | if (temp2) | |
2454 | delete arg2; | |
2455 | } | |
2456 | { | |
2457 | if (temp3) | |
2458 | delete arg3; | |
2459 | } | |
2460 | { | |
2461 | if (temp4) | |
2462 | delete arg4; | |
2463 | } | |
2464 | { | |
2465 | if (temp5) | |
2466 | delete arg5; | |
2467 | } | |
2468 | return NULL; | |
2469 | } | |
2470 | ||
2471 | ||
2472 | static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2473 | PyObject *resultobj; | |
2474 | wxString *arg1 = 0 ; | |
2475 | wxString *arg2 = 0 ; | |
2476 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2477 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2478 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2479 | wxString result; | |
423f194a RD |
2480 | bool temp1 = False ; |
2481 | bool temp2 = False ; | |
2482 | bool temp3 = False ; | |
d14a1e28 RD |
2483 | PyObject * obj0 = 0 ; |
2484 | PyObject * obj1 = 0 ; | |
2485 | PyObject * obj2 = 0 ; | |
2486 | PyObject * obj3 = 0 ; | |
2487 | char *kwnames[] = { | |
2488 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2489 | }; | |
2490 | ||
2491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2492 | { | |
2493 | arg1 = wxString_in_helper(obj0); | |
2494 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2495 | temp1 = True; |
d14a1e28 RD |
2496 | } |
2497 | { | |
2498 | arg2 = wxString_in_helper(obj1); | |
2499 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2500 | temp2 = True; |
d14a1e28 RD |
2501 | } |
2502 | if (obj2) { | |
2503 | { | |
2504 | arg3 = wxString_in_helper(obj2); | |
2505 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2506 | temp3 = True; |
d14a1e28 RD |
2507 | } |
2508 | } | |
2509 | if (obj3) { | |
2510 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2511 | } | |
2512 | { | |
2513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2514 | result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2515 | ||
2516 | wxPyEndAllowThreads(__tstate); | |
2517 | if (PyErr_Occurred()) SWIG_fail; | |
2518 | } | |
2519 | { | |
2520 | #if wxUSE_UNICODE | |
2521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2522 | #else | |
2523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2524 | #endif | |
2525 | } | |
2526 | { | |
2527 | if (temp1) | |
2528 | delete arg1; | |
2529 | } | |
2530 | { | |
2531 | if (temp2) | |
2532 | delete arg2; | |
2533 | } | |
2534 | { | |
2535 | if (temp3) | |
2536 | delete arg3; | |
2537 | } | |
2538 | return resultobj; | |
2539 | fail: | |
2540 | { | |
2541 | if (temp1) | |
2542 | delete arg1; | |
2543 | } | |
2544 | { | |
2545 | if (temp2) | |
2546 | delete arg2; | |
2547 | } | |
2548 | { | |
2549 | if (temp3) | |
2550 | delete arg3; | |
2551 | } | |
2552 | return NULL; | |
2553 | } | |
2554 | ||
2555 | ||
2556 | static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2557 | PyObject *resultobj; | |
2558 | wxString *arg1 = 0 ; | |
2559 | wxString *arg2 = 0 ; | |
2560 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2561 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2562 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2563 | wxString result; | |
423f194a RD |
2564 | bool temp1 = False ; |
2565 | bool temp2 = False ; | |
2566 | bool temp3 = False ; | |
d14a1e28 RD |
2567 | PyObject * obj0 = 0 ; |
2568 | PyObject * obj1 = 0 ; | |
2569 | PyObject * obj2 = 0 ; | |
2570 | PyObject * obj3 = 0 ; | |
2571 | char *kwnames[] = { | |
2572 | (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL | |
2573 | }; | |
2574 | ||
2575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2576 | { | |
2577 | arg1 = wxString_in_helper(obj0); | |
2578 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2579 | temp1 = True; |
d14a1e28 RD |
2580 | } |
2581 | { | |
2582 | arg2 = wxString_in_helper(obj1); | |
2583 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2584 | temp2 = True; |
d14a1e28 RD |
2585 | } |
2586 | if (obj2) { | |
2587 | { | |
2588 | arg3 = wxString_in_helper(obj2); | |
2589 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2590 | temp3 = True; |
d14a1e28 RD |
2591 | } |
2592 | } | |
2593 | if (obj3) { | |
2594 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2595 | } | |
2596 | { | |
2597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2598 | result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2599 | ||
2600 | wxPyEndAllowThreads(__tstate); | |
2601 | if (PyErr_Occurred()) SWIG_fail; | |
2602 | } | |
2603 | { | |
2604 | #if wxUSE_UNICODE | |
2605 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2606 | #else | |
2607 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2608 | #endif | |
2609 | } | |
2610 | { | |
2611 | if (temp1) | |
2612 | delete arg1; | |
2613 | } | |
2614 | { | |
2615 | if (temp2) | |
2616 | delete arg2; | |
2617 | } | |
2618 | { | |
2619 | if (temp3) | |
2620 | delete arg3; | |
2621 | } | |
2622 | return resultobj; | |
2623 | fail: | |
2624 | { | |
2625 | if (temp1) | |
2626 | delete arg1; | |
2627 | } | |
2628 | { | |
2629 | if (temp2) | |
2630 | delete arg2; | |
2631 | } | |
2632 | { | |
2633 | if (temp3) | |
2634 | delete arg3; | |
2635 | } | |
2636 | return NULL; | |
2637 | } | |
2638 | ||
2639 | ||
2640 | static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2641 | PyObject *resultobj; | |
2642 | wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ; | |
2643 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
2644 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2645 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2646 | long arg3 = (long) wxDD_DEFAULT_STYLE ; | |
2647 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2648 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2649 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2650 | wxString result; | |
423f194a RD |
2651 | bool temp1 = False ; |
2652 | bool temp2 = False ; | |
d14a1e28 RD |
2653 | wxPoint temp4 ; |
2654 | PyObject * obj0 = 0 ; | |
2655 | PyObject * obj1 = 0 ; | |
2656 | PyObject * obj3 = 0 ; | |
2657 | PyObject * obj4 = 0 ; | |
2658 | char *kwnames[] = { | |
2659 | (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL | |
2660 | }; | |
2661 | ||
2662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOlOO:DirSelector",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4)) goto fail; | |
2663 | if (obj0) { | |
2664 | { | |
2665 | arg1 = wxString_in_helper(obj0); | |
2666 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2667 | temp1 = True; |
d14a1e28 RD |
2668 | } |
2669 | } | |
2670 | if (obj1) { | |
2671 | { | |
2672 | arg2 = wxString_in_helper(obj1); | |
2673 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2674 | temp2 = True; |
d14a1e28 RD |
2675 | } |
2676 | } | |
2677 | if (obj3) { | |
2678 | { | |
2679 | arg4 = &temp4; | |
2680 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2681 | } | |
2682 | } | |
2683 | if (obj4) { | |
2684 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2685 | } | |
2686 | { | |
2687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2688 | result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5); | |
2689 | ||
2690 | wxPyEndAllowThreads(__tstate); | |
2691 | if (PyErr_Occurred()) SWIG_fail; | |
2692 | } | |
2693 | { | |
2694 | #if wxUSE_UNICODE | |
2695 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2696 | #else | |
2697 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2698 | #endif | |
2699 | } | |
2700 | { | |
2701 | if (temp1) | |
2702 | delete arg1; | |
2703 | } | |
2704 | { | |
2705 | if (temp2) | |
2706 | delete arg2; | |
2707 | } | |
2708 | return resultobj; | |
2709 | fail: | |
2710 | { | |
2711 | if (temp1) | |
2712 | delete arg1; | |
2713 | } | |
2714 | { | |
2715 | if (temp2) | |
2716 | delete arg2; | |
2717 | } | |
2718 | return NULL; | |
2719 | } | |
2720 | ||
2721 | ||
2722 | static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2723 | PyObject *resultobj; | |
2724 | wxString *arg1 = 0 ; | |
2725 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2726 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2727 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2728 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2729 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2730 | int arg5 = (int) -1 ; | |
2731 | int arg6 = (int) -1 ; | |
423f194a | 2732 | bool arg7 = (bool) True ; |
d14a1e28 | 2733 | wxString result; |
423f194a RD |
2734 | bool temp1 = False ; |
2735 | bool temp2 = False ; | |
2736 | bool temp3 = False ; | |
d14a1e28 RD |
2737 | PyObject * obj0 = 0 ; |
2738 | PyObject * obj1 = 0 ; | |
2739 | PyObject * obj2 = 0 ; | |
2740 | PyObject * obj3 = 0 ; | |
2741 | PyObject * obj6 = 0 ; | |
2742 | char *kwnames[] = { | |
2743 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL | |
2744 | }; | |
2745 | ||
2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOiiO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
2747 | { | |
2748 | arg1 = wxString_in_helper(obj0); | |
2749 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2750 | temp1 = True; |
d14a1e28 RD |
2751 | } |
2752 | if (obj1) { | |
2753 | { | |
2754 | arg2 = wxString_in_helper(obj1); | |
2755 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2756 | temp2 = True; |
d14a1e28 RD |
2757 | } |
2758 | } | |
2759 | if (obj2) { | |
2760 | { | |
2761 | arg3 = wxString_in_helper(obj2); | |
2762 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2763 | temp3 = True; |
d14a1e28 RD |
2764 | } |
2765 | } | |
2766 | if (obj3) { | |
2767 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2768 | } | |
2769 | if (obj6) { | |
2770 | arg7 = PyInt_AsLong(obj6) ? true : false; | |
2771 | if (PyErr_Occurred()) SWIG_fail; | |
2772 | } | |
2773 | { | |
2774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2775 | result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7); | |
2776 | ||
2777 | wxPyEndAllowThreads(__tstate); | |
2778 | if (PyErr_Occurred()) SWIG_fail; | |
2779 | } | |
2780 | { | |
2781 | #if wxUSE_UNICODE | |
2782 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2783 | #else | |
2784 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2785 | #endif | |
2786 | } | |
2787 | { | |
2788 | if (temp1) | |
2789 | delete arg1; | |
2790 | } | |
2791 | { | |
2792 | if (temp2) | |
2793 | delete arg2; | |
2794 | } | |
2795 | { | |
2796 | if (temp3) | |
2797 | delete arg3; | |
2798 | } | |
2799 | return resultobj; | |
2800 | fail: | |
2801 | { | |
2802 | if (temp1) | |
2803 | delete arg1; | |
2804 | } | |
2805 | { | |
2806 | if (temp2) | |
2807 | delete arg2; | |
2808 | } | |
2809 | { | |
2810 | if (temp3) | |
2811 | delete arg3; | |
2812 | } | |
2813 | return NULL; | |
2814 | } | |
2815 | ||
2816 | ||
2817 | static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2818 | PyObject *resultobj; | |
2819 | wxString *arg1 = 0 ; | |
2820 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
2821 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
2822 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2823 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2824 | wxWindow *arg4 = (wxWindow *) NULL ; | |
2825 | wxString result; | |
423f194a RD |
2826 | bool temp1 = False ; |
2827 | bool temp2 = False ; | |
2828 | bool temp3 = False ; | |
d14a1e28 RD |
2829 | PyObject * obj0 = 0 ; |
2830 | PyObject * obj1 = 0 ; | |
2831 | PyObject * obj2 = 0 ; | |
2832 | PyObject * obj3 = 0 ; | |
2833 | char *kwnames[] = { | |
2834 | (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL | |
2835 | }; | |
2836 | ||
2837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2838 | { | |
2839 | arg1 = wxString_in_helper(obj0); | |
2840 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2841 | temp1 = True; |
d14a1e28 RD |
2842 | } |
2843 | if (obj1) { | |
2844 | { | |
2845 | arg2 = wxString_in_helper(obj1); | |
2846 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2847 | temp2 = True; |
d14a1e28 RD |
2848 | } |
2849 | } | |
2850 | if (obj2) { | |
2851 | { | |
2852 | arg3 = wxString_in_helper(obj2); | |
2853 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2854 | temp3 = True; |
d14a1e28 RD |
2855 | } |
2856 | } | |
2857 | if (obj3) { | |
2858 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2859 | } | |
2860 | { | |
2861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2862 | result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
2863 | ||
2864 | wxPyEndAllowThreads(__tstate); | |
2865 | if (PyErr_Occurred()) SWIG_fail; | |
2866 | } | |
2867 | { | |
2868 | #if wxUSE_UNICODE | |
2869 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2870 | #else | |
2871 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2872 | #endif | |
2873 | } | |
2874 | { | |
2875 | if (temp1) | |
2876 | delete arg1; | |
2877 | } | |
2878 | { | |
2879 | if (temp2) | |
2880 | delete arg2; | |
2881 | } | |
2882 | { | |
2883 | if (temp3) | |
2884 | delete arg3; | |
2885 | } | |
2886 | return resultobj; | |
2887 | fail: | |
2888 | { | |
2889 | if (temp1) | |
2890 | delete arg1; | |
2891 | } | |
2892 | { | |
2893 | if (temp2) | |
2894 | delete arg2; | |
2895 | } | |
2896 | { | |
2897 | if (temp3) | |
2898 | delete arg3; | |
2899 | } | |
2900 | return NULL; | |
2901 | } | |
2902 | ||
2903 | ||
2904 | static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2905 | PyObject *resultobj; | |
2906 | wxString *arg1 = 0 ; | |
2907 | wxString *arg2 = 0 ; | |
2908 | int arg3 ; | |
2909 | wxString *arg4 = (wxString *) 0 ; | |
2910 | wxWindow *arg5 = (wxWindow *) NULL ; | |
2911 | int arg6 = (int) -1 ; | |
2912 | int arg7 = (int) -1 ; | |
423f194a | 2913 | bool arg8 = (bool) True ; |
d14a1e28 RD |
2914 | int arg9 = (int) 150 ; |
2915 | int arg10 = (int) 200 ; | |
2916 | wxString result; | |
423f194a RD |
2917 | bool temp1 = False ; |
2918 | bool temp2 = False ; | |
d14a1e28 RD |
2919 | PyObject * obj0 = 0 ; |
2920 | PyObject * obj1 = 0 ; | |
2921 | PyObject * obj2 = 0 ; | |
2922 | PyObject * obj3 = 0 ; | |
2923 | PyObject * obj6 = 0 ; | |
2924 | char *kwnames[] = { | |
2925 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
2926 | }; | |
2927 | ||
2928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
2929 | { | |
2930 | arg1 = wxString_in_helper(obj0); | |
2931 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2932 | temp1 = True; |
d14a1e28 RD |
2933 | } |
2934 | { | |
2935 | arg2 = wxString_in_helper(obj1); | |
2936 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2937 | temp2 = True; |
d14a1e28 RD |
2938 | } |
2939 | { | |
2940 | arg3 = PyList_Size(obj2); | |
2941 | arg4 = wxString_LIST_helper(obj2); | |
2942 | if (arg4 == NULL) SWIG_fail; | |
2943 | } | |
2944 | if (obj3) { | |
2945 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2946 | } | |
2947 | if (obj6) { | |
2948 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
2949 | if (PyErr_Occurred()) SWIG_fail; | |
2950 | } | |
2951 | { | |
2952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2953 | result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
2954 | ||
2955 | wxPyEndAllowThreads(__tstate); | |
2956 | if (PyErr_Occurred()) SWIG_fail; | |
2957 | } | |
2958 | { | |
2959 | #if wxUSE_UNICODE | |
2960 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2961 | #else | |
2962 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2963 | #endif | |
2964 | } | |
2965 | { | |
2966 | if (temp1) | |
2967 | delete arg1; | |
2968 | } | |
2969 | { | |
2970 | if (temp2) | |
2971 | delete arg2; | |
2972 | } | |
2973 | { | |
2974 | if (arg4) delete [] arg4; | |
2975 | } | |
2976 | return resultobj; | |
2977 | fail: | |
2978 | { | |
2979 | if (temp1) | |
2980 | delete arg1; | |
2981 | } | |
2982 | { | |
2983 | if (temp2) | |
2984 | delete arg2; | |
2985 | } | |
2986 | { | |
2987 | if (arg4) delete [] arg4; | |
2988 | } | |
2989 | return NULL; | |
2990 | } | |
2991 | ||
2992 | ||
2993 | static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2994 | PyObject *resultobj; | |
2995 | wxString *arg1 = 0 ; | |
2996 | wxString *arg2 = 0 ; | |
2997 | int arg3 ; | |
2998 | wxString *arg4 = (wxString *) 0 ; | |
2999 | wxWindow *arg5 = (wxWindow *) NULL ; | |
3000 | int arg6 = (int) -1 ; | |
3001 | int arg7 = (int) -1 ; | |
423f194a | 3002 | bool arg8 = (bool) True ; |
d14a1e28 RD |
3003 | int arg9 = (int) 150 ; |
3004 | int arg10 = (int) 200 ; | |
3005 | int result; | |
423f194a RD |
3006 | bool temp1 = False ; |
3007 | bool temp2 = False ; | |
d14a1e28 RD |
3008 | PyObject * obj0 = 0 ; |
3009 | PyObject * obj1 = 0 ; | |
3010 | PyObject * obj2 = 0 ; | |
3011 | PyObject * obj3 = 0 ; | |
3012 | PyObject * obj6 = 0 ; | |
3013 | char *kwnames[] = { | |
3014 | (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL | |
3015 | }; | |
3016 | ||
3017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OiiOii:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&arg6,&arg7,&obj6,&arg9,&arg10)) goto fail; | |
3018 | { | |
3019 | arg1 = wxString_in_helper(obj0); | |
3020 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3021 | temp1 = True; |
d14a1e28 RD |
3022 | } |
3023 | { | |
3024 | arg2 = wxString_in_helper(obj1); | |
3025 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3026 | temp2 = True; |
d14a1e28 RD |
3027 | } |
3028 | { | |
3029 | arg3 = PyList_Size(obj2); | |
3030 | arg4 = wxString_LIST_helper(obj2); | |
3031 | if (arg4 == NULL) SWIG_fail; | |
3032 | } | |
3033 | if (obj3) { | |
3034 | if ((SWIG_ConvertPtr(obj3,(void **) &arg5, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3035 | } | |
3036 | if (obj6) { | |
3037 | arg8 = PyInt_AsLong(obj6) ? true : false; | |
3038 | if (PyErr_Occurred()) SWIG_fail; | |
3039 | } | |
3040 | { | |
3041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3042 | result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10); | |
3043 | ||
3044 | wxPyEndAllowThreads(__tstate); | |
3045 | if (PyErr_Occurred()) SWIG_fail; | |
3046 | } | |
3047 | resultobj = PyInt_FromLong((long)result); | |
3048 | { | |
3049 | if (temp1) | |
3050 | delete arg1; | |
3051 | } | |
3052 | { | |
3053 | if (temp2) | |
3054 | delete arg2; | |
3055 | } | |
3056 | { | |
3057 | if (arg4) delete [] arg4; | |
3058 | } | |
3059 | return resultobj; | |
3060 | fail: | |
3061 | { | |
3062 | if (temp1) | |
3063 | delete arg1; | |
3064 | } | |
3065 | { | |
3066 | if (temp2) | |
3067 | delete arg2; | |
3068 | } | |
3069 | { | |
3070 | if (arg4) delete [] arg4; | |
3071 | } | |
3072 | return NULL; | |
3073 | } | |
3074 | ||
3075 | ||
3076 | static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3077 | PyObject *resultobj; | |
3078 | wxString *arg1 = 0 ; | |
3079 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
3080 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
3081 | int arg3 = (int) wxOK|wxCENTRE ; | |
3082 | wxWindow *arg4 = (wxWindow *) NULL ; | |
3083 | int arg5 = (int) -1 ; | |
3084 | int arg6 = (int) -1 ; | |
3085 | int result; | |
423f194a RD |
3086 | bool temp1 = False ; |
3087 | bool temp2 = False ; | |
d14a1e28 RD |
3088 | PyObject * obj0 = 0 ; |
3089 | PyObject * obj1 = 0 ; | |
3090 | PyObject * obj3 = 0 ; | |
3091 | char *kwnames[] = { | |
3092 | (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL | |
3093 | }; | |
3094 | ||
3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OiOii:MessageBox",kwnames,&obj0,&obj1,&arg3,&obj3,&arg5,&arg6)) goto fail; | |
3096 | { | |
3097 | arg1 = wxString_in_helper(obj0); | |
3098 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3099 | temp1 = True; |
d14a1e28 RD |
3100 | } |
3101 | if (obj1) { | |
3102 | { | |
3103 | arg2 = wxString_in_helper(obj1); | |
3104 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3105 | temp2 = True; |
d14a1e28 RD |
3106 | } |
3107 | } | |
3108 | if (obj3) { | |
3109 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3110 | } | |
3111 | { | |
3112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3113 | result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
3114 | ||
3115 | wxPyEndAllowThreads(__tstate); | |
3116 | if (PyErr_Occurred()) SWIG_fail; | |
3117 | } | |
3118 | resultobj = PyInt_FromLong((long)result); | |
3119 | { | |
3120 | if (temp1) | |
3121 | delete arg1; | |
3122 | } | |
3123 | { | |
3124 | if (temp2) | |
3125 | delete arg2; | |
3126 | } | |
3127 | return resultobj; | |
3128 | fail: | |
3129 | { | |
3130 | if (temp1) | |
3131 | delete arg1; | |
3132 | } | |
3133 | { | |
3134 | if (temp2) | |
3135 | delete arg2; | |
3136 | } | |
3137 | return NULL; | |
3138 | } | |
3139 | ||
3140 | ||
3141 | static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3142 | PyObject *resultobj; | |
3143 | wxString *arg1 = 0 ; | |
3144 | wxString *arg2 = 0 ; | |
3145 | wxString *arg3 = 0 ; | |
3146 | long arg4 ; | |
3147 | long arg5 = (long) 0 ; | |
3148 | long arg6 = (long) 100 ; | |
3149 | wxWindow *arg7 = (wxWindow *) NULL ; | |
3150 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
3151 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
3152 | long result; | |
423f194a RD |
3153 | bool temp1 = False ; |
3154 | bool temp2 = False ; | |
3155 | bool temp3 = False ; | |
d14a1e28 RD |
3156 | wxPoint temp8 ; |
3157 | PyObject * obj0 = 0 ; | |
3158 | PyObject * obj1 = 0 ; | |
3159 | PyObject * obj2 = 0 ; | |
3160 | PyObject * obj6 = 0 ; | |
3161 | PyObject * obj7 = 0 ; | |
3162 | char *kwnames[] = { | |
3163 | (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL | |
3164 | }; | |
3165 | ||
3166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOl|llOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7)) goto fail; | |
3167 | { | |
3168 | arg1 = wxString_in_helper(obj0); | |
3169 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3170 | temp1 = True; |
d14a1e28 RD |
3171 | } |
3172 | { | |
3173 | arg2 = wxString_in_helper(obj1); | |
3174 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3175 | temp2 = True; |
d14a1e28 RD |
3176 | } |
3177 | { | |
3178 | arg3 = wxString_in_helper(obj2); | |
3179 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3180 | temp3 = True; |
d14a1e28 RD |
3181 | } |
3182 | if (obj6) { | |
3183 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3184 | } | |
3185 | if (obj7) { | |
3186 | { | |
3187 | arg8 = &temp8; | |
3188 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
3189 | } | |
3190 | } | |
3191 | { | |
3192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3193 | result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8); | |
3194 | ||
3195 | wxPyEndAllowThreads(__tstate); | |
3196 | if (PyErr_Occurred()) SWIG_fail; | |
3197 | } | |
3198 | resultobj = PyInt_FromLong((long)result); | |
3199 | { | |
3200 | if (temp1) | |
3201 | delete arg1; | |
3202 | } | |
3203 | { | |
3204 | if (temp2) | |
3205 | delete arg2; | |
3206 | } | |
3207 | { | |
3208 | if (temp3) | |
3209 | delete arg3; | |
3210 | } | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | { | |
3214 | if (temp1) | |
3215 | delete arg1; | |
3216 | } | |
3217 | { | |
3218 | if (temp2) | |
3219 | delete arg2; | |
3220 | } | |
3221 | { | |
3222 | if (temp3) | |
3223 | delete arg3; | |
3224 | } | |
3225 | return NULL; | |
3226 | } | |
3227 | ||
3228 | ||
3229 | static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3230 | PyObject *resultobj; | |
3231 | bool result; | |
3232 | char *kwnames[] = { | |
3233 | NULL | |
3234 | }; | |
3235 | ||
3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail; | |
3237 | { | |
3238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3239 | result = (bool)wxColourDisplay(); | |
3240 | ||
3241 | wxPyEndAllowThreads(__tstate); | |
3242 | if (PyErr_Occurred()) SWIG_fail; | |
3243 | } | |
3244 | resultobj = PyInt_FromLong((long)result); | |
3245 | return resultobj; | |
3246 | fail: | |
3247 | return NULL; | |
3248 | } | |
3249 | ||
3250 | ||
3251 | static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3252 | PyObject *resultobj; | |
3253 | int result; | |
3254 | char *kwnames[] = { | |
3255 | NULL | |
3256 | }; | |
3257 | ||
3258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail; | |
3259 | { | |
3260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3261 | result = (int)wxDisplayDepth(); | |
3262 | ||
3263 | wxPyEndAllowThreads(__tstate); | |
3264 | if (PyErr_Occurred()) SWIG_fail; | |
3265 | } | |
3266 | resultobj = PyInt_FromLong((long)result); | |
3267 | return resultobj; | |
3268 | fail: | |
3269 | return NULL; | |
3270 | } | |
3271 | ||
3272 | ||
3273 | static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3274 | PyObject *resultobj; | |
3275 | int result; | |
3276 | char *kwnames[] = { | |
3277 | NULL | |
3278 | }; | |
3279 | ||
3280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail; | |
3281 | { | |
3282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3283 | result = (int)wxGetDisplayDepth(); | |
3284 | ||
3285 | wxPyEndAllowThreads(__tstate); | |
3286 | if (PyErr_Occurred()) SWIG_fail; | |
3287 | } | |
3288 | resultobj = PyInt_FromLong((long)result); | |
3289 | return resultobj; | |
3290 | fail: | |
3291 | return NULL; | |
3292 | } | |
3293 | ||
3294 | ||
3295 | static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3296 | PyObject *resultobj; | |
3297 | int *arg1 = (int *) 0 ; | |
3298 | int *arg2 = (int *) 0 ; | |
3299 | int temp1 ; | |
3300 | int temp2 ; | |
3301 | char *kwnames[] = { | |
3302 | NULL | |
3303 | }; | |
3304 | ||
3305 | arg1 = &temp1; | |
3306 | arg2 = &temp2; | |
3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail; | |
3308 | { | |
3309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3310 | wxDisplaySize(arg1,arg2); | |
3311 | ||
3312 | wxPyEndAllowThreads(__tstate); | |
3313 | if (PyErr_Occurred()) SWIG_fail; | |
3314 | } | |
3315 | Py_INCREF(Py_None); resultobj = Py_None; | |
3316 | { | |
3317 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3318 | resultobj = t_output_helper(resultobj,o); | |
3319 | } | |
3320 | { | |
3321 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3322 | resultobj = t_output_helper(resultobj,o); | |
3323 | } | |
3324 | return resultobj; | |
3325 | fail: | |
3326 | return NULL; | |
3327 | } | |
3328 | ||
3329 | ||
3330 | static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3331 | PyObject *resultobj; | |
3332 | wxSize result; | |
3333 | char *kwnames[] = { | |
3334 | NULL | |
3335 | }; | |
3336 | ||
3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail; | |
3338 | { | |
3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3340 | result = wxGetDisplaySize(); | |
3341 | ||
3342 | wxPyEndAllowThreads(__tstate); | |
3343 | if (PyErr_Occurred()) SWIG_fail; | |
3344 | } | |
3345 | { | |
3346 | wxSize * resultptr; | |
3347 | resultptr = new wxSize((wxSize &) result); | |
3348 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3349 | } | |
3350 | return resultobj; | |
3351 | fail: | |
3352 | return NULL; | |
3353 | } | |
3354 | ||
3355 | ||
3356 | static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3357 | PyObject *resultobj; | |
3358 | int *arg1 = (int *) 0 ; | |
3359 | int *arg2 = (int *) 0 ; | |
3360 | int temp1 ; | |
3361 | int temp2 ; | |
3362 | char *kwnames[] = { | |
3363 | NULL | |
3364 | }; | |
3365 | ||
3366 | arg1 = &temp1; | |
3367 | arg2 = &temp2; | |
3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail; | |
3369 | { | |
3370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3371 | wxDisplaySizeMM(arg1,arg2); | |
3372 | ||
3373 | wxPyEndAllowThreads(__tstate); | |
3374 | if (PyErr_Occurred()) SWIG_fail; | |
3375 | } | |
3376 | Py_INCREF(Py_None); resultobj = Py_None; | |
3377 | { | |
3378 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3379 | resultobj = t_output_helper(resultobj,o); | |
3380 | } | |
3381 | { | |
3382 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3383 | resultobj = t_output_helper(resultobj,o); | |
3384 | } | |
3385 | return resultobj; | |
3386 | fail: | |
3387 | return NULL; | |
3388 | } | |
3389 | ||
3390 | ||
3391 | static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3392 | PyObject *resultobj; | |
3393 | wxSize result; | |
3394 | char *kwnames[] = { | |
3395 | NULL | |
3396 | }; | |
3397 | ||
3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail; | |
3399 | { | |
3400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3401 | result = wxGetDisplaySizeMM(); | |
3402 | ||
3403 | wxPyEndAllowThreads(__tstate); | |
3404 | if (PyErr_Occurred()) SWIG_fail; | |
3405 | } | |
3406 | { | |
3407 | wxSize * resultptr; | |
3408 | resultptr = new wxSize((wxSize &) result); | |
3409 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
3410 | } | |
3411 | return resultobj; | |
3412 | fail: | |
3413 | return NULL; | |
3414 | } | |
3415 | ||
3416 | ||
3417 | static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3418 | PyObject *resultobj; | |
3419 | int *arg1 = (int *) 0 ; | |
3420 | int *arg2 = (int *) 0 ; | |
3421 | int *arg3 = (int *) 0 ; | |
3422 | int *arg4 = (int *) 0 ; | |
3423 | int temp1 ; | |
3424 | int temp2 ; | |
3425 | int temp3 ; | |
3426 | int temp4 ; | |
3427 | char *kwnames[] = { | |
3428 | NULL | |
3429 | }; | |
3430 | ||
3431 | arg1 = &temp1; | |
3432 | arg2 = &temp2; | |
3433 | arg3 = &temp3; | |
3434 | arg4 = &temp4; | |
3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail; | |
3436 | { | |
3437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3438 | wxClientDisplayRect(arg1,arg2,arg3,arg4); | |
3439 | ||
3440 | wxPyEndAllowThreads(__tstate); | |
3441 | if (PyErr_Occurred()) SWIG_fail; | |
3442 | } | |
3443 | Py_INCREF(Py_None); resultobj = Py_None; | |
3444 | { | |
3445 | PyObject *o = PyInt_FromLong((long) (*arg1)); | |
3446 | resultobj = t_output_helper(resultobj,o); | |
3447 | } | |
3448 | { | |
3449 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
3450 | resultobj = t_output_helper(resultobj,o); | |
3451 | } | |
3452 | { | |
3453 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
3454 | resultobj = t_output_helper(resultobj,o); | |
3455 | } | |
3456 | { | |
3457 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
3458 | resultobj = t_output_helper(resultobj,o); | |
3459 | } | |
3460 | return resultobj; | |
3461 | fail: | |
3462 | return NULL; | |
3463 | } | |
3464 | ||
3465 | ||
3466 | static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3467 | PyObject *resultobj; | |
3468 | wxRect result; | |
3469 | char *kwnames[] = { | |
3470 | NULL | |
3471 | }; | |
3472 | ||
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail; | |
3474 | { | |
3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3476 | result = wxGetClientDisplayRect(); | |
3477 | ||
3478 | wxPyEndAllowThreads(__tstate); | |
3479 | if (PyErr_Occurred()) SWIG_fail; | |
3480 | } | |
3481 | { | |
3482 | wxRect * resultptr; | |
3483 | resultptr = new wxRect((wxRect &) result); | |
3484 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
3485 | } | |
3486 | return resultobj; | |
3487 | fail: | |
3488 | return NULL; | |
3489 | } | |
3490 | ||
3491 | ||
3492 | static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3493 | PyObject *resultobj; | |
3494 | wxCursor *arg1 = 0 ; | |
3495 | PyObject * obj0 = 0 ; | |
3496 | char *kwnames[] = { | |
3497 | (char *) "cursor", NULL | |
3498 | }; | |
3499 | ||
3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail; | |
3501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3502 | if (arg1 == NULL) { | |
3503 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3504 | } | |
3505 | { | |
3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3507 | wxSetCursor(*arg1); | |
3508 | ||
3509 | wxPyEndAllowThreads(__tstate); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
3511 | } | |
3512 | Py_INCREF(Py_None); resultobj = Py_None; | |
3513 | return resultobj; | |
3514 | fail: | |
3515 | return NULL; | |
3516 | } | |
3517 | ||
3518 | ||
3519 | static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3520 | PyObject *resultobj; | |
3521 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
3522 | PyObject * obj0 = 0 ; | |
3523 | char *kwnames[] = { | |
3524 | (char *) "cursor", NULL | |
3525 | }; | |
3526 | ||
3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail; | |
3528 | if (obj0) { | |
3529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3530 | } | |
3531 | { | |
3532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3533 | wxBeginBusyCursor(arg1); | |
3534 | ||
3535 | wxPyEndAllowThreads(__tstate); | |
3536 | if (PyErr_Occurred()) SWIG_fail; | |
3537 | } | |
3538 | Py_INCREF(Py_None); resultobj = Py_None; | |
3539 | return resultobj; | |
3540 | fail: | |
3541 | return NULL; | |
3542 | } | |
3543 | ||
3544 | ||
3545 | static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3546 | PyObject *resultobj; | |
3547 | wxWindow *result; | |
3548 | char *kwnames[] = { | |
3549 | NULL | |
3550 | }; | |
3551 | ||
3552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail; | |
3553 | { | |
3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3555 | result = (wxWindow *)wxGetActiveWindow(); | |
3556 | ||
3557 | wxPyEndAllowThreads(__tstate); | |
3558 | if (PyErr_Occurred()) SWIG_fail; | |
3559 | } | |
3560 | { | |
3561 | resultobj = wxPyMake_wxObject(result); | |
3562 | } | |
3563 | return resultobj; | |
3564 | fail: | |
3565 | return NULL; | |
3566 | } | |
3567 | ||
3568 | ||
3569 | static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3570 | PyObject *resultobj; | |
3571 | wxPoint *arg1 = 0 ; | |
3572 | wxWindow *result; | |
3573 | wxPoint temp1 ; | |
3574 | PyObject * obj0 = 0 ; | |
3575 | char *kwnames[] = { | |
3576 | (char *) "pt", NULL | |
3577 | }; | |
3578 | ||
3579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3580 | { | |
3581 | arg1 = &temp1; | |
3582 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3583 | } | |
3584 | { | |
3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3586 | result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1); | |
3587 | ||
3588 | wxPyEndAllowThreads(__tstate); | |
3589 | if (PyErr_Occurred()) SWIG_fail; | |
3590 | } | |
3591 | { | |
3592 | resultobj = wxPyMake_wxObject(result); | |
3593 | } | |
3594 | return resultobj; | |
3595 | fail: | |
3596 | return NULL; | |
3597 | } | |
3598 | ||
3599 | ||
3600 | static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3601 | PyObject *resultobj; | |
3602 | wxPoint *arg1 = 0 ; | |
3603 | wxWindow *result; | |
3604 | wxPoint temp1 ; | |
3605 | PyObject * obj0 = 0 ; | |
3606 | char *kwnames[] = { | |
3607 | (char *) "pt", NULL | |
3608 | }; | |
3609 | ||
3610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail; | |
3611 | { | |
3612 | arg1 = &temp1; | |
3613 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3614 | } | |
3615 | { | |
3616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3617 | result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1); | |
3618 | ||
3619 | wxPyEndAllowThreads(__tstate); | |
3620 | if (PyErr_Occurred()) SWIG_fail; | |
3621 | } | |
3622 | { | |
3623 | resultobj = wxPyMake_wxObject(result); | |
3624 | } | |
3625 | return resultobj; | |
3626 | fail: | |
3627 | return NULL; | |
3628 | } | |
3629 | ||
3630 | ||
3631 | static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3632 | PyObject *resultobj; | |
3633 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3634 | wxWindow *result; | |
3635 | PyObject * obj0 = 0 ; | |
3636 | char *kwnames[] = { | |
3637 | (char *) "win", NULL | |
3638 | }; | |
3639 | ||
3640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail; | |
3641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3642 | { | |
3643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3644 | result = (wxWindow *)wxGetTopLevelParent(arg1); | |
3645 | ||
3646 | wxPyEndAllowThreads(__tstate); | |
3647 | if (PyErr_Occurred()) SWIG_fail; | |
3648 | } | |
3649 | { | |
3650 | resultobj = wxPyMake_wxObject(result); | |
3651 | } | |
3652 | return resultobj; | |
3653 | fail: | |
3654 | return NULL; | |
3655 | } | |
3656 | ||
3657 | ||
cbd72d4f RD |
3658 | static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) { |
3659 | PyObject *resultobj; | |
3660 | int arg1 ; | |
3661 | bool result; | |
3662 | char *kwnames[] = { | |
3663 | (char *) "key", NULL | |
3664 | }; | |
3665 | ||
3666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:GetKeyState",kwnames,&arg1)) goto fail; | |
3667 | { | |
3668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3669 | result = (bool)wxGetKeyState((wxKeyCode )arg1); | |
3670 | ||
3671 | wxPyEndAllowThreads(__tstate); | |
3672 | if (PyErr_Occurred()) SWIG_fail; | |
3673 | } | |
3674 | resultobj = PyInt_FromLong((long)result); | |
3675 | return resultobj; | |
3676 | fail: | |
3677 | return NULL; | |
3678 | } | |
3679 | ||
3680 | ||
d14a1e28 RD |
3681 | static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
3682 | PyObject *resultobj; | |
3683 | char *kwnames[] = { | |
3684 | NULL | |
3685 | }; | |
3686 | ||
3687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail; | |
3688 | { | |
3689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3690 | wxWakeUpMainThread(); | |
3691 | ||
3692 | wxPyEndAllowThreads(__tstate); | |
3693 | if (PyErr_Occurred()) SWIG_fail; | |
3694 | } | |
3695 | Py_INCREF(Py_None); resultobj = Py_None; | |
3696 | return resultobj; | |
3697 | fail: | |
3698 | return NULL; | |
3699 | } | |
3700 | ||
3701 | ||
3702 | static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3703 | PyObject *resultobj; | |
3704 | char *kwnames[] = { | |
3705 | NULL | |
3706 | }; | |
3707 | ||
3708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail; | |
3709 | { | |
3710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3711 | wxMutexGuiEnter(); | |
3712 | ||
3713 | wxPyEndAllowThreads(__tstate); | |
3714 | if (PyErr_Occurred()) SWIG_fail; | |
3715 | } | |
3716 | Py_INCREF(Py_None); resultobj = Py_None; | |
3717 | return resultobj; | |
3718 | fail: | |
3719 | return NULL; | |
3720 | } | |
3721 | ||
3722 | ||
3723 | static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3724 | PyObject *resultobj; | |
3725 | char *kwnames[] = { | |
3726 | NULL | |
3727 | }; | |
3728 | ||
3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail; | |
3730 | { | |
3731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3732 | wxMutexGuiLeave(); | |
3733 | ||
3734 | wxPyEndAllowThreads(__tstate); | |
3735 | if (PyErr_Occurred()) SWIG_fail; | |
3736 | } | |
3737 | Py_INCREF(Py_None); resultobj = Py_None; | |
3738 | return resultobj; | |
3739 | fail: | |
3740 | return NULL; | |
3741 | } | |
3742 | ||
3743 | ||
3744 | static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3745 | PyObject *resultobj; | |
3746 | wxMutexGuiLocker *result; | |
3747 | char *kwnames[] = { | |
3748 | NULL | |
3749 | }; | |
3750 | ||
3751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail; | |
3752 | { | |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3754 | result = (wxMutexGuiLocker *)new wxMutexGuiLocker(); | |
3755 | ||
3756 | wxPyEndAllowThreads(__tstate); | |
3757 | if (PyErr_Occurred()) SWIG_fail; | |
3758 | } | |
3759 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMutexGuiLocker, 1); | |
3760 | return resultobj; | |
3761 | fail: | |
3762 | return NULL; | |
3763 | } | |
3764 | ||
3765 | ||
3766 | static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3767 | PyObject *resultobj; | |
3768 | wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ; | |
3769 | PyObject * obj0 = 0 ; | |
3770 | char *kwnames[] = { | |
3771 | (char *) "self", NULL | |
3772 | }; | |
3773 | ||
3774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail; | |
3775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMutexGuiLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3776 | { | |
3777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3778 | delete arg1; | |
3779 | ||
3780 | wxPyEndAllowThreads(__tstate); | |
3781 | if (PyErr_Occurred()) SWIG_fail; | |
3782 | } | |
3783 | Py_INCREF(Py_None); resultobj = Py_None; | |
3784 | return resultobj; | |
3785 | fail: | |
3786 | return NULL; | |
3787 | } | |
3788 | ||
3789 | ||
3790 | static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) { | |
3791 | PyObject *obj; | |
3792 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3793 | SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj); | |
3794 | Py_INCREF(obj); | |
3795 | return Py_BuildValue((char *)""); | |
3796 | } | |
3797 | static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3798 | PyObject *resultobj; | |
3799 | bool result; | |
3800 | char *kwnames[] = { | |
3801 | NULL | |
3802 | }; | |
3803 | ||
3804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail; | |
3805 | { | |
3806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3807 | result = (bool)wxThread_IsMain(); | |
3808 | ||
3809 | wxPyEndAllowThreads(__tstate); | |
3810 | if (PyErr_Occurred()) SWIG_fail; | |
3811 | } | |
3812 | resultobj = PyInt_FromLong((long)result); | |
3813 | return resultobj; | |
3814 | fail: | |
3815 | return NULL; | |
3816 | } | |
3817 | ||
3818 | ||
3819 | static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3820 | PyObject *resultobj; | |
3821 | wxString *arg1 = 0 ; | |
3822 | wxToolTip *result; | |
423f194a | 3823 | bool temp1 = False ; |
d14a1e28 RD |
3824 | PyObject * obj0 = 0 ; |
3825 | char *kwnames[] = { | |
3826 | (char *) "tip", NULL | |
3827 | }; | |
3828 | ||
3829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail; | |
3830 | { | |
3831 | arg1 = wxString_in_helper(obj0); | |
3832 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3833 | temp1 = True; |
d14a1e28 RD |
3834 | } |
3835 | { | |
3836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3837 | result = (wxToolTip *)new wxToolTip((wxString const &)*arg1); | |
3838 | ||
3839 | wxPyEndAllowThreads(__tstate); | |
3840 | if (PyErr_Occurred()) SWIG_fail; | |
3841 | } | |
3842 | { | |
3843 | resultobj = wxPyMake_wxObject(result); | |
3844 | } | |
3845 | { | |
3846 | if (temp1) | |
3847 | delete arg1; | |
3848 | } | |
3849 | return resultobj; | |
3850 | fail: | |
3851 | { | |
3852 | if (temp1) | |
3853 | delete arg1; | |
3854 | } | |
3855 | return NULL; | |
3856 | } | |
3857 | ||
3858 | ||
3859 | static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3860 | PyObject *resultobj; | |
3861 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3862 | wxString *arg2 = 0 ; | |
423f194a | 3863 | bool temp2 = False ; |
d14a1e28 RD |
3864 | PyObject * obj0 = 0 ; |
3865 | PyObject * obj1 = 0 ; | |
3866 | char *kwnames[] = { | |
3867 | (char *) "self",(char *) "tip", NULL | |
3868 | }; | |
3869 | ||
3870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail; | |
3871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3872 | { | |
3873 | arg2 = wxString_in_helper(obj1); | |
3874 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3875 | temp2 = True; |
d14a1e28 RD |
3876 | } |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | (arg1)->SetTip((wxString const &)*arg2); | |
3880 | ||
3881 | wxPyEndAllowThreads(__tstate); | |
3882 | if (PyErr_Occurred()) SWIG_fail; | |
3883 | } | |
3884 | Py_INCREF(Py_None); resultobj = Py_None; | |
3885 | { | |
3886 | if (temp2) | |
3887 | delete arg2; | |
3888 | } | |
3889 | return resultobj; | |
3890 | fail: | |
3891 | { | |
3892 | if (temp2) | |
3893 | delete arg2; | |
3894 | } | |
3895 | return NULL; | |
3896 | } | |
3897 | ||
3898 | ||
3899 | static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject *resultobj; | |
3901 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3902 | wxString result; | |
3903 | PyObject * obj0 = 0 ; | |
3904 | char *kwnames[] = { | |
3905 | (char *) "self", NULL | |
3906 | }; | |
3907 | ||
3908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail; | |
3909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3910 | { | |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3912 | result = (arg1)->GetTip(); | |
3913 | ||
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) SWIG_fail; | |
3916 | } | |
3917 | { | |
3918 | #if wxUSE_UNICODE | |
3919 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3920 | #else | |
3921 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3922 | #endif | |
3923 | } | |
3924 | return resultobj; | |
3925 | fail: | |
3926 | return NULL; | |
3927 | } | |
3928 | ||
3929 | ||
3930 | static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3931 | PyObject *resultobj; | |
3932 | wxToolTip *arg1 = (wxToolTip *) 0 ; | |
3933 | wxWindow *result; | |
3934 | PyObject * obj0 = 0 ; | |
3935 | char *kwnames[] = { | |
3936 | (char *) "self", NULL | |
3937 | }; | |
3938 | ||
3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail; | |
3940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3941 | { | |
3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3943 | result = (wxWindow *)(arg1)->GetWindow(); | |
3944 | ||
3945 | wxPyEndAllowThreads(__tstate); | |
3946 | if (PyErr_Occurred()) SWIG_fail; | |
3947 | } | |
3948 | { | |
3949 | resultobj = wxPyMake_wxObject(result); | |
3950 | } | |
3951 | return resultobj; | |
3952 | fail: | |
3953 | return NULL; | |
3954 | } | |
3955 | ||
3956 | ||
3957 | static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3958 | PyObject *resultobj; | |
3959 | bool arg1 ; | |
3960 | PyObject * obj0 = 0 ; | |
3961 | char *kwnames[] = { | |
3962 | (char *) "flag", NULL | |
3963 | }; | |
3964 | ||
3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail; | |
3966 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
3967 | if (PyErr_Occurred()) SWIG_fail; | |
3968 | { | |
3969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3970 | wxToolTip::Enable(arg1); | |
3971 | ||
3972 | wxPyEndAllowThreads(__tstate); | |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
3974 | } | |
3975 | Py_INCREF(Py_None); resultobj = Py_None; | |
3976 | return resultobj; | |
3977 | fail: | |
3978 | return NULL; | |
3979 | } | |
3980 | ||
3981 | ||
3982 | static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3983 | PyObject *resultobj; | |
3984 | long arg1 ; | |
3985 | char *kwnames[] = { | |
3986 | (char *) "milliseconds", NULL | |
3987 | }; | |
3988 | ||
3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:ToolTip_SetDelay",kwnames,&arg1)) goto fail; | |
3990 | { | |
3991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3992 | wxToolTip::SetDelay(arg1); | |
3993 | ||
3994 | wxPyEndAllowThreads(__tstate); | |
3995 | if (PyErr_Occurred()) SWIG_fail; | |
3996 | } | |
3997 | Py_INCREF(Py_None); resultobj = Py_None; | |
3998 | return resultobj; | |
3999 | fail: | |
4000 | return NULL; | |
4001 | } | |
4002 | ||
4003 | ||
4004 | static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) { | |
4005 | PyObject *obj; | |
4006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4007 | SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj); | |
4008 | Py_INCREF(obj); | |
4009 | return Py_BuildValue((char *)""); | |
4010 | } | |
4011 | static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4012 | PyObject *resultobj; | |
4013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4014 | wxSize *arg2 = 0 ; | |
4015 | wxCaret *result; | |
4016 | wxSize temp2 ; | |
4017 | PyObject * obj0 = 0 ; | |
4018 | PyObject * obj1 = 0 ; | |
4019 | char *kwnames[] = { | |
4020 | (char *) "window",(char *) "size", NULL | |
4021 | }; | |
4022 | ||
4023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail; | |
4024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4025 | { | |
4026 | arg2 = &temp2; | |
4027 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4028 | } | |
4029 | { | |
4030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4031 | result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2); | |
4032 | ||
4033 | wxPyEndAllowThreads(__tstate); | |
4034 | if (PyErr_Occurred()) SWIG_fail; | |
4035 | } | |
4036 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 1); | |
4037 | return resultobj; | |
4038 | fail: | |
4039 | return NULL; | |
4040 | } | |
4041 | ||
4042 | ||
4043 | static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4044 | PyObject *resultobj; | |
4045 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4046 | PyObject * obj0 = 0 ; | |
4047 | char *kwnames[] = { | |
4048 | (char *) "self", NULL | |
4049 | }; | |
4050 | ||
4051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail; | |
4052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4053 | { | |
4054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4055 | delete arg1; | |
4056 | ||
4057 | wxPyEndAllowThreads(__tstate); | |
4058 | if (PyErr_Occurred()) SWIG_fail; | |
4059 | } | |
4060 | Py_INCREF(Py_None); resultobj = Py_None; | |
4061 | return resultobj; | |
4062 | fail: | |
4063 | return NULL; | |
4064 | } | |
4065 | ||
4066 | ||
4067 | static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject *resultobj; | |
4069 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4070 | bool result; | |
4071 | PyObject * obj0 = 0 ; | |
4072 | char *kwnames[] = { | |
4073 | (char *) "self", NULL | |
4074 | }; | |
4075 | ||
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail; | |
4077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4078 | { | |
4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4080 | result = (bool)(arg1)->IsOk(); | |
4081 | ||
4082 | wxPyEndAllowThreads(__tstate); | |
4083 | if (PyErr_Occurred()) SWIG_fail; | |
4084 | } | |
4085 | resultobj = PyInt_FromLong((long)result); | |
4086 | return resultobj; | |
4087 | fail: | |
4088 | return NULL; | |
4089 | } | |
4090 | ||
4091 | ||
4092 | static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4093 | PyObject *resultobj; | |
4094 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4095 | bool result; | |
4096 | PyObject * obj0 = 0 ; | |
4097 | char *kwnames[] = { | |
4098 | (char *) "self", NULL | |
4099 | }; | |
4100 | ||
4101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail; | |
4102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4103 | { | |
4104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4105 | result = (bool)(arg1)->IsVisible(); | |
4106 | ||
4107 | wxPyEndAllowThreads(__tstate); | |
4108 | if (PyErr_Occurred()) SWIG_fail; | |
4109 | } | |
4110 | resultobj = PyInt_FromLong((long)result); | |
4111 | return resultobj; | |
4112 | fail: | |
4113 | return NULL; | |
4114 | } | |
4115 | ||
4116 | ||
44127b65 RD |
4117 | static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
4118 | PyObject *resultobj; | |
4119 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4120 | wxPoint result; | |
4121 | PyObject * obj0 = 0 ; | |
4122 | char *kwnames[] = { | |
4123 | (char *) "self", NULL | |
4124 | }; | |
4125 | ||
4126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail; | |
4127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4128 | { | |
4129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4130 | result = (arg1)->GetPosition(); | |
4131 | ||
4132 | wxPyEndAllowThreads(__tstate); | |
4133 | if (PyErr_Occurred()) SWIG_fail; | |
4134 | } | |
4135 | { | |
4136 | wxPoint * resultptr; | |
4137 | resultptr = new wxPoint((wxPoint &) result); | |
4138 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
4139 | } | |
4140 | return resultobj; | |
4141 | fail: | |
4142 | return NULL; | |
4143 | } | |
4144 | ||
4145 | ||
d14a1e28 RD |
4146 | static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
4147 | PyObject *resultobj; | |
4148 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4149 | int *arg2 = (int *) 0 ; | |
4150 | int *arg3 = (int *) 0 ; | |
4151 | int temp2 ; | |
4152 | int temp3 ; | |
4153 | PyObject * obj0 = 0 ; | |
4154 | char *kwnames[] = { | |
4155 | (char *) "self", NULL | |
4156 | }; | |
4157 | ||
4158 | arg2 = &temp2; | |
4159 | arg3 = &temp3; | |
4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail; | |
4161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4162 | { | |
4163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4164 | (arg1)->GetPosition(arg2,arg3); | |
4165 | ||
4166 | wxPyEndAllowThreads(__tstate); | |
4167 | if (PyErr_Occurred()) SWIG_fail; | |
4168 | } | |
4169 | Py_INCREF(Py_None); resultobj = Py_None; | |
4170 | { | |
4171 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4172 | resultobj = t_output_helper(resultobj,o); | |
4173 | } | |
4174 | { | |
4175 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4176 | resultobj = t_output_helper(resultobj,o); | |
4177 | } | |
4178 | return resultobj; | |
4179 | fail: | |
4180 | return NULL; | |
4181 | } | |
4182 | ||
4183 | ||
44127b65 | 4184 | static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4185 | PyObject *resultobj; |
4186 | wxCaret *arg1 = (wxCaret *) 0 ; | |
44127b65 | 4187 | wxSize result; |
d14a1e28 RD |
4188 | PyObject * obj0 = 0 ; |
4189 | char *kwnames[] = { | |
4190 | (char *) "self", NULL | |
4191 | }; | |
4192 | ||
44127b65 | 4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
4194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4195 | { | |
4196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 4197 | result = (arg1)->GetSize(); |
d14a1e28 RD |
4198 | |
4199 | wxPyEndAllowThreads(__tstate); | |
4200 | if (PyErr_Occurred()) SWIG_fail; | |
4201 | } | |
4202 | { | |
44127b65 RD |
4203 | wxSize * resultptr; |
4204 | resultptr = new wxSize((wxSize &) result); | |
4205 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
d14a1e28 RD |
4206 | } |
4207 | return resultobj; | |
4208 | fail: | |
4209 | return NULL; | |
4210 | } | |
4211 | ||
4212 | ||
4213 | static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4214 | PyObject *resultobj; | |
4215 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4216 | int *arg2 = (int *) 0 ; | |
4217 | int *arg3 = (int *) 0 ; | |
4218 | int temp2 ; | |
4219 | int temp3 ; | |
4220 | PyObject * obj0 = 0 ; | |
4221 | char *kwnames[] = { | |
4222 | (char *) "self", NULL | |
4223 | }; | |
4224 | ||
4225 | arg2 = &temp2; | |
4226 | arg3 = &temp3; | |
4227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail; | |
4228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4229 | { | |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | (arg1)->GetSize(arg2,arg3); | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4236 | Py_INCREF(Py_None); resultobj = Py_None; | |
4237 | { | |
4238 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4239 | resultobj = t_output_helper(resultobj,o); | |
4240 | } | |
4241 | { | |
4242 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4243 | resultobj = t_output_helper(resultobj,o); | |
4244 | } | |
4245 | return resultobj; | |
4246 | fail: | |
4247 | return NULL; | |
4248 | } | |
4249 | ||
4250 | ||
d14a1e28 RD |
4251 | static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
4252 | PyObject *resultobj; | |
4253 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4254 | wxWindow *result; | |
4255 | PyObject * obj0 = 0 ; | |
4256 | char *kwnames[] = { | |
4257 | (char *) "self", NULL | |
4258 | }; | |
4259 | ||
4260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail; | |
4261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4262 | { | |
4263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4264 | result = (wxWindow *)(arg1)->GetWindow(); | |
4265 | ||
4266 | wxPyEndAllowThreads(__tstate); | |
4267 | if (PyErr_Occurred()) SWIG_fail; | |
4268 | } | |
4269 | { | |
4270 | resultobj = wxPyMake_wxObject(result); | |
4271 | } | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | return NULL; | |
4275 | } | |
4276 | ||
4277 | ||
4278 | static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4279 | PyObject *resultobj; | |
4280 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4281 | int arg2 ; | |
4282 | int arg3 ; | |
4283 | PyObject * obj0 = 0 ; | |
4284 | char *kwnames[] = { | |
4285 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4286 | }; | |
4287 | ||
4288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_MoveXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4290 | { | |
4291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4292 | (arg1)->Move(arg2,arg3); | |
4293 | ||
4294 | wxPyEndAllowThreads(__tstate); | |
4295 | if (PyErr_Occurred()) SWIG_fail; | |
4296 | } | |
4297 | Py_INCREF(Py_None); resultobj = Py_None; | |
4298 | return resultobj; | |
4299 | fail: | |
4300 | return NULL; | |
4301 | } | |
4302 | ||
4303 | ||
4304 | static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4305 | PyObject *resultobj; | |
4306 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4307 | wxPoint *arg2 = 0 ; | |
4308 | wxPoint temp2 ; | |
4309 | PyObject * obj0 = 0 ; | |
4310 | PyObject * obj1 = 0 ; | |
4311 | char *kwnames[] = { | |
4312 | (char *) "self",(char *) "pt", NULL | |
4313 | }; | |
4314 | ||
4315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail; | |
4316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4317 | { | |
4318 | arg2 = &temp2; | |
4319 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4320 | } | |
4321 | { | |
4322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4323 | (arg1)->Move((wxPoint const &)*arg2); | |
4324 | ||
4325 | wxPyEndAllowThreads(__tstate); | |
4326 | if (PyErr_Occurred()) SWIG_fail; | |
4327 | } | |
4328 | Py_INCREF(Py_None); resultobj = Py_None; | |
4329 | return resultobj; | |
4330 | fail: | |
4331 | return NULL; | |
4332 | } | |
4333 | ||
4334 | ||
4335 | static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4336 | PyObject *resultobj; | |
4337 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4338 | int arg2 ; | |
4339 | int arg3 ; | |
4340 | PyObject * obj0 = 0 ; | |
4341 | char *kwnames[] = { | |
4342 | (char *) "self",(char *) "width",(char *) "height", NULL | |
4343 | }; | |
4344 | ||
4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Caret_SetSizeWH",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
4346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4347 | { | |
4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4349 | (arg1)->SetSize(arg2,arg3); | |
4350 | ||
4351 | wxPyEndAllowThreads(__tstate); | |
4352 | if (PyErr_Occurred()) SWIG_fail; | |
4353 | } | |
4354 | Py_INCREF(Py_None); resultobj = Py_None; | |
4355 | return resultobj; | |
4356 | fail: | |
4357 | return NULL; | |
4358 | } | |
4359 | ||
4360 | ||
4361 | static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4362 | PyObject *resultobj; | |
4363 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4364 | wxSize *arg2 = 0 ; | |
4365 | wxSize temp2 ; | |
4366 | PyObject * obj0 = 0 ; | |
4367 | PyObject * obj1 = 0 ; | |
4368 | char *kwnames[] = { | |
4369 | (char *) "self",(char *) "size", NULL | |
4370 | }; | |
4371 | ||
4372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4373 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4374 | { | |
4375 | arg2 = &temp2; | |
4376 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4377 | } | |
4378 | { | |
4379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4380 | (arg1)->SetSize((wxSize const &)*arg2); | |
4381 | ||
4382 | wxPyEndAllowThreads(__tstate); | |
4383 | if (PyErr_Occurred()) SWIG_fail; | |
4384 | } | |
4385 | Py_INCREF(Py_None); resultobj = Py_None; | |
4386 | return resultobj; | |
4387 | fail: | |
4388 | return NULL; | |
4389 | } | |
4390 | ||
4391 | ||
4392 | static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4393 | PyObject *resultobj; | |
4394 | wxCaret *arg1 = (wxCaret *) 0 ; | |
423f194a | 4395 | int arg2 = (int) True ; |
d14a1e28 RD |
4396 | PyObject * obj0 = 0 ; |
4397 | char *kwnames[] = { | |
4398 | (char *) "self",(char *) "show", NULL | |
4399 | }; | |
4400 | ||
4401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Caret_Show",kwnames,&obj0,&arg2)) goto fail; | |
4402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4403 | { | |
4404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4405 | (arg1)->Show(arg2); | |
4406 | ||
4407 | wxPyEndAllowThreads(__tstate); | |
4408 | if (PyErr_Occurred()) SWIG_fail; | |
4409 | } | |
4410 | Py_INCREF(Py_None); resultobj = Py_None; | |
4411 | return resultobj; | |
4412 | fail: | |
4413 | return NULL; | |
4414 | } | |
4415 | ||
4416 | ||
4417 | static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4418 | PyObject *resultobj; | |
4419 | wxCaret *arg1 = (wxCaret *) 0 ; | |
4420 | PyObject * obj0 = 0 ; | |
4421 | char *kwnames[] = { | |
4422 | (char *) "self", NULL | |
4423 | }; | |
4424 | ||
4425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail; | |
4426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4427 | { | |
4428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4429 | (arg1)->Hide(); | |
4430 | ||
4431 | wxPyEndAllowThreads(__tstate); | |
4432 | if (PyErr_Occurred()) SWIG_fail; | |
4433 | } | |
4434 | Py_INCREF(Py_None); resultobj = Py_None; | |
4435 | return resultobj; | |
4436 | fail: | |
4437 | return NULL; | |
4438 | } | |
4439 | ||
4440 | ||
4441 | static PyObject * Caret_swigregister(PyObject *self, PyObject *args) { | |
4442 | PyObject *obj; | |
4443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4444 | SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj); | |
4445 | Py_INCREF(obj); | |
4446 | return Py_BuildValue((char *)""); | |
4447 | } | |
4448 | static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4449 | PyObject *resultobj; | |
4450 | int result; | |
4451 | char *kwnames[] = { | |
4452 | NULL | |
4453 | }; | |
4454 | ||
4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail; | |
4456 | { | |
4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4458 | result = (int)wxCaret_GetBlinkTime(); | |
4459 | ||
4460 | wxPyEndAllowThreads(__tstate); | |
4461 | if (PyErr_Occurred()) SWIG_fail; | |
4462 | } | |
4463 | resultobj = PyInt_FromLong((long)result); | |
4464 | return resultobj; | |
4465 | fail: | |
4466 | return NULL; | |
4467 | } | |
4468 | ||
4469 | ||
4470 | static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4471 | PyObject *resultobj; | |
4472 | int arg1 ; | |
4473 | char *kwnames[] = { | |
4474 | (char *) "milliseconds", NULL | |
4475 | }; | |
4476 | ||
4477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Caret_SetBlinkTime",kwnames,&arg1)) goto fail; | |
4478 | { | |
4479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4480 | wxCaret_SetBlinkTime(arg1); | |
4481 | ||
4482 | wxPyEndAllowThreads(__tstate); | |
4483 | if (PyErr_Occurred()) SWIG_fail; | |
4484 | } | |
4485 | Py_INCREF(Py_None); resultobj = Py_None; | |
4486 | return resultobj; | |
4487 | fail: | |
4488 | return NULL; | |
4489 | } | |
4490 | ||
4491 | ||
4492 | static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4493 | PyObject *resultobj; | |
4494 | wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ; | |
4495 | wxBusyCursor *result; | |
4496 | PyObject * obj0 = 0 ; | |
4497 | char *kwnames[] = { | |
4498 | (char *) "cursor", NULL | |
4499 | }; | |
4500 | ||
4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail; | |
4502 | if (obj0) { | |
4503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4504 | } | |
4505 | { | |
4506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4507 | result = (wxBusyCursor *)new wxBusyCursor(arg1); | |
4508 | ||
4509 | wxPyEndAllowThreads(__tstate); | |
4510 | if (PyErr_Occurred()) SWIG_fail; | |
4511 | } | |
4512 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyCursor, 1); | |
4513 | return resultobj; | |
4514 | fail: | |
4515 | return NULL; | |
4516 | } | |
4517 | ||
4518 | ||
4519 | static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4520 | PyObject *resultobj; | |
4521 | wxBusyCursor *arg1 = (wxBusyCursor *) 0 ; | |
4522 | PyObject * obj0 = 0 ; | |
4523 | char *kwnames[] = { | |
4524 | (char *) "self", NULL | |
4525 | }; | |
4526 | ||
4527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail; | |
4528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4529 | { | |
4530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4531 | delete arg1; | |
4532 | ||
4533 | wxPyEndAllowThreads(__tstate); | |
4534 | if (PyErr_Occurred()) SWIG_fail; | |
4535 | } | |
4536 | Py_INCREF(Py_None); resultobj = Py_None; | |
4537 | return resultobj; | |
4538 | fail: | |
4539 | return NULL; | |
4540 | } | |
4541 | ||
4542 | ||
4543 | static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) { | |
4544 | PyObject *obj; | |
4545 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4546 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj); | |
4547 | Py_INCREF(obj); | |
4548 | return Py_BuildValue((char *)""); | |
4549 | } | |
4550 | static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4551 | PyObject *resultobj; | |
4552 | wxWindow *arg1 = (wxWindow *) NULL ; | |
4553 | wxWindowDisabler *result; | |
4554 | PyObject * obj0 = 0 ; | |
4555 | char *kwnames[] = { | |
4556 | (char *) "winToSkip", NULL | |
4557 | }; | |
4558 | ||
4559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail; | |
4560 | if (obj0) { | |
4561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4562 | } | |
4563 | { | |
4564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4565 | result = (wxWindowDisabler *)new wxWindowDisabler(arg1); | |
4566 | ||
4567 | wxPyEndAllowThreads(__tstate); | |
4568 | if (PyErr_Occurred()) SWIG_fail; | |
4569 | } | |
4570 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDisabler, 1); | |
4571 | return resultobj; | |
4572 | fail: | |
4573 | return NULL; | |
4574 | } | |
4575 | ||
4576 | ||
4577 | static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4578 | PyObject *resultobj; | |
4579 | wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ; | |
4580 | PyObject * obj0 = 0 ; | |
4581 | char *kwnames[] = { | |
4582 | (char *) "self", NULL | |
4583 | }; | |
4584 | ||
4585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail; | |
4586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4587 | { | |
4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4589 | delete arg1; | |
4590 | ||
4591 | wxPyEndAllowThreads(__tstate); | |
4592 | if (PyErr_Occurred()) SWIG_fail; | |
4593 | } | |
4594 | Py_INCREF(Py_None); resultobj = Py_None; | |
4595 | return resultobj; | |
4596 | fail: | |
4597 | return NULL; | |
4598 | } | |
4599 | ||
4600 | ||
4601 | static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) { | |
4602 | PyObject *obj; | |
4603 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4604 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj); | |
4605 | Py_INCREF(obj); | |
4606 | return Py_BuildValue((char *)""); | |
4607 | } | |
4608 | static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4609 | PyObject *resultobj; | |
4610 | wxString *arg1 = 0 ; | |
4611 | wxBusyInfo *result; | |
423f194a | 4612 | bool temp1 = False ; |
d14a1e28 RD |
4613 | PyObject * obj0 = 0 ; |
4614 | char *kwnames[] = { | |
4615 | (char *) "message", NULL | |
4616 | }; | |
4617 | ||
4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail; | |
4619 | { | |
4620 | arg1 = wxString_in_helper(obj0); | |
4621 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4622 | temp1 = True; |
d14a1e28 RD |
4623 | } |
4624 | { | |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4626 | result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1); | |
4627 | ||
4628 | wxPyEndAllowThreads(__tstate); | |
4629 | if (PyErr_Occurred()) SWIG_fail; | |
4630 | } | |
4631 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBusyInfo, 1); | |
4632 | { | |
4633 | if (temp1) | |
4634 | delete arg1; | |
4635 | } | |
4636 | return resultobj; | |
4637 | fail: | |
4638 | { | |
4639 | if (temp1) | |
4640 | delete arg1; | |
4641 | } | |
4642 | return NULL; | |
4643 | } | |
4644 | ||
4645 | ||
4646 | static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4647 | PyObject *resultobj; | |
4648 | wxBusyInfo *arg1 = (wxBusyInfo *) 0 ; | |
4649 | PyObject * obj0 = 0 ; | |
4650 | char *kwnames[] = { | |
4651 | (char *) "self", NULL | |
4652 | }; | |
4653 | ||
4654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail; | |
4655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBusyInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4656 | { | |
4657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4658 | delete arg1; | |
4659 | ||
4660 | wxPyEndAllowThreads(__tstate); | |
4661 | if (PyErr_Occurred()) SWIG_fail; | |
4662 | } | |
4663 | Py_INCREF(Py_None); resultobj = Py_None; | |
4664 | return resultobj; | |
4665 | fail: | |
4666 | return NULL; | |
4667 | } | |
4668 | ||
4669 | ||
4670 | static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) { | |
4671 | PyObject *obj; | |
4672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4673 | SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj); | |
4674 | Py_INCREF(obj); | |
4675 | return Py_BuildValue((char *)""); | |
4676 | } | |
4677 | static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4678 | PyObject *resultobj; | |
4679 | wxStopWatch *result; | |
4680 | char *kwnames[] = { | |
4681 | NULL | |
4682 | }; | |
4683 | ||
4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail; | |
4685 | { | |
4686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4687 | result = (wxStopWatch *)new wxStopWatch(); | |
4688 | ||
4689 | wxPyEndAllowThreads(__tstate); | |
4690 | if (PyErr_Occurred()) SWIG_fail; | |
4691 | } | |
4692 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStopWatch, 1); | |
4693 | return resultobj; | |
4694 | fail: | |
4695 | return NULL; | |
4696 | } | |
4697 | ||
4698 | ||
4699 | static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4700 | PyObject *resultobj; | |
4701 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4702 | long arg2 = (long) 0 ; | |
4703 | PyObject * obj0 = 0 ; | |
4704 | char *kwnames[] = { | |
4705 | (char *) "self",(char *) "t0", NULL | |
4706 | }; | |
4707 | ||
4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|l:StopWatch_Start",kwnames,&obj0,&arg2)) goto fail; | |
4709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4710 | { | |
4711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4712 | (arg1)->Start(arg2); | |
4713 | ||
4714 | wxPyEndAllowThreads(__tstate); | |
4715 | if (PyErr_Occurred()) SWIG_fail; | |
4716 | } | |
4717 | Py_INCREF(Py_None); resultobj = Py_None; | |
4718 | return resultobj; | |
4719 | fail: | |
4720 | return NULL; | |
4721 | } | |
4722 | ||
4723 | ||
4724 | static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4725 | PyObject *resultobj; | |
4726 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4727 | PyObject * obj0 = 0 ; | |
4728 | char *kwnames[] = { | |
4729 | (char *) "self", NULL | |
4730 | }; | |
4731 | ||
4732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail; | |
4733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4734 | { | |
4735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4736 | (arg1)->Pause(); | |
4737 | ||
4738 | wxPyEndAllowThreads(__tstate); | |
4739 | if (PyErr_Occurred()) SWIG_fail; | |
4740 | } | |
4741 | Py_INCREF(Py_None); resultobj = Py_None; | |
4742 | return resultobj; | |
4743 | fail: | |
4744 | return NULL; | |
4745 | } | |
4746 | ||
4747 | ||
4748 | static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4749 | PyObject *resultobj; | |
4750 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4751 | PyObject * obj0 = 0 ; | |
4752 | char *kwnames[] = { | |
4753 | (char *) "self", NULL | |
4754 | }; | |
4755 | ||
4756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail; | |
4757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4758 | { | |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | (arg1)->Resume(); | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | Py_INCREF(Py_None); resultobj = Py_None; | |
4766 | return resultobj; | |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
4772 | static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4773 | PyObject *resultobj; | |
4774 | wxStopWatch *arg1 = (wxStopWatch *) 0 ; | |
4775 | long result; | |
4776 | PyObject * obj0 = 0 ; | |
4777 | char *kwnames[] = { | |
4778 | (char *) "self", NULL | |
4779 | }; | |
4780 | ||
4781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail; | |
4782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStopWatch,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4783 | { | |
4784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4785 | result = (long)((wxStopWatch const *)arg1)->Time(); | |
4786 | ||
4787 | wxPyEndAllowThreads(__tstate); | |
4788 | if (PyErr_Occurred()) SWIG_fail; | |
4789 | } | |
4790 | resultobj = PyInt_FromLong((long)result); | |
4791 | return resultobj; | |
4792 | fail: | |
4793 | return NULL; | |
4794 | } | |
4795 | ||
4796 | ||
4797 | static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) { | |
4798 | PyObject *obj; | |
4799 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4800 | SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj); | |
4801 | Py_INCREF(obj); | |
4802 | return Py_BuildValue((char *)""); | |
4803 | } | |
4804 | static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4805 | PyObject *resultobj; | |
4806 | int arg1 = (int) 9 ; | |
4807 | wxFileHistory *result; | |
4808 | char *kwnames[] = { | |
4809 | (char *) "maxFiles", NULL | |
4810 | }; | |
4811 | ||
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_FileHistory",kwnames,&arg1)) goto fail; | |
4813 | { | |
4814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4815 | result = (wxFileHistory *)new wxFileHistory(arg1); | |
4816 | ||
4817 | wxPyEndAllowThreads(__tstate); | |
4818 | if (PyErr_Occurred()) SWIG_fail; | |
4819 | } | |
4820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileHistory, 1); | |
4821 | return resultobj; | |
4822 | fail: | |
4823 | return NULL; | |
4824 | } | |
4825 | ||
4826 | ||
4827 | static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4828 | PyObject *resultobj; | |
4829 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4830 | PyObject * obj0 = 0 ; | |
4831 | char *kwnames[] = { | |
4832 | (char *) "self", NULL | |
4833 | }; | |
4834 | ||
4835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail; | |
4836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4837 | { | |
4838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4839 | delete arg1; | |
4840 | ||
4841 | wxPyEndAllowThreads(__tstate); | |
4842 | if (PyErr_Occurred()) SWIG_fail; | |
4843 | } | |
4844 | Py_INCREF(Py_None); resultobj = Py_None; | |
4845 | return resultobj; | |
4846 | fail: | |
4847 | return NULL; | |
4848 | } | |
4849 | ||
4850 | ||
4851 | static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4852 | PyObject *resultobj; | |
4853 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4854 | wxString *arg2 = 0 ; | |
423f194a | 4855 | bool temp2 = False ; |
d14a1e28 RD |
4856 | PyObject * obj0 = 0 ; |
4857 | PyObject * obj1 = 0 ; | |
4858 | char *kwnames[] = { | |
4859 | (char *) "self",(char *) "file", NULL | |
4860 | }; | |
4861 | ||
4862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail; | |
4863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4864 | { | |
4865 | arg2 = wxString_in_helper(obj1); | |
4866 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4867 | temp2 = True; |
d14a1e28 RD |
4868 | } |
4869 | { | |
4870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4871 | (arg1)->AddFileToHistory((wxString const &)*arg2); | |
4872 | ||
4873 | wxPyEndAllowThreads(__tstate); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4876 | Py_INCREF(Py_None); resultobj = Py_None; | |
4877 | { | |
4878 | if (temp2) | |
4879 | delete arg2; | |
4880 | } | |
4881 | return resultobj; | |
4882 | fail: | |
4883 | { | |
4884 | if (temp2) | |
4885 | delete arg2; | |
4886 | } | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
4891 | static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject *resultobj; | |
4893 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4894 | int arg2 ; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | char *kwnames[] = { | |
4897 | (char *) "self",(char *) "i", NULL | |
4898 | }; | |
4899 | ||
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&arg2)) goto fail; | |
4901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4902 | { | |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | (arg1)->RemoveFileFromHistory(arg2); | |
4905 | ||
4906 | wxPyEndAllowThreads(__tstate); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | Py_INCREF(Py_None); resultobj = Py_None; | |
4910 | return resultobj; | |
4911 | fail: | |
4912 | return NULL; | |
4913 | } | |
4914 | ||
4915 | ||
4916 | static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4917 | PyObject *resultobj; | |
4918 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4919 | int result; | |
4920 | PyObject * obj0 = 0 ; | |
4921 | char *kwnames[] = { | |
4922 | (char *) "self", NULL | |
4923 | }; | |
4924 | ||
4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail; | |
4926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4927 | { | |
4928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4929 | result = (int)((wxFileHistory const *)arg1)->GetMaxFiles(); | |
4930 | ||
4931 | wxPyEndAllowThreads(__tstate); | |
4932 | if (PyErr_Occurred()) SWIG_fail; | |
4933 | } | |
4934 | resultobj = PyInt_FromLong((long)result); | |
4935 | return resultobj; | |
4936 | fail: | |
4937 | return NULL; | |
4938 | } | |
4939 | ||
4940 | ||
4941 | static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4942 | PyObject *resultobj; | |
4943 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4944 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4945 | PyObject * obj0 = 0 ; | |
4946 | PyObject * obj1 = 0 ; | |
4947 | char *kwnames[] = { | |
4948 | (char *) "self",(char *) "menu", NULL | |
4949 | }; | |
4950 | ||
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail; | |
4952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4953 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4954 | { | |
4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4956 | (arg1)->UseMenu(arg2); | |
4957 | ||
4958 | wxPyEndAllowThreads(__tstate); | |
4959 | if (PyErr_Occurred()) SWIG_fail; | |
4960 | } | |
4961 | Py_INCREF(Py_None); resultobj = Py_None; | |
4962 | return resultobj; | |
4963 | fail: | |
4964 | return NULL; | |
4965 | } | |
4966 | ||
4967 | ||
4968 | static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4969 | PyObject *resultobj; | |
4970 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4971 | wxMenu *arg2 = (wxMenu *) 0 ; | |
4972 | PyObject * obj0 = 0 ; | |
4973 | PyObject * obj1 = 0 ; | |
4974 | char *kwnames[] = { | |
4975 | (char *) "self",(char *) "menu", NULL | |
4976 | }; | |
4977 | ||
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail; | |
4979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4980 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4981 | { | |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | (arg1)->RemoveMenu(arg2); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | Py_INCREF(Py_None); resultobj = Py_None; | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
4992 | } | |
4993 | ||
4994 | ||
4995 | static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4996 | PyObject *resultobj; | |
4997 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
4998 | wxConfigBase *arg2 = 0 ; | |
4999 | PyObject * obj0 = 0 ; | |
5000 | PyObject * obj1 = 0 ; | |
5001 | char *kwnames[] = { | |
5002 | (char *) "self",(char *) "config", NULL | |
5003 | }; | |
5004 | ||
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail; | |
5006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5007 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5008 | if (arg2 == NULL) { | |
5009 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5010 | } | |
5011 | { | |
5012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5013 | (arg1)->Load(*arg2); | |
5014 | ||
5015 | wxPyEndAllowThreads(__tstate); | |
5016 | if (PyErr_Occurred()) SWIG_fail; | |
5017 | } | |
5018 | Py_INCREF(Py_None); resultobj = Py_None; | |
5019 | return resultobj; | |
5020 | fail: | |
5021 | return NULL; | |
5022 | } | |
5023 | ||
5024 | ||
5025 | static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5026 | PyObject *resultobj; | |
5027 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5028 | wxConfigBase *arg2 = 0 ; | |
5029 | PyObject * obj0 = 0 ; | |
5030 | PyObject * obj1 = 0 ; | |
5031 | char *kwnames[] = { | |
5032 | (char *) "self",(char *) "config", NULL | |
5033 | }; | |
5034 | ||
5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail; | |
5036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5037 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5038 | if (arg2 == NULL) { | |
5039 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5040 | } | |
5041 | { | |
5042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5043 | (arg1)->Save(*arg2); | |
5044 | ||
5045 | wxPyEndAllowThreads(__tstate); | |
5046 | if (PyErr_Occurred()) SWIG_fail; | |
5047 | } | |
5048 | Py_INCREF(Py_None); resultobj = Py_None; | |
5049 | return resultobj; | |
5050 | fail: | |
5051 | return NULL; | |
5052 | } | |
5053 | ||
5054 | ||
5055 | static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5056 | PyObject *resultobj; | |
5057 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5058 | PyObject * obj0 = 0 ; | |
5059 | char *kwnames[] = { | |
5060 | (char *) "self", NULL | |
5061 | }; | |
5062 | ||
5063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail; | |
5064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5065 | { | |
5066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5067 | (arg1)->AddFilesToMenu(); | |
5068 | ||
5069 | wxPyEndAllowThreads(__tstate); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | } | |
5072 | Py_INCREF(Py_None); resultobj = Py_None; | |
5073 | return resultobj; | |
5074 | fail: | |
5075 | return NULL; | |
5076 | } | |
5077 | ||
5078 | ||
5079 | static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5080 | PyObject *resultobj; | |
5081 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5082 | wxMenu *arg2 = (wxMenu *) 0 ; | |
5083 | PyObject * obj0 = 0 ; | |
5084 | PyObject * obj1 = 0 ; | |
5085 | char *kwnames[] = { | |
5086 | (char *) "self",(char *) "menu", NULL | |
5087 | }; | |
5088 | ||
5089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail; | |
5090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5091 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5092 | { | |
5093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5094 | (arg1)->AddFilesToMenu(arg2); | |
5095 | ||
5096 | wxPyEndAllowThreads(__tstate); | |
5097 | if (PyErr_Occurred()) SWIG_fail; | |
5098 | } | |
5099 | Py_INCREF(Py_None); resultobj = Py_None; | |
5100 | return resultobj; | |
5101 | fail: | |
5102 | return NULL; | |
5103 | } | |
5104 | ||
5105 | ||
5106 | static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5107 | PyObject *resultobj; | |
5108 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5109 | int arg2 ; | |
5110 | wxString result; | |
5111 | PyObject * obj0 = 0 ; | |
5112 | char *kwnames[] = { | |
5113 | (char *) "self",(char *) "i", NULL | |
5114 | }; | |
5115 | ||
5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:FileHistory_GetHistoryFile",kwnames,&obj0,&arg2)) goto fail; | |
5117 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5118 | { | |
5119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5120 | result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2); | |
5121 | ||
5122 | wxPyEndAllowThreads(__tstate); | |
5123 | if (PyErr_Occurred()) SWIG_fail; | |
5124 | } | |
5125 | { | |
5126 | #if wxUSE_UNICODE | |
5127 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5128 | #else | |
5129 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5130 | #endif | |
5131 | } | |
5132 | return resultobj; | |
5133 | fail: | |
5134 | return NULL; | |
5135 | } | |
5136 | ||
5137 | ||
5138 | static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5139 | PyObject *resultobj; | |
5140 | wxFileHistory *arg1 = (wxFileHistory *) 0 ; | |
5141 | int result; | |
5142 | PyObject * obj0 = 0 ; | |
5143 | char *kwnames[] = { | |
5144 | (char *) "self", NULL | |
5145 | }; | |
5146 | ||
5147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail; | |
5148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileHistory,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5149 | { | |
5150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5151 | result = (int)((wxFileHistory const *)arg1)->GetCount(); | |
5152 | ||
5153 | wxPyEndAllowThreads(__tstate); | |
5154 | if (PyErr_Occurred()) SWIG_fail; | |
5155 | } | |
5156 | resultobj = PyInt_FromLong((long)result); | |
5157 | return resultobj; | |
5158 | fail: | |
5159 | return NULL; | |
5160 | } | |
5161 | ||
5162 | ||
5163 | static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) { | |
5164 | PyObject *obj; | |
5165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5166 | SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj); | |
5167 | Py_INCREF(obj); | |
5168 | return Py_BuildValue((char *)""); | |
5169 | } | |
5170 | static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5171 | PyObject *resultobj; | |
5172 | wxString *arg1 = 0 ; | |
5173 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
5174 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
5175 | wxSingleInstanceChecker *result; | |
423f194a RD |
5176 | bool temp1 = False ; |
5177 | bool temp2 = False ; | |
d14a1e28 RD |
5178 | PyObject * obj0 = 0 ; |
5179 | PyObject * obj1 = 0 ; | |
5180 | char *kwnames[] = { | |
5181 | (char *) "name",(char *) "path", NULL | |
5182 | }; | |
5183 | ||
5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail; | |
5185 | { | |
5186 | arg1 = wxString_in_helper(obj0); | |
5187 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5188 | temp1 = True; |
d14a1e28 RD |
5189 | } |
5190 | if (obj1) { | |
5191 | { | |
5192 | arg2 = wxString_in_helper(obj1); | |
5193 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5194 | temp2 = True; |
d14a1e28 RD |
5195 | } |
5196 | } | |
5197 | { | |
5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5199 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2); | |
5200 | ||
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
5204 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5205 | { | |
5206 | if (temp1) | |
5207 | delete arg1; | |
5208 | } | |
5209 | { | |
5210 | if (temp2) | |
5211 | delete arg2; | |
5212 | } | |
5213 | return resultobj; | |
5214 | fail: | |
5215 | { | |
5216 | if (temp1) | |
5217 | delete arg1; | |
5218 | } | |
5219 | { | |
5220 | if (temp2) | |
5221 | delete arg2; | |
5222 | } | |
5223 | return NULL; | |
5224 | } | |
5225 | ||
5226 | ||
5227 | static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5228 | PyObject *resultobj; | |
5229 | wxSingleInstanceChecker *result; | |
5230 | char *kwnames[] = { | |
5231 | NULL | |
5232 | }; | |
5233 | ||
5234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail; | |
5235 | { | |
5236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5237 | result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker(); | |
5238 | ||
5239 | wxPyEndAllowThreads(__tstate); | |
5240 | if (PyErr_Occurred()) SWIG_fail; | |
5241 | } | |
5242 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleInstanceChecker, 1); | |
5243 | return resultobj; | |
5244 | fail: | |
5245 | return NULL; | |
5246 | } | |
5247 | ||
5248 | ||
5249 | static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5250 | PyObject *resultobj; | |
5251 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5252 | PyObject * obj0 = 0 ; | |
5253 | char *kwnames[] = { | |
5254 | (char *) "self", NULL | |
5255 | }; | |
5256 | ||
5257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail; | |
5258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5259 | { | |
5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5261 | delete arg1; | |
5262 | ||
5263 | wxPyEndAllowThreads(__tstate); | |
5264 | if (PyErr_Occurred()) SWIG_fail; | |
5265 | } | |
5266 | Py_INCREF(Py_None); resultobj = Py_None; | |
5267 | return resultobj; | |
5268 | fail: | |
5269 | return NULL; | |
5270 | } | |
5271 | ||
5272 | ||
5273 | static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5274 | PyObject *resultobj; | |
5275 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5276 | wxString *arg2 = 0 ; | |
5277 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
5278 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
5279 | bool result; | |
423f194a RD |
5280 | bool temp2 = False ; |
5281 | bool temp3 = False ; | |
d14a1e28 RD |
5282 | PyObject * obj0 = 0 ; |
5283 | PyObject * obj1 = 0 ; | |
5284 | PyObject * obj2 = 0 ; | |
5285 | char *kwnames[] = { | |
5286 | (char *) "self",(char *) "name",(char *) "path", NULL | |
5287 | }; | |
5288 | ||
5289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5291 | { | |
5292 | arg2 = wxString_in_helper(obj1); | |
5293 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5294 | temp2 = True; |
d14a1e28 RD |
5295 | } |
5296 | if (obj2) { | |
5297 | { | |
5298 | arg3 = wxString_in_helper(obj2); | |
5299 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 5300 | temp3 = True; |
d14a1e28 RD |
5301 | } |
5302 | } | |
5303 | { | |
5304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5305 | result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3); | |
5306 | ||
5307 | wxPyEndAllowThreads(__tstate); | |
5308 | if (PyErr_Occurred()) SWIG_fail; | |
5309 | } | |
5310 | resultobj = PyInt_FromLong((long)result); | |
5311 | { | |
5312 | if (temp2) | |
5313 | delete arg2; | |
5314 | } | |
5315 | { | |
5316 | if (temp3) | |
5317 | delete arg3; | |
5318 | } | |
5319 | return resultobj; | |
5320 | fail: | |
5321 | { | |
5322 | if (temp2) | |
5323 | delete arg2; | |
5324 | } | |
5325 | { | |
5326 | if (temp3) | |
5327 | delete arg3; | |
5328 | } | |
5329 | return NULL; | |
5330 | } | |
5331 | ||
5332 | ||
5333 | static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5334 | PyObject *resultobj; | |
5335 | wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ; | |
5336 | bool result; | |
5337 | PyObject * obj0 = 0 ; | |
5338 | char *kwnames[] = { | |
5339 | (char *) "self", NULL | |
5340 | }; | |
5341 | ||
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail; | |
5343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleInstanceChecker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5344 | { | |
5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5346 | result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning(); | |
5347 | ||
5348 | wxPyEndAllowThreads(__tstate); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
5351 | resultobj = PyInt_FromLong((long)result); | |
5352 | return resultobj; | |
5353 | fail: | |
5354 | return NULL; | |
5355 | } | |
5356 | ||
5357 | ||
5358 | static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) { | |
5359 | PyObject *obj; | |
5360 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5361 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj); | |
5362 | Py_INCREF(obj); | |
5363 | return Py_BuildValue((char *)""); | |
5364 | } | |
5365 | static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5366 | PyObject *resultobj; | |
5367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5368 | wxDC *arg2 = 0 ; | |
5369 | int arg3 ; | |
5370 | PyObject * obj0 = 0 ; | |
5371 | PyObject * obj1 = 0 ; | |
5372 | char *kwnames[] = { | |
5373 | (char *) "window",(char *) "dc",(char *) "method", NULL | |
5374 | }; | |
5375 | ||
5376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DrawWindowOnDC",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5378 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5379 | if (arg2 == NULL) { | |
5380 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5381 | } | |
5382 | { | |
5383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5384 | wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3); | |
5385 | ||
5386 | wxPyEndAllowThreads(__tstate); | |
5387 | if (PyErr_Occurred()) SWIG_fail; | |
5388 | } | |
5389 | Py_INCREF(Py_None); resultobj = Py_None; | |
5390 | return resultobj; | |
5391 | fail: | |
5392 | return NULL; | |
5393 | } | |
5394 | ||
5395 | ||
5396 | static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject *resultobj; | |
5398 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5399 | PyObject * obj0 = 0 ; | |
5400 | char *kwnames[] = { | |
5401 | (char *) "self", NULL | |
5402 | }; | |
5403 | ||
5404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail; | |
5405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5406 | { | |
5407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5408 | delete arg1; | |
5409 | ||
5410 | wxPyEndAllowThreads(__tstate); | |
5411 | if (PyErr_Occurred()) SWIG_fail; | |
5412 | } | |
5413 | Py_INCREF(Py_None); resultobj = Py_None; | |
5414 | return resultobj; | |
5415 | fail: | |
5416 | return NULL; | |
5417 | } | |
5418 | ||
5419 | ||
5420 | static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5421 | PyObject *resultobj; | |
5422 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5423 | wxString result; | |
5424 | PyObject * obj0 = 0 ; | |
5425 | char *kwnames[] = { | |
5426 | (char *) "self", NULL | |
5427 | }; | |
5428 | ||
5429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail; | |
5430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5431 | { | |
5432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5433 | result = (arg1)->GetTip(); | |
5434 | ||
5435 | wxPyEndAllowThreads(__tstate); | |
5436 | if (PyErr_Occurred()) SWIG_fail; | |
5437 | } | |
5438 | { | |
5439 | #if wxUSE_UNICODE | |
5440 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5441 | #else | |
5442 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5443 | #endif | |
5444 | } | |
5445 | return resultobj; | |
5446 | fail: | |
5447 | return NULL; | |
5448 | } | |
5449 | ||
5450 | ||
5451 | static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5452 | PyObject *resultobj; | |
5453 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5454 | size_t result; | |
5455 | PyObject * obj0 = 0 ; | |
5456 | char *kwnames[] = { | |
5457 | (char *) "self", NULL | |
5458 | }; | |
5459 | ||
5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail; | |
5461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5462 | { | |
5463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5464 | result = (size_t)(arg1)->GetCurrentTip(); | |
5465 | ||
5466 | wxPyEndAllowThreads(__tstate); | |
5467 | if (PyErr_Occurred()) SWIG_fail; | |
5468 | } | |
5469 | resultobj = PyInt_FromLong((long)result); | |
5470 | return resultobj; | |
5471 | fail: | |
5472 | return NULL; | |
5473 | } | |
5474 | ||
5475 | ||
5476 | static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5477 | PyObject *resultobj; | |
5478 | wxTipProvider *arg1 = (wxTipProvider *) 0 ; | |
5479 | wxString *arg2 = 0 ; | |
5480 | wxString result; | |
423f194a | 5481 | bool temp2 = False ; |
d14a1e28 RD |
5482 | PyObject * obj0 = 0 ; |
5483 | PyObject * obj1 = 0 ; | |
5484 | char *kwnames[] = { | |
5485 | (char *) "self",(char *) "tip", NULL | |
5486 | }; | |
5487 | ||
5488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail; | |
5489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5490 | { | |
5491 | arg2 = wxString_in_helper(obj1); | |
5492 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5493 | temp2 = True; |
d14a1e28 RD |
5494 | } |
5495 | { | |
5496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5497 | result = (arg1)->PreprocessTip((wxString const &)*arg2); | |
5498 | ||
5499 | wxPyEndAllowThreads(__tstate); | |
5500 | if (PyErr_Occurred()) SWIG_fail; | |
5501 | } | |
5502 | { | |
5503 | #if wxUSE_UNICODE | |
5504 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5505 | #else | |
5506 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5507 | #endif | |
5508 | } | |
5509 | { | |
5510 | if (temp2) | |
5511 | delete arg2; | |
5512 | } | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | { | |
5516 | if (temp2) | |
5517 | delete arg2; | |
5518 | } | |
5519 | return NULL; | |
5520 | } | |
5521 | ||
5522 | ||
5523 | static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) { | |
5524 | PyObject *obj; | |
5525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5526 | SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj); | |
5527 | Py_INCREF(obj); | |
5528 | return Py_BuildValue((char *)""); | |
5529 | } | |
5530 | static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5531 | PyObject *resultobj; | |
5532 | size_t arg1 ; | |
5533 | wxPyTipProvider *result; | |
5534 | PyObject * obj0 = 0 ; | |
5535 | char *kwnames[] = { | |
5536 | (char *) "currentTip", NULL | |
5537 | }; | |
5538 | ||
5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail; | |
5540 | arg1 = (size_t) PyInt_AsLong(obj0); | |
5541 | if (PyErr_Occurred()) SWIG_fail; | |
5542 | { | |
5543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5544 | result = (wxPyTipProvider *)new wxPyTipProvider(arg1); | |
5545 | ||
5546 | wxPyEndAllowThreads(__tstate); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | } | |
5549 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTipProvider, 1); | |
5550 | return resultobj; | |
5551 | fail: | |
5552 | return NULL; | |
5553 | } | |
5554 | ||
5555 | ||
5556 | static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5557 | PyObject *resultobj; | |
5558 | wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ; | |
5559 | PyObject *arg2 = (PyObject *) 0 ; | |
5560 | PyObject *arg3 = (PyObject *) 0 ; | |
5561 | PyObject * obj0 = 0 ; | |
5562 | PyObject * obj1 = 0 ; | |
5563 | PyObject * obj2 = 0 ; | |
5564 | char *kwnames[] = { | |
5565 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5566 | }; | |
5567 | ||
5568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5570 | arg2 = obj1; | |
5571 | arg3 = obj2; | |
5572 | { | |
5573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5574 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5575 | ||
5576 | wxPyEndAllowThreads(__tstate); | |
5577 | if (PyErr_Occurred()) SWIG_fail; | |
5578 | } | |
5579 | Py_INCREF(Py_None); resultobj = Py_None; | |
5580 | return resultobj; | |
5581 | fail: | |
5582 | return NULL; | |
5583 | } | |
5584 | ||
5585 | ||
5586 | static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) { | |
5587 | PyObject *obj; | |
5588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5589 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj); | |
5590 | Py_INCREF(obj); | |
5591 | return Py_BuildValue((char *)""); | |
5592 | } | |
5593 | static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5594 | PyObject *resultobj; | |
5595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5596 | wxTipProvider *arg2 = (wxTipProvider *) 0 ; | |
423f194a | 5597 | bool arg3 = (bool) True ; |
d14a1e28 RD |
5598 | bool result; |
5599 | PyObject * obj0 = 0 ; | |
5600 | PyObject * obj1 = 0 ; | |
5601 | PyObject * obj2 = 0 ; | |
5602 | char *kwnames[] = { | |
5603 | (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL | |
5604 | }; | |
5605 | ||
5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5608 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTipProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5609 | if (obj2) { | |
5610 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5611 | if (PyErr_Occurred()) SWIG_fail; | |
5612 | } | |
5613 | { | |
5614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5615 | result = (bool)wxShowTip(arg1,arg2,arg3); | |
5616 | ||
5617 | wxPyEndAllowThreads(__tstate); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | } | |
5620 | resultobj = PyInt_FromLong((long)result); | |
5621 | return resultobj; | |
5622 | fail: | |
5623 | return NULL; | |
5624 | } | |
5625 | ||
5626 | ||
5627 | static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5628 | PyObject *resultobj; | |
5629 | wxString *arg1 = 0 ; | |
5630 | size_t arg2 ; | |
5631 | wxTipProvider *result; | |
423f194a | 5632 | bool temp1 = False ; |
d14a1e28 RD |
5633 | PyObject * obj0 = 0 ; |
5634 | PyObject * obj1 = 0 ; | |
5635 | char *kwnames[] = { | |
5636 | (char *) "filename",(char *) "currentTip", NULL | |
5637 | }; | |
5638 | ||
5639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail; | |
5640 | { | |
5641 | arg1 = wxString_in_helper(obj0); | |
5642 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 5643 | temp1 = True; |
d14a1e28 RD |
5644 | } |
5645 | arg2 = (size_t) PyInt_AsLong(obj1); | |
5646 | if (PyErr_Occurred()) SWIG_fail; | |
5647 | { | |
5648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5649 | result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2); | |
5650 | ||
5651 | wxPyEndAllowThreads(__tstate); | |
5652 | if (PyErr_Occurred()) SWIG_fail; | |
5653 | } | |
5654 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipProvider, 1); | |
5655 | { | |
5656 | if (temp1) | |
5657 | delete arg1; | |
5658 | } | |
5659 | return resultobj; | |
5660 | fail: | |
5661 | { | |
5662 | if (temp1) | |
5663 | delete arg1; | |
5664 | } | |
5665 | return NULL; | |
5666 | } | |
5667 | ||
5668 | ||
5669 | static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5670 | PyObject *resultobj; | |
5671 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
5672 | int arg2 = (int) -1 ; | |
5673 | wxPyTimer *result; | |
5674 | PyObject * obj0 = 0 ; | |
5675 | char *kwnames[] = { | |
5676 | (char *) "owner",(char *) "id", NULL | |
5677 | }; | |
5678 | ||
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Timer",kwnames,&obj0,&arg2)) goto fail; | |
5680 | if (obj0) { | |
5681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5682 | } | |
5683 | { | |
5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5685 | result = (wxPyTimer *)new wxPyTimer(arg1,arg2); | |
5686 | ||
5687 | wxPyEndAllowThreads(__tstate); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
5690 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTimer, 1); | |
5691 | return resultobj; | |
5692 | fail: | |
5693 | return NULL; | |
5694 | } | |
5695 | ||
5696 | ||
5697 | static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5698 | PyObject *resultobj; | |
5699 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5700 | PyObject * obj0 = 0 ; | |
5701 | char *kwnames[] = { | |
5702 | (char *) "self", NULL | |
5703 | }; | |
5704 | ||
5705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail; | |
5706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5707 | { | |
5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5709 | delete arg1; | |
5710 | ||
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | Py_INCREF(Py_None); resultobj = Py_None; | |
5715 | return resultobj; | |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
44127b65 RD |
5721 | static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
5722 | PyObject *resultobj; | |
5723 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5724 | PyObject *arg2 = (PyObject *) 0 ; | |
5725 | PyObject *arg3 = (PyObject *) 0 ; | |
5726 | PyObject * obj0 = 0 ; | |
5727 | PyObject * obj1 = 0 ; | |
5728 | PyObject * obj2 = 0 ; | |
5729 | char *kwnames[] = { | |
5730 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
5731 | }; | |
5732 | ||
5733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5735 | arg2 = obj1; | |
5736 | arg3 = obj2; | |
5737 | { | |
5738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5739 | (arg1)->_setCallbackInfo(arg2,arg3); | |
5740 | ||
5741 | wxPyEndAllowThreads(__tstate); | |
5742 | if (PyErr_Occurred()) SWIG_fail; | |
5743 | } | |
5744 | Py_INCREF(Py_None); resultobj = Py_None; | |
5745 | return resultobj; | |
5746 | fail: | |
5747 | return NULL; | |
5748 | } | |
5749 | ||
5750 | ||
d14a1e28 RD |
5751 | static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { |
5752 | PyObject *resultobj; | |
5753 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5754 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
5755 | int arg3 = (int) -1 ; | |
5756 | PyObject * obj0 = 0 ; | |
5757 | PyObject * obj1 = 0 ; | |
5758 | char *kwnames[] = { | |
5759 | (char *) "self",(char *) "owner",(char *) "id", NULL | |
5760 | }; | |
5761 | ||
5762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Timer_SetOwner",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5764 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5765 | { | |
5766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5767 | (arg1)->SetOwner(arg2,arg3); | |
5768 | ||
5769 | wxPyEndAllowThreads(__tstate); | |
5770 | if (PyErr_Occurred()) SWIG_fail; | |
5771 | } | |
5772 | Py_INCREF(Py_None); resultobj = Py_None; | |
5773 | return resultobj; | |
5774 | fail: | |
5775 | return NULL; | |
5776 | } | |
5777 | ||
5778 | ||
5779 | static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject *resultobj; | |
5781 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5782 | int arg2 = (int) -1 ; | |
423f194a | 5783 | bool arg3 = (bool) False ; |
d14a1e28 RD |
5784 | bool result; |
5785 | PyObject * obj0 = 0 ; | |
5786 | PyObject * obj2 = 0 ; | |
5787 | char *kwnames[] = { | |
5788 | (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL | |
5789 | }; | |
5790 | ||
5791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Timer_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
5792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5793 | if (obj2) { | |
5794 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
5795 | if (PyErr_Occurred()) SWIG_fail; | |
5796 | } | |
5797 | { | |
5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5799 | result = (bool)(arg1)->Start(arg2,arg3); | |
5800 | ||
5801 | wxPyEndAllowThreads(__tstate); | |
5802 | if (PyErr_Occurred()) SWIG_fail; | |
5803 | } | |
5804 | resultobj = PyInt_FromLong((long)result); | |
5805 | return resultobj; | |
5806 | fail: | |
5807 | return NULL; | |
5808 | } | |
5809 | ||
5810 | ||
5811 | static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5812 | PyObject *resultobj; | |
5813 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5814 | PyObject * obj0 = 0 ; | |
5815 | char *kwnames[] = { | |
5816 | (char *) "self", NULL | |
5817 | }; | |
5818 | ||
5819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail; | |
5820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5821 | { | |
5822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5823 | (arg1)->Stop(); | |
5824 | ||
5825 | wxPyEndAllowThreads(__tstate); | |
5826 | if (PyErr_Occurred()) SWIG_fail; | |
5827 | } | |
5828 | Py_INCREF(Py_None); resultobj = Py_None; | |
5829 | return resultobj; | |
5830 | fail: | |
5831 | return NULL; | |
5832 | } | |
5833 | ||
5834 | ||
d14a1e28 RD |
5835 | static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { |
5836 | PyObject *resultobj; | |
5837 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5838 | bool result; | |
5839 | PyObject * obj0 = 0 ; | |
5840 | char *kwnames[] = { | |
5841 | (char *) "self", NULL | |
5842 | }; | |
5843 | ||
5844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail; | |
5845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5846 | { | |
5847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5848 | result = (bool)((wxPyTimer const *)arg1)->IsRunning(); | |
5849 | ||
5850 | wxPyEndAllowThreads(__tstate); | |
5851 | if (PyErr_Occurred()) SWIG_fail; | |
5852 | } | |
5853 | resultobj = PyInt_FromLong((long)result); | |
5854 | return resultobj; | |
5855 | fail: | |
5856 | return NULL; | |
5857 | } | |
5858 | ||
5859 | ||
5860 | static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5861 | PyObject *resultobj; | |
5862 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5863 | int result; | |
5864 | PyObject * obj0 = 0 ; | |
5865 | char *kwnames[] = { | |
5866 | (char *) "self", NULL | |
5867 | }; | |
5868 | ||
5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail; | |
5870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5871 | { | |
5872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5873 | result = (int)((wxPyTimer const *)arg1)->GetInterval(); | |
5874 | ||
5875 | wxPyEndAllowThreads(__tstate); | |
5876 | if (PyErr_Occurred()) SWIG_fail; | |
5877 | } | |
5878 | resultobj = PyInt_FromLong((long)result); | |
5879 | return resultobj; | |
5880 | fail: | |
5881 | return NULL; | |
5882 | } | |
5883 | ||
5884 | ||
5885 | static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5886 | PyObject *resultobj; | |
5887 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5888 | bool result; | |
5889 | PyObject * obj0 = 0 ; | |
5890 | char *kwnames[] = { | |
5891 | (char *) "self", NULL | |
5892 | }; | |
5893 | ||
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail; | |
5895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5896 | { | |
5897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5898 | result = (bool)((wxPyTimer const *)arg1)->IsOneShot(); | |
5899 | ||
5900 | wxPyEndAllowThreads(__tstate); | |
5901 | if (PyErr_Occurred()) SWIG_fail; | |
5902 | } | |
5903 | resultobj = PyInt_FromLong((long)result); | |
5904 | return resultobj; | |
5905 | fail: | |
5906 | return NULL; | |
5907 | } | |
5908 | ||
5909 | ||
0f774bef RD |
5910 | static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
5911 | PyObject *resultobj; | |
5912 | wxPyTimer *arg1 = (wxPyTimer *) 0 ; | |
5913 | int result; | |
5914 | PyObject * obj0 = 0 ; | |
5915 | char *kwnames[] = { | |
5916 | (char *) "self", NULL | |
5917 | }; | |
5918 | ||
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail; | |
5920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5921 | { | |
5922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5923 | result = (int)((wxPyTimer const *)arg1)->GetId(); | |
5924 | ||
5925 | wxPyEndAllowThreads(__tstate); | |
5926 | if (PyErr_Occurred()) SWIG_fail; | |
5927 | } | |
5928 | resultobj = PyInt_FromLong((long)result); | |
5929 | return resultobj; | |
5930 | fail: | |
5931 | return NULL; | |
5932 | } | |
5933 | ||
5934 | ||
d14a1e28 RD |
5935 | static PyObject * Timer_swigregister(PyObject *self, PyObject *args) { |
5936 | PyObject *obj; | |
5937 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5938 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj); | |
5939 | Py_INCREF(obj); | |
5940 | return Py_BuildValue((char *)""); | |
5941 | } | |
5942 | static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5943 | PyObject *resultobj; | |
5944 | int arg1 = (int) 0 ; | |
5945 | int arg2 = (int) 0 ; | |
5946 | wxTimerEvent *result; | |
5947 | char *kwnames[] = { | |
5948 | (char *) "timerid",(char *) "interval", NULL | |
5949 | }; | |
5950 | ||
5951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TimerEvent",kwnames,&arg1,&arg2)) goto fail; | |
5952 | { | |
5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5954 | result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2); | |
5955 | ||
5956 | wxPyEndAllowThreads(__tstate); | |
5957 | if (PyErr_Occurred()) SWIG_fail; | |
5958 | } | |
5959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerEvent, 1); | |
5960 | return resultobj; | |
5961 | fail: | |
5962 | return NULL; | |
5963 | } | |
5964 | ||
5965 | ||
5966 | static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5967 | PyObject *resultobj; | |
5968 | wxTimerEvent *arg1 = (wxTimerEvent *) 0 ; | |
5969 | int result; | |
5970 | PyObject * obj0 = 0 ; | |
5971 | char *kwnames[] = { | |
5972 | (char *) "self", NULL | |
5973 | }; | |
5974 | ||
5975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail; | |
5976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5977 | { | |
5978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5979 | result = (int)((wxTimerEvent const *)arg1)->GetInterval(); | |
5980 | ||
5981 | wxPyEndAllowThreads(__tstate); | |
5982 | if (PyErr_Occurred()) SWIG_fail; | |
5983 | } | |
5984 | resultobj = PyInt_FromLong((long)result); | |
5985 | return resultobj; | |
5986 | fail: | |
5987 | return NULL; | |
5988 | } | |
5989 | ||
5990 | ||
5991 | static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) { | |
5992 | PyObject *obj; | |
5993 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5994 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj); | |
5995 | Py_INCREF(obj); | |
5996 | return Py_BuildValue((char *)""); | |
5997 | } | |
5998 | static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) { | |
5999 | PyObject *resultobj; | |
6000 | wxTimer *arg1 = 0 ; | |
6001 | wxTimerRunner *result; | |
6002 | PyObject * obj0 = 0 ; | |
6003 | ||
6004 | if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail; | |
6005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6006 | if (arg1 == NULL) { | |
6007 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6008 | } | |
6009 | { | |
6010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6011 | result = (wxTimerRunner *)new wxTimerRunner(*arg1); | |
6012 | ||
6013 | wxPyEndAllowThreads(__tstate); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | } | |
6016 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6017 | return resultobj; | |
6018 | fail: | |
6019 | return NULL; | |
6020 | } | |
6021 | ||
6022 | ||
6023 | static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) { | |
6024 | PyObject *resultobj; | |
6025 | wxTimer *arg1 = 0 ; | |
6026 | int arg2 ; | |
423f194a | 6027 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6028 | wxTimerRunner *result; |
6029 | PyObject * obj0 = 0 ; | |
6030 | PyObject * obj2 = 0 ; | |
6031 | ||
6032 | if(!PyArg_ParseTuple(args,(char *)"Oi|O:new_TimerRunner",&obj0,&arg2,&obj2)) goto fail; | |
6033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6034 | if (arg1 == NULL) { | |
6035 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6036 | } | |
6037 | if (obj2) { | |
6038 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6039 | if (PyErr_Occurred()) SWIG_fail; | |
6040 | } | |
6041 | { | |
6042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6043 | result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3); | |
6044 | ||
6045 | wxPyEndAllowThreads(__tstate); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | } | |
6048 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimerRunner, 1); | |
6049 | return resultobj; | |
6050 | fail: | |
6051 | return NULL; | |
6052 | } | |
6053 | ||
6054 | ||
6055 | static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) { | |
6056 | int argc; | |
6057 | PyObject *argv[4]; | |
6058 | int ii; | |
6059 | ||
6060 | argc = PyObject_Length(args); | |
6061 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
6062 | argv[ii] = PyTuple_GetItem(args,ii); | |
6063 | } | |
6064 | if (argc == 1) { | |
6065 | int _v; | |
6066 | { | |
6067 | void *ptr; | |
6068 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6069 | _v = 0; | |
6070 | PyErr_Clear(); | |
6071 | } else { | |
6072 | _v = 1; | |
6073 | } | |
6074 | } | |
6075 | if (_v) { | |
6076 | return _wrap_new_TimerRunner__SWIG_0(self,args); | |
6077 | } | |
6078 | } | |
6079 | if ((argc >= 2) && (argc <= 3)) { | |
6080 | int _v; | |
6081 | { | |
6082 | void *ptr; | |
6083 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxTimer, 0) == -1) { | |
6084 | _v = 0; | |
6085 | PyErr_Clear(); | |
6086 | } else { | |
6087 | _v = 1; | |
6088 | } | |
6089 | } | |
6090 | if (_v) { | |
6091 | { | |
6092 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
6093 | } | |
6094 | if (_v) { | |
6095 | if (argc <= 2) { | |
6096 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6097 | } | |
6098 | { | |
6099 | _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; | |
6100 | } | |
6101 | if (_v) { | |
6102 | return _wrap_new_TimerRunner__SWIG_1(self,args); | |
6103 | } | |
6104 | } | |
6105 | } | |
6106 | } | |
6107 | ||
6108 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'"); | |
6109 | return NULL; | |
6110 | } | |
6111 | ||
6112 | ||
6113 | static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6114 | PyObject *resultobj; | |
6115 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6116 | PyObject * obj0 = 0 ; | |
6117 | char *kwnames[] = { | |
6118 | (char *) "self", NULL | |
6119 | }; | |
6120 | ||
6121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail; | |
6122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6123 | { | |
6124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6125 | delete arg1; | |
6126 | ||
6127 | wxPyEndAllowThreads(__tstate); | |
6128 | if (PyErr_Occurred()) SWIG_fail; | |
6129 | } | |
6130 | Py_INCREF(Py_None); resultobj = Py_None; | |
6131 | return resultobj; | |
6132 | fail: | |
6133 | return NULL; | |
6134 | } | |
6135 | ||
6136 | ||
6137 | static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6138 | PyObject *resultobj; | |
6139 | wxTimerRunner *arg1 = (wxTimerRunner *) 0 ; | |
6140 | int arg2 ; | |
423f194a | 6141 | bool arg3 = (bool) False ; |
d14a1e28 RD |
6142 | PyObject * obj0 = 0 ; |
6143 | PyObject * obj2 = 0 ; | |
6144 | char *kwnames[] = { | |
6145 | (char *) "self",(char *) "milli",(char *) "oneShot", NULL | |
6146 | }; | |
6147 | ||
6148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:TimerRunner_Start",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
6149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimerRunner,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6150 | if (obj2) { | |
6151 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6152 | if (PyErr_Occurred()) SWIG_fail; | |
6153 | } | |
6154 | { | |
6155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6156 | (arg1)->Start(arg2,arg3); | |
6157 | ||
6158 | wxPyEndAllowThreads(__tstate); | |
6159 | if (PyErr_Occurred()) SWIG_fail; | |
6160 | } | |
6161 | Py_INCREF(Py_None); resultobj = Py_None; | |
6162 | return resultobj; | |
6163 | fail: | |
6164 | return NULL; | |
6165 | } | |
6166 | ||
6167 | ||
6168 | static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) { | |
6169 | PyObject *obj; | |
6170 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6171 | SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj); | |
6172 | Py_INCREF(obj); | |
6173 | return Py_BuildValue((char *)""); | |
6174 | } | |
6175 | static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6176 | PyObject *resultobj; | |
6177 | wxLog *result; | |
6178 | char *kwnames[] = { | |
6179 | NULL | |
6180 | }; | |
6181 | ||
6182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail; | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | result = (wxLog *)new wxLog(); | |
6186 | ||
6187 | wxPyEndAllowThreads(__tstate); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | } | |
6190 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 1); | |
6191 | return resultobj; | |
6192 | fail: | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
6197 | static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6198 | PyObject *resultobj; | |
6199 | bool result; | |
6200 | char *kwnames[] = { | |
6201 | NULL | |
6202 | }; | |
6203 | ||
6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail; | |
6205 | { | |
6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6207 | result = (bool)wxLog::IsEnabled(); | |
6208 | ||
6209 | wxPyEndAllowThreads(__tstate); | |
6210 | if (PyErr_Occurred()) SWIG_fail; | |
6211 | } | |
6212 | resultobj = PyInt_FromLong((long)result); | |
6213 | return resultobj; | |
6214 | fail: | |
6215 | return NULL; | |
6216 | } | |
6217 | ||
6218 | ||
6219 | static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6220 | PyObject *resultobj; | |
423f194a | 6221 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6222 | bool result; |
6223 | PyObject * obj0 = 0 ; | |
6224 | char *kwnames[] = { | |
6225 | (char *) "doIt", NULL | |
6226 | }; | |
6227 | ||
6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail; | |
6229 | if (obj0) { | |
6230 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6231 | if (PyErr_Occurred()) SWIG_fail; | |
6232 | } | |
6233 | { | |
6234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6235 | result = (bool)wxLog::EnableLogging(arg1); | |
6236 | ||
6237 | wxPyEndAllowThreads(__tstate); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | } | |
6240 | resultobj = PyInt_FromLong((long)result); | |
6241 | return resultobj; | |
6242 | fail: | |
6243 | return NULL; | |
6244 | } | |
6245 | ||
6246 | ||
6247 | static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6248 | PyObject *resultobj; | |
6249 | wxLogLevel arg1 ; | |
6250 | wxChar *arg2 = (wxChar *) 0 ; | |
6251 | time_t arg3 ; | |
6252 | PyObject * obj0 = 0 ; | |
6253 | PyObject * obj1 = 0 ; | |
6254 | PyObject * obj2 = 0 ; | |
6255 | char *kwnames[] = { | |
6256 | (char *) "level",(char *) "szString",(char *) "t", NULL | |
6257 | }; | |
6258 | ||
6259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6260 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6261 | if (PyErr_Occurred()) SWIG_fail; | |
6262 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6263 | arg3 = (time_t) PyInt_AsLong(obj2); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | { | |
6266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6267 | wxLog::OnLog(arg1,(wxChar const *)arg2,arg3); | |
6268 | ||
6269 | wxPyEndAllowThreads(__tstate); | |
6270 | if (PyErr_Occurred()) SWIG_fail; | |
6271 | } | |
6272 | Py_INCREF(Py_None); resultobj = Py_None; | |
6273 | return resultobj; | |
6274 | fail: | |
6275 | return NULL; | |
6276 | } | |
6277 | ||
6278 | ||
6279 | static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6280 | PyObject *resultobj; | |
6281 | wxLog *arg1 = (wxLog *) 0 ; | |
6282 | PyObject * obj0 = 0 ; | |
6283 | char *kwnames[] = { | |
6284 | (char *) "self", NULL | |
6285 | }; | |
6286 | ||
6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail; | |
6288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6289 | { | |
6290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6291 | (arg1)->Flush(); | |
6292 | ||
6293 | wxPyEndAllowThreads(__tstate); | |
6294 | if (PyErr_Occurred()) SWIG_fail; | |
6295 | } | |
6296 | Py_INCREF(Py_None); resultobj = Py_None; | |
6297 | return resultobj; | |
6298 | fail: | |
6299 | return NULL; | |
6300 | } | |
6301 | ||
6302 | ||
6303 | static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject *resultobj; | |
6305 | char *kwnames[] = { | |
6306 | NULL | |
6307 | }; | |
6308 | ||
6309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail; | |
6310 | { | |
6311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6312 | wxLog::FlushActive(); | |
6313 | ||
6314 | wxPyEndAllowThreads(__tstate); | |
6315 | if (PyErr_Occurred()) SWIG_fail; | |
6316 | } | |
6317 | Py_INCREF(Py_None); resultobj = Py_None; | |
6318 | return resultobj; | |
6319 | fail: | |
6320 | return NULL; | |
6321 | } | |
6322 | ||
6323 | ||
6324 | static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6325 | PyObject *resultobj; | |
6326 | wxLog *result; | |
6327 | char *kwnames[] = { | |
6328 | NULL | |
6329 | }; | |
6330 | ||
6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail; | |
6332 | { | |
6333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6334 | result = (wxLog *)wxLog::GetActiveTarget(); | |
6335 | ||
6336 | wxPyEndAllowThreads(__tstate); | |
6337 | if (PyErr_Occurred()) SWIG_fail; | |
6338 | } | |
6339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6340 | return resultobj; | |
6341 | fail: | |
6342 | return NULL; | |
6343 | } | |
6344 | ||
6345 | ||
6346 | static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6347 | PyObject *resultobj; | |
6348 | wxLog *arg1 = (wxLog *) 0 ; | |
6349 | wxLog *result; | |
6350 | PyObject * obj0 = 0 ; | |
6351 | char *kwnames[] = { | |
6352 | (char *) "pLogger", NULL | |
6353 | }; | |
6354 | ||
6355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail; | |
6356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6357 | { | |
6358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6359 | result = (wxLog *)wxLog::SetActiveTarget(arg1); | |
6360 | ||
6361 | wxPyEndAllowThreads(__tstate); | |
6362 | if (PyErr_Occurred()) SWIG_fail; | |
6363 | } | |
6364 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
6365 | return resultobj; | |
6366 | fail: | |
6367 | return NULL; | |
6368 | } | |
6369 | ||
6370 | ||
6371 | static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6372 | PyObject *resultobj; | |
6373 | char *kwnames[] = { | |
6374 | NULL | |
6375 | }; | |
6376 | ||
6377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail; | |
6378 | { | |
6379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6380 | wxLog::Suspend(); | |
6381 | ||
6382 | wxPyEndAllowThreads(__tstate); | |
6383 | if (PyErr_Occurred()) SWIG_fail; | |
6384 | } | |
6385 | Py_INCREF(Py_None); resultobj = Py_None; | |
6386 | return resultobj; | |
6387 | fail: | |
6388 | return NULL; | |
6389 | } | |
6390 | ||
6391 | ||
6392 | static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6393 | PyObject *resultobj; | |
6394 | char *kwnames[] = { | |
6395 | NULL | |
6396 | }; | |
6397 | ||
6398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail; | |
6399 | { | |
6400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6401 | wxLog::Resume(); | |
6402 | ||
6403 | wxPyEndAllowThreads(__tstate); | |
6404 | if (PyErr_Occurred()) SWIG_fail; | |
6405 | } | |
6406 | Py_INCREF(Py_None); resultobj = Py_None; | |
6407 | return resultobj; | |
6408 | fail: | |
6409 | return NULL; | |
6410 | } | |
6411 | ||
6412 | ||
6413 | static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6414 | PyObject *resultobj; | |
423f194a | 6415 | bool arg1 = (bool) True ; |
d14a1e28 RD |
6416 | PyObject * obj0 = 0 ; |
6417 | char *kwnames[] = { | |
6418 | (char *) "bVerbose", NULL | |
6419 | }; | |
6420 | ||
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail; | |
6422 | if (obj0) { | |
6423 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
6426 | { | |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | wxLog::SetVerbose(arg1); | |
6429 | ||
6430 | wxPyEndAllowThreads(__tstate); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
6433 | Py_INCREF(Py_None); resultobj = Py_None; | |
6434 | return resultobj; | |
6435 | fail: | |
6436 | return NULL; | |
6437 | } | |
6438 | ||
6439 | ||
6440 | static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6441 | PyObject *resultobj; | |
6442 | wxLogLevel arg1 ; | |
6443 | PyObject * obj0 = 0 ; | |
6444 | char *kwnames[] = { | |
6445 | (char *) "logLevel", NULL | |
6446 | }; | |
6447 | ||
6448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail; | |
6449 | arg1 = (wxLogLevel) PyInt_AsLong(obj0); | |
6450 | if (PyErr_Occurred()) SWIG_fail; | |
6451 | { | |
6452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6453 | wxLog::SetLogLevel(arg1); | |
6454 | ||
6455 | wxPyEndAllowThreads(__tstate); | |
6456 | if (PyErr_Occurred()) SWIG_fail; | |
6457 | } | |
6458 | Py_INCREF(Py_None); resultobj = Py_None; | |
6459 | return resultobj; | |
6460 | fail: | |
6461 | return NULL; | |
6462 | } | |
6463 | ||
6464 | ||
6465 | static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6466 | PyObject *resultobj; | |
6467 | char *kwnames[] = { | |
6468 | NULL | |
6469 | }; | |
6470 | ||
6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail; | |
6472 | { | |
6473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6474 | wxLog::DontCreateOnDemand(); | |
6475 | ||
6476 | wxPyEndAllowThreads(__tstate); | |
6477 | if (PyErr_Occurred()) SWIG_fail; | |
6478 | } | |
6479 | Py_INCREF(Py_None); resultobj = Py_None; | |
6480 | return resultobj; | |
6481 | fail: | |
6482 | return NULL; | |
6483 | } | |
6484 | ||
6485 | ||
6486 | static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6487 | PyObject *resultobj; | |
6488 | wxTraceMask arg1 ; | |
6489 | PyObject * obj0 = 0 ; | |
6490 | char *kwnames[] = { | |
6491 | (char *) "ulMask", NULL | |
6492 | }; | |
6493 | ||
6494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail; | |
6495 | arg1 = (wxTraceMask) PyInt_AsLong(obj0); | |
6496 | if (PyErr_Occurred()) SWIG_fail; | |
6497 | { | |
6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6499 | wxLog::SetTraceMask(arg1); | |
6500 | ||
6501 | wxPyEndAllowThreads(__tstate); | |
6502 | if (PyErr_Occurred()) SWIG_fail; | |
6503 | } | |
6504 | Py_INCREF(Py_None); resultobj = Py_None; | |
6505 | return resultobj; | |
6506 | fail: | |
6507 | return NULL; | |
6508 | } | |
6509 | ||
6510 | ||
6511 | static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6512 | PyObject *resultobj; | |
6513 | wxString *arg1 = 0 ; | |
423f194a | 6514 | bool temp1 = False ; |
d14a1e28 RD |
6515 | PyObject * obj0 = 0 ; |
6516 | char *kwnames[] = { | |
6517 | (char *) "str", NULL | |
6518 | }; | |
6519 | ||
6520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail; | |
6521 | { | |
6522 | arg1 = wxString_in_helper(obj0); | |
6523 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6524 | temp1 = True; |
d14a1e28 RD |
6525 | } |
6526 | { | |
6527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6528 | wxLog::AddTraceMask((wxString const &)*arg1); | |
6529 | ||
6530 | wxPyEndAllowThreads(__tstate); | |
6531 | if (PyErr_Occurred()) SWIG_fail; | |
6532 | } | |
6533 | Py_INCREF(Py_None); resultobj = Py_None; | |
6534 | { | |
6535 | if (temp1) | |
6536 | delete arg1; | |
6537 | } | |
6538 | return resultobj; | |
6539 | fail: | |
6540 | { | |
6541 | if (temp1) | |
6542 | delete arg1; | |
6543 | } | |
6544 | return NULL; | |
6545 | } | |
6546 | ||
6547 | ||
6548 | static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6549 | PyObject *resultobj; | |
6550 | wxString *arg1 = 0 ; | |
423f194a | 6551 | bool temp1 = False ; |
d14a1e28 RD |
6552 | PyObject * obj0 = 0 ; |
6553 | char *kwnames[] = { | |
6554 | (char *) "str", NULL | |
6555 | }; | |
6556 | ||
6557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail; | |
6558 | { | |
6559 | arg1 = wxString_in_helper(obj0); | |
6560 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 6561 | temp1 = True; |
d14a1e28 RD |
6562 | } |
6563 | { | |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | wxLog::RemoveTraceMask((wxString const &)*arg1); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | Py_INCREF(Py_None); resultobj = Py_None; | |
6571 | { | |
6572 | if (temp1) | |
6573 | delete arg1; | |
6574 | } | |
6575 | return resultobj; | |
6576 | fail: | |
6577 | { | |
6578 | if (temp1) | |
6579 | delete arg1; | |
6580 | } | |
6581 | return NULL; | |
6582 | } | |
6583 | ||
6584 | ||
6585 | static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject *resultobj; | |
6587 | char *kwnames[] = { | |
6588 | NULL | |
6589 | }; | |
6590 | ||
6591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail; | |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | wxLog::ClearTraceMasks(); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | Py_INCREF(Py_None); resultobj = Py_None; | |
6600 | return resultobj; | |
6601 | fail: | |
6602 | return NULL; | |
6603 | } | |
6604 | ||
6605 | ||
6606 | static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6607 | PyObject *resultobj; | |
6608 | wxArrayString *result; | |
6609 | char *kwnames[] = { | |
6610 | NULL | |
6611 | }; | |
6612 | ||
6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail; | |
6614 | { | |
6615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6616 | { | |
6617 | wxArrayString const &_result_ref = wxLog::GetTraceMasks(); | |
6618 | result = (wxArrayString *) &_result_ref; | |
6619 | } | |
6620 | ||
6621 | wxPyEndAllowThreads(__tstate); | |
6622 | if (PyErr_Occurred()) SWIG_fail; | |
6623 | } | |
6624 | { | |
6625 | resultobj = wxArrayString2PyList_helper(*result); | |
6626 | } | |
6627 | return resultobj; | |
6628 | fail: | |
6629 | return NULL; | |
6630 | } | |
6631 | ||
6632 | ||
6633 | static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6634 | PyObject *resultobj; | |
6635 | wxChar *arg1 = (wxChar *) 0 ; | |
6636 | PyObject * obj0 = 0 ; | |
6637 | char *kwnames[] = { | |
6638 | (char *) "ts", NULL | |
6639 | }; | |
6640 | ||
6641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail; | |
6642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6643 | { | |
6644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6645 | wxLog::SetTimestamp((wxChar const *)arg1); | |
6646 | ||
6647 | wxPyEndAllowThreads(__tstate); | |
6648 | if (PyErr_Occurred()) SWIG_fail; | |
6649 | } | |
6650 | Py_INCREF(Py_None); resultobj = Py_None; | |
6651 | return resultobj; | |
6652 | fail: | |
6653 | return NULL; | |
6654 | } | |
6655 | ||
6656 | ||
6657 | static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6658 | PyObject *resultobj; | |
6659 | bool result; | |
6660 | char *kwnames[] = { | |
6661 | NULL | |
6662 | }; | |
6663 | ||
6664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail; | |
6665 | { | |
6666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6667 | result = (bool)wxLog::GetVerbose(); | |
6668 | ||
6669 | wxPyEndAllowThreads(__tstate); | |
6670 | if (PyErr_Occurred()) SWIG_fail; | |
6671 | } | |
6672 | resultobj = PyInt_FromLong((long)result); | |
6673 | return resultobj; | |
6674 | fail: | |
6675 | return NULL; | |
6676 | } | |
6677 | ||
6678 | ||
6679 | static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6680 | PyObject *resultobj; | |
6681 | wxTraceMask result; | |
6682 | char *kwnames[] = { | |
6683 | NULL | |
6684 | }; | |
6685 | ||
6686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail; | |
6687 | { | |
6688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6689 | result = (wxTraceMask)wxLog::GetTraceMask(); | |
6690 | ||
6691 | wxPyEndAllowThreads(__tstate); | |
6692 | if (PyErr_Occurred()) SWIG_fail; | |
6693 | } | |
6694 | resultobj = PyInt_FromLong((long)result); | |
6695 | return resultobj; | |
6696 | fail: | |
6697 | return NULL; | |
6698 | } | |
6699 | ||
6700 | ||
6701 | static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6702 | PyObject *resultobj; | |
6703 | wxChar *arg1 = (wxChar *) 0 ; | |
6704 | bool result; | |
6705 | PyObject * obj0 = 0 ; | |
6706 | char *kwnames[] = { | |
6707 | (char *) "mask", NULL | |
6708 | }; | |
6709 | ||
6710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail; | |
6711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6712 | { | |
6713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6714 | result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1); | |
6715 | ||
6716 | wxPyEndAllowThreads(__tstate); | |
6717 | if (PyErr_Occurred()) SWIG_fail; | |
6718 | } | |
6719 | resultobj = PyInt_FromLong((long)result); | |
6720 | return resultobj; | |
6721 | fail: | |
6722 | return NULL; | |
6723 | } | |
6724 | ||
6725 | ||
6726 | static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6727 | PyObject *resultobj; | |
6728 | wxLogLevel result; | |
6729 | char *kwnames[] = { | |
6730 | NULL | |
6731 | }; | |
6732 | ||
6733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail; | |
6734 | { | |
6735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6736 | result = (wxLogLevel)wxLog::GetLogLevel(); | |
6737 | ||
6738 | wxPyEndAllowThreads(__tstate); | |
6739 | if (PyErr_Occurred()) SWIG_fail; | |
6740 | } | |
6741 | resultobj = PyInt_FromLong((long)result); | |
6742 | return resultobj; | |
6743 | fail: | |
6744 | return NULL; | |
6745 | } | |
6746 | ||
6747 | ||
6748 | static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6749 | PyObject *resultobj; | |
6750 | wxChar *result; | |
6751 | char *kwnames[] = { | |
6752 | NULL | |
6753 | }; | |
6754 | ||
6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail; | |
6756 | { | |
6757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6758 | result = (wxChar *)wxLog::GetTimestamp(); | |
6759 | ||
6760 | wxPyEndAllowThreads(__tstate); | |
6761 | if (PyErr_Occurred()) SWIG_fail; | |
6762 | } | |
6763 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChar, 0); | |
6764 | return resultobj; | |
6765 | fail: | |
6766 | return NULL; | |
6767 | } | |
6768 | ||
6769 | ||
6770 | static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6771 | PyObject *resultobj; | |
6772 | wxString result; | |
6773 | char *kwnames[] = { | |
6774 | NULL | |
6775 | }; | |
6776 | ||
6777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail; | |
6778 | { | |
6779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6780 | result = Log_TimeStamp(); | |
6781 | ||
6782 | wxPyEndAllowThreads(__tstate); | |
6783 | if (PyErr_Occurred()) SWIG_fail; | |
6784 | } | |
6785 | { | |
6786 | #if wxUSE_UNICODE | |
6787 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6788 | #else | |
6789 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6790 | #endif | |
6791 | } | |
6792 | return resultobj; | |
6793 | fail: | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
6798 | static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6799 | PyObject *resultobj; | |
6800 | wxLog *arg1 = (wxLog *) 0 ; | |
6801 | PyObject * obj0 = 0 ; | |
6802 | char *kwnames[] = { | |
6803 | (char *) "self", NULL | |
6804 | }; | |
6805 | ||
6806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail; | |
6807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6808 | { | |
6809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6810 | wxLog_Destroy(arg1); | |
6811 | ||
6812 | wxPyEndAllowThreads(__tstate); | |
6813 | if (PyErr_Occurred()) SWIG_fail; | |
6814 | } | |
6815 | Py_INCREF(Py_None); resultobj = Py_None; | |
6816 | return resultobj; | |
6817 | fail: | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
6822 | static PyObject * Log_swigregister(PyObject *self, PyObject *args) { | |
6823 | PyObject *obj; | |
6824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6825 | SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj); | |
6826 | Py_INCREF(obj); | |
6827 | return Py_BuildValue((char *)""); | |
6828 | } | |
6829 | static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6830 | PyObject *resultobj; | |
6831 | wxLogStderr *result; | |
6832 | char *kwnames[] = { | |
6833 | NULL | |
6834 | }; | |
6835 | ||
6836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail; | |
6837 | { | |
6838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6839 | result = (wxLogStderr *)new wxLogStderr(); | |
6840 | ||
6841 | wxPyEndAllowThreads(__tstate); | |
6842 | if (PyErr_Occurred()) SWIG_fail; | |
6843 | } | |
6844 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogStderr, 1); | |
6845 | return resultobj; | |
6846 | fail: | |
6847 | return NULL; | |
6848 | } | |
6849 | ||
6850 | ||
6851 | static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) { | |
6852 | PyObject *obj; | |
6853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6854 | SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj); | |
6855 | Py_INCREF(obj); | |
6856 | return Py_BuildValue((char *)""); | |
6857 | } | |
6858 | static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6859 | PyObject *resultobj; | |
6860 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6861 | wxLogTextCtrl *result; | |
6862 | PyObject * obj0 = 0 ; | |
6863 | char *kwnames[] = { | |
6864 | (char *) "pTextCtrl", NULL | |
6865 | }; | |
6866 | ||
6867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail; | |
6868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6869 | { | |
6870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6871 | result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1); | |
6872 | ||
6873 | wxPyEndAllowThreads(__tstate); | |
6874 | if (PyErr_Occurred()) SWIG_fail; | |
6875 | } | |
6876 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogTextCtrl, 1); | |
6877 | return resultobj; | |
6878 | fail: | |
6879 | return NULL; | |
6880 | } | |
6881 | ||
6882 | ||
6883 | static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) { | |
6884 | PyObject *obj; | |
6885 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6886 | SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj); | |
6887 | Py_INCREF(obj); | |
6888 | return Py_BuildValue((char *)""); | |
6889 | } | |
6890 | static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6891 | PyObject *resultobj; | |
6892 | wxLogGui *result; | |
6893 | char *kwnames[] = { | |
6894 | NULL | |
6895 | }; | |
6896 | ||
6897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail; | |
6898 | { | |
6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6900 | result = (wxLogGui *)new wxLogGui(); | |
6901 | ||
6902 | wxPyEndAllowThreads(__tstate); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogGui, 1); | |
6906 | return resultobj; | |
6907 | fail: | |
6908 | return NULL; | |
6909 | } | |
6910 | ||
6911 | ||
6912 | static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) { | |
6913 | PyObject *obj; | |
6914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6915 | SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj); | |
6916 | Py_INCREF(obj); | |
6917 | return Py_BuildValue((char *)""); | |
6918 | } | |
6919 | static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6920 | PyObject *resultobj; | |
6921 | wxFrame *arg1 = (wxFrame *) 0 ; | |
6922 | wxString *arg2 = 0 ; | |
423f194a RD |
6923 | bool arg3 = (bool) True ; |
6924 | bool arg4 = (bool) True ; | |
d14a1e28 | 6925 | wxLogWindow *result; |
423f194a | 6926 | bool temp2 = False ; |
d14a1e28 RD |
6927 | PyObject * obj0 = 0 ; |
6928 | PyObject * obj1 = 0 ; | |
6929 | PyObject * obj2 = 0 ; | |
6930 | PyObject * obj3 = 0 ; | |
6931 | char *kwnames[] = { | |
6932 | (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL | |
6933 | }; | |
6934 | ||
6935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6937 | { | |
6938 | arg2 = wxString_in_helper(obj1); | |
6939 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6940 | temp2 = True; |
d14a1e28 RD |
6941 | } |
6942 | if (obj2) { | |
6943 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
6944 | if (PyErr_Occurred()) SWIG_fail; | |
6945 | } | |
6946 | if (obj3) { | |
6947 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
6948 | if (PyErr_Occurred()) SWIG_fail; | |
6949 | } | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
6957 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogWindow, 1); | |
6958 | { | |
6959 | if (temp2) | |
6960 | delete arg2; | |
6961 | } | |
6962 | return resultobj; | |
6963 | fail: | |
6964 | { | |
6965 | if (temp2) | |
6966 | delete arg2; | |
6967 | } | |
6968 | return NULL; | |
6969 | } | |
6970 | ||
6971 | ||
6972 | static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6973 | PyObject *resultobj; | |
6974 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
423f194a | 6975 | bool arg2 = (bool) True ; |
d14a1e28 RD |
6976 | PyObject * obj0 = 0 ; |
6977 | PyObject * obj1 = 0 ; | |
6978 | char *kwnames[] = { | |
6979 | (char *) "self",(char *) "bShow", NULL | |
6980 | }; | |
6981 | ||
6982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail; | |
6983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6984 | if (obj1) { | |
6985 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
6986 | if (PyErr_Occurred()) SWIG_fail; | |
6987 | } | |
6988 | { | |
6989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6990 | (arg1)->Show(arg2); | |
6991 | ||
6992 | wxPyEndAllowThreads(__tstate); | |
6993 | if (PyErr_Occurred()) SWIG_fail; | |
6994 | } | |
6995 | Py_INCREF(Py_None); resultobj = Py_None; | |
6996 | return resultobj; | |
6997 | fail: | |
6998 | return NULL; | |
6999 | } | |
7000 | ||
7001 | ||
7002 | static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7003 | PyObject *resultobj; | |
7004 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7005 | wxFrame *result; | |
7006 | PyObject * obj0 = 0 ; | |
7007 | char *kwnames[] = { | |
7008 | (char *) "self", NULL | |
7009 | }; | |
7010 | ||
7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail; | |
7012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7013 | { | |
7014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7015 | result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame(); | |
7016 | ||
7017 | wxPyEndAllowThreads(__tstate); | |
7018 | if (PyErr_Occurred()) SWIG_fail; | |
7019 | } | |
7020 | { | |
7021 | resultobj = wxPyMake_wxObject(result); | |
7022 | } | |
7023 | return resultobj; | |
7024 | fail: | |
7025 | return NULL; | |
7026 | } | |
7027 | ||
7028 | ||
7029 | static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7030 | PyObject *resultobj; | |
7031 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7032 | wxLog *result; | |
7033 | PyObject * obj0 = 0 ; | |
7034 | char *kwnames[] = { | |
7035 | (char *) "self", NULL | |
7036 | }; | |
7037 | ||
7038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail; | |
7039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7040 | { | |
7041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7042 | result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog(); | |
7043 | ||
7044 | wxPyEndAllowThreads(__tstate); | |
7045 | if (PyErr_Occurred()) SWIG_fail; | |
7046 | } | |
7047 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7048 | return resultobj; | |
7049 | fail: | |
7050 | return NULL; | |
7051 | } | |
7052 | ||
7053 | ||
7054 | static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7055 | PyObject *resultobj; | |
7056 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7057 | bool result; | |
7058 | PyObject * obj0 = 0 ; | |
7059 | char *kwnames[] = { | |
7060 | (char *) "self", NULL | |
7061 | }; | |
7062 | ||
7063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7065 | { | |
7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7067 | result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages(); | |
7068 | ||
7069 | wxPyEndAllowThreads(__tstate); | |
7070 | if (PyErr_Occurred()) SWIG_fail; | |
7071 | } | |
7072 | resultobj = PyInt_FromLong((long)result); | |
7073 | return resultobj; | |
7074 | fail: | |
7075 | return NULL; | |
7076 | } | |
7077 | ||
7078 | ||
7079 | static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7080 | PyObject *resultobj; | |
7081 | wxLogWindow *arg1 = (wxLogWindow *) 0 ; | |
7082 | bool arg2 ; | |
7083 | PyObject * obj0 = 0 ; | |
7084 | PyObject * obj1 = 0 ; | |
7085 | char *kwnames[] = { | |
7086 | (char *) "self",(char *) "bDoPass", NULL | |
7087 | }; | |
7088 | ||
7089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7091 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | { | |
7094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7095 | (arg1)->PassMessages(arg2); | |
7096 | ||
7097 | wxPyEndAllowThreads(__tstate); | |
7098 | if (PyErr_Occurred()) SWIG_fail; | |
7099 | } | |
7100 | Py_INCREF(Py_None); resultobj = Py_None; | |
7101 | return resultobj; | |
7102 | fail: | |
7103 | return NULL; | |
7104 | } | |
7105 | ||
7106 | ||
7107 | static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) { | |
7108 | PyObject *obj; | |
7109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7110 | SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj); | |
7111 | Py_INCREF(obj); | |
7112 | return Py_BuildValue((char *)""); | |
7113 | } | |
7114 | static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7115 | PyObject *resultobj; | |
7116 | wxLog *arg1 = (wxLog *) 0 ; | |
7117 | wxLogChain *result; | |
7118 | PyObject * obj0 = 0 ; | |
7119 | char *kwnames[] = { | |
7120 | (char *) "logger", NULL | |
7121 | }; | |
7122 | ||
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail; | |
7124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7125 | { | |
7126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7127 | result = (wxLogChain *)new wxLogChain(arg1); | |
7128 | ||
7129 | wxPyEndAllowThreads(__tstate); | |
7130 | if (PyErr_Occurred()) SWIG_fail; | |
7131 | } | |
7132 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogChain, 1); | |
7133 | return resultobj; | |
7134 | fail: | |
7135 | return NULL; | |
7136 | } | |
7137 | ||
7138 | ||
7139 | static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject *resultobj; | |
7141 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7142 | wxLog *arg2 = (wxLog *) 0 ; | |
7143 | PyObject * obj0 = 0 ; | |
7144 | PyObject * obj1 = 0 ; | |
7145 | char *kwnames[] = { | |
7146 | (char *) "self",(char *) "logger", NULL | |
7147 | }; | |
7148 | ||
7149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail; | |
7150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7151 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7152 | { | |
7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7154 | (arg1)->SetLog(arg2); | |
7155 | ||
7156 | wxPyEndAllowThreads(__tstate); | |
7157 | if (PyErr_Occurred()) SWIG_fail; | |
7158 | } | |
7159 | Py_INCREF(Py_None); resultobj = Py_None; | |
7160 | return resultobj; | |
7161 | fail: | |
7162 | return NULL; | |
7163 | } | |
7164 | ||
7165 | ||
7166 | static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7167 | PyObject *resultobj; | |
7168 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7169 | bool arg2 ; | |
7170 | PyObject * obj0 = 0 ; | |
7171 | PyObject * obj1 = 0 ; | |
7172 | char *kwnames[] = { | |
7173 | (char *) "self",(char *) "bDoPass", NULL | |
7174 | }; | |
7175 | ||
7176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail; | |
7177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7178 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7179 | if (PyErr_Occurred()) SWIG_fail; | |
7180 | { | |
7181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7182 | (arg1)->PassMessages(arg2); | |
7183 | ||
7184 | wxPyEndAllowThreads(__tstate); | |
7185 | if (PyErr_Occurred()) SWIG_fail; | |
7186 | } | |
7187 | Py_INCREF(Py_None); resultobj = Py_None; | |
7188 | return resultobj; | |
7189 | fail: | |
7190 | return NULL; | |
7191 | } | |
7192 | ||
7193 | ||
7194 | static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7195 | PyObject *resultobj; | |
7196 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7197 | bool result; | |
7198 | PyObject * obj0 = 0 ; | |
7199 | char *kwnames[] = { | |
7200 | (char *) "self", NULL | |
7201 | }; | |
7202 | ||
7203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail; | |
7204 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7205 | { | |
7206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7207 | result = (bool)(arg1)->IsPassingMessages(); | |
7208 | ||
7209 | wxPyEndAllowThreads(__tstate); | |
7210 | if (PyErr_Occurred()) SWIG_fail; | |
7211 | } | |
7212 | resultobj = PyInt_FromLong((long)result); | |
7213 | return resultobj; | |
7214 | fail: | |
7215 | return NULL; | |
7216 | } | |
7217 | ||
7218 | ||
7219 | static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7220 | PyObject *resultobj; | |
7221 | wxLogChain *arg1 = (wxLogChain *) 0 ; | |
7222 | wxLog *result; | |
7223 | PyObject * obj0 = 0 ; | |
7224 | char *kwnames[] = { | |
7225 | (char *) "self", NULL | |
7226 | }; | |
7227 | ||
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail; | |
7229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogChain,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7230 | { | |
7231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7232 | result = (wxLog *)(arg1)->GetOldLog(); | |
7233 | ||
7234 | wxPyEndAllowThreads(__tstate); | |
7235 | if (PyErr_Occurred()) SWIG_fail; | |
7236 | } | |
7237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLog, 0); | |
7238 | return resultobj; | |
7239 | fail: | |
7240 | return NULL; | |
7241 | } | |
7242 | ||
7243 | ||
7244 | static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) { | |
7245 | PyObject *obj; | |
7246 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7247 | SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj); | |
7248 | Py_INCREF(obj); | |
7249 | return Py_BuildValue((char *)""); | |
7250 | } | |
7251 | static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject *resultobj; | |
7253 | unsigned long result; | |
7254 | char *kwnames[] = { | |
7255 | NULL | |
7256 | }; | |
7257 | ||
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail; | |
7259 | { | |
7260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7261 | result = (unsigned long)wxSysErrorCode(); | |
7262 | ||
7263 | wxPyEndAllowThreads(__tstate); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | } | |
7266 | resultobj = PyInt_FromLong((long)result); | |
7267 | return resultobj; | |
7268 | fail: | |
7269 | return NULL; | |
7270 | } | |
7271 | ||
7272 | ||
7273 | static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7274 | PyObject *resultobj; | |
7275 | unsigned long arg1 = (unsigned long) 0 ; | |
7276 | wxString result; | |
7277 | PyObject * obj0 = 0 ; | |
7278 | char *kwnames[] = { | |
7279 | (char *) "nErrCode", NULL | |
7280 | }; | |
7281 | ||
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail; | |
7283 | if (obj0) { | |
7284 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | { | |
7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7289 | result = wxSysErrorMsg(arg1); | |
7290 | ||
7291 | wxPyEndAllowThreads(__tstate); | |
7292 | if (PyErr_Occurred()) SWIG_fail; | |
7293 | } | |
7294 | { | |
7295 | #if wxUSE_UNICODE | |
7296 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7297 | #else | |
7298 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7299 | #endif | |
7300 | } | |
7301 | return resultobj; | |
7302 | fail: | |
7303 | return NULL; | |
7304 | } | |
7305 | ||
7306 | ||
7307 | static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7308 | PyObject *resultobj; | |
7309 | wxString *arg1 = 0 ; | |
423f194a | 7310 | bool temp1 = False ; |
d14a1e28 RD |
7311 | PyObject * obj0 = 0 ; |
7312 | char *kwnames[] = { | |
7313 | (char *) "msg", NULL | |
7314 | }; | |
7315 | ||
7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail; | |
7317 | { | |
7318 | arg1 = wxString_in_helper(obj0); | |
7319 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7320 | temp1 = True; |
d14a1e28 RD |
7321 | } |
7322 | { | |
7323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7324 | wxLogFatalError((wxString const &)*arg1); | |
7325 | ||
7326 | wxPyEndAllowThreads(__tstate); | |
7327 | if (PyErr_Occurred()) SWIG_fail; | |
7328 | } | |
7329 | Py_INCREF(Py_None); resultobj = Py_None; | |
7330 | { | |
7331 | if (temp1) | |
7332 | delete arg1; | |
7333 | } | |
7334 | return resultobj; | |
7335 | fail: | |
7336 | { | |
7337 | if (temp1) | |
7338 | delete arg1; | |
7339 | } | |
7340 | return NULL; | |
7341 | } | |
7342 | ||
7343 | ||
7344 | static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7345 | PyObject *resultobj; | |
7346 | wxString *arg1 = 0 ; | |
423f194a | 7347 | bool temp1 = False ; |
d14a1e28 RD |
7348 | PyObject * obj0 = 0 ; |
7349 | char *kwnames[] = { | |
7350 | (char *) "msg", NULL | |
7351 | }; | |
7352 | ||
7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail; | |
7354 | { | |
7355 | arg1 = wxString_in_helper(obj0); | |
7356 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7357 | temp1 = True; |
d14a1e28 RD |
7358 | } |
7359 | { | |
7360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7361 | wxLogError((wxString const &)*arg1); | |
7362 | ||
7363 | wxPyEndAllowThreads(__tstate); | |
7364 | if (PyErr_Occurred()) SWIG_fail; | |
7365 | } | |
7366 | Py_INCREF(Py_None); resultobj = Py_None; | |
7367 | { | |
7368 | if (temp1) | |
7369 | delete arg1; | |
7370 | } | |
7371 | return resultobj; | |
7372 | fail: | |
7373 | { | |
7374 | if (temp1) | |
7375 | delete arg1; | |
7376 | } | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7382 | PyObject *resultobj; | |
7383 | wxString *arg1 = 0 ; | |
423f194a | 7384 | bool temp1 = False ; |
d14a1e28 RD |
7385 | PyObject * obj0 = 0 ; |
7386 | char *kwnames[] = { | |
7387 | (char *) "msg", NULL | |
7388 | }; | |
7389 | ||
7390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail; | |
7391 | { | |
7392 | arg1 = wxString_in_helper(obj0); | |
7393 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7394 | temp1 = True; |
d14a1e28 RD |
7395 | } |
7396 | { | |
7397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7398 | wxLogWarning((wxString const &)*arg1); | |
7399 | ||
7400 | wxPyEndAllowThreads(__tstate); | |
7401 | if (PyErr_Occurred()) SWIG_fail; | |
7402 | } | |
7403 | Py_INCREF(Py_None); resultobj = Py_None; | |
7404 | { | |
7405 | if (temp1) | |
7406 | delete arg1; | |
7407 | } | |
7408 | return resultobj; | |
7409 | fail: | |
7410 | { | |
7411 | if (temp1) | |
7412 | delete arg1; | |
7413 | } | |
7414 | return NULL; | |
7415 | } | |
7416 | ||
7417 | ||
7418 | static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7419 | PyObject *resultobj; | |
7420 | wxString *arg1 = 0 ; | |
423f194a | 7421 | bool temp1 = False ; |
d14a1e28 RD |
7422 | PyObject * obj0 = 0 ; |
7423 | char *kwnames[] = { | |
7424 | (char *) "msg", NULL | |
7425 | }; | |
7426 | ||
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail; | |
7428 | { | |
7429 | arg1 = wxString_in_helper(obj0); | |
7430 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7431 | temp1 = True; |
d14a1e28 RD |
7432 | } |
7433 | { | |
7434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7435 | wxLogMessage((wxString const &)*arg1); | |
7436 | ||
7437 | wxPyEndAllowThreads(__tstate); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
7440 | Py_INCREF(Py_None); resultobj = Py_None; | |
7441 | { | |
7442 | if (temp1) | |
7443 | delete arg1; | |
7444 | } | |
7445 | return resultobj; | |
7446 | fail: | |
7447 | { | |
7448 | if (temp1) | |
7449 | delete arg1; | |
7450 | } | |
7451 | return NULL; | |
7452 | } | |
7453 | ||
7454 | ||
7455 | static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7456 | PyObject *resultobj; | |
7457 | wxString *arg1 = 0 ; | |
423f194a | 7458 | bool temp1 = False ; |
d14a1e28 RD |
7459 | PyObject * obj0 = 0 ; |
7460 | char *kwnames[] = { | |
7461 | (char *) "msg", NULL | |
7462 | }; | |
7463 | ||
7464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail; | |
7465 | { | |
7466 | arg1 = wxString_in_helper(obj0); | |
7467 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7468 | temp1 = True; |
d14a1e28 RD |
7469 | } |
7470 | { | |
7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7472 | wxLogInfo((wxString const &)*arg1); | |
7473 | ||
7474 | wxPyEndAllowThreads(__tstate); | |
7475 | if (PyErr_Occurred()) SWIG_fail; | |
7476 | } | |
7477 | Py_INCREF(Py_None); resultobj = Py_None; | |
7478 | { | |
7479 | if (temp1) | |
7480 | delete arg1; | |
7481 | } | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | { | |
7485 | if (temp1) | |
7486 | delete arg1; | |
7487 | } | |
7488 | return NULL; | |
7489 | } | |
7490 | ||
7491 | ||
7492 | static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7493 | PyObject *resultobj; | |
7494 | wxString *arg1 = 0 ; | |
423f194a | 7495 | bool temp1 = False ; |
d14a1e28 RD |
7496 | PyObject * obj0 = 0 ; |
7497 | char *kwnames[] = { | |
7498 | (char *) "msg", NULL | |
7499 | }; | |
7500 | ||
7501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail; | |
7502 | { | |
7503 | arg1 = wxString_in_helper(obj0); | |
7504 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7505 | temp1 = True; |
d14a1e28 RD |
7506 | } |
7507 | { | |
7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7509 | wxLogDebug((wxString const &)*arg1); | |
7510 | ||
7511 | wxPyEndAllowThreads(__tstate); | |
7512 | if (PyErr_Occurred()) SWIG_fail; | |
7513 | } | |
7514 | Py_INCREF(Py_None); resultobj = Py_None; | |
7515 | { | |
7516 | if (temp1) | |
7517 | delete arg1; | |
7518 | } | |
7519 | return resultobj; | |
7520 | fail: | |
7521 | { | |
7522 | if (temp1) | |
7523 | delete arg1; | |
7524 | } | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
7529 | static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7530 | PyObject *resultobj; | |
7531 | wxString *arg1 = 0 ; | |
423f194a | 7532 | bool temp1 = False ; |
d14a1e28 RD |
7533 | PyObject * obj0 = 0 ; |
7534 | char *kwnames[] = { | |
7535 | (char *) "msg", NULL | |
7536 | }; | |
7537 | ||
7538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail; | |
7539 | { | |
7540 | arg1 = wxString_in_helper(obj0); | |
7541 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7542 | temp1 = True; |
d14a1e28 RD |
7543 | } |
7544 | { | |
7545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7546 | wxLogVerbose((wxString const &)*arg1); | |
7547 | ||
7548 | wxPyEndAllowThreads(__tstate); | |
7549 | if (PyErr_Occurred()) SWIG_fail; | |
7550 | } | |
7551 | Py_INCREF(Py_None); resultobj = Py_None; | |
7552 | { | |
7553 | if (temp1) | |
7554 | delete arg1; | |
7555 | } | |
7556 | return resultobj; | |
7557 | fail: | |
7558 | { | |
7559 | if (temp1) | |
7560 | delete arg1; | |
7561 | } | |
7562 | return NULL; | |
7563 | } | |
7564 | ||
7565 | ||
7566 | static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7567 | PyObject *resultobj; | |
7568 | wxString *arg1 = 0 ; | |
423f194a | 7569 | bool temp1 = False ; |
d14a1e28 RD |
7570 | PyObject * obj0 = 0 ; |
7571 | char *kwnames[] = { | |
7572 | (char *) "msg", NULL | |
7573 | }; | |
7574 | ||
7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail; | |
7576 | { | |
7577 | arg1 = wxString_in_helper(obj0); | |
7578 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7579 | temp1 = True; |
d14a1e28 RD |
7580 | } |
7581 | { | |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | wxLogStatus((wxString const &)*arg1); | |
7584 | ||
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
7588 | Py_INCREF(Py_None); resultobj = Py_None; | |
7589 | { | |
7590 | if (temp1) | |
7591 | delete arg1; | |
7592 | } | |
7593 | return resultobj; | |
7594 | fail: | |
7595 | { | |
7596 | if (temp1) | |
7597 | delete arg1; | |
7598 | } | |
7599 | return NULL; | |
7600 | } | |
7601 | ||
7602 | ||
7603 | static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7604 | PyObject *resultobj; | |
7605 | wxFrame *arg1 = (wxFrame *) 0 ; | |
7606 | wxString *arg2 = 0 ; | |
423f194a | 7607 | bool temp2 = False ; |
d14a1e28 RD |
7608 | PyObject * obj0 = 0 ; |
7609 | PyObject * obj1 = 0 ; | |
7610 | char *kwnames[] = { | |
7611 | (char *) "pFrame",(char *) "msg", NULL | |
7612 | }; | |
7613 | ||
7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail; | |
7615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7616 | { | |
7617 | arg2 = wxString_in_helper(obj1); | |
7618 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7619 | temp2 = True; |
d14a1e28 RD |
7620 | } |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7623 | wxLogStatus(arg1,(wxString const &)*arg2); | |
7624 | ||
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
7628 | Py_INCREF(Py_None); resultobj = Py_None; | |
7629 | { | |
7630 | if (temp2) | |
7631 | delete arg2; | |
7632 | } | |
7633 | return resultobj; | |
7634 | fail: | |
7635 | { | |
7636 | if (temp2) | |
7637 | delete arg2; | |
7638 | } | |
7639 | return NULL; | |
7640 | } | |
7641 | ||
7642 | ||
7643 | static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7644 | PyObject *resultobj; | |
7645 | wxString *arg1 = 0 ; | |
423f194a | 7646 | bool temp1 = False ; |
d14a1e28 RD |
7647 | PyObject * obj0 = 0 ; |
7648 | char *kwnames[] = { | |
7649 | (char *) "msg", NULL | |
7650 | }; | |
7651 | ||
7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail; | |
7653 | { | |
7654 | arg1 = wxString_in_helper(obj0); | |
7655 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7656 | temp1 = True; |
d14a1e28 RD |
7657 | } |
7658 | { | |
7659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7660 | wxLogSysError((wxString const &)*arg1); | |
7661 | ||
7662 | wxPyEndAllowThreads(__tstate); | |
7663 | if (PyErr_Occurred()) SWIG_fail; | |
7664 | } | |
7665 | Py_INCREF(Py_None); resultobj = Py_None; | |
7666 | { | |
7667 | if (temp1) | |
7668 | delete arg1; | |
7669 | } | |
7670 | return resultobj; | |
7671 | fail: | |
7672 | { | |
7673 | if (temp1) | |
7674 | delete arg1; | |
7675 | } | |
7676 | return NULL; | |
7677 | } | |
7678 | ||
7679 | ||
0f774bef | 7680 | static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 | 7681 | PyObject *resultobj; |
0f774bef RD |
7682 | unsigned long arg1 ; |
7683 | wxString *arg2 = 0 ; | |
7684 | bool temp2 = False ; | |
d14a1e28 | 7685 | PyObject * obj0 = 0 ; |
0f774bef | 7686 | PyObject * obj1 = 0 ; |
d14a1e28 | 7687 | |
0f774bef RD |
7688 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
7689 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7691 | { |
0f774bef RD |
7692 | arg2 = wxString_in_helper(obj1); |
7693 | if (arg2 == NULL) SWIG_fail; | |
7694 | temp2 = True; | |
d14a1e28 RD |
7695 | } |
7696 | { | |
7697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0f774bef | 7698 | wxLogTrace(arg1,(wxString const &)*arg2); |
d14a1e28 RD |
7699 | |
7700 | wxPyEndAllowThreads(__tstate); | |
7701 | if (PyErr_Occurred()) SWIG_fail; | |
7702 | } | |
7703 | Py_INCREF(Py_None); resultobj = Py_None; | |
7704 | { | |
0f774bef RD |
7705 | if (temp2) |
7706 | delete arg2; | |
d14a1e28 RD |
7707 | } |
7708 | return resultobj; | |
7709 | fail: | |
7710 | { | |
0f774bef RD |
7711 | if (temp2) |
7712 | delete arg2; | |
d14a1e28 RD |
7713 | } |
7714 | return NULL; | |
7715 | } | |
7716 | ||
7717 | ||
0f774bef | 7718 | static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
7719 | PyObject *resultobj; |
7720 | wxString *arg1 = 0 ; | |
7721 | wxString *arg2 = 0 ; | |
423f194a RD |
7722 | bool temp1 = False ; |
7723 | bool temp2 = False ; | |
d14a1e28 RD |
7724 | PyObject * obj0 = 0 ; |
7725 | PyObject * obj1 = 0 ; | |
d14a1e28 | 7726 | |
0f774bef | 7727 | if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail; |
d14a1e28 RD |
7728 | { |
7729 | arg1 = wxString_in_helper(obj0); | |
7730 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7731 | temp1 = True; |
d14a1e28 RD |
7732 | } |
7733 | { | |
7734 | arg2 = wxString_in_helper(obj1); | |
7735 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7736 | temp2 = True; |
d14a1e28 RD |
7737 | } |
7738 | { | |
7739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7740 | wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2); | |
7741 | ||
7742 | wxPyEndAllowThreads(__tstate); | |
7743 | if (PyErr_Occurred()) SWIG_fail; | |
7744 | } | |
7745 | Py_INCREF(Py_None); resultobj = Py_None; | |
7746 | { | |
7747 | if (temp1) | |
7748 | delete arg1; | |
7749 | } | |
7750 | { | |
7751 | if (temp2) | |
7752 | delete arg2; | |
7753 | } | |
7754 | return resultobj; | |
7755 | fail: | |
7756 | { | |
7757 | if (temp1) | |
7758 | delete arg1; | |
7759 | } | |
7760 | { | |
7761 | if (temp2) | |
7762 | delete arg2; | |
7763 | } | |
7764 | return NULL; | |
7765 | } | |
7766 | ||
7767 | ||
0f774bef RD |
7768 | static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) { |
7769 | int argc; | |
7770 | PyObject *argv[3]; | |
7771 | int ii; | |
7772 | ||
7773 | argc = PyObject_Length(args); | |
7774 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
7775 | argv[ii] = PyTuple_GetItem(args,ii); | |
7776 | } | |
7777 | if (argc == 2) { | |
7778 | int _v; | |
7779 | { | |
7780 | void *ptr; | |
7781 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7782 | _v = 0; | |
7783 | PyErr_Clear(); | |
7784 | } else { | |
7785 | _v = 1; | |
7786 | } | |
7787 | } | |
7788 | if (_v) { | |
7789 | { | |
7790 | void *ptr; | |
7791 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7792 | _v = 0; | |
7793 | PyErr_Clear(); | |
7794 | } else { | |
7795 | _v = 1; | |
7796 | } | |
7797 | } | |
7798 | if (_v) { | |
7799 | return _wrap_LogTrace__SWIG_1(self,args); | |
7800 | } | |
7801 | } | |
7802 | } | |
7803 | if (argc == 2) { | |
7804 | int _v; | |
7805 | { | |
7806 | _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0; | |
7807 | } | |
7808 | if (_v) { | |
7809 | { | |
7810 | void *ptr; | |
7811 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) { | |
7812 | _v = 0; | |
7813 | PyErr_Clear(); | |
7814 | } else { | |
7815 | _v = 1; | |
7816 | } | |
7817 | } | |
7818 | if (_v) { | |
7819 | return _wrap_LogTrace__SWIG_0(self,args); | |
7820 | } | |
7821 | } | |
7822 | } | |
7823 | ||
7824 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'"); | |
7825 | return NULL; | |
7826 | } | |
7827 | ||
7828 | ||
d14a1e28 RD |
7829 | static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { |
7830 | PyObject *resultobj; | |
7831 | unsigned long arg1 ; | |
7832 | wxString *arg2 = 0 ; | |
423f194a | 7833 | bool temp2 = False ; |
d14a1e28 RD |
7834 | PyObject * obj0 = 0 ; |
7835 | PyObject * obj1 = 0 ; | |
7836 | char *kwnames[] = { | |
7837 | (char *) "level",(char *) "msg", NULL | |
7838 | }; | |
7839 | ||
7840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail; | |
7841 | arg1 = (unsigned long) PyInt_AsLong(obj0); | |
7842 | if (PyErr_Occurred()) SWIG_fail; | |
7843 | { | |
7844 | arg2 = wxString_in_helper(obj1); | |
7845 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7846 | temp2 = True; |
d14a1e28 RD |
7847 | } |
7848 | { | |
7849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7850 | wxLogGeneric(arg1,(wxString const &)*arg2); | |
7851 | ||
7852 | wxPyEndAllowThreads(__tstate); | |
7853 | if (PyErr_Occurred()) SWIG_fail; | |
7854 | } | |
7855 | Py_INCREF(Py_None); resultobj = Py_None; | |
7856 | { | |
7857 | if (temp2) | |
7858 | delete arg2; | |
7859 | } | |
7860 | return resultobj; | |
7861 | fail: | |
7862 | { | |
7863 | if (temp2) | |
7864 | delete arg2; | |
7865 | } | |
7866 | return NULL; | |
7867 | } | |
7868 | ||
7869 | ||
7870 | static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7871 | PyObject *resultobj; | |
7872 | wxString *arg1 = 0 ; | |
7873 | wxString *arg2 = 0 ; | |
423f194a RD |
7874 | bool temp1 = False ; |
7875 | bool temp2 = False ; | |
d14a1e28 RD |
7876 | PyObject * obj0 = 0 ; |
7877 | PyObject * obj1 = 0 ; | |
7878 | char *kwnames[] = { | |
7879 | (char *) "title",(char *) "text", NULL | |
7880 | }; | |
7881 | ||
7882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail; | |
7883 | { | |
7884 | arg1 = wxString_in_helper(obj0); | |
7885 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7886 | temp1 = True; |
d14a1e28 RD |
7887 | } |
7888 | { | |
7889 | arg2 = wxString_in_helper(obj1); | |
7890 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7891 | temp2 = True; |
d14a1e28 RD |
7892 | } |
7893 | { | |
7894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7895 | wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2); | |
7896 | ||
7897 | wxPyEndAllowThreads(__tstate); | |
7898 | if (PyErr_Occurred()) SWIG_fail; | |
7899 | } | |
7900 | Py_INCREF(Py_None); resultobj = Py_None; | |
7901 | { | |
7902 | if (temp1) | |
7903 | delete arg1; | |
7904 | } | |
7905 | { | |
7906 | if (temp2) | |
7907 | delete arg2; | |
7908 | } | |
7909 | return resultobj; | |
7910 | fail: | |
7911 | { | |
7912 | if (temp1) | |
7913 | delete arg1; | |
7914 | } | |
7915 | { | |
7916 | if (temp2) | |
7917 | delete arg2; | |
7918 | } | |
7919 | return NULL; | |
7920 | } | |
7921 | ||
7922 | ||
7923 | static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7924 | PyObject *resultobj; | |
7925 | wxLogNull *result; | |
7926 | char *kwnames[] = { | |
7927 | NULL | |
7928 | }; | |
7929 | ||
7930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail; | |
7931 | { | |
7932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7933 | result = (wxLogNull *)new wxLogNull(); | |
7934 | ||
7935 | wxPyEndAllowThreads(__tstate); | |
7936 | if (PyErr_Occurred()) SWIG_fail; | |
7937 | } | |
7938 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLogNull, 1); | |
7939 | return resultobj; | |
7940 | fail: | |
7941 | return NULL; | |
7942 | } | |
7943 | ||
7944 | ||
7945 | static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7946 | PyObject *resultobj; | |
7947 | wxLogNull *arg1 = (wxLogNull *) 0 ; | |
7948 | PyObject * obj0 = 0 ; | |
7949 | char *kwnames[] = { | |
7950 | (char *) "self", NULL | |
7951 | }; | |
7952 | ||
7953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail; | |
7954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLogNull,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7955 | { | |
7956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7957 | delete arg1; | |
7958 | ||
7959 | wxPyEndAllowThreads(__tstate); | |
7960 | if (PyErr_Occurred()) SWIG_fail; | |
7961 | } | |
7962 | Py_INCREF(Py_None); resultobj = Py_None; | |
7963 | return resultobj; | |
7964 | fail: | |
7965 | return NULL; | |
7966 | } | |
7967 | ||
7968 | ||
7969 | static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) { | |
7970 | PyObject *obj; | |
7971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7972 | SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj); | |
7973 | Py_INCREF(obj); | |
7974 | return Py_BuildValue((char *)""); | |
7975 | } | |
7976 | static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7977 | PyObject *resultobj; | |
7978 | wxPyLog *result; | |
7979 | char *kwnames[] = { | |
7980 | NULL | |
7981 | }; | |
7982 | ||
7983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail; | |
7984 | { | |
7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7986 | result = (wxPyLog *)new wxPyLog(); | |
7987 | ||
7988 | wxPyEndAllowThreads(__tstate); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyLog, 1); | |
7992 | return resultobj; | |
7993 | fail: | |
7994 | return NULL; | |
7995 | } | |
7996 | ||
7997 | ||
7998 | static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7999 | PyObject *resultobj; | |
8000 | wxPyLog *arg1 = (wxPyLog *) 0 ; | |
8001 | PyObject *arg2 = (PyObject *) 0 ; | |
8002 | PyObject *arg3 = (PyObject *) 0 ; | |
8003 | PyObject * obj0 = 0 ; | |
8004 | PyObject * obj1 = 0 ; | |
8005 | PyObject * obj2 = 0 ; | |
8006 | char *kwnames[] = { | |
8007 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8008 | }; | |
8009 | ||
8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyLog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8012 | arg2 = obj1; | |
8013 | arg3 = obj2; | |
8014 | { | |
8015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8016 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8017 | ||
8018 | wxPyEndAllowThreads(__tstate); | |
8019 | if (PyErr_Occurred()) SWIG_fail; | |
8020 | } | |
8021 | Py_INCREF(Py_None); resultobj = Py_None; | |
8022 | return resultobj; | |
8023 | fail: | |
8024 | return NULL; | |
8025 | } | |
8026 | ||
8027 | ||
8028 | static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) { | |
8029 | PyObject *obj; | |
8030 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8031 | SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj); | |
8032 | Py_INCREF(obj); | |
8033 | return Py_BuildValue((char *)""); | |
8034 | } | |
8035 | static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8036 | PyObject *resultobj; | |
8037 | int arg1 ; | |
8038 | int arg2 = (int) wxSIGTERM ; | |
8039 | int result; | |
8040 | char *kwnames[] = { | |
8041 | (char *) "pid",(char *) "sig", NULL | |
8042 | }; | |
8043 | ||
8044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:Process_Kill",kwnames,&arg1,&arg2)) goto fail; | |
8045 | { | |
8046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8047 | result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2); | |
8048 | ||
8049 | wxPyEndAllowThreads(__tstate); | |
8050 | if (PyErr_Occurred()) SWIG_fail; | |
8051 | } | |
8052 | resultobj = PyInt_FromLong((long)result); | |
8053 | return resultobj; | |
8054 | fail: | |
8055 | return NULL; | |
8056 | } | |
8057 | ||
8058 | ||
8059 | static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8060 | PyObject *resultobj; | |
8061 | int arg1 ; | |
8062 | bool result; | |
8063 | char *kwnames[] = { | |
8064 | (char *) "pid", NULL | |
8065 | }; | |
8066 | ||
8067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:Process_Exists",kwnames,&arg1)) goto fail; | |
8068 | { | |
8069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8070 | result = (bool)wxPyProcess::Exists(arg1); | |
8071 | ||
8072 | wxPyEndAllowThreads(__tstate); | |
8073 | if (PyErr_Occurred()) SWIG_fail; | |
8074 | } | |
8075 | resultobj = PyInt_FromLong((long)result); | |
8076 | return resultobj; | |
8077 | fail: | |
8078 | return NULL; | |
8079 | } | |
8080 | ||
8081 | ||
8082 | static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8083 | PyObject *resultobj; | |
8084 | wxString *arg1 = 0 ; | |
8085 | int arg2 = (int) wxEXEC_ASYNC ; | |
8086 | wxPyProcess *result; | |
423f194a | 8087 | bool temp1 = False ; |
d14a1e28 RD |
8088 | PyObject * obj0 = 0 ; |
8089 | char *kwnames[] = { | |
8090 | (char *) "cmd",(char *) "flags", NULL | |
8091 | }; | |
8092 | ||
8093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Process_Open",kwnames,&obj0,&arg2)) goto fail; | |
8094 | { | |
8095 | arg1 = wxString_in_helper(obj0); | |
8096 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8097 | temp1 = True; |
d14a1e28 RD |
8098 | } |
8099 | { | |
8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8101 | result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2); | |
8102 | ||
8103 | wxPyEndAllowThreads(__tstate); | |
8104 | if (PyErr_Occurred()) SWIG_fail; | |
8105 | } | |
8106 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 0); | |
8107 | { | |
8108 | if (temp1) | |
8109 | delete arg1; | |
8110 | } | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | { | |
8114 | if (temp1) | |
8115 | delete arg1; | |
8116 | } | |
8117 | return NULL; | |
8118 | } | |
8119 | ||
8120 | ||
8121 | static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8122 | PyObject *resultobj; | |
8123 | wxEvtHandler *arg1 = (wxEvtHandler *) NULL ; | |
8124 | int arg2 = (int) -1 ; | |
8125 | wxPyProcess *result; | |
8126 | PyObject * obj0 = 0 ; | |
8127 | char *kwnames[] = { | |
8128 | (char *) "parent",(char *) "id", NULL | |
8129 | }; | |
8130 | ||
8131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|Oi:new_Process",kwnames,&obj0,&arg2)) goto fail; | |
8132 | if (obj0) { | |
8133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8134 | } | |
8135 | { | |
8136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8137 | result = (wxPyProcess *)new wxPyProcess(arg1,arg2); | |
8138 | ||
8139 | wxPyEndAllowThreads(__tstate); | |
8140 | if (PyErr_Occurred()) SWIG_fail; | |
8141 | } | |
8142 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyProcess, 1); | |
8143 | return resultobj; | |
8144 | fail: | |
8145 | return NULL; | |
8146 | } | |
8147 | ||
8148 | ||
8149 | static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8150 | PyObject *resultobj; | |
8151 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8152 | PyObject *arg2 = (PyObject *) 0 ; | |
8153 | PyObject *arg3 = (PyObject *) 0 ; | |
8154 | PyObject * obj0 = 0 ; | |
8155 | PyObject * obj1 = 0 ; | |
8156 | PyObject * obj2 = 0 ; | |
8157 | char *kwnames[] = { | |
8158 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8159 | }; | |
8160 | ||
8161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8163 | arg2 = obj1; | |
8164 | arg3 = obj2; | |
8165 | { | |
8166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8167 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8168 | ||
8169 | wxPyEndAllowThreads(__tstate); | |
8170 | if (PyErr_Occurred()) SWIG_fail; | |
8171 | } | |
8172 | Py_INCREF(Py_None); resultobj = Py_None; | |
8173 | return resultobj; | |
8174 | fail: | |
8175 | return NULL; | |
8176 | } | |
8177 | ||
8178 | ||
8179 | static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8180 | PyObject *resultobj; | |
8181 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8182 | int arg2 ; | |
8183 | int arg3 ; | |
8184 | PyObject * obj0 = 0 ; | |
8185 | char *kwnames[] = { | |
8186 | (char *) "self",(char *) "pid",(char *) "status", NULL | |
8187 | }; | |
8188 | ||
8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Process_base_OnTerminate",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8191 | { | |
8192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8193 | (arg1)->base_OnTerminate(arg2,arg3); | |
8194 | ||
8195 | wxPyEndAllowThreads(__tstate); | |
8196 | if (PyErr_Occurred()) SWIG_fail; | |
8197 | } | |
8198 | Py_INCREF(Py_None); resultobj = Py_None; | |
8199 | return resultobj; | |
8200 | fail: | |
8201 | return NULL; | |
8202 | } | |
8203 | ||
8204 | ||
8205 | static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8206 | PyObject *resultobj; | |
8207 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8208 | PyObject * obj0 = 0 ; | |
8209 | char *kwnames[] = { | |
8210 | (char *) "self", NULL | |
8211 | }; | |
8212 | ||
8213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail; | |
8214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8215 | { | |
8216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8217 | (arg1)->Redirect(); | |
8218 | ||
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | Py_INCREF(Py_None); resultobj = Py_None; | |
8223 | return resultobj; | |
8224 | fail: | |
8225 | return NULL; | |
8226 | } | |
8227 | ||
8228 | ||
8229 | static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8230 | PyObject *resultobj; | |
8231 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8232 | bool result; | |
8233 | PyObject * obj0 = 0 ; | |
8234 | char *kwnames[] = { | |
8235 | (char *) "self", NULL | |
8236 | }; | |
8237 | ||
8238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail; | |
8239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8240 | { | |
8241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8242 | result = (bool)(arg1)->IsRedirected(); | |
8243 | ||
8244 | wxPyEndAllowThreads(__tstate); | |
8245 | if (PyErr_Occurred()) SWIG_fail; | |
8246 | } | |
8247 | resultobj = PyInt_FromLong((long)result); | |
8248 | return resultobj; | |
8249 | fail: | |
8250 | return NULL; | |
8251 | } | |
8252 | ||
8253 | ||
8254 | static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8255 | PyObject *resultobj; | |
8256 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8257 | PyObject * obj0 = 0 ; | |
8258 | char *kwnames[] = { | |
8259 | (char *) "self", NULL | |
8260 | }; | |
8261 | ||
8262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail; | |
8263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8264 | { | |
8265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8266 | (arg1)->Detach(); | |
8267 | ||
8268 | wxPyEndAllowThreads(__tstate); | |
8269 | if (PyErr_Occurred()) SWIG_fail; | |
8270 | } | |
8271 | Py_INCREF(Py_None); resultobj = Py_None; | |
8272 | return resultobj; | |
8273 | fail: | |
8274 | return NULL; | |
8275 | } | |
8276 | ||
8277 | ||
8278 | static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8279 | PyObject *resultobj; | |
8280 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8281 | wxInputStream *result; | |
8282 | PyObject * obj0 = 0 ; | |
8283 | char *kwnames[] = { | |
8284 | (char *) "self", NULL | |
8285 | }; | |
8286 | ||
8287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail; | |
8288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8289 | { | |
8290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8291 | result = (wxInputStream *)(arg1)->GetInputStream(); | |
8292 | ||
8293 | wxPyEndAllowThreads(__tstate); | |
8294 | if (PyErr_Occurred()) SWIG_fail; | |
8295 | } | |
8296 | { | |
8297 | wxPyInputStream * _ptr = NULL; | |
8298 | ||
8299 | if (result) { | |
8300 | _ptr = new wxPyInputStream(result); | |
8301 | } | |
423f194a | 8302 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8303 | } |
8304 | return resultobj; | |
8305 | fail: | |
8306 | return NULL; | |
8307 | } | |
8308 | ||
8309 | ||
8310 | static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8311 | PyObject *resultobj; | |
8312 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8313 | wxInputStream *result; | |
8314 | PyObject * obj0 = 0 ; | |
8315 | char *kwnames[] = { | |
8316 | (char *) "self", NULL | |
8317 | }; | |
8318 | ||
8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail; | |
8320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8321 | { | |
8322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8323 | result = (wxInputStream *)(arg1)->GetErrorStream(); | |
8324 | ||
8325 | wxPyEndAllowThreads(__tstate); | |
8326 | if (PyErr_Occurred()) SWIG_fail; | |
8327 | } | |
8328 | { | |
8329 | wxPyInputStream * _ptr = NULL; | |
8330 | ||
8331 | if (result) { | |
8332 | _ptr = new wxPyInputStream(result); | |
8333 | } | |
423f194a | 8334 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
8335 | } |
8336 | return resultobj; | |
8337 | fail: | |
8338 | return NULL; | |
8339 | } | |
8340 | ||
8341 | ||
8342 | static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8343 | PyObject *resultobj; | |
8344 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8345 | wxOutputStream *result; | |
8346 | PyObject * obj0 = 0 ; | |
8347 | char *kwnames[] = { | |
8348 | (char *) "self", NULL | |
8349 | }; | |
8350 | ||
8351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail; | |
8352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8353 | { | |
8354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8355 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
8356 | ||
8357 | wxPyEndAllowThreads(__tstate); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | } | |
8360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxOutputStream, 0); | |
8361 | return resultobj; | |
8362 | fail: | |
8363 | return NULL; | |
8364 | } | |
8365 | ||
8366 | ||
8367 | static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8368 | PyObject *resultobj; | |
8369 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8370 | PyObject * obj0 = 0 ; | |
8371 | char *kwnames[] = { | |
8372 | (char *) "self", NULL | |
8373 | }; | |
8374 | ||
8375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail; | |
8376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8377 | { | |
8378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8379 | (arg1)->CloseOutput(); | |
8380 | ||
8381 | wxPyEndAllowThreads(__tstate); | |
8382 | if (PyErr_Occurred()) SWIG_fail; | |
8383 | } | |
8384 | Py_INCREF(Py_None); resultobj = Py_None; | |
8385 | return resultobj; | |
8386 | fail: | |
8387 | return NULL; | |
8388 | } | |
8389 | ||
8390 | ||
8391 | static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8392 | PyObject *resultobj; | |
8393 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8394 | bool result; | |
8395 | PyObject * obj0 = 0 ; | |
8396 | char *kwnames[] = { | |
8397 | (char *) "self", NULL | |
8398 | }; | |
8399 | ||
8400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail; | |
8401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8402 | { | |
8403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8404 | result = (bool)((wxPyProcess const *)arg1)->IsInputOpened(); | |
8405 | ||
8406 | wxPyEndAllowThreads(__tstate); | |
8407 | if (PyErr_Occurred()) SWIG_fail; | |
8408 | } | |
8409 | resultobj = PyInt_FromLong((long)result); | |
8410 | return resultobj; | |
8411 | fail: | |
8412 | return NULL; | |
8413 | } | |
8414 | ||
8415 | ||
8416 | static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8417 | PyObject *resultobj; | |
8418 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8419 | bool result; | |
8420 | PyObject * obj0 = 0 ; | |
8421 | char *kwnames[] = { | |
8422 | (char *) "self", NULL | |
8423 | }; | |
8424 | ||
8425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail; | |
8426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8427 | { | |
8428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8429 | result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable(); | |
8430 | ||
8431 | wxPyEndAllowThreads(__tstate); | |
8432 | if (PyErr_Occurred()) SWIG_fail; | |
8433 | } | |
8434 | resultobj = PyInt_FromLong((long)result); | |
8435 | return resultobj; | |
8436 | fail: | |
8437 | return NULL; | |
8438 | } | |
8439 | ||
8440 | ||
8441 | static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8442 | PyObject *resultobj; | |
8443 | wxPyProcess *arg1 = (wxPyProcess *) 0 ; | |
8444 | bool result; | |
8445 | PyObject * obj0 = 0 ; | |
8446 | char *kwnames[] = { | |
8447 | (char *) "self", NULL | |
8448 | }; | |
8449 | ||
8450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail; | |
8451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8452 | { | |
8453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8454 | result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable(); | |
8455 | ||
8456 | wxPyEndAllowThreads(__tstate); | |
8457 | if (PyErr_Occurred()) SWIG_fail; | |
8458 | } | |
8459 | resultobj = PyInt_FromLong((long)result); | |
8460 | return resultobj; | |
8461 | fail: | |
8462 | return NULL; | |
8463 | } | |
8464 | ||
8465 | ||
8466 | static PyObject * Process_swigregister(PyObject *self, PyObject *args) { | |
8467 | PyObject *obj; | |
8468 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8469 | SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj); | |
8470 | Py_INCREF(obj); | |
8471 | return Py_BuildValue((char *)""); | |
8472 | } | |
8473 | static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8474 | PyObject *resultobj; | |
8475 | int arg1 = (int) 0 ; | |
8476 | int arg2 = (int) 0 ; | |
8477 | int arg3 = (int) 0 ; | |
8478 | wxProcessEvent *result; | |
8479 | char *kwnames[] = { | |
8480 | (char *) "id",(char *) "pid",(char *) "exitcode", NULL | |
8481 | }; | |
8482 | ||
8483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iii:new_ProcessEvent",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
8484 | { | |
8485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8486 | result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3); | |
8487 | ||
8488 | wxPyEndAllowThreads(__tstate); | |
8489 | if (PyErr_Occurred()) SWIG_fail; | |
8490 | } | |
8491 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProcessEvent, 1); | |
8492 | return resultobj; | |
8493 | fail: | |
8494 | return NULL; | |
8495 | } | |
8496 | ||
8497 | ||
8498 | static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8499 | PyObject *resultobj; | |
8500 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8501 | int result; | |
8502 | PyObject * obj0 = 0 ; | |
8503 | char *kwnames[] = { | |
8504 | (char *) "self", NULL | |
8505 | }; | |
8506 | ||
8507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail; | |
8508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8509 | { | |
8510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8511 | result = (int)(arg1)->GetPid(); | |
8512 | ||
8513 | wxPyEndAllowThreads(__tstate); | |
8514 | if (PyErr_Occurred()) SWIG_fail; | |
8515 | } | |
8516 | resultobj = PyInt_FromLong((long)result); | |
8517 | return resultobj; | |
8518 | fail: | |
8519 | return NULL; | |
8520 | } | |
8521 | ||
8522 | ||
8523 | static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8524 | PyObject *resultobj; | |
8525 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8526 | int result; | |
8527 | PyObject * obj0 = 0 ; | |
8528 | char *kwnames[] = { | |
8529 | (char *) "self", NULL | |
8530 | }; | |
8531 | ||
8532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail; | |
8533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8534 | { | |
8535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8536 | result = (int)(arg1)->GetExitCode(); | |
8537 | ||
8538 | wxPyEndAllowThreads(__tstate); | |
8539 | if (PyErr_Occurred()) SWIG_fail; | |
8540 | } | |
8541 | resultobj = PyInt_FromLong((long)result); | |
8542 | return resultobj; | |
8543 | fail: | |
8544 | return NULL; | |
8545 | } | |
8546 | ||
8547 | ||
8548 | static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8549 | PyObject *resultobj; | |
8550 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8551 | int arg2 ; | |
8552 | PyObject * obj0 = 0 ; | |
8553 | char *kwnames[] = { | |
8554 | (char *) "self",(char *) "m_pid", NULL | |
8555 | }; | |
8556 | ||
8557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_pid_set",kwnames,&obj0,&arg2)) goto fail; | |
8558 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8559 | if (arg1) (arg1)->m_pid = arg2; | |
8560 | ||
8561 | Py_INCREF(Py_None); resultobj = Py_None; | |
8562 | return resultobj; | |
8563 | fail: | |
8564 | return NULL; | |
8565 | } | |
8566 | ||
8567 | ||
8568 | static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8569 | PyObject *resultobj; | |
8570 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8571 | int result; | |
8572 | PyObject * obj0 = 0 ; | |
8573 | char *kwnames[] = { | |
8574 | (char *) "self", NULL | |
8575 | }; | |
8576 | ||
8577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail; | |
8578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8579 | result = (int) ((arg1)->m_pid); | |
8580 | ||
8581 | resultobj = PyInt_FromLong((long)result); | |
8582 | return resultobj; | |
8583 | fail: | |
8584 | return NULL; | |
8585 | } | |
8586 | ||
8587 | ||
8588 | static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8589 | PyObject *resultobj; | |
8590 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8591 | int arg2 ; | |
8592 | PyObject * obj0 = 0 ; | |
8593 | char *kwnames[] = { | |
8594 | (char *) "self",(char *) "m_exitcode", NULL | |
8595 | }; | |
8596 | ||
8597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ProcessEvent_m_exitcode_set",kwnames,&obj0,&arg2)) goto fail; | |
8598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8599 | if (arg1) (arg1)->m_exitcode = arg2; | |
8600 | ||
8601 | Py_INCREF(Py_None); resultobj = Py_None; | |
8602 | return resultobj; | |
8603 | fail: | |
8604 | return NULL; | |
8605 | } | |
8606 | ||
8607 | ||
8608 | static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8609 | PyObject *resultobj; | |
8610 | wxProcessEvent *arg1 = (wxProcessEvent *) 0 ; | |
8611 | int result; | |
8612 | PyObject * obj0 = 0 ; | |
8613 | char *kwnames[] = { | |
8614 | (char *) "self", NULL | |
8615 | }; | |
8616 | ||
8617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail; | |
8618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProcessEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8619 | result = (int) ((arg1)->m_exitcode); | |
8620 | ||
8621 | resultobj = PyInt_FromLong((long)result); | |
8622 | return resultobj; | |
8623 | fail: | |
8624 | return NULL; | |
8625 | } | |
8626 | ||
8627 | ||
8628 | static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) { | |
8629 | PyObject *obj; | |
8630 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8631 | SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj); | |
8632 | Py_INCREF(obj); | |
8633 | return Py_BuildValue((char *)""); | |
8634 | } | |
8635 | static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8636 | PyObject *resultobj; | |
8637 | wxString *arg1 = 0 ; | |
8638 | int arg2 = (int) wxEXEC_ASYNC ; | |
8639 | wxPyProcess *arg3 = (wxPyProcess *) NULL ; | |
8640 | long result; | |
423f194a | 8641 | bool temp1 = False ; |
d14a1e28 RD |
8642 | PyObject * obj0 = 0 ; |
8643 | PyObject * obj2 = 0 ; | |
8644 | char *kwnames[] = { | |
8645 | (char *) "command",(char *) "flags",(char *) "process", NULL | |
8646 | }; | |
8647 | ||
8648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Execute",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
8649 | { | |
8650 | arg1 = wxString_in_helper(obj0); | |
8651 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8652 | temp1 = True; |
d14a1e28 RD |
8653 | } |
8654 | if (obj2) { | |
8655 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyProcess,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8656 | } | |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | result = (long)wxExecute((wxString const &)*arg1,arg2,arg3); | |
8660 | ||
8661 | wxPyEndAllowThreads(__tstate); | |
8662 | if (PyErr_Occurred()) SWIG_fail; | |
8663 | } | |
8664 | resultobj = PyInt_FromLong((long)result); | |
8665 | { | |
8666 | if (temp1) | |
8667 | delete arg1; | |
8668 | } | |
8669 | return resultobj; | |
8670 | fail: | |
8671 | { | |
8672 | if (temp1) | |
8673 | delete arg1; | |
8674 | } | |
8675 | return NULL; | |
8676 | } | |
8677 | ||
8678 | ||
8679 | static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8680 | PyObject *resultobj; | |
8681 | int arg1 = (int) wxJOYSTICK1 ; | |
8682 | wxJoystick *result; | |
8683 | char *kwnames[] = { | |
8684 | (char *) "joystick", NULL | |
8685 | }; | |
8686 | ||
8687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:new_Joystick",kwnames,&arg1)) goto fail; | |
8688 | { | |
8689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8690 | result = (wxJoystick *)new wxJoystick(arg1); | |
8691 | ||
8692 | wxPyEndAllowThreads(__tstate); | |
8693 | if (PyErr_Occurred()) SWIG_fail; | |
8694 | } | |
8695 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystick, 1); | |
8696 | return resultobj; | |
8697 | fail: | |
8698 | return NULL; | |
8699 | } | |
8700 | ||
8701 | ||
8702 | static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8703 | PyObject *resultobj; | |
8704 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8705 | PyObject * obj0 = 0 ; | |
8706 | char *kwnames[] = { | |
8707 | (char *) "self", NULL | |
8708 | }; | |
8709 | ||
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail; | |
8711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8712 | { | |
8713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8714 | delete arg1; | |
8715 | ||
8716 | wxPyEndAllowThreads(__tstate); | |
8717 | if (PyErr_Occurred()) SWIG_fail; | |
8718 | } | |
8719 | Py_INCREF(Py_None); resultobj = Py_None; | |
8720 | return resultobj; | |
8721 | fail: | |
8722 | return NULL; | |
8723 | } | |
8724 | ||
8725 | ||
8726 | static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8727 | PyObject *resultobj; | |
8728 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8729 | wxPoint result; | |
8730 | PyObject * obj0 = 0 ; | |
8731 | char *kwnames[] = { | |
8732 | (char *) "self", NULL | |
8733 | }; | |
8734 | ||
8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail; | |
8736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8737 | { | |
8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8739 | result = (arg1)->GetPosition(); | |
8740 | ||
8741 | wxPyEndAllowThreads(__tstate); | |
8742 | if (PyErr_Occurred()) SWIG_fail; | |
8743 | } | |
8744 | { | |
8745 | wxPoint * resultptr; | |
8746 | resultptr = new wxPoint((wxPoint &) result); | |
8747 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
8748 | } | |
8749 | return resultobj; | |
8750 | fail: | |
8751 | return NULL; | |
8752 | } | |
8753 | ||
8754 | ||
8755 | static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8756 | PyObject *resultobj; | |
8757 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8758 | int result; | |
8759 | PyObject * obj0 = 0 ; | |
8760 | char *kwnames[] = { | |
8761 | (char *) "self", NULL | |
8762 | }; | |
8763 | ||
8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail; | |
8765 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8766 | { | |
8767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8768 | result = (int)(arg1)->GetZPosition(); | |
8769 | ||
8770 | wxPyEndAllowThreads(__tstate); | |
8771 | if (PyErr_Occurred()) SWIG_fail; | |
8772 | } | |
8773 | resultobj = PyInt_FromLong((long)result); | |
8774 | return resultobj; | |
8775 | fail: | |
8776 | return NULL; | |
8777 | } | |
8778 | ||
8779 | ||
8780 | static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8781 | PyObject *resultobj; | |
8782 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8783 | int result; | |
8784 | PyObject * obj0 = 0 ; | |
8785 | char *kwnames[] = { | |
8786 | (char *) "self", NULL | |
8787 | }; | |
8788 | ||
8789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail; | |
8790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8791 | { | |
8792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8793 | result = (int)(arg1)->GetButtonState(); | |
8794 | ||
8795 | wxPyEndAllowThreads(__tstate); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | } | |
8798 | resultobj = PyInt_FromLong((long)result); | |
8799 | return resultobj; | |
8800 | fail: | |
8801 | return NULL; | |
8802 | } | |
8803 | ||
8804 | ||
8805 | static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8806 | PyObject *resultobj; | |
8807 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8808 | int result; | |
8809 | PyObject * obj0 = 0 ; | |
8810 | char *kwnames[] = { | |
8811 | (char *) "self", NULL | |
8812 | }; | |
8813 | ||
8814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail; | |
8815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8816 | { | |
8817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8818 | result = (int)(arg1)->GetPOVPosition(); | |
8819 | ||
8820 | wxPyEndAllowThreads(__tstate); | |
8821 | if (PyErr_Occurred()) SWIG_fail; | |
8822 | } | |
8823 | resultobj = PyInt_FromLong((long)result); | |
8824 | return resultobj; | |
8825 | fail: | |
8826 | return NULL; | |
8827 | } | |
8828 | ||
8829 | ||
8830 | static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8831 | PyObject *resultobj; | |
8832 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8833 | int result; | |
8834 | PyObject * obj0 = 0 ; | |
8835 | char *kwnames[] = { | |
8836 | (char *) "self", NULL | |
8837 | }; | |
8838 | ||
8839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail; | |
8840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8841 | { | |
8842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8843 | result = (int)(arg1)->GetPOVCTSPosition(); | |
8844 | ||
8845 | wxPyEndAllowThreads(__tstate); | |
8846 | if (PyErr_Occurred()) SWIG_fail; | |
8847 | } | |
8848 | resultobj = PyInt_FromLong((long)result); | |
8849 | return resultobj; | |
8850 | fail: | |
8851 | return NULL; | |
8852 | } | |
8853 | ||
8854 | ||
8855 | static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8856 | PyObject *resultobj; | |
8857 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8858 | int result; | |
8859 | PyObject * obj0 = 0 ; | |
8860 | char *kwnames[] = { | |
8861 | (char *) "self", NULL | |
8862 | }; | |
8863 | ||
8864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail; | |
8865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8866 | { | |
8867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8868 | result = (int)(arg1)->GetRudderPosition(); | |
8869 | ||
8870 | wxPyEndAllowThreads(__tstate); | |
8871 | if (PyErr_Occurred()) SWIG_fail; | |
8872 | } | |
8873 | resultobj = PyInt_FromLong((long)result); | |
8874 | return resultobj; | |
8875 | fail: | |
8876 | return NULL; | |
8877 | } | |
8878 | ||
8879 | ||
8880 | static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8881 | PyObject *resultobj; | |
8882 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8883 | int result; | |
8884 | PyObject * obj0 = 0 ; | |
8885 | char *kwnames[] = { | |
8886 | (char *) "self", NULL | |
8887 | }; | |
8888 | ||
8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail; | |
8890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8891 | { | |
8892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8893 | result = (int)(arg1)->GetUPosition(); | |
8894 | ||
8895 | wxPyEndAllowThreads(__tstate); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | } | |
8898 | resultobj = PyInt_FromLong((long)result); | |
8899 | return resultobj; | |
8900 | fail: | |
8901 | return NULL; | |
8902 | } | |
8903 | ||
8904 | ||
8905 | static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8906 | PyObject *resultobj; | |
8907 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8908 | int result; | |
8909 | PyObject * obj0 = 0 ; | |
8910 | char *kwnames[] = { | |
8911 | (char *) "self", NULL | |
8912 | }; | |
8913 | ||
8914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail; | |
8915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8916 | { | |
8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8918 | result = (int)(arg1)->GetVPosition(); | |
8919 | ||
8920 | wxPyEndAllowThreads(__tstate); | |
8921 | if (PyErr_Occurred()) SWIG_fail; | |
8922 | } | |
8923 | resultobj = PyInt_FromLong((long)result); | |
8924 | return resultobj; | |
8925 | fail: | |
8926 | return NULL; | |
8927 | } | |
8928 | ||
8929 | ||
8930 | static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8931 | PyObject *resultobj; | |
8932 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8933 | int result; | |
8934 | PyObject * obj0 = 0 ; | |
8935 | char *kwnames[] = { | |
8936 | (char *) "self", NULL | |
8937 | }; | |
8938 | ||
8939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail; | |
8940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8941 | { | |
8942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8943 | result = (int)(arg1)->GetMovementThreshold(); | |
8944 | ||
8945 | wxPyEndAllowThreads(__tstate); | |
8946 | if (PyErr_Occurred()) SWIG_fail; | |
8947 | } | |
8948 | resultobj = PyInt_FromLong((long)result); | |
8949 | return resultobj; | |
8950 | fail: | |
8951 | return NULL; | |
8952 | } | |
8953 | ||
8954 | ||
8955 | static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8956 | PyObject *resultobj; | |
8957 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8958 | int arg2 ; | |
8959 | PyObject * obj0 = 0 ; | |
8960 | char *kwnames[] = { | |
8961 | (char *) "self",(char *) "threshold", NULL | |
8962 | }; | |
8963 | ||
8964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Joystick_SetMovementThreshold",kwnames,&obj0,&arg2)) goto fail; | |
8965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8966 | { | |
8967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8968 | (arg1)->SetMovementThreshold(arg2); | |
8969 | ||
8970 | wxPyEndAllowThreads(__tstate); | |
8971 | if (PyErr_Occurred()) SWIG_fail; | |
8972 | } | |
8973 | Py_INCREF(Py_None); resultobj = Py_None; | |
8974 | return resultobj; | |
8975 | fail: | |
8976 | return NULL; | |
8977 | } | |
8978 | ||
8979 | ||
8980 | static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8981 | PyObject *resultobj; | |
8982 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
8983 | bool result; | |
8984 | PyObject * obj0 = 0 ; | |
8985 | char *kwnames[] = { | |
8986 | (char *) "self", NULL | |
8987 | }; | |
8988 | ||
8989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail; | |
8990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8991 | { | |
8992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8993 | result = (bool)(arg1)->IsOk(); | |
8994 | ||
8995 | wxPyEndAllowThreads(__tstate); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
8998 | resultobj = PyInt_FromLong((long)result); | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
9005 | static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9006 | PyObject *resultobj; | |
9007 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9008 | int result; | |
9009 | PyObject * obj0 = 0 ; | |
9010 | char *kwnames[] = { | |
9011 | (char *) "self", NULL | |
9012 | }; | |
9013 | ||
9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail; | |
9015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9016 | { | |
9017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9018 | result = (int)(arg1)->GetNumberJoysticks(); | |
9019 | ||
9020 | wxPyEndAllowThreads(__tstate); | |
9021 | if (PyErr_Occurred()) SWIG_fail; | |
9022 | } | |
9023 | resultobj = PyInt_FromLong((long)result); | |
9024 | return resultobj; | |
9025 | fail: | |
9026 | return NULL; | |
9027 | } | |
9028 | ||
9029 | ||
9030 | static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9031 | PyObject *resultobj; | |
9032 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9033 | int result; | |
9034 | PyObject * obj0 = 0 ; | |
9035 | char *kwnames[] = { | |
9036 | (char *) "self", NULL | |
9037 | }; | |
9038 | ||
9039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail; | |
9040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9041 | { | |
9042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9043 | result = (int)(arg1)->GetManufacturerId(); | |
9044 | ||
9045 | wxPyEndAllowThreads(__tstate); | |
9046 | if (PyErr_Occurred()) SWIG_fail; | |
9047 | } | |
9048 | resultobj = PyInt_FromLong((long)result); | |
9049 | return resultobj; | |
9050 | fail: | |
9051 | return NULL; | |
9052 | } | |
9053 | ||
9054 | ||
9055 | static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9056 | PyObject *resultobj; | |
9057 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9058 | int result; | |
9059 | PyObject * obj0 = 0 ; | |
9060 | char *kwnames[] = { | |
9061 | (char *) "self", NULL | |
9062 | }; | |
9063 | ||
9064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail; | |
9065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9066 | { | |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | result = (int)(arg1)->GetProductId(); | |
9069 | ||
9070 | wxPyEndAllowThreads(__tstate); | |
9071 | if (PyErr_Occurred()) SWIG_fail; | |
9072 | } | |
9073 | resultobj = PyInt_FromLong((long)result); | |
9074 | return resultobj; | |
9075 | fail: | |
9076 | return NULL; | |
9077 | } | |
9078 | ||
9079 | ||
9080 | static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9081 | PyObject *resultobj; | |
9082 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9083 | wxString result; | |
9084 | PyObject * obj0 = 0 ; | |
9085 | char *kwnames[] = { | |
9086 | (char *) "self", NULL | |
9087 | }; | |
9088 | ||
9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail; | |
9090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9091 | { | |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | result = (arg1)->GetProductName(); | |
9094 | ||
9095 | wxPyEndAllowThreads(__tstate); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
9097 | } | |
9098 | { | |
9099 | #if wxUSE_UNICODE | |
9100 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9101 | #else | |
9102 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9103 | #endif | |
9104 | } | |
9105 | return resultobj; | |
9106 | fail: | |
9107 | return NULL; | |
9108 | } | |
9109 | ||
9110 | ||
9111 | static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9112 | PyObject *resultobj; | |
9113 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9114 | int result; | |
9115 | PyObject * obj0 = 0 ; | |
9116 | char *kwnames[] = { | |
9117 | (char *) "self", NULL | |
9118 | }; | |
9119 | ||
9120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail; | |
9121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9122 | { | |
9123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9124 | result = (int)(arg1)->GetXMin(); | |
9125 | ||
9126 | wxPyEndAllowThreads(__tstate); | |
9127 | if (PyErr_Occurred()) SWIG_fail; | |
9128 | } | |
9129 | resultobj = PyInt_FromLong((long)result); | |
9130 | return resultobj; | |
9131 | fail: | |
9132 | return NULL; | |
9133 | } | |
9134 | ||
9135 | ||
9136 | static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9137 | PyObject *resultobj; | |
9138 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9139 | int result; | |
9140 | PyObject * obj0 = 0 ; | |
9141 | char *kwnames[] = { | |
9142 | (char *) "self", NULL | |
9143 | }; | |
9144 | ||
9145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail; | |
9146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9147 | { | |
9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9149 | result = (int)(arg1)->GetYMin(); | |
9150 | ||
9151 | wxPyEndAllowThreads(__tstate); | |
9152 | if (PyErr_Occurred()) SWIG_fail; | |
9153 | } | |
9154 | resultobj = PyInt_FromLong((long)result); | |
9155 | return resultobj; | |
9156 | fail: | |
9157 | return NULL; | |
9158 | } | |
9159 | ||
9160 | ||
9161 | static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9162 | PyObject *resultobj; | |
9163 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9164 | int result; | |
9165 | PyObject * obj0 = 0 ; | |
9166 | char *kwnames[] = { | |
9167 | (char *) "self", NULL | |
9168 | }; | |
9169 | ||
9170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail; | |
9171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9172 | { | |
9173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9174 | result = (int)(arg1)->GetZMin(); | |
9175 | ||
9176 | wxPyEndAllowThreads(__tstate); | |
9177 | if (PyErr_Occurred()) SWIG_fail; | |
9178 | } | |
9179 | resultobj = PyInt_FromLong((long)result); | |
9180 | return resultobj; | |
9181 | fail: | |
9182 | return NULL; | |
9183 | } | |
9184 | ||
9185 | ||
9186 | static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9187 | PyObject *resultobj; | |
9188 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9189 | int result; | |
9190 | PyObject * obj0 = 0 ; | |
9191 | char *kwnames[] = { | |
9192 | (char *) "self", NULL | |
9193 | }; | |
9194 | ||
9195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail; | |
9196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9197 | { | |
9198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9199 | result = (int)(arg1)->GetXMax(); | |
9200 | ||
9201 | wxPyEndAllowThreads(__tstate); | |
9202 | if (PyErr_Occurred()) SWIG_fail; | |
9203 | } | |
9204 | resultobj = PyInt_FromLong((long)result); | |
9205 | return resultobj; | |
9206 | fail: | |
9207 | return NULL; | |
9208 | } | |
9209 | ||
9210 | ||
9211 | static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9212 | PyObject *resultobj; | |
9213 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9214 | int result; | |
9215 | PyObject * obj0 = 0 ; | |
9216 | char *kwnames[] = { | |
9217 | (char *) "self", NULL | |
9218 | }; | |
9219 | ||
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail; | |
9221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9222 | { | |
9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9224 | result = (int)(arg1)->GetYMax(); | |
9225 | ||
9226 | wxPyEndAllowThreads(__tstate); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | resultobj = PyInt_FromLong((long)result); | |
9230 | return resultobj; | |
9231 | fail: | |
9232 | return NULL; | |
9233 | } | |
9234 | ||
9235 | ||
9236 | static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9237 | PyObject *resultobj; | |
9238 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9239 | int result; | |
9240 | PyObject * obj0 = 0 ; | |
9241 | char *kwnames[] = { | |
9242 | (char *) "self", NULL | |
9243 | }; | |
9244 | ||
9245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail; | |
9246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9247 | { | |
9248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9249 | result = (int)(arg1)->GetZMax(); | |
9250 | ||
9251 | wxPyEndAllowThreads(__tstate); | |
9252 | if (PyErr_Occurred()) SWIG_fail; | |
9253 | } | |
9254 | resultobj = PyInt_FromLong((long)result); | |
9255 | return resultobj; | |
9256 | fail: | |
9257 | return NULL; | |
9258 | } | |
9259 | ||
9260 | ||
9261 | static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9262 | PyObject *resultobj; | |
9263 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9264 | int result; | |
9265 | PyObject * obj0 = 0 ; | |
9266 | char *kwnames[] = { | |
9267 | (char *) "self", NULL | |
9268 | }; | |
9269 | ||
9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail; | |
9271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9272 | { | |
9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9274 | result = (int)(arg1)->GetNumberButtons(); | |
9275 | ||
9276 | wxPyEndAllowThreads(__tstate); | |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
9278 | } | |
9279 | resultobj = PyInt_FromLong((long)result); | |
9280 | return resultobj; | |
9281 | fail: | |
9282 | return NULL; | |
9283 | } | |
9284 | ||
9285 | ||
9286 | static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9287 | PyObject *resultobj; | |
9288 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9289 | int result; | |
9290 | PyObject * obj0 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail; | |
9296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9297 | { | |
9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9299 | result = (int)(arg1)->GetNumberAxes(); | |
9300 | ||
9301 | wxPyEndAllowThreads(__tstate); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
9303 | } | |
9304 | resultobj = PyInt_FromLong((long)result); | |
9305 | return resultobj; | |
9306 | fail: | |
9307 | return NULL; | |
9308 | } | |
9309 | ||
9310 | ||
9311 | static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9312 | PyObject *resultobj; | |
9313 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9314 | int result; | |
9315 | PyObject * obj0 = 0 ; | |
9316 | char *kwnames[] = { | |
9317 | (char *) "self", NULL | |
9318 | }; | |
9319 | ||
9320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail; | |
9321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9322 | { | |
9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9324 | result = (int)(arg1)->GetMaxButtons(); | |
9325 | ||
9326 | wxPyEndAllowThreads(__tstate); | |
9327 | if (PyErr_Occurred()) SWIG_fail; | |
9328 | } | |
9329 | resultobj = PyInt_FromLong((long)result); | |
9330 | return resultobj; | |
9331 | fail: | |
9332 | return NULL; | |
9333 | } | |
9334 | ||
9335 | ||
9336 | static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9337 | PyObject *resultobj; | |
9338 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9339 | int result; | |
9340 | PyObject * obj0 = 0 ; | |
9341 | char *kwnames[] = { | |
9342 | (char *) "self", NULL | |
9343 | }; | |
9344 | ||
9345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail; | |
9346 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9347 | { | |
9348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9349 | result = (int)(arg1)->GetMaxAxes(); | |
9350 | ||
9351 | wxPyEndAllowThreads(__tstate); | |
9352 | if (PyErr_Occurred()) SWIG_fail; | |
9353 | } | |
9354 | resultobj = PyInt_FromLong((long)result); | |
9355 | return resultobj; | |
9356 | fail: | |
9357 | return NULL; | |
9358 | } | |
9359 | ||
9360 | ||
9361 | static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj; | |
9363 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9364 | int result; | |
9365 | PyObject * obj0 = 0 ; | |
9366 | char *kwnames[] = { | |
9367 | (char *) "self", NULL | |
9368 | }; | |
9369 | ||
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail; | |
9371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9372 | { | |
9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9374 | result = (int)(arg1)->GetPollingMin(); | |
9375 | ||
9376 | wxPyEndAllowThreads(__tstate); | |
9377 | if (PyErr_Occurred()) SWIG_fail; | |
9378 | } | |
9379 | resultobj = PyInt_FromLong((long)result); | |
9380 | return resultobj; | |
9381 | fail: | |
9382 | return NULL; | |
9383 | } | |
9384 | ||
9385 | ||
9386 | static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9387 | PyObject *resultobj; | |
9388 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9389 | int result; | |
9390 | PyObject * obj0 = 0 ; | |
9391 | char *kwnames[] = { | |
9392 | (char *) "self", NULL | |
9393 | }; | |
9394 | ||
9395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail; | |
9396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9397 | { | |
9398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9399 | result = (int)(arg1)->GetPollingMax(); | |
9400 | ||
9401 | wxPyEndAllowThreads(__tstate); | |
9402 | if (PyErr_Occurred()) SWIG_fail; | |
9403 | } | |
9404 | resultobj = PyInt_FromLong((long)result); | |
9405 | return resultobj; | |
9406 | fail: | |
9407 | return NULL; | |
9408 | } | |
9409 | ||
9410 | ||
9411 | static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9412 | PyObject *resultobj; | |
9413 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9414 | int result; | |
9415 | PyObject * obj0 = 0 ; | |
9416 | char *kwnames[] = { | |
9417 | (char *) "self", NULL | |
9418 | }; | |
9419 | ||
9420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail; | |
9421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9422 | { | |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | result = (int)(arg1)->GetRudderMin(); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | resultobj = PyInt_FromLong((long)result); | |
9430 | return resultobj; | |
9431 | fail: | |
9432 | return NULL; | |
9433 | } | |
9434 | ||
9435 | ||
9436 | static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9437 | PyObject *resultobj; | |
9438 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9439 | int result; | |
9440 | PyObject * obj0 = 0 ; | |
9441 | char *kwnames[] = { | |
9442 | (char *) "self", NULL | |
9443 | }; | |
9444 | ||
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail; | |
9446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9447 | { | |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | result = (int)(arg1)->GetRudderMax(); | |
9450 | ||
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
9454 | resultobj = PyInt_FromLong((long)result); | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | return NULL; | |
9458 | } | |
9459 | ||
9460 | ||
9461 | static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9462 | PyObject *resultobj; | |
9463 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9464 | int result; | |
9465 | PyObject * obj0 = 0 ; | |
9466 | char *kwnames[] = { | |
9467 | (char *) "self", NULL | |
9468 | }; | |
9469 | ||
9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail; | |
9471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9472 | { | |
9473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9474 | result = (int)(arg1)->GetUMin(); | |
9475 | ||
9476 | wxPyEndAllowThreads(__tstate); | |
9477 | if (PyErr_Occurred()) SWIG_fail; | |
9478 | } | |
9479 | resultobj = PyInt_FromLong((long)result); | |
9480 | return resultobj; | |
9481 | fail: | |
9482 | return NULL; | |
9483 | } | |
9484 | ||
9485 | ||
9486 | static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9487 | PyObject *resultobj; | |
9488 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9489 | int result; | |
9490 | PyObject * obj0 = 0 ; | |
9491 | char *kwnames[] = { | |
9492 | (char *) "self", NULL | |
9493 | }; | |
9494 | ||
9495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail; | |
9496 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9497 | { | |
9498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9499 | result = (int)(arg1)->GetUMax(); | |
9500 | ||
9501 | wxPyEndAllowThreads(__tstate); | |
9502 | if (PyErr_Occurred()) SWIG_fail; | |
9503 | } | |
9504 | resultobj = PyInt_FromLong((long)result); | |
9505 | return resultobj; | |
9506 | fail: | |
9507 | return NULL; | |
9508 | } | |
9509 | ||
9510 | ||
9511 | static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9512 | PyObject *resultobj; | |
9513 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9514 | int result; | |
9515 | PyObject * obj0 = 0 ; | |
9516 | char *kwnames[] = { | |
9517 | (char *) "self", NULL | |
9518 | }; | |
9519 | ||
9520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail; | |
9521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9522 | { | |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | result = (int)(arg1)->GetVMin(); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
9529 | resultobj = PyInt_FromLong((long)result); | |
9530 | return resultobj; | |
9531 | fail: | |
9532 | return NULL; | |
9533 | } | |
9534 | ||
9535 | ||
9536 | static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9537 | PyObject *resultobj; | |
9538 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9539 | int result; | |
9540 | PyObject * obj0 = 0 ; | |
9541 | char *kwnames[] = { | |
9542 | (char *) "self", NULL | |
9543 | }; | |
9544 | ||
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail; | |
9546 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9547 | { | |
9548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9549 | result = (int)(arg1)->GetVMax(); | |
9550 | ||
9551 | wxPyEndAllowThreads(__tstate); | |
9552 | if (PyErr_Occurred()) SWIG_fail; | |
9553 | } | |
9554 | resultobj = PyInt_FromLong((long)result); | |
9555 | return resultobj; | |
9556 | fail: | |
9557 | return NULL; | |
9558 | } | |
9559 | ||
9560 | ||
9561 | static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9562 | PyObject *resultobj; | |
9563 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9564 | bool result; | |
9565 | PyObject * obj0 = 0 ; | |
9566 | char *kwnames[] = { | |
9567 | (char *) "self", NULL | |
9568 | }; | |
9569 | ||
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail; | |
9571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9572 | { | |
9573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9574 | result = (bool)(arg1)->HasRudder(); | |
9575 | ||
9576 | wxPyEndAllowThreads(__tstate); | |
9577 | if (PyErr_Occurred()) SWIG_fail; | |
9578 | } | |
9579 | resultobj = PyInt_FromLong((long)result); | |
9580 | return resultobj; | |
9581 | fail: | |
9582 | return NULL; | |
9583 | } | |
9584 | ||
9585 | ||
9586 | static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9587 | PyObject *resultobj; | |
9588 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9589 | bool result; | |
9590 | PyObject * obj0 = 0 ; | |
9591 | char *kwnames[] = { | |
9592 | (char *) "self", NULL | |
9593 | }; | |
9594 | ||
9595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail; | |
9596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9597 | { | |
9598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9599 | result = (bool)(arg1)->HasZ(); | |
9600 | ||
9601 | wxPyEndAllowThreads(__tstate); | |
9602 | if (PyErr_Occurred()) SWIG_fail; | |
9603 | } | |
9604 | resultobj = PyInt_FromLong((long)result); | |
9605 | return resultobj; | |
9606 | fail: | |
9607 | return NULL; | |
9608 | } | |
9609 | ||
9610 | ||
9611 | static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject *resultobj; | |
9613 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9614 | bool result; | |
9615 | PyObject * obj0 = 0 ; | |
9616 | char *kwnames[] = { | |
9617 | (char *) "self", NULL | |
9618 | }; | |
9619 | ||
9620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail; | |
9621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | result = (bool)(arg1)->HasU(); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) SWIG_fail; | |
9628 | } | |
9629 | resultobj = PyInt_FromLong((long)result); | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | return NULL; | |
9633 | } | |
9634 | ||
9635 | ||
9636 | static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject *resultobj; | |
9638 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9639 | bool result; | |
9640 | PyObject * obj0 = 0 ; | |
9641 | char *kwnames[] = { | |
9642 | (char *) "self", NULL | |
9643 | }; | |
9644 | ||
9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail; | |
9646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9647 | { | |
9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9649 | result = (bool)(arg1)->HasV(); | |
9650 | ||
9651 | wxPyEndAllowThreads(__tstate); | |
9652 | if (PyErr_Occurred()) SWIG_fail; | |
9653 | } | |
9654 | resultobj = PyInt_FromLong((long)result); | |
9655 | return resultobj; | |
9656 | fail: | |
9657 | return NULL; | |
9658 | } | |
9659 | ||
9660 | ||
9661 | static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9662 | PyObject *resultobj; | |
9663 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9664 | bool result; | |
9665 | PyObject * obj0 = 0 ; | |
9666 | char *kwnames[] = { | |
9667 | (char *) "self", NULL | |
9668 | }; | |
9669 | ||
9670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail; | |
9671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9672 | { | |
9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9674 | result = (bool)(arg1)->HasPOV(); | |
9675 | ||
9676 | wxPyEndAllowThreads(__tstate); | |
9677 | if (PyErr_Occurred()) SWIG_fail; | |
9678 | } | |
9679 | resultobj = PyInt_FromLong((long)result); | |
9680 | return resultobj; | |
9681 | fail: | |
9682 | return NULL; | |
9683 | } | |
9684 | ||
9685 | ||
9686 | static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9687 | PyObject *resultobj; | |
9688 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9689 | bool result; | |
9690 | PyObject * obj0 = 0 ; | |
9691 | char *kwnames[] = { | |
9692 | (char *) "self", NULL | |
9693 | }; | |
9694 | ||
9695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail; | |
9696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9697 | { | |
9698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9699 | result = (bool)(arg1)->HasPOV4Dir(); | |
9700 | ||
9701 | wxPyEndAllowThreads(__tstate); | |
9702 | if (PyErr_Occurred()) SWIG_fail; | |
9703 | } | |
9704 | resultobj = PyInt_FromLong((long)result); | |
9705 | return resultobj; | |
9706 | fail: | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
9711 | static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject *resultobj; | |
9713 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9714 | bool result; | |
9715 | PyObject * obj0 = 0 ; | |
9716 | char *kwnames[] = { | |
9717 | (char *) "self", NULL | |
9718 | }; | |
9719 | ||
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail; | |
9721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9722 | { | |
9723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9724 | result = (bool)(arg1)->HasPOVCTS(); | |
9725 | ||
9726 | wxPyEndAllowThreads(__tstate); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | } | |
9729 | resultobj = PyInt_FromLong((long)result); | |
9730 | return resultobj; | |
9731 | fail: | |
9732 | return NULL; | |
9733 | } | |
9734 | ||
9735 | ||
9736 | static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9737 | PyObject *resultobj; | |
9738 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9739 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9740 | int arg3 = (int) 0 ; | |
9741 | bool result; | |
9742 | PyObject * obj0 = 0 ; | |
9743 | PyObject * obj1 = 0 ; | |
9744 | char *kwnames[] = { | |
9745 | (char *) "self",(char *) "win",(char *) "pollingFreq", NULL | |
9746 | }; | |
9747 | ||
9748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:Joystick_SetCapture",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
9749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9750 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9751 | { | |
9752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9753 | result = (bool)(arg1)->SetCapture(arg2,arg3); | |
9754 | ||
9755 | wxPyEndAllowThreads(__tstate); | |
9756 | if (PyErr_Occurred()) SWIG_fail; | |
9757 | } | |
9758 | resultobj = PyInt_FromLong((long)result); | |
9759 | return resultobj; | |
9760 | fail: | |
9761 | return NULL; | |
9762 | } | |
9763 | ||
9764 | ||
9765 | static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9766 | PyObject *resultobj; | |
9767 | wxJoystick *arg1 = (wxJoystick *) 0 ; | |
9768 | bool result; | |
9769 | PyObject * obj0 = 0 ; | |
9770 | char *kwnames[] = { | |
9771 | (char *) "self", NULL | |
9772 | }; | |
9773 | ||
9774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail; | |
9775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystick,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9776 | { | |
9777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9778 | result = (bool)(arg1)->ReleaseCapture(); | |
9779 | ||
9780 | wxPyEndAllowThreads(__tstate); | |
9781 | if (PyErr_Occurred()) SWIG_fail; | |
9782 | } | |
9783 | resultobj = PyInt_FromLong((long)result); | |
9784 | return resultobj; | |
9785 | fail: | |
9786 | return NULL; | |
9787 | } | |
9788 | ||
9789 | ||
9790 | static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) { | |
9791 | PyObject *obj; | |
9792 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9793 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj); | |
9794 | Py_INCREF(obj); | |
9795 | return Py_BuildValue((char *)""); | |
9796 | } | |
9797 | static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9798 | PyObject *resultobj; | |
9799 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9800 | wxPoint *arg2 = (wxPoint *) 0 ; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | PyObject * obj1 = 0 ; | |
9803 | char *kwnames[] = { | |
9804 | (char *) "self",(char *) "m_pos", NULL | |
9805 | }; | |
9806 | ||
9807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
9808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9809 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9810 | if (arg1) (arg1)->m_pos = *arg2; | |
9811 | ||
9812 | Py_INCREF(Py_None); resultobj = Py_None; | |
9813 | return resultobj; | |
9814 | fail: | |
9815 | return NULL; | |
9816 | } | |
9817 | ||
9818 | ||
9819 | static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9820 | PyObject *resultobj; | |
9821 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9822 | wxPoint *result; | |
9823 | PyObject * obj0 = 0 ; | |
9824 | char *kwnames[] = { | |
9825 | (char *) "self", NULL | |
9826 | }; | |
9827 | ||
9828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
9829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9830 | result = (wxPoint *)& ((arg1)->m_pos); | |
9831 | ||
9832 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
9833 | return resultobj; | |
9834 | fail: | |
9835 | return NULL; | |
9836 | } | |
9837 | ||
9838 | ||
9839 | static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9840 | PyObject *resultobj; | |
9841 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9842 | int arg2 ; | |
9843 | PyObject * obj0 = 0 ; | |
9844 | char *kwnames[] = { | |
9845 | (char *) "self",(char *) "m_zPosition", NULL | |
9846 | }; | |
9847 | ||
9848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_zPosition_set",kwnames,&obj0,&arg2)) goto fail; | |
9849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9850 | if (arg1) (arg1)->m_zPosition = arg2; | |
9851 | ||
9852 | Py_INCREF(Py_None); resultobj = Py_None; | |
9853 | return resultobj; | |
9854 | fail: | |
9855 | return NULL; | |
9856 | } | |
9857 | ||
9858 | ||
9859 | static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9860 | PyObject *resultobj; | |
9861 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9862 | int result; | |
9863 | PyObject * obj0 = 0 ; | |
9864 | char *kwnames[] = { | |
9865 | (char *) "self", NULL | |
9866 | }; | |
9867 | ||
9868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail; | |
9869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9870 | result = (int) ((arg1)->m_zPosition); | |
9871 | ||
9872 | resultobj = PyInt_FromLong((long)result); | |
9873 | return resultobj; | |
9874 | fail: | |
9875 | return NULL; | |
9876 | } | |
9877 | ||
9878 | ||
9879 | static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9880 | PyObject *resultobj; | |
9881 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9882 | int arg2 ; | |
9883 | PyObject * obj0 = 0 ; | |
9884 | char *kwnames[] = { | |
9885 | (char *) "self",(char *) "m_buttonChange", NULL | |
9886 | }; | |
9887 | ||
9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&arg2)) goto fail; | |
9889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9890 | if (arg1) (arg1)->m_buttonChange = arg2; | |
9891 | ||
9892 | Py_INCREF(Py_None); resultobj = Py_None; | |
9893 | return resultobj; | |
9894 | fail: | |
9895 | return NULL; | |
9896 | } | |
9897 | ||
9898 | ||
9899 | static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9900 | PyObject *resultobj; | |
9901 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9902 | int result; | |
9903 | PyObject * obj0 = 0 ; | |
9904 | char *kwnames[] = { | |
9905 | (char *) "self", NULL | |
9906 | }; | |
9907 | ||
9908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail; | |
9909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9910 | result = (int) ((arg1)->m_buttonChange); | |
9911 | ||
9912 | resultobj = PyInt_FromLong((long)result); | |
9913 | return resultobj; | |
9914 | fail: | |
9915 | return NULL; | |
9916 | } | |
9917 | ||
9918 | ||
9919 | static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9920 | PyObject *resultobj; | |
9921 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9922 | int arg2 ; | |
9923 | PyObject * obj0 = 0 ; | |
9924 | char *kwnames[] = { | |
9925 | (char *) "self",(char *) "m_buttonState", NULL | |
9926 | }; | |
9927 | ||
9928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_buttonState_set",kwnames,&obj0,&arg2)) goto fail; | |
9929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9930 | if (arg1) (arg1)->m_buttonState = arg2; | |
9931 | ||
9932 | Py_INCREF(Py_None); resultobj = Py_None; | |
9933 | return resultobj; | |
9934 | fail: | |
9935 | return NULL; | |
9936 | } | |
9937 | ||
9938 | ||
9939 | static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9940 | PyObject *resultobj; | |
9941 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9942 | int result; | |
9943 | PyObject * obj0 = 0 ; | |
9944 | char *kwnames[] = { | |
9945 | (char *) "self", NULL | |
9946 | }; | |
9947 | ||
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail; | |
9949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9950 | result = (int) ((arg1)->m_buttonState); | |
9951 | ||
9952 | resultobj = PyInt_FromLong((long)result); | |
9953 | return resultobj; | |
9954 | fail: | |
9955 | return NULL; | |
9956 | } | |
9957 | ||
9958 | ||
9959 | static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9960 | PyObject *resultobj; | |
9961 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9962 | int arg2 ; | |
9963 | PyObject * obj0 = 0 ; | |
9964 | char *kwnames[] = { | |
9965 | (char *) "self",(char *) "m_joyStick", NULL | |
9966 | }; | |
9967 | ||
9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_m_joyStick_set",kwnames,&obj0,&arg2)) goto fail; | |
9969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9970 | if (arg1) (arg1)->m_joyStick = arg2; | |
9971 | ||
9972 | Py_INCREF(Py_None); resultobj = Py_None; | |
9973 | return resultobj; | |
9974 | fail: | |
9975 | return NULL; | |
9976 | } | |
9977 | ||
9978 | ||
9979 | static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9980 | PyObject *resultobj; | |
9981 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
9982 | int result; | |
9983 | PyObject * obj0 = 0 ; | |
9984 | char *kwnames[] = { | |
9985 | (char *) "self", NULL | |
9986 | }; | |
9987 | ||
9988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail; | |
9989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9990 | result = (int) ((arg1)->m_joyStick); | |
9991 | ||
9992 | resultobj = PyInt_FromLong((long)result); | |
9993 | return resultobj; | |
9994 | fail: | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
9999 | static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10000 | PyObject *resultobj; | |
10001 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10002 | int arg2 = (int) 0 ; | |
10003 | int arg3 = (int) wxJOYSTICK1 ; | |
10004 | int arg4 = (int) 0 ; | |
10005 | wxJoystickEvent *result; | |
10006 | char *kwnames[] = { | |
10007 | (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL | |
10008 | }; | |
10009 | ||
10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_JoystickEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
10011 | { | |
10012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10013 | result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4); | |
10014 | ||
10015 | wxPyEndAllowThreads(__tstate); | |
10016 | if (PyErr_Occurred()) SWIG_fail; | |
10017 | } | |
10018 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJoystickEvent, 1); | |
10019 | return resultobj; | |
10020 | fail: | |
10021 | return NULL; | |
10022 | } | |
10023 | ||
10024 | ||
10025 | static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10026 | PyObject *resultobj; | |
10027 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10028 | wxPoint result; | |
10029 | PyObject * obj0 = 0 ; | |
10030 | char *kwnames[] = { | |
10031 | (char *) "self", NULL | |
10032 | }; | |
10033 | ||
10034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail; | |
10035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10036 | { | |
10037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10038 | result = ((wxJoystickEvent const *)arg1)->GetPosition(); | |
10039 | ||
10040 | wxPyEndAllowThreads(__tstate); | |
10041 | if (PyErr_Occurred()) SWIG_fail; | |
10042 | } | |
10043 | { | |
10044 | wxPoint * resultptr; | |
10045 | resultptr = new wxPoint((wxPoint &) result); | |
10046 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
10047 | } | |
10048 | return resultobj; | |
10049 | fail: | |
10050 | return NULL; | |
10051 | } | |
10052 | ||
10053 | ||
10054 | static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10055 | PyObject *resultobj; | |
10056 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10057 | int result; | |
10058 | PyObject * obj0 = 0 ; | |
10059 | char *kwnames[] = { | |
10060 | (char *) "self", NULL | |
10061 | }; | |
10062 | ||
10063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail; | |
10064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10065 | { | |
10066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10067 | result = (int)((wxJoystickEvent const *)arg1)->GetZPosition(); | |
10068 | ||
10069 | wxPyEndAllowThreads(__tstate); | |
10070 | if (PyErr_Occurred()) SWIG_fail; | |
10071 | } | |
10072 | resultobj = PyInt_FromLong((long)result); | |
10073 | return resultobj; | |
10074 | fail: | |
10075 | return NULL; | |
10076 | } | |
10077 | ||
10078 | ||
10079 | static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10080 | PyObject *resultobj; | |
10081 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10082 | int result; | |
10083 | PyObject * obj0 = 0 ; | |
10084 | char *kwnames[] = { | |
10085 | (char *) "self", NULL | |
10086 | }; | |
10087 | ||
10088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail; | |
10089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10090 | { | |
10091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10092 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonState(); | |
10093 | ||
10094 | wxPyEndAllowThreads(__tstate); | |
10095 | if (PyErr_Occurred()) SWIG_fail; | |
10096 | } | |
10097 | resultobj = PyInt_FromLong((long)result); | |
10098 | return resultobj; | |
10099 | fail: | |
10100 | return NULL; | |
10101 | } | |
10102 | ||
10103 | ||
10104 | static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10105 | PyObject *resultobj; | |
10106 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10107 | int result; | |
10108 | PyObject * obj0 = 0 ; | |
10109 | char *kwnames[] = { | |
10110 | (char *) "self", NULL | |
10111 | }; | |
10112 | ||
10113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail; | |
10114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10115 | { | |
10116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10117 | result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange(); | |
10118 | ||
10119 | wxPyEndAllowThreads(__tstate); | |
10120 | if (PyErr_Occurred()) SWIG_fail; | |
10121 | } | |
10122 | resultobj = PyInt_FromLong((long)result); | |
10123 | return resultobj; | |
10124 | fail: | |
10125 | return NULL; | |
10126 | } | |
10127 | ||
10128 | ||
10129 | static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10130 | PyObject *resultobj; | |
10131 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10132 | int result; | |
10133 | PyObject * obj0 = 0 ; | |
10134 | char *kwnames[] = { | |
10135 | (char *) "self", NULL | |
10136 | }; | |
10137 | ||
10138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail; | |
10139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10140 | { | |
10141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10142 | result = (int)((wxJoystickEvent const *)arg1)->GetJoystick(); | |
10143 | ||
10144 | wxPyEndAllowThreads(__tstate); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
10147 | resultobj = PyInt_FromLong((long)result); | |
10148 | return resultobj; | |
10149 | fail: | |
10150 | return NULL; | |
10151 | } | |
10152 | ||
10153 | ||
10154 | static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10155 | PyObject *resultobj; | |
10156 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10157 | int arg2 ; | |
10158 | PyObject * obj0 = 0 ; | |
10159 | char *kwnames[] = { | |
10160 | (char *) "self",(char *) "stick", NULL | |
10161 | }; | |
10162 | ||
10163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetJoystick",kwnames,&obj0,&arg2)) goto fail; | |
10164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10165 | { | |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10167 | (arg1)->SetJoystick(arg2); | |
10168 | ||
10169 | wxPyEndAllowThreads(__tstate); | |
10170 | if (PyErr_Occurred()) SWIG_fail; | |
10171 | } | |
10172 | Py_INCREF(Py_None); resultobj = Py_None; | |
10173 | return resultobj; | |
10174 | fail: | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
10179 | static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10180 | PyObject *resultobj; | |
10181 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10182 | int arg2 ; | |
10183 | PyObject * obj0 = 0 ; | |
10184 | char *kwnames[] = { | |
10185 | (char *) "self",(char *) "state", NULL | |
10186 | }; | |
10187 | ||
10188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonState",kwnames,&obj0,&arg2)) goto fail; | |
10189 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10190 | { | |
10191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10192 | (arg1)->SetButtonState(arg2); | |
10193 | ||
10194 | wxPyEndAllowThreads(__tstate); | |
10195 | if (PyErr_Occurred()) SWIG_fail; | |
10196 | } | |
10197 | Py_INCREF(Py_None); resultobj = Py_None; | |
10198 | return resultobj; | |
10199 | fail: | |
10200 | return NULL; | |
10201 | } | |
10202 | ||
10203 | ||
10204 | static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10205 | PyObject *resultobj; | |
10206 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10207 | int arg2 ; | |
10208 | PyObject * obj0 = 0 ; | |
10209 | char *kwnames[] = { | |
10210 | (char *) "self",(char *) "change", NULL | |
10211 | }; | |
10212 | ||
10213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetButtonChange",kwnames,&obj0,&arg2)) goto fail; | |
10214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10215 | { | |
10216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10217 | (arg1)->SetButtonChange(arg2); | |
10218 | ||
10219 | wxPyEndAllowThreads(__tstate); | |
10220 | if (PyErr_Occurred()) SWIG_fail; | |
10221 | } | |
10222 | Py_INCREF(Py_None); resultobj = Py_None; | |
10223 | return resultobj; | |
10224 | fail: | |
10225 | return NULL; | |
10226 | } | |
10227 | ||
10228 | ||
10229 | static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10230 | PyObject *resultobj; | |
10231 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10232 | wxPoint *arg2 = 0 ; | |
10233 | wxPoint temp2 ; | |
10234 | PyObject * obj0 = 0 ; | |
10235 | PyObject * obj1 = 0 ; | |
10236 | char *kwnames[] = { | |
10237 | (char *) "self",(char *) "pos", NULL | |
10238 | }; | |
10239 | ||
10240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
10241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10242 | { | |
10243 | arg2 = &temp2; | |
10244 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10245 | } | |
10246 | { | |
10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10248 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
10249 | ||
10250 | wxPyEndAllowThreads(__tstate); | |
10251 | if (PyErr_Occurred()) SWIG_fail; | |
10252 | } | |
10253 | Py_INCREF(Py_None); resultobj = Py_None; | |
10254 | return resultobj; | |
10255 | fail: | |
10256 | return NULL; | |
10257 | } | |
10258 | ||
10259 | ||
10260 | static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10261 | PyObject *resultobj; | |
10262 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10263 | int arg2 ; | |
10264 | PyObject * obj0 = 0 ; | |
10265 | char *kwnames[] = { | |
10266 | (char *) "self",(char *) "zPos", NULL | |
10267 | }; | |
10268 | ||
10269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:JoystickEvent_SetZPosition",kwnames,&obj0,&arg2)) goto fail; | |
10270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10271 | { | |
10272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10273 | (arg1)->SetZPosition(arg2); | |
10274 | ||
10275 | wxPyEndAllowThreads(__tstate); | |
10276 | if (PyErr_Occurred()) SWIG_fail; | |
10277 | } | |
10278 | Py_INCREF(Py_None); resultobj = Py_None; | |
10279 | return resultobj; | |
10280 | fail: | |
10281 | return NULL; | |
10282 | } | |
10283 | ||
10284 | ||
10285 | static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10286 | PyObject *resultobj; | |
10287 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10288 | bool result; | |
10289 | PyObject * obj0 = 0 ; | |
10290 | char *kwnames[] = { | |
10291 | (char *) "self", NULL | |
10292 | }; | |
10293 | ||
10294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail; | |
10295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10296 | { | |
10297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10298 | result = (bool)((wxJoystickEvent const *)arg1)->IsButton(); | |
10299 | ||
10300 | wxPyEndAllowThreads(__tstate); | |
10301 | if (PyErr_Occurred()) SWIG_fail; | |
10302 | } | |
10303 | resultobj = PyInt_FromLong((long)result); | |
10304 | return resultobj; | |
10305 | fail: | |
10306 | return NULL; | |
10307 | } | |
10308 | ||
10309 | ||
10310 | static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10311 | PyObject *resultobj; | |
10312 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10313 | bool result; | |
10314 | PyObject * obj0 = 0 ; | |
10315 | char *kwnames[] = { | |
10316 | (char *) "self", NULL | |
10317 | }; | |
10318 | ||
10319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail; | |
10320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10321 | { | |
10322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10323 | result = (bool)((wxJoystickEvent const *)arg1)->IsMove(); | |
10324 | ||
10325 | wxPyEndAllowThreads(__tstate); | |
10326 | if (PyErr_Occurred()) SWIG_fail; | |
10327 | } | |
10328 | resultobj = PyInt_FromLong((long)result); | |
10329 | return resultobj; | |
10330 | fail: | |
10331 | return NULL; | |
10332 | } | |
10333 | ||
10334 | ||
10335 | static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10336 | PyObject *resultobj; | |
10337 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10338 | bool result; | |
10339 | PyObject * obj0 = 0 ; | |
10340 | char *kwnames[] = { | |
10341 | (char *) "self", NULL | |
10342 | }; | |
10343 | ||
10344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail; | |
10345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10346 | { | |
10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10348 | result = (bool)((wxJoystickEvent const *)arg1)->IsZMove(); | |
10349 | ||
10350 | wxPyEndAllowThreads(__tstate); | |
10351 | if (PyErr_Occurred()) SWIG_fail; | |
10352 | } | |
10353 | resultobj = PyInt_FromLong((long)result); | |
10354 | return resultobj; | |
10355 | fail: | |
10356 | return NULL; | |
10357 | } | |
10358 | ||
10359 | ||
10360 | static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10361 | PyObject *resultobj; | |
10362 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10363 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10364 | bool result; | |
10365 | PyObject * obj0 = 0 ; | |
10366 | char *kwnames[] = { | |
10367 | (char *) "self",(char *) "but", NULL | |
10368 | }; | |
10369 | ||
10370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonDown",kwnames,&obj0,&arg2)) goto fail; | |
10371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10372 | { | |
10373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10374 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2); | |
10375 | ||
10376 | wxPyEndAllowThreads(__tstate); | |
10377 | if (PyErr_Occurred()) SWIG_fail; | |
10378 | } | |
10379 | resultobj = PyInt_FromLong((long)result); | |
10380 | return resultobj; | |
10381 | fail: | |
10382 | return NULL; | |
10383 | } | |
10384 | ||
10385 | ||
10386 | static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10387 | PyObject *resultobj; | |
10388 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10389 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10390 | bool result; | |
10391 | PyObject * obj0 = 0 ; | |
10392 | char *kwnames[] = { | |
10393 | (char *) "self",(char *) "but", NULL | |
10394 | }; | |
10395 | ||
10396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonUp",kwnames,&obj0,&arg2)) goto fail; | |
10397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10398 | { | |
10399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10400 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2); | |
10401 | ||
10402 | wxPyEndAllowThreads(__tstate); | |
10403 | if (PyErr_Occurred()) SWIG_fail; | |
10404 | } | |
10405 | resultobj = PyInt_FromLong((long)result); | |
10406 | return resultobj; | |
10407 | fail: | |
10408 | return NULL; | |
10409 | } | |
10410 | ||
10411 | ||
10412 | static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10413 | PyObject *resultobj; | |
10414 | wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ; | |
10415 | int arg2 = (int) wxJOY_BUTTON_ANY ; | |
10416 | bool result; | |
10417 | PyObject * obj0 = 0 ; | |
10418 | char *kwnames[] = { | |
10419 | (char *) "self",(char *) "but", NULL | |
10420 | }; | |
10421 | ||
10422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:JoystickEvent_ButtonIsDown",kwnames,&obj0,&arg2)) goto fail; | |
10423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxJoystickEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10424 | { | |
10425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10426 | result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2); | |
10427 | ||
10428 | wxPyEndAllowThreads(__tstate); | |
10429 | if (PyErr_Occurred()) SWIG_fail; | |
10430 | } | |
10431 | resultobj = PyInt_FromLong((long)result); | |
10432 | return resultobj; | |
10433 | fail: | |
10434 | return NULL; | |
10435 | } | |
10436 | ||
10437 | ||
10438 | static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) { | |
10439 | PyObject *obj; | |
10440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10441 | SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj); | |
10442 | Py_INCREF(obj); | |
10443 | return Py_BuildValue((char *)""); | |
10444 | } | |
10445 | static PyObject *_wrap_new_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10446 | PyObject *resultobj; | |
10447 | wxString *arg1 = 0 ; | |
423f194a | 10448 | bool arg2 = (bool) False ; |
d14a1e28 | 10449 | wxWave *result; |
423f194a | 10450 | bool temp1 = False ; |
d14a1e28 RD |
10451 | PyObject * obj0 = 0 ; |
10452 | PyObject * obj1 = 0 ; | |
10453 | char *kwnames[] = { | |
10454 | (char *) "fileName",(char *) "isResource", NULL | |
10455 | }; | |
10456 | ||
10457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Wave",kwnames,&obj0,&obj1)) goto fail; | |
10458 | { | |
10459 | arg1 = wxString_in_helper(obj0); | |
10460 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10461 | temp1 = True; |
d14a1e28 RD |
10462 | } |
10463 | if (obj1) { | |
10464 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10465 | if (PyErr_Occurred()) SWIG_fail; | |
10466 | } | |
10467 | { | |
10468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10469 | result = (wxWave *)new wxWave((wxString const &)*arg1,arg2); | |
10470 | ||
10471 | wxPyEndAllowThreads(__tstate); | |
10472 | if (PyErr_Occurred()) SWIG_fail; | |
10473 | } | |
10474 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10475 | { | |
10476 | if (temp1) | |
10477 | delete arg1; | |
10478 | } | |
10479 | return resultobj; | |
10480 | fail: | |
10481 | { | |
10482 | if (temp1) | |
10483 | delete arg1; | |
10484 | } | |
10485 | return NULL; | |
10486 | } | |
10487 | ||
10488 | ||
10489 | static PyObject *_wrap_new_WaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10490 | PyObject *resultobj; | |
10491 | wxString *arg1 = 0 ; | |
10492 | wxWave *result; | |
423f194a | 10493 | bool temp1 = False ; |
d14a1e28 RD |
10494 | PyObject * obj0 = 0 ; |
10495 | char *kwnames[] = { | |
10496 | (char *) "data", NULL | |
10497 | }; | |
10498 | ||
10499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WaveData",kwnames,&obj0)) goto fail; | |
10500 | { | |
10501 | arg1 = wxString_in_helper(obj0); | |
10502 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10503 | temp1 = True; |
d14a1e28 RD |
10504 | } |
10505 | { | |
10506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10507 | result = (wxWave *)new_wxWave((wxString const &)*arg1); | |
10508 | ||
10509 | wxPyEndAllowThreads(__tstate); | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | } | |
10512 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWave, 1); | |
10513 | { | |
10514 | if (temp1) | |
10515 | delete arg1; | |
10516 | } | |
10517 | return resultobj; | |
10518 | fail: | |
10519 | { | |
10520 | if (temp1) | |
10521 | delete arg1; | |
10522 | } | |
10523 | return NULL; | |
10524 | } | |
10525 | ||
10526 | ||
10527 | static PyObject *_wrap_delete_Wave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10528 | PyObject *resultobj; | |
10529 | wxWave *arg1 = (wxWave *) 0 ; | |
10530 | PyObject * obj0 = 0 ; | |
10531 | char *kwnames[] = { | |
10532 | (char *) "self", NULL | |
10533 | }; | |
10534 | ||
10535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Wave",kwnames,&obj0)) goto fail; | |
10536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10537 | { | |
10538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10539 | delete arg1; | |
10540 | ||
10541 | wxPyEndAllowThreads(__tstate); | |
10542 | if (PyErr_Occurred()) SWIG_fail; | |
10543 | } | |
10544 | Py_INCREF(Py_None); resultobj = Py_None; | |
10545 | return resultobj; | |
10546 | fail: | |
10547 | return NULL; | |
10548 | } | |
10549 | ||
10550 | ||
10551 | static PyObject *_wrap_Wave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10552 | PyObject *resultobj; | |
10553 | wxWave *arg1 = (wxWave *) 0 ; | |
10554 | bool result; | |
10555 | PyObject * obj0 = 0 ; | |
10556 | char *kwnames[] = { | |
10557 | (char *) "self", NULL | |
10558 | }; | |
10559 | ||
10560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Wave_IsOk",kwnames,&obj0)) goto fail; | |
10561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10562 | { | |
10563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10564 | result = (bool)((wxWave const *)arg1)->IsOk(); | |
10565 | ||
10566 | wxPyEndAllowThreads(__tstate); | |
10567 | if (PyErr_Occurred()) SWIG_fail; | |
10568 | } | |
10569 | resultobj = PyInt_FromLong((long)result); | |
10570 | return resultobj; | |
10571 | fail: | |
10572 | return NULL; | |
10573 | } | |
10574 | ||
10575 | ||
10576 | static PyObject *_wrap_Wave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10577 | PyObject *resultobj; | |
10578 | wxWave *arg1 = (wxWave *) 0 ; | |
423f194a RD |
10579 | bool arg2 = (bool) True ; |
10580 | bool arg3 = (bool) False ; | |
d14a1e28 RD |
10581 | bool result; |
10582 | PyObject * obj0 = 0 ; | |
10583 | PyObject * obj1 = 0 ; | |
10584 | PyObject * obj2 = 0 ; | |
10585 | char *kwnames[] = { | |
10586 | (char *) "self",(char *) "async",(char *) "looped", NULL | |
10587 | }; | |
10588 | ||
10589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Wave_Play",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWave,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10591 | if (obj1) { | |
10592 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10593 | if (PyErr_Occurred()) SWIG_fail; | |
10594 | } | |
10595 | if (obj2) { | |
10596 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
10597 | if (PyErr_Occurred()) SWIG_fail; | |
10598 | } | |
10599 | { | |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 10601 | result = (bool)(arg1)->Play(arg2,arg3); |
d14a1e28 RD |
10602 | |
10603 | wxPyEndAllowThreads(__tstate); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
10605 | } | |
10606 | resultobj = PyInt_FromLong((long)result); | |
10607 | return resultobj; | |
10608 | fail: | |
10609 | return NULL; | |
10610 | } | |
10611 | ||
10612 | ||
10613 | static PyObject * Wave_swigregister(PyObject *self, PyObject *args) { | |
10614 | PyObject *obj; | |
10615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10616 | SWIG_TypeClientData(SWIGTYPE_p_wxWave, obj); | |
10617 | Py_INCREF(obj); | |
10618 | return Py_BuildValue((char *)""); | |
10619 | } | |
10620 | static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10621 | PyObject *resultobj; | |
10622 | wxString *arg1 = 0 ; | |
10623 | wxString *arg2 = 0 ; | |
10624 | wxString *arg3 = 0 ; | |
10625 | wxString *arg4 = 0 ; | |
10626 | wxFileTypeInfo *result; | |
423f194a RD |
10627 | bool temp1 = False ; |
10628 | bool temp2 = False ; | |
10629 | bool temp3 = False ; | |
10630 | bool temp4 = False ; | |
d14a1e28 RD |
10631 | PyObject * obj0 = 0 ; |
10632 | PyObject * obj1 = 0 ; | |
10633 | PyObject * obj2 = 0 ; | |
10634 | PyObject * obj3 = 0 ; | |
10635 | char *kwnames[] = { | |
10636 | (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL | |
10637 | }; | |
10638 | ||
10639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10640 | { | |
10641 | arg1 = wxString_in_helper(obj0); | |
10642 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10643 | temp1 = True; |
d14a1e28 RD |
10644 | } |
10645 | { | |
10646 | arg2 = wxString_in_helper(obj1); | |
10647 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10648 | temp2 = True; |
d14a1e28 RD |
10649 | } |
10650 | { | |
10651 | arg3 = wxString_in_helper(obj2); | |
10652 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10653 | temp3 = True; |
d14a1e28 RD |
10654 | } |
10655 | { | |
10656 | arg4 = wxString_in_helper(obj3); | |
10657 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10658 | temp4 = True; |
d14a1e28 RD |
10659 | } |
10660 | { | |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10668 | { | |
10669 | if (temp1) | |
10670 | delete arg1; | |
10671 | } | |
10672 | { | |
10673 | if (temp2) | |
10674 | delete arg2; | |
10675 | } | |
10676 | { | |
10677 | if (temp3) | |
10678 | delete arg3; | |
10679 | } | |
10680 | { | |
10681 | if (temp4) | |
10682 | delete arg4; | |
10683 | } | |
10684 | return resultobj; | |
10685 | fail: | |
10686 | { | |
10687 | if (temp1) | |
10688 | delete arg1; | |
10689 | } | |
10690 | { | |
10691 | if (temp2) | |
10692 | delete arg2; | |
10693 | } | |
10694 | { | |
10695 | if (temp3) | |
10696 | delete arg3; | |
10697 | } | |
10698 | { | |
10699 | if (temp4) | |
10700 | delete arg4; | |
10701 | } | |
10702 | return NULL; | |
10703 | } | |
10704 | ||
10705 | ||
10706 | static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10707 | PyObject *resultobj; | |
10708 | wxArrayString *arg1 = 0 ; | |
10709 | wxFileTypeInfo *result; | |
10710 | PyObject * obj0 = 0 ; | |
10711 | char *kwnames[] = { | |
10712 | (char *) "sArray", NULL | |
10713 | }; | |
10714 | ||
10715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail; | |
10716 | { | |
10717 | if (! PySequence_Check(obj0)) { | |
10718 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
10719 | SWIG_fail; | |
10720 | } | |
10721 | arg1 = new wxArrayString; | |
10722 | int i, len=PySequence_Length(obj0); | |
10723 | for (i=0; i<len; i++) { | |
10724 | PyObject* item = PySequence_GetItem(obj0, i); | |
10725 | #if wxUSE_UNICODE | |
10726 | PyObject* str = PyObject_Unicode(item); | |
10727 | #else | |
10728 | PyObject* str = PyObject_Str(item); | |
10729 | #endif | |
10730 | arg1->Add(Py2wxString(str)); | |
10731 | Py_DECREF(item); | |
10732 | Py_DECREF(str); | |
10733 | } | |
10734 | } | |
10735 | { | |
10736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10737 | result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1); | |
10738 | ||
10739 | wxPyEndAllowThreads(__tstate); | |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
10741 | } | |
10742 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10743 | { | |
10744 | if (arg1) delete arg1; | |
10745 | } | |
10746 | return resultobj; | |
10747 | fail: | |
10748 | { | |
10749 | if (arg1) delete arg1; | |
10750 | } | |
10751 | return NULL; | |
10752 | } | |
10753 | ||
10754 | ||
10755 | static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10756 | PyObject *resultobj; | |
10757 | wxFileTypeInfo *result; | |
10758 | char *kwnames[] = { | |
10759 | NULL | |
10760 | }; | |
10761 | ||
10762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail; | |
10763 | { | |
10764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10765 | result = (wxFileTypeInfo *)new wxFileTypeInfo(); | |
10766 | ||
10767 | wxPyEndAllowThreads(__tstate); | |
10768 | if (PyErr_Occurred()) SWIG_fail; | |
10769 | } | |
10770 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileTypeInfo, 1); | |
10771 | return resultobj; | |
10772 | fail: | |
10773 | return NULL; | |
10774 | } | |
10775 | ||
10776 | ||
10777 | static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10778 | PyObject *resultobj; | |
10779 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10780 | bool result; | |
10781 | PyObject * obj0 = 0 ; | |
10782 | char *kwnames[] = { | |
10783 | (char *) "self", NULL | |
10784 | }; | |
10785 | ||
10786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail; | |
10787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10788 | { | |
10789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10790 | result = (bool)((wxFileTypeInfo const *)arg1)->IsValid(); | |
10791 | ||
10792 | wxPyEndAllowThreads(__tstate); | |
10793 | if (PyErr_Occurred()) SWIG_fail; | |
10794 | } | |
10795 | resultobj = PyInt_FromLong((long)result); | |
10796 | return resultobj; | |
10797 | fail: | |
10798 | return NULL; | |
10799 | } | |
10800 | ||
10801 | ||
10802 | static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10803 | PyObject *resultobj; | |
10804 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10805 | wxString *arg2 = 0 ; | |
10806 | int arg3 = (int) 0 ; | |
423f194a | 10807 | bool temp2 = False ; |
d14a1e28 RD |
10808 | PyObject * obj0 = 0 ; |
10809 | PyObject * obj1 = 0 ; | |
10810 | char *kwnames[] = { | |
10811 | (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL | |
10812 | }; | |
10813 | ||
10814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
10815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10816 | { | |
10817 | arg2 = wxString_in_helper(obj1); | |
10818 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10819 | temp2 = True; |
d14a1e28 RD |
10820 | } |
10821 | { | |
10822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10823 | (arg1)->SetIcon((wxString const &)*arg2,arg3); | |
10824 | ||
10825 | wxPyEndAllowThreads(__tstate); | |
10826 | if (PyErr_Occurred()) SWIG_fail; | |
10827 | } | |
10828 | Py_INCREF(Py_None); resultobj = Py_None; | |
10829 | { | |
10830 | if (temp2) | |
10831 | delete arg2; | |
10832 | } | |
10833 | return resultobj; | |
10834 | fail: | |
10835 | { | |
10836 | if (temp2) | |
10837 | delete arg2; | |
10838 | } | |
10839 | return NULL; | |
10840 | } | |
10841 | ||
10842 | ||
10843 | static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10844 | PyObject *resultobj; | |
10845 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10846 | wxString *arg2 = 0 ; | |
423f194a | 10847 | bool temp2 = False ; |
d14a1e28 RD |
10848 | PyObject * obj0 = 0 ; |
10849 | PyObject * obj1 = 0 ; | |
10850 | char *kwnames[] = { | |
10851 | (char *) "self",(char *) "shortDesc", NULL | |
10852 | }; | |
10853 | ||
10854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail; | |
10855 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10856 | { | |
10857 | arg2 = wxString_in_helper(obj1); | |
10858 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10859 | temp2 = True; |
d14a1e28 RD |
10860 | } |
10861 | { | |
10862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10863 | (arg1)->SetShortDesc((wxString const &)*arg2); | |
10864 | ||
10865 | wxPyEndAllowThreads(__tstate); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
10868 | Py_INCREF(Py_None); resultobj = Py_None; | |
10869 | { | |
10870 | if (temp2) | |
10871 | delete arg2; | |
10872 | } | |
10873 | return resultobj; | |
10874 | fail: | |
10875 | { | |
10876 | if (temp2) | |
10877 | delete arg2; | |
10878 | } | |
10879 | return NULL; | |
10880 | } | |
10881 | ||
10882 | ||
10883 | static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10884 | PyObject *resultobj; | |
10885 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10886 | wxString *result; | |
10887 | PyObject * obj0 = 0 ; | |
10888 | char *kwnames[] = { | |
10889 | (char *) "self", NULL | |
10890 | }; | |
10891 | ||
10892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail; | |
10893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | { | |
10897 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType(); | |
10898 | result = (wxString *) &_result_ref; | |
10899 | } | |
10900 | ||
10901 | wxPyEndAllowThreads(__tstate); | |
10902 | if (PyErr_Occurred()) SWIG_fail; | |
10903 | } | |
0f774bef RD |
10904 | { |
10905 | #if wxUSE_UNICODE | |
10906 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10907 | #else | |
10908 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10909 | #endif | |
10910 | } | |
d14a1e28 RD |
10911 | return resultobj; |
10912 | fail: | |
10913 | return NULL; | |
10914 | } | |
10915 | ||
10916 | ||
10917 | static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10918 | PyObject *resultobj; | |
10919 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10920 | wxString *result; | |
10921 | PyObject * obj0 = 0 ; | |
10922 | char *kwnames[] = { | |
10923 | (char *) "self", NULL | |
10924 | }; | |
10925 | ||
10926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail; | |
10927 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10928 | { | |
10929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10930 | { | |
10931 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand(); | |
10932 | result = (wxString *) &_result_ref; | |
10933 | } | |
10934 | ||
10935 | wxPyEndAllowThreads(__tstate); | |
10936 | if (PyErr_Occurred()) SWIG_fail; | |
10937 | } | |
0f774bef RD |
10938 | { |
10939 | #if wxUSE_UNICODE | |
10940 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10941 | #else | |
10942 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10943 | #endif | |
10944 | } | |
d14a1e28 RD |
10945 | return resultobj; |
10946 | fail: | |
10947 | return NULL; | |
10948 | } | |
10949 | ||
10950 | ||
10951 | static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10952 | PyObject *resultobj; | |
10953 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10954 | wxString *result; | |
10955 | PyObject * obj0 = 0 ; | |
10956 | char *kwnames[] = { | |
10957 | (char *) "self", NULL | |
10958 | }; | |
10959 | ||
10960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail; | |
10961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10962 | { | |
10963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10964 | { | |
10965 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand(); | |
10966 | result = (wxString *) &_result_ref; | |
10967 | } | |
10968 | ||
10969 | wxPyEndAllowThreads(__tstate); | |
10970 | if (PyErr_Occurred()) SWIG_fail; | |
10971 | } | |
0f774bef RD |
10972 | { |
10973 | #if wxUSE_UNICODE | |
10974 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10975 | #else | |
10976 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10977 | #endif | |
10978 | } | |
d14a1e28 RD |
10979 | return resultobj; |
10980 | fail: | |
10981 | return NULL; | |
10982 | } | |
10983 | ||
10984 | ||
10985 | static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10986 | PyObject *resultobj; | |
10987 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
10988 | wxString *result; | |
10989 | PyObject * obj0 = 0 ; | |
10990 | char *kwnames[] = { | |
10991 | (char *) "self", NULL | |
10992 | }; | |
10993 | ||
10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail; | |
10995 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10996 | { | |
10997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10998 | { | |
10999 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc(); | |
11000 | result = (wxString *) &_result_ref; | |
11001 | } | |
11002 | ||
11003 | wxPyEndAllowThreads(__tstate); | |
11004 | if (PyErr_Occurred()) SWIG_fail; | |
11005 | } | |
0f774bef RD |
11006 | { |
11007 | #if wxUSE_UNICODE | |
11008 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11009 | #else | |
11010 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11011 | #endif | |
11012 | } | |
d14a1e28 RD |
11013 | return resultobj; |
11014 | fail: | |
11015 | return NULL; | |
11016 | } | |
11017 | ||
11018 | ||
11019 | static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11020 | PyObject *resultobj; | |
11021 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11022 | wxString *result; | |
11023 | PyObject * obj0 = 0 ; | |
11024 | char *kwnames[] = { | |
11025 | (char *) "self", NULL | |
11026 | }; | |
11027 | ||
11028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail; | |
11029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | { | |
11033 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription(); | |
11034 | result = (wxString *) &_result_ref; | |
11035 | } | |
11036 | ||
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
0f774bef RD |
11040 | { |
11041 | #if wxUSE_UNICODE | |
11042 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11043 | #else | |
11044 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11045 | #endif | |
11046 | } | |
d14a1e28 RD |
11047 | return resultobj; |
11048 | fail: | |
11049 | return NULL; | |
11050 | } | |
11051 | ||
11052 | ||
11053 | static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11054 | PyObject *resultobj; | |
11055 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11056 | wxArrayString *result; | |
11057 | PyObject * obj0 = 0 ; | |
11058 | char *kwnames[] = { | |
11059 | (char *) "self", NULL | |
11060 | }; | |
11061 | ||
11062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail; | |
11063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | { | |
11067 | wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions(); | |
11068 | result = (wxArrayString *) &_result_ref; | |
11069 | } | |
11070 | ||
11071 | wxPyEndAllowThreads(__tstate); | |
11072 | if (PyErr_Occurred()) SWIG_fail; | |
11073 | } | |
11074 | { | |
11075 | resultobj = wxArrayString2PyList_helper(*result); | |
11076 | } | |
11077 | return resultobj; | |
11078 | fail: | |
11079 | return NULL; | |
11080 | } | |
11081 | ||
11082 | ||
11083 | static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11084 | PyObject *resultobj; | |
11085 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11086 | int result; | |
11087 | PyObject * obj0 = 0 ; | |
11088 | char *kwnames[] = { | |
11089 | (char *) "self", NULL | |
11090 | }; | |
11091 | ||
11092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail; | |
11093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11094 | { | |
11095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11096 | result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount(); | |
11097 | ||
11098 | wxPyEndAllowThreads(__tstate); | |
11099 | if (PyErr_Occurred()) SWIG_fail; | |
11100 | } | |
11101 | resultobj = PyInt_FromLong((long)result); | |
11102 | return resultobj; | |
11103 | fail: | |
11104 | return NULL; | |
11105 | } | |
11106 | ||
11107 | ||
11108 | static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11109 | PyObject *resultobj; | |
11110 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11111 | wxString *result; | |
11112 | PyObject * obj0 = 0 ; | |
11113 | char *kwnames[] = { | |
11114 | (char *) "self", NULL | |
11115 | }; | |
11116 | ||
11117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail; | |
11118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11119 | { | |
11120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11121 | { | |
11122 | wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile(); | |
11123 | result = (wxString *) &_result_ref; | |
11124 | } | |
11125 | ||
11126 | wxPyEndAllowThreads(__tstate); | |
11127 | if (PyErr_Occurred()) SWIG_fail; | |
11128 | } | |
0f774bef RD |
11129 | { |
11130 | #if wxUSE_UNICODE | |
11131 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
11132 | #else | |
11133 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
11134 | #endif | |
11135 | } | |
d14a1e28 RD |
11136 | return resultobj; |
11137 | fail: | |
11138 | return NULL; | |
11139 | } | |
11140 | ||
11141 | ||
11142 | static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11143 | PyObject *resultobj; | |
11144 | wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ; | |
11145 | int result; | |
11146 | PyObject * obj0 = 0 ; | |
11147 | char *kwnames[] = { | |
11148 | (char *) "self", NULL | |
11149 | }; | |
11150 | ||
11151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail; | |
11152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11153 | { | |
11154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11155 | result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex(); | |
11156 | ||
11157 | wxPyEndAllowThreads(__tstate); | |
11158 | if (PyErr_Occurred()) SWIG_fail; | |
11159 | } | |
11160 | resultobj = PyInt_FromLong((long)result); | |
11161 | return resultobj; | |
11162 | fail: | |
11163 | return NULL; | |
11164 | } | |
11165 | ||
11166 | ||
11167 | static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) { | |
11168 | PyObject *obj; | |
11169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11170 | SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj); | |
11171 | Py_INCREF(obj); | |
11172 | return Py_BuildValue((char *)""); | |
11173 | } | |
11174 | static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11175 | PyObject *resultobj; | |
11176 | wxFileTypeInfo *arg1 = 0 ; | |
11177 | wxFileType *result; | |
11178 | PyObject * obj0 = 0 ; | |
11179 | char *kwnames[] = { | |
11180 | (char *) "ftInfo", NULL | |
11181 | }; | |
11182 | ||
11183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail; | |
11184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11185 | if (arg1 == NULL) { | |
11186 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11187 | } | |
11188 | { | |
11189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11190 | result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1); | |
11191 | ||
11192 | wxPyEndAllowThreads(__tstate); | |
11193 | if (PyErr_Occurred()) SWIG_fail; | |
11194 | } | |
11195 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11196 | return resultobj; | |
11197 | fail: | |
11198 | return NULL; | |
11199 | } | |
11200 | ||
11201 | ||
11202 | static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11203 | PyObject *resultobj; | |
11204 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11205 | PyObject * obj0 = 0 ; | |
11206 | char *kwnames[] = { | |
11207 | (char *) "self", NULL | |
11208 | }; | |
11209 | ||
11210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail; | |
11211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11212 | { | |
11213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11214 | delete arg1; | |
11215 | ||
11216 | wxPyEndAllowThreads(__tstate); | |
11217 | if (PyErr_Occurred()) SWIG_fail; | |
11218 | } | |
11219 | Py_INCREF(Py_None); resultobj = Py_None; | |
11220 | return resultobj; | |
11221 | fail: | |
11222 | return NULL; | |
11223 | } | |
11224 | ||
11225 | ||
11226 | static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11227 | PyObject *resultobj; | |
11228 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11229 | PyObject *result; | |
11230 | PyObject * obj0 = 0 ; | |
11231 | char *kwnames[] = { | |
11232 | (char *) "self", NULL | |
11233 | }; | |
11234 | ||
11235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail; | |
11236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11237 | { | |
11238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11239 | result = (PyObject *)wxFileType_GetMimeType(arg1); | |
11240 | ||
11241 | wxPyEndAllowThreads(__tstate); | |
11242 | if (PyErr_Occurred()) SWIG_fail; | |
11243 | } | |
11244 | resultobj = result; | |
11245 | return resultobj; | |
11246 | fail: | |
11247 | return NULL; | |
11248 | } | |
11249 | ||
11250 | ||
11251 | static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11252 | PyObject *resultobj; | |
11253 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11254 | PyObject *result; | |
11255 | PyObject * obj0 = 0 ; | |
11256 | char *kwnames[] = { | |
11257 | (char *) "self", NULL | |
11258 | }; | |
11259 | ||
11260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail; | |
11261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11262 | { | |
11263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11264 | result = (PyObject *)wxFileType_GetMimeTypes(arg1); | |
11265 | ||
11266 | wxPyEndAllowThreads(__tstate); | |
11267 | if (PyErr_Occurred()) SWIG_fail; | |
11268 | } | |
11269 | resultobj = result; | |
11270 | return resultobj; | |
11271 | fail: | |
11272 | return NULL; | |
11273 | } | |
11274 | ||
11275 | ||
11276 | static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11277 | PyObject *resultobj; | |
11278 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11279 | PyObject *result; | |
11280 | PyObject * obj0 = 0 ; | |
11281 | char *kwnames[] = { | |
11282 | (char *) "self", NULL | |
11283 | }; | |
11284 | ||
11285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail; | |
11286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11287 | { | |
11288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11289 | result = (PyObject *)wxFileType_GetExtensions(arg1); | |
11290 | ||
11291 | wxPyEndAllowThreads(__tstate); | |
11292 | if (PyErr_Occurred()) SWIG_fail; | |
11293 | } | |
11294 | resultobj = result; | |
11295 | return resultobj; | |
11296 | fail: | |
11297 | return NULL; | |
11298 | } | |
11299 | ||
11300 | ||
11301 | static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11302 | PyObject *resultobj; | |
11303 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11304 | wxIcon *result; | |
11305 | PyObject * obj0 = 0 ; | |
11306 | char *kwnames[] = { | |
11307 | (char *) "self", NULL | |
11308 | }; | |
11309 | ||
11310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail; | |
11311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11312 | { | |
11313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11314 | result = (wxIcon *)wxFileType_GetIcon(arg1); | |
11315 | ||
11316 | wxPyEndAllowThreads(__tstate); | |
11317 | if (PyErr_Occurred()) SWIG_fail; | |
11318 | } | |
11319 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1); | |
11320 | return resultobj; | |
11321 | fail: | |
11322 | return NULL; | |
11323 | } | |
11324 | ||
11325 | ||
11326 | static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11327 | PyObject *resultobj; | |
11328 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11329 | PyObject *result; | |
11330 | PyObject * obj0 = 0 ; | |
11331 | char *kwnames[] = { | |
11332 | (char *) "self", NULL | |
11333 | }; | |
11334 | ||
11335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail; | |
11336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11337 | { | |
11338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11339 | result = (PyObject *)wxFileType_GetIconInfo(arg1); | |
11340 | ||
11341 | wxPyEndAllowThreads(__tstate); | |
11342 | if (PyErr_Occurred()) SWIG_fail; | |
11343 | } | |
11344 | resultobj = result; | |
11345 | return resultobj; | |
11346 | fail: | |
11347 | return NULL; | |
11348 | } | |
11349 | ||
11350 | ||
11351 | static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11352 | PyObject *resultobj; | |
11353 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11354 | PyObject *result; | |
11355 | PyObject * obj0 = 0 ; | |
11356 | char *kwnames[] = { | |
11357 | (char *) "self", NULL | |
11358 | }; | |
11359 | ||
11360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail; | |
11361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11362 | { | |
11363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11364 | result = (PyObject *)wxFileType_GetDescription(arg1); | |
11365 | ||
11366 | wxPyEndAllowThreads(__tstate); | |
11367 | if (PyErr_Occurred()) SWIG_fail; | |
11368 | } | |
11369 | resultobj = result; | |
11370 | return resultobj; | |
11371 | fail: | |
11372 | return NULL; | |
11373 | } | |
11374 | ||
11375 | ||
11376 | static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11377 | PyObject *resultobj; | |
11378 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11379 | wxString *arg2 = 0 ; | |
11380 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11381 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11382 | PyObject *result; | |
423f194a RD |
11383 | bool temp2 = False ; |
11384 | bool temp3 = False ; | |
d14a1e28 RD |
11385 | PyObject * obj0 = 0 ; |
11386 | PyObject * obj1 = 0 ; | |
11387 | PyObject * obj2 = 0 ; | |
11388 | char *kwnames[] = { | |
11389 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11390 | }; | |
11391 | ||
11392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11393 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11394 | { | |
11395 | arg2 = wxString_in_helper(obj1); | |
11396 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11397 | temp2 = True; |
d14a1e28 RD |
11398 | } |
11399 | if (obj2) { | |
11400 | { | |
11401 | arg3 = wxString_in_helper(obj2); | |
11402 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11403 | temp3 = True; |
d14a1e28 RD |
11404 | } |
11405 | } | |
11406 | { | |
11407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11408 | result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11409 | ||
11410 | wxPyEndAllowThreads(__tstate); | |
11411 | if (PyErr_Occurred()) SWIG_fail; | |
11412 | } | |
11413 | resultobj = result; | |
11414 | { | |
11415 | if (temp2) | |
11416 | delete arg2; | |
11417 | } | |
11418 | { | |
11419 | if (temp3) | |
11420 | delete arg3; | |
11421 | } | |
11422 | return resultobj; | |
11423 | fail: | |
11424 | { | |
11425 | if (temp2) | |
11426 | delete arg2; | |
11427 | } | |
11428 | { | |
11429 | if (temp3) | |
11430 | delete arg3; | |
11431 | } | |
11432 | return NULL; | |
11433 | } | |
11434 | ||
11435 | ||
11436 | static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11437 | PyObject *resultobj; | |
11438 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11439 | wxString *arg2 = 0 ; | |
11440 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11441 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11442 | PyObject *result; | |
423f194a RD |
11443 | bool temp2 = False ; |
11444 | bool temp3 = False ; | |
d14a1e28 RD |
11445 | PyObject * obj0 = 0 ; |
11446 | PyObject * obj1 = 0 ; | |
11447 | PyObject * obj2 = 0 ; | |
11448 | char *kwnames[] = { | |
11449 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11450 | }; | |
11451 | ||
11452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11454 | { | |
11455 | arg2 = wxString_in_helper(obj1); | |
11456 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11457 | temp2 = True; |
d14a1e28 RD |
11458 | } |
11459 | if (obj2) { | |
11460 | { | |
11461 | arg3 = wxString_in_helper(obj2); | |
11462 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11463 | temp3 = True; |
d14a1e28 RD |
11464 | } |
11465 | } | |
11466 | { | |
11467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11468 | result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11469 | ||
11470 | wxPyEndAllowThreads(__tstate); | |
11471 | if (PyErr_Occurred()) SWIG_fail; | |
11472 | } | |
11473 | resultobj = result; | |
11474 | { | |
11475 | if (temp2) | |
11476 | delete arg2; | |
11477 | } | |
11478 | { | |
11479 | if (temp3) | |
11480 | delete arg3; | |
11481 | } | |
11482 | return resultobj; | |
11483 | fail: | |
11484 | { | |
11485 | if (temp2) | |
11486 | delete arg2; | |
11487 | } | |
11488 | { | |
11489 | if (temp3) | |
11490 | delete arg3; | |
11491 | } | |
11492 | return NULL; | |
11493 | } | |
11494 | ||
11495 | ||
11496 | static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11497 | PyObject *resultobj; | |
11498 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11499 | wxString *arg2 = 0 ; | |
11500 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11501 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11502 | PyObject *result; | |
423f194a RD |
11503 | bool temp2 = False ; |
11504 | bool temp3 = False ; | |
d14a1e28 RD |
11505 | PyObject * obj0 = 0 ; |
11506 | PyObject * obj1 = 0 ; | |
11507 | PyObject * obj2 = 0 ; | |
11508 | char *kwnames[] = { | |
11509 | (char *) "self",(char *) "filename",(char *) "mimetype", NULL | |
11510 | }; | |
11511 | ||
11512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11514 | { | |
11515 | arg2 = wxString_in_helper(obj1); | |
11516 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11517 | temp2 = True; |
d14a1e28 RD |
11518 | } |
11519 | if (obj2) { | |
11520 | { | |
11521 | arg3 = wxString_in_helper(obj2); | |
11522 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11523 | temp3 = True; |
d14a1e28 RD |
11524 | } |
11525 | } | |
11526 | { | |
11527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11528 | result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11529 | ||
11530 | wxPyEndAllowThreads(__tstate); | |
11531 | if (PyErr_Occurred()) SWIG_fail; | |
11532 | } | |
11533 | resultobj = result; | |
11534 | { | |
11535 | if (temp2) | |
11536 | delete arg2; | |
11537 | } | |
11538 | { | |
11539 | if (temp3) | |
11540 | delete arg3; | |
11541 | } | |
11542 | return resultobj; | |
11543 | fail: | |
11544 | { | |
11545 | if (temp2) | |
11546 | delete arg2; | |
11547 | } | |
11548 | { | |
11549 | if (temp3) | |
11550 | delete arg3; | |
11551 | } | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
11556 | static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11557 | PyObject *resultobj; | |
11558 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11559 | wxString *arg2 = 0 ; | |
11560 | wxString *arg3 = 0 ; | |
423f194a | 11561 | bool arg4 = (bool) True ; |
d14a1e28 | 11562 | bool result; |
423f194a RD |
11563 | bool temp2 = False ; |
11564 | bool temp3 = False ; | |
d14a1e28 RD |
11565 | PyObject * obj0 = 0 ; |
11566 | PyObject * obj1 = 0 ; | |
11567 | PyObject * obj2 = 0 ; | |
11568 | PyObject * obj3 = 0 ; | |
11569 | char *kwnames[] = { | |
11570 | (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL | |
11571 | }; | |
11572 | ||
11573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11575 | { | |
11576 | arg2 = wxString_in_helper(obj1); | |
11577 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11578 | temp2 = True; |
d14a1e28 RD |
11579 | } |
11580 | { | |
11581 | arg3 = wxString_in_helper(obj2); | |
11582 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11583 | temp3 = True; |
d14a1e28 RD |
11584 | } |
11585 | if (obj3) { | |
11586 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
11588 | } | |
11589 | { | |
11590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11591 | result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
11592 | ||
11593 | wxPyEndAllowThreads(__tstate); | |
11594 | if (PyErr_Occurred()) SWIG_fail; | |
11595 | } | |
11596 | resultobj = PyInt_FromLong((long)result); | |
11597 | { | |
11598 | if (temp2) | |
11599 | delete arg2; | |
11600 | } | |
11601 | { | |
11602 | if (temp3) | |
11603 | delete arg3; | |
11604 | } | |
11605 | return resultobj; | |
11606 | fail: | |
11607 | { | |
11608 | if (temp2) | |
11609 | delete arg2; | |
11610 | } | |
11611 | { | |
11612 | if (temp3) | |
11613 | delete arg3; | |
11614 | } | |
11615 | return NULL; | |
11616 | } | |
11617 | ||
11618 | ||
11619 | static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11620 | PyObject *resultobj; | |
11621 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11622 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
11623 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11624 | int arg3 = (int) 0 ; | |
11625 | bool result; | |
423f194a | 11626 | bool temp2 = False ; |
d14a1e28 RD |
11627 | PyObject * obj0 = 0 ; |
11628 | PyObject * obj1 = 0 ; | |
11629 | char *kwnames[] = { | |
11630 | (char *) "self",(char *) "cmd",(char *) "index", NULL | |
11631 | }; | |
11632 | ||
11633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|Oi:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11635 | if (obj1) { | |
11636 | { | |
11637 | arg2 = wxString_in_helper(obj1); | |
11638 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11639 | temp2 = True; |
d14a1e28 RD |
11640 | } |
11641 | } | |
11642 | { | |
11643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11644 | result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3); | |
11645 | ||
11646 | wxPyEndAllowThreads(__tstate); | |
11647 | if (PyErr_Occurred()) SWIG_fail; | |
11648 | } | |
11649 | resultobj = PyInt_FromLong((long)result); | |
11650 | { | |
11651 | if (temp2) | |
11652 | delete arg2; | |
11653 | } | |
11654 | return resultobj; | |
11655 | fail: | |
11656 | { | |
11657 | if (temp2) | |
11658 | delete arg2; | |
11659 | } | |
11660 | return NULL; | |
11661 | } | |
11662 | ||
11663 | ||
11664 | static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11665 | PyObject *resultobj; | |
11666 | wxFileType *arg1 = (wxFileType *) 0 ; | |
11667 | bool result; | |
11668 | PyObject * obj0 = 0 ; | |
11669 | char *kwnames[] = { | |
11670 | (char *) "self", NULL | |
11671 | }; | |
11672 | ||
11673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail; | |
11674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11675 | { | |
11676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11677 | result = (bool)(arg1)->Unassociate(); | |
11678 | ||
11679 | wxPyEndAllowThreads(__tstate); | |
11680 | if (PyErr_Occurred()) SWIG_fail; | |
11681 | } | |
11682 | resultobj = PyInt_FromLong((long)result); | |
11683 | return resultobj; | |
11684 | fail: | |
11685 | return NULL; | |
11686 | } | |
11687 | ||
11688 | ||
11689 | static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11690 | PyObject *resultobj; | |
11691 | wxString *arg1 = 0 ; | |
11692 | wxString *arg2 = 0 ; | |
11693 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11694 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11695 | wxString result; | |
423f194a RD |
11696 | bool temp1 = False ; |
11697 | bool temp2 = False ; | |
11698 | bool temp3 = False ; | |
d14a1e28 RD |
11699 | PyObject * obj0 = 0 ; |
11700 | PyObject * obj1 = 0 ; | |
11701 | PyObject * obj2 = 0 ; | |
11702 | char *kwnames[] = { | |
11703 | (char *) "command",(char *) "filename",(char *) "mimetype", NULL | |
11704 | }; | |
11705 | ||
11706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11707 | { | |
11708 | arg1 = wxString_in_helper(obj0); | |
11709 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11710 | temp1 = True; |
d14a1e28 RD |
11711 | } |
11712 | { | |
11713 | arg2 = wxString_in_helper(obj1); | |
11714 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11715 | temp2 = True; |
d14a1e28 RD |
11716 | } |
11717 | if (obj2) { | |
11718 | { | |
11719 | arg3 = wxString_in_helper(obj2); | |
11720 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11721 | temp3 = True; |
d14a1e28 RD |
11722 | } |
11723 | } | |
11724 | { | |
11725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11726 | result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3); | |
11727 | ||
11728 | wxPyEndAllowThreads(__tstate); | |
11729 | if (PyErr_Occurred()) SWIG_fail; | |
11730 | } | |
11731 | { | |
11732 | #if wxUSE_UNICODE | |
11733 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11734 | #else | |
11735 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11736 | #endif | |
11737 | } | |
11738 | { | |
11739 | if (temp1) | |
11740 | delete arg1; | |
11741 | } | |
11742 | { | |
11743 | if (temp2) | |
11744 | delete arg2; | |
11745 | } | |
11746 | { | |
11747 | if (temp3) | |
11748 | delete arg3; | |
11749 | } | |
11750 | return resultobj; | |
11751 | fail: | |
11752 | { | |
11753 | if (temp1) | |
11754 | delete arg1; | |
11755 | } | |
11756 | { | |
11757 | if (temp2) | |
11758 | delete arg2; | |
11759 | } | |
11760 | { | |
11761 | if (temp3) | |
11762 | delete arg3; | |
11763 | } | |
11764 | return NULL; | |
11765 | } | |
11766 | ||
11767 | ||
11768 | static PyObject * FileType_swigregister(PyObject *self, PyObject *args) { | |
11769 | PyObject *obj; | |
11770 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11771 | SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj); | |
11772 | Py_INCREF(obj); | |
11773 | return Py_BuildValue((char *)""); | |
11774 | } | |
11775 | static int _wrap_TheMimeTypesManager_set(PyObject *_val) { | |
11776 | PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only."); | |
11777 | return 1; | |
11778 | } | |
11779 | ||
11780 | ||
11781 | static PyObject *_wrap_TheMimeTypesManager_get() { | |
11782 | PyObject *pyobj; | |
11783 | ||
11784 | pyobj = SWIG_NewPointerObj((void *) wxTheMimeTypesManager, SWIGTYPE_p_wxMimeTypesManager, 0); | |
11785 | return pyobj; | |
11786 | } | |
11787 | ||
11788 | ||
11789 | static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11790 | PyObject *resultobj; | |
11791 | wxString *arg1 = 0 ; | |
11792 | wxString *arg2 = 0 ; | |
11793 | bool result; | |
423f194a RD |
11794 | bool temp1 = False ; |
11795 | bool temp2 = False ; | |
d14a1e28 RD |
11796 | PyObject * obj0 = 0 ; |
11797 | PyObject * obj1 = 0 ; | |
11798 | char *kwnames[] = { | |
11799 | (char *) "mimeType",(char *) "wildcard", NULL | |
11800 | }; | |
11801 | ||
11802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail; | |
11803 | { | |
11804 | arg1 = wxString_in_helper(obj0); | |
11805 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 11806 | temp1 = True; |
d14a1e28 RD |
11807 | } |
11808 | { | |
11809 | arg2 = wxString_in_helper(obj1); | |
11810 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11811 | temp2 = True; |
d14a1e28 RD |
11812 | } |
11813 | { | |
11814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11815 | result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2); | |
11816 | ||
11817 | wxPyEndAllowThreads(__tstate); | |
11818 | if (PyErr_Occurred()) SWIG_fail; | |
11819 | } | |
11820 | resultobj = PyInt_FromLong((long)result); | |
11821 | { | |
11822 | if (temp1) | |
11823 | delete arg1; | |
11824 | } | |
11825 | { | |
11826 | if (temp2) | |
11827 | delete arg2; | |
11828 | } | |
11829 | return resultobj; | |
11830 | fail: | |
11831 | { | |
11832 | if (temp1) | |
11833 | delete arg1; | |
11834 | } | |
11835 | { | |
11836 | if (temp2) | |
11837 | delete arg2; | |
11838 | } | |
11839 | return NULL; | |
11840 | } | |
11841 | ||
11842 | ||
11843 | static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11844 | PyObject *resultobj; | |
11845 | wxMimeTypesManager *result; | |
11846 | char *kwnames[] = { | |
11847 | NULL | |
11848 | }; | |
11849 | ||
11850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail; | |
11851 | { | |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | result = (wxMimeTypesManager *)new wxMimeTypesManager(); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMimeTypesManager, 1); | |
11859 | return resultobj; | |
11860 | fail: | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
11865 | static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11866 | PyObject *resultobj; | |
11867 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11868 | int arg2 = (int) wxMAILCAP_ALL ; | |
11869 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11870 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 11871 | bool temp3 = False ; |
d14a1e28 RD |
11872 | PyObject * obj0 = 0 ; |
11873 | PyObject * obj2 = 0 ; | |
11874 | char *kwnames[] = { | |
11875 | (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL | |
11876 | }; | |
11877 | ||
11878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:MimeTypesManager_Initialize",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
11879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11880 | if (obj2) { | |
11881 | { | |
11882 | arg3 = wxString_in_helper(obj2); | |
11883 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11884 | temp3 = True; |
d14a1e28 RD |
11885 | } |
11886 | } | |
11887 | { | |
11888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11889 | (arg1)->Initialize(arg2,(wxString const &)*arg3); | |
11890 | ||
11891 | wxPyEndAllowThreads(__tstate); | |
11892 | if (PyErr_Occurred()) SWIG_fail; | |
11893 | } | |
11894 | Py_INCREF(Py_None); resultobj = Py_None; | |
11895 | { | |
11896 | if (temp3) | |
11897 | delete arg3; | |
11898 | } | |
11899 | return resultobj; | |
11900 | fail: | |
11901 | { | |
11902 | if (temp3) | |
11903 | delete arg3; | |
11904 | } | |
11905 | return NULL; | |
11906 | } | |
11907 | ||
11908 | ||
11909 | static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11910 | PyObject *resultobj; | |
11911 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11912 | PyObject * obj0 = 0 ; | |
11913 | char *kwnames[] = { | |
11914 | (char *) "self", NULL | |
11915 | }; | |
11916 | ||
11917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail; | |
11918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11919 | { | |
11920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11921 | (arg1)->ClearData(); | |
11922 | ||
11923 | wxPyEndAllowThreads(__tstate); | |
11924 | if (PyErr_Occurred()) SWIG_fail; | |
11925 | } | |
11926 | Py_INCREF(Py_None); resultobj = Py_None; | |
11927 | return resultobj; | |
11928 | fail: | |
11929 | return NULL; | |
11930 | } | |
11931 | ||
11932 | ||
11933 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11934 | PyObject *resultobj; | |
11935 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11936 | wxString *arg2 = 0 ; | |
11937 | wxFileType *result; | |
423f194a | 11938 | bool temp2 = False ; |
d14a1e28 RD |
11939 | PyObject * obj0 = 0 ; |
11940 | PyObject * obj1 = 0 ; | |
11941 | char *kwnames[] = { | |
11942 | (char *) "self",(char *) "ext", NULL | |
11943 | }; | |
11944 | ||
11945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail; | |
11946 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11947 | { | |
11948 | arg2 = wxString_in_helper(obj1); | |
11949 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11950 | temp2 = True; |
d14a1e28 RD |
11951 | } |
11952 | { | |
11953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11954 | result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2); | |
11955 | ||
11956 | wxPyEndAllowThreads(__tstate); | |
11957 | if (PyErr_Occurred()) SWIG_fail; | |
11958 | } | |
11959 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
11960 | { | |
11961 | if (temp2) | |
11962 | delete arg2; | |
11963 | } | |
11964 | return resultobj; | |
11965 | fail: | |
11966 | { | |
11967 | if (temp2) | |
11968 | delete arg2; | |
11969 | } | |
11970 | return NULL; | |
11971 | } | |
11972 | ||
11973 | ||
11974 | static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11975 | PyObject *resultobj; | |
11976 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
11977 | wxString *arg2 = 0 ; | |
11978 | wxFileType *result; | |
423f194a | 11979 | bool temp2 = False ; |
d14a1e28 RD |
11980 | PyObject * obj0 = 0 ; |
11981 | PyObject * obj1 = 0 ; | |
11982 | char *kwnames[] = { | |
11983 | (char *) "self",(char *) "mimeType", NULL | |
11984 | }; | |
11985 | ||
11986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail; | |
11987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11988 | { | |
11989 | arg2 = wxString_in_helper(obj1); | |
11990 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11991 | temp2 = True; |
d14a1e28 RD |
11992 | } |
11993 | { | |
11994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11995 | result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2); | |
11996 | ||
11997 | wxPyEndAllowThreads(__tstate); | |
11998 | if (PyErr_Occurred()) SWIG_fail; | |
11999 | } | |
12000 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12001 | { | |
12002 | if (temp2) | |
12003 | delete arg2; | |
12004 | } | |
12005 | return resultobj; | |
12006 | fail: | |
12007 | { | |
12008 | if (temp2) | |
12009 | delete arg2; | |
12010 | } | |
12011 | return NULL; | |
12012 | } | |
12013 | ||
12014 | ||
12015 | static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12016 | PyObject *resultobj; | |
12017 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12018 | wxString *arg2 = 0 ; | |
423f194a | 12019 | bool arg3 = (bool) False ; |
d14a1e28 | 12020 | bool result; |
423f194a | 12021 | bool temp2 = False ; |
d14a1e28 RD |
12022 | PyObject * obj0 = 0 ; |
12023 | PyObject * obj1 = 0 ; | |
12024 | PyObject * obj2 = 0 ; | |
12025 | char *kwnames[] = { | |
12026 | (char *) "self",(char *) "filename",(char *) "fallback", NULL | |
12027 | }; | |
12028 | ||
12029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12030 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12031 | { | |
12032 | arg2 = wxString_in_helper(obj1); | |
12033 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12034 | temp2 = True; |
d14a1e28 RD |
12035 | } |
12036 | if (obj2) { | |
12037 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
12040 | { | |
12041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12042 | result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3); | |
12043 | ||
12044 | wxPyEndAllowThreads(__tstate); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | } | |
12047 | resultobj = PyInt_FromLong((long)result); | |
12048 | { | |
12049 | if (temp2) | |
12050 | delete arg2; | |
12051 | } | |
12052 | return resultobj; | |
12053 | fail: | |
12054 | { | |
12055 | if (temp2) | |
12056 | delete arg2; | |
12057 | } | |
12058 | return NULL; | |
12059 | } | |
12060 | ||
12061 | ||
12062 | static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12063 | PyObject *resultobj; | |
12064 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12065 | wxString *arg2 = 0 ; | |
12066 | bool result; | |
423f194a | 12067 | bool temp2 = False ; |
d14a1e28 RD |
12068 | PyObject * obj0 = 0 ; |
12069 | PyObject * obj1 = 0 ; | |
12070 | char *kwnames[] = { | |
12071 | (char *) "self",(char *) "filename", NULL | |
12072 | }; | |
12073 | ||
12074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail; | |
12075 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12076 | { | |
12077 | arg2 = wxString_in_helper(obj1); | |
12078 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12079 | temp2 = True; |
d14a1e28 RD |
12080 | } |
12081 | { | |
12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12083 | result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2); | |
12084 | ||
12085 | wxPyEndAllowThreads(__tstate); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
12087 | } | |
12088 | resultobj = PyInt_FromLong((long)result); | |
12089 | { | |
12090 | if (temp2) | |
12091 | delete arg2; | |
12092 | } | |
12093 | return resultobj; | |
12094 | fail: | |
12095 | { | |
12096 | if (temp2) | |
12097 | delete arg2; | |
12098 | } | |
12099 | return NULL; | |
12100 | } | |
12101 | ||
12102 | ||
12103 | static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12104 | PyObject *resultobj; | |
12105 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12106 | PyObject *result; | |
12107 | PyObject * obj0 = 0 ; | |
12108 | char *kwnames[] = { | |
12109 | (char *) "self", NULL | |
12110 | }; | |
12111 | ||
12112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail; | |
12113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12114 | { | |
12115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12116 | result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1); | |
12117 | ||
12118 | wxPyEndAllowThreads(__tstate); | |
12119 | if (PyErr_Occurred()) SWIG_fail; | |
12120 | } | |
12121 | resultobj = result; | |
12122 | return resultobj; | |
12123 | fail: | |
12124 | return NULL; | |
12125 | } | |
12126 | ||
12127 | ||
12128 | static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12129 | PyObject *resultobj; | |
12130 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12131 | wxFileTypeInfo *arg2 = 0 ; | |
12132 | PyObject * obj0 = 0 ; | |
12133 | PyObject * obj1 = 0 ; | |
12134 | char *kwnames[] = { | |
12135 | (char *) "self",(char *) "ft", NULL | |
12136 | }; | |
12137 | ||
12138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail; | |
12139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12140 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12141 | if (arg2 == NULL) { | |
12142 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12143 | } | |
12144 | { | |
12145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12146 | (arg1)->AddFallback((wxFileTypeInfo const &)*arg2); | |
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 *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12159 | PyObject *resultobj; | |
12160 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12161 | wxFileTypeInfo *arg2 = 0 ; | |
12162 | wxFileType *result; | |
12163 | PyObject * obj0 = 0 ; | |
12164 | PyObject * obj1 = 0 ; | |
12165 | char *kwnames[] = { | |
12166 | (char *) "self",(char *) "ftInfo", NULL | |
12167 | }; | |
12168 | ||
12169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail; | |
12170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12171 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileTypeInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12172 | if (arg2 == NULL) { | |
12173 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12174 | } | |
12175 | { | |
12176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12177 | result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2); | |
12178 | ||
12179 | wxPyEndAllowThreads(__tstate); | |
12180 | if (PyErr_Occurred()) SWIG_fail; | |
12181 | } | |
12182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileType, 1); | |
12183 | return resultobj; | |
12184 | fail: | |
12185 | return NULL; | |
12186 | } | |
12187 | ||
12188 | ||
12189 | static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12190 | PyObject *resultobj; | |
12191 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12192 | wxFileType *arg2 = (wxFileType *) 0 ; | |
12193 | bool result; | |
12194 | PyObject * obj0 = 0 ; | |
12195 | PyObject * obj1 = 0 ; | |
12196 | char *kwnames[] = { | |
12197 | (char *) "self",(char *) "ft", NULL | |
12198 | }; | |
12199 | ||
12200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail; | |
12201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12202 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileType,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12203 | { | |
12204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12205 | result = (bool)(arg1)->Unassociate(arg2); | |
12206 | ||
12207 | wxPyEndAllowThreads(__tstate); | |
12208 | if (PyErr_Occurred()) SWIG_fail; | |
12209 | } | |
12210 | resultobj = PyInt_FromLong((long)result); | |
12211 | return resultobj; | |
12212 | fail: | |
12213 | return NULL; | |
12214 | } | |
12215 | ||
12216 | ||
12217 | static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12218 | PyObject *resultobj; | |
12219 | wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ; | |
12220 | PyObject * obj0 = 0 ; | |
12221 | char *kwnames[] = { | |
12222 | (char *) "self", NULL | |
12223 | }; | |
12224 | ||
12225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail; | |
12226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMimeTypesManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12227 | { | |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12229 | delete arg1; | |
12230 | ||
12231 | wxPyEndAllowThreads(__tstate); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
12233 | } | |
12234 | Py_INCREF(Py_None); resultobj = Py_None; | |
12235 | return resultobj; | |
12236 | fail: | |
12237 | return NULL; | |
12238 | } | |
12239 | ||
12240 | ||
12241 | static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) { | |
12242 | PyObject *obj; | |
12243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12244 | SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj); | |
12245 | Py_INCREF(obj); | |
12246 | return Py_BuildValue((char *)""); | |
12247 | } | |
12248 | static int _wrap_ART_TOOLBAR_set(PyObject *_val) { | |
12249 | PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only."); | |
12250 | return 1; | |
12251 | } | |
12252 | ||
12253 | ||
12254 | static PyObject *_wrap_ART_TOOLBAR_get() { | |
12255 | PyObject *pyobj; | |
12256 | ||
12257 | { | |
12258 | #if wxUSE_UNICODE | |
12259 | pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12260 | #else | |
12261 | pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len()); | |
12262 | #endif | |
12263 | } | |
12264 | return pyobj; | |
12265 | } | |
12266 | ||
12267 | ||
12268 | static int _wrap_ART_MENU_set(PyObject *_val) { | |
12269 | PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only."); | |
12270 | return 1; | |
12271 | } | |
12272 | ||
12273 | ||
12274 | static PyObject *_wrap_ART_MENU_get() { | |
12275 | PyObject *pyobj; | |
12276 | ||
12277 | { | |
12278 | #if wxUSE_UNICODE | |
12279 | pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12280 | #else | |
12281 | pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len()); | |
12282 | #endif | |
12283 | } | |
12284 | return pyobj; | |
12285 | } | |
12286 | ||
12287 | ||
12288 | static int _wrap_ART_FRAME_ICON_set(PyObject *_val) { | |
12289 | PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only."); | |
12290 | return 1; | |
12291 | } | |
12292 | ||
12293 | ||
12294 | static PyObject *_wrap_ART_FRAME_ICON_get() { | |
12295 | PyObject *pyobj; | |
12296 | ||
12297 | { | |
12298 | #if wxUSE_UNICODE | |
12299 | pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12300 | #else | |
12301 | pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len()); | |
12302 | #endif | |
12303 | } | |
12304 | return pyobj; | |
12305 | } | |
12306 | ||
12307 | ||
12308 | static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) { | |
12309 | PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only."); | |
12310 | return 1; | |
12311 | } | |
12312 | ||
12313 | ||
12314 | static PyObject *_wrap_ART_CMN_DIALOG_get() { | |
12315 | PyObject *pyobj; | |
12316 | ||
12317 | { | |
12318 | #if wxUSE_UNICODE | |
12319 | pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12320 | #else | |
12321 | pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len()); | |
12322 | #endif | |
12323 | } | |
12324 | return pyobj; | |
12325 | } | |
12326 | ||
12327 | ||
12328 | static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) { | |
12329 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only."); | |
12330 | return 1; | |
12331 | } | |
12332 | ||
12333 | ||
12334 | static PyObject *_wrap_ART_HELP_BROWSER_get() { | |
12335 | PyObject *pyobj; | |
12336 | ||
12337 | { | |
12338 | #if wxUSE_UNICODE | |
12339 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12340 | #else | |
12341 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len()); | |
12342 | #endif | |
12343 | } | |
12344 | return pyobj; | |
12345 | } | |
12346 | ||
12347 | ||
12348 | static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) { | |
12349 | PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only."); | |
12350 | return 1; | |
12351 | } | |
12352 | ||
12353 | ||
12354 | static PyObject *_wrap_ART_MESSAGE_BOX_get() { | |
12355 | PyObject *pyobj; | |
12356 | ||
12357 | { | |
12358 | #if wxUSE_UNICODE | |
12359 | pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12360 | #else | |
12361 | pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len()); | |
12362 | #endif | |
12363 | } | |
12364 | return pyobj; | |
12365 | } | |
12366 | ||
12367 | ||
12368 | static int _wrap_ART_OTHER_set(PyObject *_val) { | |
12369 | PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only."); | |
12370 | return 1; | |
12371 | } | |
12372 | ||
12373 | ||
12374 | static PyObject *_wrap_ART_OTHER_get() { | |
12375 | PyObject *pyobj; | |
12376 | ||
12377 | { | |
12378 | #if wxUSE_UNICODE | |
12379 | pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12380 | #else | |
12381 | pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len()); | |
12382 | #endif | |
12383 | } | |
12384 | return pyobj; | |
12385 | } | |
12386 | ||
12387 | ||
12388 | static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) { | |
12389 | PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only."); | |
12390 | return 1; | |
12391 | } | |
12392 | ||
12393 | ||
12394 | static PyObject *_wrap_ART_ADD_BOOKMARK_get() { | |
12395 | PyObject *pyobj; | |
12396 | ||
12397 | { | |
12398 | #if wxUSE_UNICODE | |
12399 | pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12400 | #else | |
12401 | pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len()); | |
12402 | #endif | |
12403 | } | |
12404 | return pyobj; | |
12405 | } | |
12406 | ||
12407 | ||
12408 | static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) { | |
12409 | PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only."); | |
12410 | return 1; | |
12411 | } | |
12412 | ||
12413 | ||
12414 | static PyObject *_wrap_ART_DEL_BOOKMARK_get() { | |
12415 | PyObject *pyobj; | |
12416 | ||
12417 | { | |
12418 | #if wxUSE_UNICODE | |
12419 | pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12420 | #else | |
12421 | pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len()); | |
12422 | #endif | |
12423 | } | |
12424 | return pyobj; | |
12425 | } | |
12426 | ||
12427 | ||
12428 | static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) { | |
12429 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only."); | |
12430 | return 1; | |
12431 | } | |
12432 | ||
12433 | ||
12434 | static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() { | |
12435 | PyObject *pyobj; | |
12436 | ||
12437 | { | |
12438 | #if wxUSE_UNICODE | |
12439 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12440 | #else | |
12441 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len()); | |
12442 | #endif | |
12443 | } | |
12444 | return pyobj; | |
12445 | } | |
12446 | ||
12447 | ||
12448 | static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) { | |
12449 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only."); | |
12450 | return 1; | |
12451 | } | |
12452 | ||
12453 | ||
12454 | static PyObject *_wrap_ART_HELP_SETTINGS_get() { | |
12455 | PyObject *pyobj; | |
12456 | ||
12457 | { | |
12458 | #if wxUSE_UNICODE | |
12459 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12460 | #else | |
12461 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len()); | |
12462 | #endif | |
12463 | } | |
12464 | return pyobj; | |
12465 | } | |
12466 | ||
12467 | ||
12468 | static int _wrap_ART_HELP_BOOK_set(PyObject *_val) { | |
12469 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only."); | |
12470 | return 1; | |
12471 | } | |
12472 | ||
12473 | ||
12474 | static PyObject *_wrap_ART_HELP_BOOK_get() { | |
12475 | PyObject *pyobj; | |
12476 | ||
12477 | { | |
12478 | #if wxUSE_UNICODE | |
12479 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12480 | #else | |
12481 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len()); | |
12482 | #endif | |
12483 | } | |
12484 | return pyobj; | |
12485 | } | |
12486 | ||
12487 | ||
12488 | static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) { | |
12489 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only."); | |
12490 | return 1; | |
12491 | } | |
12492 | ||
12493 | ||
12494 | static PyObject *_wrap_ART_HELP_FOLDER_get() { | |
12495 | PyObject *pyobj; | |
12496 | ||
12497 | { | |
12498 | #if wxUSE_UNICODE | |
12499 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12500 | #else | |
12501 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len()); | |
12502 | #endif | |
12503 | } | |
12504 | return pyobj; | |
12505 | } | |
12506 | ||
12507 | ||
12508 | static int _wrap_ART_HELP_PAGE_set(PyObject *_val) { | |
12509 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only."); | |
12510 | return 1; | |
12511 | } | |
12512 | ||
12513 | ||
12514 | static PyObject *_wrap_ART_HELP_PAGE_get() { | |
12515 | PyObject *pyobj; | |
12516 | ||
12517 | { | |
12518 | #if wxUSE_UNICODE | |
12519 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12520 | #else | |
12521 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len()); | |
12522 | #endif | |
12523 | } | |
12524 | return pyobj; | |
12525 | } | |
12526 | ||
12527 | ||
12528 | static int _wrap_ART_GO_BACK_set(PyObject *_val) { | |
12529 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only."); | |
12530 | return 1; | |
12531 | } | |
12532 | ||
12533 | ||
12534 | static PyObject *_wrap_ART_GO_BACK_get() { | |
12535 | PyObject *pyobj; | |
12536 | ||
12537 | { | |
12538 | #if wxUSE_UNICODE | |
12539 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12540 | #else | |
12541 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len()); | |
12542 | #endif | |
12543 | } | |
12544 | return pyobj; | |
12545 | } | |
12546 | ||
12547 | ||
12548 | static int _wrap_ART_GO_FORWARD_set(PyObject *_val) { | |
12549 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only."); | |
12550 | return 1; | |
12551 | } | |
12552 | ||
12553 | ||
12554 | static PyObject *_wrap_ART_GO_FORWARD_get() { | |
12555 | PyObject *pyobj; | |
12556 | ||
12557 | { | |
12558 | #if wxUSE_UNICODE | |
12559 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12560 | #else | |
12561 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len()); | |
12562 | #endif | |
12563 | } | |
12564 | return pyobj; | |
12565 | } | |
12566 | ||
12567 | ||
12568 | static int _wrap_ART_GO_UP_set(PyObject *_val) { | |
12569 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only."); | |
12570 | return 1; | |
12571 | } | |
12572 | ||
12573 | ||
12574 | static PyObject *_wrap_ART_GO_UP_get() { | |
12575 | PyObject *pyobj; | |
12576 | ||
12577 | { | |
12578 | #if wxUSE_UNICODE | |
12579 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12580 | #else | |
12581 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len()); | |
12582 | #endif | |
12583 | } | |
12584 | return pyobj; | |
12585 | } | |
12586 | ||
12587 | ||
12588 | static int _wrap_ART_GO_DOWN_set(PyObject *_val) { | |
12589 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only."); | |
12590 | return 1; | |
12591 | } | |
12592 | ||
12593 | ||
12594 | static PyObject *_wrap_ART_GO_DOWN_get() { | |
12595 | PyObject *pyobj; | |
12596 | ||
12597 | { | |
12598 | #if wxUSE_UNICODE | |
12599 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12600 | #else | |
12601 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len()); | |
12602 | #endif | |
12603 | } | |
12604 | return pyobj; | |
12605 | } | |
12606 | ||
12607 | ||
12608 | static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) { | |
12609 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only."); | |
12610 | return 1; | |
12611 | } | |
12612 | ||
12613 | ||
12614 | static PyObject *_wrap_ART_GO_TO_PARENT_get() { | |
12615 | PyObject *pyobj; | |
12616 | ||
12617 | { | |
12618 | #if wxUSE_UNICODE | |
12619 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12620 | #else | |
12621 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len()); | |
12622 | #endif | |
12623 | } | |
12624 | return pyobj; | |
12625 | } | |
12626 | ||
12627 | ||
12628 | static int _wrap_ART_GO_HOME_set(PyObject *_val) { | |
12629 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only."); | |
12630 | return 1; | |
12631 | } | |
12632 | ||
12633 | ||
12634 | static PyObject *_wrap_ART_GO_HOME_get() { | |
12635 | PyObject *pyobj; | |
12636 | ||
12637 | { | |
12638 | #if wxUSE_UNICODE | |
12639 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12640 | #else | |
12641 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len()); | |
12642 | #endif | |
12643 | } | |
12644 | return pyobj; | |
12645 | } | |
12646 | ||
12647 | ||
12648 | static int _wrap_ART_FILE_OPEN_set(PyObject *_val) { | |
12649 | PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only."); | |
12650 | return 1; | |
12651 | } | |
12652 | ||
12653 | ||
12654 | static PyObject *_wrap_ART_FILE_OPEN_get() { | |
12655 | PyObject *pyobj; | |
12656 | ||
12657 | { | |
12658 | #if wxUSE_UNICODE | |
12659 | pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12660 | #else | |
12661 | pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len()); | |
12662 | #endif | |
12663 | } | |
12664 | return pyobj; | |
12665 | } | |
12666 | ||
12667 | ||
12668 | static int _wrap_ART_PRINT_set(PyObject *_val) { | |
12669 | PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only."); | |
12670 | return 1; | |
12671 | } | |
12672 | ||
12673 | ||
12674 | static PyObject *_wrap_ART_PRINT_get() { | |
12675 | PyObject *pyobj; | |
12676 | ||
12677 | { | |
12678 | #if wxUSE_UNICODE | |
12679 | pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12680 | #else | |
12681 | pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len()); | |
12682 | #endif | |
12683 | } | |
12684 | return pyobj; | |
12685 | } | |
12686 | ||
12687 | ||
12688 | static int _wrap_ART_HELP_set(PyObject *_val) { | |
12689 | PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only."); | |
12690 | return 1; | |
12691 | } | |
12692 | ||
12693 | ||
12694 | static PyObject *_wrap_ART_HELP_get() { | |
12695 | PyObject *pyobj; | |
12696 | ||
12697 | { | |
12698 | #if wxUSE_UNICODE | |
12699 | pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12700 | #else | |
12701 | pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len()); | |
12702 | #endif | |
12703 | } | |
12704 | return pyobj; | |
12705 | } | |
12706 | ||
12707 | ||
12708 | static int _wrap_ART_TIP_set(PyObject *_val) { | |
12709 | PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only."); | |
12710 | return 1; | |
12711 | } | |
12712 | ||
12713 | ||
12714 | static PyObject *_wrap_ART_TIP_get() { | |
12715 | PyObject *pyobj; | |
12716 | ||
12717 | { | |
12718 | #if wxUSE_UNICODE | |
12719 | pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12720 | #else | |
12721 | pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len()); | |
12722 | #endif | |
12723 | } | |
12724 | return pyobj; | |
12725 | } | |
12726 | ||
12727 | ||
12728 | static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) { | |
12729 | PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only."); | |
12730 | return 1; | |
12731 | } | |
12732 | ||
12733 | ||
12734 | static PyObject *_wrap_ART_REPORT_VIEW_get() { | |
12735 | PyObject *pyobj; | |
12736 | ||
12737 | { | |
12738 | #if wxUSE_UNICODE | |
12739 | pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12740 | #else | |
12741 | pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len()); | |
12742 | #endif | |
12743 | } | |
12744 | return pyobj; | |
12745 | } | |
12746 | ||
12747 | ||
12748 | static int _wrap_ART_LIST_VIEW_set(PyObject *_val) { | |
12749 | PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only."); | |
12750 | return 1; | |
12751 | } | |
12752 | ||
12753 | ||
12754 | static PyObject *_wrap_ART_LIST_VIEW_get() { | |
12755 | PyObject *pyobj; | |
12756 | ||
12757 | { | |
12758 | #if wxUSE_UNICODE | |
12759 | pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12760 | #else | |
12761 | pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len()); | |
12762 | #endif | |
12763 | } | |
12764 | return pyobj; | |
12765 | } | |
12766 | ||
12767 | ||
12768 | static int _wrap_ART_NEW_DIR_set(PyObject *_val) { | |
12769 | PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only."); | |
12770 | return 1; | |
12771 | } | |
12772 | ||
12773 | ||
12774 | static PyObject *_wrap_ART_NEW_DIR_get() { | |
12775 | PyObject *pyobj; | |
12776 | ||
12777 | { | |
12778 | #if wxUSE_UNICODE | |
12779 | pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12780 | #else | |
12781 | pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len()); | |
12782 | #endif | |
12783 | } | |
12784 | return pyobj; | |
12785 | } | |
12786 | ||
12787 | ||
12788 | static int _wrap_ART_FOLDER_set(PyObject *_val) { | |
12789 | PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only."); | |
12790 | return 1; | |
12791 | } | |
12792 | ||
12793 | ||
12794 | static PyObject *_wrap_ART_FOLDER_get() { | |
12795 | PyObject *pyobj; | |
12796 | ||
12797 | { | |
12798 | #if wxUSE_UNICODE | |
12799 | pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12800 | #else | |
12801 | pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len()); | |
12802 | #endif | |
12803 | } | |
12804 | return pyobj; | |
12805 | } | |
12806 | ||
12807 | ||
12808 | static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) { | |
12809 | PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only."); | |
12810 | return 1; | |
12811 | } | |
12812 | ||
12813 | ||
12814 | static PyObject *_wrap_ART_GO_DIR_UP_get() { | |
12815 | PyObject *pyobj; | |
12816 | ||
12817 | { | |
12818 | #if wxUSE_UNICODE | |
12819 | pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12820 | #else | |
12821 | pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len()); | |
12822 | #endif | |
12823 | } | |
12824 | return pyobj; | |
12825 | } | |
12826 | ||
12827 | ||
12828 | static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) { | |
12829 | PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only."); | |
12830 | return 1; | |
12831 | } | |
12832 | ||
12833 | ||
12834 | static PyObject *_wrap_ART_EXECUTABLE_FILE_get() { | |
12835 | PyObject *pyobj; | |
12836 | ||
12837 | { | |
12838 | #if wxUSE_UNICODE | |
12839 | pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12840 | #else | |
12841 | pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len()); | |
12842 | #endif | |
12843 | } | |
12844 | return pyobj; | |
12845 | } | |
12846 | ||
12847 | ||
12848 | static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) { | |
12849 | PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only."); | |
12850 | return 1; | |
12851 | } | |
12852 | ||
12853 | ||
12854 | static PyObject *_wrap_ART_NORMAL_FILE_get() { | |
12855 | PyObject *pyobj; | |
12856 | ||
12857 | { | |
12858 | #if wxUSE_UNICODE | |
12859 | pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12860 | #else | |
12861 | pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len()); | |
12862 | #endif | |
12863 | } | |
12864 | return pyobj; | |
12865 | } | |
12866 | ||
12867 | ||
12868 | static int _wrap_ART_TICK_MARK_set(PyObject *_val) { | |
12869 | PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only."); | |
12870 | return 1; | |
12871 | } | |
12872 | ||
12873 | ||
12874 | static PyObject *_wrap_ART_TICK_MARK_get() { | |
12875 | PyObject *pyobj; | |
12876 | ||
12877 | { | |
12878 | #if wxUSE_UNICODE | |
12879 | pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12880 | #else | |
12881 | pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len()); | |
12882 | #endif | |
12883 | } | |
12884 | return pyobj; | |
12885 | } | |
12886 | ||
12887 | ||
12888 | static int _wrap_ART_CROSS_MARK_set(PyObject *_val) { | |
12889 | PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only."); | |
12890 | return 1; | |
12891 | } | |
12892 | ||
12893 | ||
12894 | static PyObject *_wrap_ART_CROSS_MARK_get() { | |
12895 | PyObject *pyobj; | |
12896 | ||
12897 | { | |
12898 | #if wxUSE_UNICODE | |
12899 | pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12900 | #else | |
12901 | pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len()); | |
12902 | #endif | |
12903 | } | |
12904 | return pyobj; | |
12905 | } | |
12906 | ||
12907 | ||
12908 | static int _wrap_ART_ERROR_set(PyObject *_val) { | |
12909 | PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only."); | |
12910 | return 1; | |
12911 | } | |
12912 | ||
12913 | ||
12914 | static PyObject *_wrap_ART_ERROR_get() { | |
12915 | PyObject *pyobj; | |
12916 | ||
12917 | { | |
12918 | #if wxUSE_UNICODE | |
12919 | pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12920 | #else | |
12921 | pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len()); | |
12922 | #endif | |
12923 | } | |
12924 | return pyobj; | |
12925 | } | |
12926 | ||
12927 | ||
12928 | static int _wrap_ART_QUESTION_set(PyObject *_val) { | |
12929 | PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only."); | |
12930 | return 1; | |
12931 | } | |
12932 | ||
12933 | ||
12934 | static PyObject *_wrap_ART_QUESTION_get() { | |
12935 | PyObject *pyobj; | |
12936 | ||
12937 | { | |
12938 | #if wxUSE_UNICODE | |
12939 | pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12940 | #else | |
12941 | pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len()); | |
12942 | #endif | |
12943 | } | |
12944 | return pyobj; | |
12945 | } | |
12946 | ||
12947 | ||
12948 | static int _wrap_ART_WARNING_set(PyObject *_val) { | |
12949 | PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only."); | |
12950 | return 1; | |
12951 | } | |
12952 | ||
12953 | ||
12954 | static PyObject *_wrap_ART_WARNING_get() { | |
12955 | PyObject *pyobj; | |
12956 | ||
12957 | { | |
12958 | #if wxUSE_UNICODE | |
12959 | pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12960 | #else | |
12961 | pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len()); | |
12962 | #endif | |
12963 | } | |
12964 | return pyobj; | |
12965 | } | |
12966 | ||
12967 | ||
12968 | static int _wrap_ART_INFORMATION_set(PyObject *_val) { | |
12969 | PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only."); | |
12970 | return 1; | |
12971 | } | |
12972 | ||
12973 | ||
12974 | static PyObject *_wrap_ART_INFORMATION_get() { | |
12975 | PyObject *pyobj; | |
12976 | ||
12977 | { | |
12978 | #if wxUSE_UNICODE | |
12979 | pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12980 | #else | |
12981 | pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len()); | |
12982 | #endif | |
12983 | } | |
12984 | return pyobj; | |
12985 | } | |
12986 | ||
12987 | ||
12988 | static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) { | |
12989 | PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only."); | |
12990 | return 1; | |
12991 | } | |
12992 | ||
12993 | ||
12994 | static PyObject *_wrap_ART_MISSING_IMAGE_get() { | |
12995 | PyObject *pyobj; | |
12996 | ||
12997 | { | |
12998 | #if wxUSE_UNICODE | |
12999 | pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13000 | #else | |
13001 | pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len()); | |
13002 | #endif | |
13003 | } | |
13004 | return pyobj; | |
13005 | } | |
13006 | ||
13007 | ||
13008 | static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13009 | PyObject *resultobj; | |
13010 | wxPyArtProvider *result; | |
13011 | char *kwnames[] = { | |
13012 | NULL | |
13013 | }; | |
13014 | ||
13015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail; | |
13016 | { | |
13017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13018 | result = (wxPyArtProvider *)new wxPyArtProvider(); | |
13019 | ||
13020 | wxPyEndAllowThreads(__tstate); | |
13021 | if (PyErr_Occurred()) SWIG_fail; | |
13022 | } | |
13023 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyArtProvider, 1); | |
13024 | return resultobj; | |
13025 | fail: | |
13026 | return NULL; | |
13027 | } | |
13028 | ||
13029 | ||
d14a1e28 RD |
13030 | static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
13031 | PyObject *resultobj; | |
13032 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13033 | PyObject *arg2 = (PyObject *) 0 ; | |
13034 | PyObject *arg3 = (PyObject *) 0 ; | |
13035 | PyObject * obj0 = 0 ; | |
13036 | PyObject * obj1 = 0 ; | |
13037 | PyObject * obj2 = 0 ; | |
13038 | char *kwnames[] = { | |
13039 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
13040 | }; | |
13041 | ||
13042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13044 | arg2 = obj1; | |
13045 | arg3 = obj2; | |
13046 | { | |
13047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13048 | (arg1)->_setCallbackInfo(arg2,arg3); | |
13049 | ||
13050 | wxPyEndAllowThreads(__tstate); | |
13051 | if (PyErr_Occurred()) SWIG_fail; | |
13052 | } | |
13053 | Py_INCREF(Py_None); resultobj = Py_None; | |
13054 | return resultobj; | |
13055 | fail: | |
13056 | return NULL; | |
13057 | } | |
13058 | ||
13059 | ||
13060 | static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13061 | PyObject *resultobj; | |
13062 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13063 | PyObject * obj0 = 0 ; | |
13064 | char *kwnames[] = { | |
13065 | (char *) "provider", NULL | |
13066 | }; | |
13067 | ||
13068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail; | |
13069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13070 | { | |
13071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13072 | wxPyArtProvider::PushProvider(arg1); | |
13073 | ||
13074 | wxPyEndAllowThreads(__tstate); | |
13075 | if (PyErr_Occurred()) SWIG_fail; | |
13076 | } | |
13077 | Py_INCREF(Py_None); resultobj = Py_None; | |
13078 | return resultobj; | |
13079 | fail: | |
13080 | return NULL; | |
13081 | } | |
13082 | ||
13083 | ||
13084 | static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13085 | PyObject *resultobj; | |
13086 | bool result; | |
13087 | char *kwnames[] = { | |
13088 | NULL | |
13089 | }; | |
13090 | ||
13091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail; | |
13092 | { | |
13093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13094 | result = (bool)wxPyArtProvider::PopProvider(); | |
13095 | ||
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
13099 | resultobj = PyInt_FromLong((long)result); | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
13106 | static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13107 | PyObject *resultobj; | |
13108 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13109 | bool result; | |
13110 | PyObject * obj0 = 0 ; | |
13111 | char *kwnames[] = { | |
13112 | (char *) "provider", NULL | |
13113 | }; | |
13114 | ||
13115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail; | |
13116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13117 | { | |
13118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13119 | result = (bool)wxPyArtProvider::RemoveProvider(arg1); | |
13120 | ||
13121 | wxPyEndAllowThreads(__tstate); | |
13122 | if (PyErr_Occurred()) SWIG_fail; | |
13123 | } | |
13124 | resultobj = PyInt_FromLong((long)result); | |
13125 | return resultobj; | |
13126 | fail: | |
13127 | return NULL; | |
13128 | } | |
13129 | ||
13130 | ||
13131 | static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13132 | PyObject *resultobj; | |
13133 | wxString *arg1 = 0 ; | |
13134 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13135 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13136 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13137 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13138 | wxBitmap result; | |
423f194a RD |
13139 | bool temp1 = False ; |
13140 | bool temp2 = False ; | |
d14a1e28 RD |
13141 | wxSize temp3 ; |
13142 | PyObject * obj0 = 0 ; | |
13143 | PyObject * obj1 = 0 ; | |
13144 | PyObject * obj2 = 0 ; | |
13145 | char *kwnames[] = { | |
13146 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13147 | }; | |
13148 | ||
13149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13150 | { | |
13151 | arg1 = wxString_in_helper(obj0); | |
13152 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13153 | temp1 = True; |
d14a1e28 RD |
13154 | } |
13155 | if (obj1) { | |
13156 | { | |
13157 | arg2 = wxString_in_helper(obj1); | |
13158 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13159 | temp2 = True; |
d14a1e28 RD |
13160 | } |
13161 | } | |
13162 | if (obj2) { | |
13163 | { | |
13164 | arg3 = &temp3; | |
13165 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13166 | } | |
13167 | } | |
13168 | { | |
13169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13170 | result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13171 | ||
13172 | wxPyEndAllowThreads(__tstate); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
13175 | { | |
13176 | wxBitmap * resultptr; | |
13177 | resultptr = new wxBitmap((wxBitmap &) result); | |
13178 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13179 | } | |
13180 | { | |
13181 | if (temp1) | |
13182 | delete arg1; | |
13183 | } | |
13184 | { | |
13185 | if (temp2) | |
13186 | delete arg2; | |
13187 | } | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | { | |
13191 | if (temp1) | |
13192 | delete arg1; | |
13193 | } | |
13194 | { | |
13195 | if (temp2) | |
13196 | delete arg2; | |
13197 | } | |
13198 | return NULL; | |
13199 | } | |
13200 | ||
13201 | ||
13202 | static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13203 | PyObject *resultobj; | |
13204 | wxString *arg1 = 0 ; | |
13205 | wxString const &arg2_defvalue = wxPyART_OTHER ; | |
13206 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
13207 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
13208 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
13209 | wxIcon result; | |
423f194a RD |
13210 | bool temp1 = False ; |
13211 | bool temp2 = False ; | |
d14a1e28 RD |
13212 | wxSize temp3 ; |
13213 | PyObject * obj0 = 0 ; | |
13214 | PyObject * obj1 = 0 ; | |
13215 | PyObject * obj2 = 0 ; | |
13216 | char *kwnames[] = { | |
13217 | (char *) "id",(char *) "client",(char *) "size", NULL | |
13218 | }; | |
13219 | ||
13220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13221 | { | |
13222 | arg1 = wxString_in_helper(obj0); | |
13223 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13224 | temp1 = True; |
d14a1e28 RD |
13225 | } |
13226 | if (obj1) { | |
13227 | { | |
13228 | arg2 = wxString_in_helper(obj1); | |
13229 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13230 | temp2 = True; |
d14a1e28 RD |
13231 | } |
13232 | } | |
13233 | if (obj2) { | |
13234 | { | |
13235 | arg3 = &temp3; | |
13236 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13237 | } | |
13238 | } | |
13239 | { | |
13240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13241 | result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3); | |
13242 | ||
13243 | wxPyEndAllowThreads(__tstate); | |
13244 | if (PyErr_Occurred()) SWIG_fail; | |
13245 | } | |
13246 | { | |
13247 | wxIcon * resultptr; | |
13248 | resultptr = new wxIcon((wxIcon &) result); | |
13249 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
13250 | } | |
13251 | { | |
13252 | if (temp1) | |
13253 | delete arg1; | |
13254 | } | |
13255 | { | |
13256 | if (temp2) | |
13257 | delete arg2; | |
13258 | } | |
13259 | return resultobj; | |
13260 | fail: | |
13261 | { | |
13262 | if (temp1) | |
13263 | delete arg1; | |
13264 | } | |
13265 | { | |
13266 | if (temp2) | |
13267 | delete arg2; | |
13268 | } | |
13269 | return NULL; | |
13270 | } | |
13271 | ||
13272 | ||
41f1cec7 RD |
13273 | static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
13274 | PyObject *resultobj; | |
13275 | wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ; | |
13276 | PyObject * obj0 = 0 ; | |
13277 | char *kwnames[] = { | |
13278 | (char *) "self", NULL | |
13279 | }; | |
13280 | ||
13281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail; | |
13282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyArtProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13283 | { | |
13284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13285 | wxPyArtProvider_Destroy(arg1); | |
13286 | ||
13287 | wxPyEndAllowThreads(__tstate); | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | } | |
13290 | Py_INCREF(Py_None); resultobj = Py_None; | |
13291 | return resultobj; | |
13292 | fail: | |
13293 | return NULL; | |
13294 | } | |
13295 | ||
13296 | ||
d14a1e28 RD |
13297 | static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) { |
13298 | PyObject *obj; | |
13299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13300 | SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj); | |
13301 | Py_INCREF(obj); | |
13302 | return Py_BuildValue((char *)""); | |
13303 | } | |
13304 | static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13305 | PyObject *resultobj; | |
13306 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13307 | PyObject * obj0 = 0 ; | |
13308 | char *kwnames[] = { | |
13309 | (char *) "self", NULL | |
13310 | }; | |
13311 | ||
13312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail; | |
13313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13314 | { | |
13315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13316 | delete arg1; | |
13317 | ||
13318 | wxPyEndAllowThreads(__tstate); | |
13319 | if (PyErr_Occurred()) SWIG_fail; | |
13320 | } | |
13321 | Py_INCREF(Py_None); resultobj = Py_None; | |
13322 | return resultobj; | |
13323 | fail: | |
13324 | return NULL; | |
13325 | } | |
13326 | ||
13327 | ||
13328 | static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13329 | PyObject *resultobj; | |
13330 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13331 | wxConfigBase *result; | |
13332 | PyObject * obj0 = 0 ; | |
13333 | char *kwnames[] = { | |
13334 | (char *) "pConfig", NULL | |
13335 | }; | |
13336 | ||
13337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail; | |
13338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13339 | { | |
13340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13341 | result = (wxConfigBase *)wxConfigBase::Set(arg1); | |
13342 | ||
13343 | wxPyEndAllowThreads(__tstate); | |
13344 | if (PyErr_Occurred()) SWIG_fail; | |
13345 | } | |
13346 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13347 | return resultobj; | |
13348 | fail: | |
13349 | return NULL; | |
13350 | } | |
13351 | ||
13352 | ||
13353 | static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13354 | PyObject *resultobj; | |
423f194a | 13355 | bool arg1 = (bool) True ; |
d14a1e28 RD |
13356 | wxConfigBase *result; |
13357 | PyObject * obj0 = 0 ; | |
13358 | char *kwnames[] = { | |
13359 | (char *) "createOnDemand", NULL | |
13360 | }; | |
13361 | ||
13362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail; | |
13363 | if (obj0) { | |
13364 | arg1 = PyInt_AsLong(obj0) ? true : false; | |
13365 | if (PyErr_Occurred()) SWIG_fail; | |
13366 | } | |
13367 | { | |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | result = (wxConfigBase *)wxConfigBase::Get(arg1); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13375 | return resultobj; | |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxConfigBase *result; | |
13384 | char *kwnames[] = { | |
13385 | NULL | |
13386 | }; | |
13387 | ||
13388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail; | |
13389 | { | |
13390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13391 | result = (wxConfigBase *)wxConfigBase::Create(); | |
13392 | ||
13393 | wxPyEndAllowThreads(__tstate); | |
13394 | if (PyErr_Occurred()) SWIG_fail; | |
13395 | } | |
13396 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigBase, 0); | |
13397 | return resultobj; | |
13398 | fail: | |
13399 | return NULL; | |
13400 | } | |
13401 | ||
13402 | ||
13403 | static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13404 | PyObject *resultobj; | |
13405 | char *kwnames[] = { | |
13406 | NULL | |
13407 | }; | |
13408 | ||
13409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail; | |
13410 | { | |
13411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13412 | wxConfigBase::DontCreateOnDemand(); | |
13413 | ||
13414 | wxPyEndAllowThreads(__tstate); | |
13415 | if (PyErr_Occurred()) SWIG_fail; | |
13416 | } | |
13417 | Py_INCREF(Py_None); resultobj = Py_None; | |
13418 | return resultobj; | |
13419 | fail: | |
13420 | return NULL; | |
13421 | } | |
13422 | ||
13423 | ||
13424 | static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13425 | PyObject *resultobj; | |
13426 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13427 | wxString *arg2 = 0 ; | |
423f194a | 13428 | bool temp2 = False ; |
d14a1e28 RD |
13429 | PyObject * obj0 = 0 ; |
13430 | PyObject * obj1 = 0 ; | |
13431 | char *kwnames[] = { | |
13432 | (char *) "self",(char *) "strPath", NULL | |
13433 | }; | |
13434 | ||
13435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
13436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13437 | { | |
13438 | arg2 = wxString_in_helper(obj1); | |
13439 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13440 | temp2 = True; |
d14a1e28 RD |
13441 | } |
13442 | { | |
13443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13444 | (arg1)->SetPath((wxString const &)*arg2); | |
13445 | ||
13446 | wxPyEndAllowThreads(__tstate); | |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
13448 | } | |
13449 | Py_INCREF(Py_None); resultobj = Py_None; | |
13450 | { | |
13451 | if (temp2) | |
13452 | delete arg2; | |
13453 | } | |
13454 | return resultobj; | |
13455 | fail: | |
13456 | { | |
13457 | if (temp2) | |
13458 | delete arg2; | |
13459 | } | |
13460 | return NULL; | |
13461 | } | |
13462 | ||
13463 | ||
13464 | static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13465 | PyObject *resultobj; | |
13466 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13467 | wxString *result; | |
13468 | PyObject * obj0 = 0 ; | |
13469 | char *kwnames[] = { | |
13470 | (char *) "self", NULL | |
13471 | }; | |
13472 | ||
13473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail; | |
13474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13475 | { | |
13476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13477 | { | |
13478 | wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath(); | |
13479 | result = (wxString *) &_result_ref; | |
13480 | } | |
13481 | ||
13482 | wxPyEndAllowThreads(__tstate); | |
13483 | if (PyErr_Occurred()) SWIG_fail; | |
13484 | } | |
0f774bef RD |
13485 | { |
13486 | #if wxUSE_UNICODE | |
13487 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13488 | #else | |
13489 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13490 | #endif | |
13491 | } | |
d14a1e28 RD |
13492 | return resultobj; |
13493 | fail: | |
13494 | return NULL; | |
13495 | } | |
13496 | ||
13497 | ||
13498 | static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13499 | PyObject *resultobj; | |
13500 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13501 | PyObject *result; | |
13502 | PyObject * obj0 = 0 ; | |
13503 | char *kwnames[] = { | |
13504 | (char *) "self", NULL | |
13505 | }; | |
13506 | ||
13507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail; | |
13508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13509 | { | |
13510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13511 | result = (PyObject *)wxConfigBase_GetFirstGroup(arg1); | |
13512 | ||
13513 | wxPyEndAllowThreads(__tstate); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
13516 | resultobj = result; | |
13517 | return resultobj; | |
13518 | fail: | |
13519 | return NULL; | |
13520 | } | |
13521 | ||
13522 | ||
13523 | static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13524 | PyObject *resultobj; | |
13525 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13526 | long arg2 ; | |
13527 | PyObject *result; | |
13528 | PyObject * obj0 = 0 ; | |
13529 | char *kwnames[] = { | |
13530 | (char *) "self",(char *) "index", NULL | |
13531 | }; | |
13532 | ||
13533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextGroup",kwnames,&obj0,&arg2)) goto fail; | |
13534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13535 | { | |
13536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13537 | result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2); | |
13538 | ||
13539 | wxPyEndAllowThreads(__tstate); | |
13540 | if (PyErr_Occurred()) SWIG_fail; | |
13541 | } | |
13542 | resultobj = result; | |
13543 | return resultobj; | |
13544 | fail: | |
13545 | return NULL; | |
13546 | } | |
13547 | ||
13548 | ||
13549 | static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13550 | PyObject *resultobj; | |
13551 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13552 | PyObject *result; | |
13553 | PyObject * obj0 = 0 ; | |
13554 | char *kwnames[] = { | |
13555 | (char *) "self", NULL | |
13556 | }; | |
13557 | ||
13558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail; | |
13559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13560 | { | |
13561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13562 | result = (PyObject *)wxConfigBase_GetFirstEntry(arg1); | |
13563 | ||
13564 | wxPyEndAllowThreads(__tstate); | |
13565 | if (PyErr_Occurred()) SWIG_fail; | |
13566 | } | |
13567 | resultobj = result; | |
13568 | return resultobj; | |
13569 | fail: | |
13570 | return NULL; | |
13571 | } | |
13572 | ||
13573 | ||
13574 | static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13575 | PyObject *resultobj; | |
13576 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13577 | long arg2 ; | |
13578 | PyObject *result; | |
13579 | PyObject * obj0 = 0 ; | |
13580 | char *kwnames[] = { | |
13581 | (char *) "self",(char *) "index", NULL | |
13582 | }; | |
13583 | ||
13584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_GetNextEntry",kwnames,&obj0,&arg2)) goto fail; | |
13585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13586 | { | |
13587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13588 | result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2); | |
13589 | ||
13590 | wxPyEndAllowThreads(__tstate); | |
13591 | if (PyErr_Occurred()) SWIG_fail; | |
13592 | } | |
13593 | resultobj = result; | |
13594 | return resultobj; | |
13595 | fail: | |
13596 | return NULL; | |
13597 | } | |
13598 | ||
13599 | ||
13600 | static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13601 | PyObject *resultobj; | |
13602 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13603 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13604 | size_t result; |
13605 | PyObject * obj0 = 0 ; | |
13606 | PyObject * obj1 = 0 ; | |
13607 | char *kwnames[] = { | |
13608 | (char *) "self",(char *) "bRecursive", NULL | |
13609 | }; | |
13610 | ||
13611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail; | |
13612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13613 | if (obj1) { | |
13614 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13615 | if (PyErr_Occurred()) SWIG_fail; | |
13616 | } | |
13617 | { | |
13618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13619 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2); | |
13620 | ||
13621 | wxPyEndAllowThreads(__tstate); | |
13622 | if (PyErr_Occurred()) SWIG_fail; | |
13623 | } | |
13624 | resultobj = PyInt_FromLong((long)result); | |
13625 | return resultobj; | |
13626 | fail: | |
13627 | return NULL; | |
13628 | } | |
13629 | ||
13630 | ||
13631 | static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13632 | PyObject *resultobj; | |
13633 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 13634 | bool arg2 = (bool) False ; |
d14a1e28 RD |
13635 | size_t result; |
13636 | PyObject * obj0 = 0 ; | |
13637 | PyObject * obj1 = 0 ; | |
13638 | char *kwnames[] = { | |
13639 | (char *) "self",(char *) "bRecursive", NULL | |
13640 | }; | |
13641 | ||
13642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail; | |
13643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13644 | if (obj1) { | |
13645 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13646 | if (PyErr_Occurred()) SWIG_fail; | |
13647 | } | |
13648 | { | |
13649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13650 | result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2); | |
13651 | ||
13652 | wxPyEndAllowThreads(__tstate); | |
13653 | if (PyErr_Occurred()) SWIG_fail; | |
13654 | } | |
13655 | resultobj = PyInt_FromLong((long)result); | |
13656 | return resultobj; | |
13657 | fail: | |
13658 | return NULL; | |
13659 | } | |
13660 | ||
13661 | ||
13662 | static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13663 | PyObject *resultobj; | |
13664 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13665 | wxString *arg2 = 0 ; | |
13666 | bool result; | |
423f194a | 13667 | bool temp2 = False ; |
d14a1e28 RD |
13668 | PyObject * obj0 = 0 ; |
13669 | PyObject * obj1 = 0 ; | |
13670 | char *kwnames[] = { | |
13671 | (char *) "self",(char *) "strName", NULL | |
13672 | }; | |
13673 | ||
13674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail; | |
13675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13676 | { | |
13677 | arg2 = wxString_in_helper(obj1); | |
13678 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13679 | temp2 = True; |
d14a1e28 RD |
13680 | } |
13681 | { | |
13682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13683 | result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2); | |
13684 | ||
13685 | wxPyEndAllowThreads(__tstate); | |
13686 | if (PyErr_Occurred()) SWIG_fail; | |
13687 | } | |
13688 | resultobj = PyInt_FromLong((long)result); | |
13689 | { | |
13690 | if (temp2) | |
13691 | delete arg2; | |
13692 | } | |
13693 | return resultobj; | |
13694 | fail: | |
13695 | { | |
13696 | if (temp2) | |
13697 | delete arg2; | |
13698 | } | |
13699 | return NULL; | |
13700 | } | |
13701 | ||
13702 | ||
13703 | static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13704 | PyObject *resultobj; | |
13705 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13706 | wxString *arg2 = 0 ; | |
13707 | bool result; | |
423f194a | 13708 | bool temp2 = False ; |
d14a1e28 RD |
13709 | PyObject * obj0 = 0 ; |
13710 | PyObject * obj1 = 0 ; | |
13711 | char *kwnames[] = { | |
13712 | (char *) "self",(char *) "strName", NULL | |
13713 | }; | |
13714 | ||
13715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail; | |
13716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13717 | { | |
13718 | arg2 = wxString_in_helper(obj1); | |
13719 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13720 | temp2 = True; |
d14a1e28 RD |
13721 | } |
13722 | { | |
13723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13724 | result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2); | |
13725 | ||
13726 | wxPyEndAllowThreads(__tstate); | |
13727 | if (PyErr_Occurred()) SWIG_fail; | |
13728 | } | |
13729 | resultobj = PyInt_FromLong((long)result); | |
13730 | { | |
13731 | if (temp2) | |
13732 | delete arg2; | |
13733 | } | |
13734 | return resultobj; | |
13735 | fail: | |
13736 | { | |
13737 | if (temp2) | |
13738 | delete arg2; | |
13739 | } | |
13740 | return NULL; | |
13741 | } | |
13742 | ||
13743 | ||
13744 | static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13745 | PyObject *resultobj; | |
13746 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13747 | wxString *arg2 = 0 ; | |
13748 | bool result; | |
423f194a | 13749 | bool temp2 = False ; |
d14a1e28 RD |
13750 | PyObject * obj0 = 0 ; |
13751 | PyObject * obj1 = 0 ; | |
13752 | char *kwnames[] = { | |
13753 | (char *) "self",(char *) "strName", NULL | |
13754 | }; | |
13755 | ||
13756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail; | |
13757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13758 | { | |
13759 | arg2 = wxString_in_helper(obj1); | |
13760 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13761 | temp2 = True; |
d14a1e28 RD |
13762 | } |
13763 | { | |
13764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13765 | result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2); | |
13766 | ||
13767 | wxPyEndAllowThreads(__tstate); | |
13768 | if (PyErr_Occurred()) SWIG_fail; | |
13769 | } | |
13770 | resultobj = PyInt_FromLong((long)result); | |
13771 | { | |
13772 | if (temp2) | |
13773 | delete arg2; | |
13774 | } | |
13775 | return resultobj; | |
13776 | fail: | |
13777 | { | |
13778 | if (temp2) | |
13779 | delete arg2; | |
13780 | } | |
13781 | return NULL; | |
13782 | } | |
13783 | ||
13784 | ||
13785 | static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13786 | PyObject *resultobj; | |
13787 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13788 | wxString *arg2 = 0 ; | |
13789 | int result; | |
423f194a | 13790 | bool temp2 = False ; |
d14a1e28 RD |
13791 | PyObject * obj0 = 0 ; |
13792 | PyObject * obj1 = 0 ; | |
13793 | char *kwnames[] = { | |
13794 | (char *) "self",(char *) "name", NULL | |
13795 | }; | |
13796 | ||
13797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail; | |
13798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13799 | { | |
13800 | arg2 = wxString_in_helper(obj1); | |
13801 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13802 | temp2 = True; |
d14a1e28 RD |
13803 | } |
13804 | { | |
13805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13806 | result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2); | |
13807 | ||
13808 | wxPyEndAllowThreads(__tstate); | |
13809 | if (PyErr_Occurred()) SWIG_fail; | |
13810 | } | |
13811 | resultobj = PyInt_FromLong((long)result); | |
13812 | { | |
13813 | if (temp2) | |
13814 | delete arg2; | |
13815 | } | |
13816 | return resultobj; | |
13817 | fail: | |
13818 | { | |
13819 | if (temp2) | |
13820 | delete arg2; | |
13821 | } | |
13822 | return NULL; | |
13823 | } | |
13824 | ||
13825 | ||
13826 | static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13827 | PyObject *resultobj; | |
13828 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13829 | wxString *arg2 = 0 ; | |
13830 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13831 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13832 | wxString result; | |
423f194a RD |
13833 | bool temp2 = False ; |
13834 | bool temp3 = False ; | |
d14a1e28 RD |
13835 | PyObject * obj0 = 0 ; |
13836 | PyObject * obj1 = 0 ; | |
13837 | PyObject * obj2 = 0 ; | |
13838 | char *kwnames[] = { | |
13839 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13840 | }; | |
13841 | ||
13842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13844 | { | |
13845 | arg2 = wxString_in_helper(obj1); | |
13846 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13847 | temp2 = True; |
d14a1e28 RD |
13848 | } |
13849 | if (obj2) { | |
13850 | { | |
13851 | arg3 = wxString_in_helper(obj2); | |
13852 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13853 | temp3 = True; |
d14a1e28 RD |
13854 | } |
13855 | } | |
13856 | { | |
13857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13858 | result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3); | |
13859 | ||
13860 | wxPyEndAllowThreads(__tstate); | |
13861 | if (PyErr_Occurred()) SWIG_fail; | |
13862 | } | |
13863 | { | |
13864 | #if wxUSE_UNICODE | |
13865 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13866 | #else | |
13867 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13868 | #endif | |
13869 | } | |
13870 | { | |
13871 | if (temp2) | |
13872 | delete arg2; | |
13873 | } | |
13874 | { | |
13875 | if (temp3) | |
13876 | delete arg3; | |
13877 | } | |
13878 | return resultobj; | |
13879 | fail: | |
13880 | { | |
13881 | if (temp2) | |
13882 | delete arg2; | |
13883 | } | |
13884 | { | |
13885 | if (temp3) | |
13886 | delete arg3; | |
13887 | } | |
13888 | return NULL; | |
13889 | } | |
13890 | ||
13891 | ||
13892 | static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13893 | PyObject *resultobj; | |
13894 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13895 | wxString *arg2 = 0 ; | |
13896 | long arg3 = (long) 0 ; | |
13897 | long result; | |
423f194a | 13898 | bool temp2 = False ; |
d14a1e28 RD |
13899 | PyObject * obj0 = 0 ; |
13900 | PyObject * obj1 = 0 ; | |
13901 | char *kwnames[] = { | |
13902 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13903 | }; | |
13904 | ||
13905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13907 | { | |
13908 | arg2 = wxString_in_helper(obj1); | |
13909 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13910 | temp2 = True; |
d14a1e28 RD |
13911 | } |
13912 | { | |
13913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13914 | result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3); | |
13915 | ||
13916 | wxPyEndAllowThreads(__tstate); | |
13917 | if (PyErr_Occurred()) SWIG_fail; | |
13918 | } | |
13919 | resultobj = PyInt_FromLong((long)result); | |
13920 | { | |
13921 | if (temp2) | |
13922 | delete arg2; | |
13923 | } | |
13924 | return resultobj; | |
13925 | fail: | |
13926 | { | |
13927 | if (temp2) | |
13928 | delete arg2; | |
13929 | } | |
13930 | return NULL; | |
13931 | } | |
13932 | ||
13933 | ||
13934 | static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13935 | PyObject *resultobj; | |
13936 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13937 | wxString *arg2 = 0 ; | |
13938 | double arg3 = (double) 0.0 ; | |
13939 | double result; | |
423f194a | 13940 | bool temp2 = False ; |
d14a1e28 RD |
13941 | PyObject * obj0 = 0 ; |
13942 | PyObject * obj1 = 0 ; | |
13943 | char *kwnames[] = { | |
13944 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13945 | }; | |
13946 | ||
13947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|d:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
13948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13949 | { | |
13950 | arg2 = wxString_in_helper(obj1); | |
13951 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13952 | temp2 = True; |
d14a1e28 RD |
13953 | } |
13954 | { | |
13955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13956 | result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3); | |
13957 | ||
13958 | wxPyEndAllowThreads(__tstate); | |
13959 | if (PyErr_Occurred()) SWIG_fail; | |
13960 | } | |
13961 | resultobj = PyFloat_FromDouble(result); | |
13962 | { | |
13963 | if (temp2) | |
13964 | delete arg2; | |
13965 | } | |
13966 | return resultobj; | |
13967 | fail: | |
13968 | { | |
13969 | if (temp2) | |
13970 | delete arg2; | |
13971 | } | |
13972 | return NULL; | |
13973 | } | |
13974 | ||
13975 | ||
13976 | static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13977 | PyObject *resultobj; | |
13978 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
13979 | wxString *arg2 = 0 ; | |
423f194a | 13980 | bool arg3 = (bool) False ; |
d14a1e28 | 13981 | bool result; |
423f194a | 13982 | bool temp2 = False ; |
d14a1e28 RD |
13983 | PyObject * obj0 = 0 ; |
13984 | PyObject * obj1 = 0 ; | |
13985 | PyObject * obj2 = 0 ; | |
13986 | char *kwnames[] = { | |
13987 | (char *) "self",(char *) "key",(char *) "defaultVal", NULL | |
13988 | }; | |
13989 | ||
13990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13992 | { | |
13993 | arg2 = wxString_in_helper(obj1); | |
13994 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13995 | temp2 = True; |
d14a1e28 RD |
13996 | } |
13997 | if (obj2) { | |
13998 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
14001 | { | |
14002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14003 | result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3); | |
14004 | ||
14005 | wxPyEndAllowThreads(__tstate); | |
14006 | if (PyErr_Occurred()) SWIG_fail; | |
14007 | } | |
14008 | resultobj = PyInt_FromLong((long)result); | |
14009 | { | |
14010 | if (temp2) | |
14011 | delete arg2; | |
14012 | } | |
14013 | return resultobj; | |
14014 | fail: | |
14015 | { | |
14016 | if (temp2) | |
14017 | delete arg2; | |
14018 | } | |
14019 | return NULL; | |
14020 | } | |
14021 | ||
14022 | ||
14023 | static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14024 | PyObject *resultobj; | |
14025 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14026 | wxString *arg2 = 0 ; | |
14027 | wxString *arg3 = 0 ; | |
14028 | bool result; | |
423f194a RD |
14029 | bool temp2 = False ; |
14030 | bool temp3 = False ; | |
d14a1e28 RD |
14031 | PyObject * obj0 = 0 ; |
14032 | PyObject * obj1 = 0 ; | |
14033 | PyObject * obj2 = 0 ; | |
14034 | char *kwnames[] = { | |
14035 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14036 | }; | |
14037 | ||
14038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14040 | { | |
14041 | arg2 = wxString_in_helper(obj1); | |
14042 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14043 | temp2 = True; |
d14a1e28 RD |
14044 | } |
14045 | { | |
14046 | arg3 = wxString_in_helper(obj2); | |
14047 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14048 | temp3 = True; |
d14a1e28 RD |
14049 | } |
14050 | { | |
14051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14052 | result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3); | |
14053 | ||
14054 | wxPyEndAllowThreads(__tstate); | |
14055 | if (PyErr_Occurred()) SWIG_fail; | |
14056 | } | |
14057 | resultobj = PyInt_FromLong((long)result); | |
14058 | { | |
14059 | if (temp2) | |
14060 | delete arg2; | |
14061 | } | |
14062 | { | |
14063 | if (temp3) | |
14064 | delete arg3; | |
14065 | } | |
14066 | return resultobj; | |
14067 | fail: | |
14068 | { | |
14069 | if (temp2) | |
14070 | delete arg2; | |
14071 | } | |
14072 | { | |
14073 | if (temp3) | |
14074 | delete arg3; | |
14075 | } | |
14076 | return NULL; | |
14077 | } | |
14078 | ||
14079 | ||
14080 | static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14081 | PyObject *resultobj; | |
14082 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14083 | wxString *arg2 = 0 ; | |
14084 | long arg3 ; | |
14085 | bool result; | |
423f194a | 14086 | bool temp2 = False ; |
d14a1e28 RD |
14087 | PyObject * obj0 = 0 ; |
14088 | PyObject * obj1 = 0 ; | |
14089 | char *kwnames[] = { | |
14090 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14091 | }; | |
14092 | ||
14093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOl:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14095 | { | |
14096 | arg2 = wxString_in_helper(obj1); | |
14097 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14098 | temp2 = True; |
d14a1e28 RD |
14099 | } |
14100 | { | |
14101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14102 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14103 | ||
14104 | wxPyEndAllowThreads(__tstate); | |
14105 | if (PyErr_Occurred()) SWIG_fail; | |
14106 | } | |
14107 | resultobj = PyInt_FromLong((long)result); | |
14108 | { | |
14109 | if (temp2) | |
14110 | delete arg2; | |
14111 | } | |
14112 | return resultobj; | |
14113 | fail: | |
14114 | { | |
14115 | if (temp2) | |
14116 | delete arg2; | |
14117 | } | |
14118 | return NULL; | |
14119 | } | |
14120 | ||
14121 | ||
14122 | static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14123 | PyObject *resultobj; | |
14124 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14125 | wxString *arg2 = 0 ; | |
14126 | double arg3 ; | |
14127 | bool result; | |
423f194a | 14128 | bool temp2 = False ; |
d14a1e28 RD |
14129 | PyObject * obj0 = 0 ; |
14130 | PyObject * obj1 = 0 ; | |
14131 | char *kwnames[] = { | |
14132 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14133 | }; | |
14134 | ||
14135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOd:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
14136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14137 | { | |
14138 | arg2 = wxString_in_helper(obj1); | |
14139 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14140 | temp2 = True; |
d14a1e28 RD |
14141 | } |
14142 | { | |
14143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14144 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14145 | ||
14146 | wxPyEndAllowThreads(__tstate); | |
14147 | if (PyErr_Occurred()) SWIG_fail; | |
14148 | } | |
14149 | resultobj = PyInt_FromLong((long)result); | |
14150 | { | |
14151 | if (temp2) | |
14152 | delete arg2; | |
14153 | } | |
14154 | return resultobj; | |
14155 | fail: | |
14156 | { | |
14157 | if (temp2) | |
14158 | delete arg2; | |
14159 | } | |
14160 | return NULL; | |
14161 | } | |
14162 | ||
14163 | ||
14164 | static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14165 | PyObject *resultobj; | |
14166 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14167 | wxString *arg2 = 0 ; | |
14168 | bool arg3 ; | |
14169 | bool result; | |
423f194a | 14170 | bool temp2 = False ; |
d14a1e28 RD |
14171 | PyObject * obj0 = 0 ; |
14172 | PyObject * obj1 = 0 ; | |
14173 | PyObject * obj2 = 0 ; | |
14174 | char *kwnames[] = { | |
14175 | (char *) "self",(char *) "key",(char *) "value", NULL | |
14176 | }; | |
14177 | ||
14178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14180 | { | |
14181 | arg2 = wxString_in_helper(obj1); | |
14182 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14183 | temp2 = True; |
d14a1e28 RD |
14184 | } |
14185 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14186 | if (PyErr_Occurred()) SWIG_fail; | |
14187 | { | |
14188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14189 | result = (bool)(arg1)->Write((wxString const &)*arg2,arg3); | |
14190 | ||
14191 | wxPyEndAllowThreads(__tstate); | |
14192 | if (PyErr_Occurred()) SWIG_fail; | |
14193 | } | |
14194 | resultobj = PyInt_FromLong((long)result); | |
14195 | { | |
14196 | if (temp2) | |
14197 | delete arg2; | |
14198 | } | |
14199 | return resultobj; | |
14200 | fail: | |
14201 | { | |
14202 | if (temp2) | |
14203 | delete arg2; | |
14204 | } | |
14205 | return NULL; | |
14206 | } | |
14207 | ||
14208 | ||
14209 | static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14210 | PyObject *resultobj; | |
14211 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14212 | bool arg2 = (bool) False ; |
d14a1e28 RD |
14213 | bool result; |
14214 | PyObject * obj0 = 0 ; | |
14215 | PyObject * obj1 = 0 ; | |
14216 | char *kwnames[] = { | |
14217 | (char *) "self",(char *) "bCurrentOnly", NULL | |
14218 | }; | |
14219 | ||
14220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail; | |
14221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14222 | if (obj1) { | |
14223 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14224 | if (PyErr_Occurred()) SWIG_fail; | |
14225 | } | |
14226 | { | |
14227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14228 | result = (bool)(arg1)->Flush(arg2); | |
14229 | ||
14230 | wxPyEndAllowThreads(__tstate); | |
14231 | if (PyErr_Occurred()) SWIG_fail; | |
14232 | } | |
14233 | resultobj = PyInt_FromLong((long)result); | |
14234 | return resultobj; | |
14235 | fail: | |
14236 | return NULL; | |
14237 | } | |
14238 | ||
14239 | ||
14240 | static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14241 | PyObject *resultobj; | |
14242 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14243 | wxString *arg2 = 0 ; | |
14244 | wxString *arg3 = 0 ; | |
14245 | bool result; | |
423f194a RD |
14246 | bool temp2 = False ; |
14247 | bool temp3 = False ; | |
d14a1e28 RD |
14248 | PyObject * obj0 = 0 ; |
14249 | PyObject * obj1 = 0 ; | |
14250 | PyObject * obj2 = 0 ; | |
14251 | char *kwnames[] = { | |
14252 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14253 | }; | |
14254 | ||
14255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14257 | { | |
14258 | arg2 = wxString_in_helper(obj1); | |
14259 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14260 | temp2 = True; |
d14a1e28 RD |
14261 | } |
14262 | { | |
14263 | arg3 = wxString_in_helper(obj2); | |
14264 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14265 | temp3 = True; |
d14a1e28 RD |
14266 | } |
14267 | { | |
14268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14269 | result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3); | |
14270 | ||
14271 | wxPyEndAllowThreads(__tstate); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
14274 | resultobj = PyInt_FromLong((long)result); | |
14275 | { | |
14276 | if (temp2) | |
14277 | delete arg2; | |
14278 | } | |
14279 | { | |
14280 | if (temp3) | |
14281 | delete arg3; | |
14282 | } | |
14283 | return resultobj; | |
14284 | fail: | |
14285 | { | |
14286 | if (temp2) | |
14287 | delete arg2; | |
14288 | } | |
14289 | { | |
14290 | if (temp3) | |
14291 | delete arg3; | |
14292 | } | |
14293 | return NULL; | |
14294 | } | |
14295 | ||
14296 | ||
14297 | static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14298 | PyObject *resultobj; | |
14299 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14300 | wxString *arg2 = 0 ; | |
14301 | wxString *arg3 = 0 ; | |
14302 | bool result; | |
423f194a RD |
14303 | bool temp2 = False ; |
14304 | bool temp3 = False ; | |
d14a1e28 RD |
14305 | PyObject * obj0 = 0 ; |
14306 | PyObject * obj1 = 0 ; | |
14307 | PyObject * obj2 = 0 ; | |
14308 | char *kwnames[] = { | |
14309 | (char *) "self",(char *) "oldName",(char *) "newName", NULL | |
14310 | }; | |
14311 | ||
14312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14314 | { | |
14315 | arg2 = wxString_in_helper(obj1); | |
14316 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14317 | temp2 = True; |
d14a1e28 RD |
14318 | } |
14319 | { | |
14320 | arg3 = wxString_in_helper(obj2); | |
14321 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14322 | temp3 = True; |
d14a1e28 RD |
14323 | } |
14324 | { | |
14325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14326 | result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3); | |
14327 | ||
14328 | wxPyEndAllowThreads(__tstate); | |
14329 | if (PyErr_Occurred()) SWIG_fail; | |
14330 | } | |
14331 | resultobj = PyInt_FromLong((long)result); | |
14332 | { | |
14333 | if (temp2) | |
14334 | delete arg2; | |
14335 | } | |
14336 | { | |
14337 | if (temp3) | |
14338 | delete arg3; | |
14339 | } | |
14340 | return resultobj; | |
14341 | fail: | |
14342 | { | |
14343 | if (temp2) | |
14344 | delete arg2; | |
14345 | } | |
14346 | { | |
14347 | if (temp3) | |
14348 | delete arg3; | |
14349 | } | |
14350 | return NULL; | |
14351 | } | |
14352 | ||
14353 | ||
14354 | static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14355 | PyObject *resultobj; | |
14356 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14357 | wxString *arg2 = 0 ; | |
423f194a | 14358 | bool arg3 = (bool) True ; |
d14a1e28 | 14359 | bool result; |
423f194a | 14360 | bool temp2 = False ; |
d14a1e28 RD |
14361 | PyObject * obj0 = 0 ; |
14362 | PyObject * obj1 = 0 ; | |
14363 | PyObject * obj2 = 0 ; | |
14364 | char *kwnames[] = { | |
14365 | (char *) "self",(char *) "key",(char *) "bDeleteGroupIfEmpty", NULL | |
14366 | }; | |
14367 | ||
14368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14370 | { | |
14371 | arg2 = wxString_in_helper(obj1); | |
14372 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14373 | temp2 = True; |
d14a1e28 RD |
14374 | } |
14375 | if (obj2) { | |
14376 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14377 | if (PyErr_Occurred()) SWIG_fail; | |
14378 | } | |
14379 | { | |
14380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14381 | result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3); | |
14382 | ||
14383 | wxPyEndAllowThreads(__tstate); | |
14384 | if (PyErr_Occurred()) SWIG_fail; | |
14385 | } | |
14386 | resultobj = PyInt_FromLong((long)result); | |
14387 | { | |
14388 | if (temp2) | |
14389 | delete arg2; | |
14390 | } | |
14391 | return resultobj; | |
14392 | fail: | |
14393 | { | |
14394 | if (temp2) | |
14395 | delete arg2; | |
14396 | } | |
14397 | return NULL; | |
14398 | } | |
14399 | ||
14400 | ||
14401 | static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14402 | PyObject *resultobj; | |
14403 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14404 | wxString *arg2 = 0 ; | |
14405 | bool result; | |
423f194a | 14406 | bool temp2 = False ; |
d14a1e28 RD |
14407 | PyObject * obj0 = 0 ; |
14408 | PyObject * obj1 = 0 ; | |
14409 | char *kwnames[] = { | |
14410 | (char *) "self",(char *) "key", NULL | |
14411 | }; | |
14412 | ||
14413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail; | |
14414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14415 | { | |
14416 | arg2 = wxString_in_helper(obj1); | |
14417 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14418 | temp2 = True; |
d14a1e28 RD |
14419 | } |
14420 | { | |
14421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14422 | result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2); | |
14423 | ||
14424 | wxPyEndAllowThreads(__tstate); | |
14425 | if (PyErr_Occurred()) SWIG_fail; | |
14426 | } | |
14427 | resultobj = PyInt_FromLong((long)result); | |
14428 | { | |
14429 | if (temp2) | |
14430 | delete arg2; | |
14431 | } | |
14432 | return resultobj; | |
14433 | fail: | |
14434 | { | |
14435 | if (temp2) | |
14436 | delete arg2; | |
14437 | } | |
14438 | return NULL; | |
14439 | } | |
14440 | ||
14441 | ||
14442 | static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14443 | PyObject *resultobj; | |
14444 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14445 | bool result; | |
14446 | PyObject * obj0 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "self", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail; | |
14452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14453 | { | |
14454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14455 | result = (bool)(arg1)->DeleteAll(); | |
14456 | ||
14457 | wxPyEndAllowThreads(__tstate); | |
14458 | if (PyErr_Occurred()) SWIG_fail; | |
14459 | } | |
14460 | resultobj = PyInt_FromLong((long)result); | |
14461 | return resultobj; | |
14462 | fail: | |
14463 | return NULL; | |
14464 | } | |
14465 | ||
14466 | ||
14467 | static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14468 | PyObject *resultobj; | |
14469 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14470 | bool result; | |
14471 | PyObject * obj0 = 0 ; | |
14472 | char *kwnames[] = { | |
14473 | (char *) "self", NULL | |
14474 | }; | |
14475 | ||
14476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail; | |
14477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14478 | { | |
14479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14480 | result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars(); | |
14481 | ||
14482 | wxPyEndAllowThreads(__tstate); | |
14483 | if (PyErr_Occurred()) SWIG_fail; | |
14484 | } | |
14485 | resultobj = PyInt_FromLong((long)result); | |
14486 | return resultobj; | |
14487 | fail: | |
14488 | return NULL; | |
14489 | } | |
14490 | ||
14491 | ||
14492 | static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14493 | PyObject *resultobj; | |
14494 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14495 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14496 | PyObject * obj0 = 0 ; |
14497 | PyObject * obj1 = 0 ; | |
14498 | char *kwnames[] = { | |
14499 | (char *) "self",(char *) "bDoIt", NULL | |
14500 | }; | |
14501 | ||
14502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14504 | if (obj1) { | |
14505 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14506 | if (PyErr_Occurred()) SWIG_fail; | |
14507 | } | |
14508 | { | |
14509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14510 | (arg1)->SetExpandEnvVars(arg2); | |
14511 | ||
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
14515 | Py_INCREF(Py_None); resultobj = Py_None; | |
14516 | return resultobj; | |
14517 | fail: | |
14518 | return NULL; | |
14519 | } | |
14520 | ||
14521 | ||
14522 | static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14523 | PyObject *resultobj; | |
14524 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
423f194a | 14525 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14526 | PyObject * obj0 = 0 ; |
14527 | PyObject * obj1 = 0 ; | |
14528 | char *kwnames[] = { | |
14529 | (char *) "self",(char *) "bDoIt", NULL | |
14530 | }; | |
14531 | ||
14532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail; | |
14533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14534 | if (obj1) { | |
14535 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
14536 | if (PyErr_Occurred()) SWIG_fail; | |
14537 | } | |
14538 | { | |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14540 | (arg1)->SetRecordDefaults(arg2); | |
14541 | ||
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
14545 | Py_INCREF(Py_None); resultobj = Py_None; | |
14546 | return resultobj; | |
14547 | fail: | |
14548 | return NULL; | |
14549 | } | |
14550 | ||
14551 | ||
14552 | static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14553 | PyObject *resultobj; | |
14554 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14555 | bool result; | |
14556 | PyObject * obj0 = 0 ; | |
14557 | char *kwnames[] = { | |
14558 | (char *) "self", NULL | |
14559 | }; | |
14560 | ||
14561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail; | |
14562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14563 | { | |
14564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14565 | result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults(); | |
14566 | ||
14567 | wxPyEndAllowThreads(__tstate); | |
14568 | if (PyErr_Occurred()) SWIG_fail; | |
14569 | } | |
14570 | resultobj = PyInt_FromLong((long)result); | |
14571 | return resultobj; | |
14572 | fail: | |
14573 | return NULL; | |
14574 | } | |
14575 | ||
14576 | ||
14577 | static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14578 | PyObject *resultobj; | |
14579 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14580 | wxString *arg2 = 0 ; | |
14581 | wxString result; | |
423f194a | 14582 | bool temp2 = False ; |
d14a1e28 RD |
14583 | PyObject * obj0 = 0 ; |
14584 | PyObject * obj1 = 0 ; | |
14585 | char *kwnames[] = { | |
14586 | (char *) "self",(char *) "str", NULL | |
14587 | }; | |
14588 | ||
14589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail; | |
14590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14591 | { | |
14592 | arg2 = wxString_in_helper(obj1); | |
14593 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14594 | temp2 = True; |
d14a1e28 RD |
14595 | } |
14596 | { | |
14597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14598 | result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2); | |
14599 | ||
14600 | wxPyEndAllowThreads(__tstate); | |
14601 | if (PyErr_Occurred()) SWIG_fail; | |
14602 | } | |
14603 | { | |
14604 | #if wxUSE_UNICODE | |
14605 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14606 | #else | |
14607 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14608 | #endif | |
14609 | } | |
14610 | { | |
14611 | if (temp2) | |
14612 | delete arg2; | |
14613 | } | |
14614 | return resultobj; | |
14615 | fail: | |
14616 | { | |
14617 | if (temp2) | |
14618 | delete arg2; | |
14619 | } | |
14620 | return NULL; | |
14621 | } | |
14622 | ||
14623 | ||
14624 | static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14625 | PyObject *resultobj; | |
14626 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14627 | wxString result; | |
14628 | PyObject * obj0 = 0 ; | |
14629 | char *kwnames[] = { | |
14630 | (char *) "self", NULL | |
14631 | }; | |
14632 | ||
14633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail; | |
14634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14635 | { | |
14636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14637 | result = ((wxConfigBase const *)arg1)->GetAppName(); | |
14638 | ||
14639 | wxPyEndAllowThreads(__tstate); | |
14640 | if (PyErr_Occurred()) SWIG_fail; | |
14641 | } | |
14642 | { | |
14643 | #if wxUSE_UNICODE | |
14644 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14645 | #else | |
14646 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14647 | #endif | |
14648 | } | |
14649 | return resultobj; | |
14650 | fail: | |
14651 | return NULL; | |
14652 | } | |
14653 | ||
14654 | ||
14655 | static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14656 | PyObject *resultobj; | |
14657 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14658 | wxString result; | |
14659 | PyObject * obj0 = 0 ; | |
14660 | char *kwnames[] = { | |
14661 | (char *) "self", NULL | |
14662 | }; | |
14663 | ||
14664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail; | |
14665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14666 | { | |
14667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14668 | result = ((wxConfigBase const *)arg1)->GetVendorName(); | |
14669 | ||
14670 | wxPyEndAllowThreads(__tstate); | |
14671 | if (PyErr_Occurred()) SWIG_fail; | |
14672 | } | |
14673 | { | |
14674 | #if wxUSE_UNICODE | |
14675 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14676 | #else | |
14677 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14678 | #endif | |
14679 | } | |
14680 | return resultobj; | |
14681 | fail: | |
14682 | return NULL; | |
14683 | } | |
14684 | ||
14685 | ||
14686 | static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14687 | PyObject *resultobj; | |
14688 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14689 | wxString *arg2 = 0 ; | |
423f194a | 14690 | bool temp2 = False ; |
d14a1e28 RD |
14691 | PyObject * obj0 = 0 ; |
14692 | PyObject * obj1 = 0 ; | |
14693 | char *kwnames[] = { | |
14694 | (char *) "self",(char *) "appName", NULL | |
14695 | }; | |
14696 | ||
14697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
14698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14699 | { | |
14700 | arg2 = wxString_in_helper(obj1); | |
14701 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14702 | temp2 = True; |
d14a1e28 RD |
14703 | } |
14704 | { | |
14705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14706 | (arg1)->SetAppName((wxString const &)*arg2); | |
14707 | ||
14708 | wxPyEndAllowThreads(__tstate); | |
14709 | if (PyErr_Occurred()) SWIG_fail; | |
14710 | } | |
14711 | Py_INCREF(Py_None); resultobj = Py_None; | |
14712 | { | |
14713 | if (temp2) | |
14714 | delete arg2; | |
14715 | } | |
14716 | return resultobj; | |
14717 | fail: | |
14718 | { | |
14719 | if (temp2) | |
14720 | delete arg2; | |
14721 | } | |
14722 | return NULL; | |
14723 | } | |
14724 | ||
14725 | ||
14726 | static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14727 | PyObject *resultobj; | |
14728 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14729 | wxString *arg2 = 0 ; | |
423f194a | 14730 | bool temp2 = False ; |
d14a1e28 RD |
14731 | PyObject * obj0 = 0 ; |
14732 | PyObject * obj1 = 0 ; | |
14733 | char *kwnames[] = { | |
14734 | (char *) "self",(char *) "vendorName", NULL | |
14735 | }; | |
14736 | ||
14737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
14738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14739 | { | |
14740 | arg2 = wxString_in_helper(obj1); | |
14741 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14742 | temp2 = True; |
d14a1e28 RD |
14743 | } |
14744 | { | |
14745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14746 | (arg1)->SetVendorName((wxString const &)*arg2); | |
14747 | ||
14748 | wxPyEndAllowThreads(__tstate); | |
14749 | if (PyErr_Occurred()) SWIG_fail; | |
14750 | } | |
14751 | Py_INCREF(Py_None); resultobj = Py_None; | |
14752 | { | |
14753 | if (temp2) | |
14754 | delete arg2; | |
14755 | } | |
14756 | return resultobj; | |
14757 | fail: | |
14758 | { | |
14759 | if (temp2) | |
14760 | delete arg2; | |
14761 | } | |
14762 | return NULL; | |
14763 | } | |
14764 | ||
14765 | ||
14766 | static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14767 | PyObject *resultobj; | |
14768 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14769 | long arg2 ; | |
14770 | PyObject * obj0 = 0 ; | |
14771 | char *kwnames[] = { | |
14772 | (char *) "self",(char *) "style", NULL | |
14773 | }; | |
14774 | ||
14775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ConfigBase_SetStyle",kwnames,&obj0,&arg2)) goto fail; | |
14776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14777 | { | |
14778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14779 | (arg1)->SetStyle(arg2); | |
14780 | ||
14781 | wxPyEndAllowThreads(__tstate); | |
14782 | if (PyErr_Occurred()) SWIG_fail; | |
14783 | } | |
14784 | Py_INCREF(Py_None); resultobj = Py_None; | |
14785 | return resultobj; | |
14786 | fail: | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
14791 | static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14792 | PyObject *resultobj; | |
14793 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14794 | long result; | |
14795 | PyObject * obj0 = 0 ; | |
14796 | char *kwnames[] = { | |
14797 | (char *) "self", NULL | |
14798 | }; | |
14799 | ||
14800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail; | |
14801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14802 | { | |
14803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14804 | result = (long)((wxConfigBase const *)arg1)->GetStyle(); | |
14805 | ||
14806 | wxPyEndAllowThreads(__tstate); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | resultobj = PyInt_FromLong((long)result); | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) { | |
14817 | PyObject *obj; | |
14818 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14819 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj); | |
14820 | Py_INCREF(obj); | |
14821 | return Py_BuildValue((char *)""); | |
14822 | } | |
14823 | static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14824 | PyObject *resultobj; | |
14825 | wxConfigBase *arg1 = (wxConfigBase *) 0 ; | |
14826 | wxString *arg2 = 0 ; | |
14827 | wxConfigPathChanger *result; | |
423f194a | 14828 | bool temp2 = False ; |
d14a1e28 RD |
14829 | PyObject * obj0 = 0 ; |
14830 | PyObject * obj1 = 0 ; | |
14831 | char *kwnames[] = { | |
14832 | (char *) "pContainer",(char *) "strEntry", NULL | |
14833 | }; | |
14834 | ||
14835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail; | |
14836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14837 | { | |
14838 | arg2 = wxString_in_helper(obj1); | |
14839 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14840 | temp2 = True; |
d14a1e28 RD |
14841 | } |
14842 | { | |
14843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14844 | result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2); | |
14845 | ||
14846 | wxPyEndAllowThreads(__tstate); | |
14847 | if (PyErr_Occurred()) SWIG_fail; | |
14848 | } | |
14849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfigPathChanger, 1); | |
14850 | { | |
14851 | if (temp2) | |
14852 | delete arg2; | |
14853 | } | |
14854 | return resultobj; | |
14855 | fail: | |
14856 | { | |
14857 | if (temp2) | |
14858 | delete arg2; | |
14859 | } | |
14860 | return NULL; | |
14861 | } | |
14862 | ||
14863 | ||
14864 | static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14865 | PyObject *resultobj; | |
14866 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14867 | PyObject * obj0 = 0 ; | |
14868 | char *kwnames[] = { | |
14869 | (char *) "self", NULL | |
14870 | }; | |
14871 | ||
14872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail; | |
14873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14874 | { | |
14875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14876 | delete arg1; | |
14877 | ||
14878 | wxPyEndAllowThreads(__tstate); | |
14879 | if (PyErr_Occurred()) SWIG_fail; | |
14880 | } | |
14881 | Py_INCREF(Py_None); resultobj = Py_None; | |
14882 | return resultobj; | |
14883 | fail: | |
14884 | return NULL; | |
14885 | } | |
14886 | ||
14887 | ||
14888 | static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14889 | PyObject *resultobj; | |
14890 | wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ; | |
14891 | wxString *result; | |
14892 | PyObject * obj0 = 0 ; | |
14893 | char *kwnames[] = { | |
14894 | (char *) "self", NULL | |
14895 | }; | |
14896 | ||
14897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail; | |
14898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfigPathChanger,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | { | |
14902 | wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name(); | |
14903 | result = (wxString *) &_result_ref; | |
14904 | } | |
14905 | ||
14906 | wxPyEndAllowThreads(__tstate); | |
14907 | if (PyErr_Occurred()) SWIG_fail; | |
14908 | } | |
0f774bef RD |
14909 | { |
14910 | #if wxUSE_UNICODE | |
14911 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14912 | #else | |
14913 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14914 | #endif | |
14915 | } | |
d14a1e28 RD |
14916 | return resultobj; |
14917 | fail: | |
14918 | return NULL; | |
14919 | } | |
14920 | ||
14921 | ||
14922 | static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) { | |
14923 | PyObject *obj; | |
14924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14925 | SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj); | |
14926 | Py_INCREF(obj); | |
14927 | return Py_BuildValue((char *)""); | |
14928 | } | |
14929 | static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14930 | PyObject *resultobj; | |
14931 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
14932 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
14933 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
14934 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
14935 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14936 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14937 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14938 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14939 | long arg5 = (long) 0 ; | |
14940 | wxConfig *result; | |
423f194a RD |
14941 | bool temp1 = False ; |
14942 | bool temp2 = False ; | |
14943 | bool temp3 = False ; | |
14944 | bool temp4 = False ; | |
d14a1e28 RD |
14945 | PyObject * obj0 = 0 ; |
14946 | PyObject * obj1 = 0 ; | |
14947 | PyObject * obj2 = 0 ; | |
14948 | PyObject * obj3 = 0 ; | |
14949 | char *kwnames[] = { | |
14950 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
14951 | }; | |
14952 | ||
14953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
14954 | if (obj0) { | |
14955 | { | |
14956 | arg1 = wxString_in_helper(obj0); | |
14957 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 14958 | temp1 = True; |
d14a1e28 RD |
14959 | } |
14960 | } | |
14961 | if (obj1) { | |
14962 | { | |
14963 | arg2 = wxString_in_helper(obj1); | |
14964 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 14965 | temp2 = True; |
d14a1e28 RD |
14966 | } |
14967 | } | |
14968 | if (obj2) { | |
14969 | { | |
14970 | arg3 = wxString_in_helper(obj2); | |
14971 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14972 | temp3 = True; |
d14a1e28 RD |
14973 | } |
14974 | } | |
14975 | if (obj3) { | |
14976 | { | |
14977 | arg4 = wxString_in_helper(obj3); | |
14978 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14979 | temp4 = True; |
d14a1e28 RD |
14980 | } |
14981 | } | |
14982 | { | |
14983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14984 | result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
14985 | ||
14986 | wxPyEndAllowThreads(__tstate); | |
14987 | if (PyErr_Occurred()) SWIG_fail; | |
14988 | } | |
14989 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxConfig, 1); | |
14990 | { | |
14991 | if (temp1) | |
14992 | delete arg1; | |
14993 | } | |
14994 | { | |
14995 | if (temp2) | |
14996 | delete arg2; | |
14997 | } | |
14998 | { | |
14999 | if (temp3) | |
15000 | delete arg3; | |
15001 | } | |
15002 | { | |
15003 | if (temp4) | |
15004 | delete arg4; | |
15005 | } | |
15006 | return resultobj; | |
15007 | fail: | |
15008 | { | |
15009 | if (temp1) | |
15010 | delete arg1; | |
15011 | } | |
15012 | { | |
15013 | if (temp2) | |
15014 | delete arg2; | |
15015 | } | |
15016 | { | |
15017 | if (temp3) | |
15018 | delete arg3; | |
15019 | } | |
15020 | { | |
15021 | if (temp4) | |
15022 | delete arg4; | |
15023 | } | |
15024 | return NULL; | |
15025 | } | |
15026 | ||
15027 | ||
15028 | static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15029 | PyObject *resultobj; | |
15030 | wxConfig *arg1 = (wxConfig *) 0 ; | |
15031 | PyObject * obj0 = 0 ; | |
15032 | char *kwnames[] = { | |
15033 | (char *) "self", NULL | |
15034 | }; | |
15035 | ||
15036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail; | |
15037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15038 | { | |
15039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15040 | delete arg1; | |
15041 | ||
15042 | wxPyEndAllowThreads(__tstate); | |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
15044 | } | |
15045 | Py_INCREF(Py_None); resultobj = Py_None; | |
15046 | return resultobj; | |
15047 | fail: | |
15048 | return NULL; | |
15049 | } | |
15050 | ||
15051 | ||
15052 | static PyObject * Config_swigregister(PyObject *self, PyObject *args) { | |
15053 | PyObject *obj; | |
15054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15055 | SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj); | |
15056 | Py_INCREF(obj); | |
15057 | return Py_BuildValue((char *)""); | |
15058 | } | |
15059 | static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15060 | PyObject *resultobj; | |
15061 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15062 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15063 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15064 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15065 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15066 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15067 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15068 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15069 | long arg5 = (long) 0 ; | |
15070 | wxFileConfig *result; | |
423f194a RD |
15071 | bool temp1 = False ; |
15072 | bool temp2 = False ; | |
15073 | bool temp3 = False ; | |
15074 | bool temp4 = False ; | |
d14a1e28 RD |
15075 | PyObject * obj0 = 0 ; |
15076 | PyObject * obj1 = 0 ; | |
15077 | PyObject * obj2 = 0 ; | |
15078 | PyObject * obj3 = 0 ; | |
15079 | char *kwnames[] = { | |
15080 | (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL | |
15081 | }; | |
15082 | ||
15083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOl:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
15084 | if (obj0) { | |
15085 | { | |
15086 | arg1 = wxString_in_helper(obj0); | |
15087 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15088 | temp1 = True; |
d14a1e28 RD |
15089 | } |
15090 | } | |
15091 | if (obj1) { | |
15092 | { | |
15093 | arg2 = wxString_in_helper(obj1); | |
15094 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15095 | temp2 = True; |
d14a1e28 RD |
15096 | } |
15097 | } | |
15098 | if (obj2) { | |
15099 | { | |
15100 | arg3 = wxString_in_helper(obj2); | |
15101 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 15102 | temp3 = True; |
d14a1e28 RD |
15103 | } |
15104 | } | |
15105 | if (obj3) { | |
15106 | { | |
15107 | arg4 = wxString_in_helper(obj3); | |
15108 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15109 | temp4 = True; |
d14a1e28 RD |
15110 | } |
15111 | } | |
15112 | { | |
15113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15114 | result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
15115 | ||
15116 | wxPyEndAllowThreads(__tstate); | |
15117 | if (PyErr_Occurred()) SWIG_fail; | |
15118 | } | |
15119 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileConfig, 1); | |
15120 | { | |
15121 | if (temp1) | |
15122 | delete arg1; | |
15123 | } | |
15124 | { | |
15125 | if (temp2) | |
15126 | delete arg2; | |
15127 | } | |
15128 | { | |
15129 | if (temp3) | |
15130 | delete arg3; | |
15131 | } | |
15132 | { | |
15133 | if (temp4) | |
15134 | delete arg4; | |
15135 | } | |
15136 | return resultobj; | |
15137 | fail: | |
15138 | { | |
15139 | if (temp1) | |
15140 | delete arg1; | |
15141 | } | |
15142 | { | |
15143 | if (temp2) | |
15144 | delete arg2; | |
15145 | } | |
15146 | { | |
15147 | if (temp3) | |
15148 | delete arg3; | |
15149 | } | |
15150 | { | |
15151 | if (temp4) | |
15152 | delete arg4; | |
15153 | } | |
15154 | return NULL; | |
15155 | } | |
15156 | ||
15157 | ||
15158 | static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15159 | PyObject *resultobj; | |
15160 | wxFileConfig *arg1 = (wxFileConfig *) 0 ; | |
15161 | PyObject * obj0 = 0 ; | |
15162 | char *kwnames[] = { | |
15163 | (char *) "self", NULL | |
15164 | }; | |
15165 | ||
15166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail; | |
15167 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileConfig,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15168 | { | |
15169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15170 | delete arg1; | |
15171 | ||
15172 | wxPyEndAllowThreads(__tstate); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
15175 | Py_INCREF(Py_None); resultobj = Py_None; | |
15176 | return resultobj; | |
15177 | fail: | |
15178 | return NULL; | |
15179 | } | |
15180 | ||
15181 | ||
15182 | static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) { | |
15183 | PyObject *obj; | |
15184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15185 | SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj); | |
15186 | Py_INCREF(obj); | |
15187 | return Py_BuildValue((char *)""); | |
15188 | } | |
15189 | static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15190 | PyObject *resultobj; | |
15191 | wxString *arg1 = 0 ; | |
15192 | wxString result; | |
423f194a | 15193 | bool temp1 = False ; |
d14a1e28 RD |
15194 | PyObject * obj0 = 0 ; |
15195 | char *kwnames[] = { | |
15196 | (char *) "sz", NULL | |
15197 | }; | |
15198 | ||
15199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail; | |
15200 | { | |
15201 | arg1 = wxString_in_helper(obj0); | |
15202 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15203 | temp1 = True; |
d14a1e28 RD |
15204 | } |
15205 | { | |
15206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15207 | result = wxExpandEnvVars((wxString const &)*arg1); | |
15208 | ||
15209 | wxPyEndAllowThreads(__tstate); | |
15210 | if (PyErr_Occurred()) SWIG_fail; | |
15211 | } | |
15212 | { | |
15213 | #if wxUSE_UNICODE | |
15214 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15215 | #else | |
15216 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15217 | #endif | |
15218 | } | |
15219 | { | |
15220 | if (temp1) | |
15221 | delete arg1; | |
15222 | } | |
15223 | return resultobj; | |
15224 | fail: | |
15225 | { | |
15226 | if (temp1) | |
15227 | delete arg1; | |
15228 | } | |
15229 | return NULL; | |
15230 | } | |
15231 | ||
15232 | ||
cbd72d4f RD |
15233 | static int _wrap_DateFormatStr_set(PyObject *_val) { |
15234 | PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only."); | |
15235 | return 1; | |
15236 | } | |
15237 | ||
15238 | ||
15239 | static PyObject *_wrap_DateFormatStr_get() { | |
15240 | PyObject *pyobj; | |
15241 | ||
15242 | { | |
15243 | #if wxUSE_UNICODE | |
15244 | pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
15245 | #else | |
15246 | pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len()); | |
15247 | #endif | |
15248 | } | |
15249 | return pyobj; | |
15250 | } | |
15251 | ||
15252 | ||
15253 | static int _wrap_TimeSpanFormatStr_set(PyObject *_val) { | |
15254 | PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only."); | |
15255 | return 1; | |
15256 | } | |
15257 | ||
15258 | ||
15259 | static PyObject *_wrap_TimeSpanFormatStr_get() { | |
15260 | PyObject *pyobj; | |
15261 | ||
15262 | { | |
15263 | #if wxUSE_UNICODE | |
15264 | pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
15265 | #else | |
15266 | pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len()); | |
15267 | #endif | |
15268 | } | |
15269 | return pyobj; | |
15270 | } | |
15271 | ||
15272 | ||
d14a1e28 RD |
15273 | static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { |
15274 | PyObject *resultobj; | |
15275 | int arg1 ; | |
15276 | char *kwnames[] = { | |
15277 | (char *) "country", NULL | |
15278 | }; | |
15279 | ||
15280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_SetCountry",kwnames,&arg1)) goto fail; | |
15281 | { | |
15282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15283 | wxDateTime::SetCountry((wxDateTime::Country )arg1); | |
15284 | ||
15285 | wxPyEndAllowThreads(__tstate); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | } | |
15288 | Py_INCREF(Py_None); resultobj = Py_None; | |
15289 | return resultobj; | |
15290 | fail: | |
15291 | return NULL; | |
15292 | } | |
15293 | ||
15294 | ||
15295 | static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15296 | PyObject *resultobj; | |
15297 | int result; | |
15298 | char *kwnames[] = { | |
15299 | NULL | |
15300 | }; | |
15301 | ||
15302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail; | |
15303 | { | |
15304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15305 | result = (int)wxDateTime::GetCountry(); | |
15306 | ||
15307 | wxPyEndAllowThreads(__tstate); | |
15308 | if (PyErr_Occurred()) SWIG_fail; | |
15309 | } | |
15310 | resultobj = PyInt_FromLong((long)result); | |
15311 | return resultobj; | |
15312 | fail: | |
15313 | return NULL; | |
15314 | } | |
15315 | ||
15316 | ||
15317 | static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15318 | PyObject *resultobj; | |
15319 | int arg1 = (int) wxDateTime::Country_Default ; | |
15320 | bool result; | |
15321 | char *kwnames[] = { | |
15322 | (char *) "country", NULL | |
15323 | }; | |
15324 | ||
15325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_IsWestEuropeanCountry",kwnames,&arg1)) goto fail; | |
15326 | { | |
15327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15328 | result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1); | |
15329 | ||
15330 | wxPyEndAllowThreads(__tstate); | |
15331 | if (PyErr_Occurred()) SWIG_fail; | |
15332 | } | |
15333 | resultobj = PyInt_FromLong((long)result); | |
15334 | return resultobj; | |
15335 | fail: | |
15336 | return NULL; | |
15337 | } | |
15338 | ||
15339 | ||
15340 | static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15341 | PyObject *resultobj; | |
15342 | int arg1 = (int) wxDateTime::Gregorian ; | |
15343 | int result; | |
15344 | char *kwnames[] = { | |
15345 | (char *) "cal", NULL | |
15346 | }; | |
15347 | ||
15348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentYear",kwnames,&arg1)) goto fail; | |
15349 | { | |
15350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15351 | result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1); | |
15352 | ||
15353 | wxPyEndAllowThreads(__tstate); | |
15354 | if (PyErr_Occurred()) SWIG_fail; | |
15355 | } | |
15356 | resultobj = PyInt_FromLong((long)result); | |
15357 | return resultobj; | |
15358 | fail: | |
15359 | return NULL; | |
15360 | } | |
15361 | ||
15362 | ||
15363 | static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15364 | PyObject *resultobj; | |
15365 | int arg1 ; | |
15366 | int result; | |
15367 | char *kwnames[] = { | |
15368 | (char *) "year", NULL | |
15369 | }; | |
15370 | ||
15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateTime_ConvertYearToBC",kwnames,&arg1)) goto fail; | |
15372 | { | |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | result = (int)wxDateTime::ConvertYearToBC(arg1); | |
15375 | ||
15376 | wxPyEndAllowThreads(__tstate); | |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
15378 | } | |
15379 | resultobj = PyInt_FromLong((long)result); | |
15380 | return resultobj; | |
15381 | fail: | |
15382 | return NULL; | |
15383 | } | |
15384 | ||
15385 | ||
15386 | static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15387 | PyObject *resultobj; | |
15388 | int arg1 = (int) wxDateTime::Gregorian ; | |
15389 | int result; | |
15390 | char *kwnames[] = { | |
15391 | (char *) "cal", NULL | |
15392 | }; | |
15393 | ||
15394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCurrentMonth",kwnames,&arg1)) goto fail; | |
15395 | { | |
15396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15397 | result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1); | |
15398 | ||
15399 | wxPyEndAllowThreads(__tstate); | |
15400 | if (PyErr_Occurred()) SWIG_fail; | |
15401 | } | |
15402 | resultobj = PyInt_FromLong((long)result); | |
15403 | return resultobj; | |
15404 | fail: | |
15405 | return NULL; | |
15406 | } | |
15407 | ||
15408 | ||
15409 | static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15410 | PyObject *resultobj; | |
15411 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15412 | int arg2 = (int) wxDateTime::Gregorian ; | |
15413 | bool result; | |
15414 | char *kwnames[] = { | |
15415 | (char *) "year",(char *) "cal", NULL | |
15416 | }; | |
15417 | ||
15418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsLeapYear",kwnames,&arg1,&arg2)) goto fail; | |
15419 | { | |
15420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15421 | result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2); | |
15422 | ||
15423 | wxPyEndAllowThreads(__tstate); | |
15424 | if (PyErr_Occurred()) SWIG_fail; | |
15425 | } | |
15426 | resultobj = PyInt_FromLong((long)result); | |
15427 | return resultobj; | |
15428 | fail: | |
15429 | return NULL; | |
15430 | } | |
15431 | ||
15432 | ||
15433 | static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15434 | PyObject *resultobj; | |
15435 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15436 | int result; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "year", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|i:DateTime_GetCentury",kwnames,&arg1)) goto fail; | |
15442 | { | |
15443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15444 | result = (int)wxDateTime::GetCentury(arg1); | |
15445 | ||
15446 | wxPyEndAllowThreads(__tstate); | |
15447 | if (PyErr_Occurred()) SWIG_fail; | |
15448 | } | |
15449 | resultobj = PyInt_FromLong((long)result); | |
15450 | return resultobj; | |
15451 | fail: | |
15452 | return NULL; | |
15453 | } | |
15454 | ||
15455 | ||
15456 | static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15457 | PyObject *resultobj; | |
15458 | int arg1 ; | |
15459 | int arg2 = (int) wxDateTime::Gregorian ; | |
44127b65 | 15460 | int result; |
d14a1e28 RD |
15461 | char *kwnames[] = { |
15462 | (char *) "year",(char *) "cal", NULL | |
15463 | }; | |
15464 | ||
15465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetNumberOfDaysinYear",kwnames,&arg1,&arg2)) goto fail; | |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 15468 | result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2); |
d14a1e28 RD |
15469 | |
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | resultobj = PyInt_FromLong((long)result); | |
15474 | return resultobj; | |
15475 | fail: | |
15476 | return NULL; | |
15477 | } | |
15478 | ||
15479 | ||
15480 | static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15481 | PyObject *resultobj; | |
15482 | int arg1 ; | |
15483 | int arg2 = (int) wxDateTime::Inv_Year ; | |
15484 | int arg3 = (int) wxDateTime::Gregorian ; | |
44127b65 | 15485 | int result; |
d14a1e28 RD |
15486 | char *kwnames[] = { |
15487 | (char *) "month",(char *) "year",(char *) "cal", NULL | |
15488 | }; | |
15489 | ||
15490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|ii:DateTime_GetNumberOfDaysInMonth",kwnames,&arg1,&arg2,&arg3)) goto fail; | |
15491 | { | |
15492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 15493 | result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3); |
d14a1e28 RD |
15494 | |
15495 | wxPyEndAllowThreads(__tstate); | |
15496 | if (PyErr_Occurred()) SWIG_fail; | |
15497 | } | |
15498 | resultobj = PyInt_FromLong((long)result); | |
15499 | return resultobj; | |
15500 | fail: | |
15501 | return NULL; | |
15502 | } | |
15503 | ||
15504 | ||
15505 | static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15506 | PyObject *resultobj; | |
15507 | int arg1 ; | |
15508 | int arg2 = (int) wxDateTime::Name_Full ; | |
15509 | wxString result; | |
15510 | char *kwnames[] = { | |
15511 | (char *) "month",(char *) "flags", NULL | |
15512 | }; | |
15513 | ||
15514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetMonthName",kwnames,&arg1,&arg2)) goto fail; | |
15515 | { | |
15516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15517 | result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2); | |
15518 | ||
15519 | wxPyEndAllowThreads(__tstate); | |
15520 | if (PyErr_Occurred()) SWIG_fail; | |
15521 | } | |
15522 | { | |
15523 | #if wxUSE_UNICODE | |
15524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15525 | #else | |
15526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15527 | #endif | |
15528 | } | |
15529 | return resultobj; | |
15530 | fail: | |
15531 | return NULL; | |
15532 | } | |
15533 | ||
15534 | ||
15535 | static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15536 | PyObject *resultobj; | |
15537 | int arg1 ; | |
15538 | int arg2 = (int) wxDateTime::Name_Full ; | |
15539 | wxString result; | |
15540 | char *kwnames[] = { | |
15541 | (char *) "weekday",(char *) "flags", NULL | |
15542 | }; | |
15543 | ||
15544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|i:DateTime_GetWeekDayName",kwnames,&arg1,&arg2)) goto fail; | |
15545 | { | |
15546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15547 | result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2); | |
15548 | ||
15549 | wxPyEndAllowThreads(__tstate); | |
15550 | if (PyErr_Occurred()) SWIG_fail; | |
15551 | } | |
15552 | { | |
15553 | #if wxUSE_UNICODE | |
15554 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15555 | #else | |
15556 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15557 | #endif | |
15558 | } | |
15559 | return resultobj; | |
15560 | fail: | |
15561 | return NULL; | |
15562 | } | |
15563 | ||
15564 | ||
15565 | static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15566 | PyObject *resultobj; | |
15567 | wxString *arg1 = (wxString *) 0 ; | |
15568 | wxString *arg2 = (wxString *) 0 ; | |
dae0faa6 RD |
15569 | bool temp1 = False ; |
15570 | bool temp2 = False ; | |
d14a1e28 RD |
15571 | PyObject * obj0 = 0 ; |
15572 | PyObject * obj1 = 0 ; | |
15573 | char *kwnames[] = { | |
15574 | (char *) "OUTPUT",(char *) "OUTPUT", NULL | |
15575 | }; | |
15576 | ||
15577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail; | |
dae0faa6 RD |
15578 | { |
15579 | arg1 = wxString_in_helper(obj0); | |
15580 | if (arg1 == NULL) SWIG_fail; | |
15581 | temp1 = True; | |
15582 | } | |
15583 | { | |
15584 | arg2 = wxString_in_helper(obj1); | |
15585 | if (arg2 == NULL) SWIG_fail; | |
15586 | temp2 = True; | |
15587 | } | |
d14a1e28 RD |
15588 | { |
15589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15590 | wxDateTime::GetAmPmStrings(arg1,arg2); | |
15591 | ||
15592 | wxPyEndAllowThreads(__tstate); | |
15593 | if (PyErr_Occurred()) SWIG_fail; | |
15594 | } | |
15595 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
15596 | { |
15597 | if (temp1) | |
15598 | delete arg1; | |
15599 | } | |
15600 | { | |
15601 | if (temp2) | |
15602 | delete arg2; | |
15603 | } | |
d14a1e28 RD |
15604 | return resultobj; |
15605 | fail: | |
dae0faa6 RD |
15606 | { |
15607 | if (temp1) | |
15608 | delete arg1; | |
15609 | } | |
15610 | { | |
15611 | if (temp2) | |
15612 | delete arg2; | |
15613 | } | |
d14a1e28 RD |
15614 | return NULL; |
15615 | } | |
15616 | ||
15617 | ||
15618 | static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15619 | PyObject *resultobj; | |
15620 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15621 | int arg2 = (int) wxDateTime::Country_Default ; | |
15622 | bool result; | |
15623 | char *kwnames[] = { | |
15624 | (char *) "year",(char *) "country", NULL | |
15625 | }; | |
15626 | ||
15627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_IsDSTApplicable",kwnames,&arg1,&arg2)) goto fail; | |
15628 | { | |
15629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15630 | result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2); | |
15631 | ||
15632 | wxPyEndAllowThreads(__tstate); | |
15633 | if (PyErr_Occurred()) SWIG_fail; | |
15634 | } | |
15635 | resultobj = PyInt_FromLong((long)result); | |
15636 | return resultobj; | |
15637 | fail: | |
15638 | return NULL; | |
15639 | } | |
15640 | ||
15641 | ||
15642 | static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15643 | PyObject *resultobj; | |
15644 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15645 | int arg2 = (int) wxDateTime::Country_Default ; | |
15646 | wxDateTime result; | |
15647 | char *kwnames[] = { | |
15648 | (char *) "year",(char *) "country", NULL | |
15649 | }; | |
15650 | ||
15651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetBeginDST",kwnames,&arg1,&arg2)) goto fail; | |
15652 | { | |
15653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15654 | result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2); | |
15655 | ||
15656 | wxPyEndAllowThreads(__tstate); | |
15657 | if (PyErr_Occurred()) SWIG_fail; | |
15658 | } | |
15659 | { | |
15660 | wxDateTime * resultptr; | |
15661 | resultptr = new wxDateTime((wxDateTime &) result); | |
15662 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15663 | } | |
15664 | return resultobj; | |
15665 | fail: | |
15666 | return NULL; | |
15667 | } | |
15668 | ||
15669 | ||
15670 | static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15671 | PyObject *resultobj; | |
15672 | int arg1 = (int) wxDateTime::Inv_Year ; | |
15673 | int arg2 = (int) wxDateTime::Country_Default ; | |
15674 | wxDateTime result; | |
15675 | char *kwnames[] = { | |
15676 | (char *) "year",(char *) "country", NULL | |
15677 | }; | |
15678 | ||
15679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:DateTime_GetEndDST",kwnames,&arg1,&arg2)) goto fail; | |
15680 | { | |
15681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15682 | result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2); | |
15683 | ||
15684 | wxPyEndAllowThreads(__tstate); | |
15685 | if (PyErr_Occurred()) SWIG_fail; | |
15686 | } | |
15687 | { | |
15688 | wxDateTime * resultptr; | |
15689 | resultptr = new wxDateTime((wxDateTime &) result); | |
15690 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15691 | } | |
15692 | return resultobj; | |
15693 | fail: | |
15694 | return NULL; | |
15695 | } | |
15696 | ||
15697 | ||
15698 | static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15699 | PyObject *resultobj; | |
15700 | wxDateTime result; | |
15701 | char *kwnames[] = { | |
15702 | NULL | |
15703 | }; | |
15704 | ||
15705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail; | |
15706 | { | |
15707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15708 | result = wxDateTime::Now(); | |
15709 | ||
15710 | wxPyEndAllowThreads(__tstate); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
15712 | } | |
15713 | { | |
15714 | wxDateTime * resultptr; | |
15715 | resultptr = new wxDateTime((wxDateTime &) result); | |
15716 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15717 | } | |
15718 | return resultobj; | |
15719 | fail: | |
15720 | return NULL; | |
15721 | } | |
15722 | ||
15723 | ||
15724 | static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15725 | PyObject *resultobj; | |
15726 | wxDateTime result; | |
15727 | char *kwnames[] = { | |
15728 | NULL | |
15729 | }; | |
15730 | ||
15731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail; | |
15732 | { | |
15733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15734 | result = wxDateTime::UNow(); | |
15735 | ||
15736 | wxPyEndAllowThreads(__tstate); | |
15737 | if (PyErr_Occurred()) SWIG_fail; | |
15738 | } | |
15739 | { | |
15740 | wxDateTime * resultptr; | |
15741 | resultptr = new wxDateTime((wxDateTime &) result); | |
15742 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15743 | } | |
15744 | return resultobj; | |
15745 | fail: | |
15746 | return NULL; | |
15747 | } | |
15748 | ||
15749 | ||
15750 | static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15751 | PyObject *resultobj; | |
15752 | wxDateTime result; | |
15753 | char *kwnames[] = { | |
15754 | NULL | |
15755 | }; | |
15756 | ||
15757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail; | |
15758 | { | |
15759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15760 | result = wxDateTime::Today(); | |
15761 | ||
15762 | wxPyEndAllowThreads(__tstate); | |
15763 | if (PyErr_Occurred()) SWIG_fail; | |
15764 | } | |
15765 | { | |
15766 | wxDateTime * resultptr; | |
15767 | resultptr = new wxDateTime((wxDateTime &) result); | |
15768 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
15769 | } | |
15770 | return resultobj; | |
15771 | fail: | |
15772 | return NULL; | |
15773 | } | |
15774 | ||
15775 | ||
15776 | static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15777 | PyObject *resultobj; | |
15778 | wxDateTime *result; | |
15779 | char *kwnames[] = { | |
15780 | NULL | |
15781 | }; | |
15782 | ||
15783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail; | |
15784 | { | |
15785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15786 | result = (wxDateTime *)new wxDateTime(); | |
15787 | ||
15788 | wxPyEndAllowThreads(__tstate); | |
15789 | if (PyErr_Occurred()) SWIG_fail; | |
15790 | } | |
15791 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15792 | return resultobj; | |
15793 | fail: | |
15794 | return NULL; | |
15795 | } | |
15796 | ||
15797 | ||
15798 | static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15799 | PyObject *resultobj; | |
15800 | time_t arg1 ; | |
15801 | wxDateTime *result; | |
15802 | PyObject * obj0 = 0 ; | |
15803 | char *kwnames[] = { | |
15804 | (char *) "timet", NULL | |
15805 | }; | |
15806 | ||
15807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail; | |
15808 | arg1 = (time_t) PyInt_AsLong(obj0); | |
15809 | if (PyErr_Occurred()) SWIG_fail; | |
15810 | { | |
15811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15812 | result = (wxDateTime *)new wxDateTime(arg1); | |
15813 | ||
15814 | wxPyEndAllowThreads(__tstate); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | } | |
15817 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15818 | return resultobj; | |
15819 | fail: | |
15820 | return NULL; | |
15821 | } | |
15822 | ||
15823 | ||
15824 | static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15825 | PyObject *resultobj; | |
15826 | double arg1 ; | |
15827 | wxDateTime *result; | |
15828 | char *kwnames[] = { | |
15829 | (char *) "jdn", NULL | |
15830 | }; | |
15831 | ||
15832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"d:new_DateTimeFromJDN",kwnames,&arg1)) goto fail; | |
15833 | { | |
15834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15835 | result = (wxDateTime *)new wxDateTime(arg1); | |
15836 | ||
15837 | wxPyEndAllowThreads(__tstate); | |
15838 | if (PyErr_Occurred()) SWIG_fail; | |
15839 | } | |
15840 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15841 | return resultobj; | |
15842 | fail: | |
15843 | return NULL; | |
15844 | } | |
15845 | ||
15846 | ||
15847 | static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15848 | PyObject *resultobj; | |
44127b65 RD |
15849 | int arg1 ; |
15850 | int arg2 = (int) 0 ; | |
15851 | int arg3 = (int) 0 ; | |
15852 | int arg4 = (int) 0 ; | |
d14a1e28 | 15853 | wxDateTime *result; |
d14a1e28 RD |
15854 | char *kwnames[] = { |
15855 | (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15856 | }; | |
15857 | ||
44127b65 | 15858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iii:new_DateTimeFromHMS",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 RD |
15859 | { |
15860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15861 | result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4); | |
15862 | ||
15863 | wxPyEndAllowThreads(__tstate); | |
15864 | if (PyErr_Occurred()) SWIG_fail; | |
15865 | } | |
15866 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15867 | return resultobj; | |
15868 | fail: | |
15869 | return NULL; | |
15870 | } | |
15871 | ||
15872 | ||
15873 | static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15874 | PyObject *resultobj; | |
44127b65 | 15875 | int arg1 ; |
d14a1e28 RD |
15876 | int arg2 = (int) wxDateTime::Inv_Month ; |
15877 | int arg3 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
15878 | int arg4 = (int) 0 ; |
15879 | int arg5 = (int) 0 ; | |
15880 | int arg6 = (int) 0 ; | |
15881 | int arg7 = (int) 0 ; | |
d14a1e28 | 15882 | wxDateTime *result; |
d14a1e28 RD |
15883 | char *kwnames[] = { |
15884 | (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
15885 | }; | |
15886 | ||
44127b65 | 15887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i|iiiiii:new_DateTimeFromDMY",kwnames,&arg1,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7)) goto fail; |
d14a1e28 RD |
15888 | { |
15889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15890 | result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7); | |
15891 | ||
15892 | wxPyEndAllowThreads(__tstate); | |
15893 | if (PyErr_Occurred()) SWIG_fail; | |
15894 | } | |
15895 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 1); | |
15896 | return resultobj; | |
15897 | fail: | |
15898 | return NULL; | |
15899 | } | |
15900 | ||
15901 | ||
15902 | static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15903 | PyObject *resultobj; | |
15904 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15905 | PyObject * obj0 = 0 ; | |
15906 | char *kwnames[] = { | |
15907 | (char *) "self", NULL | |
15908 | }; | |
15909 | ||
15910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail; | |
15911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15912 | { | |
15913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15914 | delete arg1; | |
15915 | ||
15916 | wxPyEndAllowThreads(__tstate); | |
15917 | if (PyErr_Occurred()) SWIG_fail; | |
15918 | } | |
15919 | Py_INCREF(Py_None); resultobj = Py_None; | |
15920 | return resultobj; | |
15921 | fail: | |
15922 | return NULL; | |
15923 | } | |
15924 | ||
15925 | ||
15926 | static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15927 | PyObject *resultobj; | |
15928 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15929 | wxDateTime *result; | |
15930 | PyObject * obj0 = 0 ; | |
15931 | char *kwnames[] = { | |
15932 | (char *) "self", NULL | |
15933 | }; | |
15934 | ||
15935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail; | |
15936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15937 | { | |
15938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15939 | { | |
15940 | wxDateTime &_result_ref = (arg1)->SetToCurrent(); | |
15941 | result = (wxDateTime *) &_result_ref; | |
15942 | } | |
15943 | ||
15944 | wxPyEndAllowThreads(__tstate); | |
15945 | if (PyErr_Occurred()) SWIG_fail; | |
15946 | } | |
15947 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15948 | return resultobj; | |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
15954 | static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15955 | PyObject *resultobj; | |
15956 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15957 | time_t arg2 ; | |
15958 | wxDateTime *result; | |
15959 | PyObject * obj0 = 0 ; | |
15960 | PyObject * obj1 = 0 ; | |
15961 | char *kwnames[] = { | |
15962 | (char *) "self",(char *) "timet", NULL | |
15963 | }; | |
15964 | ||
15965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail; | |
15966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15967 | arg2 = (time_t) PyInt_AsLong(obj1); | |
15968 | if (PyErr_Occurred()) SWIG_fail; | |
15969 | { | |
15970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15971 | { | |
15972 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
15973 | result = (wxDateTime *) &_result_ref; | |
15974 | } | |
15975 | ||
15976 | wxPyEndAllowThreads(__tstate); | |
15977 | if (PyErr_Occurred()) SWIG_fail; | |
15978 | } | |
15979 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
15980 | return resultobj; | |
15981 | fail: | |
15982 | return NULL; | |
15983 | } | |
15984 | ||
15985 | ||
15986 | static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15987 | PyObject *resultobj; | |
15988 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
15989 | double arg2 ; | |
15990 | wxDateTime *result; | |
15991 | PyObject * obj0 = 0 ; | |
15992 | char *kwnames[] = { | |
15993 | (char *) "self",(char *) "jdn", NULL | |
15994 | }; | |
15995 | ||
15996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Od:DateTime_SetJDN",kwnames,&obj0,&arg2)) goto fail; | |
15997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15998 | { | |
15999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16000 | { | |
16001 | wxDateTime &_result_ref = (arg1)->Set(arg2); | |
16002 | result = (wxDateTime *) &_result_ref; | |
16003 | } | |
16004 | ||
16005 | wxPyEndAllowThreads(__tstate); | |
16006 | if (PyErr_Occurred()) SWIG_fail; | |
16007 | } | |
16008 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16009 | return resultobj; | |
16010 | fail: | |
16011 | return NULL; | |
16012 | } | |
16013 | ||
16014 | ||
16015 | static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16016 | PyObject *resultobj; | |
16017 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 RD |
16018 | int arg2 ; |
16019 | int arg3 = (int) 0 ; | |
16020 | int arg4 = (int) 0 ; | |
16021 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
16022 | wxDateTime *result; |
16023 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16024 | char *kwnames[] = { |
16025 | (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16026 | }; | |
16027 | ||
44127b65 | 16028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetHMS",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; |
d14a1e28 | 16029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16030 | { |
16031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16032 | { | |
16033 | wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5); | |
16034 | result = (wxDateTime *) &_result_ref; | |
16035 | } | |
16036 | ||
16037 | wxPyEndAllowThreads(__tstate); | |
16038 | if (PyErr_Occurred()) SWIG_fail; | |
16039 | } | |
16040 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16041 | return resultobj; | |
16042 | fail: | |
16043 | return NULL; | |
16044 | } | |
16045 | ||
16046 | ||
16047 | static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16048 | PyObject *resultobj; | |
16049 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16050 | int arg2 ; |
d14a1e28 RD |
16051 | int arg3 = (int) wxDateTime::Inv_Month ; |
16052 | int arg4 = (int) wxDateTime::Inv_Year ; | |
44127b65 RD |
16053 | int arg5 = (int) 0 ; |
16054 | int arg6 = (int) 0 ; | |
16055 | int arg7 = (int) 0 ; | |
16056 | int arg8 = (int) 0 ; | |
d14a1e28 RD |
16057 | wxDateTime *result; |
16058 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16059 | char *kwnames[] = { |
16060 | (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL | |
16061 | }; | |
16062 | ||
44127b65 | 16063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iiiiii:DateTime_Set",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&arg8)) goto fail; |
d14a1e28 | 16064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16065 | { |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | { | |
16068 | wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8); | |
16069 | result = (wxDateTime *) &_result_ref; | |
16070 | } | |
16071 | ||
16072 | wxPyEndAllowThreads(__tstate); | |
16073 | if (PyErr_Occurred()) SWIG_fail; | |
16074 | } | |
16075 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16076 | return resultobj; | |
16077 | fail: | |
16078 | return NULL; | |
16079 | } | |
16080 | ||
16081 | ||
16082 | static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16083 | PyObject *resultobj; | |
16084 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16085 | wxDateTime *result; | |
16086 | PyObject * obj0 = 0 ; | |
16087 | char *kwnames[] = { | |
16088 | (char *) "self", NULL | |
16089 | }; | |
16090 | ||
16091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail; | |
16092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16093 | { | |
16094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16095 | { | |
16096 | wxDateTime &_result_ref = (arg1)->ResetTime(); | |
16097 | result = (wxDateTime *) &_result_ref; | |
16098 | } | |
16099 | ||
16100 | wxPyEndAllowThreads(__tstate); | |
16101 | if (PyErr_Occurred()) SWIG_fail; | |
16102 | } | |
16103 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16104 | return resultobj; | |
16105 | fail: | |
16106 | return NULL; | |
16107 | } | |
16108 | ||
16109 | ||
16110 | static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16111 | PyObject *resultobj; | |
16112 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16113 | int arg2 ; | |
16114 | wxDateTime *result; | |
16115 | PyObject * obj0 = 0 ; | |
16116 | char *kwnames[] = { | |
16117 | (char *) "self",(char *) "year", NULL | |
16118 | }; | |
16119 | ||
16120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetYear",kwnames,&obj0,&arg2)) goto fail; | |
16121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16122 | { | |
16123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16124 | { | |
16125 | wxDateTime &_result_ref = (arg1)->SetYear(arg2); | |
16126 | result = (wxDateTime *) &_result_ref; | |
16127 | } | |
16128 | ||
16129 | wxPyEndAllowThreads(__tstate); | |
16130 | if (PyErr_Occurred()) SWIG_fail; | |
16131 | } | |
16132 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16133 | return resultobj; | |
16134 | fail: | |
16135 | return NULL; | |
16136 | } | |
16137 | ||
16138 | ||
16139 | static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16140 | PyObject *resultobj; | |
16141 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16142 | int arg2 ; | |
16143 | wxDateTime *result; | |
16144 | PyObject * obj0 = 0 ; | |
16145 | char *kwnames[] = { | |
16146 | (char *) "self",(char *) "month", NULL | |
16147 | }; | |
16148 | ||
16149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMonth",kwnames,&obj0,&arg2)) goto fail; | |
16150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16151 | { | |
16152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16153 | { | |
16154 | wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2); | |
16155 | result = (wxDateTime *) &_result_ref; | |
16156 | } | |
16157 | ||
16158 | wxPyEndAllowThreads(__tstate); | |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
16160 | } | |
16161 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16162 | return resultobj; | |
16163 | fail: | |
16164 | return NULL; | |
16165 | } | |
16166 | ||
16167 | ||
16168 | static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16169 | PyObject *resultobj; | |
16170 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16171 | int arg2 ; |
d14a1e28 RD |
16172 | wxDateTime *result; |
16173 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16174 | char *kwnames[] = { |
16175 | (char *) "self",(char *) "day", NULL | |
16176 | }; | |
16177 | ||
44127b65 | 16178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16180 | { |
16181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16182 | { | |
16183 | wxDateTime &_result_ref = (arg1)->SetDay(arg2); | |
16184 | result = (wxDateTime *) &_result_ref; | |
16185 | } | |
16186 | ||
16187 | wxPyEndAllowThreads(__tstate); | |
16188 | if (PyErr_Occurred()) SWIG_fail; | |
16189 | } | |
16190 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16191 | return resultobj; | |
16192 | fail: | |
16193 | return NULL; | |
16194 | } | |
16195 | ||
16196 | ||
16197 | static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16198 | PyObject *resultobj; | |
16199 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16200 | int arg2 ; |
d14a1e28 RD |
16201 | wxDateTime *result; |
16202 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16203 | char *kwnames[] = { |
16204 | (char *) "self",(char *) "hour", NULL | |
16205 | }; | |
16206 | ||
44127b65 | 16207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetHour",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16209 | { |
16210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16211 | { | |
16212 | wxDateTime &_result_ref = (arg1)->SetHour(arg2); | |
16213 | result = (wxDateTime *) &_result_ref; | |
16214 | } | |
16215 | ||
16216 | wxPyEndAllowThreads(__tstate); | |
16217 | if (PyErr_Occurred()) SWIG_fail; | |
16218 | } | |
16219 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16220 | return resultobj; | |
16221 | fail: | |
16222 | return NULL; | |
16223 | } | |
16224 | ||
16225 | ||
16226 | static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16227 | PyObject *resultobj; | |
16228 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16229 | int arg2 ; |
d14a1e28 RD |
16230 | wxDateTime *result; |
16231 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16232 | char *kwnames[] = { |
16233 | (char *) "self",(char *) "minute", NULL | |
16234 | }; | |
16235 | ||
44127b65 | 16236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMinute",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16238 | { |
16239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16240 | { | |
16241 | wxDateTime &_result_ref = (arg1)->SetMinute(arg2); | |
16242 | result = (wxDateTime *) &_result_ref; | |
16243 | } | |
16244 | ||
16245 | wxPyEndAllowThreads(__tstate); | |
16246 | if (PyErr_Occurred()) SWIG_fail; | |
16247 | } | |
16248 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16249 | return resultobj; | |
16250 | fail: | |
16251 | return NULL; | |
16252 | } | |
16253 | ||
16254 | ||
16255 | static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16256 | PyObject *resultobj; | |
16257 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16258 | int arg2 ; |
d14a1e28 RD |
16259 | wxDateTime *result; |
16260 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16261 | char *kwnames[] = { |
16262 | (char *) "self",(char *) "second", NULL | |
16263 | }; | |
16264 | ||
44127b65 | 16265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetSecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16267 | { |
16268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16269 | { | |
16270 | wxDateTime &_result_ref = (arg1)->SetSecond(arg2); | |
16271 | result = (wxDateTime *) &_result_ref; | |
16272 | } | |
16273 | ||
16274 | wxPyEndAllowThreads(__tstate); | |
16275 | if (PyErr_Occurred()) SWIG_fail; | |
16276 | } | |
16277 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16278 | return resultobj; | |
16279 | fail: | |
16280 | return NULL; | |
16281 | } | |
16282 | ||
16283 | ||
16284 | static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16285 | PyObject *resultobj; | |
16286 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16287 | int arg2 ; |
d14a1e28 RD |
16288 | wxDateTime *result; |
16289 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16290 | char *kwnames[] = { |
16291 | (char *) "self",(char *) "millisecond", NULL | |
16292 | }; | |
16293 | ||
44127b65 | 16294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetMillisecond",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16296 | { |
16297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16298 | { | |
16299 | wxDateTime &_result_ref = (arg1)->SetMillisecond(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_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16314 | PyObject *resultobj; | |
16315 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16316 | int arg2 ; | |
16317 | int arg3 = (int) wxDateTime::Monday_First ; | |
16318 | wxDateTime *result; | |
16319 | PyObject * obj0 = 0 ; | |
16320 | char *kwnames[] = { | |
16321 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16322 | }; | |
16323 | ||
16324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16326 | { | |
16327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16328 | { | |
16329 | wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16330 | result = (wxDateTime *) &_result_ref; | |
16331 | } | |
16332 | ||
16333 | wxPyEndAllowThreads(__tstate); | |
16334 | if (PyErr_Occurred()) SWIG_fail; | |
16335 | } | |
16336 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16337 | return resultobj; | |
16338 | fail: | |
16339 | return NULL; | |
16340 | } | |
16341 | ||
16342 | ||
16343 | static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16344 | PyObject *resultobj; | |
16345 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16346 | int arg2 ; | |
16347 | int arg3 = (int) wxDateTime::Monday_First ; | |
16348 | wxDateTime result; | |
16349 | PyObject * obj0 = 0 ; | |
16350 | char *kwnames[] = { | |
16351 | (char *) "self",(char *) "weekday",(char *) "flags", NULL | |
16352 | }; | |
16353 | ||
16354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16356 | { | |
16357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16358 | result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3); | |
16359 | ||
16360 | wxPyEndAllowThreads(__tstate); | |
16361 | if (PyErr_Occurred()) SWIG_fail; | |
16362 | } | |
16363 | { | |
16364 | wxDateTime * resultptr; | |
16365 | resultptr = new wxDateTime((wxDateTime &) result); | |
16366 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16367 | } | |
16368 | return resultobj; | |
16369 | fail: | |
16370 | return NULL; | |
16371 | } | |
16372 | ||
16373 | ||
16374 | static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16375 | PyObject *resultobj; | |
16376 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16377 | int arg2 ; | |
16378 | wxDateTime *result; | |
16379 | PyObject * obj0 = 0 ; | |
16380 | char *kwnames[] = { | |
16381 | (char *) "self",(char *) "weekday", NULL | |
16382 | }; | |
16383 | ||
16384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToNextWeekDay",kwnames,&obj0,&arg2)) 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 | { | |
16389 | wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2); | |
16390 | result = (wxDateTime *) &_result_ref; | |
16391 | } | |
16392 | ||
16393 | wxPyEndAllowThreads(__tstate); | |
16394 | if (PyErr_Occurred()) SWIG_fail; | |
16395 | } | |
16396 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16397 | return resultobj; | |
16398 | fail: | |
16399 | return NULL; | |
16400 | } | |
16401 | ||
16402 | ||
16403 | static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16404 | PyObject *resultobj; | |
16405 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16406 | int arg2 ; | |
16407 | wxDateTime result; | |
16408 | PyObject * obj0 = 0 ; | |
16409 | char *kwnames[] = { | |
16410 | (char *) "self",(char *) "weekday", NULL | |
16411 | }; | |
16412 | ||
16413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetNextWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16415 | { | |
16416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16417 | result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2); | |
16418 | ||
16419 | wxPyEndAllowThreads(__tstate); | |
16420 | if (PyErr_Occurred()) SWIG_fail; | |
16421 | } | |
16422 | { | |
16423 | wxDateTime * resultptr; | |
16424 | resultptr = new wxDateTime((wxDateTime &) result); | |
16425 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16426 | } | |
16427 | return resultobj; | |
16428 | fail: | |
16429 | return NULL; | |
16430 | } | |
16431 | ||
16432 | ||
16433 | static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16434 | PyObject *resultobj; | |
16435 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16436 | int arg2 ; | |
16437 | wxDateTime *result; | |
16438 | PyObject * obj0 = 0 ; | |
16439 | char *kwnames[] = { | |
16440 | (char *) "self",(char *) "weekday", NULL | |
16441 | }; | |
16442 | ||
16443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16445 | { | |
16446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16447 | { | |
16448 | wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2); | |
16449 | result = (wxDateTime *) &_result_ref; | |
16450 | } | |
16451 | ||
16452 | wxPyEndAllowThreads(__tstate); | |
16453 | if (PyErr_Occurred()) SWIG_fail; | |
16454 | } | |
16455 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16456 | return resultobj; | |
16457 | fail: | |
16458 | return NULL; | |
16459 | } | |
16460 | ||
16461 | ||
16462 | static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16463 | PyObject *resultobj; | |
16464 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16465 | int arg2 ; | |
16466 | wxDateTime result; | |
16467 | PyObject * obj0 = 0 ; | |
16468 | char *kwnames[] = { | |
16469 | (char *) "self",(char *) "weekday", NULL | |
16470 | }; | |
16471 | ||
16472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetPrevWeekDay",kwnames,&obj0,&arg2)) goto fail; | |
16473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16474 | { | |
16475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16476 | result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2); | |
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_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16493 | PyObject *resultobj; | |
16494 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16495 | int arg2 ; | |
16496 | int arg3 = (int) 1 ; | |
16497 | int arg4 = (int) wxDateTime::Inv_Month ; | |
16498 | int arg5 = (int) wxDateTime::Inv_Year ; | |
16499 | bool result; | |
16500 | PyObject * obj0 = 0 ; | |
16501 | char *kwnames[] = { | |
16502 | (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL | |
16503 | }; | |
16504 | ||
16505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|iii:DateTime_SetToWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
16506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16507 | { | |
16508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16509 | result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5); | |
16510 | ||
16511 | wxPyEndAllowThreads(__tstate); | |
16512 | if (PyErr_Occurred()) SWIG_fail; | |
16513 | } | |
16514 | resultobj = PyInt_FromLong((long)result); | |
16515 | return resultobj; | |
16516 | fail: | |
16517 | return NULL; | |
16518 | } | |
16519 | ||
16520 | ||
16521 | static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16522 | PyObject *resultobj; | |
16523 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16524 | int arg2 ; | |
16525 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16526 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16527 | bool result; | |
16528 | PyObject * obj0 = 0 ; | |
16529 | char *kwnames[] = { | |
16530 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16531 | }; | |
16532 | ||
16533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) 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 = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16538 | ||
16539 | wxPyEndAllowThreads(__tstate); | |
16540 | if (PyErr_Occurred()) SWIG_fail; | |
16541 | } | |
16542 | resultobj = PyInt_FromLong((long)result); | |
16543 | return resultobj; | |
16544 | fail: | |
16545 | return NULL; | |
16546 | } | |
16547 | ||
16548 | ||
16549 | static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16550 | PyObject *resultobj; | |
16551 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16552 | int arg2 ; | |
16553 | int arg3 = (int) wxDateTime::Inv_Month ; | |
16554 | int arg4 = (int) wxDateTime::Inv_Year ; | |
16555 | wxDateTime result; | |
16556 | PyObject * obj0 = 0 ; | |
16557 | char *kwnames[] = { | |
16558 | (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL | |
16559 | }; | |
16560 | ||
16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetLastWeekDay",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
16562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16563 | { | |
16564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16565 | result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4); | |
16566 | ||
16567 | wxPyEndAllowThreads(__tstate); | |
16568 | if (PyErr_Occurred()) SWIG_fail; | |
16569 | } | |
16570 | { | |
16571 | wxDateTime * resultptr; | |
16572 | resultptr = new wxDateTime((wxDateTime &) result); | |
16573 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16574 | } | |
16575 | return resultobj; | |
16576 | fail: | |
16577 | return NULL; | |
16578 | } | |
16579 | ||
16580 | ||
16581 | static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16582 | PyObject *resultobj; | |
16583 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16584 | int arg2 ; |
d14a1e28 RD |
16585 | int arg3 = (int) wxDateTime::Mon ; |
16586 | int arg4 = (int) wxDateTime::Monday_First ; | |
16587 | bool result; | |
16588 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16589 | char *kwnames[] = { |
16590 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16591 | }; | |
16592 | ||
44127b65 | 16593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_SetToTheWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16595 | { |
16596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16597 | result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16598 | ||
16599 | wxPyEndAllowThreads(__tstate); | |
16600 | if (PyErr_Occurred()) SWIG_fail; | |
16601 | } | |
16602 | resultobj = PyInt_FromLong((long)result); | |
16603 | return resultobj; | |
16604 | fail: | |
16605 | return NULL; | |
16606 | } | |
16607 | ||
16608 | ||
16609 | static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16610 | PyObject *resultobj; | |
16611 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16612 | int arg2 ; |
d14a1e28 RD |
16613 | int arg3 = (int) wxDateTime::Mon ; |
16614 | int arg4 = (int) wxDateTime::Monday_First ; | |
16615 | wxDateTime result; | |
16616 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16617 | char *kwnames[] = { |
16618 | (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL | |
16619 | }; | |
16620 | ||
44127b65 | 16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:DateTime_GetWeek",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; |
d14a1e28 | 16622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16623 | { |
16624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16625 | result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4); | |
16626 | ||
16627 | wxPyEndAllowThreads(__tstate); | |
16628 | if (PyErr_Occurred()) SWIG_fail; | |
16629 | } | |
16630 | { | |
16631 | wxDateTime * resultptr; | |
16632 | resultptr = new wxDateTime((wxDateTime &) result); | |
16633 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16634 | } | |
16635 | return resultobj; | |
16636 | fail: | |
16637 | return NULL; | |
16638 | } | |
16639 | ||
16640 | ||
16641 | static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16642 | PyObject *resultobj; | |
16643 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16644 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16645 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16646 | wxDateTime *result; | |
16647 | PyObject * obj0 = 0 ; | |
16648 | char *kwnames[] = { | |
16649 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16650 | }; | |
16651 | ||
16652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_SetToLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16654 | { | |
16655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16656 | { | |
16657 | wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16658 | result = (wxDateTime *) &_result_ref; | |
16659 | } | |
16660 | ||
16661 | wxPyEndAllowThreads(__tstate); | |
16662 | if (PyErr_Occurred()) SWIG_fail; | |
16663 | } | |
16664 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16665 | return resultobj; | |
16666 | fail: | |
16667 | return NULL; | |
16668 | } | |
16669 | ||
16670 | ||
16671 | static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16672 | PyObject *resultobj; | |
16673 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16674 | int arg2 = (int) wxDateTime::Inv_Month ; | |
16675 | int arg3 = (int) wxDateTime::Inv_Year ; | |
16676 | wxDateTime result; | |
16677 | PyObject * obj0 = 0 ; | |
16678 | char *kwnames[] = { | |
16679 | (char *) "self",(char *) "month",(char *) "year", NULL | |
16680 | }; | |
16681 | ||
16682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|ii:DateTime_GetLastMonthDay",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
16683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16684 | { | |
16685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16686 | result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3); | |
16687 | ||
16688 | wxPyEndAllowThreads(__tstate); | |
16689 | if (PyErr_Occurred()) SWIG_fail; | |
16690 | } | |
16691 | { | |
16692 | wxDateTime * resultptr; | |
16693 | resultptr = new wxDateTime((wxDateTime &) result); | |
16694 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16695 | } | |
16696 | return resultobj; | |
16697 | fail: | |
16698 | return NULL; | |
16699 | } | |
16700 | ||
16701 | ||
16702 | static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16703 | PyObject *resultobj; | |
16704 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16705 | int arg2 ; |
d14a1e28 RD |
16706 | wxDateTime *result; |
16707 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16708 | char *kwnames[] = { |
16709 | (char *) "self",(char *) "yday", NULL | |
16710 | }; | |
16711 | ||
44127b65 | 16712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_SetToYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16714 | { |
16715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16716 | { | |
16717 | wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2); | |
16718 | result = (wxDateTime *) &_result_ref; | |
16719 | } | |
16720 | ||
16721 | wxPyEndAllowThreads(__tstate); | |
16722 | if (PyErr_Occurred()) SWIG_fail; | |
16723 | } | |
16724 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16725 | return resultobj; | |
16726 | fail: | |
16727 | return NULL; | |
16728 | } | |
16729 | ||
16730 | ||
16731 | static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16732 | PyObject *resultobj; | |
16733 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
44127b65 | 16734 | int arg2 ; |
d14a1e28 RD |
16735 | wxDateTime result; |
16736 | PyObject * obj0 = 0 ; | |
d14a1e28 RD |
16737 | char *kwnames[] = { |
16738 | (char *) "self",(char *) "yday", NULL | |
16739 | }; | |
16740 | ||
44127b65 | 16741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateTime_GetYearDay",kwnames,&obj0,&arg2)) goto fail; |
d14a1e28 | 16742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
d14a1e28 RD |
16743 | { |
16744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16745 | result = (arg1)->GetYearDay(arg2); | |
16746 | ||
16747 | wxPyEndAllowThreads(__tstate); | |
16748 | if (PyErr_Occurred()) SWIG_fail; | |
16749 | } | |
16750 | { | |
16751 | wxDateTime * resultptr; | |
16752 | resultptr = new wxDateTime((wxDateTime &) result); | |
16753 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16754 | } | |
16755 | return resultobj; | |
16756 | fail: | |
16757 | return NULL; | |
16758 | } | |
16759 | ||
16760 | ||
16761 | static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16762 | PyObject *resultobj; | |
16763 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16764 | double result; | |
16765 | PyObject * obj0 = 0 ; | |
16766 | char *kwnames[] = { | |
16767 | (char *) "self", NULL | |
16768 | }; | |
16769 | ||
16770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail; | |
16771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16772 | { | |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | result = (double)(arg1)->GetJulianDayNumber(); | |
16775 | ||
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
16779 | resultobj = PyFloat_FromDouble(result); | |
16780 | return resultobj; | |
16781 | fail: | |
16782 | return NULL; | |
16783 | } | |
16784 | ||
16785 | ||
16786 | static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16787 | PyObject *resultobj; | |
16788 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16789 | double result; | |
16790 | PyObject * obj0 = 0 ; | |
16791 | char *kwnames[] = { | |
16792 | (char *) "self", NULL | |
16793 | }; | |
16794 | ||
16795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail; | |
16796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16797 | { | |
16798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16799 | result = (double)(arg1)->GetJDN(); | |
16800 | ||
16801 | wxPyEndAllowThreads(__tstate); | |
16802 | if (PyErr_Occurred()) SWIG_fail; | |
16803 | } | |
16804 | resultobj = PyFloat_FromDouble(result); | |
16805 | return resultobj; | |
16806 | fail: | |
16807 | return NULL; | |
16808 | } | |
16809 | ||
16810 | ||
16811 | static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16812 | PyObject *resultobj; | |
16813 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16814 | double result; | |
16815 | PyObject * obj0 = 0 ; | |
16816 | char *kwnames[] = { | |
16817 | (char *) "self", NULL | |
16818 | }; | |
16819 | ||
16820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail; | |
16821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16822 | { | |
16823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16824 | result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber(); | |
16825 | ||
16826 | wxPyEndAllowThreads(__tstate); | |
16827 | if (PyErr_Occurred()) SWIG_fail; | |
16828 | } | |
16829 | resultobj = PyFloat_FromDouble(result); | |
16830 | return resultobj; | |
16831 | fail: | |
16832 | return NULL; | |
16833 | } | |
16834 | ||
16835 | ||
16836 | static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16837 | PyObject *resultobj; | |
16838 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16839 | double result; | |
16840 | PyObject * obj0 = 0 ; | |
16841 | char *kwnames[] = { | |
16842 | (char *) "self", NULL | |
16843 | }; | |
16844 | ||
16845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail; | |
16846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16847 | { | |
16848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16849 | result = (double)(arg1)->GetMJD(); | |
16850 | ||
16851 | wxPyEndAllowThreads(__tstate); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
16854 | resultobj = PyFloat_FromDouble(result); | |
16855 | return resultobj; | |
16856 | fail: | |
16857 | return NULL; | |
16858 | } | |
16859 | ||
16860 | ||
16861 | static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16862 | PyObject *resultobj; | |
16863 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16864 | double result; | |
16865 | PyObject * obj0 = 0 ; | |
16866 | char *kwnames[] = { | |
16867 | (char *) "self", NULL | |
16868 | }; | |
16869 | ||
16870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail; | |
16871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16872 | { | |
16873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16874 | result = (double)(arg1)->GetRataDie(); | |
16875 | ||
16876 | wxPyEndAllowThreads(__tstate); | |
16877 | if (PyErr_Occurred()) SWIG_fail; | |
16878 | } | |
16879 | resultobj = PyFloat_FromDouble(result); | |
16880 | return resultobj; | |
16881 | fail: | |
16882 | return NULL; | |
16883 | } | |
16884 | ||
16885 | ||
16886 | static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16887 | PyObject *resultobj; | |
16888 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16889 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 16890 | bool arg3 = (bool) False ; |
d14a1e28 | 16891 | wxDateTime result; |
44127b65 | 16892 | bool temp2 = False ; |
d14a1e28 RD |
16893 | PyObject * obj0 = 0 ; |
16894 | PyObject * obj1 = 0 ; | |
16895 | PyObject * obj2 = 0 ; | |
16896 | char *kwnames[] = { | |
16897 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16898 | }; | |
16899 | ||
16900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16902 | { | |
16903 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16904 | temp2 = True; |
d14a1e28 RD |
16905 | } |
16906 | if (obj2) { | |
16907 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16908 | if (PyErr_Occurred()) SWIG_fail; | |
16909 | } | |
16910 | { | |
16911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16912 | result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16913 | ||
16914 | wxPyEndAllowThreads(__tstate); | |
16915 | if (PyErr_Occurred()) SWIG_fail; | |
16916 | } | |
16917 | { | |
16918 | wxDateTime * resultptr; | |
16919 | resultptr = new wxDateTime((wxDateTime &) result); | |
16920 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
16921 | } | |
16922 | { | |
44127b65 | 16923 | if (temp2) delete arg2; |
d14a1e28 RD |
16924 | } |
16925 | return resultobj; | |
16926 | fail: | |
16927 | { | |
44127b65 | 16928 | if (temp2) delete arg2; |
d14a1e28 RD |
16929 | } |
16930 | return NULL; | |
16931 | } | |
16932 | ||
16933 | ||
16934 | static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16935 | PyObject *resultobj; | |
16936 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
16937 | wxDateTime::TimeZone *arg2 = 0 ; | |
423f194a | 16938 | bool arg3 = (bool) False ; |
d14a1e28 | 16939 | wxDateTime *result; |
44127b65 | 16940 | bool temp2 = False ; |
d14a1e28 RD |
16941 | PyObject * obj0 = 0 ; |
16942 | PyObject * obj1 = 0 ; | |
16943 | PyObject * obj2 = 0 ; | |
16944 | char *kwnames[] = { | |
16945 | (char *) "self",(char *) "tz",(char *) "noDST", NULL | |
16946 | }; | |
16947 | ||
16948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16950 | { | |
16951 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 16952 | temp2 = True; |
d14a1e28 RD |
16953 | } |
16954 | if (obj2) { | |
16955 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
16956 | if (PyErr_Occurred()) SWIG_fail; | |
16957 | } | |
16958 | { | |
16959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16960 | { | |
16961 | wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3); | |
16962 | result = (wxDateTime *) &_result_ref; | |
16963 | } | |
16964 | ||
16965 | wxPyEndAllowThreads(__tstate); | |
16966 | if (PyErr_Occurred()) SWIG_fail; | |
16967 | } | |
16968 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
16969 | { | |
44127b65 | 16970 | if (temp2) delete arg2; |
d14a1e28 RD |
16971 | } |
16972 | return resultobj; | |
16973 | fail: | |
16974 | { | |
44127b65 | 16975 | if (temp2) delete arg2; |
d14a1e28 RD |
16976 | } |
16977 | return NULL; | |
16978 | } | |
16979 | ||
16980 | ||
16981 | static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16982 | PyObject *resultobj; | |
16983 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 16984 | bool arg2 = (bool) False ; |
d14a1e28 RD |
16985 | wxDateTime result; |
16986 | PyObject * obj0 = 0 ; | |
16987 | PyObject * obj1 = 0 ; | |
16988 | char *kwnames[] = { | |
16989 | (char *) "self",(char *) "noDST", NULL | |
16990 | }; | |
16991 | ||
16992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail; | |
16993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16994 | if (obj1) { | |
16995 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
16996 | if (PyErr_Occurred()) SWIG_fail; | |
16997 | } | |
16998 | { | |
16999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17000 | result = (arg1)->ToGMT(arg2); | |
17001 | ||
17002 | wxPyEndAllowThreads(__tstate); | |
17003 | if (PyErr_Occurred()) SWIG_fail; | |
17004 | } | |
17005 | { | |
17006 | wxDateTime * resultptr; | |
17007 | resultptr = new wxDateTime((wxDateTime &) result); | |
17008 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
17009 | } | |
17010 | return resultobj; | |
17011 | fail: | |
17012 | return NULL; | |
17013 | } | |
17014 | ||
17015 | ||
17016 | static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17017 | PyObject *resultobj; | |
17018 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
423f194a | 17019 | bool arg2 = (bool) False ; |
d14a1e28 RD |
17020 | wxDateTime *result; |
17021 | PyObject * obj0 = 0 ; | |
17022 | PyObject * obj1 = 0 ; | |
17023 | char *kwnames[] = { | |
17024 | (char *) "self",(char *) "noDST", NULL | |
17025 | }; | |
17026 | ||
17027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail; | |
17028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17029 | if (obj1) { | |
17030 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | } | |
17033 | { | |
17034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17035 | { | |
17036 | wxDateTime &_result_ref = (arg1)->MakeGMT(arg2); | |
17037 | result = (wxDateTime *) &_result_ref; | |
17038 | } | |
17039 | ||
17040 | wxPyEndAllowThreads(__tstate); | |
17041 | if (PyErr_Occurred()) SWIG_fail; | |
17042 | } | |
17043 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17044 | return resultobj; | |
17045 | fail: | |
17046 | return NULL; | |
17047 | } | |
17048 | ||
17049 | ||
17050 | static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17051 | PyObject *resultobj; | |
17052 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17053 | int arg2 = (int) wxDateTime::Country_Default ; | |
17054 | int result; | |
17055 | PyObject * obj0 = 0 ; | |
17056 | char *kwnames[] = { | |
17057 | (char *) "self",(char *) "country", NULL | |
17058 | }; | |
17059 | ||
17060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsDST",kwnames,&obj0,&arg2)) goto fail; | |
17061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17062 | { | |
17063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17064 | result = (int)(arg1)->IsDST((wxDateTime::Country )arg2); | |
17065 | ||
17066 | wxPyEndAllowThreads(__tstate); | |
17067 | if (PyErr_Occurred()) SWIG_fail; | |
17068 | } | |
17069 | resultobj = PyInt_FromLong((long)result); | |
17070 | return resultobj; | |
17071 | fail: | |
17072 | return NULL; | |
17073 | } | |
17074 | ||
17075 | ||
17076 | static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17077 | PyObject *resultobj; | |
17078 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17079 | bool result; | |
17080 | PyObject * obj0 = 0 ; | |
17081 | char *kwnames[] = { | |
17082 | (char *) "self", NULL | |
17083 | }; | |
17084 | ||
17085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail; | |
17086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17087 | { | |
17088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17089 | result = (bool)((wxDateTime const *)arg1)->IsValid(); | |
17090 | ||
17091 | wxPyEndAllowThreads(__tstate); | |
17092 | if (PyErr_Occurred()) SWIG_fail; | |
17093 | } | |
17094 | resultobj = PyInt_FromLong((long)result); | |
17095 | return resultobj; | |
17096 | fail: | |
17097 | return NULL; | |
17098 | } | |
17099 | ||
17100 | ||
17101 | static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17102 | PyObject *resultobj; | |
17103 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17104 | time_t result; | |
17105 | PyObject * obj0 = 0 ; | |
17106 | char *kwnames[] = { | |
17107 | (char *) "self", NULL | |
17108 | }; | |
17109 | ||
17110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail; | |
17111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17112 | { | |
17113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17114 | result = (time_t)((wxDateTime const *)arg1)->GetTicks(); | |
17115 | ||
17116 | wxPyEndAllowThreads(__tstate); | |
17117 | if (PyErr_Occurred()) SWIG_fail; | |
17118 | } | |
17119 | resultobj = PyInt_FromLong((long)result); | |
17120 | return resultobj; | |
17121 | fail: | |
17122 | return NULL; | |
17123 | } | |
17124 | ||
17125 | ||
17126 | static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17127 | PyObject *resultobj; | |
17128 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17129 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17130 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17131 | int result; | |
44127b65 | 17132 | bool temp2 = False ; |
d14a1e28 RD |
17133 | PyObject * obj0 = 0 ; |
17134 | PyObject * obj1 = 0 ; | |
17135 | char *kwnames[] = { | |
17136 | (char *) "self",(char *) "tz", NULL | |
17137 | }; | |
17138 | ||
17139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail; | |
17140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17141 | if (obj1) { | |
17142 | { | |
17143 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17144 | temp2 = True; |
d14a1e28 RD |
17145 | } |
17146 | } | |
17147 | { | |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
17154 | resultobj = PyInt_FromLong((long)result); | |
17155 | { | |
44127b65 | 17156 | if (temp2) delete arg2; |
d14a1e28 RD |
17157 | } |
17158 | return resultobj; | |
17159 | fail: | |
17160 | { | |
44127b65 | 17161 | if (temp2) delete arg2; |
d14a1e28 RD |
17162 | } |
17163 | return NULL; | |
17164 | } | |
17165 | ||
17166 | ||
17167 | static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17168 | PyObject *resultobj; | |
17169 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17170 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17171 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17172 | int result; | |
44127b65 | 17173 | bool temp2 = False ; |
d14a1e28 RD |
17174 | PyObject * obj0 = 0 ; |
17175 | PyObject * obj1 = 0 ; | |
17176 | char *kwnames[] = { | |
17177 | (char *) "self",(char *) "tz", NULL | |
17178 | }; | |
17179 | ||
17180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail; | |
17181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17182 | if (obj1) { | |
17183 | { | |
17184 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17185 | temp2 = True; |
d14a1e28 RD |
17186 | } |
17187 | } | |
17188 | { | |
17189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17190 | result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2); | |
17191 | ||
17192 | wxPyEndAllowThreads(__tstate); | |
17193 | if (PyErr_Occurred()) SWIG_fail; | |
17194 | } | |
17195 | resultobj = PyInt_FromLong((long)result); | |
17196 | { | |
44127b65 | 17197 | if (temp2) delete arg2; |
d14a1e28 RD |
17198 | } |
17199 | return resultobj; | |
17200 | fail: | |
17201 | { | |
44127b65 | 17202 | if (temp2) delete arg2; |
d14a1e28 RD |
17203 | } |
17204 | return NULL; | |
17205 | } | |
17206 | ||
17207 | ||
17208 | static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17209 | PyObject *resultobj; | |
17210 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17211 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17212 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17213 | int result; |
17214 | bool temp2 = False ; | |
d14a1e28 RD |
17215 | PyObject * obj0 = 0 ; |
17216 | PyObject * obj1 = 0 ; | |
17217 | char *kwnames[] = { | |
17218 | (char *) "self",(char *) "tz", NULL | |
17219 | }; | |
17220 | ||
17221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail; | |
17222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17223 | if (obj1) { | |
17224 | { | |
17225 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17226 | temp2 = True; |
d14a1e28 RD |
17227 | } |
17228 | } | |
17229 | { | |
17230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17231 | result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17232 | |
17233 | wxPyEndAllowThreads(__tstate); | |
17234 | if (PyErr_Occurred()) SWIG_fail; | |
17235 | } | |
17236 | resultobj = PyInt_FromLong((long)result); | |
17237 | { | |
44127b65 | 17238 | if (temp2) delete arg2; |
d14a1e28 RD |
17239 | } |
17240 | return resultobj; | |
17241 | fail: | |
17242 | { | |
44127b65 | 17243 | if (temp2) delete arg2; |
d14a1e28 RD |
17244 | } |
17245 | return NULL; | |
17246 | } | |
17247 | ||
17248 | ||
17249 | static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17250 | PyObject *resultobj; | |
17251 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17252 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17253 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
17254 | int result; | |
44127b65 | 17255 | bool temp2 = False ; |
d14a1e28 RD |
17256 | PyObject * obj0 = 0 ; |
17257 | PyObject * obj1 = 0 ; | |
17258 | char *kwnames[] = { | |
17259 | (char *) "self",(char *) "tz", NULL | |
17260 | }; | |
17261 | ||
17262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail; | |
17263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17264 | if (obj1) { | |
17265 | { | |
17266 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17267 | temp2 = True; |
d14a1e28 RD |
17268 | } |
17269 | } | |
17270 | { | |
17271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17272 | result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2); | |
17273 | ||
17274 | wxPyEndAllowThreads(__tstate); | |
17275 | if (PyErr_Occurred()) SWIG_fail; | |
17276 | } | |
17277 | resultobj = PyInt_FromLong((long)result); | |
17278 | { | |
44127b65 | 17279 | if (temp2) delete arg2; |
d14a1e28 RD |
17280 | } |
17281 | return resultobj; | |
17282 | fail: | |
17283 | { | |
44127b65 | 17284 | if (temp2) delete arg2; |
d14a1e28 RD |
17285 | } |
17286 | return NULL; | |
17287 | } | |
17288 | ||
17289 | ||
17290 | static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17291 | PyObject *resultobj; | |
17292 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17293 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17294 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17295 | int result; |
17296 | bool temp2 = False ; | |
d14a1e28 RD |
17297 | PyObject * obj0 = 0 ; |
17298 | PyObject * obj1 = 0 ; | |
17299 | char *kwnames[] = { | |
17300 | (char *) "self",(char *) "tz", NULL | |
17301 | }; | |
17302 | ||
17303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail; | |
17304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17305 | if (obj1) { | |
17306 | { | |
17307 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17308 | temp2 = True; |
d14a1e28 RD |
17309 | } |
17310 | } | |
17311 | { | |
17312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17313 | result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17314 | |
17315 | wxPyEndAllowThreads(__tstate); | |
17316 | if (PyErr_Occurred()) SWIG_fail; | |
17317 | } | |
17318 | resultobj = PyInt_FromLong((long)result); | |
17319 | { | |
44127b65 | 17320 | if (temp2) delete arg2; |
d14a1e28 RD |
17321 | } |
17322 | return resultobj; | |
17323 | fail: | |
17324 | { | |
44127b65 | 17325 | if (temp2) delete arg2; |
d14a1e28 RD |
17326 | } |
17327 | return NULL; | |
17328 | } | |
17329 | ||
17330 | ||
17331 | static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17332 | PyObject *resultobj; | |
17333 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17334 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17335 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17336 | int result; |
17337 | bool temp2 = False ; | |
d14a1e28 RD |
17338 | PyObject * obj0 = 0 ; |
17339 | PyObject * obj1 = 0 ; | |
17340 | char *kwnames[] = { | |
17341 | (char *) "self",(char *) "tz", NULL | |
17342 | }; | |
17343 | ||
17344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail; | |
17345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17346 | if (obj1) { | |
17347 | { | |
17348 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17349 | temp2 = True; |
d14a1e28 RD |
17350 | } |
17351 | } | |
17352 | { | |
17353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17354 | result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17355 | |
17356 | wxPyEndAllowThreads(__tstate); | |
17357 | if (PyErr_Occurred()) SWIG_fail; | |
17358 | } | |
17359 | resultobj = PyInt_FromLong((long)result); | |
17360 | { | |
44127b65 | 17361 | if (temp2) delete arg2; |
d14a1e28 RD |
17362 | } |
17363 | return resultobj; | |
17364 | fail: | |
17365 | { | |
44127b65 | 17366 | if (temp2) delete arg2; |
d14a1e28 RD |
17367 | } |
17368 | return NULL; | |
17369 | } | |
17370 | ||
17371 | ||
17372 | static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17373 | PyObject *resultobj; | |
17374 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17375 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17376 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17377 | int result; |
17378 | bool temp2 = False ; | |
d14a1e28 RD |
17379 | PyObject * obj0 = 0 ; |
17380 | PyObject * obj1 = 0 ; | |
17381 | char *kwnames[] = { | |
17382 | (char *) "self",(char *) "tz", NULL | |
17383 | }; | |
17384 | ||
17385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail; | |
17386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17387 | if (obj1) { | |
17388 | { | |
17389 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17390 | temp2 = True; |
d14a1e28 RD |
17391 | } |
17392 | } | |
17393 | { | |
17394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17395 | result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17396 | |
17397 | wxPyEndAllowThreads(__tstate); | |
17398 | if (PyErr_Occurred()) SWIG_fail; | |
17399 | } | |
17400 | resultobj = PyInt_FromLong((long)result); | |
17401 | { | |
44127b65 | 17402 | if (temp2) delete arg2; |
d14a1e28 RD |
17403 | } |
17404 | return resultobj; | |
17405 | fail: | |
17406 | { | |
44127b65 | 17407 | if (temp2) delete arg2; |
d14a1e28 RD |
17408 | } |
17409 | return NULL; | |
17410 | } | |
17411 | ||
17412 | ||
17413 | static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17414 | PyObject *resultobj; | |
17415 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17416 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17417 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17418 | int result; |
17419 | bool temp2 = False ; | |
d14a1e28 RD |
17420 | PyObject * obj0 = 0 ; |
17421 | PyObject * obj1 = 0 ; | |
17422 | char *kwnames[] = { | |
17423 | (char *) "self",(char *) "tz", NULL | |
17424 | }; | |
17425 | ||
17426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail; | |
17427 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17428 | if (obj1) { | |
17429 | { | |
17430 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17431 | temp2 = True; |
d14a1e28 RD |
17432 | } |
17433 | } | |
17434 | { | |
17435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17436 | result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17437 | |
17438 | wxPyEndAllowThreads(__tstate); | |
17439 | if (PyErr_Occurred()) SWIG_fail; | |
17440 | } | |
17441 | resultobj = PyInt_FromLong((long)result); | |
17442 | { | |
44127b65 | 17443 | if (temp2) delete arg2; |
d14a1e28 RD |
17444 | } |
17445 | return resultobj; | |
17446 | fail: | |
17447 | { | |
44127b65 | 17448 | if (temp2) delete arg2; |
d14a1e28 RD |
17449 | } |
17450 | return NULL; | |
17451 | } | |
17452 | ||
17453 | ||
17454 | static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17455 | PyObject *resultobj; | |
17456 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17457 | wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ; | |
17458 | wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ; | |
44127b65 RD |
17459 | int result; |
17460 | bool temp2 = False ; | |
d14a1e28 RD |
17461 | PyObject * obj0 = 0 ; |
17462 | PyObject * obj1 = 0 ; | |
17463 | char *kwnames[] = { | |
17464 | (char *) "self",(char *) "tz", NULL | |
17465 | }; | |
17466 | ||
17467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail; | |
17468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17469 | if (obj1) { | |
17470 | { | |
17471 | arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1)); | |
44127b65 | 17472 | temp2 = True; |
d14a1e28 RD |
17473 | } |
17474 | } | |
17475 | { | |
17476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17477 | result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2); |
d14a1e28 RD |
17478 | |
17479 | wxPyEndAllowThreads(__tstate); | |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
17481 | } | |
17482 | resultobj = PyInt_FromLong((long)result); | |
17483 | { | |
44127b65 | 17484 | if (temp2) delete arg2; |
d14a1e28 RD |
17485 | } |
17486 | return resultobj; | |
17487 | fail: | |
17488 | { | |
44127b65 | 17489 | if (temp2) delete arg2; |
d14a1e28 RD |
17490 | } |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
17495 | static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17496 | PyObject *resultobj; | |
17497 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17498 | int arg2 = (int) wxDateTime::Monday_First ; | |
17499 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17500 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
17501 | int result; |
17502 | bool temp3 = False ; | |
d14a1e28 RD |
17503 | PyObject * obj0 = 0 ; |
17504 | PyObject * obj2 = 0 ; | |
17505 | char *kwnames[] = { | |
17506 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17507 | }; | |
17508 | ||
17509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfYear",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17511 | if (obj2) { | |
17512 | { | |
17513 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 17514 | temp3 = True; |
d14a1e28 RD |
17515 | } |
17516 | } | |
17517 | { | |
17518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17519 | result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17520 | |
17521 | wxPyEndAllowThreads(__tstate); | |
17522 | if (PyErr_Occurred()) SWIG_fail; | |
17523 | } | |
17524 | resultobj = PyInt_FromLong((long)result); | |
17525 | { | |
44127b65 | 17526 | if (temp3) delete arg3; |
d14a1e28 RD |
17527 | } |
17528 | return resultobj; | |
17529 | fail: | |
17530 | { | |
44127b65 | 17531 | if (temp3) delete arg3; |
d14a1e28 RD |
17532 | } |
17533 | return NULL; | |
17534 | } | |
17535 | ||
17536 | ||
17537 | static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17538 | PyObject *resultobj; | |
17539 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17540 | int arg2 = (int) wxDateTime::Monday_First ; | |
17541 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
17542 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
44127b65 RD |
17543 | int result; |
17544 | bool temp3 = False ; | |
d14a1e28 RD |
17545 | PyObject * obj0 = 0 ; |
17546 | PyObject * obj2 = 0 ; | |
17547 | char *kwnames[] = { | |
17548 | (char *) "self",(char *) "flags",(char *) "tz", NULL | |
17549 | }; | |
17550 | ||
17551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:DateTime_GetWeekOfMonth",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17553 | if (obj2) { | |
17554 | { | |
17555 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 17556 | temp3 = True; |
d14a1e28 RD |
17557 | } |
17558 | } | |
17559 | { | |
17560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 17561 | result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3); |
d14a1e28 RD |
17562 | |
17563 | wxPyEndAllowThreads(__tstate); | |
17564 | if (PyErr_Occurred()) SWIG_fail; | |
17565 | } | |
17566 | resultobj = PyInt_FromLong((long)result); | |
17567 | { | |
44127b65 | 17568 | if (temp3) delete arg3; |
d14a1e28 RD |
17569 | } |
17570 | return resultobj; | |
17571 | fail: | |
17572 | { | |
44127b65 | 17573 | if (temp3) delete arg3; |
d14a1e28 RD |
17574 | } |
17575 | return NULL; | |
17576 | } | |
17577 | ||
17578 | ||
17579 | static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17580 | PyObject *resultobj; | |
17581 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17582 | int arg2 = (int) wxDateTime::Country_Default ; | |
17583 | bool result; | |
17584 | PyObject * obj0 = 0 ; | |
17585 | char *kwnames[] = { | |
17586 | (char *) "self",(char *) "country", NULL | |
17587 | }; | |
17588 | ||
17589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DateTime_IsWorkDay",kwnames,&obj0,&arg2)) goto fail; | |
17590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17591 | { | |
17592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17593 | result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2); | |
17594 | ||
17595 | wxPyEndAllowThreads(__tstate); | |
17596 | if (PyErr_Occurred()) SWIG_fail; | |
17597 | } | |
17598 | resultobj = PyInt_FromLong((long)result); | |
17599 | return resultobj; | |
17600 | fail: | |
17601 | return NULL; | |
17602 | } | |
17603 | ||
17604 | ||
17605 | static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17606 | PyObject *resultobj; | |
17607 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17608 | wxDateTime *arg2 = 0 ; | |
17609 | bool result; | |
17610 | PyObject * obj0 = 0 ; | |
17611 | PyObject * obj1 = 0 ; | |
17612 | char *kwnames[] = { | |
17613 | (char *) "self",(char *) "datetime", NULL | |
17614 | }; | |
17615 | ||
17616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
17617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17618 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17619 | if (arg2 == NULL) { | |
17620 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17621 | } | |
17622 | { | |
17623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17624 | result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2); | |
17625 | ||
17626 | wxPyEndAllowThreads(__tstate); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
17628 | } | |
17629 | resultobj = PyInt_FromLong((long)result); | |
17630 | return resultobj; | |
17631 | fail: | |
17632 | return NULL; | |
17633 | } | |
17634 | ||
17635 | ||
17636 | static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17637 | PyObject *resultobj; | |
17638 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17639 | wxDateTime *arg2 = 0 ; | |
17640 | bool result; | |
17641 | PyObject * obj0 = 0 ; | |
17642 | PyObject * obj1 = 0 ; | |
17643 | char *kwnames[] = { | |
17644 | (char *) "self",(char *) "datetime", NULL | |
17645 | }; | |
17646 | ||
17647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail; | |
17648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17649 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17650 | if (arg2 == NULL) { | |
17651 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17652 | } | |
17653 | { | |
17654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17655 | result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2); | |
17656 | ||
17657 | wxPyEndAllowThreads(__tstate); | |
17658 | if (PyErr_Occurred()) SWIG_fail; | |
17659 | } | |
17660 | resultobj = PyInt_FromLong((long)result); | |
17661 | return resultobj; | |
17662 | fail: | |
17663 | return NULL; | |
17664 | } | |
17665 | ||
17666 | ||
17667 | static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17668 | PyObject *resultobj; | |
17669 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17670 | wxDateTime *arg2 = 0 ; | |
17671 | bool result; | |
17672 | PyObject * obj0 = 0 ; | |
17673 | PyObject * obj1 = 0 ; | |
17674 | char *kwnames[] = { | |
17675 | (char *) "self",(char *) "datetime", NULL | |
17676 | }; | |
17677 | ||
17678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail; | |
17679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17681 | if (arg2 == NULL) { | |
17682 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17683 | } | |
17684 | { | |
17685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17686 | result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2); | |
17687 | ||
17688 | wxPyEndAllowThreads(__tstate); | |
17689 | if (PyErr_Occurred()) SWIG_fail; | |
17690 | } | |
17691 | resultobj = PyInt_FromLong((long)result); | |
17692 | return resultobj; | |
17693 | fail: | |
17694 | return NULL; | |
17695 | } | |
17696 | ||
17697 | ||
17698 | static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17699 | PyObject *resultobj; | |
17700 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17701 | wxDateTime *arg2 = 0 ; | |
17702 | wxDateTime *arg3 = 0 ; | |
17703 | bool result; | |
17704 | PyObject * obj0 = 0 ; | |
17705 | PyObject * obj1 = 0 ; | |
17706 | PyObject * obj2 = 0 ; | |
17707 | char *kwnames[] = { | |
17708 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17709 | }; | |
17710 | ||
17711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17713 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17714 | if (arg2 == NULL) { | |
17715 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17716 | } | |
17717 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17718 | if (arg3 == NULL) { | |
17719 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17720 | } | |
17721 | { | |
17722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17723 | result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17724 | ||
17725 | wxPyEndAllowThreads(__tstate); | |
17726 | if (PyErr_Occurred()) SWIG_fail; | |
17727 | } | |
17728 | resultobj = PyInt_FromLong((long)result); | |
17729 | return resultobj; | |
17730 | fail: | |
17731 | return NULL; | |
17732 | } | |
17733 | ||
17734 | ||
17735 | static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17736 | PyObject *resultobj; | |
17737 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17738 | wxDateTime *arg2 = 0 ; | |
17739 | wxDateTime *arg3 = 0 ; | |
17740 | bool result; | |
17741 | PyObject * obj0 = 0 ; | |
17742 | PyObject * obj1 = 0 ; | |
17743 | PyObject * obj2 = 0 ; | |
17744 | char *kwnames[] = { | |
17745 | (char *) "self",(char *) "t1",(char *) "t2", NULL | |
17746 | }; | |
17747 | ||
17748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17750 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17751 | if (arg2 == NULL) { | |
17752 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17753 | } | |
17754 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17755 | if (arg3 == NULL) { | |
17756 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17757 | } | |
17758 | { | |
17759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17760 | result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3); | |
17761 | ||
17762 | wxPyEndAllowThreads(__tstate); | |
17763 | if (PyErr_Occurred()) SWIG_fail; | |
17764 | } | |
17765 | resultobj = PyInt_FromLong((long)result); | |
17766 | return resultobj; | |
17767 | fail: | |
17768 | return NULL; | |
17769 | } | |
17770 | ||
17771 | ||
17772 | static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17773 | PyObject *resultobj; | |
17774 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17775 | wxDateTime *arg2 = 0 ; | |
17776 | bool result; | |
17777 | PyObject * obj0 = 0 ; | |
17778 | PyObject * obj1 = 0 ; | |
17779 | char *kwnames[] = { | |
17780 | (char *) "self",(char *) "dt", NULL | |
17781 | }; | |
17782 | ||
17783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail; | |
17784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17785 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17786 | if (arg2 == NULL) { | |
17787 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17788 | } | |
17789 | { | |
17790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17791 | result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2); | |
17792 | ||
17793 | wxPyEndAllowThreads(__tstate); | |
17794 | if (PyErr_Occurred()) SWIG_fail; | |
17795 | } | |
17796 | resultobj = PyInt_FromLong((long)result); | |
17797 | return resultobj; | |
17798 | fail: | |
17799 | return NULL; | |
17800 | } | |
17801 | ||
17802 | ||
17803 | static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17804 | PyObject *resultobj; | |
17805 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17806 | wxDateTime *arg2 = 0 ; | |
17807 | bool result; | |
17808 | PyObject * obj0 = 0 ; | |
17809 | PyObject * obj1 = 0 ; | |
17810 | char *kwnames[] = { | |
17811 | (char *) "self",(char *) "dt", NULL | |
17812 | }; | |
17813 | ||
17814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail; | |
17815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17816 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17817 | if (arg2 == NULL) { | |
17818 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17819 | } | |
17820 | { | |
17821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17822 | result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2); | |
17823 | ||
17824 | wxPyEndAllowThreads(__tstate); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
17827 | resultobj = PyInt_FromLong((long)result); | |
17828 | return resultobj; | |
17829 | fail: | |
17830 | return NULL; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17835 | PyObject *resultobj; | |
17836 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17837 | wxDateTime *arg2 = 0 ; | |
17838 | wxTimeSpan *arg3 = 0 ; | |
17839 | bool result; | |
17840 | PyObject * obj0 = 0 ; | |
17841 | PyObject * obj1 = 0 ; | |
17842 | PyObject * obj2 = 0 ; | |
17843 | char *kwnames[] = { | |
17844 | (char *) "self",(char *) "dt",(char *) "ts", NULL | |
17845 | }; | |
17846 | ||
17847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17849 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17850 | if (arg2 == NULL) { | |
17851 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17852 | } | |
17853 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17854 | if (arg3 == NULL) { | |
17855 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17856 | } | |
17857 | { | |
17858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17859 | result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3); | |
17860 | ||
17861 | wxPyEndAllowThreads(__tstate); | |
17862 | if (PyErr_Occurred()) SWIG_fail; | |
17863 | } | |
17864 | resultobj = PyInt_FromLong((long)result); | |
17865 | return resultobj; | |
17866 | fail: | |
17867 | return NULL; | |
17868 | } | |
17869 | ||
17870 | ||
17871 | static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17872 | PyObject *resultobj; | |
17873 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17874 | wxTimeSpan *arg2 = 0 ; | |
17875 | wxDateTime *result; | |
17876 | PyObject * obj0 = 0 ; | |
17877 | PyObject * obj1 = 0 ; | |
17878 | char *kwnames[] = { | |
17879 | (char *) "self",(char *) "diff", NULL | |
17880 | }; | |
17881 | ||
17882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail; | |
17883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17884 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17885 | if (arg2 == NULL) { | |
17886 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17887 | } | |
17888 | { | |
17889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17890 | { | |
17891 | wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
17892 | result = (wxDateTime *) &_result_ref; | |
17893 | } | |
17894 | ||
17895 | wxPyEndAllowThreads(__tstate); | |
17896 | if (PyErr_Occurred()) SWIG_fail; | |
17897 | } | |
17898 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17899 | return resultobj; | |
17900 | fail: | |
17901 | return NULL; | |
17902 | } | |
17903 | ||
17904 | ||
17905 | static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17906 | PyObject *resultobj; | |
17907 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17908 | wxDateSpan *arg2 = 0 ; | |
17909 | wxDateTime *result; | |
17910 | PyObject * obj0 = 0 ; | |
17911 | PyObject * obj1 = 0 ; | |
17912 | char *kwnames[] = { | |
17913 | (char *) "self",(char *) "diff", NULL | |
17914 | }; | |
17915 | ||
17916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail; | |
17917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17918 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17919 | if (arg2 == NULL) { | |
17920 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17921 | } | |
17922 | { | |
17923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17924 | { | |
17925 | wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
17926 | result = (wxDateTime *) &_result_ref; | |
17927 | } | |
17928 | ||
17929 | wxPyEndAllowThreads(__tstate); | |
17930 | if (PyErr_Occurred()) SWIG_fail; | |
17931 | } | |
17932 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17933 | return resultobj; | |
17934 | fail: | |
17935 | return NULL; | |
17936 | } | |
17937 | ||
17938 | ||
17939 | static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17940 | PyObject *resultobj; | |
17941 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17942 | wxTimeSpan *arg2 = 0 ; | |
17943 | wxDateTime *result; | |
17944 | PyObject * obj0 = 0 ; | |
17945 | PyObject * obj1 = 0 ; | |
17946 | char *kwnames[] = { | |
17947 | (char *) "self",(char *) "diff", NULL | |
17948 | }; | |
17949 | ||
17950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail; | |
17951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17952 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17953 | if (arg2 == NULL) { | |
17954 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17955 | } | |
17956 | { | |
17957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17958 | { | |
17959 | wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
17960 | result = (wxDateTime *) &_result_ref; | |
17961 | } | |
17962 | ||
17963 | wxPyEndAllowThreads(__tstate); | |
17964 | if (PyErr_Occurred()) SWIG_fail; | |
17965 | } | |
17966 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
17967 | return resultobj; | |
17968 | fail: | |
17969 | return NULL; | |
17970 | } | |
17971 | ||
17972 | ||
17973 | static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17974 | PyObject *resultobj; | |
17975 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
17976 | wxDateSpan *arg2 = 0 ; | |
17977 | wxDateTime *result; | |
17978 | PyObject * obj0 = 0 ; | |
17979 | PyObject * obj1 = 0 ; | |
17980 | char *kwnames[] = { | |
17981 | (char *) "self",(char *) "diff", NULL | |
17982 | }; | |
17983 | ||
17984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail; | |
17985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17987 | if (arg2 == NULL) { | |
17988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17989 | } | |
17990 | { | |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17992 | { | |
17993 | wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
17994 | result = (wxDateTime *) &_result_ref; | |
17995 | } | |
17996 | ||
17997 | wxPyEndAllowThreads(__tstate); | |
17998 | if (PyErr_Occurred()) SWIG_fail; | |
17999 | } | |
18000 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18001 | return resultobj; | |
18002 | fail: | |
18003 | return NULL; | |
18004 | } | |
18005 | ||
18006 | ||
18007 | static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18008 | PyObject *resultobj; | |
18009 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18010 | wxDateTime *arg2 = 0 ; | |
18011 | wxTimeSpan result; | |
18012 | PyObject * obj0 = 0 ; | |
18013 | PyObject * obj1 = 0 ; | |
18014 | char *kwnames[] = { | |
18015 | (char *) "self",(char *) "dt", NULL | |
18016 | }; | |
18017 | ||
18018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
18019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18020 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18021 | if (arg2 == NULL) { | |
18022 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18023 | } | |
18024 | { | |
18025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18026 | result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2); | |
18027 | ||
18028 | wxPyEndAllowThreads(__tstate); | |
18029 | if (PyErr_Occurred()) SWIG_fail; | |
18030 | } | |
18031 | { | |
18032 | wxTimeSpan * resultptr; | |
18033 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18034 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18035 | } | |
18036 | return resultobj; | |
18037 | fail: | |
18038 | return NULL; | |
18039 | } | |
18040 | ||
18041 | ||
18042 | static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) { | |
18043 | PyObject *resultobj; | |
18044 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18045 | wxTimeSpan *arg2 = 0 ; | |
18046 | wxDateTime *result; | |
18047 | PyObject * obj0 = 0 ; | |
18048 | PyObject * obj1 = 0 ; | |
18049 | ||
18050 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
18051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18052 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18053 | if (arg2 == NULL) { | |
18054 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18055 | } | |
18056 | { | |
18057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18058 | { | |
18059 | wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
18060 | result = (wxDateTime *) &_result_ref; | |
18061 | } | |
18062 | ||
18063 | wxPyEndAllowThreads(__tstate); | |
18064 | if (PyErr_Occurred()) SWIG_fail; | |
18065 | } | |
18066 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18067 | return resultobj; | |
18068 | fail: | |
18069 | return NULL; | |
18070 | } | |
18071 | ||
18072 | ||
18073 | static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) { | |
18074 | PyObject *resultobj; | |
18075 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18076 | wxDateSpan *arg2 = 0 ; | |
18077 | wxDateTime *result; | |
18078 | PyObject * obj0 = 0 ; | |
18079 | PyObject * obj1 = 0 ; | |
18080 | ||
18081 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail; | |
18082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18083 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18084 | if (arg2 == NULL) { | |
18085 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18086 | } | |
18087 | { | |
18088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18089 | { | |
18090 | wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
18091 | result = (wxDateTime *) &_result_ref; | |
18092 | } | |
18093 | ||
18094 | wxPyEndAllowThreads(__tstate); | |
18095 | if (PyErr_Occurred()) SWIG_fail; | |
18096 | } | |
18097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18098 | return resultobj; | |
18099 | fail: | |
18100 | return NULL; | |
18101 | } | |
18102 | ||
18103 | ||
18104 | static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) { | |
18105 | int argc; | |
18106 | PyObject *argv[3]; | |
18107 | int ii; | |
18108 | ||
18109 | argc = PyObject_Length(args); | |
18110 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18111 | argv[ii] = PyTuple_GetItem(args,ii); | |
18112 | } | |
18113 | if (argc == 2) { | |
18114 | int _v; | |
18115 | { | |
18116 | void *ptr; | |
18117 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18118 | _v = 0; | |
18119 | PyErr_Clear(); | |
18120 | } else { | |
18121 | _v = 1; | |
18122 | } | |
18123 | } | |
18124 | if (_v) { | |
18125 | { | |
18126 | void *ptr; | |
18127 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18128 | _v = 0; | |
18129 | PyErr_Clear(); | |
18130 | } else { | |
18131 | _v = 1; | |
18132 | } | |
18133 | } | |
18134 | if (_v) { | |
18135 | return _wrap_DateTime___iadd____SWIG_0(self,args); | |
18136 | } | |
18137 | } | |
18138 | } | |
18139 | if (argc == 2) { | |
18140 | int _v; | |
18141 | { | |
18142 | void *ptr; | |
18143 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18144 | _v = 0; | |
18145 | PyErr_Clear(); | |
18146 | } else { | |
18147 | _v = 1; | |
18148 | } | |
18149 | } | |
18150 | if (_v) { | |
18151 | { | |
18152 | void *ptr; | |
18153 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18154 | _v = 0; | |
18155 | PyErr_Clear(); | |
18156 | } else { | |
18157 | _v = 1; | |
18158 | } | |
18159 | } | |
18160 | if (_v) { | |
18161 | return _wrap_DateTime___iadd____SWIG_1(self,args); | |
18162 | } | |
18163 | } | |
18164 | } | |
18165 | ||
18166 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'"); | |
18167 | return NULL; | |
18168 | } | |
18169 | ||
18170 | ||
18171 | static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) { | |
18172 | PyObject *resultobj; | |
18173 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18174 | wxTimeSpan *arg2 = 0 ; | |
18175 | wxDateTime *result; | |
18176 | PyObject * obj0 = 0 ; | |
18177 | PyObject * obj1 = 0 ; | |
18178 | ||
18179 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18181 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18182 | if (arg2 == NULL) { | |
18183 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18184 | } | |
18185 | { | |
18186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18187 | { | |
18188 | wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
18189 | result = (wxDateTime *) &_result_ref; | |
18190 | } | |
18191 | ||
18192 | wxPyEndAllowThreads(__tstate); | |
18193 | if (PyErr_Occurred()) SWIG_fail; | |
18194 | } | |
18195 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18196 | return resultobj; | |
18197 | fail: | |
18198 | return NULL; | |
18199 | } | |
18200 | ||
18201 | ||
18202 | static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) { | |
18203 | PyObject *resultobj; | |
18204 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18205 | wxDateSpan *arg2 = 0 ; | |
18206 | wxDateTime *result; | |
18207 | PyObject * obj0 = 0 ; | |
18208 | PyObject * obj1 = 0 ; | |
18209 | ||
18210 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail; | |
18211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18212 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18213 | if (arg2 == NULL) { | |
18214 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18215 | } | |
18216 | { | |
18217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18218 | { | |
18219 | wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
18220 | result = (wxDateTime *) &_result_ref; | |
18221 | } | |
18222 | ||
18223 | wxPyEndAllowThreads(__tstate); | |
18224 | if (PyErr_Occurred()) SWIG_fail; | |
18225 | } | |
18226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateTime, 0); | |
18227 | return resultobj; | |
18228 | fail: | |
18229 | return NULL; | |
18230 | } | |
18231 | ||
18232 | ||
18233 | static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) { | |
18234 | int argc; | |
18235 | PyObject *argv[3]; | |
18236 | int ii; | |
18237 | ||
18238 | argc = PyObject_Length(args); | |
18239 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18240 | argv[ii] = PyTuple_GetItem(args,ii); | |
18241 | } | |
18242 | if (argc == 2) { | |
18243 | int _v; | |
18244 | { | |
18245 | void *ptr; | |
18246 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18247 | _v = 0; | |
18248 | PyErr_Clear(); | |
18249 | } else { | |
18250 | _v = 1; | |
18251 | } | |
18252 | } | |
18253 | if (_v) { | |
18254 | { | |
18255 | void *ptr; | |
18256 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18257 | _v = 0; | |
18258 | PyErr_Clear(); | |
18259 | } else { | |
18260 | _v = 1; | |
18261 | } | |
18262 | } | |
18263 | if (_v) { | |
18264 | return _wrap_DateTime___isub____SWIG_0(self,args); | |
18265 | } | |
18266 | } | |
18267 | } | |
18268 | if (argc == 2) { | |
18269 | int _v; | |
18270 | { | |
18271 | void *ptr; | |
18272 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18273 | _v = 0; | |
18274 | PyErr_Clear(); | |
18275 | } else { | |
18276 | _v = 1; | |
18277 | } | |
18278 | } | |
18279 | if (_v) { | |
18280 | { | |
18281 | void *ptr; | |
18282 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18283 | _v = 0; | |
18284 | PyErr_Clear(); | |
18285 | } else { | |
18286 | _v = 1; | |
18287 | } | |
18288 | } | |
18289 | if (_v) { | |
18290 | return _wrap_DateTime___isub____SWIG_1(self,args); | |
18291 | } | |
18292 | } | |
18293 | } | |
18294 | ||
18295 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'"); | |
18296 | return NULL; | |
18297 | } | |
18298 | ||
18299 | ||
18300 | static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) { | |
18301 | PyObject *resultobj; | |
18302 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18303 | wxTimeSpan *arg2 = 0 ; | |
18304 | wxDateTime result; | |
18305 | PyObject * obj0 = 0 ; | |
18306 | PyObject * obj1 = 0 ; | |
18307 | ||
18308 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18309 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18310 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18311 | if (arg2 == NULL) { | |
18312 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18313 | } | |
18314 | { | |
18315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18316 | result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2); | |
18317 | ||
18318 | wxPyEndAllowThreads(__tstate); | |
18319 | if (PyErr_Occurred()) SWIG_fail; | |
18320 | } | |
18321 | { | |
18322 | wxDateTime * resultptr; | |
18323 | resultptr = new wxDateTime((wxDateTime &) result); | |
18324 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18325 | } | |
18326 | return resultobj; | |
18327 | fail: | |
18328 | return NULL; | |
18329 | } | |
18330 | ||
18331 | ||
18332 | static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) { | |
18333 | PyObject *resultobj; | |
18334 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18335 | wxDateSpan *arg2 = 0 ; | |
18336 | wxDateTime result; | |
18337 | PyObject * obj0 = 0 ; | |
18338 | PyObject * obj1 = 0 ; | |
18339 | ||
18340 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail; | |
18341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18342 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18343 | if (arg2 == NULL) { | |
18344 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18345 | } | |
18346 | { | |
18347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18348 | result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2); | |
18349 | ||
18350 | wxPyEndAllowThreads(__tstate); | |
18351 | if (PyErr_Occurred()) SWIG_fail; | |
18352 | } | |
18353 | { | |
18354 | wxDateTime * resultptr; | |
18355 | resultptr = new wxDateTime((wxDateTime &) result); | |
18356 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18357 | } | |
18358 | return resultobj; | |
18359 | fail: | |
18360 | return NULL; | |
18361 | } | |
18362 | ||
18363 | ||
18364 | static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) { | |
18365 | int argc; | |
18366 | PyObject *argv[3]; | |
18367 | int ii; | |
18368 | ||
18369 | argc = PyObject_Length(args); | |
18370 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18371 | argv[ii] = PyTuple_GetItem(args,ii); | |
18372 | } | |
18373 | if (argc == 2) { | |
18374 | int _v; | |
18375 | { | |
18376 | void *ptr; | |
18377 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18378 | _v = 0; | |
18379 | PyErr_Clear(); | |
18380 | } else { | |
18381 | _v = 1; | |
18382 | } | |
18383 | } | |
18384 | if (_v) { | |
18385 | { | |
18386 | void *ptr; | |
18387 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18388 | _v = 0; | |
18389 | PyErr_Clear(); | |
18390 | } else { | |
18391 | _v = 1; | |
18392 | } | |
18393 | } | |
18394 | if (_v) { | |
18395 | return _wrap_DateTime___add____SWIG_0(self,args); | |
18396 | } | |
18397 | } | |
18398 | } | |
18399 | if (argc == 2) { | |
18400 | int _v; | |
18401 | { | |
18402 | void *ptr; | |
18403 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18404 | _v = 0; | |
18405 | PyErr_Clear(); | |
18406 | } else { | |
18407 | _v = 1; | |
18408 | } | |
18409 | } | |
18410 | if (_v) { | |
18411 | { | |
18412 | void *ptr; | |
18413 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18414 | _v = 0; | |
18415 | PyErr_Clear(); | |
18416 | } else { | |
18417 | _v = 1; | |
18418 | } | |
18419 | } | |
18420 | if (_v) { | |
18421 | return _wrap_DateTime___add____SWIG_1(self,args); | |
18422 | } | |
18423 | } | |
18424 | } | |
18425 | ||
18426 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'"); | |
18427 | return NULL; | |
18428 | } | |
18429 | ||
18430 | ||
18431 | static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) { | |
18432 | PyObject *resultobj; | |
18433 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18434 | wxDateTime *arg2 = 0 ; | |
18435 | wxTimeSpan result; | |
18436 | PyObject * obj0 = 0 ; | |
18437 | PyObject * obj1 = 0 ; | |
18438 | ||
18439 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18441 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18442 | if (arg2 == NULL) { | |
18443 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18444 | } | |
18445 | { | |
18446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18447 | result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2); | |
18448 | ||
18449 | wxPyEndAllowThreads(__tstate); | |
18450 | if (PyErr_Occurred()) SWIG_fail; | |
18451 | } | |
18452 | { | |
18453 | wxTimeSpan * resultptr; | |
18454 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
18455 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
18456 | } | |
18457 | return resultobj; | |
18458 | fail: | |
18459 | return NULL; | |
18460 | } | |
18461 | ||
18462 | ||
18463 | static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) { | |
18464 | PyObject *resultobj; | |
18465 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18466 | wxTimeSpan *arg2 = 0 ; | |
18467 | wxDateTime result; | |
18468 | PyObject * obj0 = 0 ; | |
18469 | PyObject * obj1 = 0 ; | |
18470 | ||
18471 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18473 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18474 | if (arg2 == NULL) { | |
18475 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18476 | } | |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2); | |
18480 | ||
18481 | wxPyEndAllowThreads(__tstate); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
18483 | } | |
18484 | { | |
18485 | wxDateTime * resultptr; | |
18486 | resultptr = new wxDateTime((wxDateTime &) result); | |
18487 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18488 | } | |
18489 | return resultobj; | |
18490 | fail: | |
18491 | return NULL; | |
18492 | } | |
18493 | ||
18494 | ||
18495 | static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) { | |
18496 | PyObject *resultobj; | |
18497 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18498 | wxDateSpan *arg2 = 0 ; | |
18499 | wxDateTime result; | |
18500 | PyObject * obj0 = 0 ; | |
18501 | PyObject * obj1 = 0 ; | |
18502 | ||
18503 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail; | |
18504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18505 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18506 | if (arg2 == NULL) { | |
18507 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18508 | } | |
18509 | { | |
18510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18511 | result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2); | |
18512 | ||
18513 | wxPyEndAllowThreads(__tstate); | |
18514 | if (PyErr_Occurred()) SWIG_fail; | |
18515 | } | |
18516 | { | |
18517 | wxDateTime * resultptr; | |
18518 | resultptr = new wxDateTime((wxDateTime &) result); | |
18519 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1); | |
18520 | } | |
18521 | return resultobj; | |
18522 | fail: | |
18523 | return NULL; | |
18524 | } | |
18525 | ||
18526 | ||
18527 | static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) { | |
18528 | int argc; | |
18529 | PyObject *argv[3]; | |
18530 | int ii; | |
18531 | ||
18532 | argc = PyObject_Length(args); | |
18533 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
18534 | argv[ii] = PyTuple_GetItem(args,ii); | |
18535 | } | |
18536 | if (argc == 2) { | |
18537 | int _v; | |
18538 | { | |
18539 | void *ptr; | |
18540 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18541 | _v = 0; | |
18542 | PyErr_Clear(); | |
18543 | } else { | |
18544 | _v = 1; | |
18545 | } | |
18546 | } | |
18547 | if (_v) { | |
18548 | { | |
18549 | void *ptr; | |
18550 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18551 | _v = 0; | |
18552 | PyErr_Clear(); | |
18553 | } else { | |
18554 | _v = 1; | |
18555 | } | |
18556 | } | |
18557 | if (_v) { | |
18558 | return _wrap_DateTime___sub____SWIG_0(self,args); | |
18559 | } | |
18560 | } | |
18561 | } | |
18562 | if (argc == 2) { | |
18563 | int _v; | |
18564 | { | |
18565 | void *ptr; | |
18566 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18567 | _v = 0; | |
18568 | PyErr_Clear(); | |
18569 | } else { | |
18570 | _v = 1; | |
18571 | } | |
18572 | } | |
18573 | if (_v) { | |
18574 | { | |
18575 | void *ptr; | |
18576 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) { | |
18577 | _v = 0; | |
18578 | PyErr_Clear(); | |
18579 | } else { | |
18580 | _v = 1; | |
18581 | } | |
18582 | } | |
18583 | if (_v) { | |
18584 | return _wrap_DateTime___sub____SWIG_1(self,args); | |
18585 | } | |
18586 | } | |
18587 | } | |
18588 | if (argc == 2) { | |
18589 | int _v; | |
18590 | { | |
18591 | void *ptr; | |
18592 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) { | |
18593 | _v = 0; | |
18594 | PyErr_Clear(); | |
18595 | } else { | |
18596 | _v = 1; | |
18597 | } | |
18598 | } | |
18599 | if (_v) { | |
18600 | { | |
18601 | void *ptr; | |
18602 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) { | |
18603 | _v = 0; | |
18604 | PyErr_Clear(); | |
18605 | } else { | |
18606 | _v = 1; | |
18607 | } | |
18608 | } | |
18609 | if (_v) { | |
18610 | return _wrap_DateTime___sub____SWIG_2(self,args); | |
18611 | } | |
18612 | } | |
18613 | } | |
18614 | ||
18615 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'"); | |
18616 | return NULL; | |
18617 | } | |
18618 | ||
18619 | ||
18620 | static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) { | |
18621 | PyObject *resultobj; | |
18622 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18623 | wxDateTime *arg2 = 0 ; | |
18624 | bool result; | |
18625 | PyObject * obj0 = 0 ; | |
18626 | PyObject * obj1 = 0 ; | |
18627 | ||
18628 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail; | |
18629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18630 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18631 | if (arg2 == NULL) { | |
18632 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18633 | } | |
18634 | { | |
18635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18636 | result = (bool)wxDateTime___lt__(arg1,(wxDateTime const &)*arg2); | |
18637 | ||
18638 | wxPyEndAllowThreads(__tstate); | |
18639 | if (PyErr_Occurred()) SWIG_fail; | |
18640 | } | |
18641 | resultobj = PyInt_FromLong((long)result); | |
18642 | return resultobj; | |
18643 | fail: | |
18644 | return NULL; | |
18645 | } | |
18646 | ||
18647 | ||
18648 | static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) { | |
18649 | PyObject *resultobj; | |
18650 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18651 | wxDateTime *arg2 = 0 ; | |
18652 | bool result; | |
18653 | PyObject * obj0 = 0 ; | |
18654 | PyObject * obj1 = 0 ; | |
18655 | ||
18656 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail; | |
18657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18658 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18659 | if (arg2 == NULL) { | |
18660 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18661 | } | |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | result = (bool)wxDateTime___le__(arg1,(wxDateTime const &)*arg2); | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
18669 | resultobj = PyInt_FromLong((long)result); | |
18670 | return resultobj; | |
18671 | fail: | |
18672 | return NULL; | |
18673 | } | |
18674 | ||
18675 | ||
18676 | static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) { | |
18677 | PyObject *resultobj; | |
18678 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18679 | wxDateTime *arg2 = 0 ; | |
18680 | bool result; | |
18681 | PyObject * obj0 = 0 ; | |
18682 | PyObject * obj1 = 0 ; | |
18683 | ||
18684 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail; | |
18685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18686 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18687 | if (arg2 == NULL) { | |
18688 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18689 | } | |
18690 | { | |
18691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18692 | result = (bool)wxDateTime___gt__(arg1,(wxDateTime const &)*arg2); | |
18693 | ||
18694 | wxPyEndAllowThreads(__tstate); | |
18695 | if (PyErr_Occurred()) SWIG_fail; | |
18696 | } | |
18697 | resultobj = PyInt_FromLong((long)result); | |
18698 | return resultobj; | |
18699 | fail: | |
18700 | return NULL; | |
18701 | } | |
18702 | ||
18703 | ||
18704 | static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) { | |
18705 | PyObject *resultobj; | |
18706 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18707 | wxDateTime *arg2 = 0 ; | |
18708 | bool result; | |
18709 | PyObject * obj0 = 0 ; | |
18710 | PyObject * obj1 = 0 ; | |
18711 | ||
18712 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail; | |
18713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18714 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18715 | if (arg2 == NULL) { | |
18716 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18717 | } | |
18718 | { | |
18719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18720 | result = (bool)wxDateTime___ge__(arg1,(wxDateTime const &)*arg2); | |
18721 | ||
18722 | wxPyEndAllowThreads(__tstate); | |
18723 | if (PyErr_Occurred()) SWIG_fail; | |
18724 | } | |
18725 | resultobj = PyInt_FromLong((long)result); | |
18726 | return resultobj; | |
18727 | fail: | |
18728 | return NULL; | |
18729 | } | |
18730 | ||
18731 | ||
18732 | static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) { | |
18733 | PyObject *resultobj; | |
18734 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18735 | wxDateTime *arg2 = 0 ; | |
18736 | bool result; | |
18737 | PyObject * obj0 = 0 ; | |
18738 | PyObject * obj1 = 0 ; | |
18739 | ||
18740 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail; | |
18741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18742 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18743 | if (arg2 == NULL) { | |
18744 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18745 | } | |
18746 | { | |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18748 | result = (bool)wxDateTime___eq__(arg1,(wxDateTime const &)*arg2); | |
18749 | ||
18750 | wxPyEndAllowThreads(__tstate); | |
18751 | if (PyErr_Occurred()) SWIG_fail; | |
18752 | } | |
18753 | resultobj = PyInt_FromLong((long)result); | |
18754 | return resultobj; | |
18755 | fail: | |
18756 | return NULL; | |
18757 | } | |
18758 | ||
18759 | ||
18760 | static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) { | |
18761 | PyObject *resultobj; | |
18762 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18763 | wxDateTime *arg2 = 0 ; | |
18764 | bool result; | |
18765 | PyObject * obj0 = 0 ; | |
18766 | PyObject * obj1 = 0 ; | |
18767 | ||
18768 | if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail; | |
18769 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18770 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18771 | if (arg2 == NULL) { | |
18772 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18773 | } | |
18774 | { | |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | result = (bool)wxDateTime___ne__(arg1,(wxDateTime const &)*arg2); | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
18781 | resultobj = PyInt_FromLong((long)result); | |
18782 | return resultobj; | |
18783 | fail: | |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
18788 | static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18789 | PyObject *resultobj; | |
18790 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18791 | wxString *arg2 = 0 ; | |
18792 | int result; | |
423f194a | 18793 | bool temp2 = False ; |
d14a1e28 RD |
18794 | PyObject * obj0 = 0 ; |
18795 | PyObject * obj1 = 0 ; | |
18796 | char *kwnames[] = { | |
18797 | (char *) "self",(char *) "date", NULL | |
18798 | }; | |
18799 | ||
18800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail; | |
18801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18802 | { | |
18803 | arg2 = wxString_in_helper(obj1); | |
18804 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18805 | temp2 = True; |
d14a1e28 RD |
18806 | } |
18807 | { | |
18808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18809 | result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2); | |
18810 | ||
18811 | wxPyEndAllowThreads(__tstate); | |
18812 | if (PyErr_Occurred()) SWIG_fail; | |
18813 | } | |
18814 | resultobj = PyInt_FromLong((long)result); | |
18815 | { | |
18816 | if (temp2) | |
18817 | delete arg2; | |
18818 | } | |
18819 | return resultobj; | |
18820 | fail: | |
18821 | { | |
18822 | if (temp2) | |
18823 | delete arg2; | |
18824 | } | |
18825 | return NULL; | |
18826 | } | |
18827 | ||
18828 | ||
18829 | static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18830 | PyObject *resultobj; | |
18831 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18832 | wxString *arg2 = 0 ; | |
18833 | wxString const &arg3_defvalue = wxPyDateFormatStr ; | |
18834 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
18835 | wxDateTime const &arg4_defvalue = wxDefaultDateTime ; | |
18836 | wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ; | |
18837 | int result; | |
423f194a RD |
18838 | bool temp2 = False ; |
18839 | bool temp3 = False ; | |
d14a1e28 RD |
18840 | PyObject * obj0 = 0 ; |
18841 | PyObject * obj1 = 0 ; | |
18842 | PyObject * obj2 = 0 ; | |
18843 | PyObject * obj3 = 0 ; | |
18844 | char *kwnames[] = { | |
18845 | (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL | |
18846 | }; | |
18847 | ||
18848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18850 | { | |
18851 | arg2 = wxString_in_helper(obj1); | |
18852 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18853 | temp2 = True; |
d14a1e28 RD |
18854 | } |
18855 | if (obj2) { | |
18856 | { | |
18857 | arg3 = wxString_in_helper(obj2); | |
18858 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 18859 | temp3 = True; |
d14a1e28 RD |
18860 | } |
18861 | } | |
18862 | if (obj3) { | |
18863 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18864 | if (arg4 == NULL) { | |
18865 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18866 | } | |
18867 | } | |
18868 | { | |
18869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18870 | result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4); | |
18871 | ||
18872 | wxPyEndAllowThreads(__tstate); | |
18873 | if (PyErr_Occurred()) SWIG_fail; | |
18874 | } | |
18875 | resultobj = PyInt_FromLong((long)result); | |
18876 | { | |
18877 | if (temp2) | |
18878 | delete arg2; | |
18879 | } | |
18880 | { | |
18881 | if (temp3) | |
18882 | delete arg3; | |
18883 | } | |
18884 | return resultobj; | |
18885 | fail: | |
18886 | { | |
18887 | if (temp2) | |
18888 | delete arg2; | |
18889 | } | |
18890 | { | |
18891 | if (temp3) | |
18892 | delete arg3; | |
18893 | } | |
18894 | return NULL; | |
18895 | } | |
18896 | ||
18897 | ||
18898 | static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18899 | PyObject *resultobj; | |
18900 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18901 | wxString *arg2 = 0 ; | |
18902 | int result; | |
423f194a | 18903 | bool temp2 = False ; |
d14a1e28 RD |
18904 | PyObject * obj0 = 0 ; |
18905 | PyObject * obj1 = 0 ; | |
18906 | char *kwnames[] = { | |
18907 | (char *) "self",(char *) "datetime", NULL | |
18908 | }; | |
18909 | ||
18910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail; | |
18911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18912 | { | |
18913 | arg2 = wxString_in_helper(obj1); | |
18914 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18915 | temp2 = True; |
d14a1e28 RD |
18916 | } |
18917 | { | |
18918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18919 | result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2); | |
18920 | ||
18921 | wxPyEndAllowThreads(__tstate); | |
18922 | if (PyErr_Occurred()) SWIG_fail; | |
18923 | } | |
18924 | resultobj = PyInt_FromLong((long)result); | |
18925 | { | |
18926 | if (temp2) | |
18927 | delete arg2; | |
18928 | } | |
18929 | return resultobj; | |
18930 | fail: | |
18931 | { | |
18932 | if (temp2) | |
18933 | delete arg2; | |
18934 | } | |
18935 | return NULL; | |
18936 | } | |
18937 | ||
18938 | ||
18939 | static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18940 | PyObject *resultobj; | |
18941 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18942 | wxString *arg2 = 0 ; | |
18943 | int result; | |
423f194a | 18944 | bool temp2 = False ; |
d14a1e28 RD |
18945 | PyObject * obj0 = 0 ; |
18946 | PyObject * obj1 = 0 ; | |
18947 | char *kwnames[] = { | |
18948 | (char *) "self",(char *) "date", NULL | |
18949 | }; | |
18950 | ||
18951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail; | |
18952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18953 | { | |
18954 | arg2 = wxString_in_helper(obj1); | |
18955 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18956 | temp2 = True; |
d14a1e28 RD |
18957 | } |
18958 | { | |
18959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18960 | result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2); | |
18961 | ||
18962 | wxPyEndAllowThreads(__tstate); | |
18963 | if (PyErr_Occurred()) SWIG_fail; | |
18964 | } | |
18965 | resultobj = PyInt_FromLong((long)result); | |
18966 | { | |
18967 | if (temp2) | |
18968 | delete arg2; | |
18969 | } | |
18970 | return resultobj; | |
18971 | fail: | |
18972 | { | |
18973 | if (temp2) | |
18974 | delete arg2; | |
18975 | } | |
18976 | return NULL; | |
18977 | } | |
18978 | ||
18979 | ||
18980 | static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18981 | PyObject *resultobj; | |
18982 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
18983 | wxString *arg2 = 0 ; | |
18984 | int result; | |
423f194a | 18985 | bool temp2 = False ; |
d14a1e28 RD |
18986 | PyObject * obj0 = 0 ; |
18987 | PyObject * obj1 = 0 ; | |
18988 | char *kwnames[] = { | |
18989 | (char *) "self",(char *) "time", NULL | |
18990 | }; | |
18991 | ||
18992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail; | |
18993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18994 | { | |
18995 | arg2 = wxString_in_helper(obj1); | |
18996 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18997 | temp2 = True; |
d14a1e28 RD |
18998 | } |
18999 | { | |
19000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19001 | result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2); | |
19002 | ||
19003 | wxPyEndAllowThreads(__tstate); | |
19004 | if (PyErr_Occurred()) SWIG_fail; | |
19005 | } | |
19006 | resultobj = PyInt_FromLong((long)result); | |
19007 | { | |
19008 | if (temp2) | |
19009 | delete arg2; | |
19010 | } | |
19011 | return resultobj; | |
19012 | fail: | |
19013 | { | |
19014 | if (temp2) | |
19015 | delete arg2; | |
19016 | } | |
19017 | return NULL; | |
19018 | } | |
19019 | ||
19020 | ||
19021 | static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19022 | PyObject *resultobj; | |
19023 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19024 | wxString const &arg2_defvalue = wxPyDateFormatStr ; | |
19025 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
19026 | wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ; | |
19027 | wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ; | |
19028 | wxString result; | |
423f194a | 19029 | bool temp2 = False ; |
44127b65 | 19030 | bool temp3 = False ; |
d14a1e28 RD |
19031 | PyObject * obj0 = 0 ; |
19032 | PyObject * obj1 = 0 ; | |
19033 | PyObject * obj2 = 0 ; | |
19034 | char *kwnames[] = { | |
19035 | (char *) "self",(char *) "format",(char *) "tz", NULL | |
19036 | }; | |
19037 | ||
19038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19040 | if (obj1) { | |
19041 | { | |
19042 | arg2 = wxString_in_helper(obj1); | |
19043 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 19044 | temp2 = True; |
d14a1e28 RD |
19045 | } |
19046 | } | |
19047 | if (obj2) { | |
19048 | { | |
19049 | arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2)); | |
44127b65 | 19050 | temp3 = True; |
d14a1e28 RD |
19051 | } |
19052 | } | |
19053 | { | |
19054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19055 | result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3); | |
19056 | ||
19057 | wxPyEndAllowThreads(__tstate); | |
19058 | if (PyErr_Occurred()) SWIG_fail; | |
19059 | } | |
19060 | { | |
19061 | #if wxUSE_UNICODE | |
19062 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19063 | #else | |
19064 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19065 | #endif | |
19066 | } | |
19067 | { | |
19068 | if (temp2) | |
19069 | delete arg2; | |
19070 | } | |
19071 | { | |
44127b65 | 19072 | if (temp3) delete arg3; |
d14a1e28 RD |
19073 | } |
19074 | return resultobj; | |
19075 | fail: | |
19076 | { | |
19077 | if (temp2) | |
19078 | delete arg2; | |
19079 | } | |
19080 | { | |
44127b65 | 19081 | if (temp3) delete arg3; |
d14a1e28 RD |
19082 | } |
19083 | return NULL; | |
19084 | } | |
19085 | ||
19086 | ||
19087 | static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19088 | PyObject *resultobj; | |
19089 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19090 | wxString result; | |
19091 | PyObject * obj0 = 0 ; | |
19092 | char *kwnames[] = { | |
19093 | (char *) "self", NULL | |
19094 | }; | |
19095 | ||
19096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail; | |
19097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19098 | { | |
19099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19100 | result = ((wxDateTime const *)arg1)->FormatDate(); | |
19101 | ||
19102 | wxPyEndAllowThreads(__tstate); | |
19103 | if (PyErr_Occurred()) SWIG_fail; | |
19104 | } | |
19105 | { | |
19106 | #if wxUSE_UNICODE | |
19107 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19108 | #else | |
19109 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19110 | #endif | |
19111 | } | |
19112 | return resultobj; | |
19113 | fail: | |
19114 | return NULL; | |
19115 | } | |
19116 | ||
19117 | ||
19118 | static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19119 | PyObject *resultobj; | |
19120 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19121 | wxString result; | |
19122 | PyObject * obj0 = 0 ; | |
19123 | char *kwnames[] = { | |
19124 | (char *) "self", NULL | |
19125 | }; | |
19126 | ||
19127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail; | |
19128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19129 | { | |
19130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19131 | result = ((wxDateTime const *)arg1)->FormatTime(); | |
19132 | ||
19133 | wxPyEndAllowThreads(__tstate); | |
19134 | if (PyErr_Occurred()) SWIG_fail; | |
19135 | } | |
19136 | { | |
19137 | #if wxUSE_UNICODE | |
19138 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19139 | #else | |
19140 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19141 | #endif | |
19142 | } | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj; | |
19151 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19152 | wxString result; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | char *kwnames[] = { | |
19155 | (char *) "self", NULL | |
19156 | }; | |
19157 | ||
19158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail; | |
19159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19160 | { | |
19161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19162 | result = ((wxDateTime const *)arg1)->FormatISODate(); | |
19163 | ||
19164 | wxPyEndAllowThreads(__tstate); | |
19165 | if (PyErr_Occurred()) SWIG_fail; | |
19166 | } | |
19167 | { | |
19168 | #if wxUSE_UNICODE | |
19169 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19170 | #else | |
19171 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19172 | #endif | |
19173 | } | |
19174 | return resultobj; | |
19175 | fail: | |
19176 | return NULL; | |
19177 | } | |
19178 | ||
19179 | ||
19180 | static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19181 | PyObject *resultobj; | |
19182 | wxDateTime *arg1 = (wxDateTime *) 0 ; | |
19183 | wxString result; | |
19184 | PyObject * obj0 = 0 ; | |
19185 | char *kwnames[] = { | |
19186 | (char *) "self", NULL | |
19187 | }; | |
19188 | ||
19189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail; | |
19190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19191 | { | |
19192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19193 | result = ((wxDateTime const *)arg1)->FormatISOTime(); | |
19194 | ||
19195 | wxPyEndAllowThreads(__tstate); | |
19196 | if (PyErr_Occurred()) SWIG_fail; | |
19197 | } | |
19198 | { | |
19199 | #if wxUSE_UNICODE | |
19200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19201 | #else | |
19202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19203 | #endif | |
19204 | } | |
19205 | return resultobj; | |
19206 | fail: | |
19207 | return NULL; | |
19208 | } | |
19209 | ||
19210 | ||
19211 | static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) { | |
19212 | PyObject *obj; | |
19213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19214 | SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj); | |
19215 | Py_INCREF(obj); | |
19216 | return Py_BuildValue((char *)""); | |
19217 | } | |
19218 | static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19219 | PyObject *resultobj; | |
19220 | long arg1 ; | |
19221 | wxTimeSpan result; | |
19222 | char *kwnames[] = { | |
19223 | (char *) "sec", NULL | |
19224 | }; | |
19225 | ||
19226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Seconds",kwnames,&arg1)) goto fail; | |
19227 | { | |
19228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19229 | result = wxTimeSpan::Seconds(arg1); | |
19230 | ||
19231 | wxPyEndAllowThreads(__tstate); | |
19232 | if (PyErr_Occurred()) SWIG_fail; | |
19233 | } | |
19234 | { | |
19235 | wxTimeSpan * resultptr; | |
19236 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19237 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19238 | } | |
19239 | return resultobj; | |
19240 | fail: | |
19241 | return NULL; | |
19242 | } | |
19243 | ||
19244 | ||
19245 | static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19246 | PyObject *resultobj; | |
19247 | wxTimeSpan result; | |
19248 | char *kwnames[] = { | |
19249 | NULL | |
19250 | }; | |
19251 | ||
19252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail; | |
19253 | { | |
19254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19255 | result = wxTimeSpan::Second(); | |
19256 | ||
19257 | wxPyEndAllowThreads(__tstate); | |
19258 | if (PyErr_Occurred()) SWIG_fail; | |
19259 | } | |
19260 | { | |
19261 | wxTimeSpan * resultptr; | |
19262 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19263 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19264 | } | |
19265 | return resultobj; | |
19266 | fail: | |
19267 | return NULL; | |
19268 | } | |
19269 | ||
19270 | ||
19271 | static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19272 | PyObject *resultobj; | |
19273 | long arg1 ; | |
19274 | wxTimeSpan result; | |
19275 | char *kwnames[] = { | |
19276 | (char *) "min", NULL | |
19277 | }; | |
19278 | ||
19279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Minutes",kwnames,&arg1)) goto fail; | |
19280 | { | |
19281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19282 | result = wxTimeSpan::Minutes(arg1); | |
19283 | ||
19284 | wxPyEndAllowThreads(__tstate); | |
19285 | if (PyErr_Occurred()) SWIG_fail; | |
19286 | } | |
19287 | { | |
19288 | wxTimeSpan * resultptr; | |
19289 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19290 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19291 | } | |
19292 | return resultobj; | |
19293 | fail: | |
19294 | return NULL; | |
19295 | } | |
19296 | ||
19297 | ||
19298 | static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19299 | PyObject *resultobj; | |
19300 | wxTimeSpan result; | |
19301 | char *kwnames[] = { | |
19302 | NULL | |
19303 | }; | |
19304 | ||
19305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail; | |
19306 | { | |
19307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19308 | result = wxTimeSpan::Minute(); | |
19309 | ||
19310 | wxPyEndAllowThreads(__tstate); | |
19311 | if (PyErr_Occurred()) SWIG_fail; | |
19312 | } | |
19313 | { | |
19314 | wxTimeSpan * resultptr; | |
19315 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19316 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19317 | } | |
19318 | return resultobj; | |
19319 | fail: | |
19320 | return NULL; | |
19321 | } | |
19322 | ||
19323 | ||
19324 | static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19325 | PyObject *resultobj; | |
19326 | long arg1 ; | |
19327 | wxTimeSpan result; | |
19328 | char *kwnames[] = { | |
19329 | (char *) "hours", NULL | |
19330 | }; | |
19331 | ||
19332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Hours",kwnames,&arg1)) goto fail; | |
19333 | { | |
19334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19335 | result = wxTimeSpan::Hours(arg1); | |
19336 | ||
19337 | wxPyEndAllowThreads(__tstate); | |
19338 | if (PyErr_Occurred()) SWIG_fail; | |
19339 | } | |
19340 | { | |
19341 | wxTimeSpan * resultptr; | |
19342 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19343 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19344 | } | |
19345 | return resultobj; | |
19346 | fail: | |
19347 | return NULL; | |
19348 | } | |
19349 | ||
19350 | ||
19351 | static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19352 | PyObject *resultobj; | |
19353 | wxTimeSpan result; | |
19354 | char *kwnames[] = { | |
19355 | NULL | |
19356 | }; | |
19357 | ||
19358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail; | |
19359 | { | |
19360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19361 | result = wxTimeSpan::Hour(); | |
19362 | ||
19363 | wxPyEndAllowThreads(__tstate); | |
19364 | if (PyErr_Occurred()) SWIG_fail; | |
19365 | } | |
19366 | { | |
19367 | wxTimeSpan * resultptr; | |
19368 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19369 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19370 | } | |
19371 | return resultobj; | |
19372 | fail: | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
19377 | static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19378 | PyObject *resultobj; | |
19379 | long arg1 ; | |
19380 | wxTimeSpan result; | |
19381 | char *kwnames[] = { | |
19382 | (char *) "days", NULL | |
19383 | }; | |
19384 | ||
19385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Days",kwnames,&arg1)) goto fail; | |
19386 | { | |
19387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19388 | result = wxTimeSpan::Days(arg1); | |
19389 | ||
19390 | wxPyEndAllowThreads(__tstate); | |
19391 | if (PyErr_Occurred()) SWIG_fail; | |
19392 | } | |
19393 | { | |
19394 | wxTimeSpan * resultptr; | |
19395 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19396 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19397 | } | |
19398 | return resultobj; | |
19399 | fail: | |
19400 | return NULL; | |
19401 | } | |
19402 | ||
19403 | ||
19404 | static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19405 | PyObject *resultobj; | |
19406 | wxTimeSpan result; | |
19407 | char *kwnames[] = { | |
19408 | NULL | |
19409 | }; | |
19410 | ||
19411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail; | |
19412 | { | |
19413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19414 | result = wxTimeSpan::Day(); | |
19415 | ||
19416 | wxPyEndAllowThreads(__tstate); | |
19417 | if (PyErr_Occurred()) SWIG_fail; | |
19418 | } | |
19419 | { | |
19420 | wxTimeSpan * resultptr; | |
19421 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19422 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19423 | } | |
19424 | return resultobj; | |
19425 | fail: | |
19426 | return NULL; | |
19427 | } | |
19428 | ||
19429 | ||
19430 | static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19431 | PyObject *resultobj; | |
19432 | long arg1 ; | |
19433 | wxTimeSpan result; | |
19434 | char *kwnames[] = { | |
19435 | (char *) "days", NULL | |
19436 | }; | |
19437 | ||
19438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"l:TimeSpan_Weeks",kwnames,&arg1)) goto fail; | |
19439 | { | |
19440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19441 | result = wxTimeSpan::Weeks(arg1); | |
19442 | ||
19443 | wxPyEndAllowThreads(__tstate); | |
19444 | if (PyErr_Occurred()) SWIG_fail; | |
19445 | } | |
19446 | { | |
19447 | wxTimeSpan * resultptr; | |
19448 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19449 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19450 | } | |
19451 | return resultobj; | |
19452 | fail: | |
19453 | return NULL; | |
19454 | } | |
19455 | ||
19456 | ||
19457 | static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19458 | PyObject *resultobj; | |
19459 | wxTimeSpan result; | |
19460 | char *kwnames[] = { | |
19461 | NULL | |
19462 | }; | |
19463 | ||
19464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail; | |
19465 | { | |
19466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19467 | result = wxTimeSpan::Week(); | |
19468 | ||
19469 | wxPyEndAllowThreads(__tstate); | |
19470 | if (PyErr_Occurred()) SWIG_fail; | |
19471 | } | |
19472 | { | |
19473 | wxTimeSpan * resultptr; | |
19474 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19475 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19476 | } | |
19477 | return resultobj; | |
19478 | fail: | |
19479 | return NULL; | |
19480 | } | |
19481 | ||
19482 | ||
19483 | static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19484 | PyObject *resultobj; | |
19485 | long arg1 = (long) 0 ; | |
19486 | long arg2 = (long) 0 ; | |
19487 | long arg3 = (long) 0 ; | |
19488 | long arg4 = (long) 0 ; | |
19489 | wxTimeSpan *result; | |
19490 | char *kwnames[] = { | |
19491 | (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL | |
19492 | }; | |
19493 | ||
19494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|llll:new_TimeSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
19495 | { | |
19496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19497 | result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4); | |
19498 | ||
19499 | wxPyEndAllowThreads(__tstate); | |
19500 | if (PyErr_Occurred()) SWIG_fail; | |
19501 | } | |
19502 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 1); | |
19503 | return resultobj; | |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
19509 | static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19510 | PyObject *resultobj; | |
19511 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19512 | PyObject * obj0 = 0 ; | |
19513 | char *kwnames[] = { | |
19514 | (char *) "self", NULL | |
19515 | }; | |
19516 | ||
19517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail; | |
19518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19519 | { | |
19520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19521 | delete arg1; | |
19522 | ||
19523 | wxPyEndAllowThreads(__tstate); | |
19524 | if (PyErr_Occurred()) SWIG_fail; | |
19525 | } | |
19526 | Py_INCREF(Py_None); resultobj = Py_None; | |
19527 | return resultobj; | |
19528 | fail: | |
19529 | return NULL; | |
19530 | } | |
19531 | ||
19532 | ||
19533 | static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19534 | PyObject *resultobj; | |
19535 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19536 | wxTimeSpan *arg2 = 0 ; | |
19537 | wxTimeSpan *result; | |
19538 | PyObject * obj0 = 0 ; | |
19539 | PyObject * obj1 = 0 ; | |
19540 | char *kwnames[] = { | |
19541 | (char *) "self",(char *) "diff", NULL | |
19542 | }; | |
19543 | ||
19544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
19545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19546 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19547 | if (arg2 == NULL) { | |
19548 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19549 | } | |
19550 | { | |
19551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19552 | { | |
19553 | wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2); | |
19554 | result = (wxTimeSpan *) &_result_ref; | |
19555 | } | |
19556 | ||
19557 | wxPyEndAllowThreads(__tstate); | |
19558 | if (PyErr_Occurred()) SWIG_fail; | |
19559 | } | |
19560 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19561 | return resultobj; | |
19562 | fail: | |
19563 | return NULL; | |
19564 | } | |
19565 | ||
19566 | ||
19567 | static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19568 | PyObject *resultobj; | |
19569 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19570 | wxTimeSpan *arg2 = 0 ; | |
19571 | wxTimeSpan *result; | |
19572 | PyObject * obj0 = 0 ; | |
19573 | PyObject * obj1 = 0 ; | |
19574 | char *kwnames[] = { | |
19575 | (char *) "self",(char *) "diff", NULL | |
19576 | }; | |
19577 | ||
19578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
19579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19580 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19581 | if (arg2 == NULL) { | |
19582 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19583 | } | |
19584 | { | |
19585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19586 | { | |
19587 | wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2); | |
19588 | result = (wxTimeSpan *) &_result_ref; | |
19589 | } | |
19590 | ||
19591 | wxPyEndAllowThreads(__tstate); | |
19592 | if (PyErr_Occurred()) SWIG_fail; | |
19593 | } | |
19594 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19595 | return resultobj; | |
19596 | fail: | |
19597 | return NULL; | |
19598 | } | |
19599 | ||
19600 | ||
19601 | static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19602 | PyObject *resultobj; | |
19603 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19604 | int arg2 ; | |
19605 | wxTimeSpan *result; | |
19606 | PyObject * obj0 = 0 ; | |
19607 | char *kwnames[] = { | |
19608 | (char *) "self",(char *) "n", NULL | |
19609 | }; | |
19610 | ||
19611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
19612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19613 | { | |
19614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19615 | { | |
19616 | wxTimeSpan &_result_ref = (arg1)->Multiply(arg2); | |
19617 | result = (wxTimeSpan *) &_result_ref; | |
19618 | } | |
19619 | ||
19620 | wxPyEndAllowThreads(__tstate); | |
19621 | if (PyErr_Occurred()) SWIG_fail; | |
19622 | } | |
19623 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19624 | return resultobj; | |
19625 | fail: | |
19626 | return NULL; | |
19627 | } | |
19628 | ||
19629 | ||
19630 | static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19631 | PyObject *resultobj; | |
19632 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19633 | wxTimeSpan *result; | |
19634 | PyObject * obj0 = 0 ; | |
19635 | char *kwnames[] = { | |
19636 | (char *) "self", NULL | |
19637 | }; | |
19638 | ||
19639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail; | |
19640 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19641 | { | |
19642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19643 | { | |
19644 | wxTimeSpan &_result_ref = (arg1)->Neg(); | |
19645 | result = (wxTimeSpan *) &_result_ref; | |
19646 | } | |
19647 | ||
19648 | wxPyEndAllowThreads(__tstate); | |
19649 | if (PyErr_Occurred()) SWIG_fail; | |
19650 | } | |
19651 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19652 | return resultobj; | |
19653 | fail: | |
19654 | return NULL; | |
19655 | } | |
19656 | ||
19657 | ||
19658 | static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19659 | PyObject *resultobj; | |
19660 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19661 | wxTimeSpan result; | |
19662 | PyObject * obj0 = 0 ; | |
19663 | char *kwnames[] = { | |
19664 | (char *) "self", NULL | |
19665 | }; | |
19666 | ||
19667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail; | |
19668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19669 | { | |
19670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19671 | result = ((wxTimeSpan const *)arg1)->Abs(); | |
19672 | ||
19673 | wxPyEndAllowThreads(__tstate); | |
19674 | if (PyErr_Occurred()) SWIG_fail; | |
19675 | } | |
19676 | { | |
19677 | wxTimeSpan * resultptr; | |
19678 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19679 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19680 | } | |
19681 | return resultobj; | |
19682 | fail: | |
19683 | return NULL; | |
19684 | } | |
19685 | ||
19686 | ||
19687 | static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19688 | PyObject *resultobj; | |
19689 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19690 | wxTimeSpan *arg2 = 0 ; | |
19691 | wxTimeSpan *result; | |
19692 | PyObject * obj0 = 0 ; | |
19693 | PyObject * obj1 = 0 ; | |
19694 | char *kwnames[] = { | |
19695 | (char *) "self",(char *) "diff", NULL | |
19696 | }; | |
19697 | ||
19698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
19699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19700 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19701 | if (arg2 == NULL) { | |
19702 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19703 | } | |
19704 | { | |
19705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19706 | { | |
19707 | wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2); | |
19708 | result = (wxTimeSpan *) &_result_ref; | |
19709 | } | |
19710 | ||
19711 | wxPyEndAllowThreads(__tstate); | |
19712 | if (PyErr_Occurred()) SWIG_fail; | |
19713 | } | |
19714 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19715 | return resultobj; | |
19716 | fail: | |
19717 | return NULL; | |
19718 | } | |
19719 | ||
19720 | ||
19721 | static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19722 | PyObject *resultobj; | |
19723 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19724 | wxTimeSpan *arg2 = 0 ; | |
19725 | wxTimeSpan *result; | |
19726 | PyObject * obj0 = 0 ; | |
19727 | PyObject * obj1 = 0 ; | |
19728 | char *kwnames[] = { | |
19729 | (char *) "self",(char *) "diff", NULL | |
19730 | }; | |
19731 | ||
19732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
19733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19734 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19735 | if (arg2 == NULL) { | |
19736 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19737 | } | |
19738 | { | |
19739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19740 | { | |
19741 | wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2); | |
19742 | result = (wxTimeSpan *) &_result_ref; | |
19743 | } | |
19744 | ||
19745 | wxPyEndAllowThreads(__tstate); | |
19746 | if (PyErr_Occurred()) SWIG_fail; | |
19747 | } | |
19748 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19749 | return resultobj; | |
19750 | fail: | |
19751 | return NULL; | |
19752 | } | |
19753 | ||
19754 | ||
19755 | static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19756 | PyObject *resultobj; | |
19757 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19758 | int arg2 ; | |
19759 | wxTimeSpan *result; | |
19760 | PyObject * obj0 = 0 ; | |
19761 | char *kwnames[] = { | |
19762 | (char *) "self",(char *) "n", NULL | |
19763 | }; | |
19764 | ||
19765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
19766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19767 | { | |
19768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19769 | { | |
19770 | wxTimeSpan &_result_ref = (arg1)->operator *=(arg2); | |
19771 | result = (wxTimeSpan *) &_result_ref; | |
19772 | } | |
19773 | ||
19774 | wxPyEndAllowThreads(__tstate); | |
19775 | if (PyErr_Occurred()) SWIG_fail; | |
19776 | } | |
19777 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19778 | return resultobj; | |
19779 | fail: | |
19780 | return NULL; | |
19781 | } | |
19782 | ||
19783 | ||
19784 | static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19785 | PyObject *resultobj; | |
19786 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19787 | wxTimeSpan *result; | |
19788 | PyObject * obj0 = 0 ; | |
19789 | char *kwnames[] = { | |
19790 | (char *) "self", NULL | |
19791 | }; | |
19792 | ||
19793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail; | |
19794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19795 | { | |
19796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19797 | { | |
19798 | wxTimeSpan &_result_ref = (arg1)->operator -(); | |
19799 | result = (wxTimeSpan *) &_result_ref; | |
19800 | } | |
19801 | ||
19802 | wxPyEndAllowThreads(__tstate); | |
19803 | if (PyErr_Occurred()) SWIG_fail; | |
19804 | } | |
19805 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTimeSpan, 0); | |
19806 | return resultobj; | |
19807 | fail: | |
19808 | return NULL; | |
19809 | } | |
19810 | ||
19811 | ||
19812 | static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19813 | PyObject *resultobj; | |
19814 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19815 | wxTimeSpan *arg2 = 0 ; | |
19816 | wxTimeSpan result; | |
19817 | PyObject * obj0 = 0 ; | |
19818 | PyObject * obj1 = 0 ; | |
19819 | char *kwnames[] = { | |
19820 | (char *) "self",(char *) "other", NULL | |
19821 | }; | |
19822 | ||
19823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
19824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19825 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19826 | if (arg2 == NULL) { | |
19827 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19828 | } | |
19829 | { | |
19830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19831 | result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2); | |
19832 | ||
19833 | wxPyEndAllowThreads(__tstate); | |
19834 | if (PyErr_Occurred()) SWIG_fail; | |
19835 | } | |
19836 | { | |
19837 | wxTimeSpan * resultptr; | |
19838 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19839 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19840 | } | |
19841 | return resultobj; | |
19842 | fail: | |
19843 | return NULL; | |
19844 | } | |
19845 | ||
19846 | ||
19847 | static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19848 | PyObject *resultobj; | |
19849 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19850 | wxTimeSpan *arg2 = 0 ; | |
19851 | wxTimeSpan result; | |
19852 | PyObject * obj0 = 0 ; | |
19853 | PyObject * obj1 = 0 ; | |
19854 | char *kwnames[] = { | |
19855 | (char *) "self",(char *) "other", NULL | |
19856 | }; | |
19857 | ||
19858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
19859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19860 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19861 | if (arg2 == NULL) { | |
19862 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19863 | } | |
19864 | { | |
19865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19866 | result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2); | |
19867 | ||
19868 | wxPyEndAllowThreads(__tstate); | |
19869 | if (PyErr_Occurred()) SWIG_fail; | |
19870 | } | |
19871 | { | |
19872 | wxTimeSpan * resultptr; | |
19873 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19874 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19875 | } | |
19876 | return resultobj; | |
19877 | fail: | |
19878 | return NULL; | |
19879 | } | |
19880 | ||
19881 | ||
19882 | static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19883 | PyObject *resultobj; | |
19884 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19885 | int arg2 ; | |
19886 | wxTimeSpan result; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | char *kwnames[] = { | |
19889 | (char *) "self",(char *) "n", NULL | |
19890 | }; | |
19891 | ||
19892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
19893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19894 | { | |
19895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19896 | result = wxTimeSpan___mul__(arg1,arg2); | |
19897 | ||
19898 | wxPyEndAllowThreads(__tstate); | |
19899 | if (PyErr_Occurred()) SWIG_fail; | |
19900 | } | |
19901 | { | |
19902 | wxTimeSpan * resultptr; | |
19903 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19904 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19905 | } | |
19906 | return resultobj; | |
19907 | fail: | |
19908 | return NULL; | |
19909 | } | |
19910 | ||
19911 | ||
19912 | static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19913 | PyObject *resultobj; | |
19914 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19915 | int arg2 ; | |
19916 | wxTimeSpan result; | |
19917 | PyObject * obj0 = 0 ; | |
19918 | char *kwnames[] = { | |
19919 | (char *) "self",(char *) "n", NULL | |
19920 | }; | |
19921 | ||
19922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TimeSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
19923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19924 | { | |
19925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19926 | result = wxTimeSpan___rmul__(arg1,arg2); | |
19927 | ||
19928 | wxPyEndAllowThreads(__tstate); | |
19929 | if (PyErr_Occurred()) SWIG_fail; | |
19930 | } | |
19931 | { | |
19932 | wxTimeSpan * resultptr; | |
19933 | resultptr = new wxTimeSpan((wxTimeSpan &) result); | |
19934 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTimeSpan, 1); | |
19935 | } | |
19936 | return resultobj; | |
19937 | fail: | |
19938 | return NULL; | |
19939 | } | |
19940 | ||
19941 | ||
19942 | static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19943 | PyObject *resultobj; | |
19944 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19945 | wxTimeSpan *arg2 = 0 ; | |
19946 | bool result; | |
19947 | PyObject * obj0 = 0 ; | |
19948 | PyObject * obj1 = 0 ; | |
19949 | char *kwnames[] = { | |
19950 | (char *) "self",(char *) "other", NULL | |
19951 | }; | |
19952 | ||
19953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail; | |
19954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19955 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19956 | if (arg2 == NULL) { | |
19957 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19958 | } | |
19959 | { | |
19960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19961 | result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const &)*arg2); | |
19962 | ||
19963 | wxPyEndAllowThreads(__tstate); | |
19964 | if (PyErr_Occurred()) SWIG_fail; | |
19965 | } | |
19966 | resultobj = PyInt_FromLong((long)result); | |
19967 | return resultobj; | |
19968 | fail: | |
19969 | return NULL; | |
19970 | } | |
19971 | ||
19972 | ||
19973 | static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19974 | PyObject *resultobj; | |
19975 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
19976 | wxTimeSpan *arg2 = 0 ; | |
19977 | bool result; | |
19978 | PyObject * obj0 = 0 ; | |
19979 | PyObject * obj1 = 0 ; | |
19980 | char *kwnames[] = { | |
19981 | (char *) "self",(char *) "other", NULL | |
19982 | }; | |
19983 | ||
19984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail; | |
19985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19987 | if (arg2 == NULL) { | |
19988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19989 | } | |
19990 | { | |
19991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19992 | result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const &)*arg2); | |
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___gt__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20005 | PyObject *resultobj; | |
20006 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20007 | wxTimeSpan *arg2 = 0 ; | |
20008 | bool result; | |
20009 | PyObject * obj0 = 0 ; | |
20010 | PyObject * obj1 = 0 ; | |
20011 | char *kwnames[] = { | |
20012 | (char *) "self",(char *) "other", NULL | |
20013 | }; | |
20014 | ||
20015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail; | |
20016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20017 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20018 | if (arg2 == NULL) { | |
20019 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20020 | } | |
20021 | { | |
20022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20023 | result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const &)*arg2); | |
20024 | ||
20025 | wxPyEndAllowThreads(__tstate); | |
20026 | if (PyErr_Occurred()) SWIG_fail; | |
20027 | } | |
20028 | resultobj = PyInt_FromLong((long)result); | |
20029 | return resultobj; | |
20030 | fail: | |
20031 | return NULL; | |
20032 | } | |
20033 | ||
20034 | ||
20035 | static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20036 | PyObject *resultobj; | |
20037 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20038 | wxTimeSpan *arg2 = 0 ; | |
20039 | bool result; | |
20040 | PyObject * obj0 = 0 ; | |
20041 | PyObject * obj1 = 0 ; | |
20042 | char *kwnames[] = { | |
20043 | (char *) "self",(char *) "other", NULL | |
20044 | }; | |
20045 | ||
20046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail; | |
20047 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20048 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20049 | if (arg2 == NULL) { | |
20050 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20051 | } | |
20052 | { | |
20053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20054 | result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const &)*arg2); | |
20055 | ||
20056 | wxPyEndAllowThreads(__tstate); | |
20057 | if (PyErr_Occurred()) SWIG_fail; | |
20058 | } | |
20059 | resultobj = PyInt_FromLong((long)result); | |
20060 | return resultobj; | |
20061 | fail: | |
20062 | return NULL; | |
20063 | } | |
20064 | ||
20065 | ||
20066 | static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20067 | PyObject *resultobj; | |
20068 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20069 | wxTimeSpan *arg2 = 0 ; | |
20070 | bool result; | |
20071 | PyObject * obj0 = 0 ; | |
20072 | PyObject * obj1 = 0 ; | |
20073 | char *kwnames[] = { | |
20074 | (char *) "self",(char *) "other", NULL | |
20075 | }; | |
20076 | ||
20077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
20078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20079 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20080 | if (arg2 == NULL) { | |
20081 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20082 | } | |
20083 | { | |
20084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20085 | result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const &)*arg2); | |
20086 | ||
20087 | wxPyEndAllowThreads(__tstate); | |
20088 | if (PyErr_Occurred()) SWIG_fail; | |
20089 | } | |
20090 | resultobj = PyInt_FromLong((long)result); | |
20091 | return resultobj; | |
20092 | fail: | |
20093 | return NULL; | |
20094 | } | |
20095 | ||
20096 | ||
20097 | static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20098 | PyObject *resultobj; | |
20099 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20100 | wxTimeSpan *arg2 = 0 ; | |
20101 | bool result; | |
20102 | PyObject * obj0 = 0 ; | |
20103 | PyObject * obj1 = 0 ; | |
20104 | char *kwnames[] = { | |
20105 | (char *) "self",(char *) "other", NULL | |
20106 | }; | |
20107 | ||
20108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
20109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20110 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20111 | if (arg2 == NULL) { | |
20112 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20113 | } | |
20114 | { | |
20115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20116 | result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const &)*arg2); | |
20117 | ||
20118 | wxPyEndAllowThreads(__tstate); | |
20119 | if (PyErr_Occurred()) SWIG_fail; | |
20120 | } | |
20121 | resultobj = PyInt_FromLong((long)result); | |
20122 | return resultobj; | |
20123 | fail: | |
20124 | return NULL; | |
20125 | } | |
20126 | ||
20127 | ||
20128 | static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20129 | PyObject *resultobj; | |
20130 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20131 | bool result; | |
20132 | PyObject * obj0 = 0 ; | |
20133 | char *kwnames[] = { | |
20134 | (char *) "self", NULL | |
20135 | }; | |
20136 | ||
20137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail; | |
20138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20139 | { | |
20140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20141 | result = (bool)((wxTimeSpan const *)arg1)->IsNull(); | |
20142 | ||
20143 | wxPyEndAllowThreads(__tstate); | |
20144 | if (PyErr_Occurred()) SWIG_fail; | |
20145 | } | |
20146 | resultobj = PyInt_FromLong((long)result); | |
20147 | return resultobj; | |
20148 | fail: | |
20149 | return NULL; | |
20150 | } | |
20151 | ||
20152 | ||
20153 | static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20154 | PyObject *resultobj; | |
20155 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20156 | bool result; | |
20157 | PyObject * obj0 = 0 ; | |
20158 | char *kwnames[] = { | |
20159 | (char *) "self", NULL | |
20160 | }; | |
20161 | ||
20162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail; | |
20163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20164 | { | |
20165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20166 | result = (bool)((wxTimeSpan const *)arg1)->IsPositive(); | |
20167 | ||
20168 | wxPyEndAllowThreads(__tstate); | |
20169 | if (PyErr_Occurred()) SWIG_fail; | |
20170 | } | |
20171 | resultobj = PyInt_FromLong((long)result); | |
20172 | return resultobj; | |
20173 | fail: | |
20174 | return NULL; | |
20175 | } | |
20176 | ||
20177 | ||
20178 | static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20179 | PyObject *resultobj; | |
20180 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20181 | bool result; | |
20182 | PyObject * obj0 = 0 ; | |
20183 | char *kwnames[] = { | |
20184 | (char *) "self", NULL | |
20185 | }; | |
20186 | ||
20187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail; | |
20188 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20189 | { | |
20190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20191 | result = (bool)((wxTimeSpan const *)arg1)->IsNegative(); | |
20192 | ||
20193 | wxPyEndAllowThreads(__tstate); | |
20194 | if (PyErr_Occurred()) SWIG_fail; | |
20195 | } | |
20196 | resultobj = PyInt_FromLong((long)result); | |
20197 | return resultobj; | |
20198 | fail: | |
20199 | return NULL; | |
20200 | } | |
20201 | ||
20202 | ||
20203 | static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20204 | PyObject *resultobj; | |
20205 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20206 | wxTimeSpan *arg2 = 0 ; | |
20207 | bool result; | |
20208 | PyObject * obj0 = 0 ; | |
20209 | PyObject * obj1 = 0 ; | |
20210 | char *kwnames[] = { | |
20211 | (char *) "self",(char *) "ts", NULL | |
20212 | }; | |
20213 | ||
20214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail; | |
20215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20216 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20217 | if (arg2 == NULL) { | |
20218 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20219 | } | |
20220 | { | |
20221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20222 | result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2); | |
20223 | ||
20224 | wxPyEndAllowThreads(__tstate); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
20226 | } | |
20227 | resultobj = PyInt_FromLong((long)result); | |
20228 | return resultobj; | |
20229 | fail: | |
20230 | return NULL; | |
20231 | } | |
20232 | ||
20233 | ||
20234 | static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20235 | PyObject *resultobj; | |
20236 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20237 | wxTimeSpan *arg2 = 0 ; | |
20238 | bool result; | |
20239 | PyObject * obj0 = 0 ; | |
20240 | PyObject * obj1 = 0 ; | |
20241 | char *kwnames[] = { | |
20242 | (char *) "self",(char *) "ts", NULL | |
20243 | }; | |
20244 | ||
20245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail; | |
20246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20247 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20248 | if (arg2 == NULL) { | |
20249 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20250 | } | |
20251 | { | |
20252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20253 | result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2); | |
20254 | ||
20255 | wxPyEndAllowThreads(__tstate); | |
20256 | if (PyErr_Occurred()) SWIG_fail; | |
20257 | } | |
20258 | resultobj = PyInt_FromLong((long)result); | |
20259 | return resultobj; | |
20260 | fail: | |
20261 | return NULL; | |
20262 | } | |
20263 | ||
20264 | ||
20265 | static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20266 | PyObject *resultobj; | |
20267 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20268 | wxTimeSpan *arg2 = 0 ; | |
20269 | bool result; | |
20270 | PyObject * obj0 = 0 ; | |
20271 | PyObject * obj1 = 0 ; | |
20272 | char *kwnames[] = { | |
20273 | (char *) "self",(char *) "t", NULL | |
20274 | }; | |
20275 | ||
20276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail; | |
20277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20278 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20279 | if (arg2 == NULL) { | |
20280 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20281 | } | |
20282 | { | |
20283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20284 | result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2); | |
20285 | ||
20286 | wxPyEndAllowThreads(__tstate); | |
20287 | if (PyErr_Occurred()) SWIG_fail; | |
20288 | } | |
20289 | resultobj = PyInt_FromLong((long)result); | |
20290 | return resultobj; | |
20291 | fail: | |
20292 | return NULL; | |
20293 | } | |
20294 | ||
20295 | ||
20296 | static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20297 | PyObject *resultobj; | |
20298 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20299 | int result; | |
20300 | PyObject * obj0 = 0 ; | |
20301 | char *kwnames[] = { | |
20302 | (char *) "self", NULL | |
20303 | }; | |
20304 | ||
20305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20307 | { | |
20308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20309 | result = (int)((wxTimeSpan const *)arg1)->GetWeeks(); | |
20310 | ||
20311 | wxPyEndAllowThreads(__tstate); | |
20312 | if (PyErr_Occurred()) SWIG_fail; | |
20313 | } | |
20314 | resultobj = PyInt_FromLong((long)result); | |
20315 | return resultobj; | |
20316 | fail: | |
20317 | return NULL; | |
20318 | } | |
20319 | ||
20320 | ||
20321 | static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20322 | PyObject *resultobj; | |
20323 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20324 | int result; | |
20325 | PyObject * obj0 = 0 ; | |
20326 | char *kwnames[] = { | |
20327 | (char *) "self", NULL | |
20328 | }; | |
20329 | ||
20330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail; | |
20331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20332 | { | |
20333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20334 | result = (int)((wxTimeSpan const *)arg1)->GetDays(); | |
20335 | ||
20336 | wxPyEndAllowThreads(__tstate); | |
20337 | if (PyErr_Occurred()) SWIG_fail; | |
20338 | } | |
20339 | resultobj = PyInt_FromLong((long)result); | |
20340 | return resultobj; | |
20341 | fail: | |
20342 | return NULL; | |
20343 | } | |
20344 | ||
20345 | ||
20346 | static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20347 | PyObject *resultobj; | |
20348 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20349 | int result; | |
20350 | PyObject * obj0 = 0 ; | |
20351 | char *kwnames[] = { | |
20352 | (char *) "self", NULL | |
20353 | }; | |
20354 | ||
20355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail; | |
20356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20357 | { | |
20358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20359 | result = (int)((wxTimeSpan const *)arg1)->GetHours(); | |
20360 | ||
20361 | wxPyEndAllowThreads(__tstate); | |
20362 | if (PyErr_Occurred()) SWIG_fail; | |
20363 | } | |
20364 | resultobj = PyInt_FromLong((long)result); | |
20365 | return resultobj; | |
20366 | fail: | |
20367 | return NULL; | |
20368 | } | |
20369 | ||
20370 | ||
20371 | static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20372 | PyObject *resultobj; | |
20373 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20374 | int result; | |
20375 | PyObject * obj0 = 0 ; | |
20376 | char *kwnames[] = { | |
20377 | (char *) "self", NULL | |
20378 | }; | |
20379 | ||
20380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail; | |
20381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20382 | { | |
20383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20384 | result = (int)((wxTimeSpan const *)arg1)->GetMinutes(); | |
20385 | ||
20386 | wxPyEndAllowThreads(__tstate); | |
20387 | if (PyErr_Occurred()) SWIG_fail; | |
20388 | } | |
20389 | resultobj = PyInt_FromLong((long)result); | |
20390 | return resultobj; | |
20391 | fail: | |
20392 | return NULL; | |
20393 | } | |
20394 | ||
20395 | ||
20396 | static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20397 | PyObject *resultobj; | |
20398 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20399 | wxLongLong result; | |
20400 | PyObject * obj0 = 0 ; | |
20401 | char *kwnames[] = { | |
20402 | (char *) "self", NULL | |
20403 | }; | |
20404 | ||
20405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail; | |
20406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20407 | { | |
20408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20409 | result = ((wxTimeSpan const *)arg1)->GetSeconds(); | |
20410 | ||
20411 | wxPyEndAllowThreads(__tstate); | |
20412 | if (PyErr_Occurred()) SWIG_fail; | |
20413 | } | |
20414 | { | |
20415 | PyObject *hi, *lo, *shifter, *shifted; | |
20416 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20417 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20418 | shifter = PyLong_FromLong(32); | |
20419 | shifted = PyNumber_Lshift(hi, shifter); | |
20420 | resultobj = PyNumber_Or(shifted, lo); | |
20421 | Py_DECREF(hi); | |
20422 | Py_DECREF(lo); | |
20423 | Py_DECREF(shifter); | |
20424 | Py_DECREF(shifted); | |
20425 | } | |
20426 | return resultobj; | |
20427 | fail: | |
20428 | return NULL; | |
20429 | } | |
20430 | ||
20431 | ||
20432 | static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20433 | PyObject *resultobj; | |
20434 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20435 | wxLongLong result; | |
20436 | PyObject * obj0 = 0 ; | |
20437 | char *kwnames[] = { | |
20438 | (char *) "self", NULL | |
20439 | }; | |
20440 | ||
20441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail; | |
20442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20443 | { | |
20444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20445 | result = ((wxTimeSpan const *)arg1)->GetMilliseconds(); | |
20446 | ||
20447 | wxPyEndAllowThreads(__tstate); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | } | |
20450 | { | |
20451 | PyObject *hi, *lo, *shifter, *shifted; | |
20452 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
20453 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
20454 | shifter = PyLong_FromLong(32); | |
20455 | shifted = PyNumber_Lshift(hi, shifter); | |
20456 | resultobj = PyNumber_Or(shifted, lo); | |
20457 | Py_DECREF(hi); | |
20458 | Py_DECREF(lo); | |
20459 | Py_DECREF(shifter); | |
20460 | Py_DECREF(shifted); | |
20461 | } | |
20462 | return resultobj; | |
20463 | fail: | |
20464 | return NULL; | |
20465 | } | |
20466 | ||
20467 | ||
20468 | static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20469 | PyObject *resultobj; | |
20470 | wxTimeSpan *arg1 = (wxTimeSpan *) 0 ; | |
20471 | wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ; | |
20472 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
20473 | wxString result; | |
423f194a | 20474 | bool temp2 = False ; |
d14a1e28 RD |
20475 | PyObject * obj0 = 0 ; |
20476 | PyObject * obj1 = 0 ; | |
20477 | char *kwnames[] = { | |
20478 | (char *) "self",(char *) "format", NULL | |
20479 | }; | |
20480 | ||
20481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail; | |
20482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTimeSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20483 | if (obj1) { | |
20484 | { | |
20485 | arg2 = wxString_in_helper(obj1); | |
20486 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20487 | temp2 = True; |
d14a1e28 RD |
20488 | } |
20489 | } | |
20490 | { | |
20491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20492 | result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2); | |
20493 | ||
20494 | wxPyEndAllowThreads(__tstate); | |
20495 | if (PyErr_Occurred()) SWIG_fail; | |
20496 | } | |
20497 | { | |
20498 | #if wxUSE_UNICODE | |
20499 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20500 | #else | |
20501 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20502 | #endif | |
20503 | } | |
20504 | { | |
20505 | if (temp2) | |
20506 | delete arg2; | |
20507 | } | |
20508 | return resultobj; | |
20509 | fail: | |
20510 | { | |
20511 | if (temp2) | |
20512 | delete arg2; | |
20513 | } | |
20514 | return NULL; | |
20515 | } | |
20516 | ||
20517 | ||
20518 | static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) { | |
20519 | PyObject *obj; | |
20520 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20521 | SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj); | |
20522 | Py_INCREF(obj); | |
20523 | return Py_BuildValue((char *)""); | |
20524 | } | |
20525 | static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20526 | PyObject *resultobj; | |
20527 | int arg1 = (int) 0 ; | |
20528 | int arg2 = (int) 0 ; | |
20529 | int arg3 = (int) 0 ; | |
20530 | int arg4 = (int) 0 ; | |
20531 | wxDateSpan *result; | |
20532 | char *kwnames[] = { | |
20533 | (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL | |
20534 | }; | |
20535 | ||
20536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_DateSpan",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
20537 | { | |
20538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20539 | result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4); | |
20540 | ||
20541 | wxPyEndAllowThreads(__tstate); | |
20542 | if (PyErr_Occurred()) SWIG_fail; | |
20543 | } | |
20544 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 1); | |
20545 | return resultobj; | |
20546 | fail: | |
20547 | return NULL; | |
20548 | } | |
20549 | ||
20550 | ||
20551 | static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20552 | PyObject *resultobj; | |
20553 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20554 | PyObject * obj0 = 0 ; | |
20555 | char *kwnames[] = { | |
20556 | (char *) "self", NULL | |
20557 | }; | |
20558 | ||
20559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail; | |
20560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20561 | { | |
20562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20563 | delete arg1; | |
20564 | ||
20565 | wxPyEndAllowThreads(__tstate); | |
20566 | if (PyErr_Occurred()) SWIG_fail; | |
20567 | } | |
20568 | Py_INCREF(Py_None); resultobj = Py_None; | |
20569 | return resultobj; | |
20570 | fail: | |
20571 | return NULL; | |
20572 | } | |
20573 | ||
20574 | ||
20575 | static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20576 | PyObject *resultobj; | |
20577 | int arg1 ; | |
20578 | wxDateSpan result; | |
20579 | char *kwnames[] = { | |
20580 | (char *) "days", NULL | |
20581 | }; | |
20582 | ||
20583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Days",kwnames,&arg1)) goto fail; | |
20584 | { | |
20585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20586 | result = wxDateSpan::Days(arg1); | |
20587 | ||
20588 | wxPyEndAllowThreads(__tstate); | |
20589 | if (PyErr_Occurred()) SWIG_fail; | |
20590 | } | |
20591 | { | |
20592 | wxDateSpan * resultptr; | |
20593 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20594 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20595 | } | |
20596 | return resultobj; | |
20597 | fail: | |
20598 | return NULL; | |
20599 | } | |
20600 | ||
20601 | ||
20602 | static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20603 | PyObject *resultobj; | |
20604 | wxDateSpan result; | |
20605 | char *kwnames[] = { | |
20606 | NULL | |
20607 | }; | |
20608 | ||
20609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail; | |
20610 | { | |
20611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20612 | result = wxDateSpan::Day(); | |
20613 | ||
20614 | wxPyEndAllowThreads(__tstate); | |
20615 | if (PyErr_Occurred()) SWIG_fail; | |
20616 | } | |
20617 | { | |
20618 | wxDateSpan * resultptr; | |
20619 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20620 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20621 | } | |
20622 | return resultobj; | |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20629 | PyObject *resultobj; | |
20630 | int arg1 ; | |
20631 | wxDateSpan result; | |
20632 | char *kwnames[] = { | |
20633 | (char *) "weeks", NULL | |
20634 | }; | |
20635 | ||
20636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Weeks",kwnames,&arg1)) goto fail; | |
20637 | { | |
20638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20639 | result = wxDateSpan::Weeks(arg1); | |
20640 | ||
20641 | wxPyEndAllowThreads(__tstate); | |
20642 | if (PyErr_Occurred()) SWIG_fail; | |
20643 | } | |
20644 | { | |
20645 | wxDateSpan * resultptr; | |
20646 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20647 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20648 | } | |
20649 | return resultobj; | |
20650 | fail: | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
20655 | static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20656 | PyObject *resultobj; | |
20657 | wxDateSpan result; | |
20658 | char *kwnames[] = { | |
20659 | NULL | |
20660 | }; | |
20661 | ||
20662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail; | |
20663 | { | |
20664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20665 | result = wxDateSpan::Week(); | |
20666 | ||
20667 | wxPyEndAllowThreads(__tstate); | |
20668 | if (PyErr_Occurred()) SWIG_fail; | |
20669 | } | |
20670 | { | |
20671 | wxDateSpan * resultptr; | |
20672 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20673 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20674 | } | |
20675 | return resultobj; | |
20676 | fail: | |
20677 | return NULL; | |
20678 | } | |
20679 | ||
20680 | ||
20681 | static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20682 | PyObject *resultobj; | |
20683 | int arg1 ; | |
20684 | wxDateSpan result; | |
20685 | char *kwnames[] = { | |
20686 | (char *) "mon", NULL | |
20687 | }; | |
20688 | ||
20689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Months",kwnames,&arg1)) goto fail; | |
20690 | { | |
20691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20692 | result = wxDateSpan::Months(arg1); | |
20693 | ||
20694 | wxPyEndAllowThreads(__tstate); | |
20695 | if (PyErr_Occurred()) SWIG_fail; | |
20696 | } | |
20697 | { | |
20698 | wxDateSpan * resultptr; | |
20699 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20700 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20701 | } | |
20702 | return resultobj; | |
20703 | fail: | |
20704 | return NULL; | |
20705 | } | |
20706 | ||
20707 | ||
20708 | static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20709 | PyObject *resultobj; | |
20710 | wxDateSpan result; | |
20711 | char *kwnames[] = { | |
20712 | NULL | |
20713 | }; | |
20714 | ||
20715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail; | |
20716 | { | |
20717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20718 | result = wxDateSpan::Month(); | |
20719 | ||
20720 | wxPyEndAllowThreads(__tstate); | |
20721 | if (PyErr_Occurred()) SWIG_fail; | |
20722 | } | |
20723 | { | |
20724 | wxDateSpan * resultptr; | |
20725 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20726 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20727 | } | |
20728 | return resultobj; | |
20729 | fail: | |
20730 | return NULL; | |
20731 | } | |
20732 | ||
20733 | ||
20734 | static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20735 | PyObject *resultobj; | |
20736 | int arg1 ; | |
20737 | wxDateSpan result; | |
20738 | char *kwnames[] = { | |
20739 | (char *) "years", NULL | |
20740 | }; | |
20741 | ||
20742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:DateSpan_Years",kwnames,&arg1)) goto fail; | |
20743 | { | |
20744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20745 | result = wxDateSpan::Years(arg1); | |
20746 | ||
20747 | wxPyEndAllowThreads(__tstate); | |
20748 | if (PyErr_Occurred()) SWIG_fail; | |
20749 | } | |
20750 | { | |
20751 | wxDateSpan * resultptr; | |
20752 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20753 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20754 | } | |
20755 | return resultobj; | |
20756 | fail: | |
20757 | return NULL; | |
20758 | } | |
20759 | ||
20760 | ||
20761 | static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20762 | PyObject *resultobj; | |
20763 | wxDateSpan result; | |
20764 | char *kwnames[] = { | |
20765 | NULL | |
20766 | }; | |
20767 | ||
20768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail; | |
20769 | { | |
20770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20771 | result = wxDateSpan::Year(); | |
20772 | ||
20773 | wxPyEndAllowThreads(__tstate); | |
20774 | if (PyErr_Occurred()) SWIG_fail; | |
20775 | } | |
20776 | { | |
20777 | wxDateSpan * resultptr; | |
20778 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
20779 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
20780 | } | |
20781 | return resultobj; | |
20782 | fail: | |
20783 | return NULL; | |
20784 | } | |
20785 | ||
20786 | ||
20787 | static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20788 | PyObject *resultobj; | |
20789 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20790 | int arg2 ; | |
20791 | wxDateSpan *result; | |
20792 | PyObject * obj0 = 0 ; | |
20793 | char *kwnames[] = { | |
20794 | (char *) "self",(char *) "n", NULL | |
20795 | }; | |
20796 | ||
20797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetYears",kwnames,&obj0,&arg2)) goto fail; | |
20798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20799 | { | |
20800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20801 | { | |
20802 | wxDateSpan &_result_ref = (arg1)->SetYears(arg2); | |
20803 | result = (wxDateSpan *) &_result_ref; | |
20804 | } | |
20805 | ||
20806 | wxPyEndAllowThreads(__tstate); | |
20807 | if (PyErr_Occurred()) SWIG_fail; | |
20808 | } | |
20809 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20810 | return resultobj; | |
20811 | fail: | |
20812 | return NULL; | |
20813 | } | |
20814 | ||
20815 | ||
20816 | static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20817 | PyObject *resultobj; | |
20818 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20819 | int arg2 ; | |
20820 | wxDateSpan *result; | |
20821 | PyObject * obj0 = 0 ; | |
20822 | char *kwnames[] = { | |
20823 | (char *) "self",(char *) "n", NULL | |
20824 | }; | |
20825 | ||
20826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetMonths",kwnames,&obj0,&arg2)) goto fail; | |
20827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20828 | { | |
20829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20830 | { | |
20831 | wxDateSpan &_result_ref = (arg1)->SetMonths(arg2); | |
20832 | result = (wxDateSpan *) &_result_ref; | |
20833 | } | |
20834 | ||
20835 | wxPyEndAllowThreads(__tstate); | |
20836 | if (PyErr_Occurred()) SWIG_fail; | |
20837 | } | |
20838 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20839 | return resultobj; | |
20840 | fail: | |
20841 | return NULL; | |
20842 | } | |
20843 | ||
20844 | ||
20845 | static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20846 | PyObject *resultobj; | |
20847 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20848 | int arg2 ; | |
20849 | wxDateSpan *result; | |
20850 | PyObject * obj0 = 0 ; | |
20851 | char *kwnames[] = { | |
20852 | (char *) "self",(char *) "n", NULL | |
20853 | }; | |
20854 | ||
20855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetWeeks",kwnames,&obj0,&arg2)) goto fail; | |
20856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20857 | { | |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20859 | { | |
20860 | wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2); | |
20861 | result = (wxDateSpan *) &_result_ref; | |
20862 | } | |
20863 | ||
20864 | wxPyEndAllowThreads(__tstate); | |
20865 | if (PyErr_Occurred()) SWIG_fail; | |
20866 | } | |
20867 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20868 | return resultobj; | |
20869 | fail: | |
20870 | return NULL; | |
20871 | } | |
20872 | ||
20873 | ||
20874 | static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20875 | PyObject *resultobj; | |
20876 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20877 | int arg2 ; | |
20878 | wxDateSpan *result; | |
20879 | PyObject * obj0 = 0 ; | |
20880 | char *kwnames[] = { | |
20881 | (char *) "self",(char *) "n", NULL | |
20882 | }; | |
20883 | ||
20884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_SetDays",kwnames,&obj0,&arg2)) goto fail; | |
20885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20886 | { | |
20887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20888 | { | |
20889 | wxDateSpan &_result_ref = (arg1)->SetDays(arg2); | |
20890 | result = (wxDateSpan *) &_result_ref; | |
20891 | } | |
20892 | ||
20893 | wxPyEndAllowThreads(__tstate); | |
20894 | if (PyErr_Occurred()) SWIG_fail; | |
20895 | } | |
20896 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
20897 | return resultobj; | |
20898 | fail: | |
20899 | return NULL; | |
20900 | } | |
20901 | ||
20902 | ||
20903 | static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20904 | PyObject *resultobj; | |
20905 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20906 | int result; | |
20907 | PyObject * obj0 = 0 ; | |
20908 | char *kwnames[] = { | |
20909 | (char *) "self", NULL | |
20910 | }; | |
20911 | ||
20912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail; | |
20913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20914 | { | |
20915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20916 | result = (int)((wxDateSpan const *)arg1)->GetYears(); | |
20917 | ||
20918 | wxPyEndAllowThreads(__tstate); | |
20919 | if (PyErr_Occurred()) SWIG_fail; | |
20920 | } | |
20921 | resultobj = PyInt_FromLong((long)result); | |
20922 | return resultobj; | |
20923 | fail: | |
20924 | return NULL; | |
20925 | } | |
20926 | ||
20927 | ||
20928 | static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20929 | PyObject *resultobj; | |
20930 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20931 | int result; | |
20932 | PyObject * obj0 = 0 ; | |
20933 | char *kwnames[] = { | |
20934 | (char *) "self", NULL | |
20935 | }; | |
20936 | ||
20937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail; | |
20938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20939 | { | |
20940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20941 | result = (int)((wxDateSpan const *)arg1)->GetMonths(); | |
20942 | ||
20943 | wxPyEndAllowThreads(__tstate); | |
20944 | if (PyErr_Occurred()) SWIG_fail; | |
20945 | } | |
20946 | resultobj = PyInt_FromLong((long)result); | |
20947 | return resultobj; | |
20948 | fail: | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
20953 | static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20954 | PyObject *resultobj; | |
20955 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20956 | int result; | |
20957 | PyObject * obj0 = 0 ; | |
20958 | char *kwnames[] = { | |
20959 | (char *) "self", NULL | |
20960 | }; | |
20961 | ||
20962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail; | |
20963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20964 | { | |
20965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20966 | result = (int)((wxDateSpan const *)arg1)->GetWeeks(); | |
20967 | ||
20968 | wxPyEndAllowThreads(__tstate); | |
20969 | if (PyErr_Occurred()) SWIG_fail; | |
20970 | } | |
20971 | resultobj = PyInt_FromLong((long)result); | |
20972 | return resultobj; | |
20973 | fail: | |
20974 | return NULL; | |
20975 | } | |
20976 | ||
20977 | ||
20978 | static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20979 | PyObject *resultobj; | |
20980 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
20981 | int result; | |
20982 | PyObject * obj0 = 0 ; | |
20983 | char *kwnames[] = { | |
20984 | (char *) "self", NULL | |
20985 | }; | |
20986 | ||
20987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail; | |
20988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20989 | { | |
20990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20991 | result = (int)((wxDateSpan const *)arg1)->GetDays(); | |
20992 | ||
20993 | wxPyEndAllowThreads(__tstate); | |
20994 | if (PyErr_Occurred()) SWIG_fail; | |
20995 | } | |
20996 | resultobj = PyInt_FromLong((long)result); | |
20997 | return resultobj; | |
20998 | fail: | |
20999 | return NULL; | |
21000 | } | |
21001 | ||
21002 | ||
21003 | static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21004 | PyObject *resultobj; | |
21005 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21006 | int result; | |
21007 | PyObject * obj0 = 0 ; | |
21008 | char *kwnames[] = { | |
21009 | (char *) "self", NULL | |
21010 | }; | |
21011 | ||
21012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail; | |
21013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21014 | { | |
21015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21016 | result = (int)((wxDateSpan const *)arg1)->GetTotalDays(); | |
21017 | ||
21018 | wxPyEndAllowThreads(__tstate); | |
21019 | if (PyErr_Occurred()) SWIG_fail; | |
21020 | } | |
21021 | resultobj = PyInt_FromLong((long)result); | |
21022 | return resultobj; | |
21023 | fail: | |
21024 | return NULL; | |
21025 | } | |
21026 | ||
21027 | ||
21028 | static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21029 | PyObject *resultobj; | |
21030 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21031 | wxDateSpan *arg2 = 0 ; | |
21032 | wxDateSpan *result; | |
21033 | PyObject * obj0 = 0 ; | |
21034 | PyObject * obj1 = 0 ; | |
21035 | char *kwnames[] = { | |
21036 | (char *) "self",(char *) "other", NULL | |
21037 | }; | |
21038 | ||
21039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail; | |
21040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21041 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21042 | if (arg2 == NULL) { | |
21043 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21044 | } | |
21045 | { | |
21046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21047 | { | |
21048 | wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2); | |
21049 | result = (wxDateSpan *) &_result_ref; | |
21050 | } | |
21051 | ||
21052 | wxPyEndAllowThreads(__tstate); | |
21053 | if (PyErr_Occurred()) SWIG_fail; | |
21054 | } | |
21055 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21056 | return resultobj; | |
21057 | fail: | |
21058 | return NULL; | |
21059 | } | |
21060 | ||
21061 | ||
21062 | static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21063 | PyObject *resultobj; | |
21064 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21065 | wxDateSpan *arg2 = 0 ; | |
21066 | wxDateSpan *result; | |
21067 | PyObject * obj0 = 0 ; | |
21068 | PyObject * obj1 = 0 ; | |
21069 | char *kwnames[] = { | |
21070 | (char *) "self",(char *) "other", NULL | |
21071 | }; | |
21072 | ||
21073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail; | |
21074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21075 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21076 | if (arg2 == NULL) { | |
21077 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21078 | } | |
21079 | { | |
21080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21081 | { | |
21082 | wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2); | |
21083 | result = (wxDateSpan *) &_result_ref; | |
21084 | } | |
21085 | ||
21086 | wxPyEndAllowThreads(__tstate); | |
21087 | if (PyErr_Occurred()) SWIG_fail; | |
21088 | } | |
21089 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21090 | return resultobj; | |
21091 | fail: | |
21092 | return NULL; | |
21093 | } | |
21094 | ||
21095 | ||
21096 | static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21097 | PyObject *resultobj; | |
21098 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21099 | wxDateSpan *result; | |
21100 | PyObject * obj0 = 0 ; | |
21101 | char *kwnames[] = { | |
21102 | (char *) "self", NULL | |
21103 | }; | |
21104 | ||
21105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail; | |
21106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21107 | { | |
21108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21109 | { | |
21110 | wxDateSpan &_result_ref = (arg1)->Neg(); | |
21111 | result = (wxDateSpan *) &_result_ref; | |
21112 | } | |
21113 | ||
21114 | wxPyEndAllowThreads(__tstate); | |
21115 | if (PyErr_Occurred()) SWIG_fail; | |
21116 | } | |
21117 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21118 | return resultobj; | |
21119 | fail: | |
21120 | return NULL; | |
21121 | } | |
21122 | ||
21123 | ||
21124 | static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21125 | PyObject *resultobj; | |
21126 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21127 | int arg2 ; | |
21128 | wxDateSpan *result; | |
21129 | PyObject * obj0 = 0 ; | |
21130 | char *kwnames[] = { | |
21131 | (char *) "self",(char *) "factor", NULL | |
21132 | }; | |
21133 | ||
21134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan_Multiply",kwnames,&obj0,&arg2)) goto fail; | |
21135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21136 | { | |
21137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21138 | { | |
21139 | wxDateSpan &_result_ref = (arg1)->Multiply(arg2); | |
21140 | result = (wxDateSpan *) &_result_ref; | |
21141 | } | |
21142 | ||
21143 | wxPyEndAllowThreads(__tstate); | |
21144 | if (PyErr_Occurred()) SWIG_fail; | |
21145 | } | |
21146 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21147 | return resultobj; | |
21148 | fail: | |
21149 | return NULL; | |
21150 | } | |
21151 | ||
21152 | ||
21153 | static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21154 | PyObject *resultobj; | |
21155 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21156 | wxDateSpan *arg2 = 0 ; | |
21157 | wxDateSpan *result; | |
21158 | PyObject * obj0 = 0 ; | |
21159 | PyObject * obj1 = 0 ; | |
21160 | char *kwnames[] = { | |
21161 | (char *) "self",(char *) "other", NULL | |
21162 | }; | |
21163 | ||
21164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
21165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21166 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21167 | if (arg2 == NULL) { | |
21168 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21169 | } | |
21170 | { | |
21171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21172 | { | |
21173 | wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2); | |
21174 | result = (wxDateSpan *) &_result_ref; | |
21175 | } | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
21180 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21181 | return resultobj; | |
21182 | fail: | |
21183 | return NULL; | |
21184 | } | |
21185 | ||
21186 | ||
21187 | static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21188 | PyObject *resultobj; | |
21189 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21190 | wxDateSpan *arg2 = 0 ; | |
21191 | wxDateSpan *result; | |
21192 | PyObject * obj0 = 0 ; | |
21193 | PyObject * obj1 = 0 ; | |
21194 | char *kwnames[] = { | |
21195 | (char *) "self",(char *) "other", NULL | |
21196 | }; | |
21197 | ||
21198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail; | |
21199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21200 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21201 | if (arg2 == NULL) { | |
21202 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21203 | } | |
21204 | { | |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21206 | { | |
21207 | wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2); | |
21208 | result = (wxDateSpan *) &_result_ref; | |
21209 | } | |
21210 | ||
21211 | wxPyEndAllowThreads(__tstate); | |
21212 | if (PyErr_Occurred()) SWIG_fail; | |
21213 | } | |
21214 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21215 | return resultobj; | |
21216 | fail: | |
21217 | return NULL; | |
21218 | } | |
21219 | ||
21220 | ||
21221 | static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21222 | PyObject *resultobj; | |
21223 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21224 | wxDateSpan *result; | |
21225 | PyObject * obj0 = 0 ; | |
21226 | char *kwnames[] = { | |
21227 | (char *) "self", NULL | |
21228 | }; | |
21229 | ||
21230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail; | |
21231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21232 | { | |
21233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21234 | { | |
21235 | wxDateSpan &_result_ref = (arg1)->operator -(); | |
21236 | result = (wxDateSpan *) &_result_ref; | |
21237 | } | |
21238 | ||
21239 | wxPyEndAllowThreads(__tstate); | |
21240 | if (PyErr_Occurred()) SWIG_fail; | |
21241 | } | |
21242 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21243 | return resultobj; | |
21244 | fail: | |
21245 | return NULL; | |
21246 | } | |
21247 | ||
21248 | ||
21249 | static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21250 | PyObject *resultobj; | |
21251 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21252 | int arg2 ; | |
21253 | wxDateSpan *result; | |
21254 | PyObject * obj0 = 0 ; | |
21255 | char *kwnames[] = { | |
21256 | (char *) "self",(char *) "factor", NULL | |
21257 | }; | |
21258 | ||
21259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___imul__",kwnames,&obj0,&arg2)) goto fail; | |
21260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21261 | { | |
21262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21263 | { | |
21264 | wxDateSpan &_result_ref = (arg1)->operator *=(arg2); | |
21265 | result = (wxDateSpan *) &_result_ref; | |
21266 | } | |
21267 | ||
21268 | wxPyEndAllowThreads(__tstate); | |
21269 | if (PyErr_Occurred()) SWIG_fail; | |
21270 | } | |
21271 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDateSpan, 0); | |
21272 | return resultobj; | |
21273 | fail: | |
21274 | return NULL; | |
21275 | } | |
21276 | ||
21277 | ||
21278 | static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21279 | PyObject *resultobj; | |
21280 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21281 | wxDateSpan *arg2 = 0 ; | |
21282 | wxDateSpan result; | |
21283 | PyObject * obj0 = 0 ; | |
21284 | PyObject * obj1 = 0 ; | |
21285 | char *kwnames[] = { | |
21286 | (char *) "self",(char *) "other", NULL | |
21287 | }; | |
21288 | ||
21289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail; | |
21290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21291 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21292 | if (arg2 == NULL) { | |
21293 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21294 | } | |
21295 | { | |
21296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21297 | result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2); | |
21298 | ||
21299 | wxPyEndAllowThreads(__tstate); | |
21300 | if (PyErr_Occurred()) SWIG_fail; | |
21301 | } | |
21302 | { | |
21303 | wxDateSpan * resultptr; | |
21304 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21305 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21306 | } | |
21307 | return resultobj; | |
21308 | fail: | |
21309 | return NULL; | |
21310 | } | |
21311 | ||
21312 | ||
21313 | static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21314 | PyObject *resultobj; | |
21315 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21316 | wxDateSpan *arg2 = 0 ; | |
21317 | wxDateSpan result; | |
21318 | PyObject * obj0 = 0 ; | |
21319 | PyObject * obj1 = 0 ; | |
21320 | char *kwnames[] = { | |
21321 | (char *) "self",(char *) "other", NULL | |
21322 | }; | |
21323 | ||
21324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail; | |
21325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21326 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21327 | if (arg2 == NULL) { | |
21328 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21329 | } | |
21330 | { | |
21331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21332 | result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2); | |
21333 | ||
21334 | wxPyEndAllowThreads(__tstate); | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | { | |
21338 | wxDateSpan * resultptr; | |
21339 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21340 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21341 | } | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
21348 | static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21349 | PyObject *resultobj; | |
21350 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21351 | int arg2 ; | |
21352 | wxDateSpan result; | |
21353 | PyObject * obj0 = 0 ; | |
21354 | char *kwnames[] = { | |
21355 | (char *) "self",(char *) "n", NULL | |
21356 | }; | |
21357 | ||
21358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___mul__",kwnames,&obj0,&arg2)) goto fail; | |
21359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21360 | { | |
21361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21362 | result = wxDateSpan___mul__(arg1,arg2); | |
21363 | ||
21364 | wxPyEndAllowThreads(__tstate); | |
21365 | if (PyErr_Occurred()) SWIG_fail; | |
21366 | } | |
21367 | { | |
21368 | wxDateSpan * resultptr; | |
21369 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21370 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21371 | } | |
21372 | return resultobj; | |
21373 | fail: | |
21374 | return NULL; | |
21375 | } | |
21376 | ||
21377 | ||
21378 | static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21379 | PyObject *resultobj; | |
21380 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21381 | int arg2 ; | |
21382 | wxDateSpan result; | |
21383 | PyObject * obj0 = 0 ; | |
21384 | char *kwnames[] = { | |
21385 | (char *) "self",(char *) "n", NULL | |
21386 | }; | |
21387 | ||
21388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DateSpan___rmul__",kwnames,&obj0,&arg2)) goto fail; | |
21389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21390 | { | |
21391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21392 | result = wxDateSpan___rmul__(arg1,arg2); | |
21393 | ||
21394 | wxPyEndAllowThreads(__tstate); | |
21395 | if (PyErr_Occurred()) SWIG_fail; | |
21396 | } | |
21397 | { | |
21398 | wxDateSpan * resultptr; | |
21399 | resultptr = new wxDateSpan((wxDateSpan &) result); | |
21400 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateSpan, 1); | |
21401 | } | |
21402 | return resultobj; | |
21403 | fail: | |
21404 | return NULL; | |
21405 | } | |
21406 | ||
21407 | ||
21408 | static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21409 | PyObject *resultobj; | |
21410 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21411 | wxDateSpan *arg2 = 0 ; | |
21412 | bool result; | |
21413 | PyObject * obj0 = 0 ; | |
21414 | PyObject * obj1 = 0 ; | |
21415 | char *kwnames[] = { | |
21416 | (char *) "self",(char *) "other", NULL | |
21417 | }; | |
21418 | ||
21419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
21420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21421 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21422 | if (arg2 == NULL) { | |
21423 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21424 | } | |
21425 | { | |
21426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21427 | result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const &)*arg2); | |
21428 | ||
21429 | wxPyEndAllowThreads(__tstate); | |
21430 | if (PyErr_Occurred()) SWIG_fail; | |
21431 | } | |
21432 | resultobj = PyInt_FromLong((long)result); | |
21433 | return resultobj; | |
21434 | fail: | |
21435 | return NULL; | |
21436 | } | |
21437 | ||
21438 | ||
21439 | static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21440 | PyObject *resultobj; | |
21441 | wxDateSpan *arg1 = (wxDateSpan *) 0 ; | |
21442 | wxDateSpan *arg2 = 0 ; | |
21443 | bool result; | |
21444 | PyObject * obj0 = 0 ; | |
21445 | PyObject * obj1 = 0 ; | |
21446 | char *kwnames[] = { | |
21447 | (char *) "self",(char *) "other", NULL | |
21448 | }; | |
21449 | ||
21450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
21451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21452 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDateSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21453 | if (arg2 == NULL) { | |
21454 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21455 | } | |
21456 | { | |
21457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21458 | result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const &)*arg2); | |
21459 | ||
21460 | wxPyEndAllowThreads(__tstate); | |
21461 | if (PyErr_Occurred()) SWIG_fail; | |
21462 | } | |
21463 | resultobj = PyInt_FromLong((long)result); | |
21464 | return resultobj; | |
21465 | fail: | |
21466 | return NULL; | |
21467 | } | |
21468 | ||
21469 | ||
21470 | static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) { | |
21471 | PyObject *obj; | |
21472 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21473 | SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj); | |
21474 | Py_INCREF(obj); | |
21475 | return Py_BuildValue((char *)""); | |
21476 | } | |
21477 | static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21478 | PyObject *resultobj; | |
21479 | long result; | |
21480 | char *kwnames[] = { | |
21481 | NULL | |
21482 | }; | |
21483 | ||
21484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail; | |
21485 | { | |
21486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21487 | result = (long)wxGetLocalTime(); | |
21488 | ||
21489 | wxPyEndAllowThreads(__tstate); | |
21490 | if (PyErr_Occurred()) SWIG_fail; | |
21491 | } | |
21492 | resultobj = PyInt_FromLong((long)result); | |
21493 | return resultobj; | |
21494 | fail: | |
21495 | return NULL; | |
21496 | } | |
21497 | ||
21498 | ||
21499 | static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21500 | PyObject *resultobj; | |
21501 | long result; | |
21502 | char *kwnames[] = { | |
21503 | NULL | |
21504 | }; | |
21505 | ||
21506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail; | |
21507 | { | |
21508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21509 | result = (long)wxGetUTCTime(); | |
21510 | ||
21511 | wxPyEndAllowThreads(__tstate); | |
21512 | if (PyErr_Occurred()) SWIG_fail; | |
21513 | } | |
21514 | resultobj = PyInt_FromLong((long)result); | |
21515 | return resultobj; | |
21516 | fail: | |
21517 | return NULL; | |
21518 | } | |
21519 | ||
21520 | ||
21521 | static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21522 | PyObject *resultobj; | |
21523 | long result; | |
21524 | char *kwnames[] = { | |
21525 | NULL | |
21526 | }; | |
21527 | ||
21528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail; | |
21529 | { | |
21530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21531 | result = (long)wxGetCurrentTime(); | |
21532 | ||
21533 | wxPyEndAllowThreads(__tstate); | |
21534 | if (PyErr_Occurred()) SWIG_fail; | |
21535 | } | |
21536 | resultobj = PyInt_FromLong((long)result); | |
21537 | return resultobj; | |
21538 | fail: | |
21539 | return NULL; | |
21540 | } | |
21541 | ||
21542 | ||
21543 | static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21544 | PyObject *resultobj; | |
21545 | wxLongLong result; | |
21546 | char *kwnames[] = { | |
21547 | NULL | |
21548 | }; | |
21549 | ||
21550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail; | |
21551 | { | |
21552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21553 | result = wxGetLocalTimeMillis(); | |
21554 | ||
21555 | wxPyEndAllowThreads(__tstate); | |
21556 | if (PyErr_Occurred()) SWIG_fail; | |
21557 | } | |
21558 | { | |
21559 | PyObject *hi, *lo, *shifter, *shifted; | |
21560 | hi = PyLong_FromLong( (&result)->GetHi() ); | |
21561 | lo = PyLong_FromLong( (&result)->GetLo() ); | |
21562 | shifter = PyLong_FromLong(32); | |
21563 | shifted = PyNumber_Lshift(hi, shifter); | |
21564 | resultobj = PyNumber_Or(shifted, lo); | |
21565 | Py_DECREF(hi); | |
21566 | Py_DECREF(lo); | |
21567 | Py_DECREF(shifter); | |
21568 | Py_DECREF(shifted); | |
21569 | } | |
21570 | return resultobj; | |
21571 | fail: | |
21572 | return NULL; | |
21573 | } | |
21574 | ||
21575 | ||
21576 | static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21577 | PyObject *resultobj; | |
21578 | int arg1 ; | |
21579 | wxDataFormat *result; | |
21580 | char *kwnames[] = { | |
21581 | (char *) "type", NULL | |
21582 | }; | |
21583 | ||
21584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:new_DataFormat",kwnames,&arg1)) goto fail; | |
21585 | { | |
21586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21587 | result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1); | |
21588 | ||
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
21592 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21593 | return resultobj; | |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj; | |
21601 | wxString *arg1 = 0 ; | |
21602 | wxDataFormat *result; | |
423f194a | 21603 | bool temp1 = False ; |
d14a1e28 RD |
21604 | PyObject * obj0 = 0 ; |
21605 | char *kwnames[] = { | |
21606 | (char *) "format", NULL | |
21607 | }; | |
21608 | ||
21609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail; | |
21610 | { | |
21611 | arg1 = wxString_in_helper(obj0); | |
21612 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 21613 | temp1 = True; |
d14a1e28 RD |
21614 | } |
21615 | { | |
21616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21617 | result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1); | |
21618 | ||
21619 | wxPyEndAllowThreads(__tstate); | |
21620 | if (PyErr_Occurred()) SWIG_fail; | |
21621 | } | |
21622 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 1); | |
21623 | { | |
21624 | if (temp1) | |
21625 | delete arg1; | |
21626 | } | |
21627 | return resultobj; | |
21628 | fail: | |
21629 | { | |
21630 | if (temp1) | |
21631 | delete arg1; | |
21632 | } | |
21633 | return NULL; | |
21634 | } | |
21635 | ||
21636 | ||
21637 | static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21638 | PyObject *resultobj; | |
21639 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21640 | PyObject * obj0 = 0 ; | |
21641 | char *kwnames[] = { | |
21642 | (char *) "self", NULL | |
21643 | }; | |
21644 | ||
21645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail; | |
21646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21647 | { | |
21648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21649 | delete arg1; | |
21650 | ||
21651 | wxPyEndAllowThreads(__tstate); | |
21652 | if (PyErr_Occurred()) SWIG_fail; | |
21653 | } | |
21654 | Py_INCREF(Py_None); resultobj = Py_None; | |
21655 | return resultobj; | |
21656 | fail: | |
21657 | return NULL; | |
21658 | } | |
21659 | ||
21660 | ||
21661 | static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) { | |
21662 | PyObject *resultobj; | |
21663 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21664 | int arg2 ; | |
21665 | bool result; | |
21666 | PyObject * obj0 = 0 ; | |
21667 | ||
21668 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___eq__",&obj0,&arg2)) goto fail; | |
21669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21670 | { | |
21671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21672 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2); | |
21673 | ||
21674 | wxPyEndAllowThreads(__tstate); | |
21675 | if (PyErr_Occurred()) SWIG_fail; | |
21676 | } | |
21677 | resultobj = PyInt_FromLong((long)result); | |
21678 | return resultobj; | |
21679 | fail: | |
21680 | return NULL; | |
21681 | } | |
21682 | ||
21683 | ||
21684 | static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) { | |
21685 | PyObject *resultobj; | |
21686 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21687 | int arg2 ; | |
21688 | bool result; | |
21689 | PyObject * obj0 = 0 ; | |
21690 | ||
21691 | if(!PyArg_ParseTuple(args,(char *)"Oi:DataFormat___ne__",&obj0,&arg2)) goto fail; | |
21692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21693 | { | |
21694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21695 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2); | |
21696 | ||
21697 | wxPyEndAllowThreads(__tstate); | |
21698 | if (PyErr_Occurred()) SWIG_fail; | |
21699 | } | |
21700 | resultobj = PyInt_FromLong((long)result); | |
21701 | return resultobj; | |
21702 | fail: | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
21707 | static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) { | |
21708 | PyObject *resultobj; | |
21709 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21710 | wxDataFormat *arg2 = 0 ; | |
21711 | bool result; | |
21712 | PyObject * obj0 = 0 ; | |
21713 | PyObject * obj1 = 0 ; | |
21714 | ||
21715 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail; | |
21716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21717 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21718 | if (arg2 == NULL) { | |
21719 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21720 | } | |
21721 | { | |
21722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21723 | result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2); | |
21724 | ||
21725 | wxPyEndAllowThreads(__tstate); | |
21726 | if (PyErr_Occurred()) SWIG_fail; | |
21727 | } | |
21728 | resultobj = PyInt_FromLong((long)result); | |
21729 | return resultobj; | |
21730 | fail: | |
21731 | return NULL; | |
21732 | } | |
21733 | ||
21734 | ||
21735 | static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) { | |
21736 | int argc; | |
21737 | PyObject *argv[3]; | |
21738 | int ii; | |
21739 | ||
21740 | argc = PyObject_Length(args); | |
21741 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21742 | argv[ii] = PyTuple_GetItem(args,ii); | |
21743 | } | |
21744 | if (argc == 2) { | |
21745 | int _v; | |
21746 | { | |
21747 | void *ptr; | |
21748 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21749 | _v = 0; | |
21750 | PyErr_Clear(); | |
21751 | } else { | |
21752 | _v = 1; | |
21753 | } | |
21754 | } | |
21755 | if (_v) { | |
21756 | { | |
21757 | void *ptr; | |
21758 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21759 | _v = 0; | |
21760 | PyErr_Clear(); | |
21761 | } else { | |
21762 | _v = 1; | |
21763 | } | |
21764 | } | |
21765 | if (_v) { | |
21766 | return _wrap_DataFormat___eq____SWIG_1(self,args); | |
21767 | } | |
21768 | } | |
21769 | } | |
21770 | if (argc == 2) { | |
21771 | int _v; | |
21772 | { | |
21773 | void *ptr; | |
21774 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21775 | _v = 0; | |
21776 | PyErr_Clear(); | |
21777 | } else { | |
21778 | _v = 1; | |
21779 | } | |
21780 | } | |
21781 | if (_v) { | |
21782 | { | |
21783 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21784 | } | |
21785 | if (_v) { | |
21786 | return _wrap_DataFormat___eq____SWIG_0(self,args); | |
21787 | } | |
21788 | } | |
21789 | } | |
21790 | ||
21791 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'"); | |
21792 | return NULL; | |
21793 | } | |
21794 | ||
21795 | ||
21796 | static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) { | |
21797 | PyObject *resultobj; | |
21798 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21799 | wxDataFormat *arg2 = 0 ; | |
21800 | bool result; | |
21801 | PyObject * obj0 = 0 ; | |
21802 | PyObject * obj1 = 0 ; | |
21803 | ||
21804 | if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail; | |
21805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21806 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21807 | if (arg2 == NULL) { | |
21808 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21809 | } | |
21810 | { | |
21811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21812 | result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2); | |
21813 | ||
21814 | wxPyEndAllowThreads(__tstate); | |
21815 | if (PyErr_Occurred()) SWIG_fail; | |
21816 | } | |
21817 | resultobj = PyInt_FromLong((long)result); | |
21818 | return resultobj; | |
21819 | fail: | |
21820 | return NULL; | |
21821 | } | |
21822 | ||
21823 | ||
21824 | static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) { | |
21825 | int argc; | |
21826 | PyObject *argv[3]; | |
21827 | int ii; | |
21828 | ||
21829 | argc = PyObject_Length(args); | |
21830 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
21831 | argv[ii] = PyTuple_GetItem(args,ii); | |
21832 | } | |
21833 | if (argc == 2) { | |
21834 | int _v; | |
21835 | { | |
21836 | void *ptr; | |
21837 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21838 | _v = 0; | |
21839 | PyErr_Clear(); | |
21840 | } else { | |
21841 | _v = 1; | |
21842 | } | |
21843 | } | |
21844 | if (_v) { | |
21845 | { | |
21846 | void *ptr; | |
21847 | if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21848 | _v = 0; | |
21849 | PyErr_Clear(); | |
21850 | } else { | |
21851 | _v = 1; | |
21852 | } | |
21853 | } | |
21854 | if (_v) { | |
21855 | return _wrap_DataFormat___ne____SWIG_1(self,args); | |
21856 | } | |
21857 | } | |
21858 | } | |
21859 | if (argc == 2) { | |
21860 | int _v; | |
21861 | { | |
21862 | void *ptr; | |
21863 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) { | |
21864 | _v = 0; | |
21865 | PyErr_Clear(); | |
21866 | } else { | |
21867 | _v = 1; | |
21868 | } | |
21869 | } | |
21870 | if (_v) { | |
21871 | { | |
21872 | _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; | |
21873 | } | |
21874 | if (_v) { | |
21875 | return _wrap_DataFormat___ne____SWIG_0(self,args); | |
21876 | } | |
21877 | } | |
21878 | } | |
21879 | ||
21880 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'"); | |
21881 | return NULL; | |
21882 | } | |
21883 | ||
21884 | ||
21885 | static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21886 | PyObject *resultobj; | |
21887 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21888 | int arg2 ; | |
21889 | PyObject * obj0 = 0 ; | |
21890 | char *kwnames[] = { | |
21891 | (char *) "self",(char *) "format", NULL | |
21892 | }; | |
21893 | ||
21894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DataFormat_SetType",kwnames,&obj0,&arg2)) goto fail; | |
21895 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21896 | { | |
21897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21898 | (arg1)->SetType((wxDataFormatId )arg2); | |
21899 | ||
21900 | wxPyEndAllowThreads(__tstate); | |
21901 | if (PyErr_Occurred()) SWIG_fail; | |
21902 | } | |
21903 | Py_INCREF(Py_None); resultobj = Py_None; | |
21904 | return resultobj; | |
21905 | fail: | |
21906 | return NULL; | |
21907 | } | |
21908 | ||
21909 | ||
21910 | static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21911 | PyObject *resultobj; | |
21912 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21913 | int result; | |
21914 | PyObject * obj0 = 0 ; | |
21915 | char *kwnames[] = { | |
21916 | (char *) "self", NULL | |
21917 | }; | |
21918 | ||
21919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail; | |
21920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21921 | { | |
21922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21923 | result = (int)((wxDataFormat const *)arg1)->GetType(); | |
21924 | ||
21925 | wxPyEndAllowThreads(__tstate); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
21927 | } | |
21928 | resultobj = PyInt_FromLong((long)result); | |
21929 | return resultobj; | |
21930 | fail: | |
21931 | return NULL; | |
21932 | } | |
21933 | ||
21934 | ||
21935 | static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21936 | PyObject *resultobj; | |
21937 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21938 | wxString result; | |
21939 | PyObject * obj0 = 0 ; | |
21940 | char *kwnames[] = { | |
21941 | (char *) "self", NULL | |
21942 | }; | |
21943 | ||
21944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail; | |
21945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21946 | { | |
21947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21948 | result = ((wxDataFormat const *)arg1)->GetId(); | |
21949 | ||
21950 | wxPyEndAllowThreads(__tstate); | |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
21953 | { | |
21954 | #if wxUSE_UNICODE | |
21955 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21956 | #else | |
21957 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21958 | #endif | |
21959 | } | |
21960 | return resultobj; | |
21961 | fail: | |
21962 | return NULL; | |
21963 | } | |
21964 | ||
21965 | ||
21966 | static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21967 | PyObject *resultobj; | |
21968 | wxDataFormat *arg1 = (wxDataFormat *) 0 ; | |
21969 | wxString *arg2 = 0 ; | |
423f194a | 21970 | bool temp2 = False ; |
d14a1e28 RD |
21971 | PyObject * obj0 = 0 ; |
21972 | PyObject * obj1 = 0 ; | |
21973 | char *kwnames[] = { | |
21974 | (char *) "self",(char *) "format", NULL | |
21975 | }; | |
21976 | ||
21977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail; | |
21978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21979 | { | |
21980 | arg2 = wxString_in_helper(obj1); | |
21981 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 21982 | temp2 = True; |
d14a1e28 RD |
21983 | } |
21984 | { | |
21985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21986 | (arg1)->SetId((wxString const &)*arg2); | |
21987 | ||
21988 | wxPyEndAllowThreads(__tstate); | |
21989 | if (PyErr_Occurred()) SWIG_fail; | |
21990 | } | |
21991 | Py_INCREF(Py_None); resultobj = Py_None; | |
21992 | { | |
21993 | if (temp2) | |
21994 | delete arg2; | |
21995 | } | |
21996 | return resultobj; | |
21997 | fail: | |
21998 | { | |
21999 | if (temp2) | |
22000 | delete arg2; | |
22001 | } | |
22002 | return NULL; | |
22003 | } | |
22004 | ||
22005 | ||
22006 | static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) { | |
22007 | PyObject *obj; | |
22008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22009 | SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj); | |
22010 | Py_INCREF(obj); | |
22011 | return Py_BuildValue((char *)""); | |
22012 | } | |
22013 | static int _wrap_FormatInvalid_set(PyObject *_val) { | |
22014 | PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only."); | |
22015 | return 1; | |
22016 | } | |
22017 | ||
22018 | ||
22019 | static PyObject *_wrap_FormatInvalid_get() { | |
22020 | PyObject *pyobj; | |
22021 | ||
22022 | pyobj = SWIG_NewPointerObj((void *) &wxFormatInvalid, SWIGTYPE_p_wxDataFormat, 0); | |
22023 | return pyobj; | |
22024 | } | |
22025 | ||
22026 | ||
22027 | static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22028 | PyObject *resultobj; | |
22029 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22030 | PyObject * obj0 = 0 ; | |
22031 | char *kwnames[] = { | |
22032 | (char *) "self", NULL | |
22033 | }; | |
22034 | ||
22035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail; | |
22036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22037 | { | |
22038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22039 | delete arg1; | |
22040 | ||
22041 | wxPyEndAllowThreads(__tstate); | |
22042 | if (PyErr_Occurred()) SWIG_fail; | |
22043 | } | |
22044 | Py_INCREF(Py_None); resultobj = Py_None; | |
22045 | return resultobj; | |
22046 | fail: | |
22047 | return NULL; | |
22048 | } | |
22049 | ||
22050 | ||
22051 | static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22052 | PyObject *resultobj; | |
22053 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22054 | int arg2 = (int) wxDataObject::Get ; | |
22055 | SwigValueWrapper< wxDataFormat > result; | |
22056 | PyObject * obj0 = 0 ; | |
22057 | char *kwnames[] = { | |
22058 | (char *) "self",(char *) "dir", NULL | |
22059 | }; | |
22060 | ||
22061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetPreferredFormat",kwnames,&obj0,&arg2)) goto fail; | |
22062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22063 | { | |
22064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22065 | result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2); | |
22066 | ||
22067 | wxPyEndAllowThreads(__tstate); | |
22068 | if (PyErr_Occurred()) SWIG_fail; | |
22069 | } | |
22070 | { | |
22071 | wxDataFormat * resultptr; | |
22072 | resultptr = new wxDataFormat((wxDataFormat &) result); | |
22073 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDataFormat, 1); | |
22074 | } | |
22075 | return resultobj; | |
22076 | fail: | |
22077 | return NULL; | |
22078 | } | |
22079 | ||
22080 | ||
22081 | static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22082 | PyObject *resultobj; | |
22083 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22084 | int arg2 = (int) wxDataObject::Get ; | |
22085 | size_t result; | |
22086 | PyObject * obj0 = 0 ; | |
22087 | char *kwnames[] = { | |
22088 | (char *) "self",(char *) "dir", NULL | |
22089 | }; | |
22090 | ||
22091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DataObject_GetFormatCount",kwnames,&obj0,&arg2)) goto fail; | |
22092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22093 | { | |
22094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22095 | result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2); | |
22096 | ||
22097 | wxPyEndAllowThreads(__tstate); | |
22098 | if (PyErr_Occurred()) SWIG_fail; | |
22099 | } | |
22100 | resultobj = PyInt_FromLong((long)result); | |
22101 | return resultobj; | |
22102 | fail: | |
22103 | return NULL; | |
22104 | } | |
22105 | ||
22106 | ||
22107 | static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22108 | PyObject *resultobj; | |
22109 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22110 | wxDataFormat *arg2 = 0 ; | |
22111 | int arg3 = (int) wxDataObject::Get ; | |
22112 | bool result; | |
22113 | PyObject * obj0 = 0 ; | |
22114 | PyObject * obj1 = 0 ; | |
22115 | char *kwnames[] = { | |
22116 | (char *) "self",(char *) "format",(char *) "dir", NULL | |
22117 | }; | |
22118 | ||
22119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_IsSupported",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22121 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22122 | if (arg2 == NULL) { | |
22123 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22124 | } | |
22125 | { | |
22126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22127 | result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3); | |
22128 | ||
22129 | wxPyEndAllowThreads(__tstate); | |
22130 | if (PyErr_Occurred()) SWIG_fail; | |
22131 | } | |
22132 | resultobj = PyInt_FromLong((long)result); | |
22133 | return resultobj; | |
22134 | fail: | |
22135 | return NULL; | |
22136 | } | |
22137 | ||
22138 | ||
22139 | static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22140 | PyObject *resultobj; | |
22141 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22142 | wxDataFormat *arg2 = 0 ; | |
22143 | size_t result; | |
22144 | PyObject * obj0 = 0 ; | |
22145 | PyObject * obj1 = 0 ; | |
22146 | char *kwnames[] = { | |
22147 | (char *) "self",(char *) "format", NULL | |
22148 | }; | |
22149 | ||
22150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail; | |
22151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22152 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22153 | if (arg2 == NULL) { | |
22154 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22155 | } | |
22156 | { | |
22157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22158 | result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2); | |
22159 | ||
22160 | wxPyEndAllowThreads(__tstate); | |
22161 | if (PyErr_Occurred()) SWIG_fail; | |
22162 | } | |
22163 | resultobj = PyInt_FromLong((long)result); | |
22164 | return resultobj; | |
22165 | fail: | |
22166 | return NULL; | |
22167 | } | |
22168 | ||
22169 | ||
22170 | static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22171 | PyObject *resultobj; | |
22172 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22173 | wxDataFormat *arg2 = (wxDataFormat *) 0 ; | |
22174 | int arg3 = (int) wxDataObject::Get ; | |
22175 | PyObject * obj0 = 0 ; | |
22176 | PyObject * obj1 = 0 ; | |
22177 | char *kwnames[] = { | |
22178 | (char *) "self",(char *) "formats",(char *) "dir", NULL | |
22179 | }; | |
22180 | ||
22181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22183 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22184 | { | |
22185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22186 | ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3); | |
22187 | ||
22188 | wxPyEndAllowThreads(__tstate); | |
22189 | if (PyErr_Occurred()) SWIG_fail; | |
22190 | } | |
22191 | Py_INCREF(Py_None); resultobj = Py_None; | |
22192 | return resultobj; | |
22193 | fail: | |
22194 | return NULL; | |
22195 | } | |
22196 | ||
22197 | ||
22198 | static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22199 | PyObject *resultobj; | |
22200 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22201 | wxDataFormat *arg2 = 0 ; | |
22202 | void *arg3 = (void *) 0 ; | |
22203 | bool result; | |
22204 | PyObject * obj0 = 0 ; | |
22205 | PyObject * obj1 = 0 ; | |
22206 | PyObject * obj2 = 0 ; | |
22207 | char *kwnames[] = { | |
22208 | (char *) "self",(char *) "format",(char *) "buf", NULL | |
22209 | }; | |
22210 | ||
22211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22213 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22214 | if (arg2 == NULL) { | |
22215 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22216 | } | |
22217 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22218 | { | |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3); | |
22221 | ||
22222 | wxPyEndAllowThreads(__tstate); | |
22223 | if (PyErr_Occurred()) SWIG_fail; | |
22224 | } | |
22225 | resultobj = PyInt_FromLong((long)result); | |
22226 | return resultobj; | |
22227 | fail: | |
22228 | return NULL; | |
22229 | } | |
22230 | ||
22231 | ||
22232 | static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22233 | PyObject *resultobj; | |
22234 | wxDataObject *arg1 = (wxDataObject *) 0 ; | |
22235 | wxDataFormat *arg2 = 0 ; | |
22236 | size_t arg3 ; | |
22237 | void *arg4 = (void *) 0 ; | |
22238 | bool result; | |
22239 | PyObject * obj0 = 0 ; | |
22240 | PyObject * obj1 = 0 ; | |
22241 | PyObject * obj2 = 0 ; | |
22242 | PyObject * obj3 = 0 ; | |
22243 | char *kwnames[] = { | |
22244 | (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL | |
22245 | }; | |
22246 | ||
22247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22249 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22250 | if (arg2 == NULL) { | |
22251 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22252 | } | |
22253 | arg3 = (size_t) PyInt_AsLong(obj2); | |
22254 | if (PyErr_Occurred()) SWIG_fail; | |
22255 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22256 | { | |
22257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22258 | result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4); | |
22259 | ||
22260 | wxPyEndAllowThreads(__tstate); | |
22261 | if (PyErr_Occurred()) SWIG_fail; | |
22262 | } | |
22263 | resultobj = PyInt_FromLong((long)result); | |
22264 | return resultobj; | |
22265 | fail: | |
22266 | return NULL; | |
22267 | } | |
22268 | ||
22269 | ||
22270 | static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) { | |
22271 | PyObject *obj; | |
22272 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22273 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj); | |
22274 | Py_INCREF(obj); | |
22275 | return Py_BuildValue((char *)""); | |
22276 | } | |
22277 | static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22278 | PyObject *resultobj; | |
22279 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22280 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22281 | wxDataObjectSimple *result; | |
22282 | PyObject * obj0 = 0 ; | |
22283 | char *kwnames[] = { | |
22284 | (char *) "format", NULL | |
22285 | }; | |
22286 | ||
22287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail; | |
22288 | if (obj0) { | |
22289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22290 | if (arg1 == NULL) { | |
22291 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22292 | } | |
22293 | } | |
22294 | { | |
22295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22296 | result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1); | |
22297 | ||
22298 | wxPyEndAllowThreads(__tstate); | |
22299 | if (PyErr_Occurred()) SWIG_fail; | |
22300 | } | |
22301 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectSimple, 1); | |
22302 | return resultobj; | |
22303 | fail: | |
22304 | return NULL; | |
22305 | } | |
22306 | ||
22307 | ||
22308 | static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22309 | PyObject *resultobj; | |
22310 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22311 | wxDataFormat *result; | |
22312 | PyObject * obj0 = 0 ; | |
22313 | char *kwnames[] = { | |
22314 | (char *) "self", NULL | |
22315 | }; | |
22316 | ||
22317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail; | |
22318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22319 | { | |
22320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22321 | { | |
22322 | wxDataFormat const &_result_ref = (arg1)->GetFormat(); | |
22323 | result = (wxDataFormat *) &_result_ref; | |
22324 | } | |
22325 | ||
22326 | wxPyEndAllowThreads(__tstate); | |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | } | |
22329 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataFormat, 0); | |
22330 | return resultobj; | |
22331 | fail: | |
22332 | return NULL; | |
22333 | } | |
22334 | ||
22335 | ||
22336 | static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22337 | PyObject *resultobj; | |
22338 | wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ; | |
22339 | wxDataFormat *arg2 = 0 ; | |
22340 | PyObject * obj0 = 0 ; | |
22341 | PyObject * obj1 = 0 ; | |
22342 | char *kwnames[] = { | |
22343 | (char *) "self",(char *) "format", NULL | |
22344 | }; | |
22345 | ||
22346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail; | |
22347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22348 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22349 | if (arg2 == NULL) { | |
22350 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22351 | } | |
22352 | { | |
22353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22354 | (arg1)->SetFormat((wxDataFormat const &)*arg2); | |
22355 | ||
22356 | wxPyEndAllowThreads(__tstate); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
22359 | Py_INCREF(Py_None); resultobj = Py_None; | |
22360 | return resultobj; | |
22361 | fail: | |
22362 | return NULL; | |
22363 | } | |
22364 | ||
22365 | ||
22366 | static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22367 | PyObject *obj; | |
22368 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22369 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj); | |
22370 | Py_INCREF(obj); | |
22371 | return Py_BuildValue((char *)""); | |
22372 | } | |
22373 | static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22374 | PyObject *resultobj; | |
22375 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22376 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22377 | wxPyDataObjectSimple *result; | |
22378 | PyObject * obj0 = 0 ; | |
22379 | char *kwnames[] = { | |
22380 | (char *) "format", NULL | |
22381 | }; | |
22382 | ||
22383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail; | |
22384 | if (obj0) { | |
22385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22386 | if (arg1 == NULL) { | |
22387 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22388 | } | |
22389 | } | |
22390 | { | |
22391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22392 | result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1); | |
22393 | ||
22394 | wxPyEndAllowThreads(__tstate); | |
22395 | if (PyErr_Occurred()) SWIG_fail; | |
22396 | } | |
22397 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDataObjectSimple, 1); | |
22398 | return resultobj; | |
22399 | fail: | |
22400 | return NULL; | |
22401 | } | |
22402 | ||
22403 | ||
22404 | static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22405 | PyObject *resultobj; | |
22406 | wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ; | |
22407 | PyObject *arg2 = (PyObject *) 0 ; | |
22408 | PyObject *arg3 = (PyObject *) 0 ; | |
22409 | PyObject * obj0 = 0 ; | |
22410 | PyObject * obj1 = 0 ; | |
22411 | PyObject * obj2 = 0 ; | |
22412 | char *kwnames[] = { | |
22413 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22414 | }; | |
22415 | ||
22416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22418 | arg2 = obj1; | |
22419 | arg3 = obj2; | |
22420 | { | |
22421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22422 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22423 | ||
22424 | wxPyEndAllowThreads(__tstate); | |
22425 | if (PyErr_Occurred()) SWIG_fail; | |
22426 | } | |
22427 | Py_INCREF(Py_None); resultobj = Py_None; | |
22428 | return resultobj; | |
22429 | fail: | |
22430 | return NULL; | |
22431 | } | |
22432 | ||
22433 | ||
22434 | static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) { | |
22435 | PyObject *obj; | |
22436 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22437 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj); | |
22438 | Py_INCREF(obj); | |
22439 | return Py_BuildValue((char *)""); | |
22440 | } | |
22441 | static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22442 | PyObject *resultobj; | |
22443 | wxDataObjectComposite *result; | |
22444 | char *kwnames[] = { | |
22445 | NULL | |
22446 | }; | |
22447 | ||
22448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail; | |
22449 | { | |
22450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22451 | result = (wxDataObjectComposite *)new wxDataObjectComposite(); | |
22452 | ||
22453 | wxPyEndAllowThreads(__tstate); | |
22454 | if (PyErr_Occurred()) SWIG_fail; | |
22455 | } | |
22456 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObjectComposite, 1); | |
22457 | return resultobj; | |
22458 | fail: | |
22459 | return NULL; | |
22460 | } | |
22461 | ||
22462 | ||
22463 | static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22464 | PyObject *resultobj; | |
22465 | wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ; | |
22466 | wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ; | |
423f194a | 22467 | int arg3 = (int) False ; |
d14a1e28 RD |
22468 | PyObject * obj0 = 0 ; |
22469 | PyObject * obj1 = 0 ; | |
22470 | char *kwnames[] = { | |
22471 | (char *) "self",(char *) "dataObject",(char *) "preferred", NULL | |
22472 | }; | |
22473 | ||
22474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:DataObjectComposite_Add",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
22475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObjectComposite,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22476 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObjectSimple,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22477 | { | |
22478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22479 | (arg1)->Add(arg2,arg3); | |
22480 | ||
22481 | wxPyEndAllowThreads(__tstate); | |
22482 | if (PyErr_Occurred()) SWIG_fail; | |
22483 | } | |
22484 | Py_INCREF(Py_None); resultobj = Py_None; | |
22485 | return resultobj; | |
22486 | fail: | |
22487 | return NULL; | |
22488 | } | |
22489 | ||
22490 | ||
22491 | static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) { | |
22492 | PyObject *obj; | |
22493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22494 | SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj); | |
22495 | Py_INCREF(obj); | |
22496 | return Py_BuildValue((char *)""); | |
22497 | } | |
22498 | static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22499 | PyObject *resultobj; | |
22500 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22501 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22502 | wxTextDataObject *result; | |
423f194a | 22503 | bool temp1 = False ; |
d14a1e28 RD |
22504 | PyObject * obj0 = 0 ; |
22505 | char *kwnames[] = { | |
22506 | (char *) "text", NULL | |
22507 | }; | |
22508 | ||
22509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail; | |
22510 | if (obj0) { | |
22511 | { | |
22512 | arg1 = wxString_in_helper(obj0); | |
22513 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 22514 | temp1 = True; |
d14a1e28 RD |
22515 | } |
22516 | } | |
22517 | { | |
22518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22519 | result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1); | |
22520 | ||
22521 | wxPyEndAllowThreads(__tstate); | |
22522 | if (PyErr_Occurred()) SWIG_fail; | |
22523 | } | |
22524 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextDataObject, 1); | |
22525 | { | |
22526 | if (temp1) | |
22527 | delete arg1; | |
22528 | } | |
22529 | return resultobj; | |
22530 | fail: | |
22531 | { | |
22532 | if (temp1) | |
22533 | delete arg1; | |
22534 | } | |
22535 | return NULL; | |
22536 | } | |
22537 | ||
22538 | ||
22539 | static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22540 | PyObject *resultobj; | |
22541 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22542 | size_t result; | |
22543 | PyObject * obj0 = 0 ; | |
22544 | char *kwnames[] = { | |
22545 | (char *) "self", NULL | |
22546 | }; | |
22547 | ||
22548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail; | |
22549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22550 | { | |
22551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22552 | result = (size_t)(arg1)->GetTextLength(); | |
22553 | ||
22554 | wxPyEndAllowThreads(__tstate); | |
22555 | if (PyErr_Occurred()) SWIG_fail; | |
22556 | } | |
22557 | resultobj = PyInt_FromLong((long)result); | |
22558 | return resultobj; | |
22559 | fail: | |
22560 | return NULL; | |
22561 | } | |
22562 | ||
22563 | ||
22564 | static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22565 | PyObject *resultobj; | |
22566 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22567 | wxString result; | |
22568 | PyObject * obj0 = 0 ; | |
22569 | char *kwnames[] = { | |
22570 | (char *) "self", NULL | |
22571 | }; | |
22572 | ||
22573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail; | |
22574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22575 | { | |
22576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22577 | result = (arg1)->GetText(); | |
22578 | ||
22579 | wxPyEndAllowThreads(__tstate); | |
22580 | if (PyErr_Occurred()) SWIG_fail; | |
22581 | } | |
22582 | { | |
22583 | #if wxUSE_UNICODE | |
22584 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22585 | #else | |
22586 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22587 | #endif | |
22588 | } | |
22589 | return resultobj; | |
22590 | fail: | |
22591 | return NULL; | |
22592 | } | |
22593 | ||
22594 | ||
22595 | static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22596 | PyObject *resultobj; | |
22597 | wxTextDataObject *arg1 = (wxTextDataObject *) 0 ; | |
22598 | wxString *arg2 = 0 ; | |
423f194a | 22599 | bool temp2 = False ; |
d14a1e28 RD |
22600 | PyObject * obj0 = 0 ; |
22601 | PyObject * obj1 = 0 ; | |
22602 | char *kwnames[] = { | |
22603 | (char *) "self",(char *) "text", NULL | |
22604 | }; | |
22605 | ||
22606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail; | |
22607 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22608 | { | |
22609 | arg2 = wxString_in_helper(obj1); | |
22610 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22611 | temp2 = True; |
d14a1e28 RD |
22612 | } |
22613 | { | |
22614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22615 | (arg1)->SetText((wxString const &)*arg2); | |
22616 | ||
22617 | wxPyEndAllowThreads(__tstate); | |
22618 | if (PyErr_Occurred()) SWIG_fail; | |
22619 | } | |
22620 | Py_INCREF(Py_None); resultobj = Py_None; | |
22621 | { | |
22622 | if (temp2) | |
22623 | delete arg2; | |
22624 | } | |
22625 | return resultobj; | |
22626 | fail: | |
22627 | { | |
22628 | if (temp2) | |
22629 | delete arg2; | |
22630 | } | |
22631 | return NULL; | |
22632 | } | |
22633 | ||
22634 | ||
22635 | static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22636 | PyObject *obj; | |
22637 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22638 | SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj); | |
22639 | Py_INCREF(obj); | |
22640 | return Py_BuildValue((char *)""); | |
22641 | } | |
22642 | static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22643 | PyObject *resultobj; | |
22644 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
22645 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22646 | wxPyTextDataObject *result; | |
423f194a | 22647 | bool temp1 = False ; |
d14a1e28 RD |
22648 | PyObject * obj0 = 0 ; |
22649 | char *kwnames[] = { | |
22650 | (char *) "text", NULL | |
22651 | }; | |
22652 | ||
22653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail; | |
22654 | if (obj0) { | |
22655 | { | |
22656 | arg1 = wxString_in_helper(obj0); | |
22657 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 22658 | temp1 = True; |
d14a1e28 RD |
22659 | } |
22660 | } | |
22661 | { | |
22662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22663 | result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1); | |
22664 | ||
22665 | wxPyEndAllowThreads(__tstate); | |
22666 | if (PyErr_Occurred()) SWIG_fail; | |
22667 | } | |
22668 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDataObject, 1); | |
22669 | { | |
22670 | if (temp1) | |
22671 | delete arg1; | |
22672 | } | |
22673 | return resultobj; | |
22674 | fail: | |
22675 | { | |
22676 | if (temp1) | |
22677 | delete arg1; | |
22678 | } | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
22683 | static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22684 | PyObject *resultobj; | |
22685 | wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ; | |
22686 | PyObject *arg2 = (PyObject *) 0 ; | |
22687 | PyObject *arg3 = (PyObject *) 0 ; | |
22688 | PyObject * obj0 = 0 ; | |
22689 | PyObject * obj1 = 0 ; | |
22690 | PyObject * obj2 = 0 ; | |
22691 | char *kwnames[] = { | |
22692 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22693 | }; | |
22694 | ||
22695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22696 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22697 | arg2 = obj1; | |
22698 | arg3 = obj2; | |
22699 | { | |
22700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22701 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22702 | ||
22703 | wxPyEndAllowThreads(__tstate); | |
22704 | if (PyErr_Occurred()) SWIG_fail; | |
22705 | } | |
22706 | Py_INCREF(Py_None); resultobj = Py_None; | |
22707 | return resultobj; | |
22708 | fail: | |
22709 | return NULL; | |
22710 | } | |
22711 | ||
22712 | ||
22713 | static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) { | |
22714 | PyObject *obj; | |
22715 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22716 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj); | |
22717 | Py_INCREF(obj); | |
22718 | return Py_BuildValue((char *)""); | |
22719 | } | |
22720 | static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22721 | PyObject *resultobj; | |
22722 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22723 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22724 | wxBitmapDataObject *result; | |
22725 | PyObject * obj0 = 0 ; | |
22726 | char *kwnames[] = { | |
22727 | (char *) "bitmap", NULL | |
22728 | }; | |
22729 | ||
22730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail; | |
22731 | if (obj0) { | |
22732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22733 | if (arg1 == NULL) { | |
22734 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22735 | } | |
22736 | } | |
22737 | { | |
22738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22739 | result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1); | |
22740 | ||
22741 | wxPyEndAllowThreads(__tstate); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
22744 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmapDataObject, 1); | |
22745 | return resultobj; | |
22746 | fail: | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
22751 | static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22752 | PyObject *resultobj; | |
22753 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22754 | wxBitmap result; | |
22755 | PyObject * obj0 = 0 ; | |
22756 | char *kwnames[] = { | |
22757 | (char *) "self", NULL | |
22758 | }; | |
22759 | ||
22760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail; | |
22761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22762 | { | |
22763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22764 | result = ((wxBitmapDataObject const *)arg1)->GetBitmap(); | |
22765 | ||
22766 | wxPyEndAllowThreads(__tstate); | |
22767 | if (PyErr_Occurred()) SWIG_fail; | |
22768 | } | |
22769 | { | |
22770 | wxBitmap * resultptr; | |
22771 | resultptr = new wxBitmap((wxBitmap &) result); | |
22772 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
22773 | } | |
22774 | return resultobj; | |
22775 | fail: | |
22776 | return NULL; | |
22777 | } | |
22778 | ||
22779 | ||
22780 | static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22781 | PyObject *resultobj; | |
22782 | wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ; | |
22783 | wxBitmap *arg2 = 0 ; | |
22784 | PyObject * obj0 = 0 ; | |
22785 | PyObject * obj1 = 0 ; | |
22786 | char *kwnames[] = { | |
22787 | (char *) "self",(char *) "bitmap", NULL | |
22788 | }; | |
22789 | ||
22790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
22791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22792 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22793 | if (arg2 == NULL) { | |
22794 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22795 | } | |
22796 | { | |
22797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22798 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
22799 | ||
22800 | wxPyEndAllowThreads(__tstate); | |
22801 | if (PyErr_Occurred()) SWIG_fail; | |
22802 | } | |
22803 | Py_INCREF(Py_None); resultobj = Py_None; | |
22804 | return resultobj; | |
22805 | fail: | |
22806 | return NULL; | |
22807 | } | |
22808 | ||
22809 | ||
22810 | static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22811 | PyObject *obj; | |
22812 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22813 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj); | |
22814 | Py_INCREF(obj); | |
22815 | return Py_BuildValue((char *)""); | |
22816 | } | |
22817 | static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22818 | PyObject *resultobj; | |
22819 | wxBitmap const &arg1_defvalue = wxNullBitmap ; | |
22820 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
22821 | wxPyBitmapDataObject *result; | |
22822 | PyObject * obj0 = 0 ; | |
22823 | char *kwnames[] = { | |
22824 | (char *) "bitmap", NULL | |
22825 | }; | |
22826 | ||
22827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail; | |
22828 | if (obj0) { | |
22829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22830 | if (arg1 == NULL) { | |
22831 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22832 | } | |
22833 | } | |
22834 | { | |
22835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22836 | result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1); | |
22837 | ||
22838 | wxPyEndAllowThreads(__tstate); | |
22839 | if (PyErr_Occurred()) SWIG_fail; | |
22840 | } | |
22841 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyBitmapDataObject, 1); | |
22842 | return resultobj; | |
22843 | fail: | |
22844 | return NULL; | |
22845 | } | |
22846 | ||
22847 | ||
22848 | static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22849 | PyObject *resultobj; | |
22850 | wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ; | |
22851 | PyObject *arg2 = (PyObject *) 0 ; | |
22852 | PyObject *arg3 = (PyObject *) 0 ; | |
22853 | PyObject * obj0 = 0 ; | |
22854 | PyObject * obj1 = 0 ; | |
22855 | PyObject * obj2 = 0 ; | |
22856 | char *kwnames[] = { | |
22857 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22858 | }; | |
22859 | ||
22860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22861 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyBitmapDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22862 | arg2 = obj1; | |
22863 | arg3 = obj2; | |
22864 | { | |
22865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22866 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22867 | ||
22868 | wxPyEndAllowThreads(__tstate); | |
22869 | if (PyErr_Occurred()) SWIG_fail; | |
22870 | } | |
22871 | Py_INCREF(Py_None); resultobj = Py_None; | |
22872 | return resultobj; | |
22873 | fail: | |
22874 | return NULL; | |
22875 | } | |
22876 | ||
22877 | ||
22878 | static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) { | |
22879 | PyObject *obj; | |
22880 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22881 | SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj); | |
22882 | Py_INCREF(obj); | |
22883 | return Py_BuildValue((char *)""); | |
22884 | } | |
22885 | static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22886 | PyObject *resultobj; | |
22887 | wxFileDataObject *result; | |
22888 | char *kwnames[] = { | |
22889 | NULL | |
22890 | }; | |
22891 | ||
22892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail; | |
22893 | { | |
22894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22895 | result = (wxFileDataObject *)new wxFileDataObject(); | |
22896 | ||
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDataObject, 1); | |
22901 | return resultobj; | |
22902 | fail: | |
22903 | return NULL; | |
22904 | } | |
22905 | ||
22906 | ||
22907 | static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22908 | PyObject *resultobj; | |
22909 | wxFileDataObject *arg1 = (wxFileDataObject *) 0 ; | |
22910 | wxArrayString *result; | |
22911 | PyObject * obj0 = 0 ; | |
22912 | char *kwnames[] = { | |
22913 | (char *) "self", NULL | |
22914 | }; | |
22915 | ||
22916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail; | |
22917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22918 | { | |
22919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22920 | { | |
22921 | wxArrayString const &_result_ref = (arg1)->GetFilenames(); | |
22922 | result = (wxArrayString *) &_result_ref; | |
22923 | } | |
22924 | ||
22925 | wxPyEndAllowThreads(__tstate); | |
22926 | if (PyErr_Occurred()) SWIG_fail; | |
22927 | } | |
22928 | { | |
22929 | resultobj = wxArrayString2PyList_helper(*result); | |
22930 | } | |
22931 | return resultobj; | |
22932 | fail: | |
22933 | return NULL; | |
22934 | } | |
22935 | ||
22936 | ||
22937 | static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) { | |
22938 | PyObject *obj; | |
22939 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22940 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj); | |
22941 | Py_INCREF(obj); | |
22942 | return Py_BuildValue((char *)""); | |
22943 | } | |
22944 | static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22945 | PyObject *resultobj; | |
22946 | wxDataFormat const &arg1_defvalue = wxFormatInvalid ; | |
22947 | wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ; | |
22948 | wxCustomDataObject *result; | |
22949 | PyObject * obj0 = 0 ; | |
22950 | char *kwnames[] = { | |
22951 | (char *) "format", NULL | |
22952 | }; | |
22953 | ||
22954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail; | |
22955 | if (obj0) { | |
22956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22957 | if (arg1 == NULL) { | |
22958 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22959 | } | |
22960 | } | |
22961 | { | |
22962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22963 | result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1); | |
22964 | ||
22965 | wxPyEndAllowThreads(__tstate); | |
22966 | if (PyErr_Occurred()) SWIG_fail; | |
22967 | } | |
22968 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCustomDataObject, 1); | |
22969 | return resultobj; | |
22970 | fail: | |
22971 | return NULL; | |
22972 | } | |
22973 | ||
22974 | ||
22975 | static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22976 | PyObject *resultobj; | |
22977 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
22978 | PyObject *arg2 = (PyObject *) 0 ; | |
22979 | PyObject * obj0 = 0 ; | |
22980 | PyObject * obj1 = 0 ; | |
22981 | char *kwnames[] = { | |
22982 | (char *) "self",(char *) "data", NULL | |
22983 | }; | |
22984 | ||
22985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail; | |
22986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22987 | arg2 = obj1; | |
22988 | { | |
22989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22990 | wxCustomDataObject_TakeData(arg1,arg2); | |
22991 | ||
22992 | wxPyEndAllowThreads(__tstate); | |
22993 | if (PyErr_Occurred()) SWIG_fail; | |
22994 | } | |
22995 | Py_INCREF(Py_None); resultobj = Py_None; | |
22996 | return resultobj; | |
22997 | fail: | |
22998 | return NULL; | |
22999 | } | |
23000 | ||
23001 | ||
23002 | static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23003 | PyObject *resultobj; | |
23004 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23005 | PyObject *arg2 = (PyObject *) 0 ; | |
23006 | bool result; | |
23007 | PyObject * obj0 = 0 ; | |
23008 | PyObject * obj1 = 0 ; | |
23009 | char *kwnames[] = { | |
23010 | (char *) "self",(char *) "data", NULL | |
23011 | }; | |
23012 | ||
23013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23015 | arg2 = obj1; | |
23016 | { | |
23017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23018 | result = (bool)wxCustomDataObject_SetData(arg1,arg2); | |
23019 | ||
23020 | wxPyEndAllowThreads(__tstate); | |
23021 | if (PyErr_Occurred()) SWIG_fail; | |
23022 | } | |
23023 | resultobj = PyInt_FromLong((long)result); | |
23024 | return resultobj; | |
23025 | fail: | |
23026 | return NULL; | |
23027 | } | |
23028 | ||
23029 | ||
23030 | static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23031 | PyObject *resultobj; | |
23032 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23033 | size_t result; | |
23034 | PyObject * obj0 = 0 ; | |
23035 | char *kwnames[] = { | |
23036 | (char *) "self", NULL | |
23037 | }; | |
23038 | ||
23039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail; | |
23040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23041 | { | |
23042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23043 | result = (size_t)(arg1)->GetSize(); | |
23044 | ||
23045 | wxPyEndAllowThreads(__tstate); | |
23046 | if (PyErr_Occurred()) SWIG_fail; | |
23047 | } | |
23048 | resultobj = PyInt_FromLong((long)result); | |
23049 | return resultobj; | |
23050 | fail: | |
23051 | return NULL; | |
23052 | } | |
23053 | ||
23054 | ||
23055 | static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23056 | PyObject *resultobj; | |
23057 | wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ; | |
23058 | PyObject *result; | |
23059 | PyObject * obj0 = 0 ; | |
23060 | char *kwnames[] = { | |
23061 | (char *) "self", NULL | |
23062 | }; | |
23063 | ||
23064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail; | |
23065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCustomDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23066 | { | |
23067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23068 | result = (PyObject *)wxCustomDataObject_GetData(arg1); | |
23069 | ||
23070 | wxPyEndAllowThreads(__tstate); | |
23071 | if (PyErr_Occurred()) SWIG_fail; | |
23072 | } | |
23073 | resultobj = result; | |
23074 | return resultobj; | |
23075 | fail: | |
23076 | return NULL; | |
23077 | } | |
23078 | ||
23079 | ||
23080 | static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) { | |
23081 | PyObject *obj; | |
23082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23083 | SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj); | |
23084 | Py_INCREF(obj); | |
23085 | return Py_BuildValue((char *)""); | |
23086 | } | |
23087 | static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23088 | PyObject *resultobj; | |
23089 | wxURLDataObject *result; | |
23090 | char *kwnames[] = { | |
23091 | NULL | |
23092 | }; | |
23093 | ||
23094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail; | |
23095 | { | |
23096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23097 | result = (wxURLDataObject *)new wxURLDataObject(); | |
23098 | ||
23099 | wxPyEndAllowThreads(__tstate); | |
23100 | if (PyErr_Occurred()) SWIG_fail; | |
23101 | } | |
23102 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxURLDataObject, 1); | |
23103 | return resultobj; | |
23104 | fail: | |
23105 | return NULL; | |
23106 | } | |
23107 | ||
23108 | ||
23109 | static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23110 | PyObject *resultobj; | |
23111 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
23112 | wxString result; | |
23113 | PyObject * obj0 = 0 ; | |
23114 | char *kwnames[] = { | |
23115 | (char *) "self", NULL | |
23116 | }; | |
23117 | ||
23118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail; | |
23119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23120 | { | |
23121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23122 | result = (arg1)->GetURL(); | |
23123 | ||
23124 | wxPyEndAllowThreads(__tstate); | |
23125 | if (PyErr_Occurred()) SWIG_fail; | |
23126 | } | |
23127 | { | |
23128 | #if wxUSE_UNICODE | |
23129 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23130 | #else | |
23131 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23132 | #endif | |
23133 | } | |
23134 | return resultobj; | |
23135 | fail: | |
23136 | return NULL; | |
23137 | } | |
23138 | ||
23139 | ||
23140 | static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23141 | PyObject *resultobj; | |
23142 | wxURLDataObject *arg1 = (wxURLDataObject *) 0 ; | |
23143 | wxString *arg2 = 0 ; | |
423f194a | 23144 | bool temp2 = False ; |
d14a1e28 RD |
23145 | PyObject * obj0 = 0 ; |
23146 | PyObject * obj1 = 0 ; | |
23147 | char *kwnames[] = { | |
23148 | (char *) "self",(char *) "url", NULL | |
23149 | }; | |
23150 | ||
23151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail; | |
23152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxURLDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23153 | { | |
23154 | arg2 = wxString_in_helper(obj1); | |
23155 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23156 | temp2 = True; |
d14a1e28 RD |
23157 | } |
23158 | { | |
23159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23160 | (arg1)->SetURL((wxString const &)*arg2); | |
23161 | ||
23162 | wxPyEndAllowThreads(__tstate); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | } | |
23165 | Py_INCREF(Py_None); resultobj = Py_None; | |
23166 | { | |
23167 | if (temp2) | |
23168 | delete arg2; | |
23169 | } | |
23170 | return resultobj; | |
23171 | fail: | |
23172 | { | |
23173 | if (temp2) | |
23174 | delete arg2; | |
23175 | } | |
23176 | return NULL; | |
23177 | } | |
23178 | ||
23179 | ||
23180 | static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) { | |
23181 | PyObject *obj; | |
23182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23183 | SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj); | |
23184 | Py_INCREF(obj); | |
23185 | return Py_BuildValue((char *)""); | |
23186 | } | |
23187 | static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23188 | PyObject *resultobj; | |
23189 | wxMetafileDataObject *result; | |
23190 | char *kwnames[] = { | |
23191 | NULL | |
23192 | }; | |
23193 | ||
23194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail; | |
23195 | { | |
23196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23197 | result = (wxMetafileDataObject *)new wxMetafileDataObject(); | |
23198 | ||
23199 | wxPyEndAllowThreads(__tstate); | |
23200 | if (PyErr_Occurred()) SWIG_fail; | |
23201 | } | |
23202 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetafileDataObject, 1); | |
23203 | return resultobj; | |
23204 | fail: | |
23205 | return NULL; | |
23206 | } | |
23207 | ||
23208 | ||
23209 | static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23210 | PyObject *resultobj; | |
23211 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
23212 | wxMetafile *arg2 = 0 ; | |
23213 | PyObject * obj0 = 0 ; | |
23214 | PyObject * obj1 = 0 ; | |
23215 | char *kwnames[] = { | |
23216 | (char *) "self",(char *) "metafile", NULL | |
23217 | }; | |
23218 | ||
23219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail; | |
23220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23221 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMetafile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23222 | if (arg2 == NULL) { | |
23223 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23224 | } | |
23225 | { | |
23226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23227 | (arg1)->SetMetafile((wxMetafile const &)*arg2); | |
23228 | ||
23229 | wxPyEndAllowThreads(__tstate); | |
23230 | if (PyErr_Occurred()) SWIG_fail; | |
23231 | } | |
23232 | Py_INCREF(Py_None); resultobj = Py_None; | |
23233 | return resultobj; | |
23234 | fail: | |
23235 | return NULL; | |
23236 | } | |
23237 | ||
23238 | ||
23239 | static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23240 | PyObject *resultobj; | |
23241 | wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ; | |
23242 | wxMetafile result; | |
23243 | PyObject * obj0 = 0 ; | |
23244 | char *kwnames[] = { | |
23245 | (char *) "self", NULL | |
23246 | }; | |
23247 | ||
23248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail; | |
23249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetafileDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23250 | { | |
23251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23252 | result = ((wxMetafileDataObject const *)arg1)->GetMetafile(); | |
23253 | ||
23254 | wxPyEndAllowThreads(__tstate); | |
23255 | if (PyErr_Occurred()) SWIG_fail; | |
23256 | } | |
23257 | { | |
23258 | wxMetafile * resultptr; | |
23259 | resultptr = new wxMetafile((wxMetafile &) result); | |
23260 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxMetafile, 1); | |
23261 | } | |
23262 | return resultobj; | |
23263 | fail: | |
23264 | return NULL; | |
23265 | } | |
23266 | ||
23267 | ||
23268 | static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) { | |
23269 | PyObject *obj; | |
23270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23271 | SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj); | |
23272 | Py_INCREF(obj); | |
23273 | return Py_BuildValue((char *)""); | |
23274 | } | |
23275 | static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23276 | PyObject *resultobj; | |
23277 | int arg1 ; | |
23278 | bool result; | |
23279 | char *kwnames[] = { | |
23280 | (char *) "res", NULL | |
23281 | }; | |
23282 | ||
23283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"i:IsDragResultOk",kwnames,&arg1)) goto fail; | |
23284 | { | |
23285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23286 | result = (bool)wxIsDragResultOk((wxDragResult )arg1); | |
23287 | ||
23288 | wxPyEndAllowThreads(__tstate); | |
23289 | if (PyErr_Occurred()) SWIG_fail; | |
23290 | } | |
23291 | resultobj = PyInt_FromLong((long)result); | |
23292 | return resultobj; | |
23293 | fail: | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
23298 | static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23299 | PyObject *resultobj; | |
23300 | wxWindow *arg1 = (wxWindow *) NULL ; | |
23301 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
23302 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
23303 | wxCursor const &arg3_defvalue = wxNullCursor ; | |
23304 | wxCursor *arg3 = (wxCursor *) &arg3_defvalue ; | |
23305 | wxCursor const &arg4_defvalue = wxNullCursor ; | |
23306 | wxCursor *arg4 = (wxCursor *) &arg4_defvalue ; | |
23307 | wxPyDropSource *result; | |
23308 | PyObject * obj0 = 0 ; | |
23309 | PyObject * obj1 = 0 ; | |
23310 | PyObject * obj2 = 0 ; | |
23311 | PyObject * obj3 = 0 ; | |
23312 | char *kwnames[] = { | |
23313 | (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL | |
23314 | }; | |
23315 | ||
23316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23317 | if (obj0) { | |
23318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23319 | } | |
23320 | if (obj1) { | |
23321 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23322 | if (arg2 == NULL) { | |
23323 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23324 | } | |
23325 | } | |
23326 | if (obj2) { | |
23327 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23328 | if (arg3 == NULL) { | |
23329 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23330 | } | |
23331 | } | |
23332 | if (obj3) { | |
23333 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23334 | if (arg4 == NULL) { | |
23335 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23336 | } | |
23337 | } | |
23338 | { | |
23339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23340 | result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4); | |
23341 | ||
23342 | wxPyEndAllowThreads(__tstate); | |
23343 | if (PyErr_Occurred()) SWIG_fail; | |
23344 | } | |
23345 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropSource, 1); | |
23346 | return resultobj; | |
23347 | fail: | |
23348 | return NULL; | |
23349 | } | |
23350 | ||
23351 | ||
23352 | static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23353 | PyObject *resultobj; | |
23354 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23355 | PyObject *arg2 = (PyObject *) 0 ; | |
23356 | PyObject *arg3 = (PyObject *) 0 ; | |
23357 | int arg4 ; | |
23358 | PyObject * obj0 = 0 ; | |
23359 | PyObject * obj1 = 0 ; | |
23360 | PyObject * obj2 = 0 ; | |
23361 | char *kwnames[] = { | |
23362 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
23363 | }; | |
23364 | ||
23365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOi:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail; | |
23366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23367 | arg2 = obj1; | |
23368 | arg3 = obj2; | |
23369 | { | |
23370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23371 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
23372 | ||
23373 | wxPyEndAllowThreads(__tstate); | |
23374 | if (PyErr_Occurred()) SWIG_fail; | |
23375 | } | |
23376 | Py_INCREF(Py_None); resultobj = Py_None; | |
23377 | return resultobj; | |
23378 | fail: | |
23379 | return NULL; | |
23380 | } | |
23381 | ||
23382 | ||
23383 | static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23384 | PyObject *resultobj; | |
23385 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23386 | PyObject * obj0 = 0 ; | |
23387 | char *kwnames[] = { | |
23388 | (char *) "self", NULL | |
23389 | }; | |
23390 | ||
23391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail; | |
23392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23393 | { | |
23394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23395 | delete arg1; | |
23396 | ||
23397 | wxPyEndAllowThreads(__tstate); | |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | } | |
23400 | Py_INCREF(Py_None); resultobj = Py_None; | |
23401 | return resultobj; | |
23402 | fail: | |
23403 | return NULL; | |
23404 | } | |
23405 | ||
23406 | ||
23407 | static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23408 | PyObject *resultobj; | |
23409 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23410 | wxDataObject *arg2 = 0 ; | |
23411 | PyObject * obj0 = 0 ; | |
23412 | PyObject * obj1 = 0 ; | |
23413 | char *kwnames[] = { | |
23414 | (char *) "self",(char *) "data", NULL | |
23415 | }; | |
23416 | ||
23417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23419 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23420 | if (arg2 == NULL) { | |
23421 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23422 | } | |
23423 | { | |
23424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23425 | (arg1)->SetData(*arg2); | |
23426 | ||
23427 | wxPyEndAllowThreads(__tstate); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
23429 | } | |
23430 | Py_INCREF(Py_None); resultobj = Py_None; | |
23431 | return resultobj; | |
23432 | fail: | |
23433 | return NULL; | |
23434 | } | |
23435 | ||
23436 | ||
23437 | static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23438 | PyObject *resultobj; | |
23439 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23440 | wxDataObject *result; | |
23441 | PyObject * obj0 = 0 ; | |
23442 | char *kwnames[] = { | |
23443 | (char *) "self", NULL | |
23444 | }; | |
23445 | ||
23446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail; | |
23447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23448 | { | |
23449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23450 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23451 | ||
23452 | wxPyEndAllowThreads(__tstate); | |
23453 | if (PyErr_Occurred()) SWIG_fail; | |
23454 | } | |
23455 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23456 | return resultobj; | |
23457 | fail: | |
23458 | return NULL; | |
23459 | } | |
23460 | ||
23461 | ||
23462 | static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23463 | PyObject *resultobj; | |
23464 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23465 | int arg2 ; | |
23466 | wxCursor *arg3 = 0 ; | |
23467 | PyObject * obj0 = 0 ; | |
23468 | PyObject * obj2 = 0 ; | |
23469 | char *kwnames[] = { | |
23470 | (char *) "self",(char *) "res",(char *) "cursor", NULL | |
23471 | }; | |
23472 | ||
23473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:DropSource_SetCursor",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
23474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23475 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23476 | if (arg3 == NULL) { | |
23477 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23478 | } | |
23479 | { | |
23480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23481 | (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3); | |
23482 | ||
23483 | wxPyEndAllowThreads(__tstate); | |
23484 | if (PyErr_Occurred()) SWIG_fail; | |
23485 | } | |
23486 | Py_INCREF(Py_None); resultobj = Py_None; | |
23487 | return resultobj; | |
23488 | fail: | |
23489 | return NULL; | |
23490 | } | |
23491 | ||
23492 | ||
23493 | static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23494 | PyObject *resultobj; | |
23495 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23496 | int arg2 = (int) wxDrag_CopyOnly ; | |
23497 | int result; | |
23498 | PyObject * obj0 = 0 ; | |
23499 | char *kwnames[] = { | |
23500 | (char *) "self",(char *) "flags", NULL | |
23501 | }; | |
23502 | ||
23503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:DropSource_DoDragDrop",kwnames,&obj0,&arg2)) goto fail; | |
23504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23505 | { | |
23506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23507 | result = (int)(arg1)->DoDragDrop(arg2); | |
23508 | ||
23509 | wxPyEndAllowThreads(__tstate); | |
23510 | if (PyErr_Occurred()) SWIG_fail; | |
23511 | } | |
23512 | resultobj = PyInt_FromLong((long)result); | |
23513 | return resultobj; | |
23514 | fail: | |
23515 | return NULL; | |
23516 | } | |
23517 | ||
23518 | ||
23519 | static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23520 | PyObject *resultobj; | |
23521 | wxPyDropSource *arg1 = (wxPyDropSource *) 0 ; | |
23522 | int arg2 ; | |
23523 | bool result; | |
23524 | PyObject * obj0 = 0 ; | |
23525 | char *kwnames[] = { | |
23526 | (char *) "self",(char *) "effect", NULL | |
23527 | }; | |
23528 | ||
23529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:DropSource_base_GiveFeedback",kwnames,&obj0,&arg2)) goto fail; | |
23530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropSource,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23531 | { | |
23532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23533 | result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2); | |
23534 | ||
23535 | wxPyEndAllowThreads(__tstate); | |
23536 | if (PyErr_Occurred()) SWIG_fail; | |
23537 | } | |
23538 | resultobj = PyInt_FromLong((long)result); | |
23539 | return resultobj; | |
23540 | fail: | |
23541 | return NULL; | |
23542 | } | |
23543 | ||
23544 | ||
23545 | static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) { | |
23546 | PyObject *obj; | |
23547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23548 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj); | |
23549 | Py_INCREF(obj); | |
23550 | return Py_BuildValue((char *)""); | |
23551 | } | |
cbd72d4f | 23552 | static PyObject *_wrap_new_PyDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23553 | PyObject *resultobj; |
23554 | wxDataObject *arg1 = (wxDataObject *) NULL ; | |
23555 | wxPyDropTarget *result; | |
23556 | PyObject * obj0 = 0 ; | |
23557 | char *kwnames[] = { | |
23558 | (char *) "dataObject", NULL | |
23559 | }; | |
23560 | ||
cbd72d4f | 23561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDropTarget",kwnames,&obj0)) goto fail; |
d14a1e28 RD |
23562 | if (obj0) { |
23563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23564 | } | |
23565 | { | |
23566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23567 | result = (wxPyDropTarget *)new wxPyDropTarget(arg1); | |
23568 | ||
23569 | wxPyEndAllowThreads(__tstate); | |
23570 | if (PyErr_Occurred()) SWIG_fail; | |
23571 | } | |
23572 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 1); | |
23573 | return resultobj; | |
23574 | fail: | |
23575 | return NULL; | |
23576 | } | |
23577 | ||
23578 | ||
23579 | static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23580 | PyObject *resultobj; | |
23581 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23582 | PyObject *arg2 = (PyObject *) 0 ; | |
23583 | PyObject *arg3 = (PyObject *) 0 ; | |
23584 | PyObject * obj0 = 0 ; | |
23585 | PyObject * obj1 = 0 ; | |
23586 | PyObject * obj2 = 0 ; | |
23587 | char *kwnames[] = { | |
23588 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23593 | arg2 = obj1; | |
23594 | arg3 = obj2; | |
23595 | { | |
23596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23597 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23598 | ||
23599 | wxPyEndAllowThreads(__tstate); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | } | |
23602 | Py_INCREF(Py_None); resultobj = Py_None; | |
23603 | return resultobj; | |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
23609 | static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23610 | PyObject *resultobj; | |
23611 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23612 | PyObject * obj0 = 0 ; | |
23613 | char *kwnames[] = { | |
23614 | (char *) "self", NULL | |
23615 | }; | |
23616 | ||
23617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail; | |
23618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23619 | { | |
23620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23621 | delete arg1; | |
23622 | ||
23623 | wxPyEndAllowThreads(__tstate); | |
23624 | if (PyErr_Occurred()) SWIG_fail; | |
23625 | } | |
23626 | Py_INCREF(Py_None); resultobj = Py_None; | |
23627 | return resultobj; | |
23628 | fail: | |
23629 | return NULL; | |
23630 | } | |
23631 | ||
23632 | ||
23633 | static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23634 | PyObject *resultobj; | |
23635 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23636 | wxDataObject *result; | |
23637 | PyObject * obj0 = 0 ; | |
23638 | char *kwnames[] = { | |
23639 | (char *) "self", NULL | |
23640 | }; | |
23641 | ||
23642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail; | |
23643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23644 | { | |
23645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23646 | result = (wxDataObject *)(arg1)->GetDataObject(); | |
23647 | ||
23648 | wxPyEndAllowThreads(__tstate); | |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
23650 | } | |
23651 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDataObject, 0); | |
23652 | return resultobj; | |
23653 | fail: | |
23654 | return NULL; | |
23655 | } | |
23656 | ||
23657 | ||
23658 | static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23659 | PyObject *resultobj; | |
23660 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23661 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
23662 | PyObject * obj0 = 0 ; | |
23663 | PyObject * obj1 = 0 ; | |
23664 | char *kwnames[] = { | |
23665 | (char *) "self",(char *) "dataObject", NULL | |
23666 | }; | |
23667 | ||
23668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail; | |
23669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23670 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23671 | { | |
23672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23673 | (arg1)->SetDataObject(arg2); | |
23674 | ||
23675 | wxPyEndAllowThreads(__tstate); | |
23676 | if (PyErr_Occurred()) SWIG_fail; | |
23677 | } | |
23678 | Py_INCREF(Py_None); resultobj = Py_None; | |
23679 | return resultobj; | |
23680 | fail: | |
23681 | return NULL; | |
23682 | } | |
23683 | ||
23684 | ||
23685 | static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23686 | PyObject *resultobj; | |
23687 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23688 | int arg2 ; |
23689 | int arg3 ; | |
d14a1e28 RD |
23690 | int arg4 ; |
23691 | int result; | |
23692 | PyObject * obj0 = 0 ; | |
23693 | char *kwnames[] = { | |
23694 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23695 | }; | |
23696 | ||
23697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23699 | { | |
23700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23701 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23702 | ||
23703 | wxPyEndAllowThreads(__tstate); | |
23704 | if (PyErr_Occurred()) SWIG_fail; | |
23705 | } | |
23706 | resultobj = PyInt_FromLong((long)result); | |
23707 | return resultobj; | |
23708 | fail: | |
23709 | return NULL; | |
23710 | } | |
23711 | ||
23712 | ||
23713 | static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23714 | PyObject *resultobj; | |
23715 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23716 | int arg2 ; |
23717 | int arg3 ; | |
d14a1e28 RD |
23718 | int arg4 ; |
23719 | int result; | |
23720 | PyObject * obj0 = 0 ; | |
23721 | char *kwnames[] = { | |
23722 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23723 | }; | |
23724 | ||
23725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:DropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23727 | { | |
23728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23729 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23730 | ||
23731 | wxPyEndAllowThreads(__tstate); | |
23732 | if (PyErr_Occurred()) SWIG_fail; | |
23733 | } | |
23734 | resultobj = PyInt_FromLong((long)result); | |
23735 | return resultobj; | |
23736 | fail: | |
23737 | return NULL; | |
23738 | } | |
23739 | ||
23740 | ||
23741 | static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23742 | PyObject *resultobj; | |
23743 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23744 | PyObject * obj0 = 0 ; | |
23745 | char *kwnames[] = { | |
23746 | (char *) "self", NULL | |
23747 | }; | |
23748 | ||
23749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23751 | { | |
23752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23753 | (arg1)->base_OnLeave(); | |
23754 | ||
23755 | wxPyEndAllowThreads(__tstate); | |
23756 | if (PyErr_Occurred()) SWIG_fail; | |
23757 | } | |
23758 | Py_INCREF(Py_None); resultobj = Py_None; | |
23759 | return resultobj; | |
23760 | fail: | |
23761 | return NULL; | |
23762 | } | |
23763 | ||
23764 | ||
23765 | static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23766 | PyObject *resultobj; | |
23767 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
423f194a RD |
23768 | int arg2 ; |
23769 | int arg3 ; | |
d14a1e28 RD |
23770 | bool result; |
23771 | PyObject * obj0 = 0 ; | |
23772 | char *kwnames[] = { | |
23773 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23774 | }; | |
23775 | ||
23776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:DropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23778 | { | |
23779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23780 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23781 | ||
23782 | wxPyEndAllowThreads(__tstate); | |
23783 | if (PyErr_Occurred()) SWIG_fail; | |
23784 | } | |
23785 | resultobj = PyInt_FromLong((long)result); | |
23786 | return resultobj; | |
23787 | fail: | |
23788 | return NULL; | |
23789 | } | |
23790 | ||
23791 | ||
23792 | static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23793 | PyObject *resultobj; | |
23794 | wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ; | |
23795 | bool result; | |
23796 | PyObject * obj0 = 0 ; | |
23797 | char *kwnames[] = { | |
23798 | (char *) "self", NULL | |
23799 | }; | |
23800 | ||
23801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail; | |
23802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23803 | { | |
23804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23805 | result = (bool)(arg1)->GetData(); | |
23806 | ||
23807 | wxPyEndAllowThreads(__tstate); | |
23808 | if (PyErr_Occurred()) SWIG_fail; | |
23809 | } | |
23810 | resultobj = PyInt_FromLong((long)result); | |
23811 | return resultobj; | |
23812 | fail: | |
23813 | return NULL; | |
23814 | } | |
23815 | ||
23816 | ||
23817 | static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) { | |
23818 | PyObject *obj; | |
23819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23820 | SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj); | |
23821 | Py_INCREF(obj); | |
23822 | return Py_BuildValue((char *)""); | |
23823 | } | |
23824 | static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23825 | PyObject *resultobj; | |
23826 | wxPyTextDropTarget *result; | |
23827 | char *kwnames[] = { | |
23828 | NULL | |
23829 | }; | |
23830 | ||
23831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail; | |
23832 | { | |
23833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23834 | result = (wxPyTextDropTarget *)new wxPyTextDropTarget(); | |
23835 | ||
23836 | wxPyEndAllowThreads(__tstate); | |
23837 | if (PyErr_Occurred()) SWIG_fail; | |
23838 | } | |
23839 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTextDropTarget, 1); | |
23840 | return resultobj; | |
23841 | fail: | |
23842 | return NULL; | |
23843 | } | |
23844 | ||
23845 | ||
23846 | static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23847 | PyObject *resultobj; | |
23848 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23849 | PyObject *arg2 = (PyObject *) 0 ; | |
23850 | PyObject *arg3 = (PyObject *) 0 ; | |
23851 | PyObject * obj0 = 0 ; | |
23852 | PyObject * obj1 = 0 ; | |
23853 | PyObject * obj2 = 0 ; | |
23854 | char *kwnames[] = { | |
23855 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
23856 | }; | |
23857 | ||
23858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23860 | arg2 = obj1; | |
23861 | arg3 = obj2; | |
23862 | { | |
23863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23864 | (arg1)->_setCallbackInfo(arg2,arg3); | |
23865 | ||
23866 | wxPyEndAllowThreads(__tstate); | |
23867 | if (PyErr_Occurred()) SWIG_fail; | |
23868 | } | |
23869 | Py_INCREF(Py_None); resultobj = Py_None; | |
23870 | return resultobj; | |
23871 | fail: | |
23872 | return NULL; | |
23873 | } | |
23874 | ||
23875 | ||
23876 | static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23877 | PyObject *resultobj; | |
23878 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23879 | int arg2 ; |
23880 | int arg3 ; | |
d14a1e28 RD |
23881 | int arg4 ; |
23882 | int result; | |
23883 | PyObject * obj0 = 0 ; | |
23884 | char *kwnames[] = { | |
23885 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23886 | }; | |
23887 | ||
23888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23890 | { | |
23891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23892 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
23893 | ||
23894 | wxPyEndAllowThreads(__tstate); | |
23895 | if (PyErr_Occurred()) SWIG_fail; | |
23896 | } | |
23897 | resultobj = PyInt_FromLong((long)result); | |
23898 | return resultobj; | |
23899 | fail: | |
23900 | return NULL; | |
23901 | } | |
23902 | ||
23903 | ||
23904 | static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23905 | PyObject *resultobj; | |
23906 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23907 | int arg2 ; |
23908 | int arg3 ; | |
d14a1e28 RD |
23909 | int arg4 ; |
23910 | int result; | |
23911 | PyObject * obj0 = 0 ; | |
23912 | char *kwnames[] = { | |
23913 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23914 | }; | |
23915 | ||
23916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23918 | { | |
23919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23920 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
23921 | ||
23922 | wxPyEndAllowThreads(__tstate); | |
23923 | if (PyErr_Occurred()) SWIG_fail; | |
23924 | } | |
23925 | resultobj = PyInt_FromLong((long)result); | |
23926 | return resultobj; | |
23927 | fail: | |
23928 | return NULL; | |
23929 | } | |
23930 | ||
23931 | ||
23932 | static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23933 | PyObject *resultobj; | |
23934 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
23935 | PyObject * obj0 = 0 ; | |
23936 | char *kwnames[] = { | |
23937 | (char *) "self", NULL | |
23938 | }; | |
23939 | ||
23940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
23941 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23942 | { | |
23943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23944 | (arg1)->base_OnLeave(); | |
23945 | ||
23946 | wxPyEndAllowThreads(__tstate); | |
23947 | if (PyErr_Occurred()) SWIG_fail; | |
23948 | } | |
23949 | Py_INCREF(Py_None); resultobj = Py_None; | |
23950 | return resultobj; | |
23951 | fail: | |
23952 | return NULL; | |
23953 | } | |
23954 | ||
23955 | ||
23956 | static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23957 | PyObject *resultobj; | |
23958 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23959 | int arg2 ; |
23960 | int arg3 ; | |
d14a1e28 RD |
23961 | bool result; |
23962 | PyObject * obj0 = 0 ; | |
23963 | char *kwnames[] = { | |
23964 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23965 | }; | |
23966 | ||
23967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:TextDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
23968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23969 | { | |
23970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23971 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
23972 | ||
23973 | wxPyEndAllowThreads(__tstate); | |
23974 | if (PyErr_Occurred()) SWIG_fail; | |
23975 | } | |
23976 | resultobj = PyInt_FromLong((long)result); | |
23977 | return resultobj; | |
23978 | fail: | |
23979 | return NULL; | |
23980 | } | |
23981 | ||
23982 | ||
23983 | static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23984 | PyObject *resultobj; | |
23985 | wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ; | |
423f194a RD |
23986 | int arg2 ; |
23987 | int arg3 ; | |
d14a1e28 RD |
23988 | int arg4 ; |
23989 | int result; | |
23990 | PyObject * obj0 = 0 ; | |
23991 | char *kwnames[] = { | |
23992 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
23993 | }; | |
23994 | ||
23995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:TextDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
23996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTextDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23997 | { | |
23998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23999 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
24000 | ||
24001 | wxPyEndAllowThreads(__tstate); | |
24002 | if (PyErr_Occurred()) SWIG_fail; | |
24003 | } | |
24004 | resultobj = PyInt_FromLong((long)result); | |
24005 | return resultobj; | |
24006 | fail: | |
24007 | return NULL; | |
24008 | } | |
24009 | ||
24010 | ||
24011 | static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) { | |
24012 | PyObject *obj; | |
24013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24014 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj); | |
24015 | Py_INCREF(obj); | |
24016 | return Py_BuildValue((char *)""); | |
24017 | } | |
24018 | static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24019 | PyObject *resultobj; | |
24020 | wxPyFileDropTarget *result; | |
24021 | char *kwnames[] = { | |
24022 | NULL | |
24023 | }; | |
24024 | ||
24025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail; | |
24026 | { | |
24027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24028 | result = (wxPyFileDropTarget *)new wxPyFileDropTarget(); | |
24029 | ||
24030 | wxPyEndAllowThreads(__tstate); | |
24031 | if (PyErr_Occurred()) SWIG_fail; | |
24032 | } | |
24033 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileDropTarget, 1); | |
24034 | return resultobj; | |
24035 | fail: | |
24036 | return NULL; | |
24037 | } | |
24038 | ||
24039 | ||
24040 | static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24041 | PyObject *resultobj; | |
24042 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
24043 | PyObject *arg2 = (PyObject *) 0 ; | |
24044 | PyObject *arg3 = (PyObject *) 0 ; | |
24045 | PyObject * obj0 = 0 ; | |
24046 | PyObject * obj1 = 0 ; | |
24047 | PyObject * obj2 = 0 ; | |
24048 | char *kwnames[] = { | |
24049 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24050 | }; | |
24051 | ||
24052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24054 | arg2 = obj1; | |
24055 | arg3 = obj2; | |
24056 | { | |
24057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24058 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24059 | ||
24060 | wxPyEndAllowThreads(__tstate); | |
24061 | if (PyErr_Occurred()) SWIG_fail; | |
24062 | } | |
24063 | Py_INCREF(Py_None); resultobj = Py_None; | |
24064 | return resultobj; | |
24065 | fail: | |
24066 | return NULL; | |
24067 | } | |
24068 | ||
24069 | ||
24070 | static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24071 | PyObject *resultobj; | |
24072 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
24073 | int arg2 ; |
24074 | int arg3 ; | |
d14a1e28 RD |
24075 | int arg4 ; |
24076 | int result; | |
24077 | PyObject * obj0 = 0 ; | |
24078 | char *kwnames[] = { | |
24079 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24080 | }; | |
24081 | ||
24082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnEnter",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24084 | { | |
24085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24086 | result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4); | |
24087 | ||
24088 | wxPyEndAllowThreads(__tstate); | |
24089 | if (PyErr_Occurred()) SWIG_fail; | |
24090 | } | |
24091 | resultobj = PyInt_FromLong((long)result); | |
24092 | return resultobj; | |
24093 | fail: | |
24094 | return NULL; | |
24095 | } | |
24096 | ||
24097 | ||
24098 | static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24099 | PyObject *resultobj; | |
24100 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
24101 | int arg2 ; |
24102 | int arg3 ; | |
d14a1e28 RD |
24103 | int arg4 ; |
24104 | int result; | |
24105 | PyObject * obj0 = 0 ; | |
24106 | char *kwnames[] = { | |
24107 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24108 | }; | |
24109 | ||
24110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnDragOver",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24112 | { | |
24113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24114 | result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4); | |
24115 | ||
24116 | wxPyEndAllowThreads(__tstate); | |
24117 | if (PyErr_Occurred()) SWIG_fail; | |
24118 | } | |
24119 | resultobj = PyInt_FromLong((long)result); | |
24120 | return resultobj; | |
24121 | fail: | |
24122 | return NULL; | |
24123 | } | |
24124 | ||
24125 | ||
24126 | static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24127 | PyObject *resultobj; | |
24128 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
24129 | PyObject * obj0 = 0 ; | |
24130 | char *kwnames[] = { | |
24131 | (char *) "self", NULL | |
24132 | }; | |
24133 | ||
24134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail; | |
24135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24136 | { | |
24137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24138 | (arg1)->base_OnLeave(); | |
24139 | ||
24140 | wxPyEndAllowThreads(__tstate); | |
24141 | if (PyErr_Occurred()) SWIG_fail; | |
24142 | } | |
24143 | Py_INCREF(Py_None); resultobj = Py_None; | |
24144 | return resultobj; | |
24145 | fail: | |
24146 | return NULL; | |
24147 | } | |
24148 | ||
24149 | ||
24150 | static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24151 | PyObject *resultobj; | |
24152 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
24153 | int arg2 ; |
24154 | int arg3 ; | |
d14a1e28 RD |
24155 | bool result; |
24156 | PyObject * obj0 = 0 ; | |
24157 | char *kwnames[] = { | |
24158 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24159 | }; | |
24160 | ||
24161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:FileDropTarget_base_OnDrop",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24163 | { | |
24164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24165 | result = (bool)(arg1)->base_OnDrop(arg2,arg3); | |
24166 | ||
24167 | wxPyEndAllowThreads(__tstate); | |
24168 | if (PyErr_Occurred()) SWIG_fail; | |
24169 | } | |
24170 | resultobj = PyInt_FromLong((long)result); | |
24171 | return resultobj; | |
24172 | fail: | |
24173 | return NULL; | |
24174 | } | |
24175 | ||
24176 | ||
24177 | static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24178 | PyObject *resultobj; | |
24179 | wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ; | |
423f194a RD |
24180 | int arg2 ; |
24181 | int arg3 ; | |
d14a1e28 RD |
24182 | int arg4 ; |
24183 | int result; | |
24184 | PyObject * obj0 = 0 ; | |
24185 | char *kwnames[] = { | |
24186 | (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL | |
24187 | }; | |
24188 | ||
24189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:FileDropTarget_base_OnData",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
24190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileDropTarget,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24191 | { | |
24192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24193 | result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4); | |
24194 | ||
24195 | wxPyEndAllowThreads(__tstate); | |
24196 | if (PyErr_Occurred()) SWIG_fail; | |
24197 | } | |
24198 | resultobj = PyInt_FromLong((long)result); | |
24199 | return resultobj; | |
24200 | fail: | |
24201 | return NULL; | |
24202 | } | |
24203 | ||
24204 | ||
24205 | static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) { | |
24206 | PyObject *obj; | |
24207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24208 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj); | |
24209 | Py_INCREF(obj); | |
24210 | return Py_BuildValue((char *)""); | |
24211 | } | |
24212 | static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24213 | PyObject *resultobj; | |
24214 | wxClipboard *result; | |
24215 | char *kwnames[] = { | |
24216 | NULL | |
24217 | }; | |
24218 | ||
24219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail; | |
24220 | { | |
24221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24222 | result = (wxClipboard *)new wxClipboard(); | |
24223 | ||
24224 | wxPyEndAllowThreads(__tstate); | |
24225 | if (PyErr_Occurred()) SWIG_fail; | |
24226 | } | |
24227 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboard, 1); | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24237 | PyObject * obj0 = 0 ; | |
24238 | char *kwnames[] = { | |
24239 | (char *) "self", NULL | |
24240 | }; | |
24241 | ||
24242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail; | |
24243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24244 | { | |
24245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24246 | delete arg1; | |
24247 | ||
24248 | wxPyEndAllowThreads(__tstate); | |
24249 | if (PyErr_Occurred()) SWIG_fail; | |
24250 | } | |
24251 | Py_INCREF(Py_None); resultobj = Py_None; | |
24252 | return resultobj; | |
24253 | fail: | |
24254 | return NULL; | |
24255 | } | |
24256 | ||
24257 | ||
24258 | static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24259 | PyObject *resultobj; | |
24260 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24261 | bool result; | |
24262 | PyObject * obj0 = 0 ; | |
24263 | char *kwnames[] = { | |
24264 | (char *) "self", NULL | |
24265 | }; | |
24266 | ||
24267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail; | |
24268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24269 | { | |
24270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24271 | result = (bool)(arg1)->Open(); | |
24272 | ||
24273 | wxPyEndAllowThreads(__tstate); | |
24274 | if (PyErr_Occurred()) SWIG_fail; | |
24275 | } | |
24276 | resultobj = PyInt_FromLong((long)result); | |
24277 | return resultobj; | |
24278 | fail: | |
24279 | return NULL; | |
24280 | } | |
24281 | ||
24282 | ||
24283 | static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24284 | PyObject *resultobj; | |
24285 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24286 | PyObject * obj0 = 0 ; | |
24287 | char *kwnames[] = { | |
24288 | (char *) "self", NULL | |
24289 | }; | |
24290 | ||
24291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail; | |
24292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24293 | { | |
24294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24295 | (arg1)->Close(); | |
24296 | ||
24297 | wxPyEndAllowThreads(__tstate); | |
24298 | if (PyErr_Occurred()) SWIG_fail; | |
24299 | } | |
24300 | Py_INCREF(Py_None); resultobj = Py_None; | |
24301 | return resultobj; | |
24302 | fail: | |
24303 | return NULL; | |
24304 | } | |
24305 | ||
24306 | ||
24307 | static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24308 | PyObject *resultobj; | |
24309 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24310 | bool result; | |
24311 | PyObject * obj0 = 0 ; | |
24312 | char *kwnames[] = { | |
24313 | (char *) "self", NULL | |
24314 | }; | |
24315 | ||
24316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail; | |
24317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24318 | { | |
24319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24320 | result = (bool)((wxClipboard const *)arg1)->IsOpened(); | |
24321 | ||
24322 | wxPyEndAllowThreads(__tstate); | |
24323 | if (PyErr_Occurred()) SWIG_fail; | |
24324 | } | |
24325 | resultobj = PyInt_FromLong((long)result); | |
24326 | return resultobj; | |
24327 | fail: | |
24328 | return NULL; | |
24329 | } | |
24330 | ||
24331 | ||
24332 | static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24333 | PyObject *resultobj; | |
24334 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24335 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24336 | bool result; | |
24337 | PyObject * obj0 = 0 ; | |
24338 | PyObject * obj1 = 0 ; | |
24339 | char *kwnames[] = { | |
24340 | (char *) "self",(char *) "data", NULL | |
24341 | }; | |
24342 | ||
24343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail; | |
24344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24345 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24346 | { | |
24347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24348 | result = (bool)(arg1)->AddData(arg2); | |
24349 | ||
24350 | wxPyEndAllowThreads(__tstate); | |
24351 | if (PyErr_Occurred()) SWIG_fail; | |
24352 | } | |
24353 | resultobj = PyInt_FromLong((long)result); | |
24354 | return resultobj; | |
24355 | fail: | |
24356 | return NULL; | |
24357 | } | |
24358 | ||
24359 | ||
24360 | static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24361 | PyObject *resultobj; | |
24362 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24363 | wxDataObject *arg2 = (wxDataObject *) 0 ; | |
24364 | bool result; | |
24365 | PyObject * obj0 = 0 ; | |
24366 | PyObject * obj1 = 0 ; | |
24367 | char *kwnames[] = { | |
24368 | (char *) "self",(char *) "data", NULL | |
24369 | }; | |
24370 | ||
24371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24373 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24374 | { | |
24375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24376 | result = (bool)(arg1)->SetData(arg2); | |
24377 | ||
24378 | wxPyEndAllowThreads(__tstate); | |
24379 | if (PyErr_Occurred()) SWIG_fail; | |
24380 | } | |
24381 | resultobj = PyInt_FromLong((long)result); | |
24382 | return resultobj; | |
24383 | fail: | |
24384 | return NULL; | |
24385 | } | |
24386 | ||
24387 | ||
24388 | static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24389 | PyObject *resultobj; | |
24390 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24391 | wxDataFormat *arg2 = 0 ; | |
24392 | bool result; | |
24393 | PyObject * obj0 = 0 ; | |
24394 | PyObject * obj1 = 0 ; | |
24395 | char *kwnames[] = { | |
24396 | (char *) "self",(char *) "format", NULL | |
24397 | }; | |
24398 | ||
24399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail; | |
24400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24401 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataFormat,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24402 | if (arg2 == NULL) { | |
24403 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24404 | } | |
24405 | { | |
24406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24407 | result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2); | |
24408 | ||
24409 | wxPyEndAllowThreads(__tstate); | |
24410 | if (PyErr_Occurred()) SWIG_fail; | |
24411 | } | |
24412 | resultobj = PyInt_FromLong((long)result); | |
24413 | return resultobj; | |
24414 | fail: | |
24415 | return NULL; | |
24416 | } | |
24417 | ||
24418 | ||
24419 | static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24420 | PyObject *resultobj; | |
24421 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24422 | wxDataObject *arg2 = 0 ; | |
24423 | bool result; | |
24424 | PyObject * obj0 = 0 ; | |
24425 | PyObject * obj1 = 0 ; | |
24426 | char *kwnames[] = { | |
24427 | (char *) "self",(char *) "data", NULL | |
24428 | }; | |
24429 | ||
24430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail; | |
24431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24432 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDataObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24433 | if (arg2 == NULL) { | |
24434 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24435 | } | |
24436 | { | |
24437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24438 | result = (bool)(arg1)->GetData(*arg2); | |
24439 | ||
24440 | wxPyEndAllowThreads(__tstate); | |
24441 | if (PyErr_Occurred()) SWIG_fail; | |
24442 | } | |
24443 | resultobj = PyInt_FromLong((long)result); | |
24444 | return resultobj; | |
24445 | fail: | |
24446 | return NULL; | |
24447 | } | |
24448 | ||
24449 | ||
24450 | static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24451 | PyObject *resultobj; | |
24452 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24453 | PyObject * obj0 = 0 ; | |
24454 | char *kwnames[] = { | |
24455 | (char *) "self", NULL | |
24456 | }; | |
24457 | ||
24458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail; | |
24459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24460 | { | |
24461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24462 | (arg1)->Clear(); | |
24463 | ||
24464 | wxPyEndAllowThreads(__tstate); | |
24465 | if (PyErr_Occurred()) SWIG_fail; | |
24466 | } | |
24467 | Py_INCREF(Py_None); resultobj = Py_None; | |
24468 | return resultobj; | |
24469 | fail: | |
24470 | return NULL; | |
24471 | } | |
24472 | ||
24473 | ||
24474 | static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24475 | PyObject *resultobj; | |
24476 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
24477 | bool result; | |
24478 | PyObject * obj0 = 0 ; | |
24479 | char *kwnames[] = { | |
24480 | (char *) "self", NULL | |
24481 | }; | |
24482 | ||
24483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail; | |
24484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24485 | { | |
24486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24487 | result = (bool)(arg1)->Flush(); | |
24488 | ||
24489 | wxPyEndAllowThreads(__tstate); | |
24490 | if (PyErr_Occurred()) SWIG_fail; | |
24491 | } | |
24492 | resultobj = PyInt_FromLong((long)result); | |
24493 | return resultobj; | |
24494 | fail: | |
24495 | return NULL; | |
24496 | } | |
24497 | ||
24498 | ||
24499 | static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24500 | PyObject *resultobj; | |
24501 | wxClipboard *arg1 = (wxClipboard *) 0 ; | |
423f194a | 24502 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24503 | PyObject * obj0 = 0 ; |
24504 | PyObject * obj1 = 0 ; | |
24505 | char *kwnames[] = { | |
24506 | (char *) "self",(char *) "primary", NULL | |
24507 | }; | |
24508 | ||
24509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail; | |
24510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24511 | if (obj1) { | |
24512 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
24513 | if (PyErr_Occurred()) SWIG_fail; | |
24514 | } | |
24515 | { | |
24516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24517 | (arg1)->UsePrimarySelection(arg2); | |
24518 | ||
24519 | wxPyEndAllowThreads(__tstate); | |
24520 | if (PyErr_Occurred()) SWIG_fail; | |
24521 | } | |
24522 | Py_INCREF(Py_None); resultobj = Py_None; | |
24523 | return resultobj; | |
24524 | fail: | |
24525 | return NULL; | |
24526 | } | |
24527 | ||
24528 | ||
24529 | static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) { | |
24530 | PyObject *obj; | |
24531 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24532 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj); | |
24533 | Py_INCREF(obj); | |
24534 | return Py_BuildValue((char *)""); | |
24535 | } | |
24536 | static int _wrap_TheClipboard_set(PyObject *_val) { | |
24537 | PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only."); | |
24538 | return 1; | |
24539 | } | |
24540 | ||
24541 | ||
24542 | static PyObject *_wrap_TheClipboard_get() { | |
24543 | PyObject *pyobj; | |
24544 | ||
24545 | pyobj = SWIG_NewPointerObj((void *) wxTheClipboard, SWIGTYPE_p_wxClipboard, 0); | |
24546 | return pyobj; | |
24547 | } | |
24548 | ||
24549 | ||
24550 | static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24551 | PyObject *resultobj; | |
24552 | wxClipboard *arg1 = (wxClipboard *) NULL ; | |
24553 | wxClipboardLocker *result; | |
24554 | PyObject * obj0 = 0 ; | |
24555 | char *kwnames[] = { | |
24556 | (char *) "clipboard", NULL | |
24557 | }; | |
24558 | ||
24559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24560 | if (obj0) { | |
24561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboard,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24562 | } | |
24563 | { | |
24564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24565 | result = (wxClipboardLocker *)new wxClipboardLocker(arg1); | |
24566 | ||
24567 | wxPyEndAllowThreads(__tstate); | |
24568 | if (PyErr_Occurred()) SWIG_fail; | |
24569 | } | |
24570 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClipboardLocker, 1); | |
24571 | return resultobj; | |
24572 | fail: | |
24573 | return NULL; | |
24574 | } | |
24575 | ||
24576 | ||
24577 | static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24578 | PyObject *resultobj; | |
24579 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24580 | PyObject * obj0 = 0 ; | |
24581 | char *kwnames[] = { | |
24582 | (char *) "self", NULL | |
24583 | }; | |
24584 | ||
24585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail; | |
24586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24587 | { | |
24588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24589 | delete arg1; | |
24590 | ||
24591 | wxPyEndAllowThreads(__tstate); | |
24592 | if (PyErr_Occurred()) SWIG_fail; | |
24593 | } | |
24594 | Py_INCREF(Py_None); resultobj = Py_None; | |
24595 | return resultobj; | |
24596 | fail: | |
24597 | return NULL; | |
24598 | } | |
24599 | ||
24600 | ||
24601 | static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24602 | PyObject *resultobj; | |
24603 | wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ; | |
24604 | bool result; | |
24605 | PyObject * obj0 = 0 ; | |
24606 | char *kwnames[] = { | |
24607 | (char *) "self", NULL | |
24608 | }; | |
24609 | ||
24610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail; | |
24611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxClipboardLocker,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24612 | { | |
24613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24614 | result = (bool)wxClipboardLocker___nonzero__(arg1); | |
24615 | ||
24616 | wxPyEndAllowThreads(__tstate); | |
24617 | if (PyErr_Occurred()) SWIG_fail; | |
24618 | } | |
24619 | resultobj = PyInt_FromLong((long)result); | |
24620 | return resultobj; | |
24621 | fail: | |
24622 | return NULL; | |
24623 | } | |
24624 | ||
24625 | ||
24626 | static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) { | |
24627 | PyObject *obj; | |
24628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24629 | SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj); | |
24630 | Py_INCREF(obj); | |
24631 | return Py_BuildValue((char *)""); | |
24632 | } | |
24633 | static PyMethodDef SwigMethods[] = { | |
24634 | { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
24635 | { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
24636 | { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
24637 | { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
24638 | { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24639 | { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
24640 | { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS }, | |
24641 | { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
24642 | { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
24643 | { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24644 | { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
24645 | { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
24646 | { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
24647 | { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS }, | |
24648 | { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
24649 | { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
24650 | { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
24651 | { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS }, | |
24652 | { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24653 | { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
24654 | { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
24655 | { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS }, | |
24656 | { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS }, | |
24657 | { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS }, | |
24658 | { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS }, | |
24659 | { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
24660 | { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
24661 | { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS }, | |
24662 | { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS }, | |
24663 | { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS }, | |
24664 | { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS }, | |
24665 | { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
24666 | { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
24667 | { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
24668 | { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS }, | |
24669 | { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
24670 | { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS }, | |
24671 | { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS }, | |
24672 | { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
24673 | { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS }, | |
24674 | { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS }, | |
24675 | { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS }, | |
24676 | { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24677 | { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24678 | { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
24679 | { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS }, | |
24680 | { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24681 | { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24682 | { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
24683 | { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
24684 | { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS }, | |
24685 | { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
24686 | { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
24687 | { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24688 | { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
24689 | { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24690 | { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
24691 | { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24692 | { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
24693 | { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24694 | { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
24695 | { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
24696 | { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24697 | { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
24698 | { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24699 | { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
24700 | { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f | 24701 | { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24702 | { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, |
24703 | { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
24704 | { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
24705 | { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24706 | { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
24707 | { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS }, | |
24708 | { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
24709 | { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS }, | |
24710 | { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
24711 | { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24712 | { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
24713 | { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
24714 | { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
24715 | { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS }, | |
24716 | { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24717 | { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS }, | |
24718 | { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24719 | { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 24720 | { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 24721 | { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 24722 | { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 24723 | { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24724 | { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
24725 | { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
24726 | { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS }, | |
24727 | { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
24728 | { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
24729 | { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS }, | |
24730 | { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
24731 | { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS }, | |
24732 | { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24733 | { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
24734 | { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24735 | { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
24736 | { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS }, | |
24737 | { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24738 | { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
24739 | { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS }, | |
24740 | { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24741 | { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
24742 | { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS }, | |
24743 | { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS }, | |
24744 | { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
24745 | { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
24746 | { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24747 | { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
24748 | { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS }, | |
24749 | { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24750 | { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS }, | |
24751 | { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
24752 | { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
24753 | { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
24754 | { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
24755 | { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
24756 | { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
24757 | { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
24758 | { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
24759 | { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, | |
24760 | { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
24761 | { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
24762 | { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS }, | |
24763 | { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24764 | { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24765 | { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
24766 | { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
24767 | { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, | |
24768 | { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS }, | |
24769 | { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, | |
24770 | { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24771 | { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
24772 | { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
24773 | { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, | |
24774 | { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS }, | |
24775 | { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24776 | { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24777 | { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS }, | |
24778 | { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS }, | |
24779 | { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
24780 | { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS }, | |
24781 | { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS }, | |
44127b65 | 24782 | { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24783 | { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS }, |
24784 | { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS }, | |
24785 | { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
24786 | { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS }, |
24787 | { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24788 | { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
0f774bef | 24789 | { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
24790 | { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS }, |
24791 | { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS }, | |
24792 | { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
24793 | { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS }, | |
24794 | { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS }, | |
24795 | { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS }, | |
24796 | { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS }, | |
24797 | { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS }, | |
24798 | { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS }, | |
24799 | { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
24800 | { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
24801 | { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
24802 | { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS }, | |
24803 | { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
24804 | { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24805 | { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
24806 | { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
24807 | { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS }, | |
24808 | { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24809 | { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24810 | { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
24811 | { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24812 | { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24813 | { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24814 | { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24815 | { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
24816 | { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24817 | { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24818 | { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24819 | { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
24820 | { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
24821 | { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
24822 | { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
24823 | { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
24824 | { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS }, | |
24825 | { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS }, | |
24826 | { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS }, | |
24827 | { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
24828 | { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS }, | |
24829 | { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS }, | |
24830 | { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS }, | |
24831 | { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS }, | |
24832 | { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
24833 | { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
24834 | { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24835 | { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24836 | { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24837 | { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS }, | |
24838 | { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS }, | |
24839 | { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
24840 | { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
24841 | { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
24842 | { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
24843 | { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS }, | |
24844 | { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
24845 | { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
24846 | { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
24847 | { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS }, | |
24848 | { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS }, | |
24849 | { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS }, | |
24850 | { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS }, | |
24851 | { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS }, | |
24852 | { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
24853 | { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS }, | |
24854 | { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
24855 | { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS }, | |
0f774bef | 24856 | { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS }, |
d14a1e28 RD |
24857 | { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS }, |
24858 | { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS }, | |
24859 | { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24860 | { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS }, | |
24861 | { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS }, | |
24862 | { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS }, | |
24863 | { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24864 | { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS }, | |
24865 | { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS }, | |
24866 | { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS }, | |
24867 | { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS }, | |
24868 | { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS }, | |
24869 | { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
24870 | { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
24871 | { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
24872 | { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
24873 | { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS }, | |
24874 | { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
24875 | { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
24876 | { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
24877 | { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
24878 | { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
24879 | { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24880 | { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, | |
24881 | { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS }, | |
24882 | { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
24883 | { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
24884 | { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
24885 | { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
24886 | { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
24887 | { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
24888 | { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
24889 | { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS }, | |
24890 | { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS }, | |
24891 | { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24892 | { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS }, | |
24893 | { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24894 | { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24895 | { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24896 | { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24897 | { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
24898 | { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
24899 | { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
24900 | { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
24901 | { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24902 | { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
24903 | { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24904 | { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
24905 | { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
24906 | { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
24907 | { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
24908 | { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
24909 | { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
24910 | { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
24911 | { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
24912 | { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
24913 | { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
24914 | { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
24915 | { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
24916 | { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
24917 | { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
24918 | { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
24919 | { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
24920 | { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
24921 | { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
24922 | { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
24923 | { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
24924 | { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
24925 | { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
24926 | { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
24927 | { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
24928 | { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
24929 | { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
24930 | { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
24931 | { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
24932 | { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
24933 | { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
24934 | { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
24935 | { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS }, | |
24936 | { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
24937 | { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
24938 | { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS }, | |
24939 | { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS }, | |
24940 | { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS }, | |
24941 | { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS }, | |
24942 | { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS }, | |
24943 | { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS }, | |
24944 | { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS }, | |
24945 | { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS }, | |
24946 | { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS }, | |
24947 | { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24948 | { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24949 | { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24950 | { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24951 | { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24952 | { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS }, | |
24953 | { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
24954 | { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS }, | |
24955 | { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
24956 | { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
24957 | { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
24958 | { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS }, | |
24959 | { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS }, | |
24960 | { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
24961 | { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
24962 | { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
24963 | { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS }, | |
24964 | { (char *)"new_Wave", (PyCFunction) _wrap_new_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24965 | { (char *)"new_WaveData", (PyCFunction) _wrap_new_WaveData, METH_VARARGS | METH_KEYWORDS }, | |
24966 | { (char *)"delete_Wave", (PyCFunction) _wrap_delete_Wave, METH_VARARGS | METH_KEYWORDS }, | |
24967 | { (char *)"Wave_IsOk", (PyCFunction) _wrap_Wave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
24968 | { (char *)"Wave_Play", (PyCFunction) _wrap_Wave_Play, METH_VARARGS | METH_KEYWORDS }, | |
24969 | { (char *)"Wave_swigregister", Wave_swigregister, METH_VARARGS }, | |
24970 | { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24971 | { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
24972 | { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
24973 | { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
24974 | { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24975 | { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24976 | { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24977 | { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24978 | { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24979 | { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
24980 | { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24981 | { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24982 | { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
24983 | { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
24984 | { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
24985 | { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS }, | |
24986 | { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24987 | { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS }, | |
24988 | { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
24989 | { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
24990 | { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
24991 | { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
24992 | { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
24993 | { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
24994 | { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
24995 | { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
24996 | { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
24997 | { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
24998 | { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
24999 | { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
25000 | { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
25001 | { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS }, | |
25002 | { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
25003 | { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
25004 | { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25005 | { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
25006 | { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
25007 | { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
25008 | { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
25009 | { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
25010 | { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
25011 | { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
25012 | { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
25013 | { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
25014 | { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
25015 | { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS }, | |
25016 | { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
25017 | { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
25018 | { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
25019 | { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
25020 | { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
25021 | { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25022 | { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
41f1cec7 | 25023 | { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
25024 | { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS }, |
25025 | { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS }, | |
25026 | { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS }, | |
25027 | { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS }, | |
25028 | { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS }, | |
25029 | { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
25030 | { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
25031 | { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
25032 | { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS }, | |
25033 | { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS }, | |
25034 | { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS }, | |
25035 | { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS }, | |
25036 | { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS }, | |
25037 | { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS }, | |
25038 | { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS }, | |
25039 | { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS }, | |
25040 | { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS }, | |
25041 | { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS }, | |
25042 | { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS }, | |
25043 | { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS }, | |
25044 | { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS }, | |
25045 | { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS }, | |
25046 | { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS }, | |
25047 | { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS }, | |
25048 | { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS }, | |
25049 | { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS }, | |
25050 | { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25051 | { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS }, | |
25052 | { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS }, | |
25053 | { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS }, | |
25054 | { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS }, | |
25055 | { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS }, | |
25056 | { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25057 | { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25058 | { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS }, | |
25059 | { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS }, | |
25060 | { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25061 | { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
25062 | { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
25063 | { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
25064 | { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
25065 | { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25066 | { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25067 | { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS }, | |
25068 | { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
25069 | { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS }, | |
25070 | { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS }, | |
25071 | { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS }, | |
25072 | { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS }, | |
25073 | { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS }, | |
25074 | { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS }, | |
25075 | { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
25076 | { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS }, | |
25077 | { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS }, | |
25078 | { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS }, | |
25079 | { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS }, | |
25080 | { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS }, | |
25081 | { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS }, | |
25082 | { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS }, | |
25083 | { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS }, | |
25084 | { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS }, | |
25085 | { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS }, | |
25086 | { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS }, | |
25087 | { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS }, | |
25088 | { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS }, | |
25089 | { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS }, | |
25090 | { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS }, | |
25091 | { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS }, | |
25092 | { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS }, | |
25093 | { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS }, | |
25094 | { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS }, | |
25095 | { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS }, | |
25096 | { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS }, | |
25097 | { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS }, | |
25098 | { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
25099 | { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS }, | |
25100 | { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS }, | |
25101 | { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS }, | |
25102 | { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS }, | |
25103 | { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS }, | |
25104 | { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS }, | |
25105 | { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS }, | |
25106 | { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS }, | |
25107 | { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS }, | |
25108 | { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS }, | |
25109 | { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS }, | |
25110 | { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS }, | |
25111 | { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25112 | { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS }, | |
25113 | { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS }, | |
25114 | { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25115 | { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25116 | { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25117 | { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
25118 | { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS }, | |
25119 | { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25120 | { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25121 | { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25122 | { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25123 | { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25124 | { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25125 | { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25126 | { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS }, | |
25127 | { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS }, | |
25128 | { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS }, | |
25130 | { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS }, | |
25131 | { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS }, | |
25132 | { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
25133 | { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS }, | |
25134 | { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
25143 | { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS }, | |
25149 | { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS }, | |
25150 | { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25153 | { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS }, | |
25155 | { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS }, | |
25156 | { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25157 | { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS }, | |
25158 | { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS }, | |
25159 | { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS }, | |
25160 | { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS }, | |
25161 | { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS }, | |
25162 | { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS }, | |
25164 | { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS }, | |
25167 | { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS }, | |
25168 | { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS }, | |
25170 | { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS }, | |
25171 | { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS }, | |
25172 | { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS }, | |
25173 | { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS }, | |
25174 | { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS }, | |
25175 | { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS }, | |
25176 | { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS }, | |
25177 | { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS }, | |
25178 | { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS }, | |
25179 | { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS }, | |
25180 | { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS }, | |
25182 | { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS }, | |
25187 | { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS }, | |
25188 | { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS }, | |
25189 | { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS }, | |
25190 | { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS }, | |
25195 | { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS }, | |
25196 | { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25197 | { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25198 | { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS }, | |
25207 | { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25208 | { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25209 | { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25213 | { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS }, | |
25217 | { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25221 | { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
25222 | { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS }, | |
25225 | { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25229 | { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS }, | |
25230 | { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS }, | |
25231 | { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS }, | |
25234 | { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS }, | |
25235 | { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25236 | { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS }, | |
25237 | { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS }, | |
25238 | { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS }, | |
25242 | { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS }, | |
25243 | { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS }, | |
25244 | { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS }, | |
25245 | { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS }, | |
25246 | { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25247 | { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25248 | { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS }, | |
25249 | { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS }, | |
25250 | { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS }, | |
25251 | { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS }, | |
25252 | { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS }, | |
25253 | { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS }, | |
25254 | { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS }, | |
25255 | { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
25256 | { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS }, | |
25257 | { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS }, | |
25258 | { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
25259 | { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS }, | |
25260 | { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS }, | |
25261 | { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS }, | |
25262 | { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS }, | |
25263 | { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS }, | |
25264 | { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS }, | |
25265 | { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS }, | |
25266 | { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
25267 | { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
25268 | { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS }, | |
25269 | { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS }, | |
25270 | { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS }, | |
25271 | { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS }, | |
25272 | { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS }, | |
25273 | { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25274 | { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25275 | { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS }, | |
25276 | { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS }, | |
25277 | { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS }, | |
25278 | { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS }, | |
25279 | { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS }, | |
25280 | { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS }, | |
25281 | { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS }, | |
25282 | { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS }, | |
25283 | { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS }, | |
25284 | { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS }, | |
25285 | { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS }, | |
25286 | { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25287 | { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS }, | |
25288 | { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS }, | |
25289 | { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS }, | |
25290 | { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25291 | { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS }, | |
25292 | { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25293 | { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25294 | { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS }, | |
25295 | { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS }, | |
25296 | { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS }, | |
25297 | { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25298 | { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS }, | |
25299 | { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS }, | |
25300 | { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS }, | |
25301 | { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS }, | |
25302 | { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25303 | { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS }, | |
25304 | { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS }, | |
25305 | { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS }, | |
25306 | { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS }, | |
25307 | { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25308 | { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25309 | { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS }, | |
25310 | { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25311 | { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25312 | { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25313 | { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS }, | |
25314 | { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25315 | { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25316 | { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS }, | |
25317 | { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25318 | { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25319 | { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS }, | |
25320 | { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25321 | { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS }, | |
25322 | { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25323 | { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25324 | { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25325 | { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS }, | |
25326 | { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25327 | { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS }, | |
25328 | { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS }, | |
25329 | { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS }, | |
25330 | { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25331 | { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
25332 | { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS }, | |
25333 | { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS }, | |
25334 | { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS }, | |
25335 | { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25336 | { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25337 | { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS }, | |
25338 | { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25339 | { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25340 | { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
25341 | { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS }, | |
25342 | { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS }, | |
25343 | { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS }, | |
cbd72d4f | 25344 | { (char *)"new_PyDropTarget", (PyCFunction) _wrap_new_PyDropTarget, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
25345 | { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
25346 | { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25347 | { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25348 | { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS }, | |
25349 | { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25350 | { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25351 | { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25352 | { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25353 | { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25354 | { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS }, | |
25355 | { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25356 | { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25357 | { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25358 | { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25359 | { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25360 | { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25361 | { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25362 | { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS }, | |
25363 | { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
25364 | { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25365 | { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS }, | |
25366 | { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS }, | |
25367 | { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS }, | |
25368 | { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS }, | |
25369 | { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS }, | |
25370 | { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS }, | |
25371 | { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25372 | { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS }, | |
25373 | { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS }, | |
25374 | { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS }, | |
25375 | { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS }, | |
25376 | { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS }, | |
25377 | { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25378 | { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS }, | |
25379 | { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25380 | { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25381 | { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS }, | |
25382 | { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS }, | |
25383 | { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS }, | |
25384 | { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25385 | { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS }, | |
25386 | { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
25387 | { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS }, | |
25388 | { NULL, NULL } | |
25389 | }; | |
25390 | ||
25391 | ||
25392 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25393 | ||
25394 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25395 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25396 | } | |
25397 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25398 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25399 | } | |
25400 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25401 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25402 | } | |
25403 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25404 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25405 | } | |
25406 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25407 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25408 | } | |
25409 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25410 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25411 | } | |
25412 | static void *_p_wxTimerEventTo_p_wxEvent(void *x) { | |
25413 | return (void *)((wxEvent *) ((wxTimerEvent *) x)); | |
25414 | } | |
25415 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25416 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25417 | } | |
25418 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25419 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25420 | } | |
25421 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25422 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25423 | } | |
25424 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25425 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25426 | } | |
25427 | static void *_p_wxJoystickEventTo_p_wxEvent(void *x) { | |
25428 | return (void *)((wxEvent *) ((wxJoystickEvent *) x)); | |
25429 | } | |
25430 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25431 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25432 | } | |
25433 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25434 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25435 | } | |
25436 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25437 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25438 | } | |
25439 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25440 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25441 | } | |
25442 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25443 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25444 | } | |
25445 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25446 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25447 | } | |
25448 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25449 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25450 | } | |
25451 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25452 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25453 | } | |
25454 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25455 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25456 | } | |
25457 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25458 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25459 | } | |
25460 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25461 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25462 | } | |
25463 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25464 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25465 | } | |
25466 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25467 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25468 | } | |
25469 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25470 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25471 | } | |
25472 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25473 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25474 | } | |
25475 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25476 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25477 | } | |
25478 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25479 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25480 | } | |
25481 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25482 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25483 | } | |
25484 | static void *_p_wxProcessEventTo_p_wxEvent(void *x) { | |
25485 | return (void *)((wxEvent *) ((wxProcessEvent *) x)); | |
25486 | } | |
25487 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25488 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25489 | } | |
25490 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25491 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25492 | } | |
25493 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25494 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25495 | } | |
25496 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25497 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25498 | } | |
25499 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25500 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25501 | } | |
25502 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25503 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25504 | } | |
25505 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25506 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25507 | } | |
25508 | static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) { | |
25509 | return (void *)((wxConfigBase *) ((wxFileConfig *) x)); | |
25510 | } | |
25511 | static void *_p_wxConfigTo_p_wxConfigBase(void *x) { | |
25512 | return (void *)((wxConfigBase *) ((wxConfig *) x)); | |
25513 | } | |
25514 | static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) { | |
25515 | return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25516 | } | |
25517 | static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) { | |
25518 | return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25519 | } | |
25520 | static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25521 | return (void *)((wxDataObject *) ((wxDataObjectSimple *) x)); | |
25522 | } | |
25523 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) { | |
25524 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25525 | } | |
25526 | static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) { | |
25527 | return (void *)((wxDataObject *) ((wxDataObjectComposite *) x)); | |
25528 | } | |
25529 | static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) { | |
25530 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25531 | } | |
25532 | static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) { | |
25533 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25534 | } | |
25535 | static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25536 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25537 | } | |
25538 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) { | |
25539 | return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25540 | } | |
25541 | static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) { | |
25542 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25543 | } | |
25544 | static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) { | |
25545 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25546 | } | |
25547 | static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) { | |
25548 | return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25549 | } | |
25550 | static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) { | |
25551 | return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25552 | } | |
25553 | static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) { | |
25554 | return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x)); | |
25555 | } | |
25556 | static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) { | |
25557 | return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x)); | |
25558 | } | |
25559 | static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25560 | return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x)); | |
25561 | } | |
25562 | static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25563 | return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x)); | |
25564 | } | |
25565 | static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25566 | return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x)); | |
25567 | } | |
25568 | static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25569 | return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x)); | |
25570 | } | |
25571 | static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25572 | return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x)); | |
25573 | } | |
25574 | static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25575 | return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x)); | |
25576 | } | |
25577 | static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) { | |
25578 | return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x)); | |
25579 | } | |
25580 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
25581 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
25582 | } | |
25583 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
25584 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
25585 | } | |
25586 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
25587 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25588 | } | |
25589 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
25590 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
25591 | } | |
25592 | static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) { | |
25593 | return (void *)((wxEvtHandler *) ((wxPyTimer *) x)); | |
25594 | } | |
25595 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25596 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25597 | } | |
25598 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25599 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25600 | } | |
25601 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25602 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25603 | } | |
25604 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25605 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25606 | } | |
25607 | static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) { | |
25608 | return (void *)((wxEvtHandler *) ((wxPyProcess *) x)); | |
25609 | } | |
25610 | static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) { | |
25611 | return (void *)((wxTipProvider *) ((wxPyTipProvider *) x)); | |
25612 | } | |
25613 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
25614 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
25615 | } | |
25616 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
25617 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
25618 | } | |
25619 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
25620 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
25621 | } | |
25622 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
25623 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
25624 | } | |
25625 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
25626 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
25627 | } | |
25628 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
25629 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
25630 | } | |
25631 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
25632 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
25633 | } | |
25634 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
25635 | return (void *)((wxObject *) ((wxSizer *) x)); | |
25636 | } | |
25637 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
25638 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
25639 | } | |
25640 | static void *_p_wxFileHistoryTo_p_wxObject(void *x) { | |
25641 | return (void *)((wxObject *) ((wxFileHistory *) x)); | |
25642 | } | |
25643 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
25644 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25645 | } | |
25646 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
25647 | return (void *)((wxObject *) ((wxEvent *) x)); | |
25648 | } | |
25649 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
25650 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
25651 | } | |
25652 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
25653 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
25654 | } | |
25655 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
25656 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
25657 | } | |
25658 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
25659 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
25660 | } | |
25661 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
25662 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
25663 | } | |
25664 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
25665 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25666 | } | |
25667 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
25668 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25669 | } | |
25670 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
25671 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25672 | } | |
25673 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
25674 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25675 | } | |
25676 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
25677 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
25678 | } | |
25679 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
25680 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
25681 | } | |
25682 | static void *_p_wxTimerEventTo_p_wxObject(void *x) { | |
25683 | return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x)); | |
25684 | } | |
25685 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
25686 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
25687 | } | |
25688 | static void *_p_wxClipboardTo_p_wxObject(void *x) { | |
25689 | return (void *)((wxObject *) ((wxClipboard *) x)); | |
25690 | } | |
25691 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
25692 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
25693 | } | |
25694 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
25695 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
25696 | } | |
25697 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
25698 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25699 | } | |
25700 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
25701 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
25702 | } | |
25703 | static void *_p_wxToolTipTo_p_wxObject(void *x) { | |
25704 | return (void *)((wxObject *) ((wxToolTip *) x)); | |
25705 | } | |
25706 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
25707 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
25708 | } | |
25709 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
25710 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
25711 | } | |
25712 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
25713 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25714 | } | |
25715 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
25716 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25717 | } | |
25718 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
25719 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
25720 | } | |
25721 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
25722 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
25723 | } | |
25724 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
25725 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
25726 | } | |
25727 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
25728 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
25729 | } | |
25730 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
25731 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
25732 | } | |
25733 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
25734 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
25735 | } | |
25736 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
25737 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
25738 | } | |
25739 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
25740 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
25741 | } | |
25742 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
25743 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
25744 | } | |
25745 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
25746 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
25747 | } | |
25748 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
25749 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
25750 | } | |
25751 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
25752 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
25753 | } | |
25754 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
25755 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
25756 | } | |
25757 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
25758 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
25759 | } | |
25760 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
25761 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
25762 | } | |
25763 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
25764 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
25765 | } | |
25766 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
25767 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
25768 | } | |
25769 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
25770 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
25771 | } | |
41f1cec7 RD |
25772 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
25773 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
25774 | } | |
d14a1e28 RD |
25775 | static void *_p_wxImageTo_p_wxObject(void *x) { |
25776 | return (void *)((wxObject *) ((wxImage *) x)); | |
25777 | } | |
25778 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
25779 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
25780 | } | |
25781 | static void *_p_wxSystemOptionsTo_p_wxObject(void *x) { | |
25782 | return (void *)((wxObject *) ((wxSystemOptions *) x)); | |
25783 | } | |
25784 | static void *_p_wxJoystickEventTo_p_wxObject(void *x) { | |
25785 | return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x)); | |
25786 | } | |
25787 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
25788 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25789 | } | |
25790 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
25791 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25792 | } | |
25793 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
25794 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
25795 | } | |
25796 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
25797 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
25798 | } | |
25799 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
25800 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
25801 | } | |
25802 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
25803 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
25804 | } | |
25805 | static void *_p_wxPyProcessTo_p_wxObject(void *x) { | |
25806 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x)); | |
25807 | } | |
25808 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
25809 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
25810 | } | |
25811 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
25812 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25813 | } | |
25814 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
25815 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
25816 | } | |
25817 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
25818 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
25819 | } | |
25820 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
25821 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
25822 | } | |
25823 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
25824 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
25825 | } | |
25826 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
25827 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
25828 | } | |
25829 | static void *_p_wxBusyInfoTo_p_wxObject(void *x) { | |
25830 | return (void *)((wxObject *) ((wxBusyInfo *) x)); | |
25831 | } | |
25832 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
25833 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25834 | } | |
25835 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
25836 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
25837 | } | |
25838 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
25839 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
25840 | } | |
25841 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
25842 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
25843 | } | |
25844 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
25845 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25846 | } | |
25847 | static void *_p_wxProcessEventTo_p_wxObject(void *x) { | |
25848 | return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x)); | |
25849 | } | |
25850 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
25851 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
25852 | } | |
25853 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
25854 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
25855 | } | |
25856 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
25857 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
25858 | } | |
25859 | static void *_p_wxPyTimerTo_p_wxObject(void *x) { | |
25860 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x)); | |
25861 | } | |
25862 | static void *_p_wxLogStderrTo_p_wxLog(void *x) { | |
25863 | return (void *)((wxLog *) ((wxLogStderr *) x)); | |
25864 | } | |
25865 | static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) { | |
25866 | return (void *)((wxLog *) ((wxLogTextCtrl *) x)); | |
25867 | } | |
25868 | static void *_p_wxLogWindowTo_p_wxLog(void *x) { | |
25869 | return (void *)((wxLog *) ((wxLogWindow *) x)); | |
25870 | } | |
25871 | static void *_p_wxLogChainTo_p_wxLog(void *x) { | |
25872 | return (void *)((wxLog *) ((wxLogChain *) x)); | |
25873 | } | |
25874 | static void *_p_wxLogGuiTo_p_wxLog(void *x) { | |
25875 | return (void *)((wxLog *) ((wxLogGui *) x)); | |
25876 | } | |
25877 | static void *_p_wxPyLogTo_p_wxLog(void *x) { | |
25878 | return (void *)((wxLog *) ((wxPyLog *) x)); | |
25879 | } | |
25880 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
25881 | return (void *)((wxWindow *) ((wxControl *) x)); | |
25882 | } | |
25883 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
25884 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
25885 | } | |
25886 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
25887 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
25888 | } | |
25889 | static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) { | |
25890 | return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x)); | |
25891 | } | |
25892 | static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) { | |
25893 | return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x)); | |
25894 | } | |
25895 | static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0},{"_p_wxLogChain"},{0}}; | |
25896 | static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0},{"_p_wxMutexGuiLocker"},{0}}; | |
25897 | static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0},{"_p_wxMetafile"},{0}}; | |
25898 | static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0},{"_p_wxFileHistory"},{0}}; | |
25899 | 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}}; | |
25900 | static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0},{"_p_wxDateTime__TimeZone"},{0}}; | |
25901 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
25902 | 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}}; | |
25903 | 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}}; | |
25904 | static swig_type_info _swigt__p_wxWave[] = {{"_p_wxWave", 0, "wxWave *", 0},{"_p_wxWave"},{0}}; | |
25905 | static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0},{"_p_wxFileType"},{0}}; | |
25906 | static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0},{"_p_wxLogGui"},{0}}; | |
25907 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
25908 | static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0},{"_p_wxDataFormat"},{0}}; | |
25909 | static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0},{"_p_wxTimerEvent"},{0}}; | |
25910 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}}; | |
25911 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
25912 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
25913 | static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0},{"_p_wxClipboard"},{0}}; | |
25914 | static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0},{"_p_wxStopWatch"},{0}}; | |
25915 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
25916 | static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0},{"_p_wxClipboardLocker"},{0}}; | |
25917 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
25918 | static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0},{"_p_wxLogStderr"},{0}}; | |
25919 | static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0},{"_p_wxLogTextCtrl"},{0}}; | |
25920 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
25921 | static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0},{"_p_wxBusyCursor"},{0}}; | |
25922 | static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0},{"_p_wxFileDataObject"},{0}}; | |
25923 | static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0},{"_p_wxPyBitmapDataObject"},{0}}; | |
25924 | static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0},{"_p_wxPyTextDataObject"},{0}}; | |
25925 | static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0},{"_p_wxBitmapDataObject"},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject},{0}}; | |
25926 | static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0},{"_p_wxTextDataObject"},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject},{0}}; | |
25927 | 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}}; | |
25928 | static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0},{"_p_wxCustomDataObject"},{0}}; | |
25929 | static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0},{"_p_wxURLDataObject"},{0}}; | |
25930 | static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0},{"_p_wxMetafileDataObject"},{0}}; | |
25931 | static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0},{"_p_wxTimerRunner"},{0}}; | |
25932 | static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0},{"_p_wxLogWindow"},{0}}; | |
25933 | static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0},{"_p_wxTimeSpan"},{0}}; | |
25934 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; | |
25935 | static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0},{"_p_wxWindowDisabler"},{0}}; | |
25936 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}}; | |
25937 | static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0},{"_p_wxDataObjectComposite"},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite},{0}}; | |
25938 | static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0},{"_p_wxFileConfig"},{0}}; | |
25939 | static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0},{"_p_wxSystemSettings"},{0}}; | |
25940 | static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0},{"_p_wxPyDataObjectSimple"},{0}}; | |
25941 | 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}}; | |
25942 | 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}}; | |
25943 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
25944 | static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0},{"_p_wxSingleInstanceChecker"},{0}}; | |
25945 | static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0},{"_p_wxFileTypeInfo"},{0}}; | |
25946 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}}; | |
25947 | static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0},{"_p_wxTimer"},{0}}; | |
25948 | static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0},{"_p_wxMimeTypesManager"},{0}}; | |
25949 | static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0},{"_p_wxPyArtProvider"},{0}}; | |
25950 | static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0},{"_p_wxPyTipProvider"},{0}}; | |
25951 | static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0},{"_p_wxTipProvider"},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider},{0}}; | |
25952 | static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0},{"_p_wxJoystick"},{0}}; | |
25953 | static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0},{"_p_wxSystemOptions"},{0}}; | |
25954 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
25955 | static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0},{"_p_wxJoystickEvent"},{0}}; | |
25956 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; | |
41f1cec7 | 25957 | 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 |
25958 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}}; |
25959 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}}; | |
25960 | static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0},{"_p_wxPyDropSource"},{0}}; | |
25961 | 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}}; | |
25962 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
25963 | static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0},{"_p_wxPyProcess"},{0}}; | |
25964 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
25965 | static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0},{"_p_wxConfig"},{0}}; | |
25966 | static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0},{"_p_wxChar"},{0}}; | |
25967 | static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0},{"_p_wxBusyInfo"},{0}}; | |
25968 | 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}}; | |
25969 | static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0},{"_p_wxPyTextDropTarget"},{0}}; | |
25970 | static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0},{"_p_wxPyFileDropTarget"},{0}}; | |
25971 | static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0},{"_p_wxProcessEvent"},{0}}; | |
25972 | static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0},{"_p_wxPyLog"},{0}}; | |
25973 | static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0},{"_p_wxLogNull"},{0}}; | |
25974 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
25975 | static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0},{"_p_wxConfigPathChanger"},{0}}; | |
25976 | static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0},{"_p_wxPyTimer"},{0}}; | |
25977 | static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0},{"_p_wxDateSpan"},{0}}; | |
25978 | ||
25979 | static swig_type_info *swig_types_initial[] = { | |
25980 | _swigt__p_wxLogChain, | |
25981 | _swigt__p_wxMutexGuiLocker, | |
25982 | _swigt__p_wxMetafile, | |
25983 | _swigt__p_wxFileHistory, | |
25984 | _swigt__p_wxLog, | |
25985 | _swigt__p_wxDateTime__TimeZone, | |
25986 | _swigt__p_wxMenu, | |
25987 | _swigt__p_wxEvent, | |
25988 | _swigt__p_wxConfigBase, | |
25989 | _swigt__p_wxWave, | |
25990 | _swigt__p_wxFileType, | |
25991 | _swigt__p_wxLogGui, | |
25992 | _swigt__p_wxFont, | |
25993 | _swigt__p_wxDataFormat, | |
25994 | _swigt__p_wxTimerEvent, | |
25995 | _swigt__p_wxCaret, | |
25996 | _swigt__p_int, | |
25997 | _swigt__p_wxSize, | |
25998 | _swigt__p_wxClipboard, | |
25999 | _swigt__p_wxStopWatch, | |
26000 | _swigt__p_wxDC, | |
26001 | _swigt__p_wxClipboardLocker, | |
26002 | _swigt__p_wxIcon, | |
26003 | _swigt__p_wxLogStderr, | |
26004 | _swigt__p_wxLogTextCtrl, | |
26005 | _swigt__p_wxTextCtrl, | |
26006 | _swigt__p_wxBusyCursor, | |
26007 | _swigt__p_wxFileDataObject, | |
26008 | _swigt__p_wxPyBitmapDataObject, | |
26009 | _swigt__p_wxPyTextDataObject, | |
26010 | _swigt__p_wxBitmapDataObject, | |
26011 | _swigt__p_wxTextDataObject, | |
26012 | _swigt__p_wxDataObject, | |
26013 | _swigt__p_wxCustomDataObject, | |
26014 | _swigt__p_wxURLDataObject, | |
26015 | _swigt__p_wxMetafileDataObject, | |
26016 | _swigt__p_wxTimerRunner, | |
26017 | _swigt__p_wxLogWindow, | |
26018 | _swigt__p_wxTimeSpan, | |
26019 | _swigt__p_wxArrayString, | |
26020 | _swigt__p_wxWindowDisabler, | |
26021 | _swigt__p_wxToolTip, | |
26022 | _swigt__p_wxDataObjectComposite, | |
26023 | _swigt__p_wxFileConfig, | |
26024 | _swigt__p_wxSystemSettings, | |
26025 | _swigt__p_wxPyDataObjectSimple, | |
26026 | _swigt__p_wxDataObjectSimple, | |
26027 | _swigt__p_wxEvtHandler, | |
26028 | _swigt__p_wxRect, | |
26029 | _swigt__p_wxSingleInstanceChecker, | |
26030 | _swigt__p_wxFileTypeInfo, | |
26031 | _swigt__p_wxFrame, | |
26032 | _swigt__p_wxTimer, | |
26033 | _swigt__p_wxMimeTypesManager, | |
26034 | _swigt__p_wxPyArtProvider, | |
26035 | _swigt__p_wxPyTipProvider, | |
26036 | _swigt__p_wxTipProvider, | |
26037 | _swigt__p_wxJoystick, | |
26038 | _swigt__p_wxSystemOptions, | |
26039 | _swigt__p_wxPoint, | |
26040 | _swigt__p_wxJoystickEvent, | |
26041 | _swigt__p_wxCursor, | |
26042 | _swigt__p_wxObject, | |
26043 | _swigt__p_wxOutputStream, | |
26044 | _swigt__p_wxDateTime, | |
26045 | _swigt__p_wxPyDropSource, | |
26046 | _swigt__p_wxWindow, | |
26047 | _swigt__p_wxString, | |
26048 | _swigt__p_wxPyProcess, | |
26049 | _swigt__p_wxBitmap, | |
26050 | _swigt__p_wxConfig, | |
26051 | _swigt__p_wxChar, | |
26052 | _swigt__p_wxBusyInfo, | |
26053 | _swigt__p_wxPyDropTarget, | |
26054 | _swigt__p_wxPyTextDropTarget, | |
26055 | _swigt__p_wxPyFileDropTarget, | |
26056 | _swigt__p_wxProcessEvent, | |
26057 | _swigt__p_wxPyLog, | |
26058 | _swigt__p_wxLogNull, | |
26059 | _swigt__p_wxColour, | |
26060 | _swigt__p_wxConfigPathChanger, | |
26061 | _swigt__p_wxPyTimer, | |
26062 | _swigt__p_wxDateSpan, | |
26063 | 0 | |
26064 | }; | |
26065 | ||
26066 | ||
26067 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
26068 | ||
26069 | static swig_const_info swig_const_table[] = { | |
26070 | { SWIG_PY_INT, (char *)"SYS_OEM_FIXED_FONT", (long) wxSYS_OEM_FIXED_FONT, 0, 0, 0}, | |
26071 | { SWIG_PY_INT, (char *)"SYS_ANSI_FIXED_FONT", (long) wxSYS_ANSI_FIXED_FONT, 0, 0, 0}, | |
26072 | { SWIG_PY_INT, (char *)"SYS_ANSI_VAR_FONT", (long) wxSYS_ANSI_VAR_FONT, 0, 0, 0}, | |
26073 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FONT", (long) wxSYS_SYSTEM_FONT, 0, 0, 0}, | |
26074 | { SWIG_PY_INT, (char *)"SYS_DEVICE_DEFAULT_FONT", (long) wxSYS_DEVICE_DEFAULT_FONT, 0, 0, 0}, | |
26075 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_PALETTE", (long) wxSYS_DEFAULT_PALETTE, 0, 0, 0}, | |
26076 | { SWIG_PY_INT, (char *)"SYS_SYSTEM_FIXED_FONT", (long) wxSYS_SYSTEM_FIXED_FONT, 0, 0, 0}, | |
26077 | { SWIG_PY_INT, (char *)"SYS_DEFAULT_GUI_FONT", (long) wxSYS_DEFAULT_GUI_FONT, 0, 0, 0}, | |
26078 | { SWIG_PY_INT, (char *)"SYS_ICONTITLE_FONT", (long) wxSYS_ICONTITLE_FONT, 0, 0, 0}, | |
26079 | { SWIG_PY_INT, (char *)"SYS_COLOUR_SCROLLBAR", (long) wxSYS_COLOUR_SCROLLBAR, 0, 0, 0}, | |
26080 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BACKGROUND", (long) wxSYS_COLOUR_BACKGROUND, 0, 0, 0}, | |
26081 | { SWIG_PY_INT, (char *)"SYS_COLOUR_DESKTOP", (long) wxSYS_COLOUR_DESKTOP, 0, 0, 0}, | |
26082 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVECAPTION", (long) wxSYS_COLOUR_ACTIVECAPTION, 0, 0, 0}, | |
26083 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTION", (long) wxSYS_COLOUR_INACTIVECAPTION, 0, 0, 0}, | |
26084 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENU", (long) wxSYS_COLOUR_MENU, 0, 0, 0}, | |
26085 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOW", (long) wxSYS_COLOUR_WINDOW, 0, 0, 0}, | |
26086 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWFRAME", (long) wxSYS_COLOUR_WINDOWFRAME, 0, 0, 0}, | |
26087 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUTEXT", (long) wxSYS_COLOUR_MENUTEXT, 0, 0, 0}, | |
26088 | { SWIG_PY_INT, (char *)"SYS_COLOUR_WINDOWTEXT", (long) wxSYS_COLOUR_WINDOWTEXT, 0, 0, 0}, | |
26089 | { SWIG_PY_INT, (char *)"SYS_COLOUR_CAPTIONTEXT", (long) wxSYS_COLOUR_CAPTIONTEXT, 0, 0, 0}, | |
26090 | { SWIG_PY_INT, (char *)"SYS_COLOUR_ACTIVEBORDER", (long) wxSYS_COLOUR_ACTIVEBORDER, 0, 0, 0}, | |
26091 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVEBORDER", (long) wxSYS_COLOUR_INACTIVEBORDER, 0, 0, 0}, | |
26092 | { SWIG_PY_INT, (char *)"SYS_COLOUR_APPWORKSPACE", (long) wxSYS_COLOUR_APPWORKSPACE, 0, 0, 0}, | |
26093 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHT", (long) wxSYS_COLOUR_HIGHLIGHT, 0, 0, 0}, | |
26094 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HIGHLIGHTTEXT", (long) wxSYS_COLOUR_HIGHLIGHTTEXT, 0, 0, 0}, | |
26095 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNFACE", (long) wxSYS_COLOUR_BTNFACE, 0, 0, 0}, | |
26096 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DFACE", (long) wxSYS_COLOUR_3DFACE, 0, 0, 0}, | |
26097 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNSHADOW", (long) wxSYS_COLOUR_BTNSHADOW, 0, 0, 0}, | |
26098 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DSHADOW", (long) wxSYS_COLOUR_3DSHADOW, 0, 0, 0}, | |
26099 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRAYTEXT", (long) wxSYS_COLOUR_GRAYTEXT, 0, 0, 0}, | |
26100 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNTEXT", (long) wxSYS_COLOUR_BTNTEXT, 0, 0, 0}, | |
26101 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INACTIVECAPTIONTEXT", (long) wxSYS_COLOUR_INACTIVECAPTIONTEXT, 0, 0, 0}, | |
26102 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHIGHLIGHT", (long) wxSYS_COLOUR_BTNHIGHLIGHT, 0, 0, 0}, | |
26103 | { SWIG_PY_INT, (char *)"SYS_COLOUR_BTNHILIGHT", (long) wxSYS_COLOUR_BTNHILIGHT, 0, 0, 0}, | |
26104 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHIGHLIGHT", (long) wxSYS_COLOUR_3DHIGHLIGHT, 0, 0, 0}, | |
26105 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DHILIGHT", (long) wxSYS_COLOUR_3DHILIGHT, 0, 0, 0}, | |
26106 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DDKSHADOW", (long) wxSYS_COLOUR_3DDKSHADOW, 0, 0, 0}, | |
26107 | { SWIG_PY_INT, (char *)"SYS_COLOUR_3DLIGHT", (long) wxSYS_COLOUR_3DLIGHT, 0, 0, 0}, | |
26108 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOTEXT", (long) wxSYS_COLOUR_INFOTEXT, 0, 0, 0}, | |
26109 | { SWIG_PY_INT, (char *)"SYS_COLOUR_INFOBK", (long) wxSYS_COLOUR_INFOBK, 0, 0, 0}, | |
26110 | { SWIG_PY_INT, (char *)"SYS_COLOUR_LISTBOX", (long) wxSYS_COLOUR_LISTBOX, 0, 0, 0}, | |
26111 | { SWIG_PY_INT, (char *)"SYS_COLOUR_HOTLIGHT", (long) wxSYS_COLOUR_HOTLIGHT, 0, 0, 0}, | |
26112 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTACTIVECAPTION, 0, 0, 0}, | |
26113 | { SWIG_PY_INT, (char *)"SYS_COLOUR_GRADIENTINACTIVECAPTION", (long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION, 0, 0, 0}, | |
26114 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUHILIGHT", (long) wxSYS_COLOUR_MENUHILIGHT, 0, 0, 0}, | |
26115 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MENUBAR", (long) wxSYS_COLOUR_MENUBAR, 0, 0, 0}, | |
26116 | { SWIG_PY_INT, (char *)"SYS_COLOUR_MAX", (long) wxSYS_COLOUR_MAX, 0, 0, 0}, | |
26117 | { SWIG_PY_INT, (char *)"SYS_MOUSE_BUTTONS", (long) wxSYS_MOUSE_BUTTONS, 0, 0, 0}, | |
26118 | { SWIG_PY_INT, (char *)"SYS_BORDER_X", (long) wxSYS_BORDER_X, 0, 0, 0}, | |
26119 | { SWIG_PY_INT, (char *)"SYS_BORDER_Y", (long) wxSYS_BORDER_Y, 0, 0, 0}, | |
26120 | { SWIG_PY_INT, (char *)"SYS_CURSOR_X", (long) wxSYS_CURSOR_X, 0, 0, 0}, | |
26121 | { SWIG_PY_INT, (char *)"SYS_CURSOR_Y", (long) wxSYS_CURSOR_Y, 0, 0, 0}, | |
26122 | { SWIG_PY_INT, (char *)"SYS_DCLICK_X", (long) wxSYS_DCLICK_X, 0, 0, 0}, | |
26123 | { SWIG_PY_INT, (char *)"SYS_DCLICK_Y", (long) wxSYS_DCLICK_Y, 0, 0, 0}, | |
26124 | { SWIG_PY_INT, (char *)"SYS_DRAG_X", (long) wxSYS_DRAG_X, 0, 0, 0}, | |
26125 | { SWIG_PY_INT, (char *)"SYS_DRAG_Y", (long) wxSYS_DRAG_Y, 0, 0, 0}, | |
26126 | { SWIG_PY_INT, (char *)"SYS_EDGE_X", (long) wxSYS_EDGE_X, 0, 0, 0}, | |
26127 | { SWIG_PY_INT, (char *)"SYS_EDGE_Y", (long) wxSYS_EDGE_Y, 0, 0, 0}, | |
26128 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_X", (long) wxSYS_HSCROLL_ARROW_X, 0, 0, 0}, | |
26129 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_ARROW_Y", (long) wxSYS_HSCROLL_ARROW_Y, 0, 0, 0}, | |
26130 | { SWIG_PY_INT, (char *)"SYS_HTHUMB_X", (long) wxSYS_HTHUMB_X, 0, 0, 0}, | |
26131 | { SWIG_PY_INT, (char *)"SYS_ICON_X", (long) wxSYS_ICON_X, 0, 0, 0}, | |
26132 | { SWIG_PY_INT, (char *)"SYS_ICON_Y", (long) wxSYS_ICON_Y, 0, 0, 0}, | |
26133 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_X", (long) wxSYS_ICONSPACING_X, 0, 0, 0}, | |
26134 | { SWIG_PY_INT, (char *)"SYS_ICONSPACING_Y", (long) wxSYS_ICONSPACING_Y, 0, 0, 0}, | |
26135 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_X", (long) wxSYS_WINDOWMIN_X, 0, 0, 0}, | |
26136 | { SWIG_PY_INT, (char *)"SYS_WINDOWMIN_Y", (long) wxSYS_WINDOWMIN_Y, 0, 0, 0}, | |
26137 | { SWIG_PY_INT, (char *)"SYS_SCREEN_X", (long) wxSYS_SCREEN_X, 0, 0, 0}, | |
26138 | { SWIG_PY_INT, (char *)"SYS_SCREEN_Y", (long) wxSYS_SCREEN_Y, 0, 0, 0}, | |
26139 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_X", (long) wxSYS_FRAMESIZE_X, 0, 0, 0}, | |
26140 | { SWIG_PY_INT, (char *)"SYS_FRAMESIZE_Y", (long) wxSYS_FRAMESIZE_Y, 0, 0, 0}, | |
26141 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_X", (long) wxSYS_SMALLICON_X, 0, 0, 0}, | |
26142 | { SWIG_PY_INT, (char *)"SYS_SMALLICON_Y", (long) wxSYS_SMALLICON_Y, 0, 0, 0}, | |
26143 | { SWIG_PY_INT, (char *)"SYS_HSCROLL_Y", (long) wxSYS_HSCROLL_Y, 0, 0, 0}, | |
26144 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_X", (long) wxSYS_VSCROLL_X, 0, 0, 0}, | |
26145 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_X", (long) wxSYS_VSCROLL_ARROW_X, 0, 0, 0}, | |
26146 | { SWIG_PY_INT, (char *)"SYS_VSCROLL_ARROW_Y", (long) wxSYS_VSCROLL_ARROW_Y, 0, 0, 0}, | |
26147 | { SWIG_PY_INT, (char *)"SYS_VTHUMB_Y", (long) wxSYS_VTHUMB_Y, 0, 0, 0}, | |
26148 | { SWIG_PY_INT, (char *)"SYS_CAPTION_Y", (long) wxSYS_CAPTION_Y, 0, 0, 0}, | |
26149 | { SWIG_PY_INT, (char *)"SYS_MENU_Y", (long) wxSYS_MENU_Y, 0, 0, 0}, | |
26150 | { SWIG_PY_INT, (char *)"SYS_NETWORK_PRESENT", (long) wxSYS_NETWORK_PRESENT, 0, 0, 0}, | |
26151 | { SWIG_PY_INT, (char *)"SYS_PENWINDOWS_PRESENT", (long) wxSYS_PENWINDOWS_PRESENT, 0, 0, 0}, | |
26152 | { SWIG_PY_INT, (char *)"SYS_SHOW_SOUNDS", (long) wxSYS_SHOW_SOUNDS, 0, 0, 0}, | |
26153 | { SWIG_PY_INT, (char *)"SYS_SWAP_BUTTONS", (long) wxSYS_SWAP_BUTTONS, 0, 0, 0}, | |
26154 | { SWIG_PY_INT, (char *)"SYS_CAN_DRAW_FRAME_DECORATIONS", (long) wxSYS_CAN_DRAW_FRAME_DECORATIONS, 0, 0, 0}, | |
26155 | { SWIG_PY_INT, (char *)"SYS_CAN_ICONIZE_FRAME", (long) wxSYS_CAN_ICONIZE_FRAME, 0, 0, 0}, | |
26156 | { SWIG_PY_INT, (char *)"SYS_SCREEN_NONE", (long) wxSYS_SCREEN_NONE, 0, 0, 0}, | |
26157 | { SWIG_PY_INT, (char *)"SYS_SCREEN_TINY", (long) wxSYS_SCREEN_TINY, 0, 0, 0}, | |
26158 | { SWIG_PY_INT, (char *)"SYS_SCREEN_PDA", (long) wxSYS_SCREEN_PDA, 0, 0, 0}, | |
26159 | { SWIG_PY_INT, (char *)"SYS_SCREEN_SMALL", (long) wxSYS_SCREEN_SMALL, 0, 0, 0}, | |
26160 | { SWIG_PY_INT, (char *)"SYS_SCREEN_DESKTOP", (long) wxSYS_SCREEN_DESKTOP, 0, 0, 0}, | |
26161 | { SWIG_PY_INT, (char *)"SHUTDOWN_POWEROFF", (long) wxSHUTDOWN_POWEROFF, 0, 0, 0}, | |
26162 | { SWIG_PY_INT, (char *)"SHUTDOWN_REBOOT", (long) wxSHUTDOWN_REBOOT, 0, 0, 0}, | |
26163 | { SWIG_PY_INT, (char *)"TIMER_CONTINUOUS", (long) wxTIMER_CONTINUOUS, 0, 0, 0}, | |
26164 | { SWIG_PY_INT, (char *)"TIMER_ONE_SHOT", (long) wxTIMER_ONE_SHOT, 0, 0, 0}, | |
26165 | { SWIG_PY_INT, (char *)"wxEVT_TIMER", (long) wxEVT_TIMER, 0, 0, 0}, | |
26166 | { SWIG_PY_INT, (char *)"LOG_FatalError", (long) wxLOG_FatalError, 0, 0, 0}, | |
26167 | { SWIG_PY_INT, (char *)"LOG_Error", (long) wxLOG_Error, 0, 0, 0}, | |
26168 | { SWIG_PY_INT, (char *)"LOG_Warning", (long) wxLOG_Warning, 0, 0, 0}, | |
26169 | { SWIG_PY_INT, (char *)"LOG_Message", (long) wxLOG_Message, 0, 0, 0}, | |
26170 | { SWIG_PY_INT, (char *)"LOG_Status", (long) wxLOG_Status, 0, 0, 0}, | |
26171 | { SWIG_PY_INT, (char *)"LOG_Info", (long) wxLOG_Info, 0, 0, 0}, | |
26172 | { SWIG_PY_INT, (char *)"LOG_Debug", (long) wxLOG_Debug, 0, 0, 0}, | |
26173 | { SWIG_PY_INT, (char *)"LOG_Trace", (long) wxLOG_Trace, 0, 0, 0}, | |
26174 | { SWIG_PY_INT, (char *)"LOG_Progress", (long) wxLOG_Progress, 0, 0, 0}, | |
26175 | { SWIG_PY_INT, (char *)"LOG_User", (long) wxLOG_User, 0, 0, 0}, | |
26176 | { SWIG_PY_INT, (char *)"LOG_Max", (long) wxLOG_Max, 0, 0, 0}, | |
26177 | { SWIG_PY_STRING, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", 0}, | |
26178 | { SWIG_PY_STRING, (char*)"TRACE_Messages", 0, 0, (void *)"messages", 0}, | |
26179 | { SWIG_PY_STRING, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", 0}, | |
26180 | { SWIG_PY_STRING, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", 0}, | |
26181 | { SWIG_PY_STRING, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", 0}, | |
26182 | { SWIG_PY_INT, (char *)"TraceMemAlloc", (long) 0x0001, 0, 0, 0}, | |
26183 | { SWIG_PY_INT, (char *)"TraceMessages", (long) 0x0002, 0, 0, 0}, | |
26184 | { SWIG_PY_INT, (char *)"TraceResAlloc", (long) 0x0004, 0, 0, 0}, | |
26185 | { SWIG_PY_INT, (char *)"TraceRefCount", (long) 0x0008, 0, 0, 0}, | |
26186 | { SWIG_PY_INT, (char *)"TraceOleCalls", (long) 0x0100, 0, 0, 0}, | |
26187 | { SWIG_PY_INT, (char *)"PROCESS_DEFAULT", (long) wxPROCESS_DEFAULT, 0, 0, 0}, | |
26188 | { SWIG_PY_INT, (char *)"PROCESS_REDIRECT", (long) wxPROCESS_REDIRECT, 0, 0, 0}, | |
26189 | { SWIG_PY_INT, (char *)"KILL_OK", (long) wxKILL_OK, 0, 0, 0}, | |
26190 | { SWIG_PY_INT, (char *)"KILL_BAD_SIGNAL", (long) wxKILL_BAD_SIGNAL, 0, 0, 0}, | |
26191 | { SWIG_PY_INT, (char *)"KILL_ACCESS_DENIED", (long) wxKILL_ACCESS_DENIED, 0, 0, 0}, | |
26192 | { SWIG_PY_INT, (char *)"KILL_NO_PROCESS", (long) wxKILL_NO_PROCESS, 0, 0, 0}, | |
26193 | { SWIG_PY_INT, (char *)"KILL_ERROR", (long) wxKILL_ERROR, 0, 0, 0}, | |
26194 | { SWIG_PY_INT, (char *)"SIGNONE", (long) wxSIGNONE, 0, 0, 0}, | |
26195 | { SWIG_PY_INT, (char *)"SIGHUP", (long) wxSIGHUP, 0, 0, 0}, | |
26196 | { SWIG_PY_INT, (char *)"SIGINT", (long) wxSIGINT, 0, 0, 0}, | |
26197 | { SWIG_PY_INT, (char *)"SIGQUIT", (long) wxSIGQUIT, 0, 0, 0}, | |
26198 | { SWIG_PY_INT, (char *)"SIGILL", (long) wxSIGILL, 0, 0, 0}, | |
26199 | { SWIG_PY_INT, (char *)"SIGTRAP", (long) wxSIGTRAP, 0, 0, 0}, | |
26200 | { SWIG_PY_INT, (char *)"SIGABRT", (long) wxSIGABRT, 0, 0, 0}, | |
26201 | { SWIG_PY_INT, (char *)"SIGIOT", (long) wxSIGIOT, 0, 0, 0}, | |
26202 | { SWIG_PY_INT, (char *)"SIGEMT", (long) wxSIGEMT, 0, 0, 0}, | |
26203 | { SWIG_PY_INT, (char *)"SIGFPE", (long) wxSIGFPE, 0, 0, 0}, | |
26204 | { SWIG_PY_INT, (char *)"SIGKILL", (long) wxSIGKILL, 0, 0, 0}, | |
26205 | { SWIG_PY_INT, (char *)"SIGBUS", (long) wxSIGBUS, 0, 0, 0}, | |
26206 | { SWIG_PY_INT, (char *)"SIGSEGV", (long) wxSIGSEGV, 0, 0, 0}, | |
26207 | { SWIG_PY_INT, (char *)"SIGSYS", (long) wxSIGSYS, 0, 0, 0}, | |
26208 | { SWIG_PY_INT, (char *)"SIGPIPE", (long) wxSIGPIPE, 0, 0, 0}, | |
26209 | { SWIG_PY_INT, (char *)"SIGALRM", (long) wxSIGALRM, 0, 0, 0}, | |
26210 | { SWIG_PY_INT, (char *)"SIGTERM", (long) wxSIGTERM, 0, 0, 0}, | |
26211 | { SWIG_PY_INT, (char *)"wxEVT_END_PROCESS", (long) wxEVT_END_PROCESS, 0, 0, 0}, | |
26212 | { SWIG_PY_INT, (char *)"EXEC_ASYNC", (long) wxEXEC_ASYNC, 0, 0, 0}, | |
26213 | { SWIG_PY_INT, (char *)"EXEC_SYNC", (long) wxEXEC_SYNC, 0, 0, 0}, | |
26214 | { SWIG_PY_INT, (char *)"EXEC_NOHIDE", (long) wxEXEC_NOHIDE, 0, 0, 0}, | |
26215 | { SWIG_PY_INT, (char *)"EXEC_MAKE_GROUP_LEADER", (long) wxEXEC_MAKE_GROUP_LEADER, 0, 0, 0}, | |
26216 | { SWIG_PY_INT, (char *)"JOYSTICK1", (long) wxJOYSTICK1, 0, 0, 0}, | |
26217 | { SWIG_PY_INT, (char *)"JOYSTICK2", (long) wxJOYSTICK2, 0, 0, 0}, | |
26218 | { SWIG_PY_INT, (char *)"JOY_BUTTON_ANY", (long) wxJOY_BUTTON_ANY, 0, 0, 0}, | |
26219 | { SWIG_PY_INT, (char *)"JOY_BUTTON1", (long) wxJOY_BUTTON1, 0, 0, 0}, | |
26220 | { SWIG_PY_INT, (char *)"JOY_BUTTON2", (long) wxJOY_BUTTON2, 0, 0, 0}, | |
26221 | { SWIG_PY_INT, (char *)"JOY_BUTTON3", (long) wxJOY_BUTTON3, 0, 0, 0}, | |
26222 | { SWIG_PY_INT, (char *)"JOY_BUTTON4", (long) wxJOY_BUTTON4, 0, 0, 0}, | |
26223 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_DOWN", (long) wxEVT_JOY_BUTTON_DOWN, 0, 0, 0}, | |
26224 | { SWIG_PY_INT, (char *)"wxEVT_JOY_BUTTON_UP", (long) wxEVT_JOY_BUTTON_UP, 0, 0, 0}, | |
26225 | { SWIG_PY_INT, (char *)"wxEVT_JOY_MOVE", (long) wxEVT_JOY_MOVE, 0, 0, 0}, | |
26226 | { SWIG_PY_INT, (char *)"wxEVT_JOY_ZMOVE", (long) wxEVT_JOY_ZMOVE, 0, 0, 0}, | |
26227 | { SWIG_PY_INT, (char *)"MAILCAP_STANDARD", (long) wxMAILCAP_STANDARD, 0, 0, 0}, | |
26228 | { SWIG_PY_INT, (char *)"MAILCAP_NETSCAPE", (long) wxMAILCAP_NETSCAPE, 0, 0, 0}, | |
26229 | { SWIG_PY_INT, (char *)"MAILCAP_KDE", (long) wxMAILCAP_KDE, 0, 0, 0}, | |
26230 | { SWIG_PY_INT, (char *)"MAILCAP_GNOME", (long) wxMAILCAP_GNOME, 0, 0, 0}, | |
26231 | { SWIG_PY_INT, (char *)"MAILCAP_ALL", (long) wxMAILCAP_ALL, 0, 0, 0}, | |
26232 | { SWIG_PY_INT, (char *)"CONFIG_USE_LOCAL_FILE", (long) wxCONFIG_USE_LOCAL_FILE, 0, 0, 0}, | |
26233 | { SWIG_PY_INT, (char *)"CONFIG_USE_GLOBAL_FILE", (long) wxCONFIG_USE_GLOBAL_FILE, 0, 0, 0}, | |
26234 | { SWIG_PY_INT, (char *)"CONFIG_USE_RELATIVE_PATH", (long) wxCONFIG_USE_RELATIVE_PATH, 0, 0, 0}, | |
26235 | { SWIG_PY_INT, (char *)"CONFIG_USE_NO_ESCAPE_CHARACTERS", (long) wxCONFIG_USE_NO_ESCAPE_CHARACTERS, 0, 0, 0}, | |
26236 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Unknown", (long) wxConfigBase::Type_Unknown, 0, 0, 0}, | |
26237 | { SWIG_PY_INT, (char *)"ConfigBase_Type_String", (long) wxConfigBase::Type_String, 0, 0, 0}, | |
26238 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Boolean", (long) wxConfigBase::Type_Boolean, 0, 0, 0}, | |
26239 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Integer", (long) wxConfigBase::Type_Integer, 0, 0, 0}, | |
26240 | { SWIG_PY_INT, (char *)"ConfigBase_Type_Float", (long) wxConfigBase::Type_Float, 0, 0, 0}, | |
26241 | { SWIG_PY_INT, (char *)"DateTime_Local", (long) wxDateTime::Local, 0, 0, 0}, | |
26242 | { SWIG_PY_INT, (char *)"DateTime_GMT_12", (long) wxDateTime::GMT_12, 0, 0, 0}, | |
26243 | { SWIG_PY_INT, (char *)"DateTime_GMT_11", (long) wxDateTime::GMT_11, 0, 0, 0}, | |
26244 | { SWIG_PY_INT, (char *)"DateTime_GMT_10", (long) wxDateTime::GMT_10, 0, 0, 0}, | |
26245 | { SWIG_PY_INT, (char *)"DateTime_GMT_9", (long) wxDateTime::GMT_9, 0, 0, 0}, | |
26246 | { SWIG_PY_INT, (char *)"DateTime_GMT_8", (long) wxDateTime::GMT_8, 0, 0, 0}, | |
26247 | { SWIG_PY_INT, (char *)"DateTime_GMT_7", (long) wxDateTime::GMT_7, 0, 0, 0}, | |
26248 | { SWIG_PY_INT, (char *)"DateTime_GMT_6", (long) wxDateTime::GMT_6, 0, 0, 0}, | |
26249 | { SWIG_PY_INT, (char *)"DateTime_GMT_5", (long) wxDateTime::GMT_5, 0, 0, 0}, | |
26250 | { SWIG_PY_INT, (char *)"DateTime_GMT_4", (long) wxDateTime::GMT_4, 0, 0, 0}, | |
26251 | { SWIG_PY_INT, (char *)"DateTime_GMT_3", (long) wxDateTime::GMT_3, 0, 0, 0}, | |
26252 | { SWIG_PY_INT, (char *)"DateTime_GMT_2", (long) wxDateTime::GMT_2, 0, 0, 0}, | |
26253 | { SWIG_PY_INT, (char *)"DateTime_GMT_1", (long) wxDateTime::GMT_1, 0, 0, 0}, | |
26254 | { SWIG_PY_INT, (char *)"DateTime_GMT0", (long) wxDateTime::GMT0, 0, 0, 0}, | |
26255 | { SWIG_PY_INT, (char *)"DateTime_GMT1", (long) wxDateTime::GMT1, 0, 0, 0}, | |
26256 | { SWIG_PY_INT, (char *)"DateTime_GMT2", (long) wxDateTime::GMT2, 0, 0, 0}, | |
26257 | { SWIG_PY_INT, (char *)"DateTime_GMT3", (long) wxDateTime::GMT3, 0, 0, 0}, | |
26258 | { SWIG_PY_INT, (char *)"DateTime_GMT4", (long) wxDateTime::GMT4, 0, 0, 0}, | |
26259 | { SWIG_PY_INT, (char *)"DateTime_GMT5", (long) wxDateTime::GMT5, 0, 0, 0}, | |
26260 | { SWIG_PY_INT, (char *)"DateTime_GMT6", (long) wxDateTime::GMT6, 0, 0, 0}, | |
26261 | { SWIG_PY_INT, (char *)"DateTime_GMT7", (long) wxDateTime::GMT7, 0, 0, 0}, | |
26262 | { SWIG_PY_INT, (char *)"DateTime_GMT8", (long) wxDateTime::GMT8, 0, 0, 0}, | |
26263 | { SWIG_PY_INT, (char *)"DateTime_GMT9", (long) wxDateTime::GMT9, 0, 0, 0}, | |
26264 | { SWIG_PY_INT, (char *)"DateTime_GMT10", (long) wxDateTime::GMT10, 0, 0, 0}, | |
26265 | { SWIG_PY_INT, (char *)"DateTime_GMT11", (long) wxDateTime::GMT11, 0, 0, 0}, | |
26266 | { SWIG_PY_INT, (char *)"DateTime_GMT12", (long) wxDateTime::GMT12, 0, 0, 0}, | |
26267 | { SWIG_PY_INT, (char *)"DateTime_WET", (long) wxDateTime::WET, 0, 0, 0}, | |
26268 | { SWIG_PY_INT, (char *)"DateTime_WEST", (long) wxDateTime::WEST, 0, 0, 0}, | |
26269 | { SWIG_PY_INT, (char *)"DateTime_CET", (long) wxDateTime::CET, 0, 0, 0}, | |
26270 | { SWIG_PY_INT, (char *)"DateTime_CEST", (long) wxDateTime::CEST, 0, 0, 0}, | |
26271 | { SWIG_PY_INT, (char *)"DateTime_EET", (long) wxDateTime::EET, 0, 0, 0}, | |
26272 | { SWIG_PY_INT, (char *)"DateTime_EEST", (long) wxDateTime::EEST, 0, 0, 0}, | |
26273 | { SWIG_PY_INT, (char *)"DateTime_MSK", (long) wxDateTime::MSK, 0, 0, 0}, | |
26274 | { SWIG_PY_INT, (char *)"DateTime_MSD", (long) wxDateTime::MSD, 0, 0, 0}, | |
26275 | { SWIG_PY_INT, (char *)"DateTime_AST", (long) wxDateTime::AST, 0, 0, 0}, | |
26276 | { SWIG_PY_INT, (char *)"DateTime_ADT", (long) wxDateTime::ADT, 0, 0, 0}, | |
26277 | { SWIG_PY_INT, (char *)"DateTime_EST", (long) wxDateTime::EST, 0, 0, 0}, | |
26278 | { SWIG_PY_INT, (char *)"DateTime_EDT", (long) wxDateTime::EDT, 0, 0, 0}, | |
26279 | { SWIG_PY_INT, (char *)"DateTime_CST", (long) wxDateTime::CST, 0, 0, 0}, | |
26280 | { SWIG_PY_INT, (char *)"DateTime_CDT", (long) wxDateTime::CDT, 0, 0, 0}, | |
26281 | { SWIG_PY_INT, (char *)"DateTime_MST", (long) wxDateTime::MST, 0, 0, 0}, | |
26282 | { SWIG_PY_INT, (char *)"DateTime_MDT", (long) wxDateTime::MDT, 0, 0, 0}, | |
26283 | { SWIG_PY_INT, (char *)"DateTime_PST", (long) wxDateTime::PST, 0, 0, 0}, | |
26284 | { SWIG_PY_INT, (char *)"DateTime_PDT", (long) wxDateTime::PDT, 0, 0, 0}, | |
26285 | { SWIG_PY_INT, (char *)"DateTime_HST", (long) wxDateTime::HST, 0, 0, 0}, | |
26286 | { SWIG_PY_INT, (char *)"DateTime_AKST", (long) wxDateTime::AKST, 0, 0, 0}, | |
26287 | { SWIG_PY_INT, (char *)"DateTime_AKDT", (long) wxDateTime::AKDT, 0, 0, 0}, | |
26288 | { SWIG_PY_INT, (char *)"DateTime_A_WST", (long) wxDateTime::A_WST, 0, 0, 0}, | |
26289 | { SWIG_PY_INT, (char *)"DateTime_A_CST", (long) wxDateTime::A_CST, 0, 0, 0}, | |
26290 | { SWIG_PY_INT, (char *)"DateTime_A_EST", (long) wxDateTime::A_EST, 0, 0, 0}, | |
26291 | { SWIG_PY_INT, (char *)"DateTime_A_ESST", (long) wxDateTime::A_ESST, 0, 0, 0}, | |
26292 | { SWIG_PY_INT, (char *)"DateTime_UTC", (long) wxDateTime::UTC, 0, 0, 0}, | |
26293 | { SWIG_PY_INT, (char *)"DateTime_Gregorian", (long) wxDateTime::Gregorian, 0, 0, 0}, | |
26294 | { SWIG_PY_INT, (char *)"DateTime_Julian", (long) wxDateTime::Julian, 0, 0, 0}, | |
26295 | { SWIG_PY_INT, (char *)"DateTime_Gr_Unknown", (long) wxDateTime::Gr_Unknown, 0, 0, 0}, | |
26296 | { SWIG_PY_INT, (char *)"DateTime_Gr_Standard", (long) wxDateTime::Gr_Standard, 0, 0, 0}, | |
26297 | { SWIG_PY_INT, (char *)"DateTime_Gr_Alaska", (long) wxDateTime::Gr_Alaska, 0, 0, 0}, | |
26298 | { SWIG_PY_INT, (char *)"DateTime_Gr_Albania", (long) wxDateTime::Gr_Albania, 0, 0, 0}, | |
26299 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria", (long) wxDateTime::Gr_Austria, 0, 0, 0}, | |
26300 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Brixen", (long) wxDateTime::Gr_Austria_Brixen, 0, 0, 0}, | |
26301 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Salzburg", (long) wxDateTime::Gr_Austria_Salzburg, 0, 0, 0}, | |
26302 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Tyrol", (long) wxDateTime::Gr_Austria_Tyrol, 0, 0, 0}, | |
26303 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Carinthia", (long) wxDateTime::Gr_Austria_Carinthia, 0, 0, 0}, | |
26304 | { SWIG_PY_INT, (char *)"DateTime_Gr_Austria_Styria", (long) wxDateTime::Gr_Austria_Styria, 0, 0, 0}, | |
26305 | { SWIG_PY_INT, (char *)"DateTime_Gr_Belgium", (long) wxDateTime::Gr_Belgium, 0, 0, 0}, | |
26306 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria", (long) wxDateTime::Gr_Bulgaria, 0, 0, 0}, | |
26307 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_1", (long) wxDateTime::Gr_Bulgaria_1, 0, 0, 0}, | |
26308 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_2", (long) wxDateTime::Gr_Bulgaria_2, 0, 0, 0}, | |
26309 | { SWIG_PY_INT, (char *)"DateTime_Gr_Bulgaria_3", (long) wxDateTime::Gr_Bulgaria_3, 0, 0, 0}, | |
26310 | { SWIG_PY_INT, (char *)"DateTime_Gr_Canada", (long) wxDateTime::Gr_Canada, 0, 0, 0}, | |
26311 | { SWIG_PY_INT, (char *)"DateTime_Gr_China", (long) wxDateTime::Gr_China, 0, 0, 0}, | |
26312 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_1", (long) wxDateTime::Gr_China_1, 0, 0, 0}, | |
26313 | { SWIG_PY_INT, (char *)"DateTime_Gr_China_2", (long) wxDateTime::Gr_China_2, 0, 0, 0}, | |
26314 | { SWIG_PY_INT, (char *)"DateTime_Gr_Czechoslovakia", (long) wxDateTime::Gr_Czechoslovakia, 0, 0, 0}, | |
26315 | { SWIG_PY_INT, (char *)"DateTime_Gr_Denmark", (long) wxDateTime::Gr_Denmark, 0, 0, 0}, | |
26316 | { SWIG_PY_INT, (char *)"DateTime_Gr_Egypt", (long) wxDateTime::Gr_Egypt, 0, 0, 0}, | |
26317 | { SWIG_PY_INT, (char *)"DateTime_Gr_Estonia", (long) wxDateTime::Gr_Estonia, 0, 0, 0}, | |
26318 | { SWIG_PY_INT, (char *)"DateTime_Gr_Finland", (long) wxDateTime::Gr_Finland, 0, 0, 0}, | |
26319 | { SWIG_PY_INT, (char *)"DateTime_Gr_France", (long) wxDateTime::Gr_France, 0, 0, 0}, | |
26320 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Alsace", (long) wxDateTime::Gr_France_Alsace, 0, 0, 0}, | |
26321 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Lorraine", (long) wxDateTime::Gr_France_Lorraine, 0, 0, 0}, | |
26322 | { SWIG_PY_INT, (char *)"DateTime_Gr_France_Strasbourg", (long) wxDateTime::Gr_France_Strasbourg, 0, 0, 0}, | |
26323 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany", (long) wxDateTime::Gr_Germany, 0, 0, 0}, | |
26324 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Catholic", (long) wxDateTime::Gr_Germany_Catholic, 0, 0, 0}, | |
26325 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Prussia", (long) wxDateTime::Gr_Germany_Prussia, 0, 0, 0}, | |
26326 | { SWIG_PY_INT, (char *)"DateTime_Gr_Germany_Protestant", (long) wxDateTime::Gr_Germany_Protestant, 0, 0, 0}, | |
26327 | { SWIG_PY_INT, (char *)"DateTime_Gr_GreatBritain", (long) wxDateTime::Gr_GreatBritain, 0, 0, 0}, | |
26328 | { SWIG_PY_INT, (char *)"DateTime_Gr_Greece", (long) wxDateTime::Gr_Greece, 0, 0, 0}, | |
26329 | { SWIG_PY_INT, (char *)"DateTime_Gr_Hungary", (long) wxDateTime::Gr_Hungary, 0, 0, 0}, | |
26330 | { SWIG_PY_INT, (char *)"DateTime_Gr_Ireland", (long) wxDateTime::Gr_Ireland, 0, 0, 0}, | |
26331 | { SWIG_PY_INT, (char *)"DateTime_Gr_Italy", (long) wxDateTime::Gr_Italy, 0, 0, 0}, | |
26332 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan", (long) wxDateTime::Gr_Japan, 0, 0, 0}, | |
26333 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_1", (long) wxDateTime::Gr_Japan_1, 0, 0, 0}, | |
26334 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_2", (long) wxDateTime::Gr_Japan_2, 0, 0, 0}, | |
26335 | { SWIG_PY_INT, (char *)"DateTime_Gr_Japan_3", (long) wxDateTime::Gr_Japan_3, 0, 0, 0}, | |
26336 | { SWIG_PY_INT, (char *)"DateTime_Gr_Latvia", (long) wxDateTime::Gr_Latvia, 0, 0, 0}, | |
26337 | { SWIG_PY_INT, (char *)"DateTime_Gr_Lithuania", (long) wxDateTime::Gr_Lithuania, 0, 0, 0}, | |
26338 | { SWIG_PY_INT, (char *)"DateTime_Gr_Luxemburg", (long) wxDateTime::Gr_Luxemburg, 0, 0, 0}, | |
26339 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands", (long) wxDateTime::Gr_Netherlands, 0, 0, 0}, | |
26340 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Groningen", (long) wxDateTime::Gr_Netherlands_Groningen, 0, 0, 0}, | |
26341 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Gelderland", (long) wxDateTime::Gr_Netherlands_Gelderland, 0, 0, 0}, | |
26342 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Utrecht", (long) wxDateTime::Gr_Netherlands_Utrecht, 0, 0, 0}, | |
26343 | { SWIG_PY_INT, (char *)"DateTime_Gr_Netherlands_Friesland", (long) wxDateTime::Gr_Netherlands_Friesland, 0, 0, 0}, | |
26344 | { SWIG_PY_INT, (char *)"DateTime_Gr_Norway", (long) wxDateTime::Gr_Norway, 0, 0, 0}, | |
26345 | { SWIG_PY_INT, (char *)"DateTime_Gr_Poland", (long) wxDateTime::Gr_Poland, 0, 0, 0}, | |
26346 | { SWIG_PY_INT, (char *)"DateTime_Gr_Portugal", (long) wxDateTime::Gr_Portugal, 0, 0, 0}, | |
26347 | { SWIG_PY_INT, (char *)"DateTime_Gr_Romania", (long) wxDateTime::Gr_Romania, 0, 0, 0}, | |
26348 | { SWIG_PY_INT, (char *)"DateTime_Gr_Russia", (long) wxDateTime::Gr_Russia, 0, 0, 0}, | |
26349 | { SWIG_PY_INT, (char *)"DateTime_Gr_Scotland", (long) wxDateTime::Gr_Scotland, 0, 0, 0}, | |
26350 | { SWIG_PY_INT, (char *)"DateTime_Gr_Spain", (long) wxDateTime::Gr_Spain, 0, 0, 0}, | |
26351 | { SWIG_PY_INT, (char *)"DateTime_Gr_Sweden", (long) wxDateTime::Gr_Sweden, 0, 0, 0}, | |
26352 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland", (long) wxDateTime::Gr_Switzerland, 0, 0, 0}, | |
26353 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Catholic", (long) wxDateTime::Gr_Switzerland_Catholic, 0, 0, 0}, | |
26354 | { SWIG_PY_INT, (char *)"DateTime_Gr_Switzerland_Protestant", (long) wxDateTime::Gr_Switzerland_Protestant, 0, 0, 0}, | |
26355 | { SWIG_PY_INT, (char *)"DateTime_Gr_Turkey", (long) wxDateTime::Gr_Turkey, 0, 0, 0}, | |
26356 | { SWIG_PY_INT, (char *)"DateTime_Gr_USA", (long) wxDateTime::Gr_USA, 0, 0, 0}, | |
26357 | { SWIG_PY_INT, (char *)"DateTime_Gr_Wales", (long) wxDateTime::Gr_Wales, 0, 0, 0}, | |
26358 | { SWIG_PY_INT, (char *)"DateTime_Gr_Yugoslavia", (long) wxDateTime::Gr_Yugoslavia, 0, 0, 0}, | |
26359 | { SWIG_PY_INT, (char *)"DateTime_Country_Unknown", (long) wxDateTime::Country_Unknown, 0, 0, 0}, | |
26360 | { SWIG_PY_INT, (char *)"DateTime_Country_Default", (long) wxDateTime::Country_Default, 0, 0, 0}, | |
26361 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_Start", (long) wxDateTime::Country_WesternEurope_Start, 0, 0, 0}, | |
26362 | { SWIG_PY_INT, (char *)"DateTime_Country_EEC", (long) wxDateTime::Country_EEC, 0, 0, 0}, | |
26363 | { SWIG_PY_INT, (char *)"DateTime_France", (long) wxDateTime::France, 0, 0, 0}, | |
26364 | { SWIG_PY_INT, (char *)"DateTime_Germany", (long) wxDateTime::Germany, 0, 0, 0}, | |
26365 | { SWIG_PY_INT, (char *)"DateTime_UK", (long) wxDateTime::UK, 0, 0, 0}, | |
26366 | { SWIG_PY_INT, (char *)"DateTime_Country_WesternEurope_End", (long) wxDateTime::Country_WesternEurope_End, 0, 0, 0}, | |
26367 | { SWIG_PY_INT, (char *)"DateTime_Russia", (long) wxDateTime::Russia, 0, 0, 0}, | |
26368 | { SWIG_PY_INT, (char *)"DateTime_USA", (long) wxDateTime::USA, 0, 0, 0}, | |
26369 | { SWIG_PY_INT, (char *)"DateTime_Jan", (long) wxDateTime::Jan, 0, 0, 0}, | |
26370 | { SWIG_PY_INT, (char *)"DateTime_Feb", (long) wxDateTime::Feb, 0, 0, 0}, | |
26371 | { SWIG_PY_INT, (char *)"DateTime_Mar", (long) wxDateTime::Mar, 0, 0, 0}, | |
26372 | { SWIG_PY_INT, (char *)"DateTime_Apr", (long) wxDateTime::Apr, 0, 0, 0}, | |
26373 | { SWIG_PY_INT, (char *)"DateTime_May", (long) wxDateTime::May, 0, 0, 0}, | |
26374 | { SWIG_PY_INT, (char *)"DateTime_Jun", (long) wxDateTime::Jun, 0, 0, 0}, | |
26375 | { SWIG_PY_INT, (char *)"DateTime_Jul", (long) wxDateTime::Jul, 0, 0, 0}, | |
26376 | { SWIG_PY_INT, (char *)"DateTime_Aug", (long) wxDateTime::Aug, 0, 0, 0}, | |
26377 | { SWIG_PY_INT, (char *)"DateTime_Sep", (long) wxDateTime::Sep, 0, 0, 0}, | |
26378 | { SWIG_PY_INT, (char *)"DateTime_Oct", (long) wxDateTime::Oct, 0, 0, 0}, | |
26379 | { SWIG_PY_INT, (char *)"DateTime_Nov", (long) wxDateTime::Nov, 0, 0, 0}, | |
26380 | { SWIG_PY_INT, (char *)"DateTime_Dec", (long) wxDateTime::Dec, 0, 0, 0}, | |
26381 | { SWIG_PY_INT, (char *)"DateTime_Inv_Month", (long) wxDateTime::Inv_Month, 0, 0, 0}, | |
26382 | { SWIG_PY_INT, (char *)"DateTime_Sun", (long) wxDateTime::Sun, 0, 0, 0}, | |
26383 | { SWIG_PY_INT, (char *)"DateTime_Mon", (long) wxDateTime::Mon, 0, 0, 0}, | |
26384 | { SWIG_PY_INT, (char *)"DateTime_Tue", (long) wxDateTime::Tue, 0, 0, 0}, | |
26385 | { SWIG_PY_INT, (char *)"DateTime_Wed", (long) wxDateTime::Wed, 0, 0, 0}, | |
26386 | { SWIG_PY_INT, (char *)"DateTime_Thu", (long) wxDateTime::Thu, 0, 0, 0}, | |
26387 | { SWIG_PY_INT, (char *)"DateTime_Fri", (long) wxDateTime::Fri, 0, 0, 0}, | |
26388 | { SWIG_PY_INT, (char *)"DateTime_Sat", (long) wxDateTime::Sat, 0, 0, 0}, | |
26389 | { SWIG_PY_INT, (char *)"DateTime_Inv_WeekDay", (long) wxDateTime::Inv_WeekDay, 0, 0, 0}, | |
26390 | { SWIG_PY_INT, (char *)"DateTime_Inv_Year", (long) wxDateTime::Inv_Year, 0, 0, 0}, | |
26391 | { SWIG_PY_INT, (char *)"DateTime_Name_Full", (long) wxDateTime::Name_Full, 0, 0, 0}, | |
26392 | { SWIG_PY_INT, (char *)"DateTime_Name_Abbr", (long) wxDateTime::Name_Abbr, 0, 0, 0}, | |
26393 | { SWIG_PY_INT, (char *)"DateTime_Default_First", (long) wxDateTime::Default_First, 0, 0, 0}, | |
26394 | { SWIG_PY_INT, (char *)"DateTime_Monday_First", (long) wxDateTime::Monday_First, 0, 0, 0}, | |
26395 | { SWIG_PY_INT, (char *)"DateTime_Sunday_First", (long) wxDateTime::Sunday_First, 0, 0, 0}, | |
26396 | { SWIG_PY_INT, (char *)"DF_INVALID", (long) wxDF_INVALID, 0, 0, 0}, | |
26397 | { SWIG_PY_INT, (char *)"DF_TEXT", (long) wxDF_TEXT, 0, 0, 0}, | |
26398 | { SWIG_PY_INT, (char *)"DF_BITMAP", (long) wxDF_BITMAP, 0, 0, 0}, | |
26399 | { SWIG_PY_INT, (char *)"DF_METAFILE", (long) wxDF_METAFILE, 0, 0, 0}, | |
26400 | { SWIG_PY_INT, (char *)"DF_SYLK", (long) wxDF_SYLK, 0, 0, 0}, | |
26401 | { SWIG_PY_INT, (char *)"DF_DIF", (long) wxDF_DIF, 0, 0, 0}, | |
26402 | { SWIG_PY_INT, (char *)"DF_TIFF", (long) wxDF_TIFF, 0, 0, 0}, | |
26403 | { SWIG_PY_INT, (char *)"DF_OEMTEXT", (long) wxDF_OEMTEXT, 0, 0, 0}, | |
26404 | { SWIG_PY_INT, (char *)"DF_DIB", (long) wxDF_DIB, 0, 0, 0}, | |
26405 | { SWIG_PY_INT, (char *)"DF_PALETTE", (long) wxDF_PALETTE, 0, 0, 0}, | |
26406 | { SWIG_PY_INT, (char *)"DF_PENDATA", (long) wxDF_PENDATA, 0, 0, 0}, | |
26407 | { SWIG_PY_INT, (char *)"DF_RIFF", (long) wxDF_RIFF, 0, 0, 0}, | |
26408 | { SWIG_PY_INT, (char *)"DF_WAVE", (long) wxDF_WAVE, 0, 0, 0}, | |
26409 | { SWIG_PY_INT, (char *)"DF_UNICODETEXT", (long) wxDF_UNICODETEXT, 0, 0, 0}, | |
26410 | { SWIG_PY_INT, (char *)"DF_ENHMETAFILE", (long) wxDF_ENHMETAFILE, 0, 0, 0}, | |
26411 | { SWIG_PY_INT, (char *)"DF_FILENAME", (long) wxDF_FILENAME, 0, 0, 0}, | |
26412 | { SWIG_PY_INT, (char *)"DF_LOCALE", (long) wxDF_LOCALE, 0, 0, 0}, | |
26413 | { SWIG_PY_INT, (char *)"DF_PRIVATE", (long) wxDF_PRIVATE, 0, 0, 0}, | |
26414 | { SWIG_PY_INT, (char *)"DF_HTML", (long) wxDF_HTML, 0, 0, 0}, | |
26415 | { SWIG_PY_INT, (char *)"DF_MAX", (long) wxDF_MAX, 0, 0, 0}, | |
26416 | { SWIG_PY_INT, (char *)"DataObject_Get", (long) wxDataObject::Get, 0, 0, 0}, | |
26417 | { SWIG_PY_INT, (char *)"DataObject_Set", (long) wxDataObject::Set, 0, 0, 0}, | |
26418 | { SWIG_PY_INT, (char *)"DataObject_Both", (long) wxDataObject::Both, 0, 0, 0}, | |
26419 | { SWIG_PY_INT, (char *)"Drag_CopyOnly", (long) wxDrag_CopyOnly, 0, 0, 0}, | |
26420 | { SWIG_PY_INT, (char *)"Drag_AllowMove", (long) wxDrag_AllowMove, 0, 0, 0}, | |
26421 | { SWIG_PY_INT, (char *)"Drag_DefaultMove", (long) wxDrag_DefaultMove, 0, 0, 0}, | |
26422 | { SWIG_PY_INT, (char *)"DragError", (long) wxDragError, 0, 0, 0}, | |
26423 | { SWIG_PY_INT, (char *)"DragNone", (long) wxDragNone, 0, 0, 0}, | |
26424 | { SWIG_PY_INT, (char *)"DragCopy", (long) wxDragCopy, 0, 0, 0}, | |
26425 | { SWIG_PY_INT, (char *)"DragMove", (long) wxDragMove, 0, 0, 0}, | |
26426 | { SWIG_PY_INT, (char *)"DragLink", (long) wxDragLink, 0, 0, 0}, | |
26427 | { SWIG_PY_INT, (char *)"DragCancel", (long) wxDragCancel, 0, 0, 0}, | |
26428 | {0}}; | |
26429 | ||
26430 | #ifdef __cplusplus | |
26431 | } | |
26432 | #endif | |
26433 | ||
26434 | #ifdef __cplusplus | |
26435 | extern "C" | |
26436 | #endif | |
26437 | SWIGEXPORT(void) SWIG_init(void) { | |
26438 | static PyObject *SWIG_globals = 0; | |
26439 | static int typeinit = 0; | |
26440 | PyObject *m, *d; | |
26441 | int i; | |
26442 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
26443 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
26444 | d = PyModule_GetDict(m); | |
26445 | ||
26446 | if (!typeinit) { | |
26447 | for (i = 0; swig_types_initial[i]; i++) { | |
26448 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
26449 | } | |
26450 | typeinit = 1; | |
26451 | } | |
26452 | SWIG_InstallConstants(d,swig_const_table); | |
26453 | ||
cbd72d4f RD |
26454 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
26455 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
26456 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
26457 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
d14a1e28 RD |
26458 | PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER)); |
26459 | PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS)); | |
26460 | ||
26461 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
26462 | ||
26463 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN)); | |
26464 | PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP)); | |
26465 | PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE)); | |
26466 | PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE)); | |
d14a1e28 RD |
26467 | SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set); |
26468 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set); | |
26469 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set); | |
26470 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set); | |
26471 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set); | |
26472 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set); | |
26473 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set); | |
26474 | SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set); | |
26475 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set); | |
26476 | SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set); | |
26477 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set); | |
26478 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set); | |
26479 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set); | |
26480 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set); | |
26481 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set); | |
26482 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set); | |
26483 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set); | |
26484 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set); | |
26485 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set); | |
26486 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set); | |
26487 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set); | |
26488 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set); | |
26489 | SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set); | |
26490 | SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set); | |
26491 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set); | |
26492 | SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set); | |
26493 | SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set); | |
26494 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set); | |
26495 | SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set); | |
26496 | SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set); | |
26497 | SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set); | |
26498 | SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set); | |
26499 | SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set); | |
26500 | SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set); | |
26501 | SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set); | |
26502 | SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set); | |
26503 | SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set); | |
26504 | SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set); | |
26505 | SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set); | |
26506 | ||
26507 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); | |
26508 | ||
cbd72d4f RD |
26509 | SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set); |
26510 | SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set); | |
d14a1e28 RD |
26511 | SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set); |
26512 | ||
26513 | wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource"); | |
26514 | wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget"); | |
26515 | wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget"); | |
26516 | wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget"); | |
26517 | ||
26518 | SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set); | |
26519 | } | |
26520 |